From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751038AbdE3Stp (ORCPT ); Tue, 30 May 2017 14:49:45 -0400 Received: from isilmar-4.linta.de ([136.243.71.142]:54168 "EHLO isilmar-4.linta.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750811AbdE3Sto (ORCPT ); Tue, 30 May 2017 14:49:44 -0400 Date: Tue, 30 May 2017 20:47:03 +0200 From: Dominik Brodowski To: Mikulas Patocka Cc: 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 Message-ID: <20170530184702.GA3281@light.dominikbrodowski.net> References: <3d69fb9d-651a-8266-8e00-789fedd74659@gmx.de> <20170530171440.GA1599@light.dominikbrodowski.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="UugvWAfsgieZRqgk" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.2 (2017-04-18) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --UugvWAfsgieZRqgk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 30, 2017 at 01:59:41PM -0400, Mikulas Patocka wrote: > On Tue, 30 May 2017, Dominik Brodowski wrote: >=20 > > Same boot problem here (Intel(R) Core(TM) i5-5200U CPU on a Dell XPS 13= ), > > git-bisected to the same patch... > >=20 > > On Mon, May 29, 2017 at 06:50:57PM -0400, Mikulas Patocka wrote: > > > Please do the following three tests and test if the kernel boots. > > >=20 > > > 1. use the PAT patch and revert the change to the function pat_enable= d() > > > - i.e. change it to the original: > > > bool pat_enabled(void) > > > { > > > return !!__pat_enabled; > > > } > >=20 > > No joy. > >=20 > > > 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)) { > >=20 > > Joy. >=20 > It is interesting - does it mean that the boot cpu does have PAT and the= =20 > secondary CPUs don't? Please send /proc/cpuinfo with all the cores active. This physical CPU has PAT on all cores / siblings: processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 61 model name : Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz stepping : 4 microcode : 0x24 cpu MHz : 800.158 cache size : 3072 KB physical id : 0 siblings : 4 core id : 0 cpu cores : 2 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 20 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat = pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rd= tscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_= tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 = sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline= _timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb = intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx= 2 smep bmi2 erms invpcid rdseed adx smap xsaveopt dtherm ida arat pln pts bugs : bogomips : 4389.80 clflush size : 64 cache_alignment : 64 address sizes : 39 bits physical, 48 bits virtual power management: processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 61 model name : Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz stepping : 4 microcode : 0x24 cpu MHz : 800.158 cache size : 3072 KB physical id : 0 siblings : 4 core id : 1 cpu cores : 2 apicid : 2 initial apicid : 2 fpu : yes fpu_exception : yes cpuid level : 20 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat = pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rd= tscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_= tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 = sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline= _timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb = intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx= 2 smep bmi2 erms invpcid rdseed adx smap xsaveopt dtherm ida arat pln pts bugs : bogomips : 4436.14 clflush size : 64 cache_alignment : 64 address sizes : 39 bits physical, 48 bits virtual power management: processor : 2 vendor_id : GenuineIntel cpu family : 6 model : 61 model name : Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz stepping : 4 microcode : 0x24 cpu MHz : 800.024 cache size : 3072 KB physical id : 0 siblings : 4 core id : 0 cpu cores : 2 apicid : 1 initial apicid : 1 fpu : yes fpu_exception : yes cpuid level : 20 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat = pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rd= tscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_= tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 = sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline= _timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb = intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx= 2 smep bmi2 erms invpcid rdseed adx smap xsaveopt dtherm ida arat pln pts bugs : bogomips : 4397.30 clflush size : 64 cache_alignment : 64 address sizes : 39 bits physical, 48 bits virtual power management: processor : 3 vendor_id : GenuineIntel cpu family : 6 model : 61 model name : Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz stepping : 4 microcode : 0x24 cpu MHz : 799.890 cache size : 3072 KB physical id : 0 siblings : 4 core id : 1 cpu cores : 2 apicid : 3 initial apicid : 3 fpu : yes fpu_exception : yes cpuid level : 20 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat = pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rd= tscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_= tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 = sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline= _timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb = intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx= 2 smep bmi2 erms invpcid rdseed adx smap xsaveopt dtherm ida arat pln pts bugs : bogomips : 4396.84 clflush size : 64 cache_alignment : 64 address sizes : 39 bits physical, 48 bits virtual power management: Best, Dominik --UugvWAfsgieZRqgk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEmgXaWKgmjrvkPhLCmpdgiUyNow0FAlktviMACgkQmpdgiUyN ow0fCQ/6A5dm29b8e2Ah5GGwjfCtphcIyrWTlkqfoYfYmzgdtYhDYibcUjzyuD/+ LdSelxTWeOcjvzNIrOCJdjJY9eVkEclatlSnmEVVDsp7Sdi9cbcroQVpXU8ZiWm+ Ry+zaXfCmFX+wn6vP0E/PhRguH5S/50zHiTs6H/I1VlM2+hqa6daZl41a4oJFjrG lC+YChneSRFqFOpE+8JWmjSYhKhaM9snge+JRb2JoNT5auG89nzi1FDZTfGZgLK0 EV3VzRPzP989SslKMf0rRUJ1i4QC5kr7e8hlMfCYYdPbYal9dbWyZ2akKyFX2Nfh 6RUDPHrt/4xuIdRgT3ChGCRl35tHuRWv7fjzexP8wZ1703fysAoUob4N5P0DiMRm yFrdAa7bl+0JkHBctA80OfWYXVQj1fqgC8Nk45uK+kL8dqTN8kGcLFNAeYUT3rxg dpRV7o8yKiXe7iHZIsyjjTAicFdSg7WxGoGNwO8+tglvV0JOYp//3m9WKcVuR1A9 pG+RKEt1l3mA0pMKhEBV1xpOgaEc4re5qTYjryxuuQZBJJFxmB0idi1HIbVN8zzK ugkHS6TkQ314D0vAMZZapr4is+rOF0Rfm7Dv9m4+VVGOKdJKZn7XCwkpOPwbWeJo CySlM6lqv7kji+3pI9ObLg1C/SzONGPqOoF7SjBbmxCCZy8IVjs= =5QQm -----END PGP SIGNATURE----- --UugvWAfsgieZRqgk--