hi,
we reported
"[drm-misc:drm-misc-next] [drm/tests] 881e2a9cc1: dmesg.WARNING:at_drivers/gpu/drm/drm_rect.c:#drm_rect_calc_vscale[drm_kms_helper]"
on
https://lore.kernel.org/all/[email protected]/
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_vscale(),
and the WARNING is introduced by this new added test, however, from below
details, the test itself passed.
[ 200.796859][ T1925] ok 7 drm_test_rect_calc_vscale
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_vscale[drm_kms_helper]" on:
commit: 881e2a9cc11fb53b1de10d951a11a69d23035bbf ("drm/tests: Add test cases for drm_rect_calc_vscale()")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master
[test failed on linus/master d528014517f2b0531862c02865b9d4c908019dc4]
[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 <[email protected]>
| Closes: https://lore.kernel.org/oe-lkp/[email protected]
[ 200.057884][ T1925] # Subtest: drm_test_rect_calc_vscale
[ 200.058149][ T1925] ok 1 normal use
[ 200.066067][ T1925] ok 2 out of max range
[ 200.072102][ T1925] ok 3 out of min range
[ 200.078703][ T1925] ok 4 zero dst
[ 200.085099][ T1958] ------------[ cut here ]------------
[ 200.097374][ T1958] WARNING: CPU: 13 PID: 1958 at drivers/gpu/drm/drm_rect.c:138 drm_rect_calc_vscale+0x12a/0x190 [drm_kms_helper]
[ 200.111901][ T1958] 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 ahci libahci ast intel_uncore drm_shmem_helper libata drm_kms_helper intel_pch_thermal gpio_ich acpi_ipmi syscopyarea sysfillrect sysimgblt mei_me joydev mei ioatdma dca ipmi_si mxm_wmi ipmi_devintf ipmi_msghandler wmi acpi_pad drm fuse ip_tables [last unloaded: drm_plane_helper_test]
[ 200.181044][ T1958] CPU: 13 PID: 1958 Comm: kunit_try_catch Tainted: G B W N 6.3.0-rc4-01597-g881e2a9cc11f #1
[ 200.193279][ T1958] Hardware name: Supermicro SYS-5018D-FN4T/X10SDV-8C-TLN4F, BIOS 1.1 03/02/2016
[ 200.203439][ T1958] RIP: 0010:drm_rect_calc_vscale+0x12a/0x190 [drm_kms_helper]
[ 200.212054][ T1958] 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
[ 200.234071][ T1958] RSP: 0018:ffffc9000202fe00 EFLAGS: 00010286
[ 200.241330][ T1958] RAX: 00000000ffff0000 RBX: 00000000ffff0000 RCX: 0000000000010000
[ 200.250524][ T1958] RDX: 0000000000000007 RSI: 0000000000000000 RDI: ffffffffc0455f1c
[ 200.259687][ T1958] RBP: ffffffffc0455f08 R08: 0000000000000000 R09: ffff88814b4a7307
[ 200.268840][ T1958] R10: ffffed1029694e60 R11: ffff888ab9cc4880 R12: 0000000000000000
[ 200.278002][ T1958] R13: 000000007fffffff R14: ffffc90001a978c0 R15: ffff88816da52940
[ 200.287147][ T1958] FS: 0000000000000000(0000) GS:ffff888ab9c80000(0000) knlGS:0000000000000000
[ 200.297274][ T1958] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 200.305053][ T1958] CR2: 00007fce4aa24180 CR3: 0000000c7dc4a004 CR4: 00000000003706e0
[ 200.314227][ T1958] DR0: ffffffff8633b354 DR1: ffffffff8633b355 DR2: ffffffff8633b356
[ 200.323407][ T1958] DR3: ffffffff8633b357 DR6: 00000000fffe0ff0 DR7: 0000000000000600
[ 200.332615][ T1958] Call Trace:
[ 200.337108][ T1958] <TASK>
[ 200.341216][ T1958] drm_test_rect_calc_vscale+0xf1/0x1d0 [drm_rect_test]
[ 200.349382][ T1958] ? 0xffffffffc0451000
[ 200.354742][ T1958] ? _raw_read_unlock_irqrestore+0x50/0x50
[ 200.361762][ T1958] ? set_cpus_allowed_ptr+0x85/0xb0
[ 200.368192][ T1958] ? migrate_enable+0x210/0x210
[ 200.374273][ T1958] kunit_try_run_case+0x109/0x290
[ 200.380511][ T1958] ? schedule+0x137/0x220
[ 200.386052][ T1958] ? kunit_catch_run_case+0x270/0x270
[ 200.392617][ T1958] ? kunit_try_catch_throw+0x80/0x80
[ 200.399109][ T1958] kunit_generic_run_threadfn_adapter+0x4e/0xa0
[ 200.406556][ T1958] kthread+0x290/0x330
[ 200.411834][ T1958] ? kthread_complete_and_exit+0x30/0x30
[ 200.418680][ T1958] ret_from_fork+0x1f/0x30
[ 200.424321][ T1958] </TASK>
[ 200.428552][ T1958] ---[ end trace 0000000000000000 ]---
[ 200.435223][ T1925] ok 5 negative src
[ 200.435442][ T1962] ------------[ cut here ]------------
[ 200.448345][ T1962] WARNING: CPU: 14 PID: 1962 at drivers/gpu/drm/drm_rect.c:138 drm_rect_calc_vscale+0x12a/0x190 [drm_kms_helper]
[ 200.463345][ T1962] 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 ahci libahci ast intel_uncore drm_shmem_helper libata drm_kms_helper intel_pch_thermal gpio_ich acpi_ipmi syscopyarea sysfillrect sysimgblt mei_me joydev mei ioatdma dca ipmi_si mxm_wmi ipmi_devintf ipmi_msghandler wmi acpi_pad drm fuse ip_tables [last unloaded: drm_plane_helper_test]
[ 200.534210][ T1962] CPU: 14 PID: 1962 Comm: kunit_try_catch Tainted: G B W N 6.3.0-rc4-01597-g881e2a9cc11f #1
[ 200.546684][ T1962] Hardware name: Supermicro SYS-5018D-FN4T/X10SDV-8C-TLN4F, BIOS 1.1 03/02/2016
[ 200.557055][ T1962] RIP: 0010:drm_rect_calc_vscale+0x12a/0x190 [drm_kms_helper]
[ 200.565857][ T1962] 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
[ 200.588265][ T1962] RSP: 0018:ffffc9000205fe00 EFLAGS: 00010286
[ 200.595651][ T1962] RAX: 0000000000010000 RBX: 00000000ffff0000 RCX: 00000000ffff0000
[ 200.604922][ T1962] RDX: 0000000000000007 RSI: 0000000000000000 RDI: ffffffffc0455f54
[ 200.614198][ T1962] RBP: ffffffffc0455f40 R08: 0000000000000000 R09: ffff88814b4a6f07
[ 200.623437][ T1962] R10: ffffed1029694de0 R11: ffff888ab9d44880 R12: 0000000000000000
[ 200.632675][ T1962] R13: 000000007fffffff R14: ffffc90001a978c0 R15: ffff88816da55280
[ 200.641873][ T1962] FS: 0000000000000000(0000) GS:ffff888ab9d00000(0000) knlGS:0000000000000000
[ 200.652062][ T1962] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 200.659896][ T1962] CR2: 00007f23174c9000 CR3: 0000000c7dc4a003 CR4: 00000000003706e0
[ 200.669125][ T1962] DR0: ffffffff8633b321 DR1: ffffffff8633b322 DR2: ffffffff8633b323
[ 200.678444][ T1962] DR3: ffffffff8633b35b DR6: 00000000fffe0ff0 DR7: 0000000000000600
[ 200.687727][ T1962] Call Trace:
[ 200.692305][ T1962] <TASK>
[ 200.696483][ T1962] drm_test_rect_calc_vscale+0xf1/0x1d0 [drm_rect_test]
[ 200.704696][ T1962] ? 0xffffffffc0451000
[ 200.710094][ T1962] ? _raw_read_unlock_irqrestore+0x50/0x50
[ 200.717128][ T1962] ? set_cpus_allowed_ptr+0x85/0xb0
[ 200.723559][ T1962] ? migrate_enable+0x210/0x210
[ 200.729687][ T1962] kunit_try_run_case+0x109/0x290
[ 200.735926][ T1962] ? schedule+0x137/0x220
[ 200.741482][ T1962] ? kunit_catch_run_case+0x270/0x270
[ 200.748079][ T1962] ? kunit_try_catch_throw+0x80/0x80
[ 200.754573][ T1962] kunit_generic_run_threadfn_adapter+0x4e/0xa0
[ 200.762049][ T1962] kthread+0x290/0x330
[ 200.767332][ T1962] ? kthread_complete_and_exit+0x30/0x30
[ 200.774205][ T1962] ret_from_fork+0x1f/0x30
[ 200.779835][ T1962] </TASK>
[ 200.784086][ T1962] ---[ end trace 0000000000000000 ]---
[ 200.790835][ T1925] ok 6 negative dst
[ 200.790841][ T1925] # drm_test_rect_calc_vscale: pass:6 fail:0 skip:0 total:6
[ 200.796859][ T1925] ok 7 drm_test_rect_calc_vscale
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