2022-02-19 14:52:10

by Greg Kroah-Hartman

[permalink] [raw]
Subject: Re: [PATCH v1 1/1] misc: bcm-vk: add kconfig for supporting viper chip

On Fri, Feb 18, 2022 at 12:08:11PM -0800, Desmond Yan wrote:
> Add kconfig for enabling bcm-vk driver to support the viper chip.
> Default is off and only explicitly configured that the viper chip
> would be discovered by the driver and loaded for usage.
>
> Tested-by: Desmond Yan <[email protected]>
> Signed-off-by: Desmond Yan <[email protected]>
> ---
> drivers/misc/bcm-vk/Kconfig | 10 ++++++++++
> drivers/misc/bcm-vk/bcm_vk_dev.c | 2 ++
> 2 files changed, 12 insertions(+)
>
> diff --git a/drivers/misc/bcm-vk/Kconfig b/drivers/misc/bcm-vk/Kconfig
> index 68a972772b99..43910a378163 100644
> --- a/drivers/misc/bcm-vk/Kconfig
> +++ b/drivers/misc/bcm-vk/Kconfig
> @@ -16,6 +16,16 @@ config BCM_VK
>
> If unsure, say N.
>
> +config BCM_VK_VIPER
> + bool "VK driver for VIPER"
> + depends on BCM_VK
> + help
> + Turn on to enable using the vk driver for the viper variant.
> + Used for development environments where viper uses VK driver
> + and VK firmware rather than an alternate firmware and driver.
> +
> + If unsure, say N.
> +
> config BCM_VK_TTY
> bool "Enable tty ports on a Broadcom VK Accelerator device"
> depends on TTY
> diff --git a/drivers/misc/bcm-vk/bcm_vk_dev.c b/drivers/misc/bcm-vk/bcm_vk_dev.c
> index ad639ee85b2a..41dbfa4fa4a5 100644
> --- a/drivers/misc/bcm-vk/bcm_vk_dev.c
> +++ b/drivers/misc/bcm-vk/bcm_vk_dev.c
> @@ -1633,7 +1633,9 @@ static void bcm_vk_shutdown(struct pci_dev *pdev)
>
> static const struct pci_device_id bcm_vk_ids[] = {
> { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_VALKYRIE), },
> +#if defined(CONFIG_BCM_VK_VIPER)
> { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_VIPER), },
> +#endif

Why do you need a new config option just to add a new device id? Why
would you ever NOT want this option enabled as there is no other driver
for this hardware?

thanks,

greg k-h

2022-02-22 16:41:04

by Desmond Yan

[permalink] [raw]
Subject: Re: [PATCH v1 1/1] misc: bcm-vk: add kconfig for supporting viper chip

Greg,

This is to allow the customer to use their own driver, by default,
which is their preferred option.

thx
Des


On Fri, Feb 18, 2022 at 11:33 PM Greg Kroah-Hartman
<[email protected]> wrote:
>
> On Fri, Feb 18, 2022 at 12:08:11PM -0800, Desmond Yan wrote:
> > Add kconfig for enabling bcm-vk driver to support the viper chip.
> > Default is off and only explicitly configured that the viper chip
> > would be discovered by the driver and loaded for usage.
> >
> > Tested-by: Desmond Yan <[email protected]>
> > Signed-off-by: Desmond Yan <[email protected]>
> > ---
> > drivers/misc/bcm-vk/Kconfig | 10 ++++++++++
> > drivers/misc/bcm-vk/bcm_vk_dev.c | 2 ++
> > 2 files changed, 12 insertions(+)
> >
> > diff --git a/drivers/misc/bcm-vk/Kconfig b/drivers/misc/bcm-vk/Kconfig
> > index 68a972772b99..43910a378163 100644
> > --- a/drivers/misc/bcm-vk/Kconfig
> > +++ b/drivers/misc/bcm-vk/Kconfig
> > @@ -16,6 +16,16 @@ config BCM_VK
> >
> > If unsure, say N.
> >
> > +config BCM_VK_VIPER
> > + bool "VK driver for VIPER"
> > + depends on BCM_VK
> > + help
> > + Turn on to enable using the vk driver for the viper variant.
> > + Used for development environments where viper uses VK driver
> > + and VK firmware rather than an alternate firmware and driver.
> > +
> > + If unsure, say N.
> > +
> > config BCM_VK_TTY
> > bool "Enable tty ports on a Broadcom VK Accelerator device"
> > depends on TTY
> > diff --git a/drivers/misc/bcm-vk/bcm_vk_dev.c b/drivers/misc/bcm-vk/bcm_vk_dev.c
> > index ad639ee85b2a..41dbfa4fa4a5 100644
> > --- a/drivers/misc/bcm-vk/bcm_vk_dev.c
> > +++ b/drivers/misc/bcm-vk/bcm_vk_dev.c
> > @@ -1633,7 +1633,9 @@ static void bcm_vk_shutdown(struct pci_dev *pdev)
> >
> > static const struct pci_device_id bcm_vk_ids[] = {
> > { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_VALKYRIE), },
> > +#if defined(CONFIG_BCM_VK_VIPER)
> > { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_VIPER), },
> > +#endif
>
> Why do you need a new config option just to add a new device id? Why
> would you ever NOT want this option enabled as there is no other driver
> for this hardware?
>
> thanks,
>
> greg k-h


