@@ -921,6 +921,7 @@ static void ncq_cb(void *opaque, int ret)
IDEState *ide_state = &ncq_tfs->drive->port.ifs[0];
if (ret == -ECANCELED) {
+ fprintf(stderr, "ncq_cb: -ECANCELED\n");
return;
}
@@ -928,12 +929,17 @@ static void ncq_cb(void *opaque, int ret)
bool is_read = ncq_tfs->cmd == READ_FPDMA_QUEUED;
BlockErrorAction action = blk_get_error_action(ide_state->blk,
is_read, -ret);
+ fprintf(stderr, "ncq_cb: ret (%d) is < 0; action is %s\n",
+ ret, BlockErrorAction_lookup[action]);
if (action == BLOCK_ERROR_ACTION_STOP) {
ncq_tfs->halt = true;
ide_state->bus->error_status = IDE_RETRY_HBA;
+ fprintf(stderr, "ncq_cb: BLOCK_ERROR_ACTION_STOP\n");
} else if (action == BLOCK_ERROR_ACTION_REPORT) {
ncq_err(ncq_tfs);
+ fprintf(stderr, "ncq_cb: BLOCK_ERROR_ACTION_REPORT\n");
}
+ fprintf(stderr, "ncq_cb: -> blk_error_action\n");
blk_error_action(ide_state->blk, action, is_read, -ret);
} else {
ide_state->status = READY_STAT | SEEK_STAT;