diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3899-drm-amdgpu-fix-documentation-for-amdgpu_pm.c.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3899-drm-amdgpu-fix-documentation-for-amdgpu_pm.c.patch | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3899-drm-amdgpu-fix-documentation-for-amdgpu_pm.c.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3899-drm-amdgpu-fix-documentation-for-amdgpu_pm.c.patch new file mode 100644 index 00000000..0108068a --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3899-drm-amdgpu-fix-documentation-for-amdgpu_pm.c.patch @@ -0,0 +1,71 @@ +From 9d28186bc88310c6627777e5e7d43e3e5d013095 Mon Sep 17 00:00:00 2001 +From: Alex Deucher <alexander.deucher@amd.com> +Date: Thu, 19 Sep 2019 15:03:27 -0500 +Subject: [PATCH 3899/4256] drm/amdgpu: fix documentation for amdgpu_pm.c +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Fix DOC link name, clean up formatting in pp_dpm_* section. + +Acked-by: Christian König <christian.koenig@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + Documentation/gpu/amdgpu.rst | 6 +++--- + drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 13 +++++++++---- + 2 files changed, 12 insertions(+), 7 deletions(-) + +diff --git a/Documentation/gpu/amdgpu.rst b/Documentation/gpu/amdgpu.rst +index 5acdd1842ea2..80db5d89cd49 100644 +--- a/Documentation/gpu/amdgpu.rst ++++ b/Documentation/gpu/amdgpu.rst +@@ -130,11 +130,11 @@ pp_od_clk_voltage + .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c + :doc: pp_od_clk_voltage + +-pp_dpm_sclk pp_dpm_mclk pp_dpm_pcie +-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++pp_dpm_* ++~~~~~~~~ + + .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c +- :doc: pp_dpm_sclk pp_dpm_mclk pp_dpm_pcie ++ :doc: pp_dpm_sclk pp_dpm_mclk pp_dpm_socclk pp_dpm_fclk pp_dpm_dcefclk pp_dpm_pcie + + pp_power_profile_mode + ~~~~~~~~~~~~~~~~~~~~~ +diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c +index 5cf8d72e3859..571d10de9eca 100644 +--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c ++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c +@@ -802,8 +802,7 @@ static ssize_t amdgpu_get_pp_feature_status(struct device *dev, + } + + /** +- * DOC: pp_dpm_sclk pp_dpm_mclk pp_dpm_socclk pp_dpm_fclk pp_dpm_dcefclk +- * pp_dpm_pcie ++ * DOC: pp_dpm_sclk pp_dpm_mclk pp_dpm_socclk pp_dpm_fclk pp_dpm_dcefclk pp_dpm_pcie + * + * The amdgpu driver provides a sysfs API for adjusting what power levels + * are enabled for a given power state. The files pp_dpm_sclk, pp_dpm_mclk, +@@ -819,9 +818,15 @@ static ssize_t amdgpu_get_pp_feature_status(struct device *dev, + * + * To manually adjust these states, first select manual using + * power_dpm_force_performance_level. +- * Secondly,Enter a new value for each level by inputing a string that ++ * Secondly, enter a new value for each level by inputing a string that + * contains " echo xx xx xx > pp_dpm_sclk/mclk/pcie" +- * E.g., echo 4 5 6 to > pp_dpm_sclk will enable sclk levels 4, 5, and 6. ++ * E.g., ++ * ++ * .. code-block:: bash ++ * ++ * echo "4 5 6" > pp_dpm_sclk ++ * ++ * will enable sclk levels 4, 5, and 6. + * + * NOTE: change to the dcefclk max dpm level is not supported now + */ +-- +2.17.1 + |