Jason Lowe-Power has uploaded this change for review. ( https://gem5-review.googlesource.com/2863

Change subject: dev: Add ATA command used in recent Linux kernels
......................................................................

dev: Add ATA command used in recent Linux kernels

Add a case for the ATA command ATAPI_IDENTIFY_DEVICE.
This avoids the panic: Unsupported ATA command when booting a recent Linux
kernel. This was tested on 4.8.13.

Change-Id: Ib297a2c02da0730d8698c59801254dd0f5ee9f7f
Signed-off-by: Jason Lowe-Power <[email protected]>
---
M src/dev/storage/ide_disk.cc
1 file changed, 1 insertion(+), 0 deletions(-)



diff --git a/src/dev/storage/ide_disk.cc b/src/dev/storage/ide_disk.cc
index e4b4e62..f7b6a80 100644
--- a/src/dev/storage/ide_disk.cc
+++ b/src/dev/storage/ide_disk.cc
@@ -657,6 +657,7 @@

         // Supported PIO data-in commands
       case WDCC_IDENTIFY:
+      case ATAPI_IDENTIFY_DEVICE:
         cmdBytes = cmdBytesLeft = sizeof(struct ataparams);
         devState = Prepare_Data_In;
         action = ACT_DATA_READY;

--
To view, visit https://gem5-review.googlesource.com/2863
To unsubscribe, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib297a2c02da0730d8698c59801254dd0f5ee9f7f
Gerrit-Change-Number: 2863
Gerrit-PatchSet: 1
Gerrit-Owner: Jason Lowe-Power <[email protected]>
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to