All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tejun Heo <htejun@gmail.com>
To: Lin Mac <mkl0301@gmail.com>
Cc: cbouatmailru@gmail.com, linux-arm-kernel@lists.infradead.org,
	jgarzik@pobox.com, linux-ide@vger.kernel.org
Subject: Re: Cannot detect SATA disks w/ CONFIG_SATA_PMP w/o actually using SATA multiplier
Date: Tue, 30 Nov 2010 15:08:52 +0100	[thread overview]
Message-ID: <4CF50574.6000706@gmail.com> (raw)
In-Reply-To: <AANLkTi=kbTcq3hYBiDzGcAb02Ppwb1QEcs12-1W_T=LG@mail.gmail.com>

On 11/30/2010 05:02 AM, Lin Mac wrote:
> Hi,
> 
> I found that if I enabled CONFIG_SATA_PMP while not using multiplier
> and connect the disks directly to the board, the disk cannot be found
> due to software reset always failed.
> 
> With arm/cns3xxx
> linux-2.6.37-rc3
> ahci-platform driver
> 
> # modprobe ahci-platform
> [   12.790000] ahci ahci.0: forcing PORTS_IMPL to 0x3
> [   12.800000] ahci ahci.0: AHCI 0001.0100 32 slots 2 ports 3 Gbps 0x3
> impl platform mode
> [   12.810000] ahci ahci.0: flags: ncq sntf pm led clo only pmp pio
> slum part ccc
> [   12.850000] scsi0 : ahci_platform
> [   12.860000] scsi1 : ahci_platform
> [   12.870000] ata1: SATA max UDMA/133 irq_stat 0x00400040, connection
> status changed irq 65
> [   12.880000] ata2: SATA max UDMA/133 mmio [mem
> 0x83000000-0x83ffffff] port 0x180 irq 65
> [   13.240000] ata2: SATA link down (SStatus 0 SControl 300)
> [   18.900000] ata1: link is slow to respond, please be patient (ready=0)
> [   22.930000] ata1: softreset failed (device not ready)
> [   28.940000] ata1: link is slow to respond, please be patient (ready=0)
> [   32.970000] ata1: softreset failed (device not ready)
> [   38.980000] ata1: link is slow to respond, please be patient (ready=0)
> [   68.030000] ata1: softreset failed (device not ready)
> [   68.040000] ata1: limiting SATA link speed to 1.5 Gbps
> [   70.280000] ata1: SATA link down (SStatus 1 SControl 310)
> 
> With some debug, ahci_check_ready always get PORT_TFDATA(20)=0x1d0
> 
> While using multiplier with CONFIG_SATA_PMP enabled, or using disks
> directly without CONFIG_SATA_PMP have no issue.
> After some googling, it seems common and the only fix is to disable
> CONFIG_SATA_PMP.
> So, before I keep on going, I would like to know whether this is a
> limitation, or a bug?

Most likely a quirk in the controller.  Maybe we should disable PMP
support for it?

-- 
tejun

WARNING: multiple messages have this Message-ID (diff)
From: htejun@gmail.com (Tejun Heo)
To: linux-arm-kernel@lists.infradead.org
Subject: Cannot detect SATA disks w/ CONFIG_SATA_PMP w/o actually using SATA multiplier
Date: Tue, 30 Nov 2010 15:08:52 +0100	[thread overview]
Message-ID: <4CF50574.6000706@gmail.com> (raw)
In-Reply-To: <AANLkTi=kbTcq3hYBiDzGcAb02Ppwb1QEcs12-1W_T=LG@mail.gmail.com>

On 11/30/2010 05:02 AM, Lin Mac wrote:
> Hi,
> 
> I found that if I enabled CONFIG_SATA_PMP while not using multiplier
> and connect the disks directly to the board, the disk cannot be found
> due to software reset always failed.
> 
> With arm/cns3xxx
> linux-2.6.37-rc3
> ahci-platform driver
> 
> # modprobe ahci-platform
> [   12.790000] ahci ahci.0: forcing PORTS_IMPL to 0x3
> [   12.800000] ahci ahci.0: AHCI 0001.0100 32 slots 2 ports 3 Gbps 0x3
> impl platform mode
> [   12.810000] ahci ahci.0: flags: ncq sntf pm led clo only pmp pio
> slum part ccc
> [   12.850000] scsi0 : ahci_platform
> [   12.860000] scsi1 : ahci_platform
> [   12.870000] ata1: SATA max UDMA/133 irq_stat 0x00400040, connection
> status changed irq 65
> [   12.880000] ata2: SATA max UDMA/133 mmio [mem
> 0x83000000-0x83ffffff] port 0x180 irq 65
> [   13.240000] ata2: SATA link down (SStatus 0 SControl 300)
> [   18.900000] ata1: link is slow to respond, please be patient (ready=0)
> [   22.930000] ata1: softreset failed (device not ready)
> [   28.940000] ata1: link is slow to respond, please be patient (ready=0)
> [   32.970000] ata1: softreset failed (device not ready)
> [   38.980000] ata1: link is slow to respond, please be patient (ready=0)
> [   68.030000] ata1: softreset failed (device not ready)
> [   68.040000] ata1: limiting SATA link speed to 1.5 Gbps
> [   70.280000] ata1: SATA link down (SStatus 1 SControl 310)
> 
> With some debug, ahci_check_ready always get PORT_TFDATA(20)=0x1d0
> 
> While using multiplier with CONFIG_SATA_PMP enabled, or using disks
> directly without CONFIG_SATA_PMP have no issue.
> After some googling, it seems common and the only fix is to disable
> CONFIG_SATA_PMP.
> So, before I keep on going, I would like to know whether this is a
> limitation, or a bug?

Most likely a quirk in the controller.  Maybe we should disable PMP
support for it?

-- 
tejun

  reply	other threads:[~2010-11-30 14:08 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-30  4:02 Cannot detect SATA disks w/ CONFIG_SATA_PMP w/o actually using SATA multiplier Lin Mac
2010-11-30  4:02 ` Lin Mac
2010-11-30 14:08 ` Tejun Heo [this message]
2010-11-30 14:08   ` Tejun Heo
2010-11-30 17:46   ` Lin Mac
2010-11-30 17:46     ` Lin Mac
2010-11-30 19:49     ` Tejun Heo
2010-11-30 19:49       ` Tejun Heo
2010-12-01  5:53       ` Lin Mac
2010-12-01  5:53         ` Lin Mac
2010-12-01  9:45         ` Tejun Heo
2010-12-01  9:45           ` Tejun Heo
2010-12-02 10:23       ` Lin Mac
2010-12-02 10:23         ` Lin Mac
2010-12-02 10:31         ` Tejun Heo
2010-12-02 10:31           ` Tejun Heo
2010-12-04 17:07           ` Lin Mac
2010-12-04 17:07             ` Lin Mac

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=4CF50574.6000706@gmail.com \
    --to=htejun@gmail.com \
    --cc=cbouatmailru@gmail.com \
    --cc=jgarzik@pobox.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-ide@vger.kernel.org \
    --cc=mkl0301@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.