diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3193-drm-amd-powerplay-determine-the-features-to-enable-b.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3193-drm-amd-powerplay-determine-the-features-to-enable-b.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3193-drm-amd-powerplay-determine-the-features-to-enable-b.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3193-drm-amd-powerplay-determine-the-features-to-enable-b.patch new file mode 100644 index 00000000..48f7546e --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3193-drm-amd-powerplay-determine-the-features-to-enable-b.patch @@ -0,0 +1,44 @@ +From 8ad7f85043fbd3b8594d1273bbe03fcb4d2c22c6 Mon Sep 17 00:00:00 2001 +From: Evan Quan <evan.quan@amd.com> +Date: Thu, 25 Jul 2019 16:40:51 +0800 +Subject: [PATCH 3193/4256] drm/amd/powerplay: determine the features to enable + by pptable only + +Per current logics, the features to enable are determined together +by driver and pptable. This is not efficient in co-debug with +firmware team. + +Signed-off-by: Evan Quan <evan.quan@amd.com> +Reviewed-by: Kenneth Feng <kenneth.feng@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/powerplay/arcturus_ppt.c | 6 ++---- + 1 file changed, 2 insertions(+), 4 deletions(-) + +diff --git a/drivers/gpu/drm/amd/powerplay/arcturus_ppt.c b/drivers/gpu/drm/amd/powerplay/arcturus_ppt.c +index 97a247a234a8..c9145c190d9f 100644 +--- a/drivers/gpu/drm/amd/powerplay/arcturus_ppt.c ++++ b/drivers/gpu/drm/amd/powerplay/arcturus_ppt.c +@@ -329,7 +329,6 @@ static int arcturus_allocate_dpm_context(struct smu_context *smu) + return 0; + } + +-#define FEATURE_MASK(feature) (1ULL << feature) + static int + arcturus_get_allowed_feature_mask(struct smu_context *smu, + uint32_t *feature_mask, uint32_t num) +@@ -337,9 +336,8 @@ arcturus_get_allowed_feature_mask(struct smu_context *smu, + if (num > 2) + return -EINVAL; + +- memset(feature_mask, 0, sizeof(uint32_t) * num); +- +- *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_DPM_PREFETCHER_BIT); ++ /* pptable will handle the features to enable */ ++ memset(feature_mask, 0xFF, sizeof(uint32_t) * num); + + return 0; + } +-- +2.17.1 + |