linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PATCH: mvsas: add support for Supermicro AOC-SAS2LP-MV8
@ 2014-04-28 14:52 Jan Kasprzak
  2014-04-29  1:16 ` Xiangliang Yu
  0 siblings, 1 reply; 9+ messages in thread
From: Jan Kasprzak @ 2014-04-28 14:52 UTC (permalink / raw)
  To: James E.J. Bottomley; +Cc: linux-scsi, linux-kernel, yuxiangl

Add support for the AOC-SAS2LP-MV8 SAS-2 controller from SuperMicro.
This controller has subdevice id 0x9485 instead of 0x9480, and apparently
this simple patch is the only thing needed to make it work.

# lspci -vn
[...]
03:00.0 0104: 1b4b:9485 (rev 03)
	Subsystem: 1b4b:9485
	Flags: bus master, fast devsel, latency 0, IRQ 24
	Memory at feba0000 (64-bit, non-prefetchable) [size=128K]
	Memory at febc0000 (64-bit, non-prefetchable) [size=256K]
	Expansion ROM at feb90000 [disabled] [size=64K]
	Capabilities: [40] Power Management version 3
	Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
	Capabilities: [70] Express Endpoint, MSI 00
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [140] Virtual Channel
	Kernel driver in use: mvsas
	Kernel modules: mvsas

Signed-off-by: Jan Kasprzak <kas@fi.muni.cz>

diff --git a/drivers/scsi/mvsas/mv_init.c b/drivers/scsi/mvsas/mv_init.c
index 5ff978b..eacee48 100644
--- a/drivers/scsi/mvsas/mv_init.c
+++ b/drivers/scsi/mvsas/mv_init.c
@@ -728,6 +728,15 @@ static struct pci_device_id mvs_pci_table[] = {
 		.class_mask	= 0,
 		.driver_data	= chip_9485,
 	},
+	{
+		.vendor		= PCI_VENDOR_ID_MARVELL_EXT,
+		.device		= 0x9485,
+		.subvendor	= PCI_ANY_ID,
+		.subdevice	= 0x9485,
+		.class		= 0,
+		.class_mask	= 0,
+		.driver_data	= chip_9485,
+	},
 	{ PCI_VDEVICE(OCZ, 0x1021), chip_9485}, /* OCZ RevoDrive3 */
 	{ PCI_VDEVICE(OCZ, 0x1022), chip_9485}, /* OCZ RevoDrive3/zDriveR4 (exact model unknown) */
 	{ PCI_VDEVICE(OCZ, 0x1040), chip_9485}, /* OCZ RevoDrive3/zDriveR4 (exact model unknown) */

-- 
| Jan "Yenya" Kasprzak  <kas at {fi.muni.cz - work | yenya.net - private}> |
| New GPG 4096R/A45477D5 - see http://www.fi.muni.cz/~kas/pgp-rollover.txt |
| http://www.fi.muni.cz/~kas/    Journal: http://www.fi.muni.cz/~kas/blog/ |
  There's clearly a balance between "octopus merges are fine" and "Christ,
  that's not an octopus, that's a Cthulhu merge".         --Linus Torvalds

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

* RE: PATCH: mvsas: add support for Supermicro AOC-SAS2LP-MV8
  2014-04-28 14:52 PATCH: mvsas: add support for Supermicro AOC-SAS2LP-MV8 Jan Kasprzak
@ 2014-04-29  1:16 ` Xiangliang Yu
  2014-04-29  1:36   ` James Bottomley
  0 siblings, 1 reply; 9+ messages in thread
From: Xiangliang Yu @ 2014-04-29  1:16 UTC (permalink / raw)
  To: Jan Kasprzak, James E.J. Bottomley; +Cc: linux-scsi, linux-kernel

Hi, Jan
I think below change may be better:
{ PCI_VDEVICE(MARVELL_EXT, 0x9485), chip_9485 },

> Add support for the AOC-SAS2LP-MV8 SAS-2 controller from SuperMicro.
> This controller has subdevice id 0x9485 instead of 0x9480, and apparently
> this simple patch is the only thing needed to make it work.
> 
> # lspci -vn
> [...]
> 03:00.0 0104: 1b4b:9485 (rev 03)
> 	Subsystem: 1b4b:9485
> 	Flags: bus master, fast devsel, latency 0, IRQ 24
> 	Memory at feba0000 (64-bit, non-prefetchable) [size=128K]
> 	Memory at febc0000 (64-bit, non-prefetchable) [size=256K]
> 	Expansion ROM at feb90000 [disabled] [size=64K]
> 	Capabilities: [40] Power Management version 3
> 	Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
> 	Capabilities: [70] Express Endpoint, MSI 00
> 	Capabilities: [100] Advanced Error Reporting
> 	Capabilities: [140] Virtual Channel
> 	Kernel driver in use: mvsas
> 	Kernel modules: mvsas
> 
> Signed-off-by: Jan Kasprzak <kas@fi.muni.cz>
> 
> diff --git a/drivers/scsi/mvsas/mv_init.c b/drivers/scsi/mvsas/mv_init.c
> index 5ff978b..eacee48 100644
> --- a/drivers/scsi/mvsas/mv_init.c
> +++ b/drivers/scsi/mvsas/mv_init.c
> @@ -728,6 +728,15 @@ static struct pci_device_id mvs_pci_table[] = {
>  		.class_mask	= 0,
>  		.driver_data	= chip_9485,
>  	},
> +	{
> +		.vendor		= PCI_VENDOR_ID_MARVELL_EXT,
> +		.device		= 0x9485,
> +		.subvendor	= PCI_ANY_ID,
> +		.subdevice	= 0x9485,
> +		.class		= 0,
> +		.class_mask	= 0,
> +		.driver_data	= chip_9485,
> +	},
>  	{ PCI_VDEVICE(OCZ, 0x1021), chip_9485}, /* OCZ RevoDrive3 */
>  	{ PCI_VDEVICE(OCZ, 0x1022), chip_9485}, /* OCZ RevoDrive3/zDriveR4 (exact
> model unknown) */
>  	{ PCI_VDEVICE(OCZ, 0x1040), chip_9485}, /* OCZ RevoDrive3/zDriveR4 (exact
> model unknown) */
> 
> --
> | Jan "Yenya" Kasprzak  <kas at {fi.muni.cz - work | yenya.net - private}> |
> | New GPG 4096R/A45477D5 - see http://www.fi.muni.cz/~kas/pgp-rollover.txt |
> | http://www.fi.muni.cz/~kas/    Journal: http://www.fi.muni.cz/~kas/blog/
> |
>   There's clearly a balance between "octopus merges are fine" and "Christ,
>   that's not an octopus, that's a Cthulhu merge".         --Linus Torvalds

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

* Re: PATCH: mvsas: add support for Supermicro AOC-SAS2LP-MV8
  2014-04-29  1:16 ` Xiangliang Yu
@ 2014-04-29  1:36   ` James Bottomley
  2014-04-29  2:49     ` Xiangliang Yu
  2014-04-29  2:56     ` Xiangliang Yu
  0 siblings, 2 replies; 9+ messages in thread
From: James Bottomley @ 2014-04-29  1:36 UTC (permalink / raw)
  To: Xiangliang Yu; +Cc: Jan Kasprzak, linux-scsi, linux-kernel

On Mon, 2014-04-28 at 18:16 -0700, Xiangliang Yu wrote:
> Hi, Jan
> I think below change may be better:
> { PCI_VDEVICE(MARVELL_EXT, 0x9485), chip_9485 },

Ben Hutchings already submitted a patch for this twice, which I cc'd you
on:

http://marc.info/?t=139277203900003

will you ack it?  PCI_VDEVICE() is a sort of take it or leave it macro.
It's not important and it will look untidy and a bit confusing having a
mix of open coding and macros, so I'd say convert all or none.

James


> > Add support for the AOC-SAS2LP-MV8 SAS-2 controller from SuperMicro.
> > This controller has subdevice id 0x9485 instead of 0x9480, and apparently
> > this simple patch is the only thing needed to make it work.
> > 
> > # lspci -vn
> > [...]
> > 03:00.0 0104: 1b4b:9485 (rev 03)
> > 	Subsystem: 1b4b:9485
> > 	Flags: bus master, fast devsel, latency 0, IRQ 24
> > 	Memory at feba0000 (64-bit, non-prefetchable) [size=128K]
> > 	Memory at febc0000 (64-bit, non-prefetchable) [size=256K]
> > 	Expansion ROM at feb90000 [disabled] [size=64K]
> > 	Capabilities: [40] Power Management version 3
> > 	Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
> > 	Capabilities: [70] Express Endpoint, MSI 00
> > 	Capabilities: [100] Advanced Error Reporting
> > 	Capabilities: [140] Virtual Channel
> > 	Kernel driver in use: mvsas
> > 	Kernel modules: mvsas
> > 
> > Signed-off-by: Jan Kasprzak <kas@fi.muni.cz>
> > 
> > diff --git a/drivers/scsi/mvsas/mv_init.c b/drivers/scsi/mvsas/mv_init.c
> > index 5ff978b..eacee48 100644
> > --- a/drivers/scsi/mvsas/mv_init.c
> > +++ b/drivers/scsi/mvsas/mv_init.c
> > @@ -728,6 +728,15 @@ static struct pci_device_id mvs_pci_table[] = {
> >  		.class_mask	= 0,
> >  		.driver_data	= chip_9485,
> >  	},
> > +	{
> > +		.vendor		= PCI_VENDOR_ID_MARVELL_EXT,
> > +		.device		= 0x9485,
> > +		.subvendor	= PCI_ANY_ID,
> > +		.subdevice	= 0x9485,
> > +		.class		= 0,
> > +		.class_mask	= 0,
> > +		.driver_data	= chip_9485,
> > +	},
> >  	{ PCI_VDEVICE(OCZ, 0x1021), chip_9485}, /* OCZ RevoDrive3 */
> >  	{ PCI_VDEVICE(OCZ, 0x1022), chip_9485}, /* OCZ RevoDrive3/zDriveR4 (exact
> > model unknown) */
> >  	{ PCI_VDEVICE(OCZ, 0x1040), chip_9485}, /* OCZ RevoDrive3/zDriveR4 (exact
> > model unknown) */
> > 
> > --
> > | Jan "Yenya" Kasprzak  <kas at {fi.muni.cz - work | yenya.net - private}> |
> > | New GPG 4096R/A45477D5 - see http://www.fi.muni.cz/~kas/pgp-rollover.txt |
> > | http://www.fi.muni.cz/~kas/    Journal: http://www.fi.muni.cz/~kas/blog/
> > |
> >   There's clearly a balance between "octopus merges are fine" and "Christ,
> >   that's not an octopus, that's a Cthulhu merge".         --Linus Torvalds
> --
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html




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

* RE: PATCH: mvsas: add support for Supermicro AOC-SAS2LP-MV8
  2014-04-29  1:36   ` James Bottomley
@ 2014-04-29  2:49     ` Xiangliang Yu
  2014-04-29  2:56     ` Xiangliang Yu
  1 sibling, 0 replies; 9+ messages in thread
From: Xiangliang Yu @ 2014-04-29  2:49 UTC (permalink / raw)
  To: James Bottomley; +Cc: Jan Kasprzak, linux-scsi, linux-kernel

> Ben Hutchings already submitted a patch for this twice, which I cc'd you
> on:
> 
> http://marc.info/?t=139277203900003
> 
> will you ack it?  PCI_VDEVICE() is a sort of take it or leave it macro.
> It's not important and it will look untidy and a bit confusing having a
> mix of open coding and macros, so I'd say convert all or none.
> 
Using open coding because PCI_VENDOR_ID_MARVELL_EXT was undefined before.
Now, we should use the macros instead of open coding.

> 
> 
> > > Add support for the AOC-SAS2LP-MV8 SAS-2 controller from SuperMicro.
> > > This controller has subdevice id 0x9485 instead of 0x9480, and apparently
> > > this simple patch is the only thing needed to make it work.
> > >
> > > # lspci -vn
> > > [...]
> > > 03:00.0 0104: 1b4b:9485 (rev 03)
> > > 	Subsystem: 1b4b:9485
> > > 	Flags: bus master, fast devsel, latency 0, IRQ 24
> > > 	Memory at feba0000 (64-bit, non-prefetchable) [size=128K]
> > > 	Memory at febc0000 (64-bit, non-prefetchable) [size=256K]
> > > 	Expansion ROM at feb90000 [disabled] [size=64K]
> > > 	Capabilities: [40] Power Management version 3
> > > 	Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
> > > 	Capabilities: [70] Express Endpoint, MSI 00
> > > 	Capabilities: [100] Advanced Error Reporting
> > > 	Capabilities: [140] Virtual Channel
> > > 	Kernel driver in use: mvsas
> > > 	Kernel modules: mvsas
> > >
> > > Signed-off-by: Jan Kasprzak <kas@fi.muni.cz>
> > >
> > > diff --git a/drivers/scsi/mvsas/mv_init.c b/drivers/scsi/mvsas/mv_init.c
> > > index 5ff978b..eacee48 100644
> > > --- a/drivers/scsi/mvsas/mv_init.c
> > > +++ b/drivers/scsi/mvsas/mv_init.c
> > > @@ -728,6 +728,15 @@ static struct pci_device_id mvs_pci_table[] = {
> > >  		.class_mask	= 0,
> > >  		.driver_data	= chip_9485,
> > >  	},
> > > +	{
> > > +		.vendor		= PCI_VENDOR_ID_MARVELL_EXT,
> > > +		.device		= 0x9485,
> > > +		.subvendor	= PCI_ANY_ID,
> > > +		.subdevice	= 0x9485,
> > > +		.class		= 0,
> > > +		.class_mask	= 0,
> > > +		.driver_data	= chip_9485,
> > > +	},
> > >  	{ PCI_VDEVICE(OCZ, 0x1021), chip_9485}, /* OCZ RevoDrive3 */
> > >  	{ PCI_VDEVICE(OCZ, 0x1022), chip_9485}, /* OCZ RevoDrive3/zDriveR4
> (exact
> > > model unknown) */
> > >  	{ PCI_VDEVICE(OCZ, 0x1040), chip_9485}, /* OCZ RevoDrive3/zDriveR4
> (exact
> > > model unknown) */
> > >
> > > --
> > > | Jan "Yenya" Kasprzak  <kas at {fi.muni.cz - work | yenya.net - private}>
> |
> > > | New GPG 4096R/A45477D5 - see http://www.fi.muni.cz/~kas/pgp-rollover.txt
> |
> > > | http://www.fi.muni.cz/~kas/    Journal:
> http://www.fi.muni.cz/~kas/blog/
> > > |
> > >   There's clearly a balance between "octopus merges are fine" and "Christ,
> > >   that's not an octopus, that's a Cthulhu merge".         --Linus Torvalds
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 


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

