seldo Posted December 10, 2017 Share Posted December 10, 2017 Hello, I wanted to enable Intel Quick Sync for HW encoding yesterday. For that I had to turn on the integrated graphics. Now I am hitting a wall with the memory allocation at startup. My issue is best described here: https://sourceforge.net/p/cloverefiboot/tickets/125/?limit=1000 In short: the memory cannot be reallocated successfully by OsxAptioFixDrv-64/OsxAptioFix2Drv-64, leading to an error during the boot. What's interesting is that I found issues for X99/X87, but nothing for Z170. Here's my current peripherals: GTX 980 FW400/800 card 2 SSD + 1 HDD onboard audio onboard NIC Here's what I have in my drivers68UEFI: AppleImageCodec-64.efi AppleKeyAggregator-64.efi AppleUITheme-64.efi DataHubDxe-64.efi FSInject-64.efi FirmwareVolume-64.efi OsxAptioFix2Drv-64.efi OsxFatBinaryDrv-64.efi SMCHelper-64.efi VBoxHfs-64.efi I tried all kind of flavours of OsxAptioFixDrv-64/OsxAptioFix2Drv-64 (-free2000, or that one), with no luck. Afaik, all OsxAptioFixDrv-64 are based on changing the value for KERNEL_BLOCK_NO_RT_SIZE_PAGES For OsxAptioFix2Drv-64, I've seen different versions, but I couldn't get what was being changed. Enabling/disabling the integrated graphics (default settings are DVMT Pre-Allocated 64M/DVMT Total Gfx Mem 64M) is what makes me boot/not boot. I read that the slide=0 boot argument could do something, but didn't try it since I couldn't find documentation about it. Have any of you having issues like this on a Z170 platform? Link to comment Share on other sites More sharing options...
seldo Posted December 10, 2017 Author Share Posted December 10, 2017 Here are the errors. Today, I am booting without the igpu and the latest AF2 AF2: Error allocating 0x125d1 pages at 0x000000001524000 alloc type 2 AF1 (with igpu): Requested men: 10D24000 - 232F4FFF, Pages 125D1, Size 125D1000 Reloc block: C78E000 - 26D53FFF, Pages 1A5C6, Size: 1A5C6000 Reloc block can handle men requests: 0 - 1A5C5FFF AF1 (without igpu) Requested men: 1E800000 - 1EFFFFFF, Pages 800, Size 800000 Reloc block: 2C78E000 - 46D53FFFF, Pages 1A5C6, Size: 1A5C6000 Reloc block can handle men requests: 0 - 1A5C5FFF Link to comment Share on other sites More sharing options...
seldo Posted December 10, 2017 Author Share Posted December 10, 2017 Assuming I read the error right, I updated AF1 with the following: #define KERNEL_BLOCK_NO_RT_SIZE_PAGES 0x1A5D0 Instead of having an error, I have the following: Using relic block: yes, hibernate wake: no ++++++++++++++++++++++++++++++++++++ And it is stuck there. -- Since it is all about memory, I changed the setting of my iGPU from 64M to 32M of pre-allocated memory, and it can randomly boot. However, neither my patch nor free2000 has been working 100%. I have more than 50% failure, making the change not viable for day-to-day usage. For now, I am keeping my iGPU disabled so I can boot successfully every time. I played around with the *HFS*.efi drivers, but I do not think they have much effect here. Running memmap with the iGPU enabled returns that I have 10000 pages less available after the allotment. Link to comment Share on other sites More sharing options...
Recommended Posts