From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751105AbdEaJro convert rfc822-to-8bit (ORCPT ); Wed, 31 May 2017 05:47:44 -0400 Received: from tyo162.gate.nec.co.jp ([114.179.232.162]:59204 "EHLO tyo162.gate.nec.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750995AbdEaJrm (ORCPT ); Wed, 31 May 2017 05:47:42 -0400 X-Greylist: delayed 351 seconds by postgrey-1.27 at vger.kernel.org; Wed, 31 May 2017 05:47:42 EDT From: Junichi Nomura To: Mikulas Patocka CC: Dominik Brodowski , Bernhard Held , Andy Lutomirski , Toshi Kani , Borislav Petkov , Andrew Morton , Brian Gerst , Linus Torvalds , "H. Peter Anvin" , "Ingo Molnar" , Thomas Gleixner , "Peter Zijlstra" , "Luis R. Rodriguez" , "Denys Vlasenko" , Josh Poimboeuf , "linux-kernel@vger.kernel.org" Subject: Re: [tip:x86/urgent] x86/PAT: Fix Xorg regression on CPUs that don't support PAT Thread-Topic: [tip:x86/urgent] x86/PAT: Fix Xorg regression on CPUs that don't support PAT Thread-Index: AQHS1+B8N4QEAx/Plk+8J3I1iJulDKIJffkAgAHXd4CAATRgAIAADJSAgAEGdYA= Date: Wed, 31 May 2017 09:39:03 +0000 Message-ID: <60179b8d-319d-8860-a599-29577fb9fe26@ce.jp.nec.com> References: <3d69fb9d-651a-8266-8e00-789fedd74659@gmx.de> <20170530171440.GA1599@light.dominikbrodowski.net> In-Reply-To: Accept-Language: en-US, ja-JP Content-Language: ja-JP X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.34.125.85] Content-Type: text/plain; charset="iso-2022-jp" Content-ID: <047C76FDC22A2E44B4A2A1F56408F566@gisp.nec.co.jp> Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-TM-AS-MML: disable Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/31/17 02:59, Mikulas Patocka wrote: >>> 2. use the PAT patch and revert the change to the function pat_ap_init >>> - i.e. change it to the original: >>> static void pat_ap_init(u64 pat) >>> { >>> if (!boot_cpu_has(X86_FEATURE_PAT)) { >> >> Joy. > > It is interesting - does it mean that the boot cpu does have PAT and the > secondary CPUs don't? It seems pat_init() is called twice for boot cpu, from mtrr_bp_pat_init() and generic_set_all(). The 2nd call ends up calling pat_ap_init() and it's before boot_cpu_data is copied to cpu_data[0]. -- Jun'ichi Nomura, NEC Corporation / NEC Solution Innovators, Ltd.