Greeting, FYI, we noticed WARNING:at_drivers/gpu/drm/drm_fbdev_generic.c:#drm_fbdev_fb_dirty[drm_kms_helper] due to commit (built with gcc-11): commit: a81074004dd39ace435810996a5f936bc0aa8e80 ("[PATCH v1] drm/ttm: Clean up page shift operation") url: https://github.com/intel-lab-lkp/linux/commits/Somalapuram-Amaranath/drm-ttm-Clean-up-page-shift-operation/20221122-155414 base: git://anongit.freedesktop.org/drm/drm-misc drm-misc-next patch link: https://lore.kernel.org/all/20221122075144.505736-1-Amaranath.Somalapuram@amd.com/ patch subject: [PATCH v1] drm/ttm: Clean up page shift operation in testcase: boot on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +------------------------------------------------------------------------------------+------------+------------+ | | 834c23e4f7 | a81074004d | +------------------------------------------------------------------------------------+------------+------------+ | WARNING:at_drivers/gpu/drm/drm_fbdev_generic.c:#drm_fbdev_fb_dirty[drm_kms_helper] | 0 | 18 | | RIP:drm_fbdev_fb_dirty[drm_kms_helper] | 0 | 18 | +------------------------------------------------------------------------------------+------------+------------+ If you fix the issue, kindly add following tag | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-lkp/202211241516.b545bb78-oliver.sang@intel.com [ 14.023375][ T16] ------------[ cut here ]------------ [ 14.023376][ T16] bochs-drm 0000:00:02.0: Damage blitter failed: ret=-12 [ 14.023423][ T16] WARNING: CPU: 0 PID: 16 at drivers/gpu/drm/drm_fbdev_generic.c:343 drm_fbdev_fb_dirty+0xeb/0x200 [drm_kms_helper] [ 14.023455][ T16] Modules linked in: sr_mod(+) cdrom bochs(+) drm_vram_helper drm_ttm_helper ata_generic ppdev ttm drm_kms_helper ata_piix libata syscop yarea parport_pc parport sysfillrect sysimgblt joydev drm i2c_piix4 [ 14.023474][ T16] CPU: 0 PID: 16 Comm: kworker/0:1 Not tainted 6.1.0-rc2-00621-ga81074004dd3 #1 [ 14.023478][ T16] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.0-debian-1.16.0-4 04/01/2014 [ 14.023480][ T16] Workqueue: events drm_fb_helper_damage_work [drm_kms_helper] [ 14.023499][ T16] RIP: 0010:drm_fbdev_fb_dirty+0xeb/0x200 [drm_kms_helper] [ 14.023516][ T16] Code: 46 01 00 01 4c 8b 6f 50 4d 85 ed 75 03 4c 8b 2f e8 aa 4b 45 e1 44 89 e1 4c 89 ea 48 c7 c7 e8 8f 39 a0 48 89 c6 e8 a1 0e 98 e1 <0 f> 0b eb 64 48 8b 54 24 10 48 8b 44 24 08 4c 89 ee 48 89 df 48 89 [ 14.023519][ T16] RSP: 0018:ffffc9000008be00 EFLAGS: 00010286 [ 14.023521][ T16] RAX: 0000000000000000 RBX: ffff8881645de800 RCX: 0000000000000000 [ 14.023523][ T16] RDX: 0000000000000000 RSI: 0000000000000002 RDI: ffffffff839b5898 [ 14.023525][ T16] RBP: ffffc9000008be58 R08: 80000000ffff87bc R09: 0000000000000001 [ 14.023527][ T16] R10: ffffffffffffffff R11: ffffffff839d59be R12: 00000000fffffff4 [ 14.023528][ T16] R13: ffff888100a8b2c0 R14: ffff888137066800 R15: ffff8881669e8dc0 [ 14.023530][ T16] FS: 0000000000000000(0000) GS:ffff88842fc00000(0000) knlGS:0000000000000000 [ 14.023536][ T16] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 14.023538][ T16] CR2: 00007f05a1bf0000 CR3: 0000000164e18000 CR4: 00000000000406f0 [ 14.023540][ T16] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 14.023541][ T16] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 14.023544][ T16] Call Trace: [ 14.023548][ T16] [ 14.023551][ T16] ? __switch_to_asm+0x3a/0x60 [ 14.023560][ T16] ? __switch_to_asm+0x34/0x60 [ 14.023563][ T16] drm_fb_helper_damage_work+0x8a/0x180 [drm_kms_helper] [ 14.023581][ T16] process_one_work+0x1ee/0x3c0 [ 14.023614][ T16] ? process_one_work+0x3c0/0x3c0 [ 14.023617][ T16] worker_thread+0x53/0x400 [ 14.023622][ T16] ? process_one_work+0x3c0/0x3c0 [ 14.023624][ T16] kthread+0xd9/0x100 [ 14.023630][ T16] ? kthread_complete_and_exit+0x40/0x40 [ 14.023633][ T16] ret_from_fork+0x22/0x30 [ 14.023638][ T16] [ 14.023639][ T16] ---[ end trace 0000000000000000 ]--- To reproduce: # build kernel cd linux cp config-6.1.0-rc2-00621-ga81074004dd3 .config make HOSTCC=gcc-11 CC=gcc-11 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage modules make HOSTCC=gcc-11 CC=gcc-11 ARCH=x86_64 INSTALL_MOD_PATH= modules_install cd find lib/ | cpio -o -H newc --quiet | gzip > modules.cgz git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k -m modules.cgz job-script # job-script is attached in this email # 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://01.org/lkp