vivekmiyani / OSX_GVT-D

Guide to pass iGPU to MacOS KVM guest.
94 stars 8 forks source link

I successfully passthrough my IGPU but video memory is still 7mb #8

Open darkyelox opened 2 years ago

darkyelox commented 2 years ago

Hi, first thanks for your great work, I installed my monterey and the screen shows up and it recognizes my Intel HD Graphics 510 but for some reason it stills saying 7mb of video, what could be the problem? should I teak my config.plist or something?, could you give some light about this? IMG_20220328_101428481

vivekmiyani commented 2 years ago

Congratulations for it 🎉, There are very few people who get this working this way.

You got working GVT-D, now you need to do some tweaks in config.plist if I'm not wrong. Can you share iGPU exact version and We'll try to match with the opencore guide tables.

If that is already done by you, then I think you need to modify the i915ovmfPkg by following this guide: https://github.com/patmagauran/i915ovmfPkg/wiki/DVMT-Pre-Alloc---Stolen-Memory-Issues

Hope you'll get the full iGPU working.

tak2hu commented 2 years ago

Hi, first thanks for your great work, I installed my monterey and the screen shows up and it recognizes my Intel HD Graphics 510

Hello @darkyelox, can I get your OpenCore EFI Folder please?

darkyelox commented 2 years ago

@vivekmiyani thanks!! sorry for the late response bu I got it working now using this configuration in my config.plist:

image

As suggested in the dortania guide but now I have video acceleration

image

But I'm facing problems with some apps like Photos, Android Studio and Xcode iOS simulator crashing on opening, I read that could be problems with the iGPU so I should spoof another but in my case I think is he only one working, do you know what could I do? my IGPU is a Intel 510 HD Graphics, the processor is an i5-6198 2.30GHz.

@Tak2Hu I could shared here when it is 100% working because it has problems right now because maybe I have to change my device-id for something else.

vivekmiyani commented 2 years ago

If that is already done by you, then I think you need to modify the i915ovmfPkg by following this guide: https://github.com/patmagauran/i915ovmfPkg/wiki/DVMT-Pre-Alloc---Stolen-Memory-Issues

Have you tried this patch for OVMF driver? It will fix this kind of issues I guess.

darkyelox commented 2 years ago

@vivekmiyani thanks for suggestion but didn't work, I used 1536 MB (converted to 1610612736 bytes) in the line of 1915ovmf.c, recompiled and copied to my project, it boots normally but the problem persists, opening Photos app gives me the following crash report:

screenshot

Do I missing some step? how could I debug this? my BIOS has the option to use I guess 512MB but MacOS reports 1536. Should I try to use 512 to bytes instead?

vivekmiyani commented 2 years ago

I used 1536 MB (converted to 1610612736 bytes) in the line of 1915ovmf.c

This isn't DVMT pre-alloc. DVMT pre-alloc size is ~ 64M (I guess - at least for me). You can find how can you configure DVMT pre-alloc from BIOS in your particular laptop model.

After that you need to modify 1915ovmf.c, with 64M (67108864) not 1536MB.

vivekmiyani commented 2 years ago

@darkyelox You able to fix by changing what I mentioned above?