Re: [PATCH] x86/i8259: Work around buggy legacy PIC

From: Thomas Gleixner
Date: Fri May 14 2021 - 09:45:02 EST


Max,

On Thu, May 13 2021 at 12:11, Maximilian Luz wrote:
> And lastly, if that's any help at all: The PIC device is described in
> ACPI in [3]. The Surface Laptop 3 also has an AMD CPU (although a prior
> generation) and has the PIC described in the exact same way (can also be
> found in that repository), but doesn't exhibit that behavior (and
> doesn't show the "Using NULL legacy PIC" line). I expect there's not
> much you can change to that definition so that's probably irrelevant
> here.
>
> Again, I don't really know anything about these devices, so my guess
> would be bad hardware revision or bad firmware revision. All I know is
> that retrying seems to "fix" it.

That might be a a power optimization thing.

Except for older systems the PIC is not really required for IOAPiC to
work. But there is some historical code which makes assumptions. We can
change that, but that needs some careful thoughts.

Thanks,

tglx