Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3986671ybi; Mon, 10 Jun 2019 22:14:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqyEceDm/XlTmlTgGzf6Rvn0IGjP3eb4yI3AxaRsSua4eMa6bdqWEgFL+Ig5DA9ap9er3UQ4 X-Received: by 2002:a17:902:934a:: with SMTP id g10mr63392206plp.18.1560230086114; Mon, 10 Jun 2019 22:14:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560230086; cv=none; d=google.com; s=arc-20160816; b=Hu6DO8xk4+5XZX1750AHNSOA6lEr7Ign5BvSYwODyf1Tn0VuxRsTr/AteAFVEBty/9 d39v6p++9kW+Dgx/5wkq5bSq8MVGPmWSyw3PyJ6GgGC0EwRC4D9MoUuUceDAU9Mi3WIQ 85SdcDIizMhvuhiSDx9t570xAcxUdsQMT7MeI1ejDgRkUYOjc47HRFJfEcNrrtysbgsp xP6kn3anixA29I1hCr+mC1CklK3y8fGjqteaBs2GVZUTjlbzT7o4cQR+Uwor+pBh2bBr sSYlGKJ4OUAYP/rvdcfwjmICSvsss11sbDpKkH7KKWuCKyqNp6MLqs+rhyXIFFFf8Sk1 ioFw== 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:dkim-signature; bh=/4qpiIwUDNEVZoOIA+81jIxl/aQaH5UW2wmLcI0lJNI=; b=KfbkDtRL+c41dNYf+MU7UQ5cZ1fxEM/GZdhTTsuiexoUvmI5kVEfzHSmRBUhmDXmWZ 9uUaWgkwNUqzDc5/ARLA3kI0VSS1zrMXRexWC680Ms5f7Csdr7lUm/kOdKC5WqgC8Jn3 4v1US1FtktnTBFXvoGuzqdR/CCg9YnZOoYlM9J0KdRR5zZ36h/5uGaz+48OfUA4ouVM+ /qD+3BIQSUosllH4u3+JdRhyhcTvGLIEs+WhOcYfWlhPWc6lV10Rbhe8NGpF1h7bxY1+ lTivxxq0iu8HWGhYO7sGHGHJ5+mZ44Hu3yhAMTrMOiPd7e0BmvrM0cGGJq7ZprqC5Grc KDLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=gCNOKqz+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y8si3324163plk.428.2019.06.10.22.14.31; Mon, 10 Jun 2019 22:14:46 -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=@alien8.de header.s=dkim header.b=gCNOKqz+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391180AbfFKFOB (ORCPT + 99 others); Tue, 11 Jun 2019 01:14:01 -0400 Received: from mail.skyhub.de ([5.9.137.197]:60420 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390539AbfFKFOA (ORCPT ); Tue, 11 Jun 2019 01:14:00 -0400 Received: from zn.tnic (p200300EC2F0A6800B9C6921F36B00F7C.dip0.t-ipconnect.de [IPv6:2003:ec:2f0a:6800:b9c6:921f:36b0:f7c]) (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 5F38C1EC0982; Tue, 11 Jun 2019 07:13:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1560230039; 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=/4qpiIwUDNEVZoOIA+81jIxl/aQaH5UW2wmLcI0lJNI=; b=gCNOKqz+iDg5I9ne62GUb0I8Z9rBvZfwBX0dZ85/lH5d6XyuyBJYQeKxeM4UcopWn/aiNu rYlatEt03HGZ2EPUm9eHtzFw8oDVkrE+zozxje6MEUf8IBZvMG5UdiDfYD9qIeFjNGirDF YxjUWHUseHF5ysZVmxtukbjF2xb+yQA= Date: Tue, 11 Jun 2019 07:13:54 +0200 From: Borislav Petkov To: "Ghannam, Yazen" Cc: "Luck, Tony" , "linux-edac@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "x86@kernel.org" Subject: Re: [PATCH v3 5/6] x86/MCE: Save MCA control bits that get set in hardware Message-ID: <20190611051354.GA31772@zn.tnic> References: <20190517172648.GA18164@agluck-desk> <20190517174817.GG13482@zn.tnic> <20190517180607.GA21710@agluck-desk> <20190517193431.GI13482@zn.tnic> <20190517200225.GK13482@zn.tnic> <20190527232849.GC8209@cz.tnic> <20190607163723.GG20269@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190607163723.GG20269@zn.tnic> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 07, 2019 at 06:37:23PM +0200, Borislav Petkov wrote: > On Fri, Jun 07, 2019 at 02:49:42PM +0000, Ghannam, Yazen wrote: > > Would you mind if the function name stayed the same? The reason is > > that MCA_CTL is written here, which is the "init" part, and MCA_STATUS > > is cleared. > > > > I can use another name for the check, e.g. __mcheck_cpu_check_banks() > > or __mcheck_cpu_banks_check_init(). > > Nevermind, leave it as is. I'll fix it up ontop. I don't like that > "__mcheck_cpu_init" prefixing there which is a mouthful and should > simply be "mce_cpu_" to denote that it is a function which is > run on a CPU to setup stuff. So I'm staring at this and I can't say that I'm getting any good ideas: I wanna get rid of that ugly "__mcheck_cpu_" prefix but the replacements I can think of right now, are crap: * I can call them all "cpu_" but then they look like generic cpu-setup functions which come from kernel/cpu.c or so. * I can prefix them with "mce_cpu" but when you do them all, it becomes a block of "mce_cpu_" stuff which ain't more readable either. And besides, those are static functions so they shouldn't need the prefix. But I'd like the naming to denote that they're doing per-CPU setup stuff. Which brings me to the previous point. So no, don't have a good idea yet... -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.