From patchwork Thu Jan 3 10:12:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Wilson X-Patchwork-Id: 10747137 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E0BF0746 for ; Thu, 3 Jan 2019 10:12:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D2D5E285D6 for ; Thu, 3 Jan 2019 10:12:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C6DF4285FD; Thu, 3 Jan 2019 10:12:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 091E7285D6 for ; Thu, 3 Jan 2019 10:12:53 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CF1566EAA3; Thu, 3 Jan 2019 10:12:51 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9E7846EA9C for ; Thu, 3 Jan 2019 10:12:49 +0000 (UTC) Received: by mail-wr1-x442.google.com with SMTP id r10so33012571wrs.10 for ; Thu, 03 Jan 2019 02:12:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=pXb18rd/rS98h6usttQ5aFpYIhpGb53KkJKyf6Qxe7o=; b=ghuZkUGTYJTESFrUbovfYPETKyR6RfFsSBSEsWk/bRDGkFs64t0PMMSF130D1ZJaDI kzbtZgUrQatCte3Oy/2zjylGq7MgiChX08TucIEuDnNnSyj4R/M4vTEqlb6AyTzU7QMB QjV/v6eFZFWvOiC+GRJH58PZTC1Ayuh2DnMikTGRBeQHb4Wnle9JWarYKzrfYxIV6l1Z 0lgQ84tYqLF7AIpTYq0G0Op4gE/B3fWx+pcXNHQOq3wPhdEnlyUhjiWueoD3Y9ufHRb6 r1aic5zxWIPHMDCnexACtu34d3hnMJk4SKuw6+eGsnE8AJfoJQhJcn80F5giw+YWd+tC ndwQ== X-Gm-Message-State: AJcUukd4JueCdl++TFDuhI5Dx23dzFT35AqOvT4kkCQITZ9QXOoIG5ls 41FE8iDdVLXUgUc1cL3t8RWjBz8Z X-Google-Smtp-Source: ALg8bN48D3aM1GSrKj9qacc35eCmwSxNTUr7RazBPMqra7QuVdwwoMw1qiECoX2lTmD8/qbe7AqcaQ== X-Received: by 2002:a5d:6907:: with SMTP id t7mr22846213wru.226.1546510367937; Thu, 03 Jan 2019 02:12:47 -0800 (PST) Received: from haswell.alporthouse.com ([78.156.65.138]) by smtp.gmail.com with ESMTPSA id h62sm35662178wmf.11.2019.01.03.02.12.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Jan 2019 02:12:47 -0800 (PST) From: Chris Wilson To: intel-gfx@lists.freedesktop.org Date: Thu, 3 Jan 2019 10:12:45 +0000 Message-Id: <20190103101245.15100-1-chris@chris-wilson.co.uk> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH] drm/i915: Show machine type in error state X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP As the question of 32b/64b kernels became relevant in the light of certain bugs, include that information in the error state. Signed-off-by: Chris Wilson Cc: Mika Kuoppala Cc: Lionel Landwerlin Acked-by: Lionel Landwerlin Reviewed-by: Lionel Landwerlin --- drivers/gpu/drm/i915/i915_gpu_error.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_gpu_error.c b/drivers/gpu/drm/i915/i915_gpu_error.c index 6238a06b6d4e..5533a741abeb 100644 --- a/drivers/gpu/drm/i915/i915_gpu_error.c +++ b/drivers/gpu/drm/i915/i915_gpu_error.c @@ -665,7 +665,9 @@ static void __err_print_to_sgl(struct drm_i915_error_state_buf *m, if (*error->error_msg) err_printf(m, "%s\n", error->error_msg); - err_printf(m, "Kernel: %s\n", init_utsname()->release); + err_printf(m, "Kernel: %s %s\n", + init_utsname()->release, + init_utsname()->machine); ts = ktime_to_timespec64(error->time); err_printf(m, "Time: %lld s %ld us\n", (s64)ts.tv_sec, ts.tv_nsec / NSEC_PER_USEC);