Jump to content

[80% Solved] Iris Xe iGPU on Tiger Lake successfully loaded ICLLP Frambuffer and VRAM also recognizes 1536MB! + However, some issues.


shl628
558 posts in this topic

Recommended Posts

Your iGPU will most likely never work (DG1 based and togerlake cards have a chance), also, if you insist on using the OS in its current state, it's better for you to use your system in -igfxvesa mode, you can do that by reading the thread from the start for details. You should use nootedblue instead of whatevergreen, the specific version that could work is in one of the previous posts, but you'll have to try them all and test settings until one works sorry.

Also the info I gave is the device properties settings used for igpu using whatevergreen.

Link to comment
Share on other sites

forcing the driver to use 1 frame and 1 port with this patch allows agdc to return 2 and fixes pipe issue and maybe other things like linktrainig, timmings

this values matter a lot and allow todo nice things

 

image.thumb.png.62077ee4d0c511182253cb22bd3fd39a.png

 

so focus now is on acelerator as it is looping and producing gpu crash logs

Edited by jalavoui
Link to comment
Share on other sites

On 10/17/2024 at 1:14 PM, ASUS Vivobook said:

 

Maybe i must try Better confs ... With the conf of my last post It goes slow with some stuffs on safari.. i think it's not working so fine.. but i repeat, it's a good starting point for me.. now i've got device-id and platform-id so i Will try the same values with whatevergreen (ids that, i discovered, are assigned tò iris plus).. maybe it's not optimal but i try this.

 

For my specs (CPU of 13th gen - Raptor Lake) this conf Is working :

