Forum Stats

  • 3,838,561 Users
  • 2,262,383 Discussions
  • 7,900,687 Comments

Discussions

drm/i915: Can't calculate constants, dotclock = 0!

Vinícius Ferrão
Vinícius Ferrão Member Posts: 11 Green Ribbon

Hello, I'm unable to boot Oracle Linux 8.4 using UEK (5.4.17-2102.201.3.el8uek.x86_64) with this graphics card, there's a panic during boot when the kernel tries to load its module:

[ 33.735702] [drm] Finished loading DMC firmware i915/kbl_dmc_ver1_04.bin (v1.4)
[ 33.736188] [drm:drm_calc_timestamping_constants [drm]] *ERROR* crtc 48: Can't calculate constants, dotclock = 0!
[ 33.736203] ------------[ cut here ]------------
[ 33.736212] WARNING: CPU: 9 PID: 833 at drivers/gpu/drm/drm_vblank.c:637 drm_calc_vbltimestamp_from_scanoutpos+0x1ba/0x330 [drm]
[ 33.736213] Modules linked in: snd_hda_codec_realtek(+) snd_hda_codec_generic i915(+) pcc_cpufreq(-) acpi_cpufreq(-) ledtrig_audio fjes(-) kvm_intel(+) snd_hda_intel snd_intel_nhlt kvm snd_hda_codec drm_kms_helper irqbypass crct10dif_pclmul crc32_pclmul snd_hda_core snd_hwdep ghash_clmulni_intel drm snd_pcm snd_timer aesni_intel snd syscopyarea sysfillrect crypto_simd sysimgblt fb_sys_fops cryptd glue_helper pcspkr intel_wmi_thunderbolt wmi_bmof soundcore i2c_algo_bit acpi_tad acpi_pad sch_fq_codel ip_tables rfkill sd_mod sg ahci libahci libata nvme r8169 nvme_core serio_raw realtek wmi video sunrpc
[ 33.736226] CPU: 9 PID: 833 Comm: systemd-udevd Not tainted 5.4.17-2102.201.3.el8uek.x86_64 #2
[ 33.736227] Hardware name: Gigabyte Technology Co., Ltd. B560M H/B560M H, BIOS F3 04/27/2021
[ 33.736234] RIP: 0010:drm_calc_vbltimestamp_from_scanoutpos+0x1ba/0x330 [drm]
[ 33.736235] Code: 43 20 8b 80 70 01 00 00 23 43 50 a8 10 75 1b 48 8b 83 48 03 00 00 48 85 c0 0f 84 8d fe ff ff 48 83 78 28 00 0f 84 82 fe ff ff <0f> 0b e9 7e fe ff ff bf d3 4d 62 10 41 89 c4 89 c8 89 ce f7 ef 44
[ 33.736237] RSP: 0018:ffffa5348101f700 EFLAGS: 00010002
[ 33.736238] RAX: 000000000000003b RBX: ffff9a26f2f00000 RCX: ffffa5348101f7a0
[ 33.736239] RDX: 0000000000000000 RSI: ffffffffc0c774a8 RDI: 0000000000000001
[ 33.736240] RBP: ffffa5348101f760 R08: 0000000000000000 R09: ffffffffc0c494e0
[ 33.736241] R10: 0000000000000721 R11: ffffffffc100ac90 R12: 0000000000000000
[ 33.736242] R13: 0000000000000000 R14: ffff9a1fc70a00a0 R15: ffffa5348101f774
[ 33.736243] FS: 00007f3dc28d0180(0000) GS:ffff9a275c240000(0000) knlGS:0000000000000000
[ 33.736244] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 33.736245] CR2: 00007f9c5d2a1d68 CR3: 0000000826508006 CR4: 00000000007606e0
[ 33.736246] PKRU: 55555554
[ 33.736246] Call Trace:
[ 33.736271] ? fwtable_read32+0x90/0x220 [i915]
[ 33.736278] drm_get_last_vbltimestamp+0x4e/0x80 [drm]
[ 33.736285] drm_reset_vblank_timestamp+0x63/0xe0 [drm]
[ 33.736291] drm_crtc_vblank_on+0x85/0xe0 [drm]
[ 33.736314] intel_crtc_vblank_on+0x2e/0x40 [i915]
[ 33.736336] intel_modeset_setup_hw_state+0x219/0xcc0 [i915]
[ 33.736342] ? drm_modeset_lock_all_ctx+0xd3/0xe0 [drm]
[ 33.736349] ? drm_warn_on_modeset_not_all_locked.part.3+0x5e/0x90 [drm]
[ 33.736370] intel_modeset_init+0x60b/0x10e0 [i915]
[ 33.736392] ? intel_gmbus_reset+0x5a/0x60 [i915]
[ 33.736412] ? intel_gmbus_setup+0x230/0x2d0 [i915]
[ 33.736430] i915_driver_probe+0xca4/0x1620 [i915]
[ 33.736433] ? _cond_resched+0x19/0x29
[ 33.736434] ? mutex_lock+0x12/0x2f
[ 33.736453] i915_pci_probe+0x58/0x160 [i915]
[ 33.736455] local_pci_probe+0x47/0x7c
[ 33.736456] pci_device_probe+0x102/0x1a7
[ 33.736458] really_probe+0x1da/0x3f5
[ 33.736460] driver_probe_device+0xbb/0xfd
[ 33.736461] device_driver_attach+0x5b/0x60
[ 33.736462] __driver_attach+0x92/0x148
[ 33.736463] ? device_driver_attach+0x60/0x60
[ 33.736466] bus_for_each_dev+0x79/0xb4
[ 33.736469] ? kmem_cache_alloc_trace+0x2ee/0x483
[ 33.736470] driver_attach+0x1e/0x20
[ 33.736473] bus_add_driver+0x157/0x1ef
[ 33.736474] driver_register+0x70/0xbc
[ 33.736475] __pci_register_driver+0x57/0x59
[ 33.736493] i915_init+0x62/0x6b [i915]
[ 33.736494] ? 0xffffffffc11e6000
[ 33.736496] do_one_initcall+0x4a/0x1c4
[ 33.736497] ? _cond_resched+0x19/0x29
[ 33.736499] ? kmem_cache_alloc_trace+0x417/0x483
[ 33.736501] ? do_init_module+0x27/0x220
[ 33.736503] do_init_module+0x60/0x220
[ 33.736504] load_module+0x1719/0x18c9
[ 33.736507] __do_sys_init_module+0x15a/0x19d
[ 33.736508] ? __do_sys_init_module+0x15a/0x19d
[ 33.736510] __x64_sys_init_module+0x1a/0x1c
[ 33.736511] do_syscall_64+0x60/0x1cb
[ 33.736513] entry_SYSCALL_64_after_hwframe+0x170/0x0
[ 33.736514] RIP: 0033:0x7f3dc14b181e
[ 33.736515] Code: 48 8b 0d 6d 16 2c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 49 89 ca b8 af 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 3a 16 2c 00 f7 d8 64 89 01 48
[ 33.736517] RSP: 002b:00007fff1da59ec8 EFLAGS: 00000246 ORIG_RAX: 00000000000000af
[ 33.736518] RAX: ffffffffffffffda RBX: 000055e6bb678720 RCX: 00007f3dc14b181e
[ 33.736519] RDX: 00007f3dc201f86d RSI: 000000000032916d RDI: 000055e6bbfcf430
[ 33.736520] RBP: 00007f3dc201f86d R08: 000055e6bb65301a R09: 0000000000000000
[ 33.736521] R10: 000055e6bb653010 R11: 0000000000000246 R12: 000055e6bbfcf430
[ 33.736522] R13: 000055e6bb670610 R14: 0000000000020000 R15: 0000000000000000
[ 33.736523] ---[ end trace 6f3b25744e6cd185 ]---
[ 33.739395] i915 0000:00:02.0: Failed to program MOCS registers; expect performance issues.

Is there any fix or at least a workaround?