Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1552202 > unrolled thread

Re: [PATCH] ACPI/IORT: Fix iort_node_get_id() mapping entries indexing

Started bySinan Kaya <okaya@codeaurora.org>
First post2017-01-05 19:40 +0100
Last post2017-01-06 11:00 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] ACPI/IORT: Fix iort_node_get_id() mapping entries  indexing Sinan Kaya <okaya@codeaurora.org> - 2017-01-05 19:40 +0100
    Re: [PATCH] ACPI/IORT: Fix iort_node_get_id() mapping entries  indexing Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> - 2017-01-06 11:00 +0100

#1552202 — Re: [PATCH] ACPI/IORT: Fix iort_node_get_id() mapping entries indexing

FromSinan Kaya <okaya@codeaurora.org>
Date2017-01-05 19:40 +0100
SubjectRe: [PATCH] ACPI/IORT: Fix iort_node_get_id() mapping entries indexing
Message-ID<sWl7c-6J7-7@gated-at.bofh.it>
On 1/5/2017 1:29 PM, Lorenzo Pieralisi wrote:
> iort_node_get_id() takes an index as input to refer to a specific
> mapping entry in the mapping array to retrieve the id at a specific
> index provided the index is below the total mapping count; currently the
> index is used to retrieve the mapping value from the correct entry but
> not to dereference the correct entry while retrieving the mapping
> output_reference (ie IORT parent pointer), which consequently always
> resolves to the output_reference of the first entry in the mapping
> array.

Maybe, irrelevant but I'm going to throw it out.

Can we somehow break these multiple input and multiple output single
function into smaller and manageable pieces while we are fixing a bug
on it?

These functions seem to do N different things when an input is present
or not. 

I got lost in these function when implementing ITS->SMMU->NC use case.

-- 
Sinan Kaya
Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc.
Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.

[toc] | [next] | [standalone]


#1552657

FromLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Date2017-01-06 11:00 +0100
Message-ID<sWztw-8ns-9@gated-at.bofh.it>
In reply to#1552202
On Thu, Jan 05, 2017 at 01:37:22PM -0500, Sinan Kaya wrote:
> On 1/5/2017 1:29 PM, Lorenzo Pieralisi wrote:
> > iort_node_get_id() takes an index as input to refer to a specific
> > mapping entry in the mapping array to retrieve the id at a specific
> > index provided the index is below the total mapping count; currently the
> > index is used to retrieve the mapping value from the correct entry but
> > not to dereference the correct entry while retrieving the mapping
> > output_reference (ie IORT parent pointer), which consequently always
> > resolves to the output_reference of the first entry in the mapping
> > array.
> 
> Maybe, irrelevant but I'm going to throw it out.
> 
> Can we somehow break these multiple input and multiple output single
> function into smaller and manageable pieces while we are fixing a bug
> on it?

No. This is a fix for code currently in the kernel that is going
to be released in a few weeks, it is not a clean-up, please let me
know if it works on your platforms.

> These functions seem to do N different things when an input is present
> or not. 
> 
> I got lost in these function when implementing ITS->SMMU->NC use case.

Hanjun is carrying out the clean-up of the mapping functions as part of
its platform MSIs patchset, I followed up on that already to achieve
what you request above.

Thanks,
Lorenzo

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web