diff options
author | Leah Rowe <leah@libreboot.org> | 2025-05-02 02:18:19 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-05-02 02:24:07 +0100 |
commit | c073ee9d4fc4a631c16ff681bb62c29b952878ba (patch) | |
tree | fa9353cce5fec5c6973a7fb933fa4d26418ae09f /config/seabios/default/patches/0001-romfile-implement-a-generic-loader.patch | |
parent | 8245f0b3211812ac818adadd6526b0b39c63f3f0 (diff) |
Restore SeaBIOS 9029a010 update, but with AHCI fix
I fixed the AHCI bug, with a patch that I wrote. It works by
restoring the old SeaBIOS AHCI initialisation behaviour, whereby
the AHCI controller is enabled from its current state; the patch
that broke AHCI in coreboot (tested on ThinkPad T420), changed
AHCI initialisation behaviour so that the controller's state is
first reset, prior to enablement.
However, my patch also retains the new AHCI initialisation
behaviour, when a CSM is in use. The AHCI reset patch was done,
by the author, specifically for SeaBIOS in CSM mode, so it makes
sense to only change the behaviour conditionally according to that.
This reverts commit 8245f0b3211812ac818adadd6526b0b39c63f3f0.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'config/seabios/default/patches/0001-romfile-implement-a-generic-loader.patch')
-rw-r--r-- | config/seabios/default/patches/0001-romfile-implement-a-generic-loader.patch | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/config/seabios/default/patches/0001-romfile-implement-a-generic-loader.patch b/config/seabios/default/patches/0001-romfile-implement-a-generic-loader.patch index 2c042776..dc1464bb 100644 --- a/config/seabios/default/patches/0001-romfile-implement-a-generic-loader.patch +++ b/config/seabios/default/patches/0001-romfile-implement-a-generic-loader.patch @@ -1,7 +1,7 @@ -From 2aff8adc1dcd1315877fdb4ac4ef5e649c5b7d11 Mon Sep 17 00:00:00 2001 +From 04e972e14191f3a480e569e972c195ba8eb53a30 Mon Sep 17 00:00:00 2001 From: Riku Viitanen <riku.viitanen@protonmail.com> Date: Sat, 10 Feb 2024 21:23:33 +0200 -Subject: [PATCH 1/2] romfile: implement a generic loader +Subject: [PATCH 1/4] romfile: implement a generic loader romfile_loadfile_g: Based on romfile_loadfile but more flexible. User has to supply pointer @@ -18,7 +18,7 @@ Signed-off-by: Riku Viitanen <riku.viitanen@protonmail.com> 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/src/romfile.c b/src/romfile.c -index b598274edc09..8ccf5139ece8 100644 +index 8072a915..f4d5f82d 100644 --- a/src/romfile.c +++ b/src/romfile.c @@ -47,10 +47,12 @@ romfile_find(const char *name) @@ -69,7 +69,7 @@ index b598274edc09..8ccf5139ece8 100644 } diff --git a/src/romfile.h b/src/romfile.h -index 3e0f820047dd..1b967d86551f 100644 +index ae2f4ac7..f62b2fee 100644 --- a/src/romfile.h +++ b/src/romfile.h @@ -13,6 +13,8 @@ struct romfile_s { @@ -80,7 +80,7 @@ index 3e0f820047dd..1b967d86551f 100644 + void *(*malloc_fn)(u32), int add_len); void *romfile_loadfile(const char *name, int *psize); u64 romfile_loadint(const char *name, u64 defval); - + u32 romfile_loadbool(const char *name, u32 defval); -- -2.43.0 +2.39.5 |