Re: [PATCH 2/2] x86/pat: add functions to query specific cache mode availability

2022-05-25 Thread Chuck Zmudzinski
On 5/25/2022 3:45 AM, Thorsten Leemhuis wrote: On 24.05.22 20:32, Chuck Zmudzinski wrote: On 5/21/22 6:47 AM, Thorsten Leemhuis wrote: On 20.05.22 16:48, Chuck Zmudzinski wrote: On 5/20/2022 10:06 AM, Jan Beulich wrote: On 20.05.2022 15:33, Chuck Zmudzinski wrote: On 5/20/2022 5:41 AM, Jan B

Re: [PATCH 2/2] x86/pat: add functions to query specific cache mode availability

2022-05-25 Thread Thorsten Leemhuis
On 25.05.22 10:37, Jan Beulich wrote: > On 25.05.2022 09:45, Thorsten Leemhuis wrote: >> On 24.05.22 20:32, Chuck Zmudzinski wrote: >>> On 5/21/22 6:47 AM, Thorsten Leemhuis wrote: I'm not a developer and I'm don't known the details of this thread and the backstory of the regression, but

Re: [PATCH 2/2] x86/pat: add functions to query specific cache mode availability

2022-05-25 Thread Jan Beulich
On 25.05.2022 09:45, Thorsten Leemhuis wrote: > On 24.05.22 20:32, Chuck Zmudzinski wrote: >> On 5/21/22 6:47 AM, Thorsten Leemhuis wrote: >>> I'm not a developer and I'm don't known the details of this thread and >>> the backstory of the regression, but it sounds like that's the approach >>> that

Re: [PATCH 2/2] x86/pat: add functions to query specific cache mode availability

2022-05-25 Thread Juergen Gross
On 25.05.22 09:45, Thorsten Leemhuis wrote: On 24.05.22 20:32, Chuck Zmudzinski wrote: On 5/21/22 6:47 AM, Thorsten Leemhuis wrote: On 20.05.22 16:48, Chuck Zmudzinski wrote: On 5/20/2022 10:06 AM, Jan Beulich wrote: On 20.05.2022 15:33, Chuck Zmudzinski wrote: On 5/20/2022 5:41 AM, Jan Be

Re: [PATCH 2/2] x86/pat: add functions to query specific cache mode availability

2022-05-25 Thread Thorsten Leemhuis
On 24.05.22 20:32, Chuck Zmudzinski wrote: > On 5/21/22 6:47 AM, Thorsten Leemhuis wrote: >> On 20.05.22 16:48, Chuck Zmudzinski wrote: >>> On 5/20/2022 10:06 AM, Jan Beulich wrote: On 20.05.2022 15:33, Chuck Zmudzinski wrote: > On 5/20/2022 5:41 AM, Jan Beulich wrote: >> On 20.05.2

Re: [PATCH 2/2] x86/pat: add functions to query specific cache mode availability

2022-05-24 Thread Chuck Zmudzinski
On 5/21/22 6:47 AM, Thorsten Leemhuis wrote: On 20.05.22 16:48, Chuck Zmudzinski wrote: On 5/20/2022 10:06 AM, Jan Beulich wrote: On 20.05.2022 15:33, Chuck Zmudzinski wrote: On 5/20/2022 5:41 AM, Jan Beulich wrote: On 20.05.2022 10:30, Chuck Zmudzinski wrote: On 5/20/2022 2:59 AM, Chuck Zmu

Re: [PATCH 2/2] x86/pat: add functions to query specific cache mode availability

2022-05-21 Thread Chuck Zmudzinski
On 5/3/22 9:22 AM, Juergen Gross wrote: Some drivers are using pat_enabled() in order to test availability of special caching modes (WC and UC-). This will lead to false negatives in case the system was booted e.g. with the "nopat" variant and the BIOS did setup the PAT MSR supporting the queried

Re: [PATCH 2/2] x86/pat: add functions to query specific cache mode availability

2022-05-21 Thread Thorsten Leemhuis
On 20.05.22 16:48, Chuck Zmudzinski wrote: > On 5/20/2022 10:06 AM, Jan Beulich wrote: >> On 20.05.2022 15:33, Chuck Zmudzinski wrote: >>> On 5/20/2022 5:41 AM, Jan Beulich wrote: On 20.05.2022 10:30, Chuck Zmudzinski wrote: > On 5/20/2022 2:59 AM, Chuck Zmudzinski wrote: >> On 5/20/20

Re: [REGRESSION} Re: [PATCH 2/2] x86/pat: add functions to query specific cache mode availability

