Chrome and Electron based apps crashing in Fully working iGpu Passthrough (GVT-D)!

Hey folks,

First let me clear a little bit:

  1. I am on Qemu
  2. Doing GVT-D using this great driver
  3. Got acceleration working!!
  4. I am using Lenovo legion y530 (i5-8300H, 630 UHD) laptop

Another thing worth to mention is that when I boot natively with the same device-id everything works perfectly.

So, When I open Chrome or any other Electron based application MacOS freezes in VM (So, I need to kill it). I know disabling Hardware Acceleration will gonna work, but I just want to know what is wrong when it is enabled?

Here is what error report generated:

panic(cpu 1 caller 0xffffff800d2449ea): Kernel trap at 0xffffff7f913d913f, type 14=page fault, registers: CR0: 0x0000000080010033, CR2: 0x0000000000000c50, CR3: 0x000000013e4ff0e7, CR4: 0x00000000003626e0 RAX: 0x0000000000000c50, RBX: 0xffffff90ab29b7f0, RCX: 0x000000000000000c, RDX: 0x0000000000000003 RSP: 0xffffff90ab29b7b0, RBP: 0xffffff90ab29b7e0, RSI: 0x0000000000000000, RDI: 0x0000000000000000 R8: 0x0000000000000000, R9: 0x000000000a0020d7, R10: 0x0000000000000001, R11: 0x0000000000000041 R12: 0xffffff807a1a6000, R13: 0x0000000000000478, R14: 0xffffff801aff6000, R15: 0x0000000000000003 RFL: 0x0000000000010246, RIP: 0xffffff7f913d913f, CS: 0x0000000000000008, SS: 0x0000000000000010 Fault CR2: 0x0000000000000c50, Error code: 0x0000000000000002, Fault CPU: 0x1 VMM, PL: 0, VF: 0 Backtrace (CPU 1), Frame : Return Address 0xffffff90ab29b110 : 0xffffff800d11868d mach_kernel : _handle_debugger_trap + 0x49d 0xffffff90ab29b160 : 0xffffff800d252ab5 mach_kernel : _kdp_i386_trap + 0x155 0xffffff90ab29b1a0 : 0xffffff800d24463e mach_kernel : _kernel_trap + 0x4ee 0xffffff90ab29b1f0 : 0xffffff7f90d79924 as.vit9696.VirtualSMC : __ZN18VirtualSMCProvider10kernelTrapI22x86_saved_state_1010_tEEvPT_Pm + 0x454 0xffffff90ab29b270 : 0xffffff800d0bea40 mach_kernel : _return_from_trap + 0xe0 0xffffff90ab29b290 : 0xffffff800d117d57 mach_kernel : _DebuggerTrapWithState + 0x17 0xffffff90ab29b390 : 0xffffff800d118147 mach_kernel : _panic_trap_to_debugger + 0x227 0xffffff90ab29b3e0 : 0xffffff800d8bf2bc mach_kernel : _panic + 0x54 0xffffff90ab29b450 : 0xffffff800d2449ea mach_kernel : _sync_iss_to_iks + 0x2aa 0xffffff90ab29b5d0 : 0xffffff800d2446e8 mach_kernel : _kernel_trap + 0x598 0xffffff90ab29b620 : 0xffffff7f90d79924 as.vit9696.VirtualSMC : __ZN18VirtualSMCProvider10kernelTrapI22x86_saved_state_1010_tEEvPT_Pm + 0x454 0xffffff90ab29b6a0 : 0xffffff800d0bea40 mach_kernel : _return_from_trap + 0xe0 0xffffff90ab29b6c0 : 0xffffff7f913d913f com.apple.driver.AppleIntelKBLGraphics : __ZN20IGHardwareRingBuffer11writeBufferEPjj + 0xdb 0xffffff90ab29b7e0 : 0xffffff7f913d911a com.apple.driver.AppleIntelKBLGraphics : __ZN20IGHardwareRingBuffer11writeBufferEPjj + 0xb6 0xffffff90ab29b820 : 0xffffff7f913d9b1f com.apple.driver.AppleIntelKBLGraphics : __ZN20IGHardwareRingBuffer15sampleTimestampEy + 0x75 0xffffff90ab29b850 : 0xffffff7f913e406b com.apple.driver.AppleIntelKBLGraphics : __ZN16IGTelemetryUsage11startSampleEP20IGHardwareRingBufferjjyyyy + 0x207 0xffffff90ab29b8b0 : 0xffffff7f913e2b64 com.apple.driver.AppleIntelKBLGraphics : __ZN18IGAccelFIFOChannel12submitBufferEP24IOAccelCommandDescriptor + 0xdc 0xffffff90ab29b910 : 0xffffff7f90f71d87 com.apple.iokit.IOAcceleratorFamily2 : __ZN19IOAccelFIFOChannel214submitCommandsEP24IOAccelCommandDescriptor + 0x19d 0xffffff90ab29b950 : 0xffffff7f914004a1 com.apple.driver.AppleIntelKBLGraphics : __ZN16IGAccelGLContext16endCommandStreamER24IOAccelCommandStreamInfo + 0x2ed 0xffffff90ab29b9a0 : 0xffffff7f90f76953 com.apple.iokit.IOAcceleratorFamily2 : __ZN15IOAccelContext218processDataBuffersEj + 0x81 0xffffff90ab29b9d0 : 0xffffff7f90f8555d com.apple.iokit.IOAcceleratorFamily2 : __ZN17IOAccelGLContext218processDataBuffersEj + 0x335 0xffffff90ab29ba10 : 0xffffff7f91400736 com.apple.driver.AppleIntelKBLGraphics : __ZN16IGAccelGLContext18processDataBuffersEj + 0x102 0xffffff90ab29ba40 : 0xffffff7f90f73eeb com.apple.iokit.IOAcceleratorFamily2 : __ZN15IOAccelContext219submit_data_buffersEP33IOAccelContextSubmitDataBuffersInP34IOAccelContextSubmitDataBuffersOutyPy + 0x9d7 0xffffff90ab29bac0 : 0xffffff800d85309e mach_kernel : _shim_io_connect_method_structureI_structureO + 0x1ae 0xffffff90ab29bb10 : 0xffffff800d851327 mach_kernel : __ZN12IOUserClient14externalMethodEjP25IOExternalMethodArgumentsP24IOExternalMethodDispatchP8OSObjectPv + 0x337 0xffffff90ab29bb60 : 0xffffff800d85a3f3 mach_kernel : _is_io_connect_method + 0x223 0xffffff90ab29bca0 : 0xffffff800d201622 mach_kernel : _iokit_server_routine + 0x4e62 0xffffff90ab29bdb0 : 0xffffff800d11e3f8 mach_kernel : _ipc_kobject_server + 0x238 0xffffff90ab29be10 : 0xffffff800d0f4d35 mach_kernel : _ipc_kmsg_send + 0x135 0xffffff90ab29be70 : 0xffffff800d10bb52 mach_kernel : _mach_msg_overwrite_trap + 0x2d2 0xffffff90ab29bf00 : 0xffffff800d22a0a5 mach_kernel : _mach_call_munger64 + 0x205 0xffffff90ab29bfa0 : 0xffffff800d0bf226 mach_kernel : _hndl_mach_scall64 + 0x16 Kernel Extensions in backtrace: as.vit9696.VirtualSMC(1.1.9)[3B5840A3-EFD8-3F34-B9DA-9DDB414549B3]@0xffffff7f90d6a000->0xffffff7f90d90fff dependency: as.vit9696.Lilu(1.5.0)[C5221030-C9FC-39F5-8FA0-764FE2E532A9]@0xffffff7f90ce4000 dependency: com.apple.iokit.IOACPIFamily(1.4)[2956198D-24F2-3790-A9B2-1EAB9434B906]@0xffffff7f8db09000 com.apple.iokit.IOAcceleratorFamily2(438.7.3)[B263A05C-9992-3742-AD6C-295E68E22576]@0xffffff7f90f6d000->0xffffff7f91030fff dependency: com.apple.driver.AppleMobileFileIntegrity(1.0.5)[4159DFFE-7746-3327-9752-C161DC295828]@0xffffff7f8e22e000 dependency: com.apple.iokit.IOPCIFamily(2.9)[2F37AE58-E6B9-3B18-9092-3B80D34C334B]@0xffffff7f8db12000 dependency: com.apple.iokit.IOSurface(269.11)[2A27F1EB-4418-37FF-82CC-9891C39C6943]@0xffffff7f8f6a9000 dependency: com.apple.iokit.IOGraphicsFamily(576.1)[1279CBF9-88F1-3EB4-9566-1085DBF6DF8B]@0xffffff7f90eda000 dependency: com.apple.iokit.IOReportFamily(47)[72B53B80-5713-30C1-BAD8-9D55FD718DA2]@0xffffff7f8da49000 com.apple.driver.AppleIntelKBLGraphics(14.0.7)[C029CD18-859B-3594-8433-B6384B3422ED]@0xffffff7f913b0000->0xffffff7f914e0fff dependency: com.apple.iokit.IOPCIFamily(2.9)[2F37AE58-E6B9-3B18-9092-3B80D34C334B]@0xffffff7f8db12000 dependency: com.apple.iokit.IOSurface(269.11)[2A27F1EB-4418-37FF-82CC-9891C39C6943]@0xffffff7f8f6a9000 dependency: com.apple.iokit.IOGraphicsFamily(576.1)[1279CBF9-88F1-3EB4-9566-1085DBF6DF8B]@0xffffff7f90eda000 dependency: com.apple.iokit.IOAcceleratorFamily2(438.7.3)[B263A05C-9992-3742-AD6C-295E68E22576]@0xffffff7f90f6d000 BSD process name corresponding to current thread: Google Chrome He Boot args: -v keepsyms=1 debug=0x100 alcid=1 -wegnoegpu chunklist-security-epoch=0 -chunklist-no-rev2-dev chunklist-security-epoch=0 -chunklist-no-rev2-dev Mac OS version: 19H15 Kernel version: Darwin Kernel Version 19.6.0: Thu Oct 29 22:56:45 PDT 2020; root:xnu-6153.141.2.2~1/RELEASE_X86_64 Kernel UUID: 9B5A7191-5B84-3990-8710-D9BD9273A8E5 Kernel slide: 0x000000000ce00000 Kernel text base: 0xffffff800d000000 __HIB text base: 0xffffff800cf00000 System model name: MacBookPro15,1 (Mac-937A206F2EE63C01) System shutdown begun: NO Panic diags file available: YES (0x0) System uptime in nanoseconds: 162153597776 

Here is what kernel says:

2021-01-14 13:51:40.523326+0530 localhost kernel[0]: (IOAcceleratorFamily2) virtual IOReturn IOAccelEventMachine2::waitForStamp(int32_t, stamp_t, stamp_t *): timeout waiting for IntelAccelerator stamp 30 (gpu_stamp=25) 2021-01-14 13:51:40.523392+0530 localhost kernel[0]: (IOAcceleratorFamily2) void IOAccelEventMachine2::handleFinishChannelRestart(IOReturn, int32_t, uint32_t) - Setting restart type to 4 2021-01-14 13:51:40.523397+0530 localhost kernel[0]: (IOAcceleratorFamily2) void IOAccelEventMachine2::handleFinishChannelRestart(IOReturn, int32_t, uint32_t): GPURestartDequeued stampIdx=12 type=4 fromWhere=2 waitingOnIdx=12 2021-01-14 13:51:40.546123+0530 localhost kernel[0]: (IOAcceleratorFamily2) void IOAccelFenceMachine::fence_timeout(IOTimerEventSource *): IntelAccelerator prodding blockFenceInterrupt 2021-01-14 13:51:40.646264+0530 localhost kernel[0]: (IOAcceleratorFamily2) void IOAccelFenceMachine::fence_timeout(IOTimerEventSource *): IntelAccelerator prodding blockFenceInterrupt 2021-01-14 13:51:40.746426+0530 localhost kernel[0]: (IOAcceleratorFamily2) void IOAccelFenceMachine::fence_timeout(IOTimerEventSource *): IntelAccelerator prodding blockFenceInterrupt 2021-01-14 13:51:40.846554+0530 localhost kernel[0]: (IOAcceleratorFamily2) void IOAccelFenceMachine::fence_timeout(IOTimerEventSource *): IntelAccelerator prodding blockFenceInterrupt 2021-01-14 13:51:40.946669+0530 localhost kernel[0]: (IOAcceleratorFamily2) void IOAccelFenceMachine::fence_timeout(IOTimerEventSource *): IntelAccelerator prodding blockFenceInterrupt 2021-01-14 13:51:41.046823+0530 localhost kernel[0]: (IOAcceleratorFamily2) void IOAccelFenceMachine::fence_timeout(IOTimerEventSource *): IntelAccelerator prodding blockFenceInterrupt 2021-01-14 13:51:41.146906+0530 localhost kernel[0]: (IOAcceleratorFamily2) void IOAccelFenceMachine::fence_timeout(IOTimerEventSource *): IntelAccelerator prodding blockFenceInterrupt 2021-01-14 13:51:41.247026+0530 localhost kernel[0]: (IOAcceleratorFamily2) void IOAccelFenceMachine::fence_timeout(IOTimerEventSource *): IntelAccelerator prodding blockFenceInterrupt 2021-01-14 13:51:41.347147+0530 localhost kernel[0]: (IOAcceleratorFamily2) void IOAccelFenceMachine::fence_timeout(IOTimerEventSource *): IntelAccelerator prodding blockFenceInterrupt 2021-01-14 13:51:41.447217+0530 localhost kernel[0]: (IOAcceleratorFamily2) void IOAccelFenceMachine::fence_timeout(IOTimerEventSource *): IntelAccelerator prodding blockFenceInterrupt 2021-01-14 13:51:41.547332+0530 localhost kernel[0]: (IOAcceleratorFamily2) void IOAccelFenceMachine::fence_timeout(IOTimerEventSource *): IntelAccelerator prodding blockFenceInterrupt 2021-01-14 13:51:41.647410+0530 localhost kernel[0]: (IOAcceleratorFamily2) void IOAccelFenceMachine::fence_timeout(IOTimerEventSource *): IntelAccelerator prodding blockFenceInterrupt 2021-01-14 13:51:41.747497+0530 localhost kernel[0]: (IOAcceleratorFamily2) void IOAccelFenceMachine::fence_timeout(IOTimerEventSource *): IntelAccelerator prodding blockFenceInterrupt 2021-01-14 13:51:41.847645+0530 localhost kernel[0]: (IOAcceleratorFamily2) void IOAccelFenceMachine::fence_timeout(IOTimerEventSource *): IntelAccelerator prodding blockFenceInterrupt 2021-01-14 13:51:41.947692+0530 localhost kernel[0]: (IOAcceleratorFamily2) void IOAccelFenceMachine::fence_timeout(IOTimerEventSource *): IntelAccelerator prodding blockFenceInterrupt 2021-01-14 13:51:42.047811+0530 localhost kernel[0]: (IOAcceleratorFamily2) void IOAccelFenceMachine::fence_timeout(IOTimerEventSource *): IntelAccelerator prodding blockFenceInterrupt 2021-01-14 13:51:42.147890+0530 localhost kernel[0]: (IOAcceleratorFamily2) void IOAccelFenceMachine::fence_timeout(IOTimerEventSource *): IntelAccelerator prodding blockFenceInterrupt 2021-01-14 13:51:42.247941+0530 localhost kernel[0]: (IOAcceleratorFamily2) void IOAccelFenceMachine::fence_timeout(IOTimerEventSource *): IntelAccelerator prodding blockFenceInterrupt 2021-01-14 13:51:42.347978+0530 localhost kernel[0]: (IOAcceleratorFamily2) void IOAccelFenceMachine::fence_timeout(IOTimerEventSource *): IntelAccelerator prodding blockFenceInterrupt 2021-01-14 13:51:42.448051+0530 localhost kernel[0]: (IOAcceleratorFamily2) void IOAccelFenceMachine::fence_timeout(IOTimerEventSource *): IntelAccelerator prodding blockFenceInterrupt 2021-01-14 13:51:42.548095+0530 localhost kernel[0]: (IOAcceleratorFamily2) void IOAccelFenceMachine::fence_timeout(IOTimerEventSource *): IntelAccelerator prodding blockFenceInterrupt 2021-01-14 13:51:42.648180+0530 localhost kernel[0]: (IOAcceleratorFamily2) void IOAccelFenceMachine::fence_timeout(IOTimerEventSource *): IntelAccelerator prodding blockFenceInterrupt 2021-01-14 13:51:42.748249+0530 localhost kernel[0]: (IOAcceleratorFamily2) void IOAccelFenceMachine::fence_timeout(IOTimerEventSource *): IntelAccelerator prodding blockFenceInterrupt 2021-01-14 13:51:42.848293+0530 localhost kernel[0]: (IOAcceleratorFamily2) void IOAccelFenceMachine::fence_timeout(IOTimerEventSource *): IntelAccelerator prodding blockFenceInterrupt 2021-01-14 13:51:42.948459+0530 localhost kernel[0]: (IOAcceleratorFamily2) void IOAccelFenceMachine::fence_timeout(IOTimerEventSource *): IntelAccelerator prodding blockFenceInterrupt 2021-01-14 13:51:43.048573+0530 localhost kernel[0]: (IOAcceleratorFamily2) void IOAccelFenceMachine::fence_timeout(IOTimerEventSource *): IntelAccelerator prodding blockFenceInterrupt 2021-01-14 13:51:43.148623+0530 localhost kernel[0]: (IOAcceleratorFamily2) void IOAccelFenceMachine::fence_timeout(IOTimerEventSource *): IntelAccelerator prodding blockFenceInterrupt 2021-01-14 13:51:43.248677+0530 localhost kernel[0]: (IOAcceleratorFamily2) void IOAccelFenceMachine::fence_timeout(IOTimerEventSource *): IntelAccelerator prodding blockFenceInterrupt 2021-01-14 13:51:43.348725+0530 localhost kernel[0]: (IOAcceleratorFamily2) void IOAccelFenceMachine::fence_timeout(IOTimerEventSource *): IntelAccelerator prodding blockFenceInterrupt 2021-01-14 13:51:43.448870+0530 localhost kernel[0]: (IOAcceleratorFamily2) void IOAccelFenceMachine::fence_timeout(IOTimerEventSource *): IntelAccelerator prodding blockFenceInterrupt 2021-01-14 13:51:43.548910+0530 localhost kernel[0]: (IOAcceleratorFamily2) void IOAccelFenceMachine::fence_timeout(IOTimerEventSource *): IntelAccelerator prodding blockFenceInterrupt 2021-01-14 13:51:43.648952+0530 localhost kernel[0]: (IOAcceleratorFamily2) void IOAccelFenceMachine::fence_timeout(IOTimerEventSource *): IntelAccelerator prodding blockFenceInterrupt 2021-01-14 13:51:43.740239+0530 localhost kernel[0]: (IOAcceleratorFamily2) void IOAccelEventMachine2::restart_channel(): GPURestartBegin stampIdx=12 type=4 2021-01-14 13:51:43.749716+0530 localhost kernel[0]: (IOAcceleratorFamily2) void IOAccelFenceMachine::fence_timeout(IOTimerEventSource *): IntelAccelerator prodding blockFenceInterrupt 2021-01-14 13:51:43.850784+0530 localhost kernel[0]: (IOAcceleratorFamily2) void IOAccelFenceMachine::fence_timeout(IOTimerEventSource *): IntelAccelerator prodding blockFenceInterrupt 2021-01-14 13:51:43.850948+0530 localhost kernel[0]: (Sandbox) Sandbox: 5 duplicate reports for com.apple.WebKit deny(1) mach-lookup com.apple.CoreDisplay.Notification 2021-01-14 13:51:43.850964+0530 localhost kernel[0]: (Sandbox) Sandbox: bluetoothd(110) deny(1) mach-lookup com.apple.server.bluetooth 2021-01-14 13:51:43.898450+0530 localhost kernel[0]: (IOAcceleratorFamily2) GPU hang: (null) 2021-01-14 13:51:43.899590+0530 localhost kernel[0]: (IOAcceleratorFamily2) Trying to restart GPU (Intel UHD Graphics 630 (Mobile)).. 

Thank you in advance!!

submitted by /u/__vivek
[link] [comments]
Whatsapp