Remove AHCI debug dumps

This commit is contained in:
Justin C. Miller
2018-05-21 09:07:32 -07:00
parent 3fdf246a22
commit 87d80f84c2
2 changed files with 0 additions and 6 deletions

View File

@@ -95,7 +95,6 @@ hba::hba(pci_device *device)
m_data->host_control |= 0x02; // enable interrupts m_data->host_control |= 0x02; // enable interrupts
} }
dump();
for (auto &p : m_ports) { for (auto &p : m_ports) {
if (!p.active()) continue; if (!p.active()) continue;

View File

@@ -311,15 +311,11 @@ port::read_async(uint64_t offset, size_t length, void *dest)
size_t size_t
port::read(uint64_t offset, size_t length, void *dest) port::read(uint64_t offset, size_t length, void *dest)
{ {
dump();
int slot = read_async(offset, length, dest); int slot = read_async(offset, length, dest);
dump();
int timeout = 0; int timeout = 0;
while (m_pending[slot].type == command_type::read) { while (m_pending[slot].type == command_type::read) {
if (timeout++ > 5) { if (timeout++ > 5) {
m_hba->dump();
dump();
return 0; return 0;
} }
asm("hlt"); asm("hlt");
@@ -384,7 +380,6 @@ port::handle_interrupt()
if (m_data->interrupt_status & 0x40000000) { if (m_data->interrupt_status & 0x40000000) {
log::error(logs::driver, "AHCI task file error"); log::error(logs::driver, "AHCI task file error");
dump();
kassert(0, "Task file error"); kassert(0, "Task file error");
} }