mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c:311:49-70: opportunity for str_true_false(vpe -> collaborate_mode) (fwd)
@ 2025-03-22 13:02 Julia Lawall
  0 siblings, 0 replies; only message in thread
From: Julia Lawall @ 2025-03-22 13:02 UTC (permalink / raw)
  To: Lang Yu; +Cc: oe-kbuild-all, linux-kernel, Alex Deucher



---------- Forwarded message ----------
Date: Sat, 22 Mar 2025 20:31:17 +0800
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Julia Lawall <julia.lawall@inria.fr>
Subject: drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c:311:49-70: opportunity for
    str_true_false(vpe -> collaborate_mode)

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Lang Yu <Lang.Yu@amd.com>
CC: Alex Deucher <alexander.deucher@amd.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   88d324e69ea9f3ae1c1905ea75d717c08bdb8e15
commit: f9070b0f2f9edb503b20b12782d4d601cafc6d5e drm/amdgpu/vpe: add VPE 6.1.1 support
date:   1 year ago
:::::: branch date: 15 hours ago
:::::: commit date: 1 year ago
config: loongarch-randconfig-r064-20250322 (https://download.01.org/0day-ci/archive/20250322/202503222049.sUXL3q6w-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 14.2.0

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>
| Reported-by: Julia Lawall <julia.lawall@inria.fr>
| Closes: https://lore.kernel.org/r/202503222049.sUXL3q6w-lkp@intel.com/

cocci warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c:311:49-70: opportunity for str_true_false(vpe -> collaborate_mode)

vim +311 drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c

9d4346bdbc6484 Lang Yu    2022-05-23  290
9d4346bdbc6484 Lang Yu    2022-05-23  291  static int vpe_early_init(void *handle)
9d4346bdbc6484 Lang Yu    2022-05-23  292  {
9d4346bdbc6484 Lang Yu    2022-05-23  293  	struct amdgpu_device *adev = (struct amdgpu_device *)handle;
9d4346bdbc6484 Lang Yu    2022-05-23  294  	struct amdgpu_vpe *vpe = &adev->vpe;
9d4346bdbc6484 Lang Yu    2022-05-23  295
4e8303cf2c4dd2 Lijo Lazar 2023-09-11  296  	switch (amdgpu_ip_version(adev, VPE_HWIP, 0)) {
9d4346bdbc6484 Lang Yu    2022-05-23  297  	case IP_VERSION(6, 1, 0):
9d4346bdbc6484 Lang Yu    2022-05-23  298  		vpe_v6_1_set_funcs(vpe);
9d4346bdbc6484 Lang Yu    2022-05-23  299  		break;
f9070b0f2f9edb Lang Yu    2023-11-15  300  	case IP_VERSION(6, 1, 1):
f9070b0f2f9edb Lang Yu    2023-11-15  301  		vpe_v6_1_set_funcs(vpe);
f9070b0f2f9edb Lang Yu    2023-11-15  302  		vpe->collaborate_mode = true;
f9070b0f2f9edb Lang Yu    2023-11-15  303  		break;
9d4346bdbc6484 Lang Yu    2022-05-23  304  	default:
9d4346bdbc6484 Lang Yu    2022-05-23  305  		return -EINVAL;
9d4346bdbc6484 Lang Yu    2022-05-23  306  	}
9d4346bdbc6484 Lang Yu    2022-05-23  307
9d4346bdbc6484 Lang Yu    2022-05-23  308  	vpe_set_ring_funcs(adev);
9d4346bdbc6484 Lang Yu    2022-05-23  309  	vpe_set_regs(vpe);
9d4346bdbc6484 Lang Yu    2022-05-23  310
f9070b0f2f9edb Lang Yu    2023-11-15 @311  	dev_info(adev->dev, "VPE: collaborate mode %s", vpe->collaborate_mode ? "true" : "false");
f9070b0f2f9edb Lang Yu    2023-11-15  312
9d4346bdbc6484 Lang Yu    2022-05-23  313  	return 0;
9d4346bdbc6484 Lang Yu    2022-05-23  314  }
9d4346bdbc6484 Lang Yu    2022-05-23  315

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-03-22 13:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-22 13:02 drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c:311:49-70: opportunity for str_true_false(vpe -> collaborate_mode) (fwd) Julia Lawall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®