2016-03-04 03:26:45

by Wan Zongshun

[permalink] [raw]
Subject: RE: [PATCH V2 0/8] iommu/amd: enable ACPI hardware ID device support



Thanks!
Vincent Wan.

> -----Original Message-----
> From: Joerg Roedel [mailto:[email protected]]
> Sent: Friday, February 26, 2016 10:45 PM
> To: Wan, Vincent
> Cc: [email protected]; Suthikulpanit, Suravee; Borislav Petkov;
> Huang, Ray; Xue, Ken; [email protected]; [email protected]; linux-
> [email protected]
> Subject: Re: [PATCH V2 0/8] iommu/amd: enable ACPI hardware ID device
> support
>
> On Tue, Jan 26, 2016 at 06:14:29PM -0500, Wan Zongshun wrote:
> > Suravee Suthikulpanit (3):
> > iommu/amd: Modify ivhd_header structure to support type 11h and 40h
> > iommu/amd: Use the most comprehensive IVHD type that the driver can
> > support
> > iommu/amd: Introduces ivrs_acpihid kernel parameter
> >
> > Wan Zongshun (5):
> > iommu/amd: Add new map for storing IVHD dev entry type HID
> > iommu/amd: Make call-sites of get_device_id aware of its return value
> > iommu/amd: Add iommu support for ACPI HID devices
> > iommu/amd: Manage iommu_group for ACPI HID devices
> > iommu/amd: Set AMD iommu callbacks for amba bus
>
> These patches fail to boot on my Carrizo system. Unfortunatly it fails before
> console is initialized and the box has no serial port to grab the early panic.
>
Joerg,
Can you provide me which branch you are using to test those patches.

We are validating the patches in v4.5.0-rc6, and no issues like your description.

Vincent.

>
>
> Joerg


2016-03-04 08:46:28

by Joerg Roedel

[permalink] [raw]
Subject: Re: [PATCH V2 0/8] iommu/amd: enable ACPI hardware ID device support

On Fri, Mar 04, 2016 at 01:52:31AM +0000, Wan, Vincent wrote:
> > These patches fail to boot on my Carrizo system. Unfortunatly it fails before
> > console is initialized and the box has no serial port to grab the early panic.
> >
> Joerg,
> Can you provide me which branch you are using to test those patches.
>
> We are validating the patches in v4.5.0-rc6, and no issues like your description.

I tested them on v4.5-rc5.


Joerg

2016-03-04 08:49:34

by Wan Zongshun

[permalink] [raw]
Subject: RE: [PATCH V2 0/8] iommu/amd: enable ACPI hardware ID device support

> > Joerg,
> > Can you provide me which branch you are using to test those patches.
> >
> > We are validating the patches in v4.5.0-rc6, and no issues like your
> description.
>
> I tested them on v4.5-rc5.
>
Thanks!
We will test the patches basing on this v4.5-rc5 version again.

Vincent.
>
> Joerg

2016-03-05 09:00:57

by Suthikulpanit, Suravee

[permalink] [raw]
Subject: Re: [PATCH V2 0/8] iommu/amd: enable ACPI hardware ID device support

Hi Joerg,

On 03/04/2016 03:49 PM, Wan, Vincent wrote:
>>> Joerg,
>>> Can you provide me which branch you are using to test those patches.
>>>
>>> We are validating the patches in v4.5.0-rc6, and no issues like your
>> description.
>>
>> I tested them on v4.5-rc5.
>>
> Thanks!
> We will test the patches basing on this v4.5-rc5 version again.
>
> Vincent.
>>
>> Joerg
>

I found the issue now. I'll work with Vincent to send out V3.

The problem is because in the information in the IOMMU Attributes field
of the IVHD header type 40h (offset byte 20 = struct
ivhd_header.efr_attr) is incorrect. It was correct in the IVHD type
10h.... Sigh :(

However, the same information in the MMIO offset 4000h Counter
configuration Register is correct. So, I'll try to have the patch get
information from here instead.

Earlier, we had another issue with IOMMU PERF intialization, and it was
disabled. So, it hides this bug when we were testing the patch earlier.
Now that we had a workaround for that bug n v4.5-rc5, it bombs in the
init_iommu_perf_ctr().

So, if you want to test out the rest of this patch series, just simply
comment out this function, and it should boot.

Regards,
Suravee