2022-05-20 Thread Chuck Zmudzinski
On 5/20/2022 1:13 PM, Chuck Zmudzinski wrote: I think this summary of the regression is appropriate for a top-post. Details follow below. commit bdd8b6c98239: introduced what I call a real regression which persists in 5.17.x Jan's proposed patch: https://lore.kernel.org/lkml/9385fa60-fa5d-f

Re: [REGRESSION} Re: [PATCH 2/2] x86/pat: add functions to query specific cache mode availability

2022-05-20 Thread Chuck Zmudzinski
I think this summary of the regression is appropriate for a top-post. Details follow below. commit bdd8b6c98239: introduced what I call a real regression which persists in 5.17.x Jan's proposed patch: https://lore.kernel.org/lkml/9385fa60-fa5d-f559-a137-6608408f8...@suse.com/ Jan's patch w

[REGRESSION} Re: [PATCH 2/2] x86/pat: add functions to query specific cache mode availability

2022-05-20 Thread Chuck Zmudzinski
On 5/20/2022 10:06 AM, Jan Beulich wrote: On 20.05.2022 15:33, Chuck Zmudzinski wrote: On 5/20/2022 5:41 AM, Jan Beulich wrote: On 20.05.2022 10:30, Chuck Zmudzinski wrote: On 5/20/2022 2:59 AM, Chuck Zmudzinski wrote: On 5/20/2022 2:05 AM, Jan Beulich wrote: On 20.05.2022 06:43, Chuck Zmudz

Re: [PATCH 2/2] x86/pat: add functions to query specific cache mode availability

2022-05-20 Thread Chuck Zmudzinski
On 5/20/2022 10:06 AM, Jan Beulich wrote: On 20.05.2022 15:33, Chuck Zmudzinski wrote: On 5/20/2022 5:41 AM, Jan Beulich wrote: On 20.05.2022 10:30, Chuck Zmudzinski wrote: On 5/20/2022 2:59 AM, Chuck Zmudzinski wrote: On 5/20/2022 2:05 AM, Jan Beulich wrote: On 20.05.2022 06:43, Chuck Zmudz

Re: [PATCH 2/2] x86/pat: add functions to query specific cache mode availability

2022-05-20 Thread Jan Beulich
On 20.05.2022 15:33, Chuck Zmudzinski wrote: > On 5/20/2022 5:41 AM, Jan Beulich wrote: >> On 20.05.2022 10:30, Chuck Zmudzinski wrote: >>> On 5/20/2022 2:59 AM, Chuck Zmudzinski wrote: On 5/20/2022 2:05 AM, Jan Beulich wrote: > On 20.05.2022 06:43, Chuck Zmudzinski wrote: >> On 5/4/22

Re: [PATCH 2/2] x86/pat: add functions to query specific cache mode availability

2022-05-20 Thread Chuck Zmudzinski
On 5/20/2022 5:41 AM, Jan Beulich wrote: On 20.05.2022 10:30, Chuck Zmudzinski wrote: On 5/20/2022 2:59 AM, Chuck Zmudzinski wrote: On 5/20/2022 2:05 AM, Jan Beulich wrote: On 20.05.2022 06:43, Chuck Zmudzinski wrote: On 5/4/22 5:14 AM, Juergen Gross wrote: On 04.05.22 10:31, Jan Beulich wro

Re: [PATCH 2/2] x86/pat: add functions to query specific cache mode availability

2022-05-20 Thread Jan Beulich
On 20.05.2022 10:30, Chuck Zmudzinski wrote: > On 5/20/2022 2:59 AM, Chuck Zmudzinski wrote: >> On 5/20/2022 2:05 AM, Jan Beulich wrote: >>> On 20.05.2022 06:43, Chuck Zmudzinski wrote: On 5/4/22 5:14 AM, Juergen Gross wrote: > On 04.05.22 10:31, Jan Beulich wrote: >> On 03.05.2022 15:

Re: [PATCH 2/2] x86/pat: add functions to query specific cache mode availability

2022-05-20 Thread Chuck Zmudzinski
On 5/20/2022 2:59 AM, Chuck Zmudzinski wrote: On 5/20/2022 2:05 AM, Jan Beulich wrote: On 20.05.2022 06:43, Chuck Zmudzinski wrote: On 5/4/22 5:14 AM, Juergen Gross wrote: On 04.05.22 10:31, Jan Beulich wrote: On 03.05.2022 15:22, Juergen Gross wrote: ... these uses there are several more. Y

Re: [PATCH 2/2] x86/pat: add functions to query specific cache mode availability

