Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp18798imm; Thu, 30 Aug 2018 07:22:03 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYg5LL4E/Ocif22Bvk+s/+cct4gyT2fxBCuFoUOieWc6xksq2RXg1SUFt1EC3wKzXugVOLy X-Received: by 2002:a65:5581:: with SMTP id j1-v6mr9777728pgs.203.1535638923575; Thu, 30 Aug 2018 07:22:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535638923; cv=none; d=google.com; s=arc-20160816; b=wNFCpjDhvXM4lO4zoLPhIGi4oadDfKjPb10AOiDGy4ysphnvZIW/oo17DcW8D3x6xG zB2o0DgHhmFcPeqrTYfmL4riot2PoK7zw/tSbF0zmxwYmBs18Au99p6j96i44Ygifxak iUNNMfZVBhCgsGVrAc9jUTW01j04DPXp/f62TSxK+lf3r4t8NsT9Jm1TtbwssTDY8+2t GbKQx4tcaM01UsuVC92kdZzZgZQeTTCgUcJJzwQ/XxCFY4Cx8dY12mvruD7382IxB0nd 71uf2IsH1NvqA6k22Uu0VTImwsHrHxtqW4DiajRfwUj7qI+IFyxaccRSQrp2Ep++RCZw fn7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language:thread-index :content-transfer-encoding:mime-version:message-id:date:subject :in-reply-to:references:cc:to:from:dmarc-filter:dkim-signature :dkim-signature:arc-authentication-results; bh=IAXbguN1yZo8fIigbLuogC2I1l391a241DnU0GVGlr8=; b=mza6yuwu+sqW9PyIN6uvoHUOumswl0De1KxbcVJ2go0Yh676nc6svYrxuhsjANjI2T ZM3YTAFYtqLeQn3qaFSigY/wdKesP9uwB3S3n2ziHDh1WxLF9tTAryK8DL7jb6tii5ee 1TMFVt1snsrbPtTUypUTXocLLODrb/R0aAYcxchUzdPoHM1RsYzFoIg0vQncfMWHVEGs ylrtwlj9AQPrnKNGwzo8SwJYLwXHf6u38mzi+8ewG6isjLMIeYOlighAsUrgkF+Ujv2K 8F8bFEUzbAgq+UkwAEO6P14tAoYNpihP+KXiA47vbIEmOdkunGM/urQJdyBG1DAo7JQN BWow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Jtj1MQBW; dkim=pass header.i=@codeaurora.org header.s=default header.b=HnYLipxN; 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 x25-v6si7020155pfi.138.2018.08.30.07.21.48; Thu, 30 Aug 2018 07:22:03 -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; dkim=pass header.i=@codeaurora.org header.s=default header.b=Jtj1MQBW; dkim=pass header.i=@codeaurora.org header.s=default header.b=HnYLipxN; 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 S1729252AbeH3SW5 (ORCPT + 99 others); Thu, 30 Aug 2018 14:22:57 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:37492 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729117AbeH3SW4 (ORCPT ); Thu, 30 Aug 2018 14:22:56 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 4E02660445; Thu, 30 Aug 2018 14:20:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1535638834; bh=eSlm9ES6RAv+gOzZUch0EBt++EW2P5UB4nopY5cp0v8=; h=From:To:Cc:References:In-Reply-To:Subject:Date:From; b=Jtj1MQBWH111CxYdC8bKNq95Zmt1rIE3GNJY79omGnPwyUaBxsM/vc9u4Q5JHkNUv fyY9bPO2ryha1CrnPa65x19XsLB6Lq0UCFFyGNqimRSGyh7jwdMVw61FhiyRN2Z/Dl BFsVb72Klpo+Dm+ArYG1DKJFyNJ2fWdRieXnEYp4= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from WUFANW10 (c-71-205-14-210.hsd1.co.comcast.net [71.205.14.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: wufan@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 2896360385; Thu, 30 Aug 2018 14:20:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1535638833; bh=eSlm9ES6RAv+gOzZUch0EBt++EW2P5UB4nopY5cp0v8=; h=From:To:Cc:References:In-Reply-To:Subject:Date:From; b=HnYLipxNJpWNsh1vS6cemghz+gfm3em8Ih7nLQ5L4qa1P3UT/liNZCnVfYBx2YngH /0ZcAzZV+6SSIxOTmJE0giqgtVMCxt7bJkYbsoj/LOCSI9WNrrCrJk5nRlIK1fbh0E T6+K/eRt8M7hSFYaNLxnUIJJ42NMml0XnK28w+8w= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 2896360385 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=wufan@codeaurora.org From: "wufan" To: "'Borislav Petkov'" Cc: , , , , , , "'Kani, Toshi'" References: <1535567632-18089-1-git-send-email-wufan@codeaurora.org> <20180830104307.GC20005@nazgul.tnic> In-Reply-To: <20180830104307.GC20005@nazgul.tnic> Subject: RE: [PATCH] EDAC, ghes: use CPER module handles to locate DIMMs Date: Thu, 30 Aug 2018 08:20:32 -0600 Message-ID: <000901d4406c$9d04f360$d70eda20$@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQHcLsFbwflxxBzVeG17JegIRw3gmALVks7EpLHNfHA= Content-Language: en-us Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Boris, > If we're going to do this, it needs to be tested on an x86 box which loads > ghes_edac. Adding Toshi to Cc. > > Otherwise it must remain ARM-specific. Toshi it would be great if you can help! I'll also test the change in x86 but not sure if the firmware updates module_handle. > > +static int ghes_edac_dimm_index(u16 handle) > > get_dimm_smbios_handle() This function returns an index. So how about get_dimm_smbios_index()? > > +{ > > + struct mem_ctl_info *mci; > > + int i; > > + > > + if (!ghes_pvt) > > + return -1; > > You don't need that test. Will remove. > > + > > + mci = ghes_pvt->mci; > > + > > + if (!mci) > > + return -1; > > Ditto. Will remove Thanks, Fan