summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
diff options
context:
space:
mode:
authorFelix Kuehling <Felix.Kuehling@amd.com>2017-12-08 23:09:03 -0500
committerOded Gabbay <oded.gabbay@gmail.com>2017-12-08 23:09:03 -0500
commitebcfd1e276207e4436a6d15a81f7e151a103565c (patch)
treeed164e3f9eabe3ae94b52f3524c4dba976cc520b /drivers/gpu/drm/amd/amdkfd/kfd_crat.c
parent413e85d5d38f9b000561b6b9adf4182803b50af0 (diff)
downloadlinux-stable-ebcfd1e276207e4436a6d15a81f7e151a103565c.tar.gz
linux-stable-ebcfd1e276207e4436a6d15a81f7e151a103565c.tar.bz2
linux-stable-ebcfd1e276207e4436a6d15a81f7e151a103565c.zip
drm/amdkfd: Module option to disable CRAT table
Some systems have broken CRAT tables. Add a module option to ignore a CRAT table. Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd/kfd_crat.c')
-rw-r--r--drivers/gpu/drm/amd/amdkfd/kfd_crat.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
index d00061b75193..2bc2816767a7 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
@@ -696,6 +696,11 @@ int kfd_create_crat_image_acpi(void **crat_image, size_t *size)
return -EINVAL;
}
+ if (ignore_crat) {
+ pr_info("CRAT table disabled by module option\n");
+ return -ENODATA;
+ }
+
pcrat_image = kmalloc(crat_table->length, GFP_KERNEL);
if (!pcrat_image)
return -ENOMEM;