FAILED: patch "[PATCH] drm/amd/pm: correct the MGpuFanBoost support for Beige Goby" failed to apply to 5.10-stable tree
[email protected]
maintainerThe patch below does not apply to the 5.10-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 3ec5586b4699cfb75cdfa09425e11d121db40773 Mon Sep 17 00:00:00 2001
From: Evan Quan <[email protected]>
Date: Mon, 24 Jan 2022 13:40:35 +0800
Subject: [PATCH] drm/amd/pm: correct the MGpuFanBoost support for Beige Goby
The existing way cannot handle Beige Goby well as a different PPTable data structure(PPTable_beige_goby_t instead of PPTable_t) is used there.
Signed-off-by Evan Quan <[email protected]>
Acked-by Alex Deucher <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c +3 -3
@@ -3696,14 +3696,14 @@ static ssize_t sienna_cichlid_get_gpu_metrics(struct smu_context *smu,static int sienna_cichlid_enable_mgpu_fan_boost (struct smu_context *smu) { -struct smu_table_context *table_context = &smu->smu_table; -PPTable_t *smc_pptable = table_context->driver_pptable; +uint16_t *mgpu_fan_boost_limit_rpm; +GET_PPTABLE_MEMBER (MGpuFanBoostLimitRpm, &mgpu_fan_boost_limit_rpm);/* * Skip the MGpuFanBoost setting for those ASICs * which do not support it */ -if (!smc_pptable->MGpuFanBoostLimitRpm) +if (*mgpu_fan_boost_limit_rpm ==0 )return 0 ; return smu_cmn_send_smc_msg_with_param(smu,