- emulate kernel like this (https://chriswayg.gitbook.io/opencore-visual-beginners-guide/advanced-topics/using-alder-lake)

Cpuid1Data    55060A00000000000000000000000000`
Cpuid1Mask    FFFFFFFF000000000000000000000000`
MinKernel     19.0.0

or this ICE lake CPU kernel 0x0706E5

Cpuid1Data : E5060700 00000000 00000000 00000000
Cpuid1Mask : FFFFFFFF 00000000 00000000 00000000

 

- Then i've used NootedBlue.kext (instead of Whatevergreen forked or not) which gives to me

 

iGPU : Intel Xe Graphics 15MB

PCIe : Intel Iris Plus Graphics G4 (Ice Lake)

AAPL,ig-platform-id <02005C8A>

device-id <5C8A0000>

 

- Then, using Whatevergreen (instead of nootedblue) (latest version) putting only AAPL,ig-platform-id taken by the previous "nootedblue conf" (i don't want spam more on this topic so i will only update this post), it gives to me a

 

iGPU : Generic iGPU 15MB

PCIe : Intel Raptor Lake-P [Iris Xe Graphics]

AAPL,ig-platform-id <02005C8A>

device-id <A0A70000>

But still 15 MB of RAM

 

I've added this to my config.plist file and now it's working for me too.. it stucked me for these lines that i removed

<key>device_type</key>
<string>VGA compatible controller</string>

.. things are going slightly better but .. :

<key>PciRoot(0x0)/Pci(0x2,0x0)</key>
			<dict>
				<key>AAPL,ig-platform-id</key>
				<data>AAAF/w==</data>
				<key>acpi-path</key>
				<string>IOACPIPlane:/_SB/PC00/GFX0@20000</string>
				<key>AAPL,GfxYTile</key>
				<data>AQAAAA==</data>
				<key>AAPL,slot-name</key>
				<string>Internal@0,2,0</string>
				<key>AAPL00,override-no-connect</key>
				<data>AP///////wAw5HycAAAAAAAfAQSVIhNgA2+xp1VMniUMUFQAAAABAQEBAQEBAQEBAQEBAQEBLjaAoHA4H0AwIDUAWMIQAAAaHySAoHA4H0AwIDUAWMIQAAAaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAMOv8KPH0SFCR9AAAAAEY=</data>
				<key>complete-modeset</key>
				<data>AQAAAA==</data>
				<key>disable-agdc</key>
				<data>AQAAAA==</data>
				<key>dpcd-max-link-rate</key>
				<data>CgAAAA==</data>
				<key>rps-control</key>
				<data>AQAAAA==</data>
				<key>igfxfw</key>
				<data>AgAAAA==</data>
				<key>framebuffer-stolenmem</key>
				<data>AAAwAQ==</data>
				<key>framebuffer-fbmem</key>
				<data>AACQAA==</data>
				<key>framebuffer-patch-enable</key>
				<data>AQAAAA==</data>
				<key>enable-dvmt-calc-fix</key>
				<data>AQAAAA==</data>
				<key>enable-dbuf-early-optimizer</key>
				<data>AQAAAA==</data>
				<key>enable-dpcd-max-link-rate-fix</key>
				<data>AQAAAA==</data>
				<key>enable-cdclk-frequency-fix</key>
				<data>AQAAAA==</data>
				<key>enable-backlight-smoother</key>
				<data>AQAAAA==</data>
				<key>enable-backlight-registers-fix</key>
				<data>AQAAAA==</data>
				<key>force-online</key>
				<data>AQAAAA==</data>
				<key>framebuffer-con0-alldata</key>
				<data>AAAAAAAAAAAAAAAAAAAAAAIAAAAYAAAA</data>
				<key>framebuffer-con0-enable</key>
				<data>AQAAAA==</data>
				<key>framebuffer-con1-alldata</key>
				<data>AgAAAAAAAAABAAAAAQAAAAAEAADBAgAA</data>
				<key>framebuffer-con1-enable</key>
				<data>AQAAAA==</data>
				<key>framebuffer-con2-alldata</key>
				<data>AwAAAAoAAAABAAAAAQAAAAAEAADBAgAA</data>
				<key>framebuffer-con2-enable</key>
				<data>AQAAAA==</data>
				<key>framebuffer-unifiedmem</key>
				<data>AAAAgA==</data>
				<key>hda-gfx</key>
				<string>onboard-1</string>
				<key>model</key>
				<string>Intel Raptor Lake-P [Iris Xe Graphics]</string>

 

Resuming :

- But i want more RAM !! It gives me always Total VRAM = 0 in system informations... Uhm...WTF

- Either no metal or QE/CI accelaration still too...

 

NootedBlue.kext.zip

Edited by ASUS Vivobook
  • Like 1
Link to comment
Share on other sites

i'm getting metal errors that might be related to AppleIntelGraphicsShared.bundle

 

can any1 extract it from DTK and upload it?

 

i tryed other AppleIntelGraphicsShared.bundle releases but with current os release i'm getting this errors

 

WindowServer-2024-10-17-232521.ipsMTLCompilerService-2024-10-17-232426.ips

 

tgl mtl checks in MTLIGAccelDevice::initializeDevice:sharedRef()

image.png.0e2c92ea9a7b1e6786b7b2c3a64092ed.png

 

this is such a great check...

(uVar13 != 0xdeafbeef

lilu can't patch bundles so options can be very limited if binary patch cause issus with mac os x

 

hmmm

image.png.60b1ffffe9c6fbae1d0907e6b29fe060.png

Edited by jalavoui
Link to comment
Share on other sites

So, today i discovered that there is a little bit accent of support tò Raptor Lake gen..

Sorry if i had occupied a Tiger Lake thread but here i've found infos of vital importance . So thank you at the moment.

Edited by ASUS Vivobook
Link to comment
Share on other sites

I'm trying to download Xcode from the AppStore but it does't install.. even if I toggle SIP... uff I want to help developers... I'm degraded in informatics so I can do something...

I think is this the solution : https://dortania.github.io/OpenCore-Post-Install/universal/iservices.html#generate-an-uuid [SOLVED]

Edited by ASUS Vivobook
Link to comment
Share on other sites

I'm trying the same modifications to latest version of WhateverGreen source like done from user "shl628" to make some tests to understand better

I've added in "kern_igfx.cpp"

case CPUInfo::CpuGeneration::RaptorLake:
            supportsGuCFirmware = true;
            currentGraphics = &kextIntelICL;
            currentFramebuffer = &kextIntelICLLPFb;
            currentFramebufferOpt = &kextIntelICLHPFb;
            modDVMTCalcFix.available = true;
            break;

 

and in "kern_model.cpp"

{ 0xA7A0, 0x8086, "Intel Iris Plus Graphics" },

 

but with command "xcodebuild" get a build failed exception

** BUILD FAILED **


The following build commands failed:
	CompileC /Users/sgiammoript/Downloads/WhateverGreen-1.6.8/build/WhateverGreen.build/Release/WhateverGreen.build/Objects-normal/x86_64/plugin_start.o /Users/sgiammoript/Downloads/WhateverGreen-1.6.8/Lilu.kext/Contents/Resources/Library/plugin_start.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'WhateverGreen' from project 'WhateverGreen')
(1 failure)

anyone can help me why this happens

Edited by ASUS Vivobook
Link to comment
Share on other sites

Do you use "-lilucpu= ?? " boot-args to spoof your Tiger Lake CPU ? Or have you modified the Lilu.kext too to set Ice-Lake CPUInfo::CpuGeneration ?? Said this because Hackintool say to me "intel generation with value ???"

Edited by ASUS Vivobook
Link to comment
Share on other sites

to build whatevergreen or nblue you need lilu debug and kernelsdk

 

image.png.56e5cabbd572eea3eee7243c754e55e2.png

 

use this ones or get them from github.

if you wanna build nblue go back and read a few posts. you can test with icl or tgl kexts

maybe you get luck and make the framebuffer to load

 

in whatevergreen you need to create new options in code for your card.

in nblue just add the card id to info.plist - no need to inject ig-platform etc as it uses a predefined id (0x9a49)

 

this is nblue info.plist. maybe start with *LE framebuffer for testing. instal the kexts + hookcase in /L/E.

if using kexts in /S/L/E then you need to adjust the patches for the os x version you're using

image.png.22305fffb0f19a6e5fcb35d040ac8d9e.png

 

Arquivo.zip

 

 

linux #defines for this card are here. https://elixir.bootlin.com/linux/v6.12-rc3/source/drivers/gpu/drm/i915

 

image.png.247306f53c1947f92765d3cbdae01bb5.png

 

looks like it is handled as a adl sub family

image.png.b1cb0e95c4ab0dca86b1199ed087a64e.png

Edited by jalavoui
  • Like 1
Link to comment
Share on other sites

On 10/19/2024 at 11:18 AM, jalavoui said:

to build whatevergreen or nblue you need lilu debug and kernelsdk

 

image.png.56e5cabbd572eea3eee7243c754e55e2.png

 

use this ones or get them from github.

if you wanna build nblue go back and read a few posts. you can test with icl or tgl kexts

maybe you get luck and make the framebuffer to load

 

in whatevergreen you need to create new options in code for your card.

in nblue just add the card id to info.plist - no need to inject ig-platform etc as it uses a predefined id (0x9a49)

 

this is nblue info.plist. maybe start with *LE framebuffer for testing. instal the kexts + hookcase in /L/E.

if using kexts in /S/L/E then you need to adjust the patches for the os x version you're using

image.png.22305fffb0f19a6e5fcb35d040ac8d9e.png

 

Arquivo.zip 4.33 MB · 1 download

 

 

linux #defines for this card are here.

 

image.png.247306f53c1947f92765d3cbdae01bb5.png

 

looks like it is handled as a adl sub family

image.png.b1cb0e95c4ab0dca86b1199ed087a64e.png

 

I've reached to build the nootedblue master!!

Edited by ASUS Vivobook
Link to comment
Share on other sites

found this log from another card. keeping it here for study

 

so any1 got the AppleIntelGraphicsShared.bundle from DTK ?

 

Kernel.log

 

modded this patch for ventura - mostly for bugged displays

check from https://github.com/joevt/WhateverGreen 

	static const uint8_t CheckTimingWithRange_Find_10_13_4[] {
		0xBB, 0x01, 0x00, 0x00, 0x00,                   // mov ebx, 0x1
		0xA8, 0x01,                                     // test al, 0x1
		0x0F, 0x85, 0x6f, 0x07, 0x00, 0x00                                      // jne <somewhere>
	};

	static const uint8_t CheckTimingWithRange_Repl_10_13_4[] {
		0x90, 0x90, 0xBB, 0x00, 0x00, 
		0x00, 0x00,
		0xE9, 0x70, 0x07, 0x00, 0x00, 0x90
	};

 

Edited by jalavoui
  • Like 1
Link to comment
Share on other sites

from s/l/e masta - it should be easy to extract

 

i'm thinking on oclp logic - they downgrade some libs to make graphics work

 

I've updated nblue and sle to include new bundle you posted

 

mtl compiler errors seem gone but the hang in pipes / acelerator / framebuffer configs persist

 

hope a solution canbe found

Edited by jalavoui
Link to comment
Share on other sites

×
×
  • Create New...