Attachments:
smime.p7s (4.11 kB)
S/MIME Cryptographic Signature

2022-02-22 17:57:02

by Greg Kroah-Hartman

[permalink] [raw]
Subject: Re: [PATCH v1 1/1] misc: bcm-vk: add kconfig for supporting viper chip

A: http://en.wikipedia.org/wiki/Top_post
Q: Were do I find info about this thing called top-posting?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

A: No.
Q: Should I include quotations after my reply?


http://daringfireball.net/2007/07/on_top

On Tue, Feb 22, 2022 at 07:41:04AM -0800, Desmond Yan (APD) wrote:
> Greg,
>
> This is to allow the customer to use their own driver, by default,
> which is their preferred option.

We do not care about out-of-tree code, and do not add Kconfig options
just for that, sorry.

Why not just add the out-of-tree driver here to the in-kernel code?
What is preventing that from happening today?

thanks,

greg k-h

2022-02-23 08:38:32

by Greg Kroah-Hartman

[permalink] [raw]
Subject: Re: [PATCH v1 1/1] misc: bcm-vk: add kconfig for supporting viper chip

On Tue, Feb 22, 2022 at 09:14:02PM -0800, Desmond yan wrote:
>
> Greg,
>
> Please see inlined.
>
> On 2/22/22 09:13, Greg Kroah-Hartman wrote:
> > A: http://en.wikipedia.org/wiki/Top_post
> > Q: Were do I find info about this thing called top-posting?
> > A: Because it messes up the order in which people normally read text.
> > Q: Why is top-posting such a bad thing?
> > A: Top-posting.
> > Q: What is the most annoying thing in e-mail?
> >
> > A: No.
> > Q: Should I include quotations after my reply?
> >
> >
> > http://daringfireball.net/2007/07/on_top
> >
> > On Tue, Feb 22, 2022 at 07:41:04AM -0800, Desmond Yan (APD) wrote:
> > > Greg,
> > >
> > > This is to allow the customer to use their own driver, by default,
> > > which is their preferred option.
> >
> > We do not care about out-of-tree code, and do not add Kconfig options
> > just for that, sorry.
> >
> > Why not just add the out-of-tree driver here to the in-kernel code?
> > What is preventing that from happening today?
>
> Using the bcm_vk driver for viper is only for proof-of-concept, and is not
> aimed to be deployed for production. In parallel, customer is developing
> their own production-ready driver and would probably upstream it whenever
> the appropriate time comes.

Ok, so let us not add a new config option only for one person working on
writing their own driver. Let's just add the device id as there are
more people than just that one person wanting to use their hardware with
the existing drivers.

Please resubmit this without the Kconfig change and I will be glad to
take it.

thanks,

greg k-h

2022-02-23 20:10:02

by Greg Kroah-Hartman

[permalink] [raw]
Subject: Re: [PATCH v1 1/1] misc: bcm-vk: add kconfig for supporting viper chip

