From 0b0df9eb84d68b9daf6b309263d133bb1a720e9b Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Mon, 30 Oct 2017 13:22:21 -0700 Subject: gpu: nvgpu: Use nvgpu_is_enabled() for ASPM Convert disable_aspm and references to that field to use nvgpu_is_enabled(NVGPU_SUPPORT_ASPM). Initialize it from gk20a_platform struct at probe time. This removes another dependency to struct gk20a_platform. JIRA NVGPU-259 Change-Id: I32e30160f817ea275aa190dcf86c5fd594138d75 Signed-off-by: Terje Bergstrom Reviewed-on: https://git-master.nvidia.com/r/1590124 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/include/nvgpu/enabled.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/gpu/nvgpu/include') diff --git a/drivers/gpu/nvgpu/include/nvgpu/enabled.h b/drivers/gpu/nvgpu/include/nvgpu/enabled.h index 87449ccc..14595497 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/enabled.h +++ b/drivers/gpu/nvgpu/include/nvgpu/enabled.h @@ -125,6 +125,8 @@ struct gk20a; /* whether to run PREOS binary on dGPUs */ #define NVGPU_PMU_RUN_PREOS 61 +/* set if ASPM is enabled; only makes sense for PCI */ +#define NVGPU_SUPPORT_ASPM 62 /* * Must be greater than the largest bit offset in the above list. */ -- cgit v1.2.2