mbox series

[v2,0/3] arm-smmu-qcom: Create qcom_smmu_impl for ACPI boot

Message ID 20210402035602.9484-1-shawn.guo@linaro.org
Headers show
Series arm-smmu-qcom: Create qcom_smmu_impl for ACPI boot | expand

Message

Shawn Guo April 2, 2021, 3:55 a.m. UTC
The arm-smmu-qcom driver needs to hook up qcom_smmu_impl for booting up
Snapdragon platforms.  Such hook-up is being done for DT boot by
matching compatibles.  The series tries to handle the hook-up for ACPI
boot by looking at model identifier, which is figured out by IORT driver
using acpi_match_platform_list() helper.  It helps to get Debian
installer booting with ACPI work for Qualcomm SC8180X based laptops like
Lenovo Flex 5G.

Changes for v2:
- Rather than using asl_compiler_id in IORT table, follow suggestion
  from Robin Murphy to use acpi_match_platform_list() to match platform.


Shawn Guo (3):
  ACPI/IORT: Consolidate use of SMMU device platdata
  ACPI/IORT: Add Qualcomm Snapdragon platforms to iort_plat_info[]
  iommu/arm-smmu-qcom: hook up qcom_smmu_impl for ACPI boot

 drivers/acpi/arm64/iort.c                   | 36 +++++++++------------
 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c |  6 +++-
 drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c  |  9 ++++++
 drivers/iommu/arm/arm-smmu/arm-smmu.c       |  9 ++++--
 drivers/perf/arm_smmuv3_pmu.c               |  8 +++--
 include/linux/acpi_iort.h                   | 12 +++++--
 6 files changed, 51 insertions(+), 29 deletions(-)

-- 
2.17.1

Comments

Shawn Guo April 26, 2021, 12:41 a.m. UTC | #1
On Fri, Apr 02, 2021 at 11:55:59AM +0800, Shawn Guo wrote:
> The arm-smmu-qcom driver needs to hook up qcom_smmu_impl for booting up

> Snapdragon platforms.  Such hook-up is being done for DT boot by

> matching compatibles.  The series tries to handle the hook-up for ACPI

> boot by looking at model identifier, which is figured out by IORT driver

> using acpi_match_platform_list() helper.  It helps to get Debian

> installer booting with ACPI work for Qualcomm SC8180X based laptops like

> Lenovo Flex 5G.

> 

> Changes for v2:

> - Rather than using asl_compiler_id in IORT table, follow suggestion

>   from Robin Murphy to use acpi_match_platform_list() to match platform.


How does this version look?  Any comments?

Shawn

> Shawn Guo (3):

>   ACPI/IORT: Consolidate use of SMMU device platdata

>   ACPI/IORT: Add Qualcomm Snapdragon platforms to iort_plat_info[]

>   iommu/arm-smmu-qcom: hook up qcom_smmu_impl for ACPI boot

> 

>  drivers/acpi/arm64/iort.c                   | 36 +++++++++------------

>  drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c |  6 +++-

>  drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c  |  9 ++++++

>  drivers/iommu/arm/arm-smmu/arm-smmu.c       |  9 ++++--

>  drivers/perf/arm_smmuv3_pmu.c               |  8 +++--

>  include/linux/acpi_iort.h                   | 12 +++++--

>  6 files changed, 51 insertions(+), 29 deletions(-)

> 

> -- 

> 2.17.1

>