From 249d1e0449d3beb097525d847b23461dc818e50a Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 8 May 2025 02:08:29 -0400 Subject: kernel: ahci: Clear out PxSERR per port Signed-off-by: Ian Moffett --- sys/dev/ic/ahci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/ic/ahci.c b/sys/dev/ic/ahci.c index e62c89f..1eac07b 100644 --- a/sys/dev/ic/ahci.c +++ b/sys/dev/ic/ahci.c @@ -241,6 +241,8 @@ ahci_init_port(struct ahci_hba *hba, uint32_t portno) memset(PHYS_TO_VIRT(tmp), 0, pagesz); } + mmio_write32(&port->serr, 0xFFFFFFFF); + if ((error = hba_port_start(port)) < 0) { for (int i = 0; i < hba->nslots; ++i) { vm_free_frame(dp->cmdlist[i].ctba, 1); -- cgit v1.2.3