All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iommu/arm-smmu-qcom: Add ACPI entry for HP SC7180 laptop
@ 2023-06-17 13:08 Mark Harmstone
  2023-06-19  9:35 ` Konrad Dybcio
  0 siblings, 1 reply; 5+ messages in thread
From: Mark Harmstone @ 2023-06-17 13:08 UTC (permalink / raw)
  To: will, robin.murphy, joro, dmitry.baryshkov, quic_saipraka,
	konrad.dybcio, quic_bjorande, a39.skl, robdclark, mani,
	linux-arm-kernel
  Cc: Mark Harmstone

Add an ACPI platform entry for the "HP 4G LTE Laptop 14-eg0xxx", HP's
ACPI-based SC7180 laptop.

The relevant lines in the IORT table:

[000h 0000   4]                    Signature : "IORT"    [IO Remapping Table]
[004h 0004   4]                 Table Length : 00000E20
[008h 0008   1]                     Revision : 00
[009h 0009   1]                     Checksum : 73
[00Ah 0010   6]                       Oem ID : "HPQOEM"
[010h 0016   8]                 Oem Table ID : "SLIC-MPC"
[018h 0024   4]                 Oem Revision : 00008913
[01Ch 0028   4]              Asl Compiler ID : "HP  "
[020h 0032   4]        Asl Compiler Revision : 00000001

Signed-off-by: Mark Harmstone <mark@harmstone.com>
---
 drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c b/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c
index c71afda79d64..37760a38c5da 100644
--- a/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c
+++ b/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c
@@ -541,6 +541,7 @@ static const struct of_device_id __maybe_unused qcom_smmu_impl_of_match[] = {
 static struct acpi_platform_list qcom_acpi_platlist[] = {
 	{ "LENOVO", "CB-01   ", 0x8180, ACPI_SIG_IORT, equal, "QCOM SMMU" },
 	{ "QCOM  ", "QCOMEDK2", 0x8180, ACPI_SIG_IORT, equal, "QCOM SMMU" },
+	{ "HPQOEM", "SLIC-MPC", 0x8913, ACPI_SIG_IORT, equal, "QCOM SMMU" },
 	{ }
 };
 #endif
-- 
2.39.3


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] iommu/arm-smmu-qcom: Add ACPI entry for HP SC7180 laptop
  2023-06-17 13:08 [PATCH] iommu/arm-smmu-qcom: Add ACPI entry for HP SC7180 laptop Mark Harmstone
@ 2023-06-19  9:35 ` Konrad Dybcio
  2023-06-19 18:52   ` Mark Harmstone
  0 siblings, 1 reply; 5+ messages in thread
From: Konrad Dybcio @ 2023-06-19  9:35 UTC (permalink / raw)
  To: Mark Harmstone, will, robin.murphy, joro, dmitry.baryshkov,
	quic_saipraka, quic_bjorande, a39.skl, robdclark, mani,
	linux-arm-kernel

On 17.06.2023 15:08, Mark Harmstone wrote:
> Add an ACPI platform entry for the "HP 4G LTE Laptop 14-eg0xxx", HP's
> ACPI-based SC7180 laptop.
> 
> The relevant lines in the IORT table:
> 
> [000h 0000   4]                    Signature : "IORT"    [IO Remapping Table]
> [004h 0004   4]                 Table Length : 00000E20
> [008h 0008   1]                     Revision : 00
> [009h 0009   1]                     Checksum : 73
> [00Ah 0010   6]                       Oem ID : "HPQOEM"
> [010h 0016   8]                 Oem Table ID : "SLIC-MPC"
> [018h 0024   4]                 Oem Revision : 00008913
> [01Ch 0028   4]              Asl Compiler ID : "HP  "
> [020h 0032   4]        Asl Compiler Revision : 00000001
> 
> Signed-off-by: Mark Harmstone <mark@harmstone.com>
> ---
Just FYI, ACPI support for Snapdragons isn't very good, as the ACPI tables
are very lackluster.. You may want to try using FDT.

Acked-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad
>  drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c b/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c
> index c71afda79d64..37760a38c5da 100644
> --- a/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c
> +++ b/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c
> @@ -541,6 +541,7 @@ static const struct of_device_id __maybe_unused qcom_smmu_impl_of_match[] = {
>  static struct acpi_platform_list qcom_acpi_platlist[] = {
>  	{ "LENOVO", "CB-01   ", 0x8180, ACPI_SIG_IORT, equal, "QCOM SMMU" },
>  	{ "QCOM  ", "QCOMEDK2", 0x8180, ACPI_SIG_IORT, equal, "QCOM SMMU" },
> +	{ "HPQOEM", "SLIC-MPC", 0x8913, ACPI_SIG_IORT, equal, "QCOM SMMU" },
>  	{ }
>  };
>  #endif

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] iommu/arm-smmu-qcom: Add ACPI entry for HP SC7180 laptop
  2023-06-19  9:35 ` Konrad Dybcio
