Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752059AbdLEVKH (ORCPT ); Tue, 5 Dec 2017 16:10:07 -0500 Received: from g2t1383g.austin.hpe.com ([15.233.16.89]:42875 "EHLO g2t1383g.austin.hpe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751416AbdLEVKD (ORCPT ); Tue, 5 Dec 2017 16:10:03 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=abanman@hpe.com; Subject: Re: [PATCH 5/9] x86/uv: Use the right tlbflush API To: Peter Zijlstra , CC: , Linus Torvalds , Andy Lutomirsky , Dave Hansen , Borislav Petkov , Greg KH , , , Brian Gerst , Josh Poimboeuf , Denys Vlasenko , Rik van Riel , Boris Ostrovsky , Juergen Gross , David Laight , Eduardo Valentin , , Will Deacon , , Dave Hansen , Ingo Molnar , , , Borislav Petkov , , , Mike Travis References: <20171205123444.990868007@infradead.org> <20171205123820.134563117@infradead.org> From: Andrew Banman Message-ID: <5aed7d7f-b093-b65c-403e-46bdbcf9bc5a@hpe.com> Date: Tue, 5 Dec 2017 15:09:48 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20171205123820.134563117@infradead.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [2607:ea00:107:3402:aca3:f80a:af4c:7f85] X-ClientProxiedBy: CY1PR03CA0017.namprd03.prod.outlook.com (2603:10b6:600::27) To AT5PR8401MB0355.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:741d::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 51c8ffd0-fd17-4319-d410-08d53c24892e X-Microsoft-Antispam: UriScan:(222181515654134);BCL:0;PCL:0;RULEID:(4534020)(4602075)(4627115)(8989060)(201703031133081)(201702281549075)(8990040)(48565401081)(5600026)(4604075)(2017052603286);SRVR:AT5PR8401MB0355; X-Microsoft-Exchange-Diagnostics: 1;AT5PR8401MB0355;3:Bl1y9Ind5CaPvxPw1Skw2rubYhquyfl8RvyGX2qVqjjzEqSrPl2fNjbVQiPAkaqaMr38wqe/ZsxgiISmNqXk5YY0fJsFI8pOtJKiYafmjTeqO2lsc1QBj/bHuTfrB4k2qYTq6qgubj2L3SW+fo7dyTulA7daWAmts8CYSWlO2PjMCCusvgNqa9QNV8BD33qWECl4gj16Vg0lhyXMYohZFwIf6R9ajc6i/+Jfm9RnR3i20X+LMd6/Slf9CgjUbwAk/tdoa42okfk+azIN2rYk5EcOQOnWOEfbSTOIM5RQJsM=;25:EGRCdqYSjWn9p04GA9buS6AE8vpt2yZQ/kvtnUZvYR/6hsORUQqM+yAqh/UyntvBZtvP3kS/F1vgQrWJw7RJqM/OR/9JFpG8rWh5V5qiXpKdQ4XEnugxJgVhQoKncS1zRLaorv/5h3keghJ2jHNM4C654vG4durakT/DMyAlWc834N3oPuogCTSH5EYx/rtntMkfqHoEorngkv4jM7dzxUmhzOajAQHM69q8z678L5yQWNVaWjBmksdc/+R51KqpVDwYI4Gee3gpdiLDc1C0Ajc7GCQcJDM4N7KnUNIcGMverKgIktoQF1vEzYtcbpNcf8/NpMAXB0nwtdp4GQj7HA==;31:QA0kf7QTs7vXF2qUS3cZbm9/ClIJuGSGnIwcoAP7ujGqqYu3pzpOnjfAPfk5AWAJaUD1YkRDmiBFinQo24+6hdixZqqDf25urwL39L6wiu1wsgUV7agKknSUZDgR3D4FajRvWIacENMb/DIYhhZiA7F4kj8inhX9wXXhmwbMGuObWCoFOzqrS5lPjjRzkAWglee/BjgVMHF59CY4Uz+GwpiZ45nUpVoUXCwCZ5lPVF8= X-MS-TrafficTypeDiagnostic: AT5PR8401MB0355: X-LD-Processed: 105b2061-b669-4b31-92ac-24d304d195dc,ExtAddr X-Microsoft-Exchange-Diagnostics: 1;AT5PR8401MB0355;20:qUyeLKZWmPCaY76r09z2vplttOJBxw5neOfRl86EJ/wR3WJrWvdRZAtDUEzYo/UMU3vBeGhMv7W3k9zTP8hUiB0xND8GLjyz/svD0H0PGVyYWwYIxBgkZBBAuPIsKMEJwNhPuRVaeIwT6h9AY926E0rZGRJRpmpVhu4VfaloT8Psj5vBtHyRTjw0ml5ZAB2A7zylmuooapHAKSqnPNi9fl2vODpwDp+ieftzM1aWVYyR0h5Rzbf1z/jpVXNo/HHoUkycvuRPUPvhprG5H0JDiMzI8MQQNmDp0PNzueXR1qIgqGq5yKCJnsGf0wsL1JE1jOWC71NYgWpB1Zy2FMgYxzlRKo8HHc/82IKOAOS58hSxP+24mmiNdg38ETgyr8jwmGIIwDfJQ5efM8mU0uAPUVPaoTDikI11iIEUzZyKy4EEux6rgg2yYgRjDxWBI/6NrVhH77kCcKrFadvsnresdy16SBf9NcBS4JOSZtPaGpwKjbIZOo9HMo+0xivIfarF;4:Lg8msQBTfenlQrDqzZuXDgnVstfxcjhEBzosBj8Re6nT9DDOVGDusR8ayZwGDiZyug6hczqKzboKuWR771ztoB7SXVKElDSr0tUT4fh5kpYD2Xvk0kPUbDyd84SC59EY/jvRC+ctnj0gRJ1lTT0CNJWyuAxdcUVX7/fwvJVAghSmdy7aEHTF9Dr749upBMeTqN4QZWZGfThR2zIRgTQMxhL7kTuqbzNaTUNL3o9ZcJp8xEJGI9Goeuwy+OmQhx1gRQpyDUTCtFZrQ+JjGKHJhAD1bTF/+AJU/nGARrKNAUYAPRptL5kX8NlzAV1B75uxdj2Chhr1yq9d3no0JeCGZSEYMRaKvtdjJvg7Lswn3JE= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(227479698468861)(222181515654134); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040450)(2401047)(5005006)(8121501046)(3231022)(3002001)(93006095)(93001095)(10201501046)(6055026)(6041248)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123562025)(20161123564025)(20161123555025)(6072148)(201708071742011);SRVR:AT5PR8401MB0355;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:AT5PR8401MB0355; X-Forefront-PRVS: 0512CC5201 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(376002)(346002)(39860400002)(366004)(24454002)(199004)(189003)(6666003)(7416002)(50466002)(65826007)(5660300001)(2950100002)(25786009)(64126003)(83506002)(316002)(36756003)(65956001)(47776003)(101416001)(39060400002)(86362001)(6486002)(478600001)(4326008)(6506006)(53936002)(6246003)(31696002)(6512007)(229853002)(65806001)(33646002)(7736002)(76176011)(81156014)(305945005)(81166006)(8676002)(31686004)(53546010)(52146003)(8936002)(67846002)(2486003)(6116002)(68736007)(52116002)(58126008)(54906003)(52396003)(23676004)(97736004)(2906002)(106356001)(230700001)(105586002);DIR:OUT;SFP:1102;SCL:1;SRVR:AT5PR8401MB0355;H:er-10-130-113-172.wireless.umn.edu;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtBVDVQUjg0MDFNQjAzNTU7MjM6MkUwNEo4eXpibFhvNExjU2FXVVpsREtl?= =?utf-8?B?cjdza3FITTVzWE0zOW5mZUtsQUxYQXNZMzBYVEhtUU1BL3hCQmlLb3owNlJy?= =?utf-8?B?ZWNPMW1US2JQZXV1SnNJbWZ4VG93RWlwMXh2dXVEVjFDaTRqWW5NVTRYY3JG?= =?utf-8?B?YlhkU3FLWDdjK3dLK1U2c2l6cTFBbk5PZmEwRGZ3Q29mN1NSenFTUjdKTHI2?= =?utf-8?B?RkVDOWFWb0NRUDcrTzN0MldaM1owd3NWYVpEV0RTT2ZoOG10WkNNK3ozc0dZ?= =?utf-8?B?SGg5c3BoRlpUd3VDRWdkaGlLT3hqYmQvQWc4MDI4NTIvQ2N0SFZHcS91OGJN?= =?utf-8?B?a1V2TWRUeEtZQVdacnMxZnk5VkJseVJaRlI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ZDWl9WV3WsDpMKhXTOlXt9dCdsBZu1S0n4qcO/ofAmE/8Qdm+G7VJ8bf62KV3Ov+JkteC01BSm2wWg12GIYMz0YhwMl+Ocfv/ZEP1v/n4lNL7p3hXYDHxlHfBtpugKQV1TUPjeL9dGyZObX2ro6C7+Bt1a2XpFW4PmTMd3Eyb4=;24:DLvdON2g73QkWR+E+hyJZQqk2qX6cB/Tgu8g8wLjJFlokCDi6U4yFj/t11wXQx4lWRGzO6MNrVrcFOs8r/M6quHpdZcjYG1QZFJH7adaTUY=;7:Tgh5U9VqD9mjrApYY5lwIkFYH98voqIN4By/KPCOD3T4HPyusxUHSNK9SA8mm3cPB6NMbIBI4C6P3JZKl3yyt20WaOfJ2rysAayh4qVQaH5YZiMvBIL6TdIUGt/rOEVsm8E186KwLx0cSjp/YXfBh15StXXX7bCF1h1v9vhcDcbPWnfnZ+skrSHvqaQDcv3YtILUkERZBiXSnedxA0zaOsoZJPoGdfSRB6TngyLicPS68uDs4XulNyrL9OZWcebB SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Dec 2017 21:09:53.3642 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 51c8ffd0-fd17-4319-d410-08d53c24892e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-Transport-CrossTenantHeadersStamped: AT5PR8401MB0355 X-OriginatorOrg: hpe.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 998 Lines: 31 On 12/5/17 6:34 AM, Peter Zijlstra wrote: > Since uv_flush_tlb_others() implements flush_tlb_others() which is > about flushing user mappings, we should use __flush_tlb_single(), > which too is about flushing user mappings. > > Cc: Andrew Banman > Cc: Mike Travis > Signed-off-by: Peter Zijlstra (Intel) > --- > arch/x86/platform/uv/tlb_uv.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- a/arch/x86/platform/uv/tlb_uv.c > +++ b/arch/x86/platform/uv/tlb_uv.c > @@ -299,7 +299,7 @@ static void bau_process_message(struct m > local_flush_tlb(); > stat->d_alltlb++; > } else { > - __flush_tlb_one(msg->address); > + __flush_tlb_single(msg->address); > stat->d_onetlb++; > } > stat->d_requestee++; This looks like the right thing to do. We'll be testing it and complain later if we find any problems, but I'm not expecting any since this patch looks to maintain our status quo. Best, Andrew