Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp4474736ybh; Tue, 6 Aug 2019 12:17:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqw3TZG/hcj/+6Yxfttk4AR8STwECBUrMplPAhg5+2cDBp19yZjsnZ16TljDgO2dXN/eAofi X-Received: by 2002:aa7:940c:: with SMTP id x12mr5406266pfo.80.1565119078369; Tue, 06 Aug 2019 12:17:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565119078; cv=none; d=google.com; s=arc-20160816; b=ToReZaXNUdPCvt8sUmShqzf+f82hQFpWgVk7oqCvt63tVghNePr9HjJVjgvO7ZwMCo 1cFRNuhCb34lewfCuGezbk3JIL/AO64A/x65+futTOrdpde5cgjMGKU050xFK5F9mwQg viQBIQHtkQKTAFLz2PfdHiBX+LYlgpsXb1Hrbz0Ls5iks+DZ8ARaZM7fuiYyzQWYHXF9 vvN+0Bt8xpWUp//jlt/ZiIwS9uCNmjykVsqFqOpDkx1SNDbh542bJl0bxXZ/6AYS9aEH xsv/a7AvkgT7POFzwghN8EE6FDgi5dlnuT3cWJEE/BoWHBL35G/QNzSBu6ewcsQSzXnP eXgw== 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=owCwnCpecQSbs/caqA2za7Vs9k9ECThgdFTeVkAl78A=; b=tqtMS6hcXdt1xP1InJt5uyxZ2+Z4uvEkuCbQxy8SGdQE4ItM1ewR452wE+O6AQl1Yi 4JMrk30Epo5HQaysr+ZJ2VYDHHD+UhlhmVTx9ESM9Etqm3q/BNdF9ZvU0fKoI0rQaiRA GpvLaxXEW8BLAZxitTrlwvsioaoMUY/L++a7CC6NEx/oedkuwasNoTEcejhjOYVLgeBT 68iqNVmHWr+kEvDdsBbU1eq8f/YR91P5NW0dYjbQpEl38gRpiMgmszsFTeCCtUA4Zz8C FLI4A9zXro7kfEIWpqz5BVDMV5H9qR/JpPgYfGxixqMnLKwwwUNiCKa8A5wWEf2mkyBe p2Rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=Am+wv+jK; 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=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t19si47800383pfe.94.2019.08.06.12.17.42; Tue, 06 Aug 2019 12:17:58 -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; dkim=pass header.i=@alien8.de header.s=dkim header.b=Am+wv+jK; 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=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726145AbfHFTPT (ORCPT + 99 others); Tue, 6 Aug 2019 15:15:19 -0400 Received: from mail.skyhub.de ([5.9.137.197]:38860 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725939AbfHFTPT (ORCPT ); Tue, 6 Aug 2019 15:15:19 -0400 Received: from zn.tnic (p200300EC2F1369001D2C1334F0CDB20E.dip0.t-ipconnect.de [IPv6:2003:ec:2f13:6900:1d2c:1334:f0cd:b20e]) (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 8C3AF1EC0C2D; Tue, 6 Aug 2019 21:15:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1565118917; 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=owCwnCpecQSbs/caqA2za7Vs9k9ECThgdFTeVkAl78A=; b=Am+wv+jKXZyDH2QYk8i0rbC0iZrXQ5dx4eT5IG6Wupe9Qx9hNgntVLcfhDmR5Ie12QodOL Tuko+hxNGgL40s5NFr//n37X7Rya+nuy+JTitghGRj9ynyZH4sfWgP0DSWyuqTEhqbWZ32 htbNdtKLCjDoACac+6TKaQQ8G45XwHM= Date: Tue, 6 Aug 2019 21:16:00 +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, hpa@zytor.com, x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V2 01/10] x86/CPU: Expose if cache is inclusive of lower level caches Message-ID: <20190806191559.GB4698@zn.tnic> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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 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. Now, why do we have to look at cache inclusivity too? 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? Hmmm? Thx. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.