Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[FIXED] Kernel Panic - Marvell 88SE9172 Sata, not on Win7.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Decibels
Veteran
Veteran


Joined: 16 Aug 2002
Posts: 1615
Location: U.S.A.

PostPosted: Tue Dec 24, 2019 6:30 pm    Post subject: [FIXED] Kernel Panic - Marvell 88SE9172 Sata, not on Win7. Reply with quote

Got a new WD Black 2TB 6Gb/s Sata drive. My MB Gigabyte Z77-D3H supports it. My other Sata drives are only 3Gb/s.
Put my current build on the NEW drive and no problem booting it from the 3Gb/s connectors. Everything worked fine.
All the Sata ports are enabled in Bios (F16) and set to AHCI (two chipsets SATA3 is Intel Z77 and GSATA3 is Marvell 88SE9172).

Issue is:
1) If move the WD Black to the 6Gb/s (either chipset) get kernel panic (don't have that output yet, but is lot different than below).
2) If put the 3Gb/s drive with Gentoo same thing (kernel panic like #1). Though the port should be backward compat.
3) The real stinker is if remove the WD Black and put my Win7 drive back in works fine in the 6Gb/s ports and boots up. BUT if try to boot to my 3Gb/s Gentoo drive (which is in the 3Gb/s port it works on) I get the kernel panic shown directly below. And just booted to Win7 without moving anything.
4) Put the Win7 or the New drive back into a 3Gb/s port and everything works fine and boots.

First thought maybe the 6Gb/s ports were bad, but I have my CD-ROM drives on the GSATA connectors and Win7 boots fine on the Z77 6Gb/s port. Just can't boot to Linux with any hard drive in the 6Gb/s ports.

Here is the kernel panic from last attempt: ie Normal Gentoo system on the 3Gb/s port and Win7 (after having already booted to windows and rebooting to Gentoo) on the Z77 6Gb/s port.

Code:
cdrom: Uniform CD-ROM driver Revision: 3.20
sr 6:0:0:0: Attached scsi generic sg3 type 5
scsi 7:0:0:0: CD-ROM                 LITE-ON DVDRW LH-20A1S 9L09 PQ: O ANSI: 5
sr 7:0:0:0: [sr1] scsi3-mmc drive: 48x_48x writer dvd-ram cd/rw xa/form2 cdda tray
sr 7:0:0:0: Attached scsi generic sg4 type 5
VFS: Cannot open root device "sda2" or unknown-block(8,2): error -6
Please append a correct "root="" boot option: here are the available partitions:
0810              244197527 sdb
  driver: sd
    0811                      489951 sdb1 c2a0f2cc-01
    0812                 87891615 sdbz c2a0f2cc-02
    0813                 58597087 sdb3 c2a0f2cc-03
    0814                                 1 sdb4
    0815                 48829102 sdb5 c2a0f2cc-05
    0816                 47849571 sdb6 c2a0f2cc-06
    0817                      538146 sdb7 c2a0f2cc-07
0820           488385527 sdc
  driver: sd
    0821                256003776 sdc1 5dc52c3b-01
    0822                                  1 sdc2
    0825                  48829536 sdc5 5dc52c3b-05
    0826                166015678 sdc6 5dc52c3b-06
    0827                  17534916 sdc7 5dc52c3b-07
0800           244198584 sda
   driver: sd
    0801               244196001 sda1 f90e8dfb-01
0b00                    1048575 sr0
   driver: sr
0b01                    1048575 sr1
   driver: sr
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,2)
CPU: O PID: 1 Comm: swapper/0 Not tainted 4.19.66-gentoo #1
Hardware name: Gigabyte Technology Co., Ltd. To be filled by 0.E.M. Z77X-D3H, BIOS F16 10/24/2012
Call Trace:
  dump_stack+0x46/0x60
  panic+0xcc/0x208
  mount_block_root+0x1ef/0x284
  ? do_early_param+0x86/0x86
  prepare_namespace+0x122/0x158
  kernel_init_freeable+0x1c3/0x1ce
  ? rest_init+0x9a/0x9a
  kernel_init+0x5/0x100
  ret_from_fork+0x1f/0x30
Kernel Offset: 0x13000000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xfffffffbfffffff)
---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,2) ]---


After this I put the Win7 back into the 3Gb/s port and booted Gentoo to write this. Will get the other kernel panic after write this if anyone is interested.

1) Config: 4.19.66
Code:
# SCSI device support
#
CONFIG_SCSI_MOD=y
# CONFIG_RAID_ATTRS is not set
CONFIG_SCSI=y
CONFIG_SCSI_DMA=y
# CONFIG_SCSI_MQ_DEFAULT is not set
CONFIG_SCSI_PROC_FS=y

