Applied all mainline PCem commits;

Removed SCSI thread waiting (except after executing the READ SUBCHANNEL command, to alleviate the effects of READ SUBCHANNEL spam done by CD players).
This commit is contained in:
OBattler
2017-09-02 23:39:26 +02:00
parent c0d1e5b4b2
commit 4c3532f31e
19 changed files with 846 additions and 292 deletions

View File

@@ -784,7 +784,6 @@ aha_mbi(aha_t *dev)
RaiseIntr(dev, 0, INTR_MBIF | INTR_ANY);
while (dev->Interrupt) {
thread_wait_event(dev->evt, 10);
}
}
@@ -1118,6 +1117,10 @@ aha_scsi_cmd(aha_t *dev)
aha_mbi_setup(dev, req->CCBPointer, &req->CmdBlock,
CCB_COMPLETE, SCSI_STATUS_CHECK_CONDITION, MBI_ERROR);
}
if (temp_cdb[0] == 0x42) {
thread_wait_event(dev->evt, 10);
}
}
@@ -1259,7 +1262,6 @@ aha_do_mail(aha_t *dev)
RaiseIntr(dev, 0, INTR_MBOA | INTR_ANY);
while (dev->Interrupt) {
thread_wait_event(dev->evt, 10);
}
}
@@ -1289,7 +1291,6 @@ aha_event_restart:
aha_scan_restart:
while (aha_do_mail(dev) && dev->MailboxCount)
{
thread_wait_event(dev->evt, 10);
}
if (!dev->MailboxCount)

View File

@@ -937,7 +937,6 @@ BuslogicMailboxIn(Buslogic_t *bl)
BuslogicRaiseInterrupt(bl, 0, INTR_MBIF | INTR_ANY);
while (bl->Interrupt) {
thread_wait_event(bl->evt, 10);
}
}
@@ -2354,6 +2353,10 @@ BuslogicSCSICommand(Buslogic_t *bl)
BuslogicMailboxInSetup(bl, req->CCBPointer, &req->CmdBlock,
CCB_COMPLETE, SCSI_STATUS_CHECK_CONDITION, MBI_ERROR);
}
if (temp_cdb[0] == 0x42) {
thread_wait_event(bl->evt, 10);
}
}
@@ -2520,7 +2523,6 @@ BuslogicProcessMailbox(Buslogic_t *bl)
BuslogicRaiseInterrupt(bl, 0, INTR_MBOA | INTR_ANY);
while (bl->Interrupt) {
thread_wait_event(bl->evt, 10);
}
}
@@ -2570,7 +2572,6 @@ BuslogicEventRestart:
BuslogicScanRestart:
while (BuslogicProcessMailbox(bl) && bl->MailboxCount)
{
thread_wait_event(bl->evt, 10);
}
if (!bl->MailboxCount)