linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* SATA: "unknown partition table" error, fdisk can't fix, works in 2.6.13
@ 2006-09-29 20:11 Timur Tabi
  2006-09-29 20:20 ` Chris Boot
  2006-09-29 20:20 ` Olof Johansson
  0 siblings, 2 replies; 4+ messages in thread
From: Timur Tabi @ 2006-09-29 20:11 UTC (permalink / raw)
  To: linux-kernel, linuxppc-dev

I have a SATA drive attached to a PowerPC 8349E board, using the SIL 3114 controller.  I'm running the latest code from Paul Mackerras (PowerPC maintainer) (2.6.18-blabla).

I'm experiencing a number of I/O errors with the SATA drive.  fdisk can see the partition table, but when I issue the "w" command, I get this output:

Calling ioctl() to re-read partition table.
SCSI device sda: 321672960 512-byte hdwr sectors (164697 MB)
sda: Write Protect is off
SCSI device sda: drive cache: write back
  sda: unknown partition table
SCSI device sda: 321672960 512-byte hdwr sectors (164697 MB)
sda: Write Protect is off
SCSI device sda: drive cache: write back
  sda: unknown partition table
Syncing disks.

I cannot mount any partitions.  On boot, I see this:

sata_sil 0000:00:10.0: Applying R_ERR on DMA activate FIS errata fix
ata1: SATA max UDMA/100 cmd 0xD100E080 ctl 0xD100E08A bmdma 0xD100E000 irq 22
ata2: SATA max UDMA/100 cmd 0xD100E0C0 ctl 0xD100E0CA bmdma 0xD100E008 irq 22
ata3: SATA max UDMA/100 cmd 0xD100E280 ctl 0xD100E28A bmdma 0xD100E200 irq 22
ata4: SATA max UDMA/100 cmd 0xD100E2C0 ctl 0xD100E2CA bmdma 0xD100E208 irq 22
scsi0 : sata_sil
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
ata1.00: ATA-7, max UDMA/133, 321672960 sectors: LBA48 NCQ (depth 0/32)
ata1.00: ata1: dev 0 multi count 0
ata1.00: configured for UDMA/100
scsi1 : sata_sil
ata2: SATA link down (SStatus 0 SControl 310)
scsi2 : sata_sil
ata3: SATA link down (SStatus 0 SControl 310)
scsi3 : sata_sil
ata4: SATA link down (SStatus 0 SControl 310)
scsi 0:0:0:0: Direct-Access     ATA      HDT722516DLA380  V43O PQ: 0 ANSI: 5
SCSI device sda: 321672960 512-byte hdwr sectors (164697 MB)
sda: Write Protect is off
SCSI device sda: drive cache: write back
SCSI device sda: 321672960 512-byte hdwr sectors (164697 MB)
sda: Write Protect is off
SCSI device sda: drive cache: write back
  sda: unknown partition table
sd 0:0:0:0: Attached scsi disk sda
sd 0:0:0:0: Attached scsi generic sg0 type 0

The odd thing is that this works in 2.6.13, so something is broken.  I don't know if it's a bug in the sata_sil driver, or a configuration issue.  Can anyone help?

-- 
Timur Tabi
Linux Kernel Developer @ Freescale

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: SATA: "unknown partition table" error, fdisk can't fix, works in 2.6.13
  2006-09-29 20:11 SATA: "unknown partition table" error, fdisk can't fix, works in 2.6.13 Timur Tabi
@ 2006-09-29 20:20 ` Chris Boot
  2006-09-29 20:29   ` Timur Tabi
  2006-09-29 20:20 ` Olof Johansson
  1 sibling, 1 reply; 4+ messages in thread
From: Chris Boot @ 2006-09-29 20:20 UTC (permalink / raw)
  To: Timur Tabi; +Cc: linuxppc-dev, linux-kernel

Timur,

fdisk manipulates DOS-style partition maps. Have you compiled these  
into your latest kernel? You don't actually have any errors in the  
below messages, other than the partition map being unreadable...

Chris

On 29 Sep 2006, at 21:11, Timur Tabi wrote:

> I have a SATA drive attached to a PowerPC 8349E board, using the  
> SIL 3114 controller.  I'm running the latest code from Paul  
> Mackerras (PowerPC maintainer) (2.6.18-blabla).
>
> I'm experiencing a number of I/O errors with the SATA drive.  fdisk  
> can see the partition table, but when I issue the "w" command, I  
> get this output:
>
> Calling ioctl() to re-read partition table.
> SCSI device sda: 321672960 512-byte hdwr sectors (164697 MB)
> sda: Write Protect is off
> SCSI device sda: drive cache: write back
>  sda: unknown partition table
> SCSI device sda: 321672960 512-byte hdwr sectors (164697 MB)
> sda: Write Protect is off
> SCSI device sda: drive cache: write back
>  sda: unknown partition table
> Syncing disks.
>
> I cannot mount any partitions.  On boot, I see this:
>
> sata_sil 0000:00:10.0: Applying R_ERR on DMA activate FIS errata fix
> ata1: SATA max UDMA/100 cmd 0xD100E080 ctl 0xD100E08A bmdma  
> 0xD100E000 irq 22
> ata2: SATA max UDMA/100 cmd 0xD100E0C0 ctl 0xD100E0CA bmdma  
> 0xD100E008 irq 22
> ata3: SATA max UDMA/100 cmd 0xD100E280 ctl 0xD100E28A bmdma  
> 0xD100E200 irq 22
> ata4: SATA max UDMA/100 cmd 0xD100E2C0 ctl 0xD100E2CA bmdma  
> 0xD100E208 irq 22
> scsi0 : sata_sil
> ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
> ata1.00: ATA-7, max UDMA/133, 321672960 sectors: LBA48 NCQ (depth  
> 0/32)
> ata1.00: ata1: dev 0 multi count 0
> ata1.00: configured for UDMA/100
> scsi1 : sata_sil
> ata2: SATA link down (SStatus 0 SControl 310)
> scsi2 : sata_sil
> ata3: SATA link down (SStatus 0 SControl 310)
> scsi3 : sata_sil
> ata4: SATA link down (SStatus 0 SControl 310)
> scsi 0:0:0:0: Direct-Access     ATA      HDT722516DLA380  V43O PQ:  
> 0 ANSI: 5
> SCSI device sda: 321672960 512-byte hdwr sectors (164697 MB)
> sda: Write Protect is off
> SCSI device sda: drive cache: write back
> SCSI device sda: 321672960 512-byte hdwr sectors (164697 MB)
> sda: Write Protect is off
> SCSI device sda: drive cache: write back
>  sda: unknown partition table
> sd 0:0:0:0: Attached scsi disk sda
> sd 0:0:0:0: Attached scsi generic sg0 type 0
>
> The odd thing is that this works in 2.6.13, so something is  
> broken.  I don't know if it's a bug in the sata_sil driver, or a  
> configuration issue.  Can anyone help?
>
> -- 
> Timur Tabi
> Linux Kernel Developer @ Freescale
> -
> To unsubscribe from this list: send the line "unsubscribe linux- 
> kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

-- 
Chris Boot
bootc@bootc.net
http://www.bootc.net/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: SATA: "unknown partition table" error, fdisk can't fix, works in 2.6.13
  2006-09-29 20:11 SATA: "unknown partition table" error, fdisk can't fix, works in 2.6.13 Timur Tabi
  2006-09-29 20:20 ` Chris Boot
@ 2006-09-29 20:20 ` Olof Johansson
  1 sibling, 0 replies; 4+ messages in thread
From: Olof Johansson @ 2006-09-29 20:20 UTC (permalink / raw)
  To: Timur Tabi; +Cc: linuxppc-dev, linux-kernel

On Fri, 29 Sep 2006 15:11:20 -0500 Timur Tabi <timur@freescale.com> wrote:

> I have a SATA drive attached to a PowerPC 8349E board, using the SIL 3114 controller.  I'm running the latest code from Paul Mackerras (PowerPC maintainer) (2.6.18-blabla).
> 
> I'm experiencing a number of I/O errors with the SATA drive.  fdisk can see the partition table, but when I issue the "w" command, I get this output:
> 
> The odd thing is that this works in 2.6.13, so something is broken.  I don't know if it's a bug in the sata_sil driver, or a configuration issue.  Can anyone help?
> 

Do you use MSDOS or MAC partition (or other) type? Make sure you have
the one you use in the config.

It looks like the arch/powerpc/configs/mpc83* defconfigs enable neither.


-Olof

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: SATA: "unknown partition table" error, fdisk can't fix, works in 2.6.13
  2006-09-29 20:20 ` Chris Boot
@ 2006-09-29 20:29   ` Timur Tabi
  0 siblings, 0 replies; 4+ messages in thread
From: Timur Tabi @ 2006-09-29 20:29 UTC (permalink / raw)
  To: Chris Boot; +Cc: linuxppc-dev, linux-kernel

Chris Boot wrote:
> Timur,
> 
> fdisk manipulates DOS-style partition maps. Have you compiled these into 
> your latest kernel? You don't actually have any errors in the below 
> messages, other than the partition map being unreadable...

Yes, that was it!  Thank you very much.  All I had to do was select "PC BIOS (MSDOS partition tables) support" configuration option, and that was it.

-- 
Timur Tabi
Linux Kernel Developer @ Freescale

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-09-29 20:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-29 20:11 SATA: "unknown partition table" error, fdisk can't fix, works in 2.6.13 Timur Tabi
2006-09-29 20:20 ` Chris Boot
2006-09-29 20:29   ` Timur Tabi
2006-09-29 20:20 ` Olof Johansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).