public inbox for linux-ide@vger.kernel.org
 help / color / mirror / Atom feed
From: Jarkko Nikula <jarkko.nikula@linux.intel.com>
To: Christoph Hellwig <hch@lst.de>
Cc: linux-ide@vger.kernel.org, linux-kernel <linux-kernel@vger.kernel.org>
Subject: Regression with 0b9e2988ab22 ("ahci: use pci_alloc_irq_vectors")
Date: Fri, 21 Oct 2016 16:09:48 +0300	[thread overview]
Message-ID: <9d293889-3215-403b-bdf9-c24b684f18f0@linux.intel.com> (raw)

Hi

SATA stopped working on Intel SoCs that have single SATA port after 
v4.9-rc1:

[    8.705008] ata1.00: qc timeout (cmd 0x27)
[    8.709164] ata1.00: failed to read native max address (err_mask=0x4)
[    8.715557] ata1.00: HPA support seems broken, skipping HPA handling
[    9.029754] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[   14.337028] ata1.00: qc timeout (cmd 0xef)
[   14.341185] ata1.00: failed to enable AA (error_mask=0x4)
[   14.346557] ata1: limiting SATA link speed to 3.0 Gbps
[   14.666922] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[   14.684359] ata1.00: ATA-9: INTEL SSDSC2BW240A4, DC32, max UDMA/133
[   14.690650] ata1.00: 468862128 sectors, multi 16: LBA48 NCQ (depth 31/32)
[   19.969116] ata1.00: qc timeout (cmd 0x47)
[   19.973307] ata1.00: READ LOG DMA EXT failed, trying unqueued
[   19.979026] ata1.00: failed to set xfermode (err_mask=0x40)
[   19.984559] ata1.00: disabled
[   19.987527] ata1: hard resetting link
[   20.306943] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[   20.313163] ata1: EH complete

I bisected this into commit 0b9e2988ab22 ("ahci: use 
pci_alloc_irq_vectors").

I did some debugging on a few machines (Skylake, Broxton, Kaby Lake and 
Bay Trail based) in our lab.

Before 0b9e2988ab22:
- All of those machines are using MSI for AHCI
- Number of SATA ports 1-4
- pci_msi_vec_count() returns 1 for all machines

After 0b9e2988ab22:
- SATA stopped working on machines with single port:
   * pci_alloc_irq_vectors() returns 1
   * Allocates the same MSI irq number as before but handler name
     is (null)
- With >1 ports AHCI defaults now to IO-APIC but continues working
   * pci_alloc_irq_vectors() returns -EINVAL from
     __pci_enable_msi_range() due if (nvec < minvec) test.

-- 
Jarkko

             reply	other threads:[~2016-10-21 13:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-21 13:09 Jarkko Nikula [this message]
2016-10-21 13:27 ` Regression with 0b9e2988ab22 ("ahci: use pci_alloc_irq_vectors") Christoph Hellwig
2016-10-21 14:05   ` Jarkko Nikula

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=9d293889-3215-403b-bdf9-c24b684f18f0@linux.intel.com \
    --to=jarkko.nikula@linux.intel.com \
    --cc=hch@lst.de \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /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