From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (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 D0F64188736 for ; Sun, 22 Dec 2024 11:38:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734867499; cv=none; b=ClIK45IN3i4O6LYRO+iLljjtgfze2wcKvrdre6DD7SsQXWXkkfNiueSwziIojYLihiEwlQiLtt/fCVxHpeKoQqiSV1sy68VJtFWOC7BoDcehDezmFOuDKtCQKPvfEE9IaPKjjZdZ5UciSXiTeLlPGC5DkUwI2gG1CTz7rxiMu1M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734867499; c=relaxed/simple; bh=w/xU1iRQe4eAZKX9vPL1XmEiGhMsMraObAImxgw34mo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qOqd21jyJ5+aI+s51Bk9GWdReUvJzCZso52wwTsfxdKvYK1FLvpT/mpGgPWHuYjMOKNrRXf/DV+yRwiQNDAtAVF8J6gLZgE3yoogvQ8HYGgwM3fKRD3eeqXUPgWBpFK9SxKwIMyUvwiENxUfP5ECHzz6r8UTcZJTNpPCQMTnOn8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=Jmy5RWUo; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="Jmy5RWUo" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=ADS1zi6eoZ2vBF/uVQpP2wlef0B8WQcUhM1onyic5G0=; b=Jmy5RWUoZ8MMw1MQ5CUhQEhVxG PQxu2u0Ahg3n3OlZAFkM4458JJEq28C2Of9tpdlqAkKsXi5vlPyICC/iCPcj6VERJI14HLCKfC98/ JtIZHq+kladj6N5siLks2gwyLEpzxQL6pQInx07NQK+rEvJP1T5dMCSwwsR1tbsBJc0b9KznKWhKQ Z987gNEEVESAX12MCBkxE/9Re+Yr1PJZFfiNjAWHhjZd2aX1h4Na27DSwOpx4Zrs8DxIPTRJv8Xn1 Qwyh3vZHsyzOmSX2oNgj8n29g6NssfIuGEPuu/wailIyahh9mJ2BrvUyo0TEOLKZOBPCWFA0zPxah R6WEYmog==; Received: from 77-249-17-89.cable.dynamic.v4.ziggo.nl ([77.249.17.89] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.98 #2 (Red Hat Linux)) id 1tPKHj-0000000AXAu-3fM7; Sun, 22 Dec 2024 11:38:12 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 9D8FF3003AF; Sun, 22 Dec 2024 12:38:11 +0100 (CET) Date: Sun, 22 Dec 2024 12:38:11 +0100 From: Peter Zijlstra To: Rik van Riel Cc: x86@kernel.org, linux-kernel@vger.kernel.org, kernel-team@meta.com, dave.hansen@linux.intel.com, luto@kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, akpm@linux-foundation.org Subject: Re: [PATCH 09/10] x86/mm: enable AMD translation cache extensions Message-ID: <20241222113811.GY11133@noisy.programming.kicks-ass.net> References: <20241222040717.3096835-1-riel@surriel.com> <20241222040717.3096835-10-riel@surriel.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <20241222040717.3096835-10-riel@surriel.com> On Sat, Dec 21, 2024 at 11:06:41PM -0500, Rik van Riel wrote: > With AMD TCE (translation cache extensions) only the intermediate mappings Only the leave mapings, as written this all don't make sense, > that cover the address range zapped by INVLPG / INVLPGB get invalidated, > rather than all intermediate mappings getting zapped at every TLB invalidation. > > This can help reduce the TLB miss rate, by keeping more intermediate > mappings in the cache.