@ 2023-06-19 18:52   ` Mark Harmstone
  2023-06-19 22:44     ` Konrad Dybcio
  2023-06-20 18:39     ` Bjorn Andersson
  0 siblings, 2 replies; 5+ messages in thread
From: Mark Harmstone @ 2023-06-19 18:52 UTC (permalink / raw)
  To: Konrad Dybcio, will, robin.murphy, joro, dmitry.baryshkov,
	quic_saipraka, quic_bjorande, a39.skl, robdclark, mani,
	linux-arm-kernel

On 19/6/23 10:35, Konrad Dybcio wrote:

> Just FYI, ACPI support for Snapdragons isn't very good, as the ACPI tables
> are very lackluster.. You may want to try using FDT.

Thanks Konrad. Yes, I'm realizing that! This is a UEFI machine that comes with
Windows 11 - I'm not even sure there is a correct DTS file out there.

I have patches for the MMC and USB to follow this one. Still working on the
I2C and WiFi.

Mark

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] iommu/arm-smmu-qcom: Add ACPI entry for HP SC7180 laptop
  2023-06-19 18:52   ` Mark Harmstone
@ 2023-06-19 22:44     ` Konrad Dybcio
  2023-06-20 18:39     ` Bjorn Andersson
  1 sibling, 0 replies; 5+ messages in thread
From: Konrad Dybcio @ 2023-06-19 22:44 UTC (permalink / raw)
  To: Mark Harmstone, will, robin.murphy, joro, dmitry.baryshkov,
	quic_saipraka, quic_bjorande, a39.skl, robdclark, mani,
	linux-arm-kernel

On 19.06.2023 20:52, Mark Harmstone wrote:
> On 19/6/23 10:35, Konrad Dybcio wrote:
> 
>> Just FYI, ACPI support for Snapdragons isn't very good, as the ACPI tables
>> are very lackluster.. You may want to try using FDT.
> 
> Thanks Konrad. Yes, I'm realizing that! This is a UEFI machine that comes with
> Windows 11 - I'm not even sure there is a correct DTS file out there.
Well, our job is to make one! :D

Your reply has sparked some ideas in my head to possibly make it even easier..

> 
> I have patches for the MMC and USB to follow this one. Still working on the
> I2C and WiFi.
Glad to hear things work at all without all! Your power usage will probably
be through the roof though, due to lack of bus scaling and overall DVFS
syncing :/

Konrad
> 
> Mark

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] iommu/arm-smmu-qcom: Add ACPI entry for HP SC7180 laptop
  2023-06-19 18:52   ` Mark Harmstone
  2023-06-19 22:44     ` Konrad Dybcio
@ 2023-06-20 18:39     ` Bjorn Andersson
  1 sibling, 0 replies; 5+ messages in thread
From: Bjorn Andersson @ 2023-06-20 18:39 UTC (permalink / raw)
  To: Mark Harmstone
  Cc: Konrad Dybcio, will, robin.murphy, joro, dmitry.baryshkov,
	quic_saipraka, quic_bjorande, a39.skl, robdclark, mani,
	linux-arm-kernel

On Mon, Jun 19, 2023 at 07:52:38PM +0100, Mark Harmstone wrote:
> On 19/6/23 10:35, Konrad Dybcio wrote:
> 
> > Just FYI, ACPI support for Snapdragons isn't very good, as the ACPI tables
> > are very lackluster.. You may want to try using FDT.
> 
> Thanks Konrad. Yes, I'm realizing that! This is a UEFI machine that comes with
> Windows 11 - I'm not even sure there is a correct DTS file out there.
> 
> I have patches for the MMC and USB to follow this one. Still working on the
> I2C and WiFi.
> 

Based on past and present efforts I would suggest that you write a DTS
instead of trying to teach Linux to work with the tables you have in
front of you.

The upstream SC7180 support is quite good, with DeviceTree.

Regards,
Bjorn

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-06-20 18:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-17 13:08 [PATCH] iommu/arm-smmu-qcom: Add ACPI entry for HP SC7180 laptop Mark Harmstone
2023-06-19  9:35 ` Konrad Dybcio
2023-06-19 18:52   ` Mark Harmstone
2023-06-19 22:44     ` Konrad Dybcio
2023-06-20 18:39     ` Bjorn Andersson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.