hi, we made this report due to the similar reason as for drm_rect_calc_vscale https://lore.kernel.org/all/202307061333.c112d283-oliver.sang@intel.com/ previously, we reported "[drm-misc:drm-misc-next] [drm/tests] 1f01f2247e: WARNING:at_drivers/gpu/drm/drm_rect.c:#drm_rect_calc_hscale[drm_kms_helper]" on https://lore.kernel.org/all/202304292237.bb55af24-oliver.sang@intel.com/ when this commit is still on git://anongit.freedesktop.org/drm/drm-misc drm-misc-next now we noticed the issue still exists on mainline. at the same time, we noticed this commit adds the test cases for drm_rect_calc_hscale(), and the WARNING is introduced by this new added test, however, from below details, the test itself passed. [ 204.563448][ T1987] ok 6 drm_test_rect_calc_hscale we are not sure if this WARNING is expected or just trivial. below detail report is just FYI. Hello, kernel test robot noticed "WARNING:at_drivers/gpu/drm/drm_rect.c:#drm_rect_calc_hscale[drm_kms_helper]" on: commit: 1f01f2247e3c4ed55c96afccd0072cd31793c604 ("drm/tests: Add test cases for drm_rect_calc_hscale()") https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master [test failed on linus/master 6cd06ab12d1afdab3847e7981f301bd0404aaa5c] [test failed on linux-next/master e1f6a8eaf1c271a0158114a03e3605f4fba059ad] in testcase: kunit version: with following parameters: group: group-00 compiler: gcc-12 test machine: 16 threads 1 sockets Intel(R) Xeon(R) CPU D-1541 @ 2.10GHz (Broadwell-DE) with 48G memory (please refer to attached dmesg/kmsg for entire log/backtrace) 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 | Closes: https://lore.kernel.org/oe-lkp/202307061319.81e09b91-oliver.sang@intel.com [ 203.829072][ T1987] # Subtest: drm_test_rect_calc_hscale [ 203.829485][ T1987] ok 1 normal use [ 203.836984][ T1987] ok 2 out of max range [ 203.842628][ T1987] ok 3 out of min range [ 203.848762][ T1987] ok 4 zero dst [ 203.854798][ T2011] ------------[ cut here ]------------ [ 203.866301][ T2011] WARNING: CPU: 14 PID: 2011 at drivers/gpu/drm/drm_rect.c:138 drm_rect_calc_hscale+0x121/0x190 [drm_kms_helper] [ 203.880244][ T2011] Modules linked in: drm_rect_test prime_numbers drm_display_helper linear_ranges intel_rapl_msr intel_rapl_common sb_edac x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel sha512_ssse3 rapl btrfs blake2b_generic xor raid6_pq libcrc32c crc32c_intel sd_mod t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg intel_cstate ipmi_ssif ast ahci drm_shmem_helper libahci drm_kms_helper intel_uncore joydev syscopyarea sysfillrect mei_me gpio_ich acpi_ipmi sysimgblt libata ioatdma intel_pch_thermal mei dca ipmi_si ipmi_devintf mxm_wmi ipmi_msghandler wmi acpi_pad drm fuse ip_tables [last unloaded: drm_plane_helper_test] [ 203.948484][ T2011] CPU: 14 PID: 2011 Comm: kunit_try_catch Tainted: G B W N 6.3.0-rc4-01596-g1f01f2247e3c #1 [ 203.960624][ T2011] Hardware name: Supermicro SYS-5018D-FN4T/X10SDV-8C-TLN4F, BIOS 1.1 03/02/2016 [ 203.970686][ T2011] RIP: 0010:drm_rect_calc_hscale+0x121/0x190 [drm_kms_helper] [ 203.979180][ T2011] Code: cd 7c 3b 48 83 c4 08 89 c8 5b 5d 41 5c 41 5d c3 8d 44 08 ff 99 f7 f9 89 c1 85 c0 79 dc 48 83 c4 08 89 c8 5b 5d 41 5c 41 5d c3 <0f> 0b b9 ea ff ff ff 48 83 c4 08 5b 89 c8 5d 41 5c 41 5d c3 b9 de [ 204.001074][ T2011] RSP: 0018:ffffc90001f4fe00 EFLAGS: 00010286 [ 204.008233][ T2011] RAX: 00000000ffff0000 RBX: 00000000ffff0000 RCX: 0000000000010000 [ 204.017314][ T2011] RDX: 0000000000000003 RSI: 0000000000000000 RDI: ffffffffc04a5e40 [ 204.026403][ T2011] RBP: ffffffffc04a5e28 R08: 0000000000000000 R09: ffff888101740f07 [ 204.035538][ T2011] R10: ffffed10202e81e0 R11: 0000000000000000 R12: 0000000000000000 [ 204.044655][ T2011] R13: 000000007fffffff R14: ffffc90001aaf8c0 R15: ffff888c6cfe8000 [ 204.053788][ T2011] FS: 0000000000000000(0000) GS:ffff888ab9d00000(0000) knlGS:0000000000000000 [ 204.063865][ T2011] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 204.071643][ T2011] CR2: 00007f5152bb2550 CR3: 0000000c7dc4a001 CR4: 00000000003706e0 [ 204.080819][ T2011] DR0: ffffffff8633b320 DR1: ffffffff8633b321 DR2: ffffffff8633b322 [ 204.089984][ T2011] DR3: ffffffff8633b323 DR6: 00000000fffe0ff0 DR7: 0000000000000600 [ 204.099146][ T2011] Call Trace: [ 204.103637][ T2011] [ 204.107773][ T2011] drm_test_rect_calc_hscale+0xf1/0x1d0 [drm_rect_test] [ 204.115902][ T2011] ? 0xffffffffc04a1000 [ 204.121273][ T2011] ? _raw_read_unlock_irqrestore+0x50/0x50 [ 204.128304][ T2011] ? set_cpus_allowed_ptr+0x85/0xb0 [ 204.134725][ T2011] ? migrate_enable+0x210/0x210 [ 204.140800][ T2011] kunit_try_run_case+0x109/0x290 [ 204.147032][ T2011] ? schedule+0x137/0x220 [ 204.152563][ T2011] ? kunit_catch_run_case+0x270/0x270 [ 204.159139][ T2011] ? kunit_try_catch_throw+0x80/0x80 [ 204.165643][ T2011] kunit_generic_run_threadfn_adapter+0x4e/0xa0 [ 204.173098][ T2011] kthread+0x290/0x330 [ 204.178368][ T2011] ? kthread_complete_and_exit+0x30/0x30 [ 204.185212][ T2011] ret_from_fork+0x1f/0x30 [ 204.190844][ T2011] [ 204.195045][ T2011] ---[ end trace 0000000000000000 ]--- [ 204.201742][ T1987] ok 5 negative src [ 204.202169][ T2012] ------------[ cut here ]------------ [ 204.215001][ T2012] WARNING: CPU: 3 PID: 2012 at drivers/gpu/drm/drm_rect.c:138 drm_rect_calc_hscale+0x121/0x190 [drm_kms_helper] [ 204.230004][ T2012] Modules linked in: drm_rect_test prime_numbers drm_display_helper linear_ranges intel_rapl_msr intel_rapl_common sb_edac x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel sha512_ssse3 rapl btrfs blake2b_generic xor raid6_pq libcrc32c crc32c_intel sd_mod t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg intel_cstate ipmi_ssif ast ahci drm_shmem_helper libahci drm_kms_helper intel_uncore joydev syscopyarea sysfillrect mei_me gpio_ich acpi_ipmi sysimgblt libata ioatdma intel_pch_thermal mei dca ipmi_si ipmi_devintf mxm_wmi ipmi_msghandler wmi acpi_pad drm fuse ip_tables [last unloaded: drm_plane_helper_test] [ 204.300917][ T2012] CPU: 3 PID: 2012 Comm: kunit_try_catch Tainted: G B W N 6.3.0-rc4-01596-g1f01f2247e3c #1 [ 204.313316][ T2012] Hardware name: Supermicro SYS-5018D-FN4T/X10SDV-8C-TLN4F, BIOS 1.1 03/02/2016 [ 204.323682][ T2012] RIP: 0010:drm_rect_calc_hscale+0x121/0x190 [drm_kms_helper] [ 204.332483][ T2012] Code: cd 7c 3b 48 83 c4 08 89 c8 5b 5d 41 5c 41 5d c3 8d 44 08 ff 99 f7 f9 89 c1 85 c0 79 dc 48 83 c4 08 89 c8 5b 5d 41 5c 41 5d c3 <0f> 0b b9 ea ff ff ff 48 83 c4 08 5b 89 c8 5d 41 5c 41 5d c3 b9 de [ 204.354886][ T2012] RSP: 0018:ffffc90001f5fe00 EFLAGS: 00010286 [ 204.362284][ T2012] RAX: 0000000000010000 RBX: 00000000ffff0000 RCX: 00000000ffff0000 [ 204.371568][ T2012] RDX: 0000000000000003 RSI: 0000000000000000 RDI: ffffffffc04a5e78 [ 204.380847][ T2012] RBP: ffffffffc04a5e60 R08: 0000000000000000 R09: ffff88820c4ebe07 [ 204.390077][ T2012] R10: ffffed104189d7c0 R11: ffff888ab97c4880 R12: 0000000000000000 [ 204.399309][ T2012] R13: 000000007fffffff R14: ffffc90001aaf8c0 R15: ffff888c6cfea940 [ 204.408518][ T2012] FS: 0000000000000000(0000) GS:ffff888ab9780000(0000) knlGS:0000000000000000 [ 204.418714][ T2012] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 204.426559][ T2012] CR2: 00007ff85cabc000 CR3: 0000000c7dc4a001 CR4: 00000000003706e0 [ 204.435802][ T2012] DR0: ffffffff8633b32c DR1: ffffffff8633b32d DR2: ffffffff8633b32e [ 204.445072][ T2012] DR3: ffffffff8633b32f DR6: 00000000fffe0ff0 DR7: 0000000000000600 [ 204.454335][ T2012] Call Trace: [ 204.458889][ T2012] [ 204.463048][ T2012] drm_test_rect_calc_hscale+0xf1/0x1d0 [drm_rect_test] [ 204.471223][ T2012] ? 0xffffffffc04a1000 [ 204.476642][ T2012] ? _raw_read_unlock_irqrestore+0x50/0x50 [ 204.483673][ T2012] ? set_cpus_allowed_ptr+0x85/0xb0 [ 204.490106][ T2012] ? migrate_enable+0x210/0x210 [ 204.496197][ T2012] kunit_try_run_case+0x109/0x290 [ 204.502439][ T2012] ? schedule+0x137/0x220 [ 204.507979][ T2012] ? kunit_catch_run_case+0x270/0x270 [ 204.514558][ T2012] ? kunit_try_catch_throw+0x80/0x80 [ 204.521048][ T2012] kunit_generic_run_threadfn_adapter+0x4e/0xa0 [ 204.528499][ T2012] kthread+0x290/0x330 [ 204.533771][ T2012] ? kthread_complete_and_exit+0x30/0x30 [ 204.540640][ T2012] ret_from_fork+0x1f/0x30 [ 204.546300][ T2012] [ 204.550526][ T2012] ---[ end trace 0000000000000000 ]--- [ 204.557207][ T1987] ok 6 negative dst [ 204.557214][ T1987] # drm_test_rect_calc_hscale: pass:6 fail:0 skip:0 total:6 [ 204.563448][ T1987] ok 6 drm_test_rect_calc_hscale To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests sudo bin/lkp install job.yaml # job file is attached in this email bin/lkp split-job --compatible job.yaml # generate the yaml file for lkp run sudo bin/lkp run generated-yaml-file # if come across any failure that blocks the test, # please remove ~/.lkp and /lkp dir to run from a clean state. -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki