Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp4583215ybh; Tue, 6 Aug 2019 14:18:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqzsYw04a+dBIUK1SbWrlfPIezvAab4njhE998vstFbfG9slq5JG7QV0fSEY9Dard33S/F5d X-Received: by 2002:a17:90a:d998:: with SMTP id d24mr5048465pjv.89.1565126317739; Tue, 06 Aug 2019 14:18:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565126317; cv=none; d=google.com; s=arc-20160816; b=Dr6t8vnSwBSfXrILsKQf61nw9+tMmmKDqJbra0dNpfnyCb2vqHNgUKUYCBZC1izPKg Hm+B1XP/psTNgAsLOq5vVVByfWVrb2tjLN66oZAV2HTnvkWDKyFDSVSAVHv/h2OCse7E eNuDQv1F2uvpGvhBGwKWUaqeXMJSnfYZlODfdLrRoIYFP0HKlBmpCJ0OPyuZEtXSxvPa a3BcYD+qOh1sN0OQ34tdb4LzgHyCqabeR0qhcGULhK2Ypcj2iKuyTGS9hPUfKuzdaBqK p/os0+WPUMPTy1nZJ/ZJqVwzQPbYntQXaibADm1ED3CiwZvuVvLEci37htFKO2Qm1k1O iEIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=zIFUAVjKgh7EtbL1H80fkrj5xBgXQh4mFQJSOx67DAE=; b=S6v8CZykIny5hQeUljOOZL0/NT7fcNZY1vVGChIlzTEt81NLky7VgOXSbnVpgaag+h FpPEL6Imhndcx4U/o2hdKYb0DG89GV3chZD35Juoarz54vwzkkCis6VQ7XFGP4+o9Zwe y8htA8oyjJWJxFaqWn04UQhEZIzd4Re6OfbYNczb2jk8KTxEEBl9NuyaekXaDSovb3FH bW7mB15RV+a1RZm0egF6zem2p+FVf7njL2HJdvg3JaL4nXvU1Ei5VYxsvRFBpRCyzs1G 7BBmBTPlbE5JN8nknuzn61/LKTfuxU1xKPVTtcjt0fSw35ItdL54krcnE94w6r8wjjCR snGw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a36si15837386pje.14.2019.08.06.14.18.21; Tue, 06 Aug 2019 14:18:37 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726731AbfHFVQN (ORCPT + 99 others); Tue, 6 Aug 2019 17:16:13 -0400 Received: from mga01.intel.com ([192.55.52.88]:44723 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726016AbfHFVQN (ORCPT ); Tue, 6 Aug 2019 17:16:13 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Aug 2019 14:16:12 -0700 X-IronPort-AV: E=Sophos;i="5.64,353,1559545200"; d="scan'208";a="325758888" Received: from rchatre-mobl.amr.corp.intel.com (HELO [10.24.14.91]) ([10.24.14.91]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/AES256-SHA; 06 Aug 2019 14:16:12 -0700 Subject: Re: [PATCH V2 01/10] x86/CPU: Expose if cache is inclusive of lower level caches To: Borislav Petkov Cc: tglx@linutronix.de, fenghua.yu@intel.com, tony.luck@intel.com, kuo-lang.tseng@intel.com, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, linux-kernel@vger.kernel.org References: <20190803094423.GA2100@zn.tnic> <122b005a-46b1-2b1e-45a8-7f92a5dba2d9@intel.com> <20190806155716.GE25897@zn.tnic> <151002be-33e6-20d6-7699-bc9be7e51f33@intel.com> <20190806173300.GF25897@zn.tnic> <20190806183333.GA4698@zn.tnic> <20190806191559.GB4698@zn.tnic> <18004821-577d-b0dd-62b8-13b6f9264e72@intel.com> <20190806204054.GD4698@zn.tnic> From: Reinette Chatre Message-ID: <98eeaa53-d100-28ff-0b68-ba57e0ea90fb@intel.com> Date: Tue, 6 Aug 2019 14:16:10 -0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190806204054.GD4698@zn.tnic> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Borislav, On 8/6/2019 1:40 PM, Borislav Petkov wrote: > On Tue, Aug 06, 2019 at 01:22:22PM -0700, Reinette Chatre wrote: >> ... because some platforms differ in which SKUs support cache >> pseudo-locking. On these platforms only the SKUs with inclusive cache >> support cache pseudo-locking, thus the additional check. > > Ok, so it sounds to me like that check in get_prefetch_disable_bits() > should be extended (and maybe renamed) to check for cache inclusivity > too, in order to know which platforms support cache pseudo-locking. Indeed. As you pointed out this would be same system-wide and the check thus need not be delayed until it is known which cache is being pseudo-locked. > I'd leave it to tglx to say how we should mirror cache inclusivity in > cpuinfo_x86: whether a synthetic X86_FEATURE bit or cache the respective > CPUID words which state whether L2/L3 is inclusive... Thank you very much. I appreciate your guidance here. Reinette