Path: csiph.com!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod From: Alex Shi Newsgroups: linux.kernel Subject: Re: [REF PATCH] x86/tlb: just do tlb flush on one of siblings of SMT Date: Wed, 06 Apr 2016 07:20:03 +0200 Message-ID: References: X-Original-To: Andy Lutomirski Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=A8YLWNXCTB3kldkkxdW35dpf4/MVELO1zsNVw11wRJ8=; b=LF2PxcYTP9I9FPSYWd07ETuLv5PhPHGGaom0sxrbSq4YUeH5pPxu0Ba6uunRKZ5UQE XC2XZb0BNcA5uol26DBOIbbfIi4YjdxL0BBEQi86mF9y9g4+hMI62fq0Wahj8VeC6Lu/ ozd1Kg7Ap1oynxIWGoPgXkvf/1ZgZSAQIsMZk= X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=A8YLWNXCTB3kldkkxdW35dpf4/MVELO1zsNVw11wRJ8=; b=jQ9u8CFHsR3kjz39/CHgxTJf2tlNfAPyWM3H+Fku6YHfGWIPelUu0pWkwpL5cWcJy/ bWk55IVmKapJTyRS71/R2anxSzChw7nqDfPah86inva1vGOYCvRwU/A8H76xpdHPC4IB Fn3grl12KfhC9TDu3PBc45SDE2jKSZMMsiPF82otCbQFvIe1xozOBg2nwkQVd8Bx/0BC LLVwxKFXsdLRvBl8ARStzxi/FBWe7C/X2WpduXxkec3RkixHeZHfvd0IG9fv8YopZcpa +7azQJMPb/BzdgDTKKLGkGTIjAUDxe/P84JIcBme97V0D9tv23cq6DJ3MF28dIs36eti avMA== X-Gm-Message-State: AD7BkJLTlHni7g7Ds9q5xBzlGGRdvfpuHvdOvWMiT+ZFxhb5KwTwrGxDiZPtX1zIrvvTdfMt X-Received: by 10.66.157.129 with SMTP id wm1mr49784708pab.159.1459919728687; Tue, 05 Apr 2016 22:15:28 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: robomod@news.nic.it List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Approved: robomod@news.nic.it Lines: 30 Organization: linux.* mail to news gateway X-Original-Cc: X86 ML , Thomas Gleixner , Ingo Molnar , "open list:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , Andrew Morton , "H. Peter Anvin" , Rik van Riel X-Original-Date: Wed, 6 Apr 2016 13:15:23 +0800 X-Original-Message-ID: <57049B6B.1010009@linaro.org> X-Original-References: <1459912457-5630-1-git-send-email-alex.shi@linaro.org> X-Original-Sender: linux-kernel-owner@vger.kernel.org Xref: csiph.com linux.kernel:1372199 On 04/06/2016 12:47 PM, Andy Lutomirski wrote: > On Apr 5, 2016 8:17 PM, "Alex Shi" wrote: >> >> It seems Intel core still share the TLB pool, flush both of threads' TLB >> just cause a extra useless IPI and a extra flush. The extra flush will >> flush out TLB again which another thread just introduced. >> That's double waste. > > Do you have a reference in both the SDM and the APM for this? No. as I said in the end of commit log. There are no any official guarantee for this usage, but it seems working widely in Intel CPUs. And the performance benefit is so tempted... Is there Intel's guys like to dig it more? :) > > Do we have a guarantee that this serialized the front end such that > the non-targetted sibling won't execute an instruction that it decoded > from a stale translation? Is your worrying an evidence for my guess? Otherwise the stale instruction happens either before IPI coming in... :) > > This will conflict rather deeply with my PCID series, too. > > --Andy >