xCuri0 / ReBarUEFI

Resizable BAR for (almost) any UEFI system
MIT License
1.42k stars 63 forks source link

ASRock z-170 k4/d3 sata controller not being initialized correctly when enable "above 4g mmio bios assignment" #38

Open jnyk opened 1 year ago

jnyk commented 1 year ago

Motherboard: ASRock z-170 k4/d3 GPU: 6700xt CPU: 8700k I can't open the "above 4g decoding" or "above 4g mmio bios assignment" image when I turn this to enable ,it can't work, can't into windows system ,because bios can not find any sata drives

image image

then when i try to use modGRUBShell.efi
setup_var 0x3 0x0 reboot setup_var 0x3 0x1 but there is nothing happend

It makes me very depressed. Can you give me some suggestions

Originally posted by @jnyk in https://github.com/xCuri0/ReBarUEFI/issues/11#issuecomment-1465085555

jnyk commented 1 year ago

image

jnyk commented 1 year ago

image

dormancygrace commented 1 year ago

I believe that it's same issue https://github.com/xCuri0/ReBarUEFI/issues/35

@jnyk do you have ch341a or another programmer? If it's dsdt issue, I can reinsert dsdt from another ASRock motherboard, that works as intended

jnyk commented 1 year ago

I believe that it's same issue #35

@jnyk do you have ch341a or another programmer? If it's dsdt issue, I can reinsert dsdt from another ASRock motherboard, that works as intended

yes I have met similar situation with him,can not extract DTST from AmiBoardInfo2.I have bought one ch341a ,meybe it will cost two days from online store to me

xCuri0 commented 1 year ago

DSDT is in DsdtAsl, not AmiBoardInfo2 @jnyk

dormancygrace commented 1 year ago

@jnyk here you could try this bios, dsdt patched, uefipatched. Just enable Above 4G like usual, the one that made windows hang/freeze. z17gkd37mod.zip

Do you use this mb? Or just made modifications? What you changed in dsdt?

Koekieezz commented 1 year ago

@jnyk here you could try this bios, dsdt patched, uefipatched. Just enable Above 4G like usual, the one that made windows hang/freeze. z17gkd37mod.zip

Do you use this mb? Or just made modifications? What you changed in dsdt?

i dont use this mb but i've done several dsdt fix on asrock boards (yes they're just pAWJPASJd;JDp[ to fix sometimes) what did i change? well mainly the qwordfield under the first dwordfield, then also correcting the rest of dsdt errors (its a long list lol)

and no, i dont slap other board DSDT on this bios

dormancygrace commented 1 year ago

@jnyk here you could try this bios, dsdt patched, uefipatched. Just enable Above 4G like usual, the one that made windows hang/freeze. see if it's working with this bios. z17gkd37mod.zip

Is there coffee lake mod? Because @jnyk use i7-8700

dormancygrace commented 1 year ago

@jnyk here you could try this bios, dsdt patched, uefipatched. Just enable Above 4G like usual, the one that made windows hang/freeze. z17gkd37mod.zip

Do you use this mb? Or just made modifications? What you changed in dsdt?

i dont use this mb but i've done several dsdt fix on asrock boards (yes they're just pAWJPASJd;JDp[ to fix sometimes) what did i change? well mainly the qwordfield under the first dwordfield, then also correcting the rest of dsdt errors (its a long list lol)

and no, i dont slap other board DSDT on this bios

But there is already qwordfield in dsdt in this board. I'm 90% sure that there is no need to patch uefi not dsdt. I will make bios without patching

Koekieezz commented 1 year ago

@jnyk here you could try this bios, dsdt patched, uefipatched. Just enable Above 4G like usual, the one that made windows hang/freeze. see if it's working with this bios. z17gkd37rbarcfl.zip

this one is modded non coffee lake bios: z17gkd37rbar.zip

dormancygrace commented 1 year ago

heres the one with coffee lake mod @jnyk z17gkd37_2.zip

Please, make one without any patches.

Koekieezz commented 1 year ago

heres the one with coffee lake mod @jnyk z17gkd37_2.zip

Please, make one without any patches.

He could test it and if it's working it could be the DSDT faulty? he's the one testing it. if anything went good then DSDT was the one causing it, if its not, then it wasnt it, simple. Even if everything seems to be in place, sometimes it's just sketchy XD

dormancygrace commented 1 year ago

heres the one with coffee lake mod @jnyk z17gkd37_2.zip

Please, make one without any patches.

He could test it and if it's working it could be the DSDT faulty? he's the one testing it. if anything went good then DSDT was the one causing it, if its not, then it wasnt it, simple. Even if everything seems to be in place, sometimes it's just sketchy XD

As I mentioned, I've compared dsdt from similar ASRock mb - they are +/- same (identical in qwordfield and m1.. parts)

Koekieezz commented 1 year ago

heres the one with coffee lake mod @jnyk z17gkd37_2.zip

Please, make one without any patches.

He could test it and if it's working it could be the DSDT faulty? he's the one testing it. if anything went good then DSDT was the one causing it, if its not, then it wasnt it, simple. Even if everything seems to be in place, sometimes it's just sketchy XD

As I mentioned, I've compared dsdt from similar ASRock mb - they are +/- same (identical in qwordfield and m1.. parts)

let him reply first okay? he's the one testing

jnyk commented 1 year ago

thanks @Koekieezz .I'm working now , may not be able to reply to a message promptly. I will try this bios when i get home.

jnyk commented 1 year ago

By the way ,I try to patched UEFI to my bios last night.After I flashed the ROM whitch I patched into mainboard, windows can be used as usually, but when i insert the usb disk , it could not start windows system, utill i remove the usb disk

dormancygrace commented 1 year ago

@Koekieezz is it secret, what you changed? i'm asking because stock dsdt and from your file - completely same image

Koekieezz commented 1 year ago

@Koekieezz is it secret, what you changed? i'm asking because stock dsdt and from your file - completely same image

no.. both files have 0x7FFFFFFFFF on 1st qwordfield, and for the rbarcfl one have acpi fix on dsdt then apply the dsdt patch

dormancygrace commented 1 year ago

@Koekieezz is it secret, what you changed? i'm asking because stock dsdt and from your file - completely same image

no.. both files have 0x7FFFFFFFFF on 1st qwordfield, and for the rbarcfl one have acpi fix on dsdt then apply the dsdt patch

I`ve attached screenshot of files compare. only difference is disassembling by iasl

jnyk commented 1 year ago

@Koekieezz I just instant flash the bios , when i open above 4g mmio bios assignment, it can not find any disk drive as before. i use asrock's tool to flashed bios,may be use ch431a it will be ok

dormancygrace commented 1 year ago

@Koekieezz I just instant flash the bios , when i open above 4g mmio bios assignment, it can not find any disk drive as before. i use asrock's tool to flashed bios,may be use ch431a it will be ok

Ch341a you need to use in case of major failure

dormancygrace commented 1 year ago

@jnyk
z17gkd37.zip

try this one

jnyk commented 1 year ago

i flash this bios with ch341a ,but It's still the same as before

jnyk commented 1 year ago

@dormancygrace ok I‘ll try it

Koekieezz commented 1 year ago

@Koekieezz is it secret, what you changed? i'm asking because stock dsdt and from your file - completely same image

no.. both files have 0x7FFFFFFFFF on 1st qwordfield, and for the rbarcfl one have acpi fix on dsdt then apply the dsdt patch

I`ve attached screenshot of files compare. only difference is disassembling by iasl

i have 2 bioses attached 12h ago, they have different dsdt from normal ones, its this one: z17gkd37rbarcfl.zip, check em again

jnyk commented 1 year ago

@dormancygrace It's still the same as before . start my conputer can't find any disk drive except usb disk ,and can not inter into neither windows system or winpe system

Koekieezz commented 1 year ago

@Koekieezz I just instant flash the bios , when i open above 4g mmio bios assignment, it can not find any disk drive as before. i use asrock's tool to flashed bios,may be use ch431a it will be ok

are you sure it's the correct bios? since i had some edits and deleted the first reply, the correct one have 2 files in 1 post. its this z17gkd37rbarcfl.zip one to use if you had the wrong one. try modgrub method to enable it and see if it's working.

this is similiar to this guy on winraid, he managed to enable it. Here is your above 4g: image

So try to do setup_var or setup_var_3 0x385 0x0, reboot (type it and enter), then 0x385 0x1, reboot (type it and enter).

jnyk commented 1 year ago

@Koekieezz yes wo download this z17gkd37rbarcfl.zip one

i can not find disk drive untill setup_var 0x385 0

jnyk commented 1 year ago

your mean is i need try to setup_var 0x385 1 gagin?

Koekieezz commented 1 year ago

i can not find disk drive untill setup_var 0x385 0

oh i think you should use iGPU, try to enable igpu, set display primary to igpu, and enable multi monitor/display on bios, save everything, then try to re do the thing i told for modgrub but this time using iGPU. the person i mentioned from winraid DID have the same problem as you but once he use igpu.. it worked fluently.

Here is the post: https://winraid.level1techs.com/t/experimental-resizable-bar-dxe-driver/89534/275?u=koekieezz Maybe you could ask that guy since he figure it out. also the bios i gave to you contains the latest orom, efigop and the gop vbt itself for coffeelake all revisions (up till 9900K), igpu should work. the patch i gave to you is modded for coffee lake (acpi table fix, fd unlock, 128GB ram unlock, and patch for 8+ thread for cpu) + uefipatch for 64GB allocation + dsdt fix (this done step by step from coffeemod to dsdt) changing from external reference to 0x7FFFFFFFFF.

your mean is i need try to setup_var 0x385 1 gagin?

Yes but with igpu, to see if above 4g decoding would work.

dormancygrace commented 1 year ago

@Koekieezz in first bios you've made, is there cfl mod?

jnyk commented 1 year ago

i was in the same situation as him image

dormancygrace commented 1 year ago

@jnyk if you used programmer, I think, that you erased your Mac address

