Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp361195pxj; Fri, 11 Jun 2021 00:41:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhc8LKUIgfTas0m30BpR9mrVRMKesFhXr1uch5XONuddU8d97QLKmXbN70sj1v7rLNv4W7 X-Received: by 2002:a17:906:7e4d:: with SMTP id z13mr2417272ejr.50.1623397289836; Fri, 11 Jun 2021 00:41:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623397289; cv=none; d=google.com; s=arc-20160816; b=I8b9+dfdiK8F7K1FDAVfcKzKGbSgK2d+dLENvjb2LT8p0SgDht1+c44t1/9fEJwy0d S7drHLv+jY96Cy1EUVCCu6glwCSCejSK7fz/VGm4RvJoIxBv16721HZlnpv42LeFpxA1 Ec2iFCwv/dQ0ZLMs72qK/EcfBK+shPM5QCScvNrlHYu24qDJXfNSDw1ua1nalqfewavu MnfoiG6Tyn949+x2jaW2aBC6NDPHNifISov3fx5Vn9EVj+aglV7HxlaLbHejbyls+cwd NScWgX9RlTDtrwRcuY0Pq+OdvhkW5J23dtx7ea4yPnN/f001UYEHQ757DZY5x+9mJt4U md6Q== 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=bM7mdRbMEwkDpmgRTLq6Xee0t4hAfl6e7oZsXY8E5uU=; b=UjVgreCdHhFBEvU/oGIdJ/8avUPV9PnMg2D6DQ40P6cMOHkawMyktx6lMZ2MiodfeT 9vzKYOEioVm1BExqW4lATvBbiRvtyssno9pLyqLPP26B//NARFuuyhS/GVyCGeevr/N7 uCZZKmGEP7YoEv5hQp57c0iumuXQobh06zowVcXIGrzPYk41cAcWc1G2HnOOTxoyFeUS kWZGWzIv96BZgNE8/cPsdGH7r+/UDRaKqlU0ID2bOfAVdIfE6yHpL5RxngSzqfUfLl6g neDJC6O6G8k75sy+eXFxx3YvLNO9MXsgAQTpZg1EPL6X8f/tRdViTyh1NXexr5PAQSez prrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=BWC0hvou; 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 n13si4184216ejh.510.2021.06.11.00.41.06; Fri, 11 Jun 2021 00:41:29 -0700 (PDT) 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=BWC0hvou; 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 S231255AbhFKHlZ (ORCPT + 99 others); Fri, 11 Jun 2021 03:41:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230035AbhFKHlY (ORCPT ); Fri, 11 Jun 2021 03:41:24 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FC85C061574; Fri, 11 Jun 2021 00:39:27 -0700 (PDT) Received: from zn.tnic (p2e584d18.dip0.t-ipconnect.de [46.88.77.24]) (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 8B0F81EC0528; Fri, 11 Jun 2021 09:39:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1623397165; 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=bM7mdRbMEwkDpmgRTLq6Xee0t4hAfl6e7oZsXY8E5uU=; b=BWC0hvouGlPlGW//MlEtUhm5fJCs+K10N34ujCxtDnWkdW/AOZN0rmnvKIeyxQe9CAoM53 P9jwl7ne0RMwHae7MjL2kq/0nZkzR/bsXDGSpr/y7ZlT79O6fqYFbtidrdoCTXRxnqbEjm R5yL4Q6d1WAo2uUYBwljoPa6WTP7j8w= Date: Fri, 11 Jun 2021 09:37:13 +0200 From: Borislav Petkov To: Smita Koralahalli Channabasappa Cc: Smita Koralahalli , x86@kernel.org, linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org, Tony Luck , Yazen Ghannam , Muralidhara M K , Akshay Gupta , Youquan Song , Zhen Lei , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" Subject: Re: [PATCH 2/2] x86/mce: Add support for Extended Physical Address MCA changes Message-ID: References: <20210608221012.223696-1-Smita.KoralahalliChannabasappa@amd.com> <20210608221012.223696-3-Smita.KoralahalliChannabasappa@amd.com> <1c21d3c5-8a5a-31cf-6d84-0905a0c508da@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1c21d3c5-8a5a-31cf-6d84-0905a0c508da@amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 10, 2021 at 10:36:44PM -0500, Smita Koralahalli Channabasappa wrote: > The idea of defining a new struct was to keep SMCA specific stuff separate. > Thought, it would be costly to include in existing struct mce_bank[] as it will be > unnecessarily defined for each cpu and each bank across all vendors even if they > aren't using it and would be a problem if they are constraint on resource and space. That's very considerate of you to think about the other vendors - I wish everyone would do that... However, our mce_banks_array is defined unconditionally on all vendors already. So it is there even now. So I wouldn't lose a single second of sleep about adding an u64 bitfield there. > Also, in the future we can use this newly defined struct smca_config[] to cache > other MCA_CONFIG feature bits for different use cases if they are per bank and per > cpu. You can use other bits in that bitfield. I hope 64 are enough. :) HTH. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette