Re: [PATCH v4] ACPI/IORT: Fix PMCG node single ID mapping handling.

2020-05-20 Thread Tuan Phan
> On May 20, 2020, at 5:58 AM, Lorenzo Pieralisi > wrote: > > On Fri, May 15, 2020 at 12:24:46PM -0700, Tuan Phan wrote: >> An IORT PMCG node can have no ID mapping if its overflow interrupt is >> wire based therefore the code that parses the PMCG node can not assume >> the node will always h

Re: [PATCH v4] ACPI/IORT: Fix PMCG node single ID mapping handling.

2020-05-20 Thread Lorenzo Pieralisi
On Fri, May 15, 2020 at 12:24:46PM -0700, Tuan Phan wrote: > An IORT PMCG node can have no ID mapping if its overflow interrupt is > wire based therefore the code that parses the PMCG node can not assume > the node will always have a single mapping present at index 0. > > Fix iort_get_id_mapping_i

[PATCH v4] ACPI/IORT: Fix PMCG node single ID mapping handling.

2020-05-15 Thread Tuan Phan
An IORT PMCG node can have no ID mapping if its overflow interrupt is wire based therefore the code that parses the PMCG node can not assume the node will always have a single mapping present at index 0. Fix iort_get_id_mapping_index() by checking for an overflow interrupt and mapping count. Fixe