From: kernel test robot <lkp@intel.com>
To: Yang Wang <kevinyang.wang@amd.com>
Cc: oe-kbuild-all@lists.linux.dev,
Alex Deucher <alexander.deucher@amd.com>,
Kenneth Feng <kenneth.feng@amd.com>
Subject: [agd5f:drm-next-7.3 222/308] drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/smu_v13_0_0_ppt.c:3073 smu_v13_0_0_set_ppt_limit() warn: inconsistent indenting
Date: Wed, 12 Aug 2026 19:13:36 +0800 [thread overview]
Message-ID: <202608121942.wUjTbLtn-lkp@intel.com> (raw)
tree: https://gitlab.freedesktop.org/agd5f/linux.git drm-next-7.3
head: daaeec235e46b45a0dbd4facfb275cc43022028d
commit: 6c9e0328d1dee58cd2ebbcc34b43eefc342d6d62 [222/308] drm/amd/pm: refactor PPT limits by controller and power source
config: x86_64-randconfig-161-20260810 (https://download.01.org/0day-ci/archive/20260812/202608121942.wUjTbLtn-lkp@intel.com/config)
compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)
smatch: v0.5.0-9187-g5189e3fb
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202608121942.wUjTbLtn-lkp@intel.com/
smatch warnings:
drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/smu_v13_0_0_ppt.c:3073 smu_v13_0_0_set_ppt_limit() warn: inconsistent indenting
vim +3073 drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/smu_v13_0_0_ppt.c
3041
3042 static int smu_v13_0_0_set_ppt_limit(struct smu_context *smu,
3043 enum smu_ppt_limit_type limit_type,
3044 uint32_t limit)
3045 {
3046 PPTable_t *pptable = smu->smu_table.driver_pptable;
3047 SkuTable_t *skutable = &pptable->SkuTable;
3048 uint32_t msg_limit = skutable->MsgLimits.Power[PPT_THROTTLER_PPT0][POWER_SOURCE_AC];
3049 struct smu_table_context *table_context = &smu->smu_table;
3050 OverDriveTableExternal_t *od_table =
3051 (OverDriveTableExternal_t *)table_context->overdrive_table;
3052 uint32_t current_limit;
3053 int ret = 0;
3054
3055 if (limit_type != SMU_PPT_LIMIT_PPT0)
3056 return -EINVAL;
3057
3058 ret = smu_v13_0_0_get_ppt_limit(smu, limit_type, ¤t_limit);
3059 if (ret)
3060 return ret;
3061
3062 if (limit <= msg_limit) {
3063 if (current_limit > msg_limit) {
3064 od_table->OverDriveTable.Ppt = 0;
3065 od_table->OverDriveTable.FeatureCtrlMask |= 1U << PP_OD_FEATURE_PPT_BIT;
3066
3067 ret = smu_v13_0_0_upload_overdrive_table(smu, od_table);
3068 if (ret) {
3069 dev_err(smu->adev->dev, "Failed to upload overdrive table!\n");
3070 return ret;
3071 }
3072 }
> 3073 return smu_v13_0_set_ppt_limit(smu, limit_type, limit);
3074 } else if (smu->od_enabled) {
3075 ret = smu_v13_0_set_ppt_limit(smu, limit_type, msg_limit);
3076 if (ret)
3077 return ret;
3078
3079 od_table->OverDriveTable.Ppt = (limit * 100) / msg_limit - 100;
3080 od_table->OverDriveTable.FeatureCtrlMask |= 1U << PP_OD_FEATURE_PPT_BIT;
3081
3082 ret = smu_v13_0_0_upload_overdrive_table(smu, od_table);
3083 if (ret) {
3084 dev_err(smu->adev->dev, "Failed to upload overdrive table!\n");
3085 return ret;
3086 }
3087
3088 } else {
3089 return -EINVAL;
3090 }
3091
3092 return 0;
3093 }
3094
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-08-12 11:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202608121942.wUjTbLtn-lkp@intel.com \
--to=lkp@intel.com \
--cc=alexander.deucher@amd.com \
--cc=kenneth.feng@amd.com \
--cc=kevinyang.wang@amd.com \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.