drm/amdgpu: attr to control SS2.0 bias level (v2)
Subsystems (5)
PATCH 1/1 drm/amdgpu: attr to control SS2.0 bias level (v2)
add sysfs attr to read/write smartshift bias level. document smartshift_bias sysfs attr.
V2: add attr to amdgpu_device_attrs and use attr_update (Lijo)
Signed-off-by Sathishkumar S <[email protected]>
Reviewed-by Lijo Lazar <[email protected]>
--- Documentation/gpu/amdgpu.rst | 6 ++ drivers/gpu/drm/amd/amdgpu/amdgpu.h | 5 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 1 + drivers/gpu/drm/amd/pm/amdgpu_pm.c | 80 +++++++++++++++++++++++++ 4 files changed, 92 insertions(+)
Documentation/gpu/amdgpu.rst +6 -0
@@ -316,3 +316,9 @@ smartshift_dgpu_power .. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c :doc: smartshift_dgpu_power + +smartshift_bias +--------------- + +.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c + :doc: smartshift_bias
drivers/gpu/drm/amd/amdgpu/amdgpu.h +5 -0
@@ -211,6 +211,7 @@ extern int amdgpu_discovery;extern int amdgpu_mes;extern int amdgpu_noretry;extern int amdgpu_force_asic_type; +extern int amdgpu_smartshift_bias;#ifdef CONFIG_HSA_AMD extern int sched_policy;extern bool debug_evictions;
@@ -268,6 +269,10 @@ extern int amdgpu_num_kcq;#define CIK_CURSOR_WIDTH 128#define CIK_CURSOR_HEIGHT 128 +/* smasrt shift bias level limits */ +#define AMDGPU_SMARTSHIFT_MAX_BIAS (100) +#define AMDGPU_SMARTSHIFT_MIN_BIAS (-100) +struct amdgpu_device ;struct amdgpu_ib ;struct amdgpu_cs_parser ;
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +1 -0
@@ -171,6 +171,7 @@ int amdgpu_tmz = -1; /* auto */uint amdgpu_freesync_vid_mode;int amdgpu_reset_method =-1 ;/* auto */ int amdgpu_num_kcq =-1 ; +int amdgpu_smartshift_bias;static void amdgpu_drv_delayed_reset_work_handler (struct work_struct *work);
drivers/gpu/drm/amd/pm/amdgpu_pm.c +80 -0
98 lines not on this page · raw message
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx