The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Gregor Radtke <mail@g-radtke.name>
To: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: linux-kernel@vger.kernel.org, Tim Kunschke <beatmeistah@web.de>
Subject: Re: pata_cs5536 hangs on boot with hdd attached
Date: Sun, 10 Feb 2008 18:00:29 +0100	[thread overview]
Message-ID: <1202662829.6418.8.camel@desktop.ein-elch.local> (raw)
In-Reply-To: <yq163x47wsy.fsf@sermon.lab.mkp.net>

[-- Attachment #1: Type: text/plain, Size: 5502 bytes --]

Am Dienstag, den 05.02.2008, 01:16 -0500 schrieb Martin K. Petersen: 
> Try booting your pata_cs5536 kernel with libata.dma=0

hmm.. boots perfectly, of course somewhat slow.
dmesg output:

[   26.728891] Driver 'sd' needs updating - please use bus_type methods
[   26.748371] scsi0 : pata_cs5536
[   26.758052] scsi1 : pata_cs5536
[   26.767672] ata1: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0xff00
irq 14
[   26.788551] ata2: DUMMY
[   26.975641] ata1.00: CFA: SanDisk SDCFH-1024, HDX 4.04, max MWDMA2
[   26.994194] ata1.00: 2001888 sectors, multi 0: LBA
[   27.011257] ata1.01: ATA-8: SAMSUNG HM160HC, LQ100-10, max UDMA/100
[   27.030069] ata1.01: 312581808 sectors, multi 0: LBA48
[   27.045774] ata1.01: limited to UDMA/33 due to 40-wire cable
[   27.063457] ata1.00: configured for PIO4
[   27.116887] ata1.01: configured for PIO4
[   27.128995] scsi 0:0:0:0: Direct-Access     ATA      SanDisk SDCFH-10
HDX  PQ: 0 ANSI: 5
[   27.153703] sd 0:0:0:0: [sda] 2001888 512-byte hardware sectors (1025
MB)
[   27.174096] sd 0:0:0:0: [sda] Write Protect is off
[   27.188485] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[   27.188561] sd 0:0:0:0: [sda] Write cache: disabled, read cache:
enabled, doesn't support DPO or FUA
[   27.216134] sd 0:0:0:0: [sda] 2001888 512-byte hardware sectors (1025
MB)
[   27.236528] sd 0:0:0:0: [sda] Write Protect is off
[   27.250894] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[   27.250968] sd 0:0:0:0: [sda] Write cache: disabled, read cache:
enabled, doesn't support DPO or FUA
[   27.278351]  sda: sda1
[   27.288400] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   27.305230] scsi 0:0:1:0: Direct-Access     ATA      SAMSUNG HM160HC
LQ10 PQ: 0 ANSI: 5
[   27.329903] sd 0:0:1:0: [sdb] 312581808 512-byte hardware sectors
(160042 MB)
[   27.351336] sd 0:0:1:0: [sdb] Write Protect is off
[   27.365720] sd 0:0:1:0: [sdb] Mode Sense: 00 3a 00 00
[   27.365795] sd 0:0:1:0: [sdb] Write cache: enabled, read cache:
enabled, doesn't support DPO or FUA
[   27.393050] sd 0:0:1:0: [sdb] 312581808 512-byte hardware sectors
(160042 MB)
[   27.414491] sd 0:0:1:0: [sdb] Write Protect is off
[   27.428862] sd 0:0:1:0: [sdb] Mode Sense: 00 3a 00 00
[   27.428935] sd 0:0:1:0: [sdb] Write cache: enabled, read cache:
enabled, doesn't support DPO or FUA
[   27.456050]  sdb: sdb1 < sdb5 sdb6 sdb7 >
[   28.083349] sd 0:0:1:0: [sdb] Attached SCSI disk

> 
> I also suggest you try a kernel with pata_amd compiled in instead of
> pata_cs5536.  Slight timings aside there shouldn't be any functional
> difference between the way the two drivers configure things.  But let
> us know how that goes.  And include the diff of the relevant portion
> of the boot logs.

that works, too, and even better than pata_cs5536 with libata.dma=0 -
because dma works :)

