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

@@ -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)