]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: acpi: Prepare for longer MADTs
authorJeremy Linton <jeremy.linton@arm.com>
Tue, 27 Nov 2018 17:59:12 +0000 (17:59 +0000)
committerWill Deacon <will.deacon@arm.com>
Tue, 27 Nov 2018 18:00:14 +0000 (18:00 +0000)
commit3e1940573063ef7d23ea185f45b040b839fd1352
tree2468e2f93e7ac2c58bd47d30fe5d5283e30f7b0d
parentb079c0c551ac8fcd1708b845994a9abcc1fa7249
arm64: acpi: Prepare for longer MADTs

The BAD_MADT_GICC_ENTRY check is a little too strict because
it rejects MADT entries that don't match the currently known
lengths. We should remove this restriction to avoid problems
if the table length changes. Future code which might depend on
additional fields should be written to validate those fields
before using them, rather than trying to globally check
known MADT version lengths.

Link: https://lkml.kernel.org/r/20181012192937.3819951-1-jeremy.linton@arm.com
Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
[lorenzo.pieralisi@arm.com: added MADT macro comments]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Al Stone <ahs3@redhat.com>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/acpi.h