Skip to content

Commit d2ea638

Browse files
committed
Merge branch 'for-next/acpi' into for-next/core
* for-next/acpi: ACPI/IORT: Add PMCG platform information for HiSilicon HIP10/11 ACPI: ARM64: add acpi_iort.h to MAINTAINERS ACPI/IORT: Switch to use kmemdup_array()
2 parents 7c626ce + f3b78b4 commit d2ea638

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

Documentation/arch/arm64/silicon-errata.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,8 @@ stable kernels.
249249
+----------------+-----------------+-----------------+-----------------------------+
250250
| Hisilicon | Hip08 SMMU PMCG | #162001800 | N/A |
251251
+----------------+-----------------+-----------------+-----------------------------+
252-
| Hisilicon | Hip08 SMMU PMCG | #162001900 | N/A |
253-
| | Hip09 SMMU PMCG | | |
252+
| Hisilicon | Hip{08,09,10,10C| #162001900 | N/A |
253+
| | ,11} SMMU PMCG | | |
254254
+----------------+-----------------+-----------------+-----------------------------+
255255
+----------------+-----------------+-----------------+-----------------------------+
256256
| Qualcomm Tech. | Kryo/Falkor v1 | E1003 | QCOM_FALKOR_ERRATUM_1003 |

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ L: [email protected]
334334
L: [email protected] (moderated for non-subscribers)
335335
S: Maintained
336336
F: drivers/acpi/arm64
337+
F: include/linux/acpi_iort.h
337338

338339
ACPI FOR RISC-V (ACPI/riscv)
339340
M: Sunil V L <[email protected]>

drivers/acpi/arm64/iort.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ static struct iommu_iort_rmr_data *iort_rmr_alloc(
822822
return NULL;
823823

824824
/* Create a copy of SIDs array to associate with this rmr_data */
825-
sids_copy = kmemdup(sids, num_sids * sizeof(*sids), GFP_KERNEL);
825+
sids_copy = kmemdup_array(sids, num_sids, sizeof(*sids), GFP_KERNEL);
826826
if (!sids_copy) {
827827
kfree(rmr_data);
828828
return NULL;
@@ -1703,6 +1703,13 @@ static struct acpi_platform_list pmcg_plat_info[] __initdata = {
17031703
/* HiSilicon Hip09 Platform */
17041704
{"HISI ", "HIP09 ", 0, ACPI_SIG_IORT, greater_than_or_equal,
17051705
"Erratum #162001900", IORT_SMMU_V3_PMCG_HISI_HIP09},
1706+
/* HiSilicon Hip10/11 Platform uses the same SMMU IP with Hip09 */
1707+
{"HISI ", "HIP10 ", 0, ACPI_SIG_IORT, greater_than_or_equal,
1708+
"Erratum #162001900", IORT_SMMU_V3_PMCG_HISI_HIP09},
1709+
{"HISI ", "HIP10C ", 0, ACPI_SIG_IORT, greater_than_or_equal,
1710+
"Erratum #162001900", IORT_SMMU_V3_PMCG_HISI_HIP09},
1711+
{"HISI ", "HIP11 ", 0, ACPI_SIG_IORT, greater_than_or_equal,
1712+
"Erratum #162001900", IORT_SMMU_V3_PMCG_HISI_HIP09},
17061713
{ }
17071714
};
17081715

0 commit comments

Comments
 (0)