0 Replies Latest reply on Apr 21, 2011 2:03 PM by gabiz_ro

    ICH7-M hotplug

    gabiz_ro

      Let me explain in few words,I'm talking about one notebook, Intel 945 with ICH7-M  chipset.Manufacturer doesn't provide BIOS with option to enable AHCI for ICH7-M.

       

      At this moment I don't use ICH7-M SATA ports for anything. I have SATA express-card with two disks in RAID 0 for OS and storage partition.

      Pay attention,SATA ports of ICH7-M are un used right now,BIOS configure ICH7-M in legacy mode.

       

      But I want to use ICH7-M sata port as one ESATA port.

      Here is what I do.

      Before booting OS (Windows 7) I've managed to define AHCI Base address (D31:F2 offset 24h) to some free region E0800000h ,set map value to 0 and SATA mode to AHCI (D31:F2 offset 90h)

       

      At this moment all seems fine.

      Under Linux hotplug works very fine.

      Under Windows 7 with Microsoft drivers (msahci) insertion and detection of attached drive works fine,a little problem,after safe romove of attached disk,disk still remain in device manager with yellow ! mark.That is solved by doing a scan for hardware changes in device manager,then windows make that sound of device unplugged and attached disk dissapear from device manager.

       

      The big problem is after installing Intel drivers port become unusable.No disk detection at all.

      Even Intel Rapid storage technology,from taskbar show both ports as Internal empty ports.

       

      In short words:

      Microsoft msahci works almost fine,a little annoying to safe remove device

      Intel iastor doesn't work at all.

       

      That is registers dump of D31:F2 after switching to AHCI

      Only offset 92h is changed between msahci and iastor with disk attached

      msahci -> bit 4 is 1 -> port 0 disk detected

      iastor -> bit 4 remain 0 -> port 0 no device

       

      Offset      0  1  2  3  4  5  6  7   8  9  A  B  C  D  E  F

      00000000   86 80 C5 27 07 00 B0 02  01 01 06 01 00 00 00 00   †€Å'..°.........
      00000010   E1 10 00 00 F1 10 00 00  E9 10 00 00 F5 10 00 00   á...ñ...é...õ...
      00000020   A1 BF 00 00 00 00 80 E0  00 00 00 00 28 10 CD 01   ¡¿....€à....(.Í.
      00000030   00 00 00 00 80 00 00 00  00 00 00 00 11 02 00 00   ....€...........
      00000040   0F 63 0D E3 00 00 00 00  01 00 00 00 00 00 00 00   .c.ã............
      00000050   00 00 00 00 F0 00 04 00  00 00 00 00 00 00 00 00   ....ð...........
      00000060   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000070   01 00 02 40 00 00 00 00  00 00 00 00 00 00 00 00   ...@............
      00000080   05 70 00 00 0C 30 E0 FE  71 41 00 00 00 00 00 00   .p...0àþqA......
      00000090   40 00 01 00 80 01 80 5A  00 00 00 00 00 00 00 00   @...€.€Z........
      000000A0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000000B0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000000C0   00 00 00 00 05 00 00 00  00 00 00 00 00 00 00 00   ................
      000000D0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000000E0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000000F0   00 00 00 00 00 00 00 00  86 0F 02 00 00 00 00 00   ........†.......

       

       

       

      For ABAR address that is more thing different. That is memory dump of ABAR E0800000h

      This is for Microsoft msahci with disk attached and disk detected

       

      Offset      0  1  2  3  4  5  6  7   8  9  A  B  C  D  E  F

      00000000   03 FF 12 DE 02 00 00 80  00 00 00 00 05 00 00 00   .ÿ.Þ...€........
      00000010   00 01 01 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000020   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000030   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000040   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000050   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000060   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000070   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000080   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000090   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000000A0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000000B0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000000C0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000000D0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000000E0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000000F0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000100   00 00 18 CF 00 00 00 00  00 04 18 CF 00 00 00 00   ...Ï.......Ï....
      00000110   00 00 00 00 CF 00 40 7D  17 FE 0C 00 00 00 00 00   ....Ï.@}.þ......
      00000120   40 00 00 00 01 01 00 00  13 01 00 00 00 03 00 00   @...............
      00000130   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000140   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000150   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000160   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000170   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000180   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000190   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000001A0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000001B0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000001C0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000001D0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000001E0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000001F0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000200   00 80 18 CF 00 00 00 00  00 84 18 CF 00 00 00 00   .€.Ï.....„.Ï....
      00000210   00 00 00 00 CF 00 40 7D  06 20 00 00 00 00 00 00   ....Ï.@}. ......
      00000220   7F 00 00 00 FF FF FF FF  04 00 00 00 00 00 00 00   ....ÿÿÿÿ........
      00000230   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000240   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000250   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000260   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000270   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000280   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000290   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000002A0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000002B0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000002C0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000002D0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000002E0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000002F0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000300   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000310   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000320   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000330   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000340   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000350   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000360   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000370   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000380   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000390   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000003A0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000003B0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000003C0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000003D0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000003E0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000003F0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 FF   ...............ÿ

      And this is with Intel iastor with disk attached but not detected.

       

      Offset      0  1  2  3  4  5  6  7   8  9  A  B  C  D  E  F

      00000000   03 FF 12 DE 02 00 00 80  00 00 00 00 05 00 00 00   .ÿ.Þ...€........
      00000010   00 01 01 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000020   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000030   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000040   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000050   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000060   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000070   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000080   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000090   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000000A0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000000B0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000000C0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000000D0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000000E0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000000F0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000100   00 44 0B CF 00 00 00 00  00 51 0B CF 00 00 00 00   .D.Ï.....Q.Ï....
      00000110   00 00 00 00 8B 00 00 4C  16 60 0C 12 00 00 00 00   ....‹..L.`......
      00000120   77 00 00 00 01 01 00 00  04 00 00 00 04 03 00 00   w...............
      00000130   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000140   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000150   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000160   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000170   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000180   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000190   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000001A0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000001B0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000001C0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000001D0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000001E0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000001F0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000200   00 F0 0B CF 00 00 00 00  00 FF 0B CF 00 00 00 00   .ð.Ï.....ÿ.Ï....
      00000210   00 00 00 00 0B 00 00 4C  16 60 00 00 00 00 00 00   .......L.`......
      00000220   7F 00 00 00 FF FF FF FF  04 00 00 00 00 03 00 00   ....ÿÿÿÿ........
      00000230   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000240   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000250   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000260   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000270   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000280   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000290   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000002A0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000002B0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000002C0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000002D0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000002E0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000002F0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000300   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000310   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000320   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000330   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000340   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000350   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000360   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000370   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000380   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      00000390   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000003A0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000003B0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000003C0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000003D0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000003E0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
      000003F0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00      ...............

       

      I see Command list base address register,FIS base address register,interrupt enable register,command register are changed (I don't know if that's ok) but since that is a result of loading driver ... maybe is OK.

       

      What is unclear is

      offset 128h of ABAR (SATA status register,RO) with Intel drivers PHY is in offline mode as result of offset 12Ch that is 00000304h

       

       

      Maybe somebody could give me some help regarding thiat problem

       

      Thanks for reading such long message.