#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=y
# CONFIG_CHR_DEV_ST is not set
# CONFIG_CHR_DEV_OSST is not set
CONFIG_BLK_DEV_SR=y
CONFIG_BLK_DEV_SR_VENDOR=y
CONFIG_CHR_DEV_SG=y
# CONFIG_CHR_DEV_SCH is not set
CONFIG_SCSI_CONSTANTS=y
# CONFIG_SCSI_LOGGING is not set
# CONFIG_SCSI_SCAN_ASYNC is not set

#
# SCSI Transports
#
CONFIG_SCSI_SPI_ATTRS=y
# CONFIG_SCSI_FC_ATTRS is not set
# CONFIG_SCSI_ISCSI_ATTRS is not set
# CONFIG_SCSI_SAS_ATTRS is not set
# CONFIG_SCSI_SAS_LIBSAS is not set
# CONFIG_SCSI_SRP_ATTRS is not set
# CONFIG_SCSI_LOWLEVEL is not set
# CONFIG_SCSI_DH is not set
# CONFIG_SCSI_OSD_INITIATOR is not set
CONFIG_ATA=y
CONFIG_ATA_VERBOSE_ERROR=y
CONFIG_ATA_ACPI=y
# CONFIG_SATA_ZPODD is not set
CONFIG_SATA_PMP=y

#
# Controllers with non-SFF native interface
#
CONFIG_SATA_AHCI=y
CONFIG_SATA_MOBILE_LPM_POLICY=0
# CONFIG_SATA_AHCI_PLATFORM is not set
# CONFIG_SATA_INIC162X is not set
# CONFIG_SATA_ACARD_AHCI is not set
# CONFIG_SATA_SIL24 is not set
CONFIG_ATA_SFF=y

#
# SFF controllers with custom DMA interface
#
# CONFIG_PDC_ADMA is not set
# CONFIG_SATA_QSTOR is not set
# CONFIG_SATA_SX4 is not set
CONFIG_ATA_BMDMA=y

#
# SATA SFF controllers with BMDMA
#
CONFIG_ATA_PIIX=y
# CONFIG_SATA_DWC is not set
CONFIG_SATA_MV=y
CONFIG_SATA_NV=y
# CONFIG_SATA_PROMISE is not set
CONFIG_SATA_SIL=y
# CONFIG_SATA_SIS is not set
# CONFIG_SATA_SVW is not set
# CONFIG_SATA_ULI is not set
CONFIG_SATA_VIA=y
# CONFIG_SATA_VITESSE is not set

#
# PATA SFF controllers with BMDMA
#
# CONFIG_PATA_ALI is not set
CONFIG_PATA_AMD=y
# CONFIG_PATA_ARTOP is not set
# CONFIG_PATA_ATIIXP is not set
# CONFIG_PATA_ATP867X is not set
# CONFIG_PATA_CMD64X is not set
# CONFIG_PATA_CYPRESS is not set
# CONFIG_PATA_EFAR is not set
# CONFIG_PATA_HPT366 is not set
# CONFIG_PATA_HPT37X is not set
# CONFIG_PATA_HPT3X2N is not set
# CONFIG_PATA_HPT3X3 is not set
# CONFIG_PATA_IT8213 is not set
# CONFIG_PATA_IT821X is not set
# CONFIG_PATA_JMICRON is not set
# CONFIG_PATA_MARVELL is not set
# CONFIG_PATA_NETCELL is not set
# CONFIG_PATA_NINJA32 is not set
# CONFIG_PATA_NS87415 is not set
CONFIG_PATA_OLDPIIX=y
# CONFIG_PATA_OPTIDMA is not set
# CONFIG_PATA_PDC2027X is not set
# CONFIG_PATA_PDC_OLD is not set
# CONFIG_PATA_RADISYS is not set
# CONFIG_PATA_RDC is not set
CONFIG_PATA_SCH=y
# CONFIG_PATA_SERVERWORKS is not set
# CONFIG_PATA_SIL680 is not set
# CONFIG_PATA_SIS is not set
# CONFIG_PATA_TOSHIBA is not set
# CONFIG_PATA_TRIFLEX is not set
# CONFIG_PATA_VIA is not set
# CONFIG_PATA_WINBOND is not set

#
# PIO-only SFF controllers
#
# CONFIG_PATA_CMD640_PCI is not set
CONFIG_PATA_MPIIX=m
# CONFIG_PATA_NS87410 is not set
# CONFIG_PATA_OPTI is not set
# CONFIG_PATA_RZ1000 is not set

#
# Generic fallback / legacy drivers
#
CONFIG_PATA_ACPI=m
# CONFIG_ATA_GENERIC is not set
# CONFIG_PATA_LEGACY is not set
# CONFIG_MD is not set
# CONFIG_TARGET_CORE is not set
# CONFIG_FUSION is not set


