<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux.git/drivers/ata, branch v4.9-rc3</title>
<subtitle>Linux kernel source tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/'/>
<entry>
<title>ahci: fix the single MSI-X case in ahci_init_one</title>
<updated>2016-10-25T15:43:07+00:00</updated>
<author>
<name>Christoph Hellwig</name>
<email>hch@lst.de</email>
</author>
<published>2016-10-25T12:04:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=0ce57f8af1782fd12d3a81872a4ab97244989802'/>
<id>0ce57f8af1782fd12d3a81872a4ab97244989802</id>
<content type='text'>
We need to make sure hpriv-&gt;irq is set properly if we don't use per-port
vectors, so switch from blindly assigning pdev-&gt;irq to using
pci_irq_vector, which handles all interrupt types correctly.

Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Reported-by: Robert Richter &lt;robert.richter@cavium.com&gt;
Tested-by: Robert Richter &lt;robert.richter@cavium.com&gt;
Tested-by: David Daney &lt;ddaney.cavm@gmail.com&gt;
Fixes: 0b9e2988ab22 ("ahci: use pci_alloc_irq_vectors")
Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We need to make sure hpriv-&gt;irq is set properly if we don't use per-port
vectors, so switch from blindly assigning pdev-&gt;irq to using
pci_irq_vector, which handles all interrupt types correctly.

Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Reported-by: Robert Richter &lt;robert.richter@cavium.com&gt;
Tested-by: Robert Richter &lt;robert.richter@cavium.com&gt;
Tested-by: David Daney &lt;ddaney.cavm@gmail.com&gt;
Fixes: 0b9e2988ab22 ("ahci: use pci_alloc_irq_vectors")
Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ahci: fix nvec check</title>
<updated>2016-10-20T17:40:14+00:00</updated>
<author>
<name>Christoph Hellwig</name>
<email>hch@lst.de</email>
</author>
<published>2016-10-20T15:15:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=a478b097474cd9f2268ab1beaca74ff09e652b9b'/>
<id>a478b097474cd9f2268ab1beaca74ff09e652b9b</id>
<content type='text'>
commit 17a51f12 ("ahci: only try to use multi-MSI mode if there is more
than 1 port") lead to a case where nvec isn't initialized before it's
used.  Fix this by moving the check into the n_ports conditional.

Reported-and-reviewed-by Colin Ian King &lt;colin.king@canonical.com&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 17a51f12 ("ahci: only try to use multi-MSI mode if there is more
than 1 port") lead to a case where nvec isn't initialized before it's
used.  Fix this by moving the check into the n_ports conditional.

Reported-and-reviewed-by Colin Ian King &lt;colin.king@canonical.com&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ahci: only try to use multi-MSI mode if there is more than 1 port</title>
<updated>2016-10-19T17:18:16+00:00</updated>
<author>
<name>Christoph Hellwig</name>
<email>hch@lst.de</email>
</author>
<published>2016-10-18T07:00:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=17a51f12cfbd2814fd35966a069b242569c53e27'/>
<id>17a51f12cfbd2814fd35966a069b242569c53e27</id>
<content type='text'>
We should only try to allocate multiple MSI or MSI-X vectors if the device
actually has multiple ports.  Otherwise pci_alloc_irq_vectors will return
a single vector due to n_ports = 1, in which case we shouldn't set the
AHCI_HFLAG_MULTI_MSI flag.

Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Fixes: 0b9e2988 ("ahci: use pci_alloc_irq_vectors")
Reported-by: Emmanuel Benisty &lt;benisty.e@gmail.com&gt;
Tested-by: Emmanuel Benisty &lt;benisty.e@gmail.com&gt;
Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We should only try to allocate multiple MSI or MSI-X vectors if the device
actually has multiple ports.  Otherwise pci_alloc_irq_vectors will return
a single vector due to n_ports = 1, in which case we shouldn't set the
AHCI_HFLAG_MULTI_MSI flag.

Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Fixes: 0b9e2988 ("ahci: use pci_alloc_irq_vectors")
Reported-by: Emmanuel Benisty &lt;benisty.e@gmail.com&gt;
Tested-by: Emmanuel Benisty &lt;benisty.e@gmail.com&gt;
Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ahci: qoriq: Revert "ahci: qoriq: Disable NCQ on ls2080a SoC"</title>
<updated>2016-09-30T08:28:51+00:00</updated>
<author>
<name>Tang Yuantian</name>
<email>Yuantian.Tang@nxp.com</email>
</author>
<published>2016-09-30T06:13:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=1ce788d24268a33513d832d9030ceab93f1c2ce2'/>
<id>1ce788d24268a33513d832d9030ceab93f1c2ce2</id>
<content type='text'>
This reverts commit 640847298e2b7f19 ("ahci: qoriq: Disable NCQ
on ls2080a SoC")

The erratum has been fixed in ls2080a v2.0 and later soc.
In reality, customer will not get any ls2080a v1.0 soc. Neither apply
to any products. So reverting this commit won't create any side effect.

Blacklisting v2.0 could also be a option, but that needs to check the
soc version which is not suitable in the driver.

Signed-off-by: Tang Yuantian &lt;yuantian.tang@nxp.com&gt;
Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 640847298e2b7f19 ("ahci: qoriq: Disable NCQ
on ls2080a SoC")

The erratum has been fixed in ls2080a v2.0 and later soc.
In reality, customer will not get any ls2080a v1.0 soc. Neither apply
to any products. So reverting this commit won't create any side effect.

Blacklisting v2.0 could also be a option, but that needs to check the
soc version which is not suitable in the driver.

Signed-off-by: Tang Yuantian &lt;yuantian.tang@nxp.com&gt;
Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>pata_at91: Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR</title>
<updated>2016-09-22T15:48:46+00:00</updated>
<author>
<name>Harman Kalra</name>
<email>harman4linux@gmail.com</email>
</author>
<published>2016-09-21T19:48:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=70a19b7e406da9dc5cea20fedba443374a5cae70'/>
<id>70a19b7e406da9dc5cea20fedba443374a5cae70</id>
<content type='text'>
Signed-off-by: Harman Kalra &lt;harman4linux@gmail.com&gt;
Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Harman Kalra &lt;harman4linux@gmail.com&gt;
Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ata: Replace BUG() with BUG_ON().</title>
<updated>2016-09-22T15:46:52+00:00</updated>
<author>
<name>Harman Kalra</name>
<email>harman4linux@gmail.com</email>
</author>
<published>2016-09-21T19:59:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=02d9d3cbac53bd59fe18fc32adc7bc7cde1037ae'/>
<id>02d9d3cbac53bd59fe18fc32adc7bc7cde1037ae</id>
<content type='text'>
Replace BUG() with BUG_ON().
Caught by coccinelle.

Signed-off-by: Harman Kalra &lt;harman4linux@gmail.com&gt;
Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Replace BUG() with BUG_ON().
Caught by coccinelle.

Signed-off-by: Harman Kalra &lt;harman4linux@gmail.com&gt;
Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ata: sata_mv: Replacing dma_pool_alloc and memset with a single call dma_pool_zalloc.</title>
<updated>2016-09-20T20:07:16+00:00</updated>
<author>
<name>Harman Kalra</name>
<email>harman4linux@gmail.com</email>
</author>
<published>2016-09-20T19:44:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=6ec76070f17993aa9ac0344330b971783d10c9c2'/>
<id>6ec76070f17993aa9ac0344330b971783d10c9c2</id>
<content type='text'>
Replacing dma_pool_alloc and memset with a single call to dma_pool_zalloc

Signed-off-by: Harman Kalra &lt;harman4linux@gmail.com&gt;
Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Replacing dma_pool_alloc and memset with a single call to dma_pool_zalloc

Signed-off-by: Harman Kalra &lt;harman4linux@gmail.com&gt;
Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>libata: Some drives failing on SCT Write Same</title>
<updated>2016-09-09T19:21:21+00:00</updated>
<author>
<name>Shaun Tancheff</name>
<email>shaun@tancheff.com</email>
</author>
<published>2016-09-09T16:44:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=0ce1b18c42a5b1613ad84d3bf93ee4f5bb3f8b33'/>
<id>0ce1b18c42a5b1613ad84d3bf93ee4f5bb3f8b33</id>
<content type='text'>
Restrict support SCT Write Same to devices which also support ZAC where
support is required.

Reported-by: Mike Krinkin &lt;krinkin.m.u@gmail.com&gt;
Signed-off-by: Shaun Tancheff &lt;shaun.tancheff@seagate.com&gt;
Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Restrict support SCT Write Same to devices which also support ZAC where
support is required.

Reported-by: Mike Krinkin &lt;krinkin.m.u@gmail.com&gt;
Signed-off-by: Shaun Tancheff &lt;shaun.tancheff@seagate.com&gt;
Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ahci: use pci_alloc_irq_vectors</title>
<updated>2016-09-06T16:38:17+00:00</updated>
<author>
<name>Christoph Hellwig</name>
<email>hch@lst.de</email>
</author>
<published>2016-09-05T15:21:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=0b9e2988ab2261fd6d4a0039edf81ed1e3662be8'/>
<id>0b9e2988ab2261fd6d4a0039edf81ed1e3662be8</id>
<content type='text'>
Use the new pci_alloc_irq_vectors API to allocate MSI-X and MSI vectors.
The big advantage over the old code is that we can use the same API for
MSI and MSI-X, and that we don't need to store the MSI-X vector mapping
in driver-private data structures.

This first conversion keeps the probe order as-is: MSI-X multi vector,
MSI multi vector, MSI single vector, MSI-X single vector and last a
single least legacy interrupt line.  There is one small change of
behavior: we now check the "MSI Revert to Single Message" flag for
MSI-X in addition to MSI.

Because the API to find the Linux IRQ number for a MSI/MSI-X vector
is PCI specific, but libahaci is bus-agnostic I had to a
get_irq_vector function pointer to struct ahci_host_priv.  The
alternative would be to move the multi-vector case of ahci_host_activate
to ahci.c and just call ata_host_activate directly from the others
users of ahci_host_activate.

Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use the new pci_alloc_irq_vectors API to allocate MSI-X and MSI vectors.
The big advantage over the old code is that we can use the same API for
MSI and MSI-X, and that we don't need to store the MSI-X vector mapping
in driver-private data structures.

This first conversion keeps the probe order as-is: MSI-X multi vector,
MSI multi vector, MSI single vector, MSI-X single vector and last a
single least legacy interrupt line.  There is one small change of
behavior: we now check the "MSI Revert to Single Message" flag for
MSI-X in addition to MSI.

Because the API to find the Linux IRQ number for a MSI/MSI-X vector
is PCI specific, but libahaci is bus-agnostic I had to a
get_irq_vector function pointer to struct ahci_host_priv.  The
alternative would be to move the multi-vector case of ahci_host_activate
to ahci.c and just call ata_host_activate directly from the others
users of ahci_host_activate.

Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'master' into for-4.9</title>
<updated>2016-09-06T16:35:56+00:00</updated>
<author>
<name>Tejun Heo</name>
<email>tj@kernel.org</email>
</author>
<published>2016-09-06T16:35:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=2536524a91fe5c5a9fddd282fd4e79ee0976aefe'/>
<id>2536524a91fe5c5a9fddd282fd4e79ee0976aefe</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