* RE: PATCH: mvsas: add support for Supermicro AOC-SAS2LP-MV8
  2014-04-29  1:36   ` James Bottomley
  2014-04-29  2:49     ` Xiangliang Yu
@ 2014-04-29  2:56     ` Xiangliang Yu
  2014-05-16 12:06       ` Jan Kasprzak
  1 sibling, 1 reply; 9+ messages in thread
From: Xiangliang Yu @ 2014-04-29  2:56 UTC (permalink / raw)
  To: James Bottomley; +Cc: Jan Kasprzak, linux-scsi, linux-kernel

> Ben Hutchings already submitted a patch for this twice, which I cc'd you
> on:
> 
> http://marc.info/?t=139277203900003
> 
> will you ack it?  
I can't find this mail in my mail box.


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

* Re: PATCH: mvsas: add support for Supermicro AOC-SAS2LP-MV8
  2014-04-29  2:56     ` Xiangliang Yu
@ 2014-05-16 12:06       ` Jan Kasprzak
  2014-05-28 11:08         ` Christoph Hellwig
  0 siblings, 1 reply; 9+ messages in thread
From: Jan Kasprzak @ 2014-05-16 12:06 UTC (permalink / raw)
  To: Xiangliang Yu; +Cc: James Bottomley, linux-scsi, linux-kernel

	Hello,

Xiangliang Yu wrote:
: > Ben Hutchings already submitted a patch for this twice, which I cc'd you
: > on:
: > 
: > http://marc.info/?t=139277203900003
: > 
: > will you ack it?  
: I can't find this mail in my mail box.

any news with this patch? Will it be acked by you and submitted upstream?
Thanks!

-Jan Kasprzak

-- 
| Jan "Yenya" Kasprzak  <kas at {fi.muni.cz - work | yenya.net - private}> |
| New GPG 4096R/A45477D5 - see http://www.fi.muni.cz/~kas/pgp-rollover.txt |
| http://www.fi.muni.cz/~kas/    Journal: http://www.fi.muni.cz/~kas/blog/ |
  There's clearly a balance between "octopus merges are fine" and "Christ,
  that's not an octopus, that's a Cthulhu merge".         --Linus Torvalds

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

* Re: PATCH: mvsas: add support for Supermicro AOC-SAS2LP-MV8
  2014-05-16 12:06       ` Jan Kasprzak
