Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1645763ybz; Thu, 30 Apr 2020 03:03:19 -0700 (PDT) X-Google-Smtp-Source: APiQypLJXe5roAVbhVa4NRJIOqMOPxDvncG4x2Bq9lkvsqLOTl/6hYXqhhBv65zIqoi4dRVhgipY X-Received: by 2002:a17:906:7f0c:: with SMTP id d12mr1878025ejr.40.1588240999623; Thu, 30 Apr 2020 03:03:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588240999; cv=none; d=google.com; s=arc-20160816; b=M9z74nNlVmVTSHT68Dw5JLcUpZQqJAy27ygxkx24bO2irP6ZvIB6GMr1vja4LJ4YKl sfgkZjH41/9HArbMlQYy8qs8xdc3MOz4wPd67+KdkY4ELbGKJLcbfzu62vY8nB3Ee1dm RpNXLP5CBcshdvN3DsHUkpewDCi1BnXnFmwTAmhrbQ666X67NQVosvtecMQqr/hpY+9a fRp9j5RVVEG2BAvEu9pbXBOhNZuOvCNu2kMi4+o8b7OWPBDYdnxiSNYNVlJHw+E+pMrq 7zS065tXXtf1bN8A8e8g1R4cro45Bjd80MPrvc3XKY97iTs4il9sPhqm8oJJrPTGpQwf X/dg== 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=5llhOqdG7t8hgBxhImnjOl/0n5PnW1ah5nvhkKR9F+E=; b=umFzeX7RJQS1yzXGSmtd03TQxb4m7x+/cIsznx83jUR0A9v4skSXapYieevGZHuDlD E0ZS3WNNGcNhxwLmVvSF4N2bhnSSv9zE4PzIMAn5AVwiJ5Vj5djolEQmcAUnWLqSRyjl Zf6XdotmkY/GkIJY2xX8q8Va9cYatTwkvstkeO6jVAUx6kCNrBgcfj1ajeir5E9pkN2N gFXYZKjIbu5cRcgvBtErDXZSKMjJb4Qf6p0Ogk+oj9vmlK4zfY39Iqm47S08maw6MQQn tflqtkafcGGoecqp7srgNToLdobAoRiHWw+HUdkqNjlKxObOCR8VIiY6YGlozB6FbNZx mKlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=gRuGwUKC; 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 z6si5605190ejw.468.2020.04.30.03.02.55; Thu, 30 Apr 2020 03:03:19 -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=gRuGwUKC; 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 S1726906AbgD3J70 (ORCPT + 99 others); Thu, 30 Apr 2020 05:59:26 -0400 Received: from mail.skyhub.de ([5.9.137.197]:51570 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726849AbgD3J7V (ORCPT ); Thu, 30 Apr 2020 05:59:21 -0400 Received: from zn.tnic (p200300EC2F0C300004BE574BBCE9717A.dip0.t-ipconnect.de [IPv6:2003:ec:2f0c:3000:4be:574b:bce9:717a]) (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 09DD21EC0BFD; Thu, 30 Apr 2020 11:59:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1588240760; 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=5llhOqdG7t8hgBxhImnjOl/0n5PnW1ah5nvhkKR9F+E=; b=gRuGwUKCpwm12/refyf6+i7pVLGFXugCc9d4FB9ZpMQGAdOuJGGb0vF/3QuUxKbM9RQa/p GsthYR1290eaZ1j/rOoWLttxm9AyLCln+WmdYeQgsYuhj0ybh7CjukaQjpTAdMfzAZIKpo T1tLBCuvLhwrPL/AmTV31sQ9bk4ONvc= Date: Thu, 30 Apr 2020 11:59:13 +0200 From: Borislav Petkov To: Reinette Chatre Cc: tglx@linutronix.de, fenghua.yu@intel.com, tony.luck@intel.com, kuo-lang.tseng@intel.com, mingo@redhat.com, babu.moger@amd.com, hpa@zytor.com, x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] x86/resctrl: Support CPUID enumeration of MBM counter width Message-ID: <20200430095913.GA3996@zn.tnic> References: <76dc65631c373e0c1c9f3e8aaa768f022a2c989c.1585763047.git.reinette.chatre@intel.com> <20200429181149.GE16407@zn.tnic> <6fb58472-88f2-925b-3a4e-4692957a9582@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <6fb58472-88f2-925b-3a4e-4692957a9582@intel.com> 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 Wed, Apr 29, 2020 at 11:42:03AM -0700, Reinette Chatre wrote: > This would essentially be resubmitting [1] though. Do you expect that > this change would receive a different reception at this time? Right, Thomas and I talked it over a bit last night. So the proper thing to do is to read all that information *once* and put it in boot_cpu_data. Because that information is replicated the same over CPUID on each core. If there's per-CPU stuff, then it should remain per-CPU but looking at how the RDT code uses boot_cpu_data, I'd say this is global info. So, it should be parsed once on the BSP during boot and put into boot_cpu_data. And then silly stuff like x86_init_cache_qos() should go away too. If this info is needed on Intel only, then it should be parsed in cpu/intel.c, in a ->c_bsp_init helper and if it is needed on AMD too, then a function which does this should be called by the respective c_bsp_init helper. Then all its users can continue reading it out of boot_cpu_data and future RDT hw info can be added there. Makes sense? Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette