trya / mach64-drm

Linux DRM module for Mach64 chips
8 stars 3 forks source link

Unable to load module (crashes at drm_legacy_pci_init) #2

Open tomas opened 4 years ago

tomas commented 4 years ago

Compiled in Alpine Linux x86 running kernel version 4.14.167.

Is this the driver's fault or the kernel's?

[   22.952032] WARNING: CPU: 0 PID: 1945 at /home/buildozer/aports/main/linux-vanilla/src/linux-4.14/drivers/gpu/drm/drm_pci.c:299 drm_legacy_pci_init+0x30/0xaa [drm]
[   22.952036] Modules linked in: mach64(O+) nls_utf8 nls_cp437 vfat fat joydev snd_ymfpci snd_ac97_codec mousedev snd_mpu401_uart pcmcia snd_opl3_lib snd_hwdep snd_rawmidi snd_seq_device rndis_host snd_pcm cdc_ether yenta_socket usbnet snd_timer evdev input_leds psmouse drm serio_raw mii firewire_ohci pcspkr pcmcia_rsrc snd pcmcia_core firewire_core ipv6 soundcore ac97_bus shpchp sony_laptop rfkill af_packet i2c_piix4 i2c_core crc_itu_t intel_agp intel_gtt agpgart thermal video floppy battery button ac crc32c_generic sr_mod cdrom uhci_hcd ehci_pci ehci_hcd ata_generic pata_acpi ata_piix libata loop ext4 crc16 mbcache jbd2 usb_storage usbcore sd_mod scsi_mod
[   22.952167] CPU: 0 PID: 1945 Comm: modprobe Tainted: G        W  O    4.14.167-0-vanilla #1-Alpine
[   22.952180] Hardware name: Sony Corporation     PCG-F809K(DE)       /PCG-F809K(DE)       , BIOS R0204K2 08/28/00
[   22.952188] task: c7240000 task.stack: c7a94000
[   22.952245] EIP: drm_legacy_pci_init+0x30/0xaa [drm]
[   22.952249] EFLAGS: 00010246 CPU: 0
[   22.952253] EAX: 00000000 EBX: c8b72000 ECX: 00000000 EDX: c8ded12d
[   22.952258] ESI: 00000000 EDI: c8edc0a0 EBP: c7a95df4 ESP: c7a95de0
[   22.952262]  DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
[   22.952267] CR0: 80050033 CR2: b7f612c0 CR3: 07a6a000 CR4: 00000690
[   22.952272] Call Trace:
[   22.952290]  ? 0xc8b72000
[   22.952315]  mach64_init+0x1c/0x1000 [mach64]
[   22.952330]  do_one_initcall+0x96/0x13d
[   22.952350]  ? kmem_cache_alloc_trace+0xed/0x14a
[   22.952375]  ? do_init_module+0x21/0x1be
[   22.952386]  do_init_module+0x50/0x1be
[   22.952397]  load_module+0x1a3e/0x1e23
[   22.952416]  SyS_finit_module+0x71/0x87
[   22.952431]  do_fast_syscall_32+0xe5/0x196
[   22.952452]  entry_SYSENTER_32+0x4e/0x7c
[   22.952459] EIP: 0xb7effc09
[   22.952462] EFLAGS: 00000286 CPU: 0
[   22.952467] EAX: ffffffda EBX: 00000004 ECX: 00425e1c EDX: 00000000
[   22.952471] ESI: b7f8df40 EDI: b7efbd30 EBP: 00000000 ESP: bfda8efc
[   22.952475]  DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 007b
[   22.952480] Code: 55 89 e5 57 56 53 89 c7 83 ec 08 89 55 ec 68 2d d1 de c8 6a 01 68 2f d1 de c8 e8 15 eb ff ff 83 c4 0c f6 87 bc 00 00 00 02 75 09 <0f> 0b b8 ea ff ff ff eb 69 8d 87 cc 00 00 00 c7 45 f0 00 00 00
[   22.952593] ---[ end trace 92f297a2018e7dc8 ]---
trya commented 4 years ago

Your driver is not marked as legacy as it should, this was solved by 7fe88b3fec72b1e7c000997e443438ed0e15287e.