2) lspci
Code:
07:00.0 SATA controller: Marvell Technology Group Ltd. 88SE9172 SATA 6Gb/s Controller (rev 11) (prog-if 01 [AHCI 1.0])
        Subsystem: Gigabyte Technology Co., Ltd 88SE9172 SATA 6Gb/s Controller
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 32 bytes
        Interrupt: pin A routed to IRQ 25
        Region 0: I/O ports at c040 [size=8]
        Region 1: I/O ports at c030 [size=4]
        Region 2: I/O ports at c020 [size=8]
        Region 3: I/O ports at c010 [size=4]
        Region 4: I/O ports at c000 [size=16]
        Region 5: Memory at f7110000 (32-bit, non-prefetchable) [size=512]
        Expansion ROM at f7100000 [disabled] [size=64K]
        Capabilities: [40] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot+,D3cold-)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit-
                Address: fee08004  Data: 4021
        Capabilities: [70] Express (v2) Legacy Endpoint, MSI 00
                DevCap: MaxPayload 512 bytes, PhantFunc 0, Latency L0s <1us, L1 <8us
                        ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
                DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
                        RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop-
                        MaxPayload 128 bytes, MaxReadReq 512 bytes
                DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr- TransPend-
                LnkCap: Port #0, Speed 5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s <512ns, L1 <64us
                        ClockPM- Surprise- LLActRep- BwNot- ASPMOptComp-
                LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- CommClk-
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
                DevCap2: Completion Timeout: Not Supported, TimeoutDis+, LTR-, OBFF Not Supported
                         AtomicOpsCap: 32bit- 64bit- 128bitCAS-
                DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR-, OBFF Disabled
                         AtomicOpsCtl: ReqEn-
                LnkCtl2: Target Link Speed: 5GT/s, EnterCompliance- SpeedDis-
                         Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
                         Compliance De-emphasis: -6dB
                LnkSta2: Current De-emphasis Level: -6dB, EqualizationComplete-, EqualizationPhase1-
                         EqualizationPhase2-, EqualizationPhase3-, LinkEqualizationRequest-
        Capabilities: [100 v1] Advanced Error Reporting
                UESta:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
                UEMsk:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
                UESvrt: DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
                CESta:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr-
                CEMsk:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
                AERCap: First Error Pointer: 00, ECRCGenCap- ECRCGenEn- ECRCChkCap- ECRCChkEn-
                        MultHdrRecCap- MultHdrRecEn- TLPPfxPres- HdrLogCap-
                HeaderLog: 00000000 00000000 00000000 00000000
        Kernel driver in use: ahci


00:1f.2 SATA controller: Intel Corporation 7 Series/C210 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04) (prog-if 01 [AHCI 1.0])
        Subsystem: Gigabyte Technology Co., Ltd 7 Series/C210 Series Chipset Family 6-port SATA Controller [AHCI mode]
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Interrupt: pin B routed to IRQ 24
        Region 0: I/O ports at f070 [size=8]
        Region 1: I/O ports at f060 [size=4]
        Region 2: I/O ports at f050 [size=8]
        Region 3: I/O ports at f040 [size=4]
        Region 4: I/O ports at f020 [size=32]
        Region 5: Memory at f7416000 (32-bit, non-prefetchable) [size=2K]
        Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
                Address: fee04004  Data: 4021
        Capabilities: [70] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot+,D3cold-)
                Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [a8] SATA HBA v1.0 BAR4 Offset=00000004
        Capabilities: [b0] PCI Advanced Features
                AFCap: TP+ FLR+
                AFCtrl: FLR-
                AFStatus: TP-
        Kernel driver in use: ahci


Any idea? Will see about getting the kernel panic when try to boot the new drive in 6Gb/s port.
** UPDATE: Maybe flacky? Forgot I got pissed and wiped the new drive. So moved my Normal Gentoo 3Gb/s drive to the Intel Z77 Sata 6Gb/s port and has booted twice no problem. Have some more testing to do.
Maybe flacky cable? Or maybe the order the ports used. Just throwing stuff out cause don't make sense: I put the Normal Gentoo 3Gb/s drive in like mentioned in port closest to board. Then the Win7 in the other port. Still booted to Gentoo.
Then put the New actual 6Gb/s drive in port Win7 was in. And Normal Gentoo drive booted fine? Guess will put Gentoo on the new drive again and try this again.
_________________
Support bacteria – they’re the only culture some people have.”

– Steven Wright


Last edited by Decibels on Tue Dec 24, 2019 8:42 pm; edited 1 time in total
Back to top
View user's profile Send private message
gengreen
Tux's lil' helper
Tux's lil' helper


Joined: 23 Dec 2017
Posts: 123

PostPosted: Tue Dec 24, 2019 8:17 pm    Post subject: Reply with quote

Quote:
Please append a correct "root="" boot option: here are the available partitions


Can you give us your bootloader config (grub.cfg or whatever you use)

a fdisk -l /dev/sd* could be nice too
Back to top
View user's profile Send private message
Decibels
Veteran
Veteran


Joined: 16 Aug 2002
Posts: 1615
Location: U.S.A.

PostPosted: Tue Dec 24, 2019 8:41 pm    Post subject: Reply with quote

Partly correct.

Yes, looks like the New drive kernel panic problem has been a grub config issue.

Think cable might be issue with kernel panic when just plugged Win7 into the SATA 6Gb/s port. Cause have successfully booted my normal 3Gb/s Gentoo drive several times with Win7 and New drive in the 6Gb/s port and now even with the Gentoo 3Gb/s in the 6Gb/s port.

Have to fix the grub.cfg issue, edited it from grub command line and am actually on the New 6Gb/s WD Black in the 6Gb/s port (also the normal Gentoo drive is in the other 6Gb/s port).

Code:
 
DECIBELS ~ $  sudo hdparm -I /dev/sda | grep -i speed
           *    Gen1 signaling speed (1.5Gb/s)
           *    Gen2 signaling speed (3.0Gb/s)
DECIBELS ~ $  sudo hdparm -I /dev/sdb | grep -i speed
           *    Gen1 signaling speed (1.5Gb/s)
           *    Gen2 signaling speed (3.0Gb/s)
           *    Gen3 signaling speed (6.0Gb/s)
DECIBELS ~ $   dmesg | grep -i sata | grep 'link up'
[    0.583224] ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    0.583939] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    0.584624] ata5: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    0.753226] ata8: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[    0.754165] ata7: SATA link up 1.5 Gbps (SStatus 113 SControl 300)


So have gotten past the kernel panic, afraid to touch the cables at the moment. Will fix the grub.cfg issue here shortly.
By the way, Thanks for your help.
_________________
Support bacteria – they’re the only culture some people have.”

– Steven Wright
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44945
Location: 56N 3W

PostPosted: Tue Dec 24, 2019 9:22 pm    Post subject: Reply with quote

Decibels,

What does
Code:
$ grep EFI /usr/src/linux/.config
tell about
Code:
CONFIG_EFI_PARTITION=y


sda only appears to have a single partition
Code:
0800           244198584 sda
   driver: sd
    0801               244196001 sda1 f90e8dfb-01
which is of type MSDOS.
That's what it would look like if GPT was in use.
Without kernel support, the EFI partition table would be invisible.

-- edit --

Moving things around will reorder drive letters. Don't use root=/devsda2 use root=PARTUUID=...
blkid will tell you the PARTUUIDs. That makes root device discovery order independent.

It gets worse. This make a pigs ear of tstab, so don't use /dev/sd... entries there either.
Both PARTUUID and filesystem UUID work there.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Decibels
Veteran
Veteran


Joined: 16 Aug 2002
Posts: 1615
Location: U.S.A.

PostPosted: Tue Dec 24, 2019 9:41 pm    Post subject: Reply with quote

Hey what's up. Just getting ready to reboot after messing with grub.
Code:
$  grep EFI /usr/src/linux/.config
# CONFIG_EFI is not set
CONFIG_DMI_SCAN_MACHINE_NON_EFI_FALLBACK=y
CONFIG_EFI_PARTITION=y


No the actual sda has 6 partitions. I do have a couple external drives (large), if remember correctly used GPT on one of them that was several Tb.
I believe you mean the msdos in grub.cfg? msdos1

Quote:
Moving things around will reorder drive letters. Don't use root=/devsda2 use root=PARTUUID=...
blkid will tell you the PARTUUIDs. That makes root device discovery order independent.

It gets worse. This make a pigs ear of tstab, so don't use /dev/sd... entries there either.
Both PARTUUID and filesystem UUID work there.


Yes, going to look into that. I usually leave things pretty static. Just wanted to put Gentoo on my newer Gaming system. Even though has Win10 and SteamVR isn't working great for Linux, keeping the hope up.
So will be looking into editing the fstab for uuid. I do have one external drive setup that way. But will probably do the rest.
Thanks!!
_________________
Support bacteria – they’re the only culture some people have.”

– Steven Wright


Last edited by Decibels on Wed Dec 25, 2019 3:44 pm; edited 1 time in total
Back to top
View user's profile Send private message
Decibels
Veteran
Veteran


Joined: 16 Aug 2002
Posts: 1615
Location: U.S.A.

PostPosted: Tue Dec 24, 2019 10:13 pm    Post subject: Reply with quote

Thanks guys, all good now. Have booted the old Gentoo on the 6Gb/s port and the new Gentoo on the other.
Changing the fstab over to PARTUUID. Now that I can 'boot' to either. Need to setup the new drive for the Gaming system MB.

Again: THANKS!
_________________
Support bacteria – they’re the only culture some people have.”

– Steven Wright
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum