Re: mfd/intel_pmc_bxt: `intel_pmc_get_resources()` results in page fault

From: Mika Westerberg
Date: Tue Jan 25 2022 - 11:33:01 EST


On Tue, Jan 25, 2022 at 04:27:02PM +0000, Andy Pont wrote:
> Hello Mika,
>
> > Thanks! The dump looks OK to me wrt. the PMC device. However, I think I
> > found the bug.
> >
> > Can you try if the below hack fixes the issue?
> I’ll give the patch a test and let you know how I get on.
>
> Which fields within the ACPI dump are you looking at? When we boot the same
> hardware platform / Ubuntu image with the stock AMI BIOS then we don’t see
> the kernel oops.

Probably the driver is disabled there.

This one:

Device (IPC1)
{
Name (_HID, "INT34D2")
Name (_CID, "INT34D2")
Name (_DDN, "Intel(R) IPC1 Controller")
Name (RBUF, ResourceTemplate ()
{
Memory32Fixed (ReadWrite, 0x0, 0x2000, IBAR)
Memory32Fixed (ReadWrite, 0x0, 0x4, MDAT)
Memory32Fixed (ReadWrite, 0x0, 0x4, MINF)
IO (Decode16, 0x400, 0x480,
0x04, 0x80)
Memory32Fixed (ReadWrite, 0x0, 0x2000, SBAR)
Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, , , )
{
40
}
})