Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp115312imm; Thu, 30 Aug 2018 09:35:55 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZVE1Fg7uKQR4b4QbMAZZ60u9Svq/ZYspMBeHk58rtvyqxhwUX0g1bgg60WAlca2hesQePW X-Received: by 2002:a17:902:142:: with SMTP id 60-v6mr10635824plb.146.1535646955423; Thu, 30 Aug 2018 09:35:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535646955; cv=none; d=google.com; s=arc-20160816; b=y+OG3uKQUL0XJJdVEaz/urbnApcBf4/FniFkZMW1DDJ3N8T82lSR8vEobVp00urrjg 7L2iWPDxaeiNOToj3zfc6PNpDCZ1P6y3VcpmuUb9KcqOAmudCEr1qVWVWFYjz1io5nM9 irnQ7dXm8LD3572tQVAWQENOYjQZJL0FKyY30kTQMqofS0hOj1brAe811eOHj5z8c+a7 uHGVOQBONVQup2t7ddGz5zJ3+t118zvIhNGgjl20KJ1g25H7H0PIlaZ9zpFPA5/VlSYB jJl0ktl02Txx/d36fzp5/U4fq31Y8sbsmwpQeZiT6vqSZ6vLwgulff7W4pj0wviEZtsk HZMw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=EStK0Z2Bn6fI1VfFXtcaa5E3Tbzi1ySuiWKvb5hs+/s=; b=nBUlDj/fpOvEgZig4901gJYDBU3DDWZskwIMs3yjeAoGW2EFDpDRX4fg0GHv57zVG3 Td14ZqJtWXtI4hjOBksPw7hH4wasYUC/E93uMn2JkJi/NoNFEtu6H1Kmo8Eco1AP42RY EUMjwo4CeKCN5PFA4n0ET9NcX3/uX0d+lFpQ7vZdfgGmItMmu95AoGAJLEWsF0KgUF9F MLGuWd70uPRd5heWVOeQYrF5Bj0wbDGRaLkcBed0PKsPYhYsMXD7oRHFYhWHEfpoj/+k xgyhqlEn+7rYNJRvSvRMGE0UQFkUHBXjtFD+2A+eO5lPp0UXQRxdILdvmFmcMXsjChT9 t0jg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e186-v6si6954496pfc.176.2018.08.30.09.35.40; Thu, 30 Aug 2018 09:35:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727592AbeH3Uhb (ORCPT + 99 others); Thu, 30 Aug 2018 16:37:31 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:45620 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725904AbeH3Uhb (ORCPT ); Thu, 30 Aug 2018 16:37:31 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3B091ED1; Thu, 30 Aug 2018 09:34:34 -0700 (PDT) Received: from [10.4.12.81] (melchizedek.emea.arm.com [10.4.12.81]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C90303F557; Thu, 30 Aug 2018 09:34:31 -0700 (PDT) Subject: Re: [PATCH] EDAC, ghes: use CPER module handles to locate DIMMs To: Borislav Petkov , Fan Wu Cc: mchehab@kernel.org, baicar.tyler@gmail.com, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, "Kani, Toshi" References: <1535567632-18089-1-git-send-email-wufan@codeaurora.org> <20180830104307.GC20005@nazgul.tnic> From: James Morse Message-ID: <150ad0e4-e84a-565b-95ac-e7135e98bdc0@arm.com> Date: Thu, 30 Aug 2018 17:34:30 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180830104307.GC20005@nazgul.tnic> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Boris, On 30/08/18 11:43, Borislav Petkov wrote: > On Wed, Aug 29, 2018 at 06:33:52PM +0000, Fan Wu wrote: >> The current ghes_edac driver does not update per-dimm error >> counters when reporting memory errors, because there is no >> platform-independent way to find DIMMs based on the error >> information provided by firmware. This patch offers a solution >> for platforms whose firmwares provide valid module handles >> (SMBIOS type 17) in error records. In this case ghes_edac will >> use the module handles to locate DIMMs and thus makes per-dimm >> error reporting possible. > If we're going to do this, it needs to be tested on an x86 box which loads > ghes_edac. Adding Toshi to Cc. Good point, thanks. > Otherwise it must remain ARM-specific. Hmmm, that would be a shame. This should only be a problem if HPE Servers set CPER_MEM_VALID_MODULE_HANDLE, but don't actually provide module handles, or if firmware has a different idea of what they are. If firmware never sets CPER_MEM_VALID_MODULE_HANDLE, this patch shouldn't change anything. (Someone must have an x86 that sets CPER_MEM_VALID_MODULE_HANDLE, otherwise the code wouldn't be there right?!) Thanks, James