Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp467594imm; Thu, 30 Aug 2018 03:31:46 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYbcqpYMQElj37ewIEhHGS/pBZdiEXl4Ko8PB4dh73ytY1rOna+cKdg12CtJSU+YcWLiJXe X-Received: by 2002:a63:81c3:: with SMTP id t186-v6mr9215316pgd.285.1535625105989; Thu, 30 Aug 2018 03:31:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535625105; cv=none; d=google.com; s=arc-20160816; b=yr1ADWt1RXu7btaQaevotrQ9e92mDGi+4WWkr0bIbUIBLgy3VmBP0BAufo9lnCArkI xmE8qPXRxV3aWpaCOEXkYlrvmugQm7DyIjtVbFSEYBS7dU2QeyiGF0CiVv89Q4oMZzkn lz+C6vtcZYqm7n4mjV6/eh41cQBFa770s6bESHD2l9Mn5iO1F/iUwjvpZZ53vtheiTzi +GfzndWKsCVmLyUS5Yypi/Ft196MxD081CnvFdG3+r4wzV+qwX10lWhwrJN1bRRkPD7d OdMJI4TOZAaF4K/Qf/P/xis3/xeCk9fztfu6r9PQ5i6wuSUBYYyCHja0O9POWDxcQgOo MeUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=rN8meG0eckpta/ztZZyzkIVI1dLE3RPQdzOihGYSTXo=; b=0ozmHOFiDSuU7kWXyBsR74ZwxXemSNARBCMiPJGBaR0xiYidIUZAZ4FwdHRi5YjFwT 8nY2o3W+Y/mrXj/lj5A0yqONbpd1qU38HYpoijp/ItYxlpfPn746uGnmKsFiROimvA6s HA2kmbL20Cod4C7VyE1GMlCY+y4bsbUqEu8wM2dyVjjCgRoO6ttfqlp89MK95GNkbk9+ ksV2HNqQDFeJ03n8ccAbwShWOlzR5LW4m7fAYNPjp5KUa7mW01jzPV1iiKfvNmZL98vF AUKEgt94ashBzb5F4LYbNBKFyPggcl8WsYYn51DYujWOxRwr3ocG2GhMhti72Brcd/ko /qBw== 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 x6-v6si6136127pge.100.2018.08.30.03.31.30; Thu, 30 Aug 2018 03:31:45 -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 S1728392AbeH3Obx (ORCPT + 99 others); Thu, 30 Aug 2018 10:31:53 -0400 Received: from mail.skyhub.de ([5.9.137.197]:44494 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728284AbeH3Obu (ORCPT ); Thu, 30 Aug 2018 10:31:50 -0400 X-Virus-Scanned: Nedap ESD1 at mail.skyhub.de Received: from mail.skyhub.de ([127.0.0.1]) by localhost (blast.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ec7GmZHc5xXZ; Thu, 30 Aug 2018 12:30:04 +0200 (CEST) Received: from nazgul.tnic (46-10-68-224.ip.btc-net.bg [46.10.68.224]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 7CAA51EC0380; Thu, 30 Aug 2018 12:30:03 +0200 (CEST) Date: Thu, 30 Aug 2018 12:28:15 +0200 From: Borislav Petkov To: James Morse Cc: Tyler Baicar , Tyler Baicar , wufan@codeaurora.org, Linux Kernel Mailing List , harba@qti.qualcomm.com, mchehab@kernel.org, arm-mail-list , linux-edac@vger.kernel.org Subject: Re: [RFC PATCH] EDAC, ghes: Enable per-layer error reporting for ARM Message-ID: <20180830102815.GB20005@nazgul.tnic> References: <20180719140102.GB25185@nazgul.tnic> <94e3a0fb-9b7d-045f-733b-9f063dcb39e4@arm.com> <45fefe7d-c6ea-5791-4477-13ecce39ce48@codeaurora.org> <68a800c7-446e-9b6b-1847-6e45a1d17262@arm.com> <20180824120102.GB29751@nazgul.tnic> <0a94db2a-2569-ac46-1a79-a05f46a4ea6f@arm.com> <20180829073804.GA6843@nazgul.tnic> <2e7b984a-8f8f-dad7-4ee5-043dd236a9b1@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <2e7b984a-8f8f-dad7-4ee5-043dd236a9b1@arm.com> User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 29, 2018 at 11:20:48AM +0100, James Morse wrote: > Right. I'd like ghes-edac to work in the same way for both architectures. > > I think this is best done by stuffing the dmi-handle in struct dimm_info during > ghes_edac_dmidecode(), then populating the struct edac_raw_error_desc layers > from the matching mci->dimms 'location'. > > For EDAC_MC_LAYER_ALL_MEM this boils down to a flat index, so pointer arithmetic > on mci->dimms is an appropriate short cut. It all sounds nice on paper but you should try it on a couple of machines first. See whether/how it actually works there. Also, this probably would need to not change x86 unless you wanna fix it there too. I'd think twice before I attempt such a thing though :) > (We should probably 'FIXME: It shouldn't be hard to also fill the DIMM labels' > at the same time so that no-one is tempted to interpret the edac:dimm-idx) See above. > > In an ideal world, I'd like to be able to query the SPD chips on the > > (oh, that can be done?) There was some talk initially and I've seen BIOS read SPD chips and showing DIMM info but I've heard the word "proprietary" a couple of times. Haven't dug any deeper though. > I got educated by the people who look after specifications last time I touched > this [0]. SMBIOS tables are required by Arm's 'Server Base Boot Requirements', > It lists the memory-device and physical-memory-array as required. It is always better to have certification on your side. Should make ARM vendors dance. > I will drop them a note that we will be depending on the handle, and it should > go on the list too... if its not populated on today's systems we can fall back > to !e->enable_per_layer_report as we do today. Right. -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply. --