2022-05-20 Thread Chuck Zmudzinski
On 5/20/2022 2:05 AM, Jan Beulich wrote: On 20.05.2022 06:43, Chuck Zmudzinski wrote: On 5/4/22 5:14 AM, Juergen Gross wrote: On 04.05.22 10:31, Jan Beulich wrote: On 03.05.2022 15:22, Juergen Gross wrote: Some drivers are using pat_enabled() in order to test availability of special caching m

Re: [PATCH 2/2] x86/pat: add functions to query specific cache mode availability

2022-05-19 Thread Jan Beulich
On 20.05.2022 06:43, Chuck Zmudzinski wrote: > On 5/4/22 5:14 AM, Juergen Gross wrote: >> On 04.05.22 10:31, Jan Beulich wrote: >>> On 03.05.2022 15:22, Juergen Gross wrote: Some drivers are using pat_enabled() in order to test availability of special caching modes (WC and UC-). This will

Re: [PATCH 2/2] x86/pat: add functions to query specific cache mode availability

2022-05-19 Thread Chuck Zmudzinski
On 5/20/22 12:43 AM, Chuck Zmudzinski wrote: On 5/4/22 5:14 AM, Juergen Gross wrote: On 04.05.22 10:31, Jan Beulich wrote: On 03.05.2022 15:22, Juergen Gross wrote: Some drivers are using pat_enabled() in order to test availability of special caching modes (WC and UC-). This will lead to false

Re: [PATCH 2/2] x86/pat: add functions to query specific cache mode availability

2022-05-19 Thread Chuck Zmudzinski
On 5/4/22 5:14 AM, Juergen Gross wrote: On 04.05.22 10:31, Jan Beulich wrote: On 03.05.2022 15:22, Juergen Gross wrote: Some drivers are using pat_enabled() in order to test availability of special caching modes (WC and UC-). This will lead to false negatives in case the system was booted e.g.

Re: [PATCH 2/2] x86/pat: add functions to query specific cache mode availability

2022-05-19 Thread Chuck Zmudzinski
On 5/19/22 10:15 PM, Chuck Zmudzinski wrote: On 5/3/22 9:22 AM, Juergen Gross wrote: Some drivers are using pat_enabled() in order to test availability of special caching modes (WC and UC-). This will lead to false negatives in case the system was booted e.g. with the "nopat" variant and the BIO

Re: [PATCH 2/2] x86/pat: add functions to query specific cache mode availability

2022-05-19 Thread Chuck Zmudzinski
On 5/3/22 9:22 AM, Juergen Gross wrote: Some drivers are using pat_enabled() in order to test availability of special caching modes (WC and UC-). This will lead to false negatives in case the system was booted e.g. with the "nopat" variant and the BIOS did setup the PAT MSR supporting the queried

Re: [PATCH 2/2] x86/pat: add functions to query specific cache mode availability

2022-05-18 Thread Christoph Hellwig
On Tue, May 03, 2022 at 03:22:07PM +0200, Juergen Gross wrote: > Some drivers are using pat_enabled() in order to test availability of > special caching modes (WC and UC-). This will lead to false negatives > in case the system was booted e.g. with the "nopat" variant and the > BIOS did setup the P

Re: [PATCH 2/2] x86/pat: add functions to query specific cache mode availability

2022-05-04 Thread Jan Beulich
On 04.05.2022 11:14, Juergen Gross wrote: > On 04.05.22 10:31, Jan Beulich wrote: >> On 03.05.2022 15:22, Juergen Gross wrote: >>> Some drivers are using pat_enabled() in order to test availability of >>> special caching modes (WC and UC-). This will lead to false negatives >>> in case the system w

Re: [PATCH 2/2] x86/pat: add functions to query specific cache mode availability

2022-05-04 Thread Juergen Gross
On 04.05.22 10:31, Jan Beulich wrote: On 03.05.2022 15:22, Juergen Gross wrote: Some drivers are using pat_enabled() in order to test availability of special caching modes (WC and UC-). This will lead to false negatives in case the system was booted e.g. with the "nopat" variant and the BIOS did

Re: [PATCH 2/2] x86/pat: add functions to query specific cache mode availability

2022-05-04 Thread Jan Beulich
On 03.05.2022 15:22, Juergen Gross wrote: > Some drivers are using pat_enabled() in order to test availability of > special caching modes (WC and UC-). This will lead to false negatives > in case the system was booted e.g. with the "nopat" variant and the > BIOS did setup the PAT MSR supporting the

[PATCH 2/2] x86/pat: add functions to query specific cache mode availability

2022-05-03 Thread Juergen Gross
Some drivers are using pat_enabled() in order to test availability of special caching modes (WC and UC-). This will lead to false negatives in case the system was booted e.g. with the "nopat" variant and the BIOS did setup the PAT MSR supporting the queried mode, or if the system is running as a Xe