@ 2014-05-28 11:08         ` Christoph Hellwig
  2014-05-30 12:50           ` Jan Kasprzak
  0 siblings, 1 reply; 9+ messages in thread
From: Christoph Hellwig @ 2014-05-28 11:08 UTC (permalink / raw)
  To: Jan Kasprzak; +Cc: Xiangliang Yu, James Bottomley, linux-scsi, linux-kernel

On Fri, May 16, 2014 at 02:06:42PM +0200, Jan Kasprzak wrote:
> any news with this patch? Will it be acked by you and submitted upstream?
> Thanks!

Give me an Acked-by and I'll pull it in.


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

* Re: PATCH: mvsas: add support for Supermicro AOC-SAS2LP-MV8
  2014-05-28 11:08         ` Christoph Hellwig
@ 2014-05-30 12:50           ` Jan Kasprzak
  2014-06-02  6:46             ` Christoph Hellwig
  0 siblings, 1 reply; 9+ messages in thread
From: Jan Kasprzak @ 2014-05-30 12:50 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: Xiangliang Yu, James Bottomley, linux-scsi, linux-kernel

Christoph Hellwig wrote:
: On Fri, May 16, 2014 at 02:06:42PM +0200, Jan Kasprzak wrote:
: > any news with this patch? Will it be acked by you and submitted upstream?
: > Thanks!
: 
: Give me an Acked-by and I'll pull it in.

Acked-By: Jan "Yenya" Kasprzak <kas@fi.muni.cz>

Not sure whether I should ack my own patch, though. But you may apply
it to the original one, which is identical to what I did.
http://marc.info/?l=linux-scsi&m=139277202005675&w=2

Thanks!

-Y.

-- 
| Jan "Yenya" Kasprzak  <kas at {fi.muni.cz - work | yenya.net - private}> |
| New GPG 4096R/A45477D5 - see http://www.fi.muni.cz/~kas/pgp-rollover.txt |
| http://www.fi.muni.cz/~kas/    Journal: http://www.fi.muni.cz/~kas/blog/ |
  There's clearly a balance between "octopus merges are fine" and "Christ,
  that's not an octopus, that's a Cthulhu merge".         --Linus Torvalds

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

* Re: PATCH: mvsas: add support for Supermicro AOC-SAS2LP-MV8
  2014-05-30 12:50           ` Jan Kasprzak
@ 2014-06-02  6:46             ` Christoph Hellwig
  0 siblings, 0 replies; 9+ messages in thread
From: Christoph Hellwig @ 2014-06-02  6:46 UTC (permalink / raw)
  To: Jan Kasprzak
  Cc: Christoph Hellwig, Xiangliang Yu, James Bottomley, linux-scsi,
	linux-kernel

On Fri, May 30, 2014 at 02:50:11PM +0200, Jan Kasprzak wrote:
> Not sure whether I should ack my own patch, though. But you may apply
> it to the original one, which is identical to what I did.
> http://marc.info/?l=linux-scsi&m=139277202005675&w=2

Yes, that's what I will do.

Thanks a lot!

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

end of thread, other threads:[~2014-06-02  6:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-28 14:52 PATCH: mvsas: add support for Supermicro AOC-SAS2LP-MV8 Jan Kasprzak
2014-04-29  1:16 ` Xiangliang Yu
2014-04-29  1:36   ` James Bottomley
2014-04-29  2:49     ` Xiangliang Yu
2014-04-29  2:56     ` Xiangliang Yu
2014-05-16 12:06       ` Jan Kasprzak
2014-05-28 11:08         ` Christoph Hellwig
2014-05-30 12:50           ` Jan Kasprzak
2014-06-02  6:46             ` Christoph Hellwig

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).