On Wed, Feb 23, 2022 at 09:59:48AM -0800, Scott Branden wrote:
> Hi Greg,
>
> On 2022-02-22 23:26, Greg Kroah-Hartman wrote:
> > On Tue, Feb 22, 2022 at 09:14:02PM -0800, Desmond yan wrote:
> > >
> > > Greg,
> > >
> > > Please see inlined.
> > >
> > > On 2/22/22 09:13, Greg Kroah-Hartman wrote:
> > > > A: http://en.wikipedia.org/wiki/Top_post
> > > > Q: Were do I find info about this thing called top-posting?
> > > > A: Because it messes up the order in which people normally read text.
> > > > Q: Why is top-posting such a bad thing?
> > > > A: Top-posting.
> > > > Q: What is the most annoying thing in e-mail?
> > > >
> > > > A: No.
> > > > Q: Should I include quotations after my reply?
> > > >
> > > >
> > > > http://daringfireball.net/2007/07/on_top
> > > >
> > > > On Tue, Feb 22, 2022 at 07:41:04AM -0800, Desmond Yan (APD) wrote:
> > > > > Greg,
> > > > >
> > > > > This is to allow the customer to use their own driver, by default,
> > > > > which is their preferred option.
> > > >
> > > > We do not care about out-of-tree code, and do not add Kconfig options
> > > > just for that, sorry.
> > > >
> > > > Why not just add the out-of-tree driver here to the in-kernel code?
> > > > What is preventing that from happening today?
> > >
> > > Using the bcm_vk driver for viper is only for proof-of-concept, and is not
> > > aimed to be deployed for production. In parallel, customer is developing
> > > their own production-ready driver and would probably upstream it whenever
> > > the appropriate time comes.
> >
> > Ok, so let us not add a new config option only for one person working on
> > writing their own driver. Let's just add the device id as there are
> > more people than just that one person wanting to use their hardware with
> > the existing drivers.
> The bcm_vk driver is the official driver for Valkyrie. For Viper, the
> bcm_vk driver is only for proof of concept, testing, and demonstration
> purposes. For production, the new driver in development will be used.
>
> To support such configuration, we need to have the Viper pci id configurable
> and off by default in the bcm_vk driver to allow the new production driver
> to be developed against the upstream kernel and drivers.
> >
> > Please resubmit this without the Kconfig change and I will be glad to
> > take it.
> I don't understand what there would be to submit? The Viper pci id is
> already upstreamed into the bcm_vk driver. The sole purpose of this patch
> is to add the Kconfig option and have it off by default.

Ah, I missed that it was disabling the id. That's even worse. No,
sorry, not going to take this upstream. Again, we do not add changes to
the kernel (and especially not Kconfig options) for out-of-tree code.

You know this...

thanks,

greg k-h

2022-02-23 20:39:46

by Scott Branden

[permalink] [raw]
Subject: Re: [PATCH v1 1/1] misc: bcm-vk: add kconfig for supporting viper chip

Hi Greg,

On 2022-02-22 23:26, Greg Kroah-Hartman wrote:
> On Tue, Feb 22, 2022 at 09:14:02PM -0800, Desmond yan wrote:
>>
>> Greg,
>>
>> Please see inlined.
>>
>> On 2/22/22 09:13, Greg Kroah-Hartman wrote:
>>> A: http://en.wikipedia.org/wiki/Top_post
>>> Q: Were do I find info about this thing called top-posting?
>>> A: Because it messes up the order in which people normally read text.
>>> Q: Why is top-posting such a bad thing?
>>> A: Top-posting.
>>> Q: What is the most annoying thing in e-mail?
>>>
>>> A: No.
>>> Q: Should I include quotations after my reply?
>>>
>>>
>>> http://daringfireball.net/2007/07/on_top
>>>
>>> On Tue, Feb 22, 2022 at 07:41:04AM -0800, Desmond Yan (APD) wrote:
>>>> Greg,
>>>>
>>>> This is to allow the customer to use their own driver, by default,
>>>> which is their preferred option.
>>>
>>> We do not care about out-of-tree code, and do not add Kconfig options
>>> just for that, sorry.
>>>
>>> Why not just add the out-of-tree driver here to the in-kernel code?
>>> What is preventing that from happening today?
>>
>> Using the bcm_vk driver for viper is only for proof-of-concept, and is not
>> aimed to be deployed for production. In parallel, customer is developing
>> their own production-ready driver and would probably upstream it whenever
>> the appropriate time comes.
>
> Ok, so let us not add a new config option only for one person working on
> writing their own driver. Let's just add the device id as there are
> more people than just that one person wanting to use their hardware with
> the existing drivers.
The bcm_vk driver is the official driver for Valkyrie. For Viper, the
bcm_vk driver is only for proof of concept, testing, and demonstration
purposes. For production, the new driver in development will be used.

To support such configuration, we need to have the Viper pci id
configurable and off by default in the bcm_vk driver to allow the new
production driver to be developed against the upstream kernel and drivers.
>
> Please resubmit this without the Kconfig change and I will be glad to
> take it.
I don't understand what there would be to submit? The Viper pci id is
already upstreamed into the bcm_vk driver. The sole purpose of this
patch is to add the Kconfig option and have it off by default.
>
> thanks,
>
> greg k-h

Regards,
Scott


Attachments:
smime.p7s (4.11 kB)
S/MIME Cryptographic Signature

2022-02-24 00:45:12

by Scott Branden

[permalink] [raw]
Subject: Re: [PATCH v1 1/1] misc: bcm-vk: add kconfig for supporting viper chip



On 2022-02-23 10:27, Greg Kroah-Hartman wrote:
> On Wed, Feb 23, 2022 at 09:59:48AM -0800, Scott Branden wrote:
>> Hi Greg,
>>
>> On 2022-02-22 23:26, Greg Kroah-Hartman wrote:
>>> On Tue, Feb 22, 2022 at 09:14:02PM -0800, Desmond yan wrote:
>>>>
>>>> Greg,
>>>>
>>>> Please see inlined.
>>>>
>>>> On 2/22/22 09:13, Greg Kroah-Hartman wrote:
>>>>> A: http://en.wikipedia.org/wiki/Top_post
>>>>> Q: Were do I find info about this thing called top-posting?
>>>>> A: Because it messes up the order in which people normally read text.
>>>>> Q: Why is top-posting such a bad thing?
>>>>> A: Top-posting.
>>>>> Q: What is the most annoying thing in e-mail?
>>>>>
>>>>> A: No.
>>>>> Q: Should I include quotations after my reply?
>>>>>
>>>>>
>>>>> http://daringfireball.net/2007/07/on_top
>>>>>
>>>>> On Tue, Feb 22, 2022 at 07:41:04AM -0800, Desmond Yan (APD) wrote:
>>>>>> Greg,
>>>>>>
>>>>>> This is to allow the customer to use their own driver, by default,
>>>>>> which is their preferred option.
>>>>>
>>>>> We do not care about out-of-tree code, and do not add Kconfig options
>>>>> just for that, sorry.
>>>>>
>>>>> Why not just add the out-of-tree driver here to the in-kernel code?
>>>>> What is preventing that from happening today?
>>>>
>>>> Using the bcm_vk driver for viper is only for proof-of-concept, and is not
>>>> aimed to be deployed for production. In parallel, customer is developing
>>>> their own production-ready driver and would probably upstream it whenever
>>>> the appropriate time comes.
>>>
>>> Ok, so let us not add a new config option only for one person working on
>>> writing their own driver. Let's just add the device id as there are
>>> more people than just that one person wanting to use their hardware with
>>> the existing drivers.
>> The bcm_vk driver is the official driver for Valkyrie. For Viper, the
>> bcm_vk driver is only for proof of concept, testing, and demonstration
>> purposes. For production, the new driver in development will be used.
>>
>> To support such configuration, we need to have the Viper pci id configurable
>> and off by default in the bcm_vk driver to allow the new production driver
>> to be developed against the upstream kernel and drivers.
>>>
>>> Please resubmit this without the Kconfig change and I will be glad to
>>> take it.
>> I don't understand what there would be to submit? The Viper pci id is
>> already upstreamed into the bcm_vk driver. The sole purpose of this patch
>> is to add the Kconfig option and have it off by default.
>
> Ah, I missed that it was disabling the id. That's even worse. No,
> sorry, not going to take this upstream. Again, we do not add changes to
> the kernel (and especially not Kconfig options) for out-of-tree code.
Well, will you accept a patch to remove the Viper PCI id from upstream
instead then? bcm_vk driver should not support Viper PCI id in official
systems.
>
> You know this...
>
> thanks,
>
> greg k-h


Attachments:
smime.p7s (4.11 kB)
S/MIME Cryptographic Signature

2022-02-24 01:42:16

by Desmond Yan

[permalink] [raw]
Subject: Re: [PATCH v1 1/1] misc: bcm-vk: add kconfig for supporting viper chip


Greg,

Please see inlined.

On 2/22/22 09:13, Greg Kroah-Hartman wrote:
> A: http://en.wikipedia.org/wiki/Top_post
> Q: Were do I find info about this thing called top-posting?
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing in e-mail?
>
> A: No.
> Q: Should I include quotations after my reply?
>
>
> http://daringfireball.net/2007/07/on_top
>
> On Tue, Feb 22, 2022 at 07:41:04AM -0800, Desmond Yan (APD) wrote:
>> Greg,
>>
>> This is to allow the customer to use their own driver, by default,
>> which is their preferred option.
>
> We do not care about out-of-tree code, and do not add Kconfig options
> just for that, sorry.
>
> Why not just add the out-of-tree driver here to the in-kernel code?
> What is preventing that from happening today?

Using the bcm_vk driver for viper is only for proof-of-concept, and is
not aimed to be deployed for production. In parallel, customer is
developing their own production-ready driver and would probably upstream
it whenever the appropriate time comes.

thx.

des
>
> thanks,
>
> greg k-h


Attachments:
smime.p7s (4.11 kB)
S/MIME Cryptographic Signature