From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751613AbdK3TUy (ORCPT ); Thu, 30 Nov 2017 14:20:54 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:39396 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751130AbdK3TUX (ORCPT ); Thu, 30 Nov 2017 14:20:23 -0500 Date: Thu, 30 Nov 2017 20:20:10 +0100 From: Peter Zijlstra To: Dave Hansen Cc: Ingo Molnar , linux-kernel@vger.kernel.org, Andy Lutomirski , Thomas Gleixner , "H . Peter Anvin" , Borislav Petkov , Linus Torvalds Subject: Re: [PATCH 15/24] x86/mm: Allow flushing for future ASID switches Message-ID: <20171130192010.n73yjnsiwyyu2qnz@hirez.programming.kicks-ass.net> References: <20171127104923.14378-1-mingo@kernel.org> <20171127104923.14378-16-mingo@kernel.org> <20171130154414.aekkjd26p3hxyqwa@hirez.programming.kicks-ass.net> <3ca0bea7-932a-6d91-a9b4-d07045d444f5@linux.intel.com> <20171130161844.v7ynfdggo6g7j5l5@hirez.programming.kicks-ass.net> <20171130185510.5s2a4pi4jwukbite@hirez.programming.kicks-ass.net> <31ed5412-ac29-64fa-4435-144d310fb1b1@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <31ed5412-ac29-64fa-4435-144d310fb1b1@linux.intel.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 30, 2017 at 11:00:06AM -0800, Dave Hansen wrote: > On 11/30/2017 10:55 AM, Peter Zijlstra wrote: > >> __flush_tlb() does a flushing CR3 write that flushes the current PCID. > >> If we need other PCIDs flushed, we have to do it via the > >> tlb_flush_shared_nonglobals() mechanism. > > But the thing is, you _cannot_ have PCID enabled in that branch. > > Is there some hardware limitation that I'm missing? No, but in setup_pcid() we explicit clear PCID if !PGE. And as you said, there isn't actually any real hardware that has this combination, so who cares.