Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp171611pxm; Tue, 22 Feb 2022 08:20:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJwPiF3IKwHv1isRkuyze4FDF+VpuH6T2hZRhg8ugSXf32WnoqECmOoo8axf+VSnzN3V/+ca X-Received: by 2002:a17:902:a989:b0:14f:969b:f6b6 with SMTP id bh9-20020a170902a98900b0014f969bf6b6mr13572330plb.15.1645546841467; Tue, 22 Feb 2022 08:20:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645546841; cv=none; d=google.com; s=arc-20160816; b=DdtWy+Ywg9eUjrzAUlJAM3xI4GWl+E+A3AtexkUEakCwogR7SmCSf5w+CrNh/FmLI1 tn8xInaYBxmkzkiBAIGi6wFSESVkOGBbbfjyPfYzhuItOYpManC3OLRwFW9l6pJb7OYa 0mtxNBKnlKZu7+CVqZIf0c4IZti9vgvMq21X1xM3hjPisxx1IZqHpJ9dJIaqFMFNtIkh Z2ZSkEP2JlKOTPE+2hD1blbi3Tb9H4sypiunEuUJONCajyp0x0T1epZ9fKiQJ2Cl5R2B jYJbNNNuvG9U8G+mLdNfTr7JMRE5C0iyXPlQOzMQZ+q6NYPymZyHnIzoYFpmNskBaTSJ O7Hg== 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=paBaplTKC9zVh2D5mX/2U4Kqmpe5+qxfcuoi6G6m2rs=; b=a/8y4u4BJDH8SGtW0EJsI1DsNfyBVEG7JXYbU8d+KRNcY3o9Ei7XT19nv4DnVXPTN6 FJ2GldWUNjkcPiKZc88Rw0Up1N2sP44V9FyTjH94f5LspZSMcwsC4QbJvDb0ZtIzjuva Ufu/GXEkQtQ3QR8cnNcMDY3GZ3aXWgSXHsBHtCc7ucOUBZS4od13/yC5gcC3ZzCzlpgY k2e4FlZVuF2JblsaBx2sGYF6mUdrjT5rxU4e/mXmkZhWUWinFPIgQ+pjzFiY4Y2EeZoD gi40qAqc/3b+tu/F01XV0vO0HD0XsJzGwEf5+3vNs3VEYhtNTiaxs3FKlfWYkXQCGVLy aYvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b="pmo4S/oe"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mp24-20020a17090b191800b001bc46e4179dsi61867pjb.23.2022.02.22.08.20.24; Tue, 22 Feb 2022 08:20:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b="pmo4S/oe"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233494AbiBVQK4 (ORCPT + 99 others); Tue, 22 Feb 2022 11:10:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231174AbiBVQKz (ORCPT ); Tue, 22 Feb 2022 11:10:55 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3113B165C10; Tue, 22 Feb 2022 08:10:30 -0800 (PST) Received: from zn.tnic (dslb-088-067-221-104.088.067.pools.vodafone-ip.de [88.67.221.104]) (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 B66521EC0529; Tue, 22 Feb 2022 17:10:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1645546224; 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=paBaplTKC9zVh2D5mX/2U4Kqmpe5+qxfcuoi6G6m2rs=; b=pmo4S/oegw3h1fqSOZ652r7innZImkVbw5Z3ot7pOtGLtXv2Kz/uQG3M3/ymUQOO/A3rkO X/9KlpjgQYYjdRRzA76OQU6jrdeP3xWrzrDuCERFp/BSaX9GoDlYofTKisprPZD/F28FPw oyiKlpQ6X2ZTypJNHMM/C22AQQ1mwo4= Date: Tue, 22 Feb 2022 17:10:27 +0100 From: Borislav Petkov To: Carlos Bilbao Cc: tony.luck@intel.com, yazen.ghannam@amd.com, Smita.KoralahalliChannabasappa@amd.com, linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org Subject: Re: [PATCH] x86/mce: Simplify CPU vendor checks for AMD/Hygon and Intel/Zhaoxin Message-ID: References: <20220222155857.276286-1-carlos.bilbao@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220222155857.276286-1-carlos.bilbao@amd.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 22, 2022 at 09:58:58AM -0600, Carlos Bilbao wrote: > In a number of places across the MCE subsystem we check if we are running > an x86 processor from AMD/Hygon or Intel/Zhaoxin vendors. Simplify these > checks with two mce_flags updated at CPU MCE initialization. ... and what's the point of this silliness? Btw, you don't have to send it to my *two* email addresses - one is enough. :) -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette