Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp4531526ybh; Tue, 6 Aug 2019 13:23:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqxVur1G2tbGJwqbsToJ7DqLytqkJ9dFMIpUu1IUnlEKyam4tHxrFXa8wjH0udJ+LQepsP3b X-Received: by 2002:a17:902:e281:: with SMTP id cf1mr4679565plb.271.1565122999514; Tue, 06 Aug 2019 13:23:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565122999; cv=none; d=google.com; s=arc-20160816; b=blysjmdTdTPVMgR3zhJFelXEgAXTXvmOdYhy7/dcEX7qWaNmuW/ACAJ447IklI3rHi +837oaWv7MGk+tHmJTZ9CiJhEBejEuxFWIHbXA+5Pcdv5TlEqVh1PVPJZGwBpV7ntjMW JgpgbmJgAKJalXlROIVdVcCuOaOoS1IQ6v6QcIuxWFyIgqAkRh0dpg6qFQbiLbdudF7o Frk6PfAhwy4TGSeQBxKaDGHYAuiHV+I9jNne/CjyTV7/LNtzw0TUjg88KTrpiTVvWc0T mF1nC21aGjIrg264vAw0EcNOWJeKzAQA1zElwlIX+IHJTZUZgwU/8tUHSeApbm9EaCLl CIhw== 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=MW6H98qYIE6lEUDZfTHw0ELOxJ/8Ybg2lUFHMe+RFNM=; b=zMnR6T9QR0yjgxVG/Gb+CqK6o9DNOZsWfvtk6CbuZeBGbgESpzsPsmJxxV5RHIEz49 9Tr6/qys64i1Zo5anVY056lXrlyh4Gtvj6SAA8iewzsfDzC8yQPjumLVcEHQ2P61l17T pM4NOB9DW3OrcavFOJUldayX01cAjaWAYouo5xI8cSKVxdmA1qDD7R81QuL1YX8rw4dq pRWXJdL9u3bnYg1yG5o97gv6g7A+WbYIFUB6TVO0JCGs4a6wMFiIswDmFKdGBfxBhhDR qA2qPNDaDeXAtXF8rTaxCZWePRW4a3R27I0pGbgoa7AN0LWp7qFKpwccPAjFlOWMsXIf LXkA== 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 v9si41585725plp.4.2019.08.06.13.23.03; Tue, 06 Aug 2019 13:23:19 -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 S1726068AbfHFUW0 (ORCPT + 99 others); Tue, 6 Aug 2019 16:22:26 -0400 Received: from mga06.intel.com ([134.134.136.31]:47463 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725970AbfHFUW0 (ORCPT ); Tue, 6 Aug 2019 16:22:26 -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 orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Aug 2019 13:22:25 -0700 X-IronPort-AV: E=Sophos;i="5.64,353,1559545200"; d="scan'208";a="325743887" 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 13:22:25 -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: <20190802180352.GE30661@zn.tnic> <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> From: Reinette Chatre Message-ID: <18004821-577d-b0dd-62b8-13b6f9264e72@intel.com> Date: Tue, 6 Aug 2019 13:22:22 -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: <20190806191559.GB4698@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 12:16 PM, Borislav Petkov wrote: > On Tue, Aug 06, 2019 at 11:53:40AM -0700, Reinette Chatre wrote: >> In get_prefetch_disable_bits() the platforms that support cache >> pseudo-locking are hardcoded as part of configuring the hardware >> prefetch disable bits to use. > > Ok, so there is already a way to check pseudo-locking support. Correct. This check is per platform though. > Now, why > do we have to look at cache inclusivity too? ... 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. > > Your 0/10 mail says: > > "Only systems with L3 inclusive cache is supported at this time because > if the L3 cache is not inclusive then pseudo-locked memory within the L3 > cache would be evicted when migrated to L2." > > but then a couple of mails earlier you said: > > "... this seems to be different between L2 and L3. On the Atom systems > where L2 pseudo-locking works well the L2 cache is not inclusive. We are > also working on supporting cache pseudo-locking on L3 cache that is not > inclusive." > > which leads me to still think that we don't really need L3 cache > inclusivity and theoretically, you could do without it. > > Or are you saying that cache pseudo-locking on non-inclusive L3 is not > supported yet so no need to enable it yet? Correct. Hardware and software changes will be needed to support this. Reinette