misc: bcm-vk: add kconfig for supporting viper chip
Subsystems (2)
PATCH 1/1 misc: bcm-vk: add kconfig for supporting viper chip
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.
--- drivers/misc/bcm-vk/Kconfig | 10 ++++++++++ drivers/misc/bcm-vk/bcm_vk_dev.c | 2 ++ 2 files changed, 12 insertions(+)
drivers/misc/bcm-vk/Kconfig +10 -0
@@ -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
drivers/misc/bcm-vk/bcm_vk_dev.c +2 -0
@@ -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 { } };MODULE_DEVICE_TABLE (pci, bcm_vk_ids);
Signature · 1 line
2.17.1
Greg Kroah-Hartman
maintainerQuoted 37 lines · Desmond Yan
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(+)drivers/misc/bcm-vk/Kconfig +10
-0@@ -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 TTYdrivers/misc/bcm-vk/bcm_vk_dev.c +0
-0
drivers/misc/bcm-vk/bcm_vk_dev.c static void bcm_vk_shutdown(struct pci_dev *pdev) · line 1638
Quoted 6 lines
drivers/misc/bcm-vk/bcm_vk_dev.c +2
-0@@ -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
Greg,
This is to allow the customer to use their own driver, by default, which is their preferred option.
thx
Des
Quoted 53 lines · Greg Kroah-Hartman
Quoted 37 lines · Desmond Yan
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(+)drivers/misc/bcm-vk/Kconfig +10
-0@@ -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 TTYdrivers/misc/bcm-vk/bcm_vk_dev.c +0
-0drivers/misc/bcm-vk/bcm_vk_dev.c static void bcm_vk_shutdown(struct pci_dev *pdev) · line 1638
Quoted 6 lines
drivers/misc/bcm-vk/bcm_vk_dev.c +2
-0@@ -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 ), }, +#endifWhy 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
Greg Kroah-Hartman
maintainerA: 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
Quoted 4 lines · Desmond Yan (APD)
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
Greg,
Please see inlined.
Quoted 16 lines · Greg Kroah-Hartman
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
Quoted 2 lines · Desmond Yan (APD)
Greg,
Quoted 8 lines
Quoted 2 lines
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
Kconfigoptions 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
Quoted 4 lines
thanks,
greg k-h
Greg Kroah-Hartman
maintainerQuoted 28 lines · Desmond yan
Greg,
Please see inlined.
Quoted 22 lines · Greg Kroah-Hartman
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
Quoted 4 lines · Desmond Yan (APD)
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
Kconfigoptions just for that, sorry.
Quoted 7 lines
Quoted 2 lines
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_vkdriver 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
Scott Branden
maintainerHi Greg,
Quoted 37 lines · Greg Kroah-Hartman
Quoted 28 lines · Desmond yan
Greg,
Please see inlined.
Quoted 22 lines · Greg Kroah-Hartman
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
Quoted 4 lines · Desmond Yan (APD)
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
Kconfigoptions just for that, sorry.Quoted 7 lines
Quoted 2 lines
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_vkdriver 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.
Quoted 4 lines
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.
Quoted 3 lines
Please resubmit this without the
Kconfigchange 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.
Quoted 4 lines
thanks,
greg k-h
Regards,
Scott
Greg Kroah-Hartman
maintainerQuoted 52 lines · Scott Branden
Hi Greg,
Quoted 37 lines · Greg Kroah-Hartman
Quoted 28 lines · Desmond yan
Greg,
Please see inlined.
Quoted 22 lines · Greg Kroah-Hartman
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
Quoted 4 lines · Desmond Yan (APD)
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
Kconfigoptions just for that, sorry.Quoted 7 lines
Quoted 2 lines
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_vkdriver 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.Quoted 4 lines
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_vkdriver is the official driver for Valkyrie. For Viper, thebcm_vkdriver 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_vkdriver to allow the new production driver to be developed against the upstream kernel and drivers.Quoted 1 line
Quoted 5 lines
Quoted 2 lines
Please resubmit this without the
Kconfigchange 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_vkdriver. The sole purpose of this patch is to add theKconfigoption 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
Scott Branden
maintainerQuoted 55 lines · Greg Kroah-Hartman
Quoted 54 lines · Scott Branden
Hi Greg,
Quoted 37 lines · Greg Kroah-Hartman
Quoted 28 lines · Desmond yan
Greg,
Please see inlined.
Quoted 22 lines · Greg Kroah-Hartman
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
Quoted 4 lines · Desmond Yan (APD)
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
Kconfigoptions just for that, sorry.Quoted 7 lines
Quoted 2 lines
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_vkdriver 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.Quoted 4 lines
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_vkdriver is the official driver for Valkyrie. For Viper, thebcm_vkdriver 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_vkdriver to allow the new production driver to be developed against the upstream kernel and drivers.Quoted 3 lines
Please resubmit this without the
Kconfigchange and I will be glad to take it.
Quoted 7 lines
Quoted 3 lines
I don't understand what there would be to submit? The Viper pci id is already upstreamed into the
bcm_vkdriver. The sole purpose of this patch is to add theKconfigoption 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
Kconfigoptions) 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.
Quoted 6 lines
You know this...
thanks,
greg k-h