jnyk commented 1 year ago

yes i used ch341a programmer to flash bios

jnyk commented 1 year ago

i can not find disk drive untill setup_var 0x385 0

oh i think you should use iGPU, try to enable igpu, set display primary to igpu, and enable multi monitor/display on bios, save everything, then try to re do the thing i told for modgrub but this time using iGPU. the person i mentioned from winraid DID have the same problem as you but once he use igpu.. it worked fluently.

Here is the post: https://winraid.level1techs.com/t/experimental-resizable-bar-dxe-driver/89534/275?u=koekieezz Maybe you could ask that guy since he figure it out. also the bios i gave to you contains the latest orom, efigop and the gop vbt itself for coffeelake all revisions (up till 9900K), igpu should work. the patch i gave to you is modded for coffee lake (acpi table fix, fd unlock, 128GB ram unlock, and patch for 8+ thread for cpu) + uefipatch for 64GB allocation + dsdt fix (this done step by step from coffeemod to dsdt) changing from external reference to 0x7FFFFFFFFF.

your mean is i need try to setup_var 0x385 1 gagin?

Yes but with igpu, to see if above 4g decoding would work.

ok ,i'll try if i need to enable this option image

Koekieezz commented 1 year ago

i can not find disk drive untill setup_var 0x385 0

oh i think you should use iGPU, try to enable igpu, set display primary to igpu, and enable multi monitor/display on bios, save everything, then try to re do the thing i told for modgrub but this time using iGPU. the person i mentioned from winraid DID have the same problem as you but once he use igpu.. it worked fluently. Here is the post: https://winraid.level1techs.com/t/experimental-resizable-bar-dxe-driver/89534/275?u=koekieezz Maybe you could ask that guy since he figure it out. also the bios i gave to you contains the latest orom, efigop and the gop vbt itself for coffeelake all revisions (up till 9900K), igpu should work. the patch i gave to you is modded for coffee lake (acpi table fix, fd unlock, 128GB ram unlock, and patch for 8+ thread for cpu) + uefipatch for 64GB allocation + dsdt fix (this done step by step from coffeemod to dsdt) changing from external reference to 0x7FFFFFFFFF.

your mean is i need try to setup_var 0x385 1 gagin?

Yes but with igpu, to see if above 4g decoding would work.

ok ,i'll try if i need to enable this option image

couldnt you just enable it in bios?

Koekieezz commented 1 year ago

@Koekieezz in first bios you've made, is there cfl mod?

i've deleted the first reply bios, the only bios i gave here is only 2.

@jnyk here you could try this bios, dsdt patched, uefipatched. Just enable Above 4G like usual, the one that made windows hang/freeze. see if it's working with this bios. z17gkd37rbarcfl.zip

this one is modded non coffee lake bios: z17gkd37rbar.zip

jnyk commented 1 year ago

@Koekieezz my BIOS can not show whole "System Agent (SA) Configuration" setting,so i can enable igpu with modGRUBShell.efi or AMIBCP64.exe. i flashed this bios into mainboard image

jnyk commented 1 year ago

just now i try to enable IGPU and do setup_var or setup_var_3 0x385 0x0, reboot (type it and enter), then 0x385 0x1, reboot . it seems that still not working properly Do I need to connect the monitor to igpu?

Koekieezz commented 1 year ago

just now i try to enable IGPU and do setup_var or setup_var_3 0x385 0x0, reboot (type it and enter), then 0x385 0x1, reboot . it seems that still not working properly Do I need to connect the monitor to igpu?

yes, that what i meant earlier. enable igpu but also connect display to motherboard.

jnyk commented 1 year ago

@Koekieezz Thank you for your continued help. It's almost midnight,I had to sleep I'll try your way tomorrow and then reply to the results.

xCuri0 commented 1 year ago

@jnyk are you able to boot linux with 4g decode ?

jnyk commented 1 year ago

image image I connected the IGPU and video card at the same time, but I still can't find the boot hard drive @Koekieezz What should I do next

jnyk commented 1 year ago

@xCuri0 I haven't tried linux, I'll try it now

xCuri0 commented 1 year ago

@jnyk So the issue is 4G decode makes the boot drive disappear ? I thought it was that Windows would freeze during boot or something (which is why I thought it was DSDT issue).

This is identical to #35 as dormancygrace also suggested before

What type of drive are you using (SATA or NVMe). Is IDE disabled ?

jnyk commented 1 year ago

Yes, the reason it can't enter Windows is that it can't find the boot hard drive i using sata disk drive

xCuri0 commented 1 year ago

@jnyk Is your Windows installation in GPT UEFI or legacy MBR ? image In System Information

jnyk commented 1 year ago

@xCuri0 It was originally a traditional MBR mode. I changed to GPT UEFI mode by diskgenius in winpe because I needed to turn off CSM

xCuri0 commented 1 year ago

@jnyk are you still able to boot USB drives ?

jnyk commented 1 year ago

it able to discover usb drives, but cannot enter winpe. I found that I only connected igpu it didn't show anything, maybe where else the settings were not correct