[PATCH 01/10] clk: iproc: Add PWRCTRL support

2015-10-02 Thread Jon Mason
to identify this usage. We can use the AON interface to write the values to enable/disable PWRDOWN. Signed-off-by: Jon Mason <jonma...@broadcom.com> --- drivers/clk/bcm/clk-iproc-pll.c | 55 - drivers/clk/bcm/clk-iproc.h | 6 + 2 files chang

[PATCH 03/10] clk: iproc: define Broadcom NSP iProc clock binding

2015-10-02 Thread Jon Mason
Document the device tree bindings for Broadcom Northstar Plus architecture based clock controller Signed-off-by: Jon Mason <jonma...@broadcom.com> --- .../bindings/clock/brcm,iproc-clocks.txt | 30 ++ 1 file changed, 30 insertions(+) diff --git a/Documen

[GIT PULL] NTB bug fixes for v4.3

2015-09-11 Thread Jon Mason
in order of discovery NTB: Clean up QP stats info NTB: Use unique DMA channels for TX and RX Jon Mason (1): NTB: Add list to MAINTAINERS MAINTAINERS | 2 + drivers/net/ntb_netdev.c| 77 ++ drivers/ntb/hw/intel

[GIT PULL] NTB bug fixes for v4.3

2015-09-11 Thread Jon Mason
in order of discovery NTB: Clean up QP stats info NTB: Use unique DMA channels for TX and RX Jon Mason (1): NTB: Add list to MAINTAINERS MAINTAINERS | 2 + drivers/net/ntb_netdev.c| 77 ++ drivers/ntb/hw/intel

[PATCH v4 2/5] ARM: NSP: add minimal Northstar Plus device tree

2015-08-31 Thread Jon Mason
Add a very minimalistic set of Northstar Plus Device Tree files which describes the SoC and the BCM958625 implementation. The perpherials described are: ARM Cortex A9 CPU 2 8250 UARTs ARM GIC PL310 L2 Cache ARM A9 Global timer Signed-off-by: Kapil Hali Signed-off-by: Jon Mason --- arch/arm

Re: [PATCH v3 2/5] ARM: NSP: add minimal Northstar Plus device tree

2015-08-31 Thread Jon Mason
On Mon, Aug 31, 2015 at 04:49:10PM -0500, Rob Herring wrote: > On Mon, Aug 31, 2015 at 2:44 PM, Jon Mason wrote: > > On Mon, Aug 31, 2015 at 12:18:13AM -0700, Ray Jui wrote: > >> > >> > >> On 8/30/2015 7:24 PM, Jon Mason wrote: > >> > On Fri,

Re: [PATCH v3 2/5] ARM: NSP: add minimal Northstar Plus device tree

2015-08-31 Thread Jon Mason
On Mon, Aug 31, 2015 at 12:18:13AM -0700, Ray Jui wrote: > > > On 8/30/2015 7:24 PM, Jon Mason wrote: > > On Fri, Aug 28, 2015 at 05:20:20PM -0700, Ray Jui wrote: > >> > >> > >> On 8/28/2015 4:47 PM, Jon Mason wrote: > >>> Add a very mini

Re: [PATCH v3 2/5] ARM: NSP: add minimal Northstar Plus device tree

2015-08-31 Thread Jon Mason
On Mon, Aug 31, 2015 at 12:18:13AM -0700, Ray Jui wrote: > > > On 8/30/2015 7:24 PM, Jon Mason wrote: > > On Fri, Aug 28, 2015 at 05:20:20PM -0700, Ray Jui wrote: > >> > >> > >> On 8/28/2015 4:47 PM, Jon Mason wrote: > >>> Add a very mini

Re: [PATCH v3 2/5] ARM: NSP: add minimal Northstar Plus device tree

2015-08-31 Thread Jon Mason
On Mon, Aug 31, 2015 at 04:49:10PM -0500, Rob Herring wrote: > On Mon, Aug 31, 2015 at 2:44 PM, Jon Mason <jonma...@broadcom.com> wrote: > > On Mon, Aug 31, 2015 at 12:18:13AM -0700, Ray Jui wrote: > >> > >> > >> On 8/30/2015 7:24 PM, Jon Mason wrote:

[PATCH v4 2/5] ARM: NSP: add minimal Northstar Plus device tree

2015-08-31 Thread Jon Mason
Add a very minimalistic set of Northstar Plus Device Tree files which describes the SoC and the BCM958625 implementation. The perpherials described are: ARM Cortex A9 CPU 2 8250 UARTs ARM GIC PL310 L2 Cache ARM A9 Global timer Signed-off-by: Kapil Hali <kap...@broadcom.com> Signed-off-b

Re: [PATCH v3 2/5] ARM: NSP: add minimal Northstar Plus device tree

2015-08-30 Thread Jon Mason
On Fri, Aug 28, 2015 at 05:20:20PM -0700, Ray Jui wrote: > > > On 8/28/2015 4:47 PM, Jon Mason wrote: > > Add a very minimalistic set of Northstar Plus Device Tree files which > > describes the SoC and the BCM958625 implementation. The perpherials > > described are:

Re: [PATCH v3 2/5] ARM: NSP: add minimal Northstar Plus device tree

2015-08-30 Thread Jon Mason
On Fri, Aug 28, 2015 at 05:20:20PM -0700, Ray Jui wrote: On 8/28/2015 4:47 PM, Jon Mason wrote: Add a very minimalistic set of Northstar Plus Device Tree files which describes the SoC and the BCM958625 implementation. The perpherials described are: ARM Cortex A9 CPU 2 8250 UARTs

[PATCH v3 2/5] ARM: NSP: add minimal Northstar Plus device tree

2015-08-28 Thread Jon Mason
Add a very minimalistic set of Northstar Plus Device Tree files which describes the SoC and the BCM958625 implementation. The perpherials described are: ARM Cortex A9 CPU 2 8250 UARTs ARM GIC PL310 L2 Cache ARM A9 Global timer Signed-off-by: Kapil Hali Signed-off-by: Jon Mason --- arch/arm

[PATCH v3 2/5] ARM: NSP: add minimal Northstar Plus device tree

2015-08-28 Thread Jon Mason
Add a very minimalistic set of Northstar Plus Device Tree files which describes the SoC and the BCM958625 implementation. The perpherials described are: ARM Cortex A9 CPU 2 8250 UARTs ARM GIC PL310 L2 Cache ARM A9 Global timer Signed-off-by: Kapil Hali kap...@broadcom.com Signed-off-by: Jon

[PATCH v2 0/5] Add Broadcom Northstar Plus Support

2015-08-26 Thread Jon Mason
dification to the MAINTAINERS entry Also, modifying the "to" and "cc" recepients so that everyone is receving all of the patches. -- This patch series adds support for the Broadcom Northstar Plus family of SoCs. NSP is a Cortex A9 based SoC under the Broadcom iProc family. Jon Ma

[PATCH v2 2/5] ARM: NSP: add minimal Northstar Plus device tree

2015-08-26 Thread Jon Mason
Add a very minimalistic set of Northstar Plus Device Tree files which describes the SoC and the BCM958625 implementation. The perpherials described are: ARM Cortex A9 CPU 2 8250 UARTs ARM GIC PL310 L2 Cache ARM A9 Global timer Signed-off-by: Kapil Hali Signed-off-by: Jon Mason --- arch/arm

[PATCH v2 3/5] ARM: NSP: Add basic support for Broadcom Northstar Plus SoC

2015-08-26 Thread Jon Mason
Gen-2, USB 2.0 and USB 3.0, serial and NAND flash, SATA and several other IO controllers. Signed-off-by: Kapil Hali Signed-off-by: Jon Mason --- arch/arm/mach-bcm/Kconfig | 14 ++ arch/arm/mach-bcm/Makefile | 5 - arch/arm/mach-bcm/bcm_nsp.c | 25 + 3

[PATCH v2 4/5] ARM: multi_v7_defconfig: Add NSP to defconfig

2015-08-26 Thread Jon Mason
Add the Broadcom Northstar Plus SoC to the multi_v7_defconfig Signed-off-by: Jon Mason --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 5fd8df6..3fd46f7 100644 --- a/arch

[PATCH v2 5/5] MAINTAINERS: add entry for the Broadcom Northstar Plus SoCs

2015-08-26 Thread Jon Mason
the title to avoid any future confusion. Signed-off-by: Jon Mason Acked-by: Scott Branden --- MAINTAINERS | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index a9ae6c1..4b851f5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2315,19 +2315,27

[PATCH v2 1/5] dt-bindings: Create Documentation for NSP DT bindings

2015-08-26 Thread Jon Mason
Add the documentation for the Broadcom Northstar Plus device tree bindings. Signed-off-by: Jon Mason --- .../devicetree/bindings/arm/bcm/brcm,nsp.txt | 34 ++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,nsp.txt

[PATCH v2 1/5] dt-bindings: Create Documentation for NSP DT bindings

2015-08-26 Thread Jon Mason
Add the documentation for the Broadcom Northstar Plus device tree bindings. Signed-off-by: Jon Mason jonma...@broadcom.com --- .../devicetree/bindings/arm/bcm/brcm,nsp.txt | 34 ++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings

[PATCH v2 2/5] ARM: NSP: add minimal Northstar Plus device tree

2015-08-26 Thread Jon Mason
Add a very minimalistic set of Northstar Plus Device Tree files which describes the SoC and the BCM958625 implementation. The perpherials described are: ARM Cortex A9 CPU 2 8250 UARTs ARM GIC PL310 L2 Cache ARM A9 Global timer Signed-off-by: Kapil Hali kap...@broadcom.com Signed-off-by: Jon

[PATCH v2 3/5] ARM: NSP: Add basic support for Broadcom Northstar Plus SoC

2015-08-26 Thread Jon Mason
Gen-2, USB 2.0 and USB 3.0, serial and NAND flash, SATA and several other IO controllers. Signed-off-by: Kapil Hali kap...@broadcom.com Signed-off-by: Jon Mason jonma...@broadcom.com --- arch/arm/mach-bcm/Kconfig | 14 ++ arch/arm/mach-bcm/Makefile | 5 - arch/arm/mach-bcm

[PATCH v2 4/5] ARM: multi_v7_defconfig: Add NSP to defconfig

2015-08-26 Thread Jon Mason
Add the Broadcom Northstar Plus SoC to the multi_v7_defconfig Signed-off-by: Jon Mason jonma...@broadcom.com --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 5fd8df6

[PATCH v2 5/5] MAINTAINERS: add entry for the Broadcom Northstar Plus SoCs

2015-08-26 Thread Jon Mason
the title to avoid any future confusion. Signed-off-by: Jon Mason jonma...@broadcom.com Acked-by: Scott Branden sbran...@broadcom.com --- MAINTAINERS | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index a9ae6c1..4b851f5 100644 --- a/MAINTAINERS

[PATCH v2 0/5] Add Broadcom Northstar Plus Support

2015-08-26 Thread Jon Mason
to the MAINTAINERS entry Also, modifying the to and cc recepients so that everyone is receving all of the patches. -- This patch series adds support for the Broadcom Northstar Plus family of SoCs. NSP is a Cortex A9 based SoC under the Broadcom iProc family. Jon Mason (5): dt-bindings: Create Documentation

[GIT PULL] NTB bug fixes for v4.2

2015-08-09 Thread Jon Mason
Hello Linus, Here are a few NTB bug fixes for 4.2. Please consider pulling them. Thanks, Jon The following changes since commit f7644cbfcdf03528f0f450f3940c4985b2291f49: Linux 4.2-rc6 (2015-08-09 15:54:30 -0400) are available in the git repository at: git://github.com/jonmason/ntb

[GIT PULL] NTB bug fixes for v4.2

2015-08-09 Thread Jon Mason
Hello Linus, Here are a few NTB bug fixes for 4.2. Please consider pulling them. Thanks, Jon The following changes since commit f7644cbfcdf03528f0f450f3940c4985b2291f49: Linux 4.2-rc6 (2015-08-09 15:54:30 -0400) are available in the git repository at: git://github.com/jonmason/ntb

Re: [PATCH] ntb: avoid format string in dev_set_name

2015-07-27 Thread Jon Mason
On Fri, Jul 24, 2015 at 04:35:59PM -0700, Kees Cook wrote: > Avoid any chance of format string expansion when calling dev_set_name. Looks good to me. I'll pull it into my next release. Thanks, Jon > > Signed-off-by: Kees Cook > --- > drivers/ntb/ntb.c | 2 +- > 1 file changed, 1

Re: [PATCH] ntb: avoid format string in dev_set_name

2015-07-27 Thread Jon Mason
On Fri, Jul 24, 2015 at 04:35:59PM -0700, Kees Cook wrote: Avoid any chance of format string expansion when calling dev_set_name. Looks good to me. I'll pull it into my next release. Thanks, Jon Signed-off-by: Kees Cook keesc...@chromium.org --- drivers/ntb/ntb.c | 2 +- 1 file

[GIT PULL] NTB changes for 4.2

2015-07-05 Thread Jon Mason
Hi Linus, Please consider pulling the following for inclusion into 4.2. It includes a pretty significant reworking of the NTB core code, but has already produced some significant perf improvements. Thanks, Jon --- The following changes since commit d8133356e99713bd023b229de107ddd6dd6d375a:

[GIT PULL] NTB changes for 4.2

2015-07-05 Thread Jon Mason
Hi Linus, Please consider pulling the following for inclusion into 4.2. It includes a pretty significant reworking of the NTB core code, but has already produced some significant perf improvements. Thanks, Jon --- The following changes since commit d8133356e99713bd023b229de107ddd6dd6d375a:

[GIT PULL] NTB bug fixes for v4.1

2015-06-13 Thread Jon Mason
fixes to address issues in unmapping the MW reg base and vbase, and an uninitialized variable on Atom platforms. Daniel Verkamp (1): ntb: initialize max_mw for Atom before using it Jon Mason (1): ntb: iounmap MW reg

[GIT PULL] NTB bug fixes for v4.1

2015-06-13 Thread Jon Mason
fixes to address issues in unmapping the MW reg base and vbase, and an uninitialized variable on Atom platforms. Daniel Verkamp (1): ntb: initialize max_mw for Atom before using it Jon Mason (1): ntb: iounmap MW reg

Re: [PATCH 1/1] x86: PCI-Calgary: Deletion of an unnecessary check before the function call "free_tce_table"

2014-11-25 Thread Jon Mason
is issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring Looks good to me Acked-by: Jon Mason > --- > arch/x86/kernel/pci-calgary_64.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/arch/x86/kernel/pci-calgary_

Re: [PATCH 1/1] x86: PCI-Calgary: Deletion of an unnecessary check before the function call free_tce_table

2014-11-25 Thread Jon Mason
the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring elfr...@users.sourceforge.net Looks good to me Acked-by: Jon Mason jdma...@kudzu.us --- arch/x86/kernel/pci-calgary_64.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions

[GIT PULL] NTB bug fixes for v3.18

2014-10-18 Thread Jon Mason
workaround ntb: Adding split BAR support for Haswell platforms Jon Mason (1): NTB: debugfs device entry drivers/ntb/ntb_hw.c | 567 +++-- drivers/ntb/ntb_hw.h | 19 +- drivers/ntb/ntb_regs.h | 38 +++- 3 files changed, 501 insertions

[GIT PULL] NTB bug fixes for v3.18

2014-10-18 Thread Jon Mason
workaround ntb: Adding split BAR support for Haswell platforms Jon Mason (1): NTB: debugfs device entry drivers/ntb/ntb_hw.c | 567 +++-- drivers/ntb/ntb_hw.h | 19 +- drivers/ntb/ntb_regs.h | 38 +++- 3 files changed, 501 insertions

[GIT PULL] NTB bug fixes for v3.17

2014-09-13 Thread Jon Mason
, update to MAINTAINERS to reflect new e-mail address. Dave Jiang (1): ntb: Add alignment check to meet hardware requirement Jon Mason (2): NTB: correct the spread of queues over mw's MAINTAINERS: update NTB info

[GIT PULL] NTB bug fixes for v3.17

2014-09-13 Thread Jon Mason
, update to MAINTAINERS to reflect new e-mail address. Dave Jiang (1): ntb: Add alignment check to meet hardware requirement Jon Mason (2): NTB: correct the spread of queues over mw's MAINTAINERS: update NTB info

Re: [PATCH 6/6] ntb: workaround for high traffic hardware hang

2014-09-07 Thread Jon Mason
On Thu, Aug 28, 2014 at 01:53:29PM -0700, Dave Jiang wrote: > A hardware errata causes the NTB to hang when heavy bi-directional traffic > in addition to the usage of BAR0/1 (where the registers reside, including > the doorbell registers to trigger interrupts). > > This workaround is only

Re: [PATCH 0/6] NTB bug fixes and hardware workarounds

2014-09-07 Thread Jon Mason
On Thu, Aug 28, 2014 at 01:52:57PM -0700, Dave Jiang wrote: > The following series contains various fixes and cleanup for NTB. It also > adds the split BAR support on Haswell platform and a hardware errata > workaround in order to allow interrupts to function during bi-directional > traffic under

Re: [PATCH 0/6] NTB bug fixes and hardware workarounds

2014-09-07 Thread Jon Mason
On Thu, Aug 28, 2014 at 01:52:57PM -0700, Dave Jiang wrote: The following series contains various fixes and cleanup for NTB. It also adds the split BAR support on Haswell platform and a hardware errata workaround in order to allow interrupts to function during bi-directional traffic under

Re: [PATCH 6/6] ntb: workaround for high traffic hardware hang

2014-09-07 Thread Jon Mason
On Thu, Aug 28, 2014 at 01:53:29PM -0700, Dave Jiang wrote: A hardware errata causes the NTB to hang when heavy bi-directional traffic in addition to the usage of BAR0/1 (where the registers reside, including the doorbell registers to trigger interrupts). This workaround is only available on

Re: NTB driver support in haswell platform?

2014-06-11 Thread Jon Mason
On Wed, Jun 11, 2014 at 05:03:38PM +0800, Yijing Wang wrote: > Hi Jon, >I have a Intel Haswell platform in hand, and our team want to use NTB in > this platform. > I checked the current intel NTB driver in Linux kernel, I found the Haswell > NTB pci device id > is not contained in

Re: NTB driver support in haswell platform?

2014-06-11 Thread Jon Mason
On Wed, Jun 11, 2014 at 05:03:38PM +0800, Yijing Wang wrote: Hi Jon, I have a Intel Haswell platform in hand, and our team want to use NTB in this platform. I checked the current intel NTB driver in Linux kernel, I found the Haswell NTB pci device id is not contained in ntb_pci_tbl[]. I

[GIT PULL] NTB bug fixes and features for v3.15

2014-04-10 Thread Jon Mason
() instead of pci_enable_msix() Jon Mason (4): ntb_netdev: Fix list_for_each_entry exit issue ntb_netdev: Fix skb free issue in open NTB: client event cleanup NTB: Code Style Clean-up Roland Dreier (1): NTB: Fix typo in setting one translation register drivers/net

[GIT PULL] NTB bug fixes and features for v3.15

2014-04-10 Thread Jon Mason
() instead of pci_enable_msix() Jon Mason (4): ntb_netdev: Fix list_for_each_entry exit issue ntb_netdev: Fix skb free issue in open NTB: client event cleanup NTB: Code Style Clean-up Roland Dreier (1): NTB: Fix typo in setting one translation register drivers/net

[PATCH 0/9] NTB Update

2014-04-07 Thread Jon Mason
::msix_entries[] array ntb: Use pci_msix_vec_count() to obtain number of MSI-Xs ntb: Split ntb_setup_msix() into separate BWD/SNB routines ntb: Use pci_enable_msix_range() instead of pci_enable_msix() Jon Mason (4): ntb_netdev: Fix list_for_each_entry exit issue ntb_netdev: Fix

[PATCH 4/9] ntb: Fix leakage of ntb_device::msix_entries[] array

2014-04-07 Thread Jon Mason
From: Alexander Gordeev Signed-off-by: Alexander Gordeev Signed-off-by: Jon Mason --- drivers/ntb/ntb_hw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/ntb/ntb_hw.c b/drivers/ntb/ntb_hw.c index 2774d35..0e8ae70 100644 --- a/drivers/ntb/ntb_hw.c +++ b/drivers/ntb/ntb_hw.c

[PATCH 8/9] ntb: Split ntb_setup_msix() into separate BWD/SNB routines

2014-04-07 Thread Jon Mason
pci_enable_msix() until success or failure. Signed-off-by: Alexander Gordeev Signed-off-by: Jon Mason --- drivers/ntb/ntb_hw.c | 167 +++ 1 file changed, 102 insertions(+), 65 deletions(-) diff --git a/drivers/ntb/ntb_hw.c b/drivers/ntb/ntb_hw.c index

[PATCH 7/9] ntb: Use pci_msix_vec_count() to obtain number of MSI-Xs

2014-04-07 Thread Jon Mason
From: Alexander Gordeev Signed-off-by: Alexander Gordeev Signed-off-by: Jon Mason --- drivers/ntb/ntb_hw.c | 15 --- drivers/ntb/ntb_hw.h | 2 -- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/drivers/ntb/ntb_hw.c b/drivers/ntb/ntb_hw.c index eba1ed5..06d605c

[PATCH 3/9] NTB: Fix typo in setting one translation register

2014-04-07 Thread Jon Mason
effect, at least for now: the low 32 bits of both constants are actually identical anyway. However, it's clearer and safer to use the right name. Signed-off-by: Roland Dreier Signed-off-by: Jon Mason --- drivers/ntb/ntb_hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 1/9] ntb_netdev: Fix list_for_each_entry exit issue

2014-04-07 Thread Jon Mason
If list_for_each_entry exits without finding the ntb_device, the dev pointer will not be NULL. Thus the check will never be true and the code will not exit when it should. Correct this by adding a bool to determine when the device is found, otherwise exit in good fashion. Signed-off-by: Jon

[PATCH 5/9] NTB: client event cleanup

2014-04-07 Thread Jon Mason
Provide a better event interface between the client and transport Signed-off-by: Jon Mason --- drivers/net/ntb_netdev.c| 16 drivers/ntb/ntb_hw.h| 4 +--- drivers/ntb/ntb_transport.c | 1 - include/linux/ntb.h | 5 + 4 files changed, 18 insertions

[PATCH 9/9] ntb: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-04-07 Thread Jon Mason
() or pci_enable_msix_exact() interfaces. Signed-off-by: Alexander Gordeev Signed-off-by: Jon Mason --- drivers/ntb/ntb_hw.c | 20 +--- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/drivers/ntb/ntb_hw.c b/drivers/ntb/ntb_hw.c index 22a7eb4..372e08c 100644 --- a/drivers/ntb/ntb_hw.c

[PATCH 2/9] ntb_netdev: Fix skb free issue in open

2014-04-07 Thread Jon Mason
In ntb_netdev_open, when ntb_transport_rx_enqueue fails the skb that was attempting to be enqueued is not freed. Free this skb on the ntb_transport_rx_enqueue error. Signed-off-by: Jon Mason --- drivers/net/ntb_netdev.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH 6/9] NTB: Code Style Clean-up

2014-04-07 Thread Jon Mason
Some white space and 80 char overruns corrected. Signed-off-by: Jon Mason --- drivers/net/ntb_netdev.c| 2 +- drivers/ntb/ntb_hw.c| 19 ++- drivers/ntb/ntb_hw.h| 2 +- drivers/ntb/ntb_transport.c | 19 +-- include/linux/ntb.h | 14

[PATCH 6/9] NTB: Code Style Clean-up

2014-04-07 Thread Jon Mason
Some white space and 80 char overruns corrected. Signed-off-by: Jon Mason jon.ma...@intel.com --- drivers/net/ntb_netdev.c| 2 +- drivers/ntb/ntb_hw.c| 19 ++- drivers/ntb/ntb_hw.h| 2 +- drivers/ntb/ntb_transport.c | 19 +-- include/linux

[PATCH 2/9] ntb_netdev: Fix skb free issue in open

2014-04-07 Thread Jon Mason
In ntb_netdev_open, when ntb_transport_rx_enqueue fails the skb that was attempting to be enqueued is not freed. Free this skb on the ntb_transport_rx_enqueue error. Signed-off-by: Jon Mason jon.ma...@intel.com --- drivers/net/ntb_netdev.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion

[PATCH 5/9] NTB: client event cleanup

2014-04-07 Thread Jon Mason
Provide a better event interface between the client and transport Signed-off-by: Jon Mason jon.ma...@intel.com --- drivers/net/ntb_netdev.c| 16 drivers/ntb/ntb_hw.h| 4 +--- drivers/ntb/ntb_transport.c | 1 - include/linux/ntb.h | 5 + 4 files changed

[PATCH 9/9] ntb: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-04-07 Thread Jon Mason
() or pci_enable_msix_exact() interfaces. Signed-off-by: Alexander Gordeev agord...@redhat.com Signed-off-by: Jon Mason jon.ma...@intel.com --- drivers/ntb/ntb_hw.c | 20 +--- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/drivers/ntb/ntb_hw.c b/drivers/ntb/ntb_hw.c

[PATCH 1/9] ntb_netdev: Fix list_for_each_entry exit issue

2014-04-07 Thread Jon Mason
If list_for_each_entry exits without finding the ntb_device, the dev pointer will not be NULL. Thus the check will never be true and the code will not exit when it should. Correct this by adding a bool to determine when the device is found, otherwise exit in good fashion. Signed-off-by: Jon

[PATCH 7/9] ntb: Use pci_msix_vec_count() to obtain number of MSI-Xs

2014-04-07 Thread Jon Mason
From: Alexander Gordeev agord...@redhat.com Signed-off-by: Alexander Gordeev agord...@redhat.com Signed-off-by: Jon Mason jon.ma...@intel.com --- drivers/ntb/ntb_hw.c | 15 --- drivers/ntb/ntb_hw.h | 2 -- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/drivers/ntb

[PATCH 3/9] NTB: Fix typo in setting one translation register

2014-04-07 Thread Jon Mason
has no practical effect, at least for now: the low 32 bits of both constants are actually identical anyway. However, it's clearer and safer to use the right name. Signed-off-by: Roland Dreier rol...@purestorage.com Signed-off-by: Jon Mason jon.ma...@intel.com --- drivers/ntb/ntb_hw.c | 2 +- 1

[PATCH 8/9] ntb: Split ntb_setup_msix() into separate BWD/SNB routines

2014-04-07 Thread Jon Mason
- looping pci_enable_msix() until success or failure. Signed-off-by: Alexander Gordeev agord...@redhat.com Signed-off-by: Jon Mason jon.ma...@intel.com --- drivers/ntb/ntb_hw.c | 167 +++ 1 file changed, 102 insertions(+), 65 deletions(-) diff

[PATCH 0/9] NTB Update

2014-04-07 Thread Jon Mason
::msix_entries[] array ntb: Use pci_msix_vec_count() to obtain number of MSI-Xs ntb: Split ntb_setup_msix() into separate BWD/SNB routines ntb: Use pci_enable_msix_range() instead of pci_enable_msix() Jon Mason (4): ntb_netdev: Fix list_for_each_entry exit issue ntb_netdev: Fix

[PATCH 4/9] ntb: Fix leakage of ntb_device::msix_entries[] array

2014-04-07 Thread Jon Mason
From: Alexander Gordeev agord...@redhat.com Signed-off-by: Alexander Gordeev agord...@redhat.com Signed-off-by: Jon Mason jon.ma...@intel.com --- drivers/ntb/ntb_hw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/ntb/ntb_hw.c b/drivers/ntb/ntb_hw.c index 2774d35..0e8ae70 100644

Re: [PATCH v2 3/4] ntb: Split ntb_setup_msix() into separate BWD/SNB routines

2014-03-11 Thread Jon Mason
tializes MSI-Xs the > way it should has been done - looping pci_enable_msix() > until success or failure. > > Signed-off-by: Alexander Gordeev > Cc: Jon Mason Looks good. I will include it in my next release of the NTB driver (e.g. 3.15). Thanks, Jon > Cc: linux-...@vge

Re: [PATCH v2 4/4] ntb: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-03-11 Thread Jon Mason
le_msi_range() or pci_enable_msi_exact() > and pci_enable_msix_range() or pci_enable_msix_exact() > interfaces. > > Signed-off-by: Alexander Gordeev > Cc: Jon Mason Looks good. I will include it in my next release of the NTB driver (e.g. 3.15). Thanks, Jon > Cc: linux-...@vger.kernel.org > -

Re: [PATCH v2 3/4] ntb: Split ntb_setup_msix() into separate BWD/SNB routines

2014-03-11 Thread Jon Mason
the way it should has been done - looping pci_enable_msix() until success or failure. Signed-off-by: Alexander Gordeev agord...@redhat.com Cc: Jon Mason jon.ma...@intel.com Looks good. I will include it in my next release of the NTB driver (e.g. 3.15). Thanks, Jon Cc: linux

Re: [PATCH v2 4/4] ntb: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-03-11 Thread Jon Mason
() and pci_enable_msix_range() or pci_enable_msix_exact() interfaces. Signed-off-by: Alexander Gordeev agord...@redhat.com Cc: Jon Mason jon.ma...@intel.com Looks good. I will include it in my next release of the NTB driver (e.g. 3.15). Thanks, Jon Cc: linux-...@vger.kernel.org

Re: [PATCH v2] x86, calgary: use 8M TCE table size by default

2014-03-10 Thread Jon Mason
On Mon, Mar 10, 2014 at 8:54 AM, Muli Ben-Yehuda wrote: > Patch looks good to me. > > Acked-by: Muli Ben-Yehuda Me too (just in case you want us both). Acked-by: Jon Mason > > Cheers, > Muli -- To unsubscribe from this list: send the line "unsubscribe linux-kernel&qu

Re: How could we get rid of saved_max_pfn for calgary iommu?

2014-03-10 Thread Jon Mason
On Sun, Mar 9, 2014 at 12:06 AM, Muli Ben-Yehuda wrote: > On Thu, Mar 06, 2014 at 07:46:44AM -0700, Jon Mason wrote: > >> > I don't know of anyone still using it, but it's not >> > impossible. Calgary and CalIOC2 machines would now be ~5-8 years >> > old. >>

Re: [PATCH v2 3/4] ntb: Split ntb_setup_msix() into separate BWD/SNB routines

2014-03-10 Thread Jon Mason
On Tue, Mar 04, 2014 at 05:41:28PM +0100, Alexander Gordeev wrote: > On Mon, Mar 03, 2014 at 05:12:25PM -0700, Jon Mason wrote: > > On Fri, Feb 21, 2014 at 04:49:31PM +0100, Alexander Gordeev wrote: > > > This is an cleanup effort to make ntb_setup_msix() more &g

Re: [PATCH v2 3/4] ntb: Split ntb_setup_msix() into separate BWD/SNB routines

2014-03-10 Thread Jon Mason
On Tue, Mar 04, 2014 at 05:41:28PM +0100, Alexander Gordeev wrote: On Mon, Mar 03, 2014 at 05:12:25PM -0700, Jon Mason wrote: On Fri, Feb 21, 2014 at 04:49:31PM +0100, Alexander Gordeev wrote: This is an cleanup effort to make ntb_setup_msix() more readable - use ntb_setup_bwd_msix

Re: How could we get rid of saved_max_pfn for calgary iommu?

2014-03-10 Thread Jon Mason
On Sun, Mar 9, 2014 at 12:06 AM, Muli Ben-Yehuda m...@cs.technion.ac.il wrote: On Thu, Mar 06, 2014 at 07:46:44AM -0700, Jon Mason wrote: I don't know of anyone still using it, but it's not impossible. Calgary and CalIOC2 machines would now be ~5-8 years old. It is getting a bit crufty

Re: [PATCH v2] x86, calgary: use 8M TCE table size by default

2014-03-10 Thread Jon Mason
On Mon, Mar 10, 2014 at 8:54 AM, Muli Ben-Yehuda m...@cs.technion.ac.il wrote: Patch looks good to me. Acked-by: Muli Ben-Yehuda mu...@mulix.org Me too (just in case you want us both). Acked-by: Jon Mason jdma...@kudzu.us Cheers, Muli -- To unsubscribe from this list: send the line

Re: How could we get rid of saved_max_pfn for calgary iommu?

2014-03-06 Thread Jon Mason
On Thu, Mar 6, 2014 at 12:00 AM, Muli Ben-Yehuda wrote: > On Wed, Mar 05, 2014 at 10:50:41PM -0800, H. Peter Anvin wrote: > >> OK, second question... is it time to axe Calgary? > > I don't know of anyone still using it, but it's not > impossible. Calgary and CalIOC2 machines would now be ~5-8

Re: How could we get rid of saved_max_pfn for calgary iommu?

2014-03-06 Thread Jon Mason
On Thu, Mar 6, 2014 at 12:00 AM, Muli Ben-Yehuda m...@cs.technion.ac.il wrote: On Wed, Mar 05, 2014 at 10:50:41PM -0800, H. Peter Anvin wrote: OK, second question... is it time to axe Calgary? I don't know of anyone still using it, but it's not impossible. Calgary and CalIOC2 machines would

Re: [PATCH v2 2/4] ntb: Use pci_msix_vec_count() to obtain number of MSI-Xs

2014-03-03 Thread Jon Mason
On Fri, Feb 21, 2014 at 04:49:30PM +0100, Alexander Gordeev wrote: > Signed-off-by: Alexander Gordeev > Cc: Jon Mason Looks good. Pulling into my tree. Thanks, Jon > Cc: linux-...@vger.kernel.org > --- > drivers/ntb/ntb_hw.c | 15 --- > drivers/ntb/ntb_h

Re: [PATCH v2 3/4] ntb: Split ntb_setup_msix() into separate BWD/SNB routines

2014-03-03 Thread Jon Mason
tializes MSI-Xs the > way it should has been done - looping pci_enable_msix() > until success or failure. > > Signed-off-by: Alexander Gordeev > Cc: Jon Mason > Cc: linux-...@vger.kernel.org > --- > drivers/ntb/ntb_hw.c | 170 > +++-

Re: [PATCH v2 3/4] ntb: Split ntb_setup_msix() into separate BWD/SNB routines

2014-03-03 Thread Jon Mason
the way it should has been done - looping pci_enable_msix() until success or failure. Signed-off-by: Alexander Gordeev agord...@redhat.com Cc: Jon Mason jon.ma...@intel.com Cc: linux-...@vger.kernel.org --- drivers/ntb/ntb_hw.c | 170 +++--- 1

Re: [PATCH v2 2/4] ntb: Use pci_msix_vec_count() to obtain number of MSI-Xs

2014-03-03 Thread Jon Mason
On Fri, Feb 21, 2014 at 04:49:30PM +0100, Alexander Gordeev wrote: Signed-off-by: Alexander Gordeev agord...@redhat.com Cc: Jon Mason jon.ma...@intel.com Looks good. Pulling into my tree. Thanks, Jon Cc: linux-...@vger.kernel.org --- drivers/ntb/ntb_hw.c | 15 --- drivers

[PATCH 2/2] staging/rtl8192e: Remove unused code

2014-02-24 Thread Jon Mason
Remove unused #defines, structure, and inlined functions for the rtl8192e driver. Compile tested only. Signed-off-by: Jon Mason Cc: Greg Kroah-Hartman --- drivers/staging/rtl8192e/rtl8192e/rtl_pci.h | 52 - 1 file changed, 52 deletions(-) diff --git a/drivers

[PATCH 1/2] staging/dt3155v4l: use PCI_VENDOR_ID_INTEL

2014-02-24 Thread Jon Mason
Use PCI_VENDOR_ID_INTEL instead of creating its own vendor ID #define. Signed-off-by: Jon Mason Cc: Greg Kroah-Hartman --- drivers/staging/media/dt3155v4l/dt3155v4l.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/media/dt3155v4l/dt3155v4l.c b/drivers

[PATCH 2/2] staging/rtl8192e: Remove unused code

2014-02-24 Thread Jon Mason
Remove unused #defines, structure, and inlined functions for the rtl8192e driver. Compile tested only. Signed-off-by: Jon Mason jdma...@kudzu.us Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/rtl8192e/rtl8192e/rtl_pci.h | 52 - 1 file changed

[PATCH 1/2] staging/dt3155v4l: use PCI_VENDOR_ID_INTEL

2014-02-24 Thread Jon Mason
Use PCI_VENDOR_ID_INTEL instead of creating its own vendor ID #define. Signed-off-by: Jon Mason jdma...@kudzu.us Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/media/dt3155v4l/dt3155v4l.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging

Re: [PATCH v2 1/4] ntb: Fix leakage of ntb_device::msix_entries[] array

2014-02-21 Thread Jon Mason
On Fri, Feb 21, 2014 at 04:49:29PM +0100, Alexander Gordeev wrote: > Signed-off-by: Alexander Gordeev > Cc: Jon Mason > Cc: linux-...@vger.kernel.org Good catch. Applied. > --- > drivers/ntb/ntb_hw.c |1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > >

Re: [PATCH] NTB: Fix typo in setting one translation register

2014-02-21 Thread Jon Mason
On Fri, Feb 21, 2014 at 08:07:21AM -0800, Roland Dreier wrote: > From: Roland Dreier > > In the code for Xeon devices in back-to-back mode with xeon_errata_workaround > disabled, the downstream device puts the wrong value in SNB_B2B_XLAT_OFFSETL > (SNB_MBAR01_DSD_ADDR vs. SNB_MBAR01_USD_ADDR). >

Re: [PATCH] NTB: Fix typo in setting one translation register

2014-02-21 Thread Jon Mason
On Fri, Feb 21, 2014 at 08:07:21AM -0800, Roland Dreier wrote: From: Roland Dreier rol...@purestorage.com In the code for Xeon devices in back-to-back mode with xeon_errata_workaround disabled, the downstream device puts the wrong value in SNB_B2B_XLAT_OFFSETL (SNB_MBAR01_DSD_ADDR vs.

Re: [PATCH v2 1/4] ntb: Fix leakage of ntb_device::msix_entries[] array

2014-02-21 Thread Jon Mason
On Fri, Feb 21, 2014 at 04:49:29PM +0100, Alexander Gordeev wrote: Signed-off-by: Alexander Gordeev agord...@redhat.com Cc: Jon Mason jon.ma...@intel.com Cc: linux-...@vger.kernel.org Good catch. Applied. --- drivers/ntb/ntb_hw.c |1 + 1 files changed, 1 insertions(+), 0 deletions

Re: How could we get rid of saved_max_pfn for calgary iommu?

2014-02-19 Thread Jon Mason
On Tue, Feb 18, 2014 at 11:18 PM, WANG Chao wrote: > Hi, All > > arch/x86/kernel/pci-calgary.c is the only user of saved_max_pfn today: > > int __init detect_calgary(void) > { > [..] > specified_table_size = determine_tce_table_size((is_kdump_kernel() ? >

Re: [PATCH] ntb: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-19 Thread Jon Mason
On Wed, Feb 19, 2014 at 08:22:55PM +0100, Alexander Gordeev wrote: > On Wed, Feb 19, 2014 at 11:09:27AM -0700, Jon Mason wrote: > > > diff --git a/drivers/ntb/ntb_hw.c b/drivers/ntb/ntb_hw.c > > > index 170e8e6..fda37eb 100644 > > > --- a/drivers/ntb/ntb_hw.c &g

Re: [PATCH] ntb: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-19 Thread Jon Mason
le_msi_range() and pci_enable_msix_range() > interfaces. > > Signed-off-by: Alexander Gordeev > Cc: Jon Mason > Cc: linux-...@vger.kernel.org > --- > drivers/ntb/ntb_hw.c | 43 --- > drivers/ntb/ntb_hw.h |2 -- > 2 files changed, 16 inserti

Re: [PATCH] ntb: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-19 Thread Jon Mason
() interfaces. Signed-off-by: Alexander Gordeev agord...@redhat.com Cc: Jon Mason jon.ma...@intel.com Cc: linux-...@vger.kernel.org --- drivers/ntb/ntb_hw.c | 43 --- drivers/ntb/ntb_hw.h |2 -- 2 files changed, 16 insertions(+), 29 deletions

Re: [PATCH] ntb: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-19 Thread Jon Mason
On Wed, Feb 19, 2014 at 08:22:55PM +0100, Alexander Gordeev wrote: On Wed, Feb 19, 2014 at 11:09:27AM -0700, Jon Mason wrote: diff --git a/drivers/ntb/ntb_hw.c b/drivers/ntb/ntb_hw.c index 170e8e6..fda37eb 100644 --- a/drivers/ntb/ntb_hw.c +++ b/drivers/ntb/ntb_hw.c @@ -1085,21

Re: How could we get rid of saved_max_pfn for calgary iommu?

2014-02-19 Thread Jon Mason
On Tue, Feb 18, 2014 at 11:18 PM, WANG Chao chaow...@redhat.com wrote: Hi, All arch/x86/kernel/pci-calgary.c is the only user of saved_max_pfn today: int __init detect_calgary(void) { [..] specified_table_size = determine_tce_table_size((is_kdump_kernel() ?

[GIT PULL] NTB bug fixes and features for v3.13

2013-11-22 Thread Jon Mason
. Alexander Gordeev (1): ntb: Fix missed call to pci_enable_msix() Jon Mason (7): NTB: Xeon Doorbell errata workaround NTB: Fix NTB-RP Link Up NTB: Fix ntb_transport link down race NTB: correct dmaengine_get/put usage NTB: Document HW

[GIT PULL] NTB bug fixes and features for v3.13

2013-11-22 Thread Jon Mason
. Alexander Gordeev (1): ntb: Fix missed call to pci_enable_msix() Jon Mason (7): NTB: Xeon Doorbell errata workaround NTB: Fix NTB-RP Link Up NTB: Fix ntb_transport link down race NTB: correct dmaengine_get/put usage NTB: Document HW

<    7   8   9   10   11   12   13   14   15   16   >