All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pci: add class codes for processing accelerators
@ 2017-11-23 14:04 Oded Gabbay
  2017-11-23 14:11 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Oded Gabbay @ 2017-11-23 14:04 UTC (permalink / raw)
  To: linux-kernel, linux-pci, gregkh

Add PCI codes to include/linux/pci_ids.h for Processing Accelerators. There
are new ASICs (now in development) for Deep Learning that will utilize this
base class.

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
---
 include/linux/pci_ids.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h
index ab20dc5..4c210cd 100644
--- a/include/linux/pci_ids.h
+++ b/include/linux/pci_ids.h
@@ -139,6 +139,9 @@
 #define PCI_CLASS_SP_DPIO		0x1100
 #define PCI_CLASS_SP_OTHER		0x1180
 
+#define PCI_BASE_CLASS_PROCESSING_ACCELERATOR	0x12
+#define PCI_CLASS_PA_VENDOR_SPECIFIC		0x1200
+
 #define PCI_CLASS_OTHERS		0xff
 
 /* Vendors and devices.  Sort key: vendor first, device next. */
-- 
2.7.4

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

* Re: [PATCH] pci: add class codes for processing accelerators
  2017-11-23 14:04 [PATCH] pci: add class codes for processing accelerators Oded Gabbay
@ 2017-11-23 14:11 ` Greg KH
  2017-11-23 14:14   ` Oded Gabbay
  0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2017-11-23 14:11 UTC (permalink / raw)
  To: Oded Gabbay; +Cc: linux-kernel, linux-pci

On Thu, Nov 23, 2017 at 04:04:22PM +0200, Oded Gabbay wrote:
> Add PCI codes to include/linux/pci_ids.h for Processing Accelerators. There
> are new ASICs (now in development) for Deep Learning that will utilize this
> base class.
> 
> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
> ---
>  include/linux/pci_ids.h | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h
> index ab20dc5..4c210cd 100644
> --- a/include/linux/pci_ids.h
> +++ b/include/linux/pci_ids.h
> @@ -139,6 +139,9 @@
>  #define PCI_CLASS_SP_DPIO		0x1100
>  #define PCI_CLASS_SP_OTHER		0x1180
>  
> +#define PCI_BASE_CLASS_PROCESSING_ACCELERATOR	0x12
> +#define PCI_CLASS_PA_VENDOR_SPECIFIC		0x1200

Did you read the top of this file?

And if these really do belong here, then it should go in as part of a
patch series that contains a driver that uses these values.

thanks,

greg k-h

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

* Re: [PATCH] pci: add class codes for processing accelerators
  2017-11-23 14:11 ` Greg KH
@ 2017-11-23 14:14   ` Oded Gabbay
  0 siblings, 0 replies; 3+ messages in thread
From: Oded Gabbay @ 2017-11-23 14:14 UTC (permalink / raw)
  To: Greg KH; +Cc: Linux-Kernel@Vger. Kernel. Org, linux-pci

On Thu, Nov 23, 2017 at 4:11 PM, Greg KH <gregkh@linuxfoundation.org> wrote:
> On Thu, Nov 23, 2017 at 04:04:22PM +0200, Oded Gabbay wrote:
>> Add PCI codes to include/linux/pci_ids.h for Processing Accelerators. There
>> are new ASICs (now in development) for Deep Learning that will utilize this
>> base class.
>>
>> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
>> ---
>>  include/linux/pci_ids.h | 3 +++
>>  1 file changed, 3 insertions(+)
>>
>> diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h
>> index ab20dc5..4c210cd 100644
>> --- a/include/linux/pci_ids.h
>> +++ b/include/linux/pci_ids.h
>> @@ -139,6 +139,9 @@
>>  #define PCI_CLASS_SP_DPIO            0x1100
>>  #define PCI_CLASS_SP_OTHER           0x1180
>>
>> +#define PCI_BASE_CLASS_PROCESSING_ACCELERATOR        0x12
>> +#define PCI_CLASS_PA_VENDOR_SPECIFIC         0x1200
>
> Did you read the top of this file?
Yes, but I thought that since this value is defined in the PCI spec
then it is ok to add it here.
>
> And if these really do belong here, then it should go in as part of a
> patch series that contains a driver that uses these values.
ok, then I'll need to resend this in a couple of months.

Thanks,
Oded

>
> thanks,
>
> greg k-h

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

end of thread, other threads:[~2017-11-23 14:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-23 14:04 [PATCH] pci: add class codes for processing accelerators Oded Gabbay
2017-11-23 14:11 ` Greg KH
2017-11-23 14:14   ` Oded Gabbay

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.