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


Groups > linux.kernel > #1532237 > unrolled thread

Re: [PATCH v9 14/16] drivers: acpi: iort: replace rid map type with type mask

Started byHanjun Guo <hanjun.guo@linaro.org>
First post2016-11-29 13:30 +0100
Last post2016-11-29 13:30 +0100
Articles 1 — 1 participant

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 v9 14/16] drivers: acpi: iort: replace rid map type with  type mask Hanjun Guo <hanjun.guo@linaro.org> - 2016-11-29 13:30 +0100

#1532237 — Re: [PATCH v9 14/16] drivers: acpi: iort: replace rid map type with type mask

FromHanjun Guo <hanjun.guo@linaro.org>
Date2016-11-29 13:30 +0100
SubjectRe: [PATCH v9 14/16] drivers: acpi: iort: replace rid map type with type mask
Message-ID<sIPHP-8re-13@gated-at.bofh.it>
On 2016/11/21 18:01, Lorenzo Pieralisi wrote:
> IORT tables provide data that allow the kernel to carry out
> device ID mappings between endpoints and system components
> (eg interrupt controllers, IOMMUs). When the mapping for a
> given device ID is carried out, the translation mechanism
> is done on a per-subsystem basis rather than a component
> subtype (ie the IOMMU kernel layer will look for mappings
> from a device to all IORT node types corresponding to IOMMU
> components), therefore the corresponding mapping API should
> work on a range (ie mask) of IORT node types corresponding
> to a common set of components (eg IOMMUs) rather than a
> specific node type.
>
> Upgrade the IORT iort_node_map_rid() API to work with a
> type mask instead of a single node type so that it can
> be used for mappings that span multiple components types
> (ie IOMMUs).
>
> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
> Reviewed-by: Tomasz Nowicki <tn@semihalf.com>
> Tested-by: Hanjun Guo <hanjun.guo@linaro.org>
> Tested-by: Tomasz Nowicki <tn@semihalf.com>
> Cc: Hanjun Guo <hanjun.guo@linaro.org>
> Cc: Tomasz Nowicki <tn@semihalf.com>
> Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
> ---
>  drivers/acpi/arm64/iort.c | 11 +++++++----
>  1 file changed, 7 insertions(+), 4 deletions(-)

Acked-by: Hanjun Guo <hanjun.guo@linaro.org>

Thanks
Hanjun

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web