Jump to content
XPEnology Community

AcxA

Rookie
  • Posts

    3
  • Joined

  • Last visited

Posts posted by AcxA

  1. On 7/13/2022 at 11:31 AM, pigr8 said:

     

    in ESXi you cannot use a virtual usb, you have to choose a virtual hdd (satadom implementation) or a real usb in passthough, i have to check if it's a viable solution.

    Was going trough this thread since I didn't know about this flavor of loader and had to give info for this.

     

    In ESXi 7 it is actually possible to have virtual USB in VM and it is possible to boot DSM from it. This is how I run DS918 on it, but there are some limitation like not being able to work with any image which has 3.x kernel.

    So here is what works for me:

    1. Add USB 3 controller to VM
    2. UEFI Bios has to be used
      Edit Settings => VM Options => Boot Options
      Frimware: EFI
      Enable UEFI secure boot: uncheck
    3. Edit Settings => VM Options => Advanced in the option Configuration Parameters: Edit Configuration and then add
      usb_xhci:3.present = "TRUE"
      usb_xhci:3.deviceType = "disk"
      usb_xhci:3.fileName = "/path/to/tinycore-redpill-uefi.vmdk"
      usb_xhci:3.readonly = "FALSE"
    4. You need to use UEFI loader immage and correct vid pid for ESXi has to be set in loader:
      vid=0x0e0f
      pid=0x0005
    5. Don't forget to set correct mac and serial, generate with loader serial and mac and then set those in VM config

    You also need to convert loader image from raw to vmdk you can use StarWind V2V for this or simply create file tinycore-redpill-uefi.vmdk with following content:

    # Disk DescriptorFile
    version=1
    CID=0d1377b4
    parentCID=ffffffff
    createType="vmfs"
    
    # Extent description
    RW 2097152 VMFS "tinycore-redpill-uefi.img" 0
    
    # The Disk Data Base
    #DDB
    
    ddb.adapterType = "lsilogic"
    ddb.geometry.cylinders = "131"
    ddb.geometry.heads = "255"
    ddb.geometry.sectors = "63"
    ddb.uuid = "13 9e c3 cf c3 cf 86 0b-a1 90 b9 72 04 b0 91 7e"
    ddb.virtualHWVersion = "4"

    and put loader image in the same folder as this vmdk, loader has to be named tinycore-redpill-uefi.img

     

    When you set it up like this you can use USB boot for DS918.

    For reference this is how user config looks like:

    {
      "extra_cmdline": {
        "vid": "0x0e0f",
        "pid": "0x0005",
        "sn": "<SERIALNR>",
        "mac1": "<mac1>",
        "mac2": "<mac2>"
      },
      "synoinfo": {
    	  "netif_num" : "2"
      },
      "ramdisk_copy": {}
    }

     

    On Proxmox virtual usb boot can be done by following these steps:

    1. Upload tinycore-redpill-uefi.img to proxmox in folder /var/lib/vz/images/
    2. Set your VM bios to OVMF (UEFI)
    3. Add following to vm config (ie /etc/pve/qemu-server/100.conf)
      args: -device 'qemu-xhci,addr=0x18' -drive 'id=my_usb_disk,file=/var/lib/vz/images/ tinycore-redpill-uefi.img,if=none,format=raw' -device 'usb-storage,id=my_usb_disk,drive=my_usb_disk,bootindex=5'
    4. Correct vid pid has to be set for proxmox
      vid: 0x46f4
      pid: 0x0001
    5. Don't forget to set correct mac and serial, generate with loader serial and mac and then set those in VM config

    For reference VM config (100.conf) would look something like this:

    args: -device 'qemu-xhci,addr=0x18' -drive 'id=my_usb_disk,file=/var/lib/vz/images/tinycore-redpill-uefi.img,if=none,format=raw' -device 'usb-storage,id=my_usb_disk,drive=my_usb_disk,bootindex=5'
    bios: ovmf
    boot: order=sata0;net0
    cores: 2
    memory: 2048
    name: test
    net0: e1000=00:12:34:56:78:9A,bridge=vmbr0,firewall=1
    numa: 0
    ostype: l26
    sata0: local-lvm:vm-100-disk-0,size=8G
    scsihw: virtio-scsi-pci
    smbios1: uuid=c17d8446-9f13-4af4-96ea-6bcaed77e5ea
    sockets: 1
    vmgenid: d89fa586-cb9b-475e-87ac-873d2babb8ba

     

    • Like 1
  2. On 2/27/2022 at 6:33 PM, IG-88 said:

    this is a test driver for intel gpu's up to 12th gen - at least when it comes to using the pci id of it

    the driver is still the one that comes with synology's kernel and as used in 918+/920+

    instead of patching one or two id's this is a driver build from source containing all of them (taken from kernel 5.17 rc4)

    syno's driver only contains code up to canon lake

    i treated all comet lake gpu's as coffee lake and anything above that as canon lake

    as i have no newer cpu i can't test this, in theory its should at least bring what was working with the patched driver in 6.2.3 back to life in 7.0

    as its only the i915.ko file (and the firmware files)  and not extension for the rp-loader its only meant for people who can freely test, screw up there system and recover or delete and reinstall new

    if the driver is copied to /lib/modules and replaces the original driver, fimrware has its own folder in /lib/ (structure in the zip as guidance)

    it can happen that the system does not boot anymore (worst case scenario), you would need to delete the file manually and if dsm does not start anymore you would need to mount the system partition(s) of all disks as raid1 to remove the file again

    so its meant to be used as testing with a fresh usb and a fresh disk and its meant to be thrown away after testing it

     

    !!! its in the developer section on purpose !!! if you screw up your system and can't recover by yourself then i'm not going to help in any way

    delete the partitions on you test disk or recover system with this https://xpenology.com/forum/topic/7004-tutorial-how-to-access-dsms-data-system-partitions/

    if it works (not worst case) then the system comes up again after a reboot and there should be devices in /dev/dri/, if not it did not work, you should check /var/log/dmesg in that case and check that you replaced the i915.ko properly in /lib/modules/ and also added the firmware in /lib/firmware/i915/

     

     

    the way it might be used later would be as a extension in rp-loader so if its added and fails is can be removed again by removing the extension from the loader

    (but i have not talked to @pocopico if thats a way to use it in tinycore)

    atm its just to play around and to get some feedback about newer gpu's like 10th/11th/12th, newer means more likely not to work but we dont know if we dont  try

     

    i915_universal_918p_DSM7.zip
    https://usersdrive.com/jbm5bdrnzzi8.html

     

    the attached file is the patch used for synology's kernel source include, so if anyone wants to make its own driver or experiment with changing id's ...

    the code has plenty of comment about the pci id's and the cpu type (as long as you understand intels shorts for the gen's like CNL, EHL, JSL TGL, ...)

     

    i915_pciids.h.patch 6.02 kB · 12 downloads

    No luck with this driver. I use ESXi 7 with pci pass-through of UHD Graphics 630. VM crashes the second I insmod this driver, first time I tried it on daily VM by replacing original driver 🤦‍♂️. Had to recover VM by accessing system partition and returning original driver, but lost all the settings carried over after migration from 6.2.3 and had to reinstall DSM7.

     

    Here is log from test VM once I unload original and insmod this universal driver.

     

    [  680.703934] Module [i915] is removed.
    [  699.040010] i915 0000:1b:00.0: enabling device (0000 -> 0003)
    [  699.042244] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [  699.043130] [drm] Driver supports precise vblank timestamp query.
    [  699.043925] i915 0000:1b:00.0: BAR 6: can't assign [??? 0x00000000 flags 0x20000000] (bogus alignment)
    [  699.045161] [drm] Failed to find VBIOS tables (VBT)
    [  699.045999] vgaarb: device changed decodes: PCI:0000:1b:00.0,olddecodes=io+mem,decodes=none:owns=none
    [  699.048974] [drm] Finished loading DMC firmware i915/kbl_dmc_ver1_04.bin (v1.4)
    [  699.051325] [drm] Initialized i915 1.6.0 20171222 for 0000:1b:00.0 on minor 0
    [  699.277508] [drm] Cannot find any crtc or sizes
    [  699.278857] i915 0000:1b:00.0: fb0: inteldrmfb frame buffer device
    [  699.579460] BUG: unable to handle kernel NULL pointer dereference at 0000000000000018
    [  699.580725] IP: [<ffffffffa0ca0aee>] intel_plane_atomic_check+0xe/0x60 [i915]
    [  699.581738] PGD e2a3067 PUD 737f4067 PMD 0
    [  699.582378] Oops: 0000 [#1] SMP
    [  699.582872] Modules linked in: i915(E) fuse 8021q vhost_scsi(O) vhost(O) tcm_loop(O) iscsi_target_mod(O) target_core_user(O) target_core_ep(O) target_core_multi_file(O) target_core_file(O) target_core_iblock(O) target_core_mod(O) syno_extent_pool(PO) rodsp_ep(O) vfat fat udf isofs loop synoacl_vfs(PO) btrfs ecryptfs zstd_decompress zstd_compress xxhash xor raid6_pq aesni_intel glue_helper lrw gf128mul ablk_helper apollolake_synobios(PO) hid_generic usbhid hid usblp drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops cfbfillrect cfbcopyarea cfbimgblt drm drm_panel_orientation_quirks iosf_mbi fb fbdev video backlight button uhci_hcd ehci_pci ehci_hcd r8168(O) i2c_algo_bit igb(O) sg dm_snapshot dm_bufio crc_itu_t crc_ccitt psnap p8022 llc hfsplus md4 hmac sit tunnel4 ipv6 flashcache_syno(O) flashcache(O) syno_flashcache_control(O) dm_mod arc4 crc32c_intel cryptd sha256_generic ecb aes_x86_64 authenc des_generic ansi_cprng cts md5 cbc cpufreq_powersave cpufreq_performance zram processor cpufreq_stats vxlan ip6_udp_tunnel udp_tunnel ip_tunnel etxhci_hcd e1000e(OE) usb_storage xhci_pci xhci_hcd usbcore usb_common [last unloaded: i915]
    [  699.598705] CPU: 0 PID: 18351 Comm: kworker/0:1 Tainted: P           OE   4.4.180+ #42218
    [  699.599800] Hardware name: VMware, Inc. VMware7,1/440BX Desktop Reference Platform, BIOS VMW71.00V.17369862.B64.2012240522 12/24/2020
    [  699.601401] Workqueue: events output_poll_execute [drm_kms_helper]
    [  699.602252] task: ffff880049228000 ti: ffff88004d920000 task.ti: ffff88004d920000
    [  699.603255] RIP: 0010:[<ffffffffa0ca0aee>]  [<ffffffffa0ca0aee>] intel_plane_atomic_check+0xe/0x60 [i915]
    [  699.604562] RSP: 0018:ffff88004d923ab0  EFLAGS: 00010246
    [  699.605281] RAX: 0000000000000000 RBX: ffff88004f2d3c00 RCX: ffff88000e1a4000
    [  699.606239] RDX: ffff88002f9e0000 RSI: ffff88000e5ef200 RDI: ffff88004f2d3c00
    [  699.607195] RBP: ffff88004d923ae8 R08: 0000000000000000 R09: 0000000000000002
    [  699.608153] R10: 0000000000000000 R11: 0000000000000000 R12: ffff88000e5ef200
    [  699.609107] R13: 0000000000000000 R14: ffff88000db1e400 R15: ffffffffa0d1b080
    [  699.610063] FS:  0000000000000000(0000) GS:ffff88007dc00000(0000) knlGS:0000000000000000
    [  699.611146] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
    [  699.611914] CR2: 0000000000000018 CR3: 00000000779a7000 CR4: 00000000003606f0
    [  699.612889] Stack:
    [  699.613175]  ffffffffa0475b8f 0040000000000000 ffff88000db1e400 ffff88007921a000
    [  699.614246]  ffff88000d943000 ffff88002f9e0000 ffff88002f9e0000 ffff88004d923b90
    [  699.615324]  ffffffffa0cbc227 ffff88002f9e0000 0000000000000000 ffff88004d923b88
    [  699.616404] Call Trace:
    [  699.616748]  [<ffffffffa0475b8f>] ? drm_atomic_helper_check_planes+0xcf/0x220 [drm_kms_helper]
    [  699.617915]  [<ffffffffa0cbc227>] intel_atomic_check+0x427/0x11f0 [i915]
    [  699.618843]  [<ffffffffa0ca0830>] ? intel_plane_duplicate_state+0x20/0x50 [i915]
    [  699.619842]  [<ffffffff81577aa6>] ? __ww_mutex_lock+0x46/0x80
    [  699.620626]  [<ffffffffa03fff02>] drm_atomic_check_only+0x392/0x5a0 [drm]
    [  699.621542]  [<ffffffffa03ffb5e>] ? drm_atomic_add_affected_connectors+0xde/0xf0 [drm]
    [  699.622630]  [<ffffffffa0400123>] drm_atomic_commit+0x13/0x60 [drm]
    [  699.623475]  [<ffffffffa047e0a5>] restore_fbdev_mode_atomic+0x1a5/0x220 [drm_kms_helper]
    [  699.624564]  [<ffffffffa047e31d>] restore_fbdev_mode+0x2d/0x150 [drm_kms_helper]
    [  699.625568]  [<ffffffffa047e52c>] drm_fb_helper_restore_fbdev_mode_unlocked+0x4c/0xa0 [drm_kms_helper]
    [  699.626815]  [<ffffffffa047e5a8>] drm_fb_helper_set_par+0x28/0x50 [drm_kms_helper]
    [  699.627832]  [<ffffffffa047e67e>] drm_fb_helper_hotplug_event.part.34+0xae/0xc0 [drm_kms_helper]
    [  699.629012]  [<ffffffffa047e6ac>] drm_fb_helper_hotplug_event+0x1c/0x20 [drm_kms_helper]
    [  699.630102]  [<ffffffffa0cd9e1f>] intel_fbdev_output_poll_changed+0x2f/0x60 [i915]
    [  699.631116]  [<ffffffffa046cd45>] drm_kms_helper_hotplug_event+0x25/0x30 [drm_kms_helper]
    [  699.632214]  [<ffffffffa046ce00>] output_poll_execute+0x90/0x1b0 [drm_kms_helper]
    [  699.633217]  [<ffffffff810891c6>] ? pick_next_task_fair+0x466/0x470
    [  699.634063]  [<ffffffff81073ceb>] worker_run_work+0x9b/0xe0
    [  699.634815]  [<ffffffffa046cd70>] ? drm_kms_helper_is_poll_worker+0x20/0x20 [drm_kms_helper]
    [  699.635949]  [<ffffffff8106b2e3>] process_one_work+0x1e3/0x4f0
    [  699.636728]  [<ffffffff8106b61e>] worker_thread+0x2e/0x4b0
    [  699.637471]  [<ffffffff8106b5f0>] ? process_one_work+0x4f0/0x4f0
    [  699.638282]  [<ffffffff810700f5>] kthread+0xd5/0xf0
    [  699.638942]  [<ffffffff81070020>] ? kthread_worker_fn+0x160/0x160
    [  699.639754]  [<ffffffff81579fef>] ret_from_fork+0x3f/0x80
    [  699.640480]  [<ffffffff81070020>] ? kthread_worker_fn+0x160/0x160
    [  699.641294] Code: c7 c2 28 cd d3 a0 be 04 00 00 00 48 c7 c7 33 b3 d2 a0 e8 c6 96 76 ff eb dc 0f 1f 40 00 8b 87 54 02 00 00 4c 8b 46 78 48 c1 e0 05 <49> 03 40 18 48 8b 50 10 48 8b 46 08 48 85 c0 74 28 55 48 8d 0e
    [  699.645109] RIP  [<ffffffffa0ca0aee>] intel_plane_atomic_check+0xe/0x60 [i915]
    [  699.646117]  RSP <ffff88004d923ab0>
    [  699.646593] CR2: 0000000000000018
    [  699.647049] ---[ end trace c1697d1dfeb185ef ]---
    [  699.658817] ------------[ cut here ]------------
    [  699.659455] WARNING: CPU: 0 PID: 18351 at kernel/softirq.c:150 __local_bh_enable_ip+0x61/0x90()
    [  699.660622] Modules linked in: i915(E) fuse 8021q vhost_scsi(O) vhost(O) tcm_loop(O) iscsi_target_mod(O) target_core_user(O) target_core_ep(O) target_core_multi_file(O) target_core_file(O) target_core_iblock(O) target_core_mod(O) syno_extent_pool(PO) rodsp_ep(O) vfat fat udf isofs loop synoacl_vfs(PO) btrfs ecryptfs zstd_decompress zstd_compress xxhash xor raid6_pq aesni_intel glue_helper lrw gf128mul ablk_helper apollolake_synobios(PO) hid_generic usbhid hid usblp drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops cfbfillrect cfbcopyarea cfbimgblt drm drm_panel_orientation_quirks iosf_mbi fb fbdev video backlight button uhci_hcd ehci_pci ehci_hcd r8168(O) i2c_algo_bit igb(O) sg dm_snapshot dm_bufio crc_itu_t crc_ccitt psnap p8022 llc hfsplus md4 hmac sit tunnel4 ipv6 flashcache_syno(O) flashcache(O) syno_flashcache_control(O) dm_mod arc4 crc32c_intel cryptd sha256_generic ecb aes_x86_64 authenc des_generic ansi_cprng cts md5 cbc cpufreq_powersave cpufreq_performance zram processor cpufreq_stats vxlan ip6_udp_tunnel udp_tunnel ip_tunnel etxhci_hcd e1000e(OE) usb_storage xhci_pci xhci_hcd usbcore usb_common [last unloaded: i915]
    [  699.676165] CPU: 0 PID: 18351 Comm: kworker/0:1 Tainted: P      D    OE   4.4.180+ #42218
    [  699.677259] Hardware name: VMware, Inc. VMware7,1/440BX Desktop Reference Platform, BIOS VMW71.00V.17369862.B64.2012240522 12/24/2020
    [  699.678861]  0000000000000000 ffff88004d923798 ffffffff812ef89d 0000000000000009
    [  699.679933]  0000000000000000 ffff88004d9237d0 ffffffff8105255f 0000000000000200
    [  699.681025]  ffff880049228000 0000000000000001 ffff880049228000 0000000000000009
    [  699.682108] Call Trace:
    [  699.682453]  [<ffffffff812ef89d>] dump_stack+0x4d/0x70
    [  699.683145]  [<ffffffff8105255f>] warn_slowpath_common+0x7f/0xb0
    [  699.683966]  [<ffffffff81052646>] warn_slowpath_null+0x16/0x20
    [  699.684765]  [<ffffffff81056211>] __local_bh_enable_ip+0x61/0x90
    [  699.685586]  [<ffffffff815797a5>] _raw_spin_unlock_bh+0x15/0x20
    [  699.686382]  [<ffffffff810d7d23>] cgroup_exit+0x53/0xc0
    [  699.687093]  [<ffffffff81054f8c>] do_exit+0x2bc/0xaa0
    [  699.687781]  [<ffffffff810a1b02>] ? kmsg_dump+0x92/0xb0
    [  699.688498]  [<ffffffff810082e4>] oops_end+0x84/0xb0
    [  699.689174]  [<ffffffff81042272>] no_context+0x102/0x2b0
    [  699.689896]  [<ffffffff8104252c>] __bad_area_nosemaphore+0x10c/0x200
    [  699.690759]  [<ffffffff8104262e>] bad_area_nosemaphore+0xe/0x10
    [  699.691560]  [<ffffffff81042a09>] __do_page_fault+0x1f9/0x400
    [  699.692341]  [<ffffffff81042c1c>] do_page_fault+0xc/0x10
    [  699.693062]  [<ffffffff8157ba52>] page_fault+0x22/0x30
    [  699.693775]  [<ffffffffa0ca0aee>] ? intel_plane_atomic_check+0xe/0x60 [i915]
    [  699.694731]  [<ffffffffa0475b8f>] ? drm_atomic_helper_check_planes+0xcf/0x220 [drm_kms_helper]
    [  699.695903]  [<ffffffffa0cbc227>] intel_atomic_check+0x427/0x11f0 [i915]
    [  699.696819]  [<ffffffffa0ca0830>] ? intel_plane_duplicate_state+0x20/0x50 [i915]
    [  699.697817]  [<ffffffff81577aa6>] ? __ww_mutex_lock+0x46/0x80
    [  699.698606]  [<ffffffffa03fff02>] drm_atomic_check_only+0x392/0x5a0 [drm]
    [  699.699527]  [<ffffffffa03ffb5e>] ? drm_atomic_add_affected_connectors+0xde/0xf0 [drm]
    [  699.700598]  [<ffffffffa0400123>] drm_atomic_commit+0x13/0x60 [drm]
    [  699.701446]  [<ffffffffa047e0a5>] restore_fbdev_mode_atomic+0x1a5/0x220 [drm_kms_helper]
    [  699.702542]  [<ffffffffa047e31d>] restore_fbdev_mode+0x2d/0x150 [drm_kms_helper]
    [  699.703537]  [<ffffffffa047e52c>] drm_fb_helper_restore_fbdev_mode_unlocked+0x4c/0xa0 [drm_kms_helper]
    [  699.704793]  [<ffffffffa047e5a8>] drm_fb_helper_set_par+0x28/0x50 [drm_kms_helper]
    [  699.705819]  [<ffffffffa047e67e>] drm_fb_helper_hotplug_event.part.34+0xae/0xc0 [drm_kms_helper]
    [  699.707001]  [<ffffffffa047e6ac>] drm_fb_helper_hotplug_event+0x1c/0x20 [drm_kms_helper]
    [  699.708098]  [<ffffffffa0cd9e1f>] intel_fbdev_output_poll_changed+0x2f/0x60 [i915]
    [  699.709124]  [<ffffffffa046cd45>] drm_kms_helper_hotplug_event+0x25/0x30 [drm_kms_helper]
    [  699.710234]  [<ffffffffa046ce00>] output_poll_execute+0x90/0x1b0 [drm_kms_helper]
    [  699.711249]  [<ffffffff810891c6>] ? pick_next_task_fair+0x466/0x470
    [  699.712099]  [<ffffffff81073ceb>] worker_run_work+0x9b/0xe0
    [  699.712860]  [<ffffffffa046cd70>] ? drm_kms_helper_is_poll_worker+0x20/0x20 [drm_kms_helper]
    [  699.713995]  [<ffffffff8106b2e3>] process_one_work+0x1e3/0x4f0
    [  699.714792]  [<ffffffff8106b61e>] worker_thread+0x2e/0x4b0
    [  699.715548]  [<ffffffff8106b5f0>] ? process_one_work+0x4f0/0x4f0
    [  699.716364]  [<ffffffff810700f5>] kthread+0xd5/0xf0
    [  699.717035]  [<ffffffff81070020>] ? kthread_worker_fn+0x160/0x160
    [  699.717863]  [<ffffffff81579fef>] ret_from_fork+0x3f/0x80
    [  699.718600]  [<ffffffff81070020>] ? kthread_worker_fn+0x160/0x160
    [  699.719426] ---[ end trace c1697d1dfeb185f0 ]---
    [  699.720117] BUG: unable to handle kernel paging request at ffffffffffffffd8
    [  699.721101] IP: [<ffffffff810705eb>] kthread_data+0xb/0x20
    [  699.721871] PGD 420d067 PUD 420f067 PMD 0
    [  699.722496] Oops: 0000 [#2] SMP
    [  699.722985] Modules linked in: i915(E) fuse 8021q vhost_scsi(O) vhost(O) tcm_loop(O) iscsi_target_mod(O) target_core_user(O) target_core_ep(O) target_core_multi_file(O) target_core_file(O) target_core_iblock(O) target_core_mod(O) syno_extent_pool(PO) rodsp_ep(O) vfat fat udf isofs loop synoacl_vfs(PO) btrfs ecryptfs zstd_decompress zstd_compress xxhash xor raid6_pq aesni_intel glue_helper lrw gf128mul ablk_helper apollolake_synobios(PO) hid_generic usbhid hid usblp drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops cfbfillrect cfbcopyarea cfbimgblt drm drm_panel_orientation_quirks iosf_mbi fb fbdev video backlight button uhci_hcd ehci_pci ehci_hcd r8168(O) i2c_algo_bit igb(O) sg dm_snapshot dm_bufio crc_itu_t crc_ccitt psnap p8022 llc hfsplus md4 hmac sit tunnel4 ipv6 flashcache_syno(O) flashcache(O) syno_flashcache_control(O) dm_mod arc4 crc32c_intel cryptd sha256_generic ecb aes_x86_64 authenc des_generic ansi_cprng cts md5 cbc cpufreq_powersave cpufreq_performance zram processor cpufreq_stats vxlan ip6_udp_tunnel udp_tunnel ip_tunnel etxhci_hcd e1000e(OE) usb_storage xhci_pci xhci_hcd usbcore usb_common [last unloaded: i915]
    [  699.738541] CPU: 0 PID: 18351 Comm: kworker/0:1 Tainted: P      D W  OE   4.4.180+ #42218
    [  699.739636] Hardware name: VMware, Inc. VMware7,1/440BX Desktop Reference Platform, BIOS VMW71.00V.17369862.B64.2012240522 12/24/2020
    [  699.741236] task: ffff880049228000 ti: ffff88004d920000 task.ti: ffff88004d920000
    [  699.742230] RIP: 0010:[<ffffffff810705eb>]  [<ffffffff810705eb>] kthread_data+0xb/0x20
    [  699.743316] RSP: 0018:ffff88004d9237c0  EFLAGS: 00010002
    [  699.744029] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
    [  699.744989] RDX: ffff88007b004080 RSI: 0000000000000000 RDI: ffff880049228000
    [  699.745951] RBP: ffff88004d9237c0 R08: ffff88007dc16368 R09: 000000a2ea9194a6
    [  699.746918] R10: 0000000000000000 R11: 0000000000001000 R12: ffff880049228000
    [  699.747870] R13: ffff88007dc16300 R14: ffff88007dc16300 R15: 0000000000000000
    [  699.748828] FS:  0000000000000000(0000) GS:ffff88007dc00000(0000) knlGS:0000000000000000
    [  699.749917] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
    [  699.750691] CR2: 0000000000000028 CR3: 000000007a75f000 CR4: 00000000003606f0
    [  699.751666] Stack:
    [  699.751947]  ffff88004d9237d8 ffffffff8106c37c 0000000000016300 ffff88004d923828
    [  699.753027]  ffffffff81575c51 000000005c30b350 ffff88004d923820 ffff880049228000
    [  699.754107]  ffff880049228000 ffff88004d923878 ffff88004d923428 ffff88007b0f0000
    [  699.755182] Call Trace:
    [  699.755530]  [<ffffffff8106c37c>] wq_worker_sleeping+0xc/0x90
    [  699.756312]  [<ffffffff81575c51>] __schedule+0x371/0x820
    [  699.757035]  [<ffffffff81576126>] schedule+0x26/0x70
    [  699.757713]  [<ffffffff81055379>] do_exit+0x6a9/0xaa0
    [  699.758401]  [<ffffffff810082e4>] oops_end+0x84/0xb0
    [  699.759072]  [<ffffffff81042272>] no_context+0x102/0x2b0
    [  699.759788]  [<ffffffff8104252c>] __bad_area_nosemaphore+0x10c/0x200
    [  699.760643]  [<ffffffff8104262e>] bad_area_nosemaphore+0xe/0x10
    [  699.761436]  [<ffffffff81042a09>] __do_page_fault+0x1f9/0x400
    [  699.762213]  [<ffffffff81042c1c>] do_page_fault+0xc/0x10
    [  699.762932]  [<ffffffff8157ba52>] page_fault+0x22/0x30
    [  699.763634]  [<ffffffffa0ca0aee>] ? intel_plane_atomic_check+0xe/0x60 [i915]
    [  699.764583]  [<ffffffffa0475b8f>] ? drm_atomic_helper_check_planes+0xcf/0x220 [drm_kms_helper]
    [  699.765744]  [<ffffffffa0cbc227>] intel_atomic_check+0x427/0x11f0 [i915]
    [  699.766649]  [<ffffffffa0ca0830>] ? intel_plane_duplicate_state+0x20/0x50 [i915]
    [  699.767633]  [<ffffffff81577aa6>] ? __ww_mutex_lock+0x46/0x80
    [  699.768411]  [<ffffffffa03fff02>] drm_atomic_check_only+0x392/0x5a0 [drm]
    [  699.769324]  [<ffffffffa03ffb5e>] ? drm_atomic_add_affected_connectors+0xde/0xf0 [drm]
    [  699.770385]  [<ffffffffa0400123>] drm_atomic_commit+0x13/0x60 [drm]
    [  699.771235]  [<ffffffffa047e0a5>] restore_fbdev_mode_atomic+0x1a5/0x220 [drm_kms_helper]
    [  699.772324]  [<ffffffffa047e31d>] restore_fbdev_mode+0x2d/0x150 [drm_kms_helper]
    [  699.773318]  [<ffffffffa047e52c>] drm_fb_helper_restore_fbdev_mode_unlocked+0x4c/0xa0 [drm_kms_helper]
    [  699.774561]  [<ffffffffa047e5a8>] drm_fb_helper_set_par+0x28/0x50 [drm_kms_helper]
    [  699.775584]  [<ffffffffa047e67e>] drm_fb_helper_hotplug_event.part.34+0xae/0xc0 [drm_kms_helper]
    [  699.776758]  [<ffffffffa047e6ac>] drm_fb_helper_hotplug_event+0x1c/0x20 [drm_kms_helper]
    [  699.777846]  [<ffffffffa0cd9e1f>] intel_fbdev_output_poll_changed+0x2f/0x60 [i915]
    [  699.778858]  [<ffffffffa046cd45>] drm_kms_helper_hotplug_event+0x25/0x30 [drm_kms_helper]
    [  699.779954]  [<ffffffffa046ce00>] output_poll_execute+0x90/0x1b0 [drm_kms_helper]
    [  699.780960]  [<ffffffff810891c6>] ? pick_next_task_fair+0x466/0x470
    [  699.781801]  [<ffffffff81073ceb>] worker_run_work+0x9b/0xe0
    [  699.782552]  [<ffffffffa046cd70>] ? drm_kms_helper_is_poll_worker+0x20/0x20 [drm_kms_helper]
    [  699.783677]  [<ffffffff8106b2e3>] process_one_work+0x1e3/0x4f0
    [  699.784463]  [<ffffffff8106b61e>] worker_thread+0x2e/0x4b0
    [  699.785204]  [<ffffffff8106b5f0>] ? process_one_work+0x4f0/0x4f0
    [  699.786018]  [<ffffffff810700f5>] kthread+0xd5/0xf0
    [  699.786679]  [<ffffffff81070020>] ? kthread_worker_fn+0x160/0x160
    [  699.787497]  [<ffffffff81579fef>] ret_from_fork+0x3f/0x80
    [  699.788226]  [<ffffffff81070020>] ? kthread_worker_fn+0x160/0x160
    [  699.789047] Code: 24 18 e8 b9 dd 50 00 49 8b 04 24 48 85 c0 75 e5 e9 03 ff ff ff 90 66 2e 0f 1f 84 00 00 00 00 00 48 8b 87 c8 04 00 00 55 48 89 e5 <48> 8b 40 d8 5d c3 0f 1f 44 00 00 66 2e 0f 1f 84 00 00 00 00 00
    [  699.792882] RIP  [<ffffffff810705eb>] kthread_data+0xb/0x20
    [  699.793655]  RSP <ffff88004d9237c0>
    [  699.794131] CR2: ffffffffffffffd8
    [  699.794588] ---[ end trace c1697d1dfeb185f1 ]---
    [  699.806459] Fixing recursive fault but reboot is needed!

     

    Patched driver for 6.2.3 was working great, so I tried to do the same thing here and it was working, well at least /dev/dri/... stuf gets created didn't try transcoding yet. What I did was change original pid:vid 8086:3E92 to 8086:9BC8 and removed module signature. If someone is brave enough to try module is attached.

     

    [   66.740381] Module [i915] is removed.
    [  340.358398] i915 0000:1b:00.0: enabling device (0000 -> 0003)
    [  340.360433] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [  340.361351] [drm] Driver supports precise vblank timestamp query.
    [  340.362141] i915 0000:1b:00.0: BAR 6: can't assign [??? 0x00000000 flags 0x20000000] (bogus alignment)
    [  340.363311] [drm] Failed to find VBIOS tables (VBT)
    [  340.364005] [drm:gen9_set_dc_state [i915]] *ERROR* DC state mismatch (0x0 -> 0x2)
    [  340.365180] vgaarb: device changed decodes: PCI:0000:1b:00.0,olddecodes=io+mem,decodes=none:owns=none
    [  340.368716] [drm] Finished loading DMC firmware i915/kbl_dmc_ver1_04.bin (v1.4)
    [  340.369965] [drm] Initialized i915 1.6.0 20171222 for 0000:1b:00.0 on minor 0
    [  340.598919] [drm] Cannot find any crtc or sizes
    [  340.600284] i915 0000:1b:00.0: fb0: inteldrmfb frame buffer device
    

     

    i915_mod_striped.ko

×
×
  • Create New...