Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp23820rdh; Tue, 13 Feb 2024 08:17:30 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUqMiV2NNvPSYQ21Fk+NUH70X/foDf6zPEYXsM9dXr22FY2KKL4yz8D5rVzjxm/D/sFA3/q8MixXQmr9Vg93vn11f332r66DhnyZuMB3g== X-Google-Smtp-Source: AGHT+IGsYpj58rRhdN/8TtQgxHTTnm4YTBNJ9CVr3gNfgZNUUZmZlmYhPAqMOk0rt9z7smiCq7sO X-Received: by 2002:ac8:5e47:0:b0:42c:6a55:9ed7 with SMTP id i7-20020ac85e47000000b0042c6a559ed7mr11311655qtx.14.1707841050049; Tue, 13 Feb 2024 08:17:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707841050; cv=pass; d=google.com; s=arc-20160816; b=POq8gmjKWy0LlfD2ND7XcBOgLAwseyihvaT9tV00QBZcFdwCI6iegyQ4DjN5ljeyeh QSqC+dsUuWSvuApoexs4qNUNi2QeDmhtMdzDhCbz14prRWNfpef6uWk7AZCAm/dIuYwH 95nOY0rvIT9nin5ETwCf91UdI/02Vp8IQZ14jpsRI7A8J5Sl5IfEzdPeIFWCByB/dWqm iEuOZo05b0HtXfRenBHF2WN3e5n8yeec/729EiLFkJPQjx765SUw9tQFXrqISeWhNcM0 ZVFg+jFM7kc8n20D6wCinKvqFc7CCIZpUmQ0YwGS17HyksJCP6vXGJGPaRVwG5YQmzg/ 2pMQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=rLQLnzuEPEpSul3JxQ9UIClohNnaVnYwJKBIsFYZMNU=; fh=RTkhkBcr/Rog2vLEnPBYjVx6NSSKq5oM9u0w3C2zy28=; b=CL17YSzaQWqXjyWftbwWdZedpCSFc1VQyMTG2IUs0WZZ8H8fZOpyWJmhbaLYkHVt/4 IqqDz/tYGbM1UYbptaDwjxmPCHrV5Ucbe4RBgVkDVUDo9ZG5Fiym0KRMfQvKp5BH96Qi u/UbqQht1Dtc8fYDpunE+CZfirSm+ySt4h4cDKEK0rNPLYEbrlRc5orXKuwu9zBne1ph D1Qh7uR+clAXIfjYffbn9NwUWHiPjUEhtcgE6OU59AkGn9vXveoZa7mJ50YFcQNldfCw emZC4/ayJQuT87FNGvjrEUEytmrB9Hts/HLp4U/3HhJjUgz2tIUpJzKxqSiAY9kigqpG TUeQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=UTCxPIT5; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-63875-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63875-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de X-Forwarded-Encrypted: i=2; AJvYcCWFvTT7qQE0dnfiKQthXeA/HiscFjkIXDkKZG29sBPl62PSzBApEKxyU4DKtCJTpUYCAUEE5uNaikfAWmonS7eBRwVrwHcRUUWlyAggmQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f11-20020ac8498b000000b0042c77556e83si2922469qtq.371.2024.02.13.08.17.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 08:17:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-63875-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=UTCxPIT5; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-63875-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63875-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id F29781C2710A for ; Tue, 13 Feb 2024 16:15:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7B0275F865; Tue, 13 Feb 2024 16:15:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="UTCxPIT5" Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6ED665F84A for ; Tue, 13 Feb 2024 16:15:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=65.109.113.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707840938; cv=none; b=ZQfWEs9RDwU2mqG8Tuq2oETvAh1GWTcFXjShL6fK1VSPZDPsOlAvnEnOa48ghb/4hOwkpGWmHnyaoRCPKU8qRzbPbZEs3nddlb3AEH5tFvvJxZ2pLysUbtW2O9563BC5ZfY+DmAXdzwFwE5Xfss0UtdxE+OvPPrczSIHeUw6RXQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707840938; c=relaxed/simple; bh=kuxffWKDBhwyo0AylZJcICbz2iJj+buD4hrhfjfE9p0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Fm70JtvLsPKvTmb2j6t31qrV+Cwnsrb3bY+C42FDp3NAbrjheVQ5y4BOXEHXzv43xMxofK7UbUneMrny07nMrhiCvpT21i8dW+oGV+mw6wF67hXlpjzeuxsZe9vDHtGEdnYPIINYyQZ4LIqH//w5M9co+2rDEt/kJYCqfMp5Mp0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de; spf=pass smtp.mailfrom=alien8.de; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b=UTCxPIT5; arc=none smtp.client-ip=65.109.113.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alien8.de Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id C2A9B40E0192; Tue, 13 Feb 2024 16:15:32 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id FrYSjfBi8-K0; Tue, 13 Feb 2024 16:15:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1707840929; bh=rLQLnzuEPEpSul3JxQ9UIClohNnaVnYwJKBIsFYZMNU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UTCxPIT5f9uWOMZ0cg+sG5MWAsHW0iuPyMxrOsMADj908Z0SBNm1yd/9U+jSZEoY4 f5xpA2Yka5LOX3MJzPMgj8bDD0ED1ioefkEig7tObctHwOUJDr6oDsu9Bextcyf+EZ UKJFa0z0bcjEvcBmgbPR91H64rsjVGV2DSESKmXGOZ5+fON4nKspvQMcmBlkmVeKKD 5Nc+Lz2hw5GL7fMP7yTgzX6Thvuh2TtURgvpmSGVk4JPVOpsRNSNOHAus2mfknZW0b CIkgWjYzftgs+Fw3zHvgPIdk0e/0RyT05Rwun+ev6mH4jLeBg3dKL7SUDPKjrDKlNu x2TYhlsZUnq1rsosoN9MP2/z4AFeeDIaynE6SKdIy4na2wCDCxP8G4YxoHw/Ngv3AA OC7P7xhLGddDWKDp46HNmQmowCGuZr/YwjLmfg7OH4jRwUv2AZ0XvY31EBJXnSgBgT xALADCn5yarOSuWnv0HSyL8fayMx+OVAi36a9etl+dyy7HtDoelVJ2YfH1R65j+iYC Pj18D6fs3oTDYrat6JnQIn6QkixcyoquIWpe9rbbGampklFrAKQqLThrXBnWrsbITg sG1boQtsthmu5M9Oyr1Ryj344vXX9uLQvRudggnSHrIjfLRdO93U/jcqd+1264Q861 cE/gcT5+31nyh0xITWTdvVTY= Received: from zn.tnic (pd953021b.dip0.t-ipconnect.de [217.83.2.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 73D5840E01F7; Tue, 13 Feb 2024 16:15:21 +0000 (UTC) Date: Tue, 13 Feb 2024 17:15:14 +0100 From: Borislav Petkov To: "Kirill A. Shutemov" Cc: Dave Hansen , Andy Lutomirski , Peter Zijlstra , Isaku Yamahata , x86@kernel.org, linux-kernel@vger.kernel.org, Juergen Gross Subject: Re: [PATCH, RESEND] x86/pat: Simplifying the PAT programming protocol Message-ID: <20240213161514.GCZcuVku13t8p5wHnj@fat_crate.local> References: <20240124130650.496056-1-kirill.shutemov@linux.intel.com> <20240131175738.GIZbqKEhlDKhaKfh_w@fat_crate.local> <67hqgqargmt6nln5mds672g263lka7glyzbvcdgt4owdg7xc2e@v6wvuizw5ond> <20240131202340.GLZbqsTJkeFQycXT0B@fat_crate.local> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On Thu, Feb 01, 2024 at 12:17:32AM +0200, Kirill A. Shutemov wrote: > > So the "relaxation" is the removal of that CR0.CD requirement? So I'm looking at the SDM, revisions 081US and 082US. Section "12.11.8 MTRR Considerations in MP Systems" still has "4. Enter the no-fill cache mode. (Set the CD flag in control register CR0 to 1 and the NW flag to 0.)" and "4. Enter the no-fill cache mode. (Set the CD flag in control register CR0 to 1 and the NW flag to 0.)" so where is that relaxation written? Am I looking at the wrong place? > And double WBINVD if the machine has no X86_FEATURE_SELFSNOOP (before and > after TLB flush). That's still there too. Steps 5 and 11, respectively. Hmmm? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette