Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp6507277ybh; Thu, 8 Aug 2019 01:09:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqz0yTY1O3FUG29qVBhkS7PT1xMXO1/DvwPBpNuwDEuz/3YlpJc44KTjyYIQBYS9qSTopu6c X-Received: by 2002:a63:fb14:: with SMTP id o20mr11449449pgh.136.1565251771841; Thu, 08 Aug 2019 01:09:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565251771; cv=none; d=google.com; s=arc-20160816; b=runsw42qGKAjZbw5ZdsuMWejsMY7NxRHfUT/KYfCoWUJfyDgBMpprnZW2WCI0RRq00 H89rN8s5o7tVMpIRZYUHP+HjKXuFyj0hNhHX1znyIfuczf4y2nIujdTFEJSddhQaEx2E jQcsDoKUESrR8dB84l4ulQyCkRSOYR5wh2/bHNkr+qfUnQGyfytxT6c2Zhgdhdn6AR2l TRNnLeqFma7vruOCt5braFKrxTZZtLJGpgahN/NjSntOfqjioGHB2T5SUd0jlkzbNWpK SxB8BIZgwugktw5c2Cha3b+Byj7OG2CWrQAYkXgB4yntmzSqJhDTAs/rc8yInT1JnvNv SUGQ== 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=rc80BBrVYz2/MVH2OYw1CCPq3Xf4SRzXHnHyfmI+Ffo=; b=agQVUXLQyEDYoJdT6hqwZbC85YfE3Ajw5bD5Ze4sVSH/wOkEqDUfoBM9t4pjbajZ6O 6FDk/8xj8MIvH8HN/cv+whucLdAo1suLYZ/Gr/u3bKxov5MVwWERe52gm+qmNACf94Ej rXVwxZOwmATKwn5urZheU6gWofmdaNN6Cumpeec8QUVZjgEE4yWsj7IG+2Gu4VjUxG3b wsabSHNz3aY/Hy27wE7AyZ8JXm1EBd/qmxNhR3CNUIppJgIGRiuEuUk/pbZivWkFKIFi P9hlZ34MbvlcKxsyBdu5AoDtlvJM75MO1+Sf41CmBseQxPZqu6X+udFn5o2YBQhrx7Zc Xk+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b="mtT9v/Qp"; 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 v11si1443146pjn.44.2019.08.08.01.09.15; Thu, 08 Aug 2019 01:09:31 -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="mtT9v/Qp"; 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 S1731886AbfHHIIA (ORCPT + 99 others); Thu, 8 Aug 2019 04:08:00 -0400 Received: from mail.skyhub.de ([5.9.137.197]:53742 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731658AbfHHIIA (ORCPT ); Thu, 8 Aug 2019 04:08:00 -0400 Received: from zn.tnic (p200300EC2F0FD700B5ECB790597D1186.dip0.t-ipconnect.de [IPv6:2003:ec:2f0f:d700:b5ec:b790:597d:1186]) (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 4C0461EC0BF2; Thu, 8 Aug 2019 10:07:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1565251678; 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=rc80BBrVYz2/MVH2OYw1CCPq3Xf4SRzXHnHyfmI+Ffo=; b=mtT9v/Qplf9BXzeub/cJvFGzb5d+rlX6FAzg9WDo1HVRQUsdPPE6Wmx3ilgCn1vdNLpM2L NXiWro8/CJYra2BMEkIzk2ZVYW+rQi6u2EC2nluLz/PuVKM/AoBUbVUeAcX8BGF2ykTzhO rPgUfBdYFKUFAxyQLWmojK1oj0XqloA= Date: Thu, 8 Aug 2019 10:08:41 +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: <20190808080841.GA20745@zn.tnic> References: <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> <98eeaa53-d100-28ff-0b68-ba57e0ea90fb@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <98eeaa53-d100-28ff-0b68-ba57e0ea90fb@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 Tue, Aug 06, 2019 at 02:16:10PM -0700, Reinette Chatre wrote: > > 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. Ok, tglx and I talked it over a bit on IRC: so your 1/10 patch is pretty close - just leave out the generic struct cacheinfo bits and put the cache inclusivity property in a static variable there. It will be a single bit of information only anyway, as this is system-wide and we can always move it to generic code when some other arch wants it too. Thx. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.