mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-20 21:43:11 +00:00
12c7dfdadc
This is particularly beneficial for servers with Aspeed BMC video,
because it introduces framebuffer console acceleration. The
framebuffer console is much more responsive.
Patches were ported from 5.10.5:
0001-fake-acpi.patch: This may not be needed any more, but it applies
cleanly and I don't think it would harm anything.
0002-nmi-squelch.patch: The comment mentions qemu but I see this
message on physical machines occasionally, so I think this is needed.
0003-fake-trampoline.patch: This patch does not apply cleanly. It
could be ported, but I don't think it's needed, I dropped it. Dates
back to a very old commit where Linux was being embedded into a vendor
UEFI firmware: a4d7654b1e
.
0010-winterfell-ahci.patch: Minor change of %x to %lx in context.
Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
19 lines
788 B
Diff
19 lines
788 B
Diff
diff --recursive -u ./clean/linux-4.9.80/drivers/ata/libahci.c linux-4.9.80/drivers/ata/libahci.c
|
|
--- ./clean/linux-4.9.80/drivers/ata/libahci.c 2018-02-03 11:05:43.000000000 -0500
|
|
+++ linux-4.9.80/drivers/ata/libahci.c 2018-02-07 18:02:32.526535910 -0500
|
|
@@ -537,8 +537,12 @@
|
|
}
|
|
|
|
/* fabricate port_map from cap.nr_ports for < AHCI 1.3 */
|
|
- if (!port_map && vers < 0x10300) {
|
|
- port_map = (1 << ahci_nr_ports(cap)) - 1;
|
|
+ if (!port_map) { // && vers < 0x10300) {
|
|
+ printk("%s: saved_port=%02x\n", __func__, hpriv->saved_port_map);
|
|
+ writel(0x1, mmio + HOST_PORTS_IMPL);
|
|
+ port_map = readl(mmio + HOST_PORTS_IMPL);
|
|
+
|
|
+ //port_map = (1 << ahci_nr_ports(cap)) - 1;
|
|
dev_warn(dev, "forcing PORTS_IMPL to 0x%lx\n", port_map);
|
|
|
|
/* write the fixed up value to the PI register */
|