CONFIG_PPC_VAS depends on 64k pages, but after making a small tweak to the init code, it seems to work fine on 4k pages, allowing use of the NX gzip accelerator on POWER9.
26 lines
972 B
Diff
26 lines
972 B
Diff
diff --git a/arch/powerpc/platforms/powernv/Kconfig b/arch/powerpc/platforms/powernv/Kconfig
|
|
index 938803eab0ad..40c81b358004 100644
|
|
--- a/arch/powerpc/platforms/powernv/Kconfig
|
|
+++ b/arch/powerpc/platforms/powernv/Kconfig
|
|
@@ -35,7 +35,7 @@ config PPC_MEMTRACE
|
|
|
|
config PPC_VAS
|
|
bool "IBM Virtual Accelerator Switchboard (VAS)"
|
|
- depends on PPC_POWERNV && PPC_64K_PAGES
|
|
+ depends on PPC_POWERNV
|
|
default y
|
|
help
|
|
This enables support for IBM Virtual Accelerator Switchboard (VAS).
|
|
diff --git a/arch/powerpc/platforms/powernv/vas.c b/arch/powerpc/platforms/powernv/vas.c
|
|
index 598e4cd563fb..d81e55de6db4 100644
|
|
--- a/arch/powerpc/platforms/powernv/vas.c
|
|
+++ b/arch/powerpc/platforms/powernv/vas.c
|
|
@@ -70,7 +70,7 @@ static int init_vas_instance(struct platform_device *pdev)
|
|
return -ENODEV;
|
|
}
|
|
|
|
- if (pdev->num_resources != 4) {
|
|
+ if (pdev->num_resources < 4) {
|
|
pr_err("Unexpected DT configuration for [%s, %d]\n",
|
|
pdev->name, vasid);
|
|
return -ENODEV;
|