Comment 34 for bug 372170

Revision history for this message
3b (00003b) wrote : Re: intel isw raid metadata at odd offset

seems to work:
---
unpatched dmraid, without ignore_hpa=0:
$ sudo dmraid -r -d
/dev/sdb: isw, "isw_ddiggddhgi", GROUP, ok, 490234750 sectors, data@ 0

---

unpatched, with ignore_hpa=0:
$ sudo dmraid -r -d
/dev/sdb: isw, "isw_ddiggddhgi", GROUP, ok, 490234750 sectors, data@ 0
/dev/sda: isw, "isw_ddiggddhgi", GROUP, ok, 490232637 sectors, data@ 0

---

patched dmraid, without ignore_hpa=0:
$ sudo dmraid -r -d
DEBUG: not isw at 203928108032
DEBUG: Found isw 10 gafr signature.
DEBUG: isw 10 sector offset calculated at 2115.
DEBUG: not isw at 203927026176
DEBUG: isw trying hard coded -2115 offset.
DEBUG: not isw at 203927026176
DEBUG: isw metadata found at 251000192000 from probe at 251000192000

DEBUG: not isw at 251000192000
DEBUG: Found isw 10 gafr signature.
DEBUG: isw 10 sector offset calculated at 2115.
DEBUG: isw metadata found at 250999110144 from probe at 250999110144

/dev/sdb: isw, "isw_ddiggddhgi", GROUP, ok, 490234750 sectors, data@ 0
/dev/sda: isw, "isw_ddiggddhgi", GROUP, ok, 490232637 sectors, data@ 0

---

patched dmraid, ignore_hpa=0
$ sudo dmraid -r -d
DEBUG: not isw at 203928108032
DEBUG: Found isw 10 gafr signature.
DEBUG: isw 10 sector offset calculated at 2115.
DEBUG: not isw at 203927026176
DEBUG: isw trying hard coded -2115 offset.
DEBUG: not isw at 203927026176
DEBUG: isw metadata found at 251000192000 from probe at 251000192000

DEBUG: isw metadata found at 250999110144 from probe at 250999110144

/dev/sdb: isw, "isw_ddiggddhgi", GROUP, ok, 490234750 sectors, data@ 0
/dev/sda: isw, "isw_ddiggddhgi", GROUP, ok, 490232637 sectors, data@ 0

---

patched dmraid, ignore_hpa=0, after cold boot:
DEBUG: not isw at 203927026176
DEBUG: isw trying hard coded -2115 offset.
DEBUG: not isw at 203925944320
DEBUG: isw metadata found at 251000192000 from probe at 251000192000

DEBUG: isw metadata found at 250999110144 from probe at 250999110144

/dev/sdb: isw, "isw_ddiggddhgi", GROUP, ok, 490234750 sectors, data@ 0
/dev/sda: isw, "isw_ddiggddhgi", GROUP, ok, 490232637 sectors, data@ 0

---

The values around 203928108032 are from /dev/sdc, which has the
$GAFR signature but isn't part of the raid, and is on a different
controller which apparently doesn't reset HPA on a warm boot.
The second controller is
07:00.0 SATA controller: JMicron Technologies, Inc. JMicron 20360/20363 AHCI Controller (rev 02)
07:00.1 IDE interface: JMicron Technologies, Inc. JMicron 20360/20363 AHCI Controller (rev 02)