Replies: 67 comments 2 replies
-
The patches developed are all for AMI UEFI which laptops don't use usually. But there's no reason the module shouldn't work on a laptop if it has 4G decoding and large BAR support. |
Beta Was this translation helpful? Give feedback.
-
@5l1v3r1 while the motherboard's BIOS can be patched, the BIOS on gtx850m/gtx1060 can not so far. So, you won't get the working ReBAR with just this project. |
Beta Was this translation helpful? Give feedback.
-
Oh i see then we need to patch the vbios'es as well ? But what kind of patching for the vbios? Because as far as i know the vbioses can be found at https://www.techpowerup.com/vgabios/ link. |
Beta Was this translation helpful? Give feedback.
-
@5l1v3r1 you'd need some advanced knowledge to be able to patch VBIOS and also Pascal (GTX 1060) VBIOS is encrypted atleast on desktop so you can't edit that. Though some people say laptops have it unencrypted so might be able to be edited. The oldest Nvidia GPUs that might be able to have it hacked in are probably GTX 16 series and RTX 20 series. They have the Resizable BAR capability but with maximum supported size of 256MB. You can override the supported sizes list through editing DXE driver or Linux kernel source which will allow you to set a larger BAR size. I doubt it will work but no one has tested it yet. Linux kernel has an override for the Sapphire RX 5600 XT Pulse which comes with a buggy VBIOS which incorrectly lists the maximum size as 2GB. A Linux Fix Is On The Way For Some GPUs Having AMD Smart Access Memory Issue The same code is used in the DXE driver since it's basically code from Linux kernel adapted for UEFI. ReBar.c line 164 |
Beta Was this translation helpful? Give feedback.
-
Alright then, thank you very much for the detailed explanation, i once patched the bios and vbios (which is a part of bios itself) of n550jk-gtx850m for hackintosh purposes and i think i will give it a try for this project as well. If i become successfull , i will post the results here. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Have you bypassed igpu? Because i realized that by the help of minidisplay port i could bypass the optimus and could only use nvidia gpu and applied the patches here accordingly and voila! it worked. Actually you can also activate nvidia at hackintosh on optimus laptops by this way with the help of opencore legacy patcher. I am on gtx850m monterrey now with asus n550jk. |
Beta Was this translation helpful? Give feedback.
-
Are there any restrictions on BIOS version? |
Beta Was this translation helpful? Give feedback.
-
@psyborg55 No it should work on any UEFI BIOS you don't even need 4G decode if you are fine with being limited to smaller (often 1GB) BAR sizes. You still do get a performance gain though not as much Have you tried the enabling hidden 4G decode guide in the wiki ? I've used the same method to enable hidden settings on laptops (not 4G decode but will be same) |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Went through wiki guide and 8 pages on oc forum.
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Another shot at this: Module was inserted in main bios and flashed, rebarstate shows value is preserved across restarts - tried 11,32 and 10 Not sure if PCI bus driver that is installed after AMD driver and restart has any effect on this. On amernime it doesn't update automatically and windows doesn't prompt for restart due to hardware change, i updated it manually, still no changes in GPU-Z |
Beta Was this translation helpful? Give feedback.
-
Tried to enable 4G decoding, system crashed and restarted. |
Beta Was this translation helpful? Give feedback.
-
@psyborg55 looks like a DSDT issue from that kernel log |
Beta Was this translation helpful? Give feedback.
-
of course, here you go. Uploaded DSDT to Nextcloud because GitHub wouldn't let me attach it here. Also, if Boot Config had to be preserved, wouldn't that error out right here though? |
Beta Was this translation helpful? Give feedback.
-
@Sid127 does it error at also does resizing gpu to be smaller work if you have tried that ? |
Beta Was this translation helpful? Give feedback.
-
It does not seem to error out at that kzalloc, the if block checking if |
Beta Was this translation helpful? Give feedback.
-
Linux may be changing it back to 256mb |
Beta Was this translation helpful? Give feedback.
-
I'm not entirely sure how to work around that... |
Beta Was this translation helpful? Give feedback.
-
Also if you're using that override 128mb won't work because it's not in that supported caps value afaik |
Beta Was this translation helpful? Give feedback.
-
Removed the override, and reducing the BAR from 256 to 128 does work, but bumping it from 256 to 512 does not |
Beta Was this translation helpful? Give feedback.
-
it's the VBIOS then, NVIDIA doesn't lock down laptop VBIOS so modification is technically possible but requires some very advanced reverse engineering knowledge |
Beta Was this translation helpful? Give feedback.
-
Thought as much, thanks for the help regardless <3 Would UEFITools be able to parse a vBIOS? Or is there any other tool I shoukd be using to poke around the vBIOS, just to see if I can manage to enable it myself? |
Beta Was this translation helpful? Give feedback.
-
@5l1v3r1 Please, can you share your efi folder and modded bios for n550jk with working gtx850m in hackintosh? |
Beta Was this translation helpful? Give feedback.
-
Hey is this issue still open? |
Beta Was this translation helpful? Give feedback.
-
a while after my initial attempt, I decided to take another look at things on the same laptop, and my dmesg now has:
which is definitely different compared to the last time I tried. I recalling not patching my DSDT despite having this
and being told my DSDT was already fine and I know for a fact I've got 4G decoding enabled as well Any help would be appreciated :) |
Beta Was this translation helpful? Give feedback.
-
@Sid127 If you want rebar on Turing 20 / 16 series there's a new method called NvStrapsRebar look at the repo or thread in discussions |
Beta Was this translation helpful? Give feedback.
-
Any chance to get this for Lenovo T430? See n4ru/1vyrain#134 |
Beta Was this translation helpful? Give feedback.
-
@HolimaX try it and see ? |
Beta Was this translation helpful? Give feedback.
-
Great project, but i want to ask if it is possible to apply the patches for laptop bioses like asus n550jk-gtx850m or lenovo y520-gtx1060?
Beta Was this translation helpful? Give feedback.
All reactions