Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752221AbeAEQgw (ORCPT + 1 other); Fri, 5 Jan 2018 11:36:52 -0500 Received: from mail-sn1nam02on0080.outbound.protection.outlook.com ([104.47.36.80]:30272 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751617AbeAEQgu (ORCPT ); Fri, 5 Jan 2018 11:36:50 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Thomas.Lendacky@amd.com; Subject: Re: [PATCH v1 1/3] x86/cpu/AMD: Make LFENCE a serializing instruction To: Brian Gerst Cc: the arch/x86 maintainers , Linux Kernel Mailing List , Peter Zijlstra , Linus Torvalds , Dave Hansen , Borislav Petkov , Thomas Gleixner , Tim Chen , Greg Kroah-Hartman , David Woodhouse , Paul Turner References: <20180105160736.23786.45026.stgit@tlendack-t1.amdoffice.net> <20180105160746.23786.11850.stgit@tlendack-t1.amdoffice.net> From: Tom Lendacky Message-ID: <29225f25-033b-92d5-2e19-29eb557665d6@amd.com> Date: Fri, 5 Jan 2018 10:36:40 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [165.204.78.1] X-ClientProxiedBy: BN6PR08CA0067.namprd08.prod.outlook.com (10.172.144.29) To MWHPR12MB1150.namprd12.prod.outlook.com (10.169.204.14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: d5716962-dcc1-46e8-6df8-08d5545a82c1 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(48565401081)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060);SRVR:MWHPR12MB1150; X-Microsoft-Exchange-Diagnostics: 1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ujiDxPiGy2aksF67fcefRDWJYzBATiWGO/u8jRqHJEe4yzZ55qO0DoqlGwLkFswNJWkZftEdBulgQgi2qyePRRbusP6NaPByt216lBU9RvfaFK6dYmXZc39qzWuainZ02PJHCWqvhS2muaQMxxJOBmP76KXSp/KtHPGXiPJRT/WbOQ8gnct9C1wbx+LjTQGvDKQ27fbW0P/1eA69uVxlSC2IxCLO2Y3pSUB0GsgXha4z6avR48Yt0LQ7UPNldYM047hqRjzI9CnunOpdtethQmLZlYtBC/zh/6zmzVYAl/M/q3OKJvy5/N17hIY23NCrEzCVSUuvGTvt2gV+xMOgq+UNw5nxDhOQ786hzktZ/5l2;4:tJF7/CciFoyKGalHIFX8WfGKCM/fJ898NPbFJVJYMKAHo84YQTptYemzUFUhnLBGFrhfQgR3fxqc9VE/0Juqq8vyRPJ9uuFKD9qS5tUgsU8QKgQjoD5Fy2bXmqXrHdyWX9tDi1m+Jt84+o+rXRzhbu33zLY+ErDA72frtVfZ6fC5zaN1+WJOWY40MydswkA2/4I5BZ79UdS7APXQw5Vntrf3dKMmw2aT3eYY4EKndaxt8vZ9zBwehL18sQk/IsSZpGrY86YGPcNfqC9ytr7X23d2rU0C1JMWqO8Cg0pElOo+aKt+kPnREVTjItt4A1Q8 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040470)(2401047)(8121501046)(5005006)(3231023)(944501075)(3002001)(10201501046)(93006095)(93001095)(6055026)(6041268)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:MWHPR12MB1150;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:MWHPR12MB1150; X-Forefront-PRVS: 05437568AA X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(39380400002)(39860400002)(396003)(366004)(346002)(376002)(189003)(24454002)(199004)(90366009)(77096006)(36756003)(2950100002)(305945005)(6666003)(68736007)(65806001)(66066001)(7416002)(47776003)(65956001)(6916009)(5660300001)(65826007)(229853002)(64126003)(105586002)(106356001)(97736004)(31686004)(6486002)(50466002)(53936002)(3260700006)(76176011)(230700001)(7736002)(31696002)(2906002)(1411001)(72206003)(52116002)(478600001)(16526018)(83506002)(59450400001)(6246003)(54906003)(58126008)(81156014)(25786009)(53546011)(86362001)(39060400002)(386003)(316002)(3846002)(8676002)(8936002)(81166006)(2486003)(4326008)(23676004)(6116002)(52146003)(16576012);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR12MB1150;H:[10.236.65.116];FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtNV0hQUjEyTUIxMTUwOzIzOnF4d3dLU0FMZW5VdGNSak5sYUVGK2JXcjdq?= =?utf-8?B?Y2pPRXkvS1ArQkR0QlNmR0pFTzQ3RmJIN0JFUEhWK2VBWk5JSDlnSllZeURQ?= =?utf-8?B?SDh2azBXSlRXWkVxU1UxREZjMC9HU1BhL3RIeG5HVGZuMWtlT2dGZm5xQ3Vy?= =?utf-8?B?YkZhM0RhUTBMbHVqYTdkZHZJTG9CMC9veFBDMzlvMmRZMXNuSUhPc2xra1hI?= =?utf-8?B?RFlWdHJDS2J2Qm5GRzJLdWlIbk9KaU5tK3Zua3hOS2JSd2FZWHgraEU5alpI?= =?utf-8?B?RzUrb2FrSFJnSUEvS2svd1RrT1A0eGhCbkk2N2xGck5iL3FlL1pneEk3QU1V?= =?utf-8?B?NitjeENYd0hYTFZlYkZTK1BoZWg3WG5haXo1VGh4VUNkVlJPcWFvbGxYejNy?= =?utf-8?B?ckkwN2J0d0tJeUs1VVNGbkN1SE91MkVDcXZiMzgzTWcySXI3OW5Ha1pQaHJZ?= =?utf-8?B?QzBRY1dSWm5QT210dWNONkdNTGtMU3YxWEtzVi9HYXBWcm5DaEVqK1hlYy9o?= =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n4tymZETejTNIkiFeANYE9VsbqjkK29OdgfbZlEfeKF660DR7fDJBcU1hogyCTIlJzrlLKb0Vnad3lKsXCb4RE/fi6ynlbRY8X23Dt1vc=;5:FIUDIWq+NiiD9mMioDF13+r6xflINdsi0C9PxJcXCUVbutbBXgnOxzsojiTDxEg2vpOO943GLqOoS/mxU5gYma41xg7SCs1Q9TxeaiEuYI6vueRU1E94izt1elBI13jdyuHLh22UHCmdyYbpDT8rLzd9QqoRsC34KvbYa3dwoyY=;24:LA/4tRs58bKjC48FGN2+Df2VhHIetybGG/tUsE9Tn4iSznz1fve0IgGMxB+RLTNPsDCG9w4LHe9J1GFSbM2Tb0acpBvWx6uPFXFvkCwiMBM=;7:GLP1hEFZbzdMoX+XohsNjb38ESsW3QQVQdsHRdhl8qLuLyAJz549kfQYgxj0NWkQ6ITFIJcg+v6+KiNgu3MLMqbdZgxDr79z8Faq8fHfzgVHMZulMWYP6vmgbo2qvwccgv2+GGQGmdc+Yb3EjMCwjnI9CbWKOXTHpc7zjqxEmS6/1l7d4bEs562ITcXXTHgAn+5fp0lp8mLrGtJqI8dvIHe5WNCroELuAS/mUMFqHzPB8X6p3wy19FV4vdp7xC61 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;MWHPR12MB1150;20:gjtMXXOFqYhgOAIxKjJGJWhAJVQ3ucCfxM6vhaHsxeSl96DgE7Y4nasCKXfLEaLEKpKOjGrEVS/dnyAqWnMFD/VhvLJBBfX3bvkpvN2cg74YFU8A5xBPMK5neGEROgvwJVuxiEuORea/Yod3z410lQ6XsMXMSTzdS58wekpKCbceOONn354KoUz+lwi8ARnm+QSivFnGkzSxS2cksnCM82J6zWbNCBxgxMzhOO/qfASzA3B8jImOOxhxKbiF3aOn X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jan 2018 16:36:44.0766 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d5716962-dcc1-46e8-6df8-08d5545a82c1 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1150 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On 1/5/2018 10:35 AM, Brian Gerst wrote: > On Fri, Jan 5, 2018 at 11:07 AM, Tom Lendacky wrote: >> To aid in speculation control, make LFENCE a serializing instruction. >> This is done by setting bit 1 of MSR 0xc0011029 (DE_CFG). Some families >> that support LFENCE do not have this MSR. For these families, the LFENCE >> instruction is already serializing. > > Does this require a microcode update? No, it doesn't. Thanks, Tom > > -- > Brian Gerst >