Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2490806pxb; Mon, 18 Jan 2021 21:01:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJwQ/JI4pERnsESfXkA3M9U6Yk5N5TIFbC0XwkNeqNDaaCUAZvJS7RZX1CCqNkJPH9hBN5lx X-Received: by 2002:a17:906:1914:: with SMTP id a20mr1873321eje.278.1611032516002; Mon, 18 Jan 2021 21:01:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611032515; cv=none; d=google.com; s=arc-20160816; b=N8b4ZnWzXjAW/wzsVQn4Bipv7WLw9OYvsjhp5tZWI+7lE/FH9D4xV4EsKSNXn9/1kj mzFE6tHKXkqnBArdPj8Eo6Ct8EnMSZsNR+45Hv6yeTnuehGHzyhdC6q1PO0R7kVJ18SY GdfCmT1emt89/DlmMJPUGRw9/Va+C00DZiFu1RSTysC1h/f/PFJCDmVWoUcnDzn0yZeH CglKGvPH8XcznHQe904kLMMZGFPJHwQ3/qQnJWjz+ia6+oT5oVcOI12kDCyjHoRAlBMM pvbkeSeu1zTGWSb3DJbsVj+JLjj+Ryxy4wee7K863BpcSrLFRTGyCSqgVXG391c0l+Ll W3Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=HzegoAfVAaZDbMTTGri4bkt9an6vYxRS8pFX5icPkSI=; b=OsAz56LbazY+F7CD5Dgwsmy+1lx6N2XAAUQC9rePyJCUukgyJ2upfzywIoSjwajkyO 6a5kmMzCfLmGIesh446metkbrXNmoo8Dj5jKjn0qb2a+qD2WrZ4+l3UMRBr6r8+PZWqZ SU7/0cCPLiI/MKYQgrOQ6pKfoWVgST5uZXVbIqWonMLB7OAohgum2bJ+WHKyn5HNAggJ cZI/DYWNIWk+WlJK2/+FJMFdfaWqpMZQlf99wQG1dh6vwdjB85hsAI9CmgspCYoDYdFA UEC6PQjMCoB4DIgycVNH+axBQh4sZKi3L9KLisX0jWmcCLUie/gUzeQ7JJRfUYoUaqob Mu4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=LG+oqy9q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m19si4735769edp.417.2021.01.18.21.01.32; Mon, 18 Jan 2021 21:01:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=LG+oqy9q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731253AbhARShj (ORCPT + 99 others); Mon, 18 Jan 2021 13:37:39 -0500 Received: from mail.skyhub.de ([5.9.137.197]:33266 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730765AbhARSha (ORCPT ); Mon, 18 Jan 2021 13:37:30 -0500 Received: from zn.tnic (p200300ec2f069f001e13c6b7481d9a7b.dip0.t-ipconnect.de [IPv6:2003:ec:2f06:9f00:1e13:c6b7:481d:9a7b]) (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 6DFC91EC0258; Mon, 18 Jan 2021 19:36:47 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1610995007; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=HzegoAfVAaZDbMTTGri4bkt9an6vYxRS8pFX5icPkSI=; b=LG+oqy9qBBRsJNBF02g3yaLSWmeU5nKLH4rV8OwnUJMlbGI7aILOqGDNGRd4Wqw+vXfeNL Vt4i06eSjr1IjIgLE492qqYnrQjqy2PhUilGbnGPEUTtI3ISyofSJraNVInPHVLR/rpnXY RvU1PrqluqrVphvE2q+gATDoQR5UnUc= Date: Mon, 18 Jan 2021 19:36:37 +0100 From: Borislav Petkov To: Shiju Jose Cc: "linux-edac@vger.kernel.org" , "linux-acpi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "james.morse@arm.com" , "mchehab+huawei@kernel.org" , "tony.luck@intel.com" , "rjw@rjwysocki.net" , "lenb@kernel.org" , "rrichter@marvell.com" , Jonathan Cameron , tanxiaofei , "linuxarm@openeuler.org" Subject: Re: [RFC PATCH 1/2] EDAC/ghes: Add EDAC device for the CPU caches Message-ID: <20210118183637.GD30090@zn.tnic> References: <20201208172959.1249-1-shiju.jose@huawei.com> <20201208172959.1249-2-shiju.jose@huawei.com> <20201231164409.GC4504@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 15, 2021 at 11:06:30AM +0000, Shiju Jose wrote: > L2 cache corrected errors are detected occasionally on few of > our ARM64 hardware boards. Though it is rare, the probability of > the CPU cache errors frequently occurring can't be avoided. > The earlier failure detection by monitoring the cache corrected > errors for the frequent occurrences and taking preventive > action could prevent more serious hardware faults. > > On Intel architectures, cache corrected errors are reported and > the affected cores are offline in the architecture specific method. > http://www.mcelog.org/cache.html > > However for the firmware-first error reporting, specifically on > ARM64 architectures, there is no provision present for reporting > the cache corrected error count to the user-space and taking > preventive action such as offline the affected cores. How hard was it to write that in your first submission? What do you think would be the best way to persuade a patch reviewer/maintainer to take a look at your submission? > >Why a separate Kconfig item? > CONFIG_EDAC_GHES_CPU_CACHE_ERROR is added to make this > feature optional only for the platforms which need this and supported. > > > > >> + depends on EDAC_GHES depends on EDAC_GHES hardly expresses which platforms need it/support it. If anything, depends on ARM64. > >Init stuff belongs into ghes_scan_system(). > > > Did you mean calling ghes_edac_create_cpu_device() in the ghes_scan_system()? I mean, all hardware discovery needs to happen in ghes_scan_system - you don't need to call those from outside the driver, in ghes_edac_register(). -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette