NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/39659: ahci sata driver does not work on big endian system



>Number:         39659
>Category:       kern
>Synopsis:       ahci sata driver does not work on big endian system
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 30 17:35:00 +0000 2008
>Originator:     Chris Zhang
>Release:        4.0
>Organization:
>Environment:
>Description:
When testing on a PPC440 based system using NetBSD 4.0 (with customized BSP), I 
realized the Ahci driver does work (identify device would return garbage). 
Later investigation shows, the ahcisata_core.c does not snoop the 
IDENTIFY_DEVICE command and byte swap on big endian system as it does in 
sys/dev/ic/wdc.c. We added some code in ahcisata_core.c to do the same as wdc.c 
and it appears to work fine. 
>How-To-Repeat:
Try to plug in any AHCI PCI sata controller on a big endian system and watch if 
the SATA disk is identified.
>Fix:



Home | Main Index | Thread Index | Old Index