dmesg output:
[   14.365798] Driver 'sd' needs updating - please use bus_type methods
[   14.385071] pata_amd 0000:00:0f.2: version 0.3.10
[   14.385352] scsi0 : pata_amd
[   14.394242] scsi1 : pata_amd
[   14.403081] ata1: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0xff00
irq 14
[   14.423967] ata2: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0xff08
irq 15
[   14.619249] ata1.00: CFA: SanDisk SDCFH-1024, HDX 4.04, max MWDMA2
[   14.637795] ata1.00: 2001888 sectors, multi 0: LBA
[   14.654317] ata1.01: ATA-8: SAMSUNG HM160HC, LQ100-10, max UDMA/100
[   14.673119] ata1.01: 312581808 sectors, multi 0: LBA48
[   14.688830] ata1.01: limited to UDMA/33 due to 40-wire cable
[   14.706587] ata1.00: configured for MWDMA2
[   14.760432] ata1.01: configured for UDMA/33
[   14.773092] ata2: port disabled. ignoring.
[   14.773427] scsi 0:0:0:0: Direct-Access     ATA      SanDisk SDCFH-10
HDX  PQ: 0 ANSI: 5
[   14.798135] sd 0:0:0:0: [sda] 2001888 512-byte hardware sectors (1025
MB)
[   14.818530] sd 0:0:0:0: [sda] Write Protect is off
[   14.832914] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[   14.832990] sd 0:0:0:0: [sda] Write cache: disabled, read cache:
enabled, doesn't support DPO or FUA
[   14.860562] sd 0:0:0:0: [sda] 2001888 512-byte hardware sectors (1025
MB)
[   14.880958] sd 0:0:0:0: [sda] Write Protect is off
[   14.895327] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[   14.895400] sd 0:0:0:0: [sda] Write cache: disabled, read cache:
enabled, doesn't support DPO or FUA
[   14.922781]  sda: sda1
[   14.931057] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   14.947893] scsi 0:0:1:0: Direct-Access     ATA      SAMSUNG HM160HC
LQ10 PQ: 0 ANSI: 5
[   14.972560] sd 0:0:1:0: [sdb] 312581808 512-byte hardware sectors
(160042 MB)
[   14.993998] sd 0:0:1:0: [sdb] Write Protect is off
[   15.008384] sd 0:0:1:0: [sdb] Mode Sense: 00 3a 00 00
[   15.008459] sd 0:0:1:0: [sdb] Write cache: enabled, read cache:
enabled, doesn't support DPO or FUA
[   15.035725] sd 0:0:1:0: [sdb] 312581808 512-byte hardware sectors
(160042 MB)
[   15.057154] sd 0:0:1:0: [sdb] Write Protect is off
[   15.071527] sd 0:0:1:0: [sdb] Mode Sense: 00 3a 00 00
[   15.071599] sd 0:0:1:0: [sdb] Write cache: enabled, read cache:
enabled, doesn't support DPO or FUA
[   15.098715]  sdb: sdb1 < sdb5 sdb6 sdb7 >
[   15.717582] sd 0:0:1:0: [sdb] Attached SCSI disk

> 
> Finally - which drive is it?
> 

tested with two different drives:
Hitachi Travelstar IC25N060ATMR04-0
and
SAMSUNG HM160HC

-- 
Jabber: elch@ein-elch.de        PGP: 0x63FC728D
Tel: 0170/238 30 53    http://www.g-radtke.name


[-- Attachment #2: Dies ist ein digital signierter Nachrichtenteil --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2008-02-10 17:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-04 21:00 pata_cs5536 hangs on boot with hdd attached Gregor Radtke
2008-02-05  6:16 ` Martin K. Petersen
2008-02-10 17:00   ` Gregor Radtke [this message]
2008-02-12 14:37     ` [PATCH] pata_cs5536 Fix secondary port configuration Martin K. Petersen
2008-02-12 23:17       ` Gregor Radtke
2008-02-13  7:12         ` Martin K. Petersen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1202662829.6418.8.camel@desktop.ein-elch.local \
    --to=mail@g-radtke.name \
    --cc=beatmeistah@web.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox