* [PATCH 1/2] acpica: iort: Update SMMU models for IORT rev. C
@ 2017-05-12 10:41 Robin Murphy
[not found] ` <0bb462748c0a08dbf1db103d2a96b80c71412817.1494585645.git.robin.murphy-5wv7dgnIgG8@public.gmane.org>
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Robin Murphy @ 2017-05-12 10:41 UTC (permalink / raw)
To: will.deacon, rjw
Cc: iommu, linux-arm-kernel, linux-acpi, devel, linux-kernel, gakula,
linu.cherian, lorenzo.pieralisi, hanjun.guo, john.garry,
shameerali.kolothum.thodi, gabriele.paoloni, Robert Moore,
Lv Zheng
IORT revision C has been published with a number of new SMMU
implementation identifiers; define them.
CC: Rafael J. Wysocki <rjw@rjwysocki.net>
CC: Robert Moore <robert.moore@intel.com>
CC: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
---
include/acpi/actbl2.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h
index 7aee9fb3bd1f..0242be07f292 100644
--- a/include/acpi/actbl2.h
+++ b/include/acpi/actbl2.h
@@ -777,6 +777,8 @@ struct acpi_iort_smmu {
#define ACPI_IORT_SMMU_V2 0x00000001 /* Generic SMMUv2 */
#define ACPI_IORT_SMMU_CORELINK_MMU400 0x00000002 /* ARM Corelink MMU-400 */
#define ACPI_IORT_SMMU_CORELINK_MMU500 0x00000003 /* ARM Corelink MMU-500 */
+#define ACPI_IORT_SMMU_CORELINK_MMU401 0x00000004 /* ARM Corelink MMU-401 */
+#define ACPI_IORT_SMMU_CAVIUM_SMMUV2 0x00000005 /* Cavium ThunderX SMMUv2 */
/* Masks for Flags field above */
@@ -795,6 +797,12 @@ struct acpi_iort_smmu_v3 {
u32 sync_gsiv;
};
+/* Values for Model field above */
+
+#define ACPI_IORT_SMMU_V3 0x00000000 /* Generic SMMUv3 */
+#define ACPI_IORT_SMMU_HISILICON_HI161X 0x00000001 /* HiSilicon Hi161x SMMUv3 */
+#define ACPI_IORT_SMMU_CAVIUM_CN99XX 0x00000002 /* Cavium CN99xx SMMUv3 */
+
/* Masks for Flags field above */
#define ACPI_IORT_SMMU_V3_COHACC_OVERRIDE (1)
--
2.12.2.dirty
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] iommu/arm-smmu: Plumb in new ACPI identifiers
[not found] ` <0bb462748c0a08dbf1db103d2a96b80c71412817.1494585645.git.robin.murphy-5wv7dgnIgG8@public.gmane.org>
@ 2017-05-12 10:41 ` Robin Murphy
0 siblings, 0 replies; 4+ messages in thread
From: Robin Murphy @ 2017-05-12 10:41 UTC (permalink / raw)
To: will.deacon-5wv7dgnIgG8, rjw-LthD3rsA81gm4RdzfppkhA
Cc: gabriele.paoloni-hv44wF8Li93QT0dZR+AlfA,
gakula-M3mlKVOIwJVv6pq1l3V1OdBPR1lH4CV8,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
shameerali.kolothum.thodi-hv44wF8Li93QT0dZR+AlfA,
linux-acpi-u79uwXL29TY76Z2rM5mHXA,
iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
linu.cherian-YGCgFSpz5w/QT0dZR+AlfA,
john.garry-hv44wF8Li93QT0dZR+AlfA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
devel-E0kO6a4B6psdnm+yROfE0A
Revision C of IORT now allows us to identify ARM MMU-401 and the Cavium
ThunderX implementation; wire them up so that the appropriate quirks get
enabled when booting with ACPI.
Signed-off-by: Robin Murphy <robin.murphy-5wv7dgnIgG8@public.gmane.org>
---
drivers/iommu/arm-smmu.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c
index 6dadd51d486c..d9ec840defc9 100644
--- a/drivers/iommu/arm-smmu.c
+++ b/drivers/iommu/arm-smmu.c
@@ -2018,6 +2018,10 @@ static int acpi_smmu_get_data(u32 model, struct arm_smmu_device *smmu)
smmu->version = ARM_SMMU_V1;
smmu->model = GENERIC_SMMU;
break;
+ case ACPI_IORT_SMMU_CORELINK_MMU401:
+ smmu->version = ARM_SMMU_V1_64K;
+ smmu->model = GENERIC_SMMU;
+ break;
case ACPI_IORT_SMMU_V2:
smmu->version = ARM_SMMU_V2;
smmu->model = GENERIC_SMMU;
@@ -2026,6 +2030,10 @@ static int acpi_smmu_get_data(u32 model, struct arm_smmu_device *smmu)
smmu->version = ARM_SMMU_V2;
smmu->model = ARM_MMU500;
break;
+ case ACPI_IORT_SMMU_CAVIUM_SMMUV2:
+ smmu->version = ARM_SMMU_V2;
+ smmu->model = CAVIUM_SMMUV2;
+ break;
default:
ret = -ENODEV;
}
--
2.12.2.dirty
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] acpica: iort: Update SMMU models for IORT rev. C
2017-05-12 10:41 [PATCH 1/2] acpica: iort: Update SMMU models for IORT rev. C Robin Murphy
[not found] ` <0bb462748c0a08dbf1db103d2a96b80c71412817.1494585645.git.robin.murphy-5wv7dgnIgG8@public.gmane.org>
@ 2017-05-17 11:26 ` Robert Richter
2017-05-19 11:32 ` Robert Richter
2 siblings, 0 replies; 4+ messages in thread
From: Robert Richter @ 2017-05-17 11:26 UTC (permalink / raw)
To: Robin Murphy
Cc: will.deacon, rjw, iommu, linux-arm-kernel, linux-acpi, devel,
linux-kernel, gakula, linu.cherian, lorenzo.pieralisi, hanjun.guo,
john.garry, shameerali.kolothum.thodi, gabriele.paoloni,
Robert Moore, Lv Zheng
On 12.05.17 11:41:41, Robin Murphy wrote:
> IORT revision C has been published with a number of new SMMU
> implementation identifiers; define them.
>
> CC: Rafael J. Wysocki <rjw@rjwysocki.net>
> CC: Robert Moore <robert.moore@intel.com>
> CC: Lv Zheng <lv.zheng@intel.com>
> Signed-off-by: Robin Murphy <robin.murphy@arm.com>
For the whole series:
Acked-by: Robert Richter <rrichter@cavium.com>
Tested--by: Robert Richter <rrichter@cavium.com>
Thanks Robin
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] acpica: iort: Update SMMU models for IORT rev. C
2017-05-12 10:41 [PATCH 1/2] acpica: iort: Update SMMU models for IORT rev. C Robin Murphy
[not found] ` <0bb462748c0a08dbf1db103d2a96b80c71412817.1494585645.git.robin.murphy-5wv7dgnIgG8@public.gmane.org>
2017-05-17 11:26 ` [PATCH 1/2] acpica: iort: Update SMMU models for IORT rev. C Robert Richter
@ 2017-05-19 11:32 ` Robert Richter
2 siblings, 0 replies; 4+ messages in thread
From: Robert Richter @ 2017-05-19 11:32 UTC (permalink / raw)
To: Robin Murphy
Cc: will.deacon, rjw, iommu, linux-arm-kernel, linux-acpi, devel,
linux-kernel, gakula, linu.cherian, lorenzo.pieralisi, hanjun.guo,
john.garry, shameerali.kolothum.thodi, gabriele.paoloni,
Robert Moore, Lv Zheng
On 12.05.17 11:41:41, Robin Murphy wrote:
> IORT revision C has been published with a number of new SMMU
> implementation identifiers; define them.
>
> CC: Rafael J. Wysocki <rjw@rjwysocki.net>
> CC: Robert Moore <robert.moore@intel.com>
> CC: Lv Zheng <lv.zheng@intel.com>
> Signed-off-by: Robin Murphy <robin.murphy@arm.com>
As an additional note, could these both patches being marked stable?
If we are going to deploy fw with the new model number, older kernels
become unusable as the smmu is not detected any longer.
Thanks,
-Robert
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-05-19 11:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-12 10:41 [PATCH 1/2] acpica: iort: Update SMMU models for IORT rev. C Robin Murphy
[not found] ` <0bb462748c0a08dbf1db103d2a96b80c71412817.1494585645.git.robin.murphy-5wv7dgnIgG8@public.gmane.org>
2017-05-12 10:41 ` [PATCH 2/2] iommu/arm-smmu: Plumb in new ACPI identifiers Robin Murphy
2017-05-17 11:26 ` [PATCH 1/2] acpica: iort: Update SMMU models for IORT rev. C Robert Richter
2017-05-19 11:32 ` Robert Richter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).