From patchwork Thu Mar 28 19:34:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 161331 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp1122413jan; Thu, 28 Mar 2019 12:34:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqyT8bQuHJtQ2Ybyr2L8jBiSnMr3lxE8l0v9pMOIITxxEW4hH8lJRq+RgADSTtf9/Xd/ONH3 X-Received: by 2002:a17:902:f81:: with SMTP id 1mr10320219plz.216.1553801684906; Thu, 28 Mar 2019 12:34:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553801684; cv=none; d=google.com; s=arc-20160816; b=UCoS8TgFg9Oizaz7vFqCyjgvKHO1Q2+B11i9DLDU2kjm8eL8RVD8Cu4cMJD7rvjzTc FcKAoFnnMbYF47YtC6HHKqQGq3nYWPAAZ4yYl6grGEDlmN24/2xSylPqq5SwdWOemotE iHPfiNR6MIYGj/+gr4xc24Hamr9t0AcjoE6tbjL9O80EAFpWiVWrR9PviwzL7H2ZkIOe MPGxVThISRRSWBrRpLK2kSSXS6rfOgaF0hkgqu3lyeu2PHwTXKRbl1Fo9iwhc9/8HsS5 yolvAFX1pzcYh67bprd0MGdkaz55OeA6mnPmYrefzBxBOKHJnqKFVC7+CFxo3tyqpFK+ Kr6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=gWnbQGQJOqdaM9GqZg5HDHDpO0vrT5dYlIu9zqFadZk=; b=dMSPbmSUiRkT+xb6dsRrkWuwARHyCb5PW0ttcccyfjr5e+unSL6GZsTWUHYoyb2o4h YlHPjcCevtvvkTWP81M3VQtQyfxnjTM93nZlHQ/xFiic/DehjDdwdAGmjoquJPTRPCNh rt3vZO+nE2QFfZbAsEQ1ohzdjDNGLAjDGXu+6NGf8E0r/9zkE6WocrOz8Kr2vQ9jZKkP xdxh1cxvKs8hCDADuHpqy3g7KhDFr1FW0JqBo8j2v3tOOLUSif0aei7Oct93XvCo6aZS cQZnB0hMmqkCFhLNQ3rsjFRTTf5DNGGy0KGvJyjuds2BEP9TCx8mvBoJab0f/jztZSvS MZ7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KUzptJy9; spf=pass (google.com: best guess record for domain of linux-efi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-efi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f12si19606591plt.418.2019.03.28.12.34.44; Thu, 28 Mar 2019 12:34:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-efi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KUzptJy9; spf=pass (google.com: best guess record for domain of linux-efi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-efi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726601AbfC1Ten (ORCPT + 3 others); Thu, 28 Mar 2019 15:34:43 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:53668 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726491AbfC1Ten (ORCPT ); Thu, 28 Mar 2019 15:34:43 -0400 Received: by mail-wm1-f67.google.com with SMTP id q16so56498wmj.3 for ; Thu, 28 Mar 2019 12:34:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gWnbQGQJOqdaM9GqZg5HDHDpO0vrT5dYlIu9zqFadZk=; b=KUzptJy9UipXep89qvMvbGfXDUdDjdr+6nPFKmj7/gSzBurxTWQjI79XXsGWlcKkX8 eUI91hE5IICTaY3qNcONeuO/qm2ENp6uk84COKYgw/fmTHXQXDhs43SU925LF93Xym/B eJBG6475ZjyWL9xuN/JcrrOXlkCiJmx8O4Am25RbaZIpIxjerGr4Ko8c3zdY78LmUu1y AcUrEfM8tOaC6+EuEAEvn17racR8i318hzoi1Zf5o/F1ot+XipNqNYwz3Xfze2OjC+Jd TWVj5ME6fK5b0U/HCAAM0rGu3UmpFsMdl2uCyNkpJD+pBqFWTsTMfaoqfosuaY8EYRDS Bkzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gWnbQGQJOqdaM9GqZg5HDHDpO0vrT5dYlIu9zqFadZk=; b=s0wr0Nk6UR7IhMGeXbWSu6roDegtGZbJ5k6yJkV4tZWuzUIIV6ib94euB7Y4o5cWLL xMFXntUK2M7h+7ZYemGlH4A7ZNTveVPVgTvZ0mZXMpiR/yg/SnkLY4Sd1dqafuoRliWX +JltE5QLvynDMWgCda7bCawFMtr6eG5d1bx4X0igGeba+r9NdN0tkQzGe1SGB800jaub FW4F4Z9sVQuEKFki7iHu7Xa1l/U3uckKcbQC1L8BFr+q8vCKVF7/o96cq8NbvvfiakVv nDMA9RusIT63RyjAs/iVhc4bZnoYOMZfLOQFvK+q08F13sTc6XDq6gTJf5xNLDYjGeR2 t0wA== X-Gm-Message-State: APjAAAVDmG4Y2RhAPbOcWDsrnovYWx9RwUQ5led1ger6kilqClEttQTa 4mxtoa26VIdUaUW56JUyVNx7dYp44SKH+g== X-Received: by 2002:a1c:1aca:: with SMTP id a193mr1140540wma.40.1553801681532; Thu, 28 Mar 2019 12:34:41 -0700 (PDT) Received: from sudo.home ([2a01:cb1d:112:6f00:dd62:8a50:1468:989d]) by smtp.gmail.com with ESMTPSA id d6sm27739186wrx.62.2019.03.28.12.34.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Mar 2019 12:34:40 -0700 (PDT) From: Ard Biesheuvel To: linux-efi@vger.kernel.org, Ingo Molnar , Thomas Gleixner Cc: Marcin Benka , Ard Biesheuvel , linux-kernel@vger.kernel.org, Robert Richter Subject: [PATCH 3/5] efi/arm: Show SMBIOS bank/device location in cper and ghes error logs Date: Thu, 28 Mar 2019 20:34:27 +0100 Message-Id: <20190328193429.21373-4-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190328193429.21373-1-ard.biesheuvel@linaro.org> References: <20190328193429.21373-1-ard.biesheuvel@linaro.org> MIME-Version: 1.0 Sender: linux-efi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-efi@vger.kernel.org From: Marcin Benka Run dmi_memdev_walk() for arch arm* as other archs do. This improves error logging as the memory device handle is translated now to the DIMM entry's name provided by the DMI handle. Before: {1}[Hardware Error]: DIMM location: not present. DMI handle: 0x0038 After: {1}[Hardware Error]: DIMM location: N0 DIMM_A0 Signed-off-by: Marcin Benka Signed-off-by: Robert Richter Signed-off-by: Ard Biesheuvel --- drivers/firmware/efi/arm-runtime.c | 1 + 1 file changed, 1 insertion(+) -- 2.20.1 diff --git a/drivers/firmware/efi/arm-runtime.c b/drivers/firmware/efi/arm-runtime.c index 0c1af675c338..4a0dfe4ab829 100644 --- a/drivers/firmware/efi/arm-runtime.c +++ b/drivers/firmware/efi/arm-runtime.c @@ -167,6 +167,7 @@ static int __init arm_dmi_init(void) * itself, depends on dmi_scan_machine() having been called already. */ dmi_scan_machine(); + dmi_memdev_walk(); if (dmi_available) dmi_set_dump_stack_arch_desc(); return 0;