Jump to content
InsanelyMac Forum


  • Content count

  • Joined

  • Last visited

  • Days Won


Meowthra last won the day on February 14 2015

Meowthra had the most liked content!

About Meowthra

  • Rank
    InsanelyMac Geek

Profile Information

  • Gender
  • Location

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Meowthra

    Opcode Emulator (OPEMU) Plug-in Project

    I want to make AVX / AVX2 128/256-bit emulator But I don't know how to add 256bit ymm register
  2. this is OPEMU for Lilu Plugin Used for Intel Pentium / Celeron or AMD old processor expansion instruction set Emulation usage: copy Lilu.kext & OpcodeEmulator.kext To /Volumes/EFI/EFI/CLOVER/kexts/Other/ Boot Arguments: -lilubeta -opemubeta The instruction set Emulation is not completed yet UPD: 2017/11/17 FIX kernel_trap UPD: 2017/11/18 add AVX(vpxor)/BMI2(shlx、sarx、shrx、mulx) Instruction Set OpcodeEmulator-Project.tar.gz OpcodeEmulator-AVX.tar.gz
  3. Meowthra

    Lilu — kext and process patcher

    If use a binary patch How to patch "Intel GPU acceleration DRM key / certificate handling code" ?
  4. Meowthra

    Lilu — kext and process patcher

    Intel Haswell Celeron Pentium too At 10.12.x / 10.13.x I found that Intel GLDriver (AppleIntelHD5000GraphicsGLDriver.bundle) contains a large number of VEX BMI2 Instruction Set 128-bit Version The Intel Celeron Pentium does not support the AVX/AVX2/BMI2 instruction set Although I've probably done OPEMU AVX addressing mode, But I do not want to recompile Kernel, Because Intel needs XCPM. Hope this OPEMU can be achieved in Lilu above. OPEMU-VEX.tar.gz
  5. MetalDevice for accelerator(0x325f): 0x7fb18fc27fe8 (MTLDevice: 0x0) IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/PCE2@2/IOPP/GFX0@0/NVDA,Display-B@1/NVDA Assertion failed: (0 && "Attempting to get MTLTexture with no MTLDevice"), function GetMTLTexture, file /BuildRoot/Library/Caches/com.apple.xbs/Sources/CoreDisplay/CoreDisplay-81.5/CoreDisplay/Display/DisplaySurface.mm, line 498. Your graphics card simply can not be driven on OS X 10.13 OS X 10.13 does not support your video card The new version of OS X will continue to eliminate the old graphics support You may need reference nvidia driver development document And nvidia driver binary patch
  6. You are using the old Version OS X nvidia kext driver?
  7. Meowthra

    Webkit crash debugging

    Process: com.apple.WebKit.WebContent [518] Path: /System/Library/Frameworks/WebKit.framework/Versions/A/XPCServices/com.apple.WebKit.WebContent.xpc/Contents/MacOS/com.apple.WebKit.WebContent Identifier: com.apple.WebKit.WebContent Version: 11601 (11601.7.7) Build Info: WebKit2-7601007007000000~3 Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: Safari [376] User ID: 501 Date/Time: 2017-11-07 02:57:51.373 -0800 OS Version: Mac OS X 10.11.6 (15G31) Report Version: 11 Anonymous UUID: 0121CF6B-29A5-B8A4-32FC-818962685C38 Time Awake Since Boot: 1000 seconds System Integrity Protection: disabled Crashed Thread: 1 Dispatch queue: CA::CG::ParallelRenderQueue Exception Type: EXC_BAD_INSTRUCTION (SIGILL) Exception Codes: 0x0000000000000001, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Application Specific Information: Bundle controller class: BrowserBundleController Process Model: Multiple Web Processes Global Trace Buffer (reverse chronological seconds): 18446744072.594929 AppleJPEG 0x00007fff8a0d211c [0x7fecea910e00] Decoding completed without errors 18446744072.597885 AppleJPEG 0x00007fff8a0d00fc [0x7fecea910e00] Options: 1x-1 [FFFFFFFF,FFFFFFFF] 00054060 18446744072.597885 AppleJPEG 0x00007fff8a0cffae [0x7fecea910e00] Decoding: C0 0x02620262 0x0000304A 0x22111100 0x00000000 48093 18446744072.620670 AppleJPEG 0x00007fff8a0cf05e [0x7fecea944a00] Created session 18446744072.620670 AppleJPEG 0x00007fff8a0cfa11 [0x7fecea944a00] Releasing session 18446744072.621658 AppleJPEG 0x00007fff8a0cf05e [0x7fecea910e00] Created session 18446744072.621670 AppleJPEG 0x00007fff8a0cfa11 [0x7fecea910e00] Releasing session 18446744073.126343 AppleJPEG 0x00007fff8a0cf05e [0x7fecea944a00] Created session 18446744073.128712 AppleJPEG 0x00007fff8a0cf05e [0x7fecea94d600] Created session 18446744073.128712 AppleJPEG 0x00007fff8a0cf05e [0x7fecea94aa00] Created session 18446744073.130878 AppleJPEG 0x00007fff8a0cf05e [0x7fecea947e00] Created session 18446744073.131512 AppleJPEG 0x00007fff8a0cf05e [0x7fecea917200] Created session 18446744073.131802 AppleJPEG 0x00007fff8a0cf05e [0x7fecea910e00] Created session 0.480768 CFNetwork 0x00007fff86f2498f Explicitly setting CF cookie storage singleton 0.481211 CFNetwork 0x00007fff86f5b5d1 Explicitly setting cookie storage singleton Thread 0:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x00007fff89b7bfae semaphore_wait_trap + 10 1 libsystem_platform.dylib 0x00007fff83909ce8 _os_semaphore_wait + 16 2 libdispatch.dylib 0x00007fff912ee994 _dispatch_barrier_sync_f_slow + 594 3 com.apple.QuartzCore 0x00007fff8cc4ce54 CABackingStoreGetFrontTexture(CABackingStore*) + 92 4 com.apple.QuartzCore 0x00007fff8cc5c7a6 CABackingStorePrepareFrontTexture + 54 5 com.apple.QuartzCore 0x00007fff8cc3a6b0 CA::Layer::prepare_commit(CA::Transaction*) + 382 6 com.apple.QuartzCore 0x00007fff8cc394ac CA::Context::commit_transaction(CA::Transaction*) + 288 7 com.apple.QuartzCore 0x00007fff8cc390ec CA::Transaction::commit() + 508 8 com.apple.QuartzCore 0x00007fff8cc44977 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 71 9 com.apple.CoreFoundation 0x00007fff97d2b067 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23 10 com.apple.CoreFoundation 0x00007fff97d2afd7 __CFRunLoopDoObservers + 391 11 com.apple.CoreFoundation 0x00007fff97d09ef8 CFRunLoopRunSpecific + 328 12 com.apple.HIToolbox 0x00007fff9100f935 RunCurrentEventLoopInMode + 235 13 com.apple.HIToolbox 0x00007fff9100f76f ReceiveNextEventCommon + 432 14 com.apple.HIToolbox 0x00007fff9100f5af _BlockUntilNextEventMatchingListInModeWithFilter + 71 15 com.apple.AppKit 0x00007fff819efdf6 _DPSNextEvent + 1067 16 com.apple.AppKit 0x00007fff819ef226 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454 17 com.apple.AppKit 0x00007fff819e3d80 -[NSApplication run] + 682 18 com.apple.AppKit 0x00007fff819ad368 NSApplicationMain + 1176 19 libxpc.dylib 0x00007fff8e088194 _xpc_objc_main + 795 20 libxpc.dylib 0x00007fff8e086bbe xpc_main + 494 21 com.apple.WebKit.WebContent 0x0000000106476b4a 0x106476000 + 2890 22 libdyld.dylib 0x00007fff8a84c5ad start + 1 invalid user opcode (64-bit) : C4 41 19 EF E4 C5 7C 28 15 4A vpxor xmm12, xmm12, xmm12 c4 41 19 ef e4 Missing AVX / AVX2 instruction set
  8. Dyld Error Message: Symbol not found: _OBJC_CLASS_$_SLSessionOwner
  9. Check the crash history /Library/Logs/DiagnosticReports/WindowServer_xxxxxxxxxxxxxxxxxxx.crash
  10. http://www.insanelymac.com/forum/topic/329338-about-gioscreenlockstate-3-sm-0x0-i-probably-know-the-reason/?do=findComment&comment=2529349 OS X 10.12 + 在 XXXXXGLDriver.kext 編譯時加入大量 AVX2 指令 如 mulx、shlx 等 加減乘除運算代碼 簡單的說 處理器必須支援 AVX2 不然的話 OPEMU 必須加入 AVX2 的 mulx、shlx 模擬器 Google 版: OS X 10.12 + in XXXXXGLDriver compile a large number of AVX2 instructions such as mulx, shlx addition, subtraction, multiplication and division code the processor must support AVX2 or OPEMU must join AVX2 instructions (mulx, shlx) emulator
  11. appleIntelXXXGLDriver of OSX 10.12.x/10.13.x which contains a large number of AVX2 instruction set operation code (mulx、shlx...) So lead to gIOScreenLockState 3, hs 0, bs 0, now 0, sm 0x0 && black screen View the crash log file /Library/Logs/DiagnosticReports/WindowServer_xxxxxxxx.crash com.apple.driver.AppleIntelHD5000GraphicsGLDriver 0x000000014a63357f Gen7Context::Initialize(GLDContextRec*) + 1493 (0x5D5) com.apple.driver.AppleIntelHD5000GraphicsGLDriver 0x000000013d175f15 glrIntelPopulateComputeDeviceConfig(GLDDeviceRec*, GLDDeviceConfigRec*) + 145 (0x91) glrIntelPopulateComputeDeviceConfig __text:0000000000001F15 mulx rcx, rax, [rbp+var_30] Gen7Context::Initialize __text:000000000000357F shlx eax, r13d, edx So... Processor must support AVX2 instruction set Pentium / Celeron and Haswell before the processor Should be the problem Because these processors do not support AVX2
  12. the problem still exists, Unable to solve.
  13. http://www.insanelymac.com/forum/topic/328567-intel-hd-graphics-haswell-gt1-qeci-patch/
  14. My display card is Intel internal display but I want to know the reason of black screen. Before OS X 10.11 There is no problem to enable CI After OS X 10.12 Enabling CI causes a black screen (gIOScreenLockState 3 ... sm:0x0) QE CI (OPENGL/CL) Before OS X 10.11 OK OK After OS X 10.12 OK NO If sm is 0x0 will enter the black screen. sm is "systemMessage" xnu Source: xnu-xxx/iokit/Kernel/IOService.cpp function: IOService::updateConsoleUsers #if HIBERNATION if (kIOMessageSystemHasPoweredOn == systemMessage) { uint32_t lockState = IOHibernateWasScreenLocked(); switch (lockState) { case 0: break; case kIOScreenLockLocked: case kIOScreenLockFileVaultDialog: gIOConsoleBooterLockState = kOSBooleanTrue; break; case kIOScreenLockNoLock: gIOConsoleBooterLockState = 0; break; case kIOScreenLockUnlocked: default: gIOConsoleBooterLockState = kOSBooleanFalse; break; } } #endif /* HIBERNATION */ #if HIBERNATION if (!loginLocked) gIOConsoleBooterLockState = 0; IOLog("IOConsoleUsers: time(%d) %ld->%d, lin %d, llk %d, \n", (num != 0), gIOConsoleLockTime, (num ? num->unsigned32BitValue() : 0), gIOConsoleLoggedIn, loginLocked); #endif /* HIBERNATION */ #if HIBERNATION if (gIOChosenEntry) { if (locked == kOSBooleanTrue) gIOScreenLockState = kIOScreenLockLocked; else if (gIOConsoleLockTime) gIOScreenLockState = kIOScreenLockUnlocked; else gIOScreenLockState = kIOScreenLockNoLock; gIOChosenEntry->setProperty(kIOScreenLockStateKey, &gIOScreenLockState, sizeof(gIOScreenLockState)); IOLog("IOConsoleUsers: gIOScreenLockState %d, hs %d, bs %d, now %ld, sm 0x%x\n", gIOScreenLockState, gIOHibernateState, (gIOConsoleBooterLockState != 0), now, systemMessage); } #endif /* HIBERNATION */ I guess this is some sort of validation limit But do not know the reason
  15. Update: With latest lilu and Whatevergreen kexts RX 480 is working with acceleration. HS 13.2 Ryzen 17.0 kernel.png Geekbench HS 13.2.png SO disable Lilu.kext & Enable Whatevergreen.kexts ?