The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/tests/amdgpu_dm_freesync_test.c:826:1: warning: the frame size of 1288 bytes is larger than 1280 bytes
@ 2026-12-03 18:36 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-12-03 18:36 UTC (permalink / raw)
  To: Ivan Lipski
  Cc: oe-kbuild-all, linux-kernel, Alex Deucher, Jerry Zuo, Roman Li

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   d06ce6f1eb5eeffd4ebcfde345dc34a98131d106
commit: 123e9515f7e05c694d8abc6f786aecd457aab2f3 drm/amd/display: Send HDMI VRR metadata in VTEM info packet slot
date:   8 weeks ago
config: arm-allyesconfig (https://download.01.org/0day-ci/archive/20261204/20261204022808.dUPje71f-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 16.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261204/20261204022808.dUPje71f-lkp@intel.com/reproduce)

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
| Fixes: 123e9515f7e0 ("drm/amd/display: Send HDMI VRR metadata in VTEM info packet slot")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261204022808.dUPje71f-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/tests/amdgpu_dm_freesync_test.c: In function 'dm_test_handle_vrr_transition_round_trip':
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/tests/amdgpu_dm_freesync_test.c:826:1: warning: the frame size of 1288 bytes is larger than 1280 bytes [-Wframe-larger-than=]
     826 | }
         | ^


vim +826 drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/tests/amdgpu_dm_freesync_test.c

7f50f13108a4de6 Alex Hung 2026-07-29  783  
7f50f13108a4de6 Alex Hung 2026-07-29  784  /**
7f50f13108a4de6 Alex Hung 2026-07-29  785   * dm_test_handle_vrr_transition_round_trip - Test VRR on and off transitions
7f50f13108a4de6 Alex Hung 2026-07-29  786   * @test: The KUnit test context
7f50f13108a4de6 Alex Hung 2026-07-29  787   */
7f50f13108a4de6 Alex Hung 2026-07-29  788  static void dm_test_handle_vrr_transition_round_trip(struct kunit *test)
7f50f13108a4de6 Alex Hung 2026-07-29  789  {
7f50f13108a4de6 Alex Hung 2026-07-29  790  	struct amdgpu_device *adev = dm_kunit_alloc_adev(test);
7f50f13108a4de6 Alex Hung 2026-07-29  791  	struct dc_link *link = dm_kunit_alloc_link(test);
7f50f13108a4de6 Alex Hung 2026-07-29  792  	struct dc_stream_state *stream = dm_kunit_alloc_stream(test, link);
7f50f13108a4de6 Alex Hung 2026-07-29  793  	struct drm_vblank_crtc *vblank;
7f50f13108a4de6 Alex Hung 2026-07-29  794  	struct amdgpu_crtc *acrtc;
7f50f13108a4de6 Alex Hung 2026-07-29  795  	struct dm_crtc_state old_state = { 0 };
7f50f13108a4de6 Alex Hung 2026-07-29  796  	struct dm_crtc_state new_state = { 0 };
7f50f13108a4de6 Alex Hung 2026-07-29  797  
7f50f13108a4de6 Alex Hung 2026-07-29  798  	KUNIT_ASSERT_EQ(test, drm_vblank_init(&adev->ddev, 1), 0);
7f50f13108a4de6 Alex Hung 2026-07-29  799  	acrtc = kunit_kzalloc(test, sizeof(*acrtc), GFP_KERNEL);
7f50f13108a4de6 Alex Hung 2026-07-29  800  	KUNIT_ASSERT_NOT_NULL(test, acrtc);
7f50f13108a4de6 Alex Hung 2026-07-29  801  	acrtc->base.dev = &adev->ddev;
20f1647b4c3af9a Alex Hung 2026-09-10  802  	acrtc->base.funcs = &dm_test_freesync_crtc_funcs;
20f1647b4c3af9a Alex Hung 2026-09-10  803  	INIT_LIST_HEAD(&acrtc->base.head);
20f1647b4c3af9a Alex Hung 2026-09-10  804  	list_add_tail(&acrtc->base.head, &adev->ddev.mode_config.crtc_list);
20f1647b4c3af9a Alex Hung 2026-09-10  805  	KUNIT_ASSERT_EQ(test,
20f1647b4c3af9a Alex Hung 2026-09-10  806  			kunit_add_action_or_reset(test, dm_test_freesync_crtc_cleanup, acrtc), 0);
7f50f13108a4de6 Alex Hung 2026-07-29  807  	acrtc->otg_inst = -1;
7f50f13108a4de6 Alex Hung 2026-07-29  808  	vblank = drm_crtc_vblank_crtc(&acrtc->base);
7f50f13108a4de6 Alex Hung 2026-07-29  809  	adev->ddev.vblank[0].enabled = true;
7f50f13108a4de6 Alex Hung 2026-07-29  810  	adev->dm.adev = adev;
7f50f13108a4de6 Alex Hung 2026-07-29  811  	adev->dm.dc = kunit_kzalloc(test, sizeof(*adev->dm.dc), GFP_KERNEL);
7f50f13108a4de6 Alex Hung 2026-07-29  812  	KUNIT_ASSERT_NOT_NULL(test, adev->dm.dc);
7f50f13108a4de6 Alex Hung 2026-07-29  813  	mutex_init(&adev->dm.dc_lock);
7f50f13108a4de6 Alex Hung 2026-07-29  814  
7f50f13108a4de6 Alex Hung 2026-07-29  815  	old_state.base.crtc = &acrtc->base;
7f50f13108a4de6 Alex Hung 2026-07-29  816  	old_state.stream = stream;
7f50f13108a4de6 Alex Hung 2026-07-29  817  	new_state.base.crtc = &acrtc->base;
7f50f13108a4de6 Alex Hung 2026-07-29  818  	new_state.stream = stream;
7f50f13108a4de6 Alex Hung 2026-07-29  819  	new_state.freesync_config.state = VRR_STATE_ACTIVE_VARIABLE;
7f50f13108a4de6 Alex Hung 2026-07-29  820  
7f50f13108a4de6 Alex Hung 2026-07-29  821  	amdgpu_dm_handle_vrr_transition(&adev->dm, &old_state, &new_state);
7f50f13108a4de6 Alex Hung 2026-07-29  822  	KUNIT_EXPECT_EQ(test, atomic_read(&vblank->refcount), 1);
7f50f13108a4de6 Alex Hung 2026-07-29  823  
7f50f13108a4de6 Alex Hung 2026-07-29  824  	amdgpu_dm_handle_vrr_transition(&adev->dm, &new_state, &old_state);
7f50f13108a4de6 Alex Hung 2026-07-29  825  	KUNIT_EXPECT_EQ(test, atomic_read(&vblank->refcount), 0);
7f50f13108a4de6 Alex Hung 2026-07-29 @826  }
7f50f13108a4de6 Alex Hung 2026-07-29  827  

:::::: The code at line 826 was first introduced by commit
:::::: 7f50f13108a4de6ea69b6b45910ca9e5d455865b drm/amd/display: test VRR transitions

:::::: TO: Alex Hung <alex.hung@amd.com>
:::::: CC: Alex Deucher <alexander.deucher@amd.com>

-- 
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:[~2026-12-03 18:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 18:36 drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/tests/amdgpu_dm_freesync_test.c:826:1: warning: the frame size of 1288 bytes is larger than 1280 bytes kernel test robot

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