RE: [EXT] Re: vfio-pci: protect remap_pfn_range() from simultaneous calls

2021-03-07 Thread Bharat Bhushan
> -Original Message- > From: Ankur Arora > Sent: Monday, March 8, 2021 12:29 PM > To: Bharat Bhushan > Cc: alex.william...@redhat.com; linux-kernel@vger.kernel.org; Sunil Kovvuri > Goutham ; termi...@gmail.com > Subject: Re: [EXT] Re: vfio-pci: protect r

RE: [EXT] Re: vfio-pci: protect remap_pfn_range() from simultaneous calls

2021-03-02 Thread Bharat Bhushan
Hi Ankur, > -Original Message- > From: Ankur Arora > Sent: Friday, February 26, 2021 6:24 AM > To: Bharat Bhushan > Cc: alex.william...@redhat.com; ankur.a.ar...@oracle.com; linux- > ker...@vger.kernel.org; Sunil Kovvuri Goutham ; > termi...@gmail.com > Sub

RE: [EXT] Re: vfio-pci: protect remap_pfn_range() from simultaneous calls

2021-01-19 Thread Bharat Bhushan
Hi Ankur, > -Original Message- > From: Ankur Arora > Sent: Wednesday, January 6, 2021 11:44 PM > To: Bharat Bhushan ; alex.william...@redhat.com > Cc: linux-kernel@vger.kernel.org; Sunil Kovvuri Goutham > > Subject: [EXT] Re: vfio-pci: protect remap_pfn_range() fr

RE: [EXT] Re: vfio-pci: protect remap_pfn_range() from simultaneous calls

2021-01-06 Thread Bharat Bhushan
> -Original Message- > From: Ankur Arora > Sent: Wednesday, January 6, 2021 11:44 PM > To: Bharat Bhushan ; alex.william...@redhat.com > Cc: linux-kernel@vger.kernel.org; Sunil Kovvuri Goutham > > Subject: [EXT] Re: vfio-pci: protect remap_pfn_range() fr

vfio-pci: protect remap_pfn_range() from simultaneous calls

2021-01-06 Thread Bharat Bhushan
Hi Ankur, We are observing below BUG_ON() with latest kernel [10011.321645] [ cut here ] [10011.322262] kernel BUG at mm/memory.c:1816! [10011.323793] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP [10011.326108] CPU: 2 PID: 1147 Comm: odp_l2fwd Not tainted

[PATCH v6] iommu/virtio: Use page size bitmap supported by endpoint

2020-05-14 Thread Bharat Bhushan
to use domain supported page sizes only. Signed-off-by: Bharat Bhushan --- v5->v6 - property length before dereference - Error out on no supported page sizes (page-size-mask is zero) - Allow device to attach to domain even it supports minimum of domain supported page sizes. In that c

[PATCH v6] iommu/virtio: Use page size bitmap supported by endpoint

2020-05-14 Thread Bharat Bhushan
to use domain supported page sizes only. Signed-off-by: Bharat Bhushan --- v5->v6 - property length before dereference - Error out on no supported page sizes (page-size-mask is zero) - Allow device to attach to domain even it supports minimum of domain supported page sizes. In that c

RE: [EXT] Re: [PATCH v5] iommu/virtio: Use page size bitmap supported by endpoint

2020-05-13 Thread Bharat Bhushan
Hi Jean, > -Original Message- > From: Michael S. Tsirkin > Sent: Wednesday, May 6, 2020 5:53 AM > To: Bharat Bhushan > Cc: jean-phili...@linaro.org; j...@8bytes.org; jasow...@redhat.com; > virtualizat...@lists.linux-foundation.org; io...@lists.linux-foundation.o

RE: [EXT] Re: [PATCH v5] iommu/virtio: Use page size bitmap supported by endpoint

2020-05-07 Thread Bharat Bhushan
> -Original Message- > From: Michael S. Tsirkin > Sent: Wednesday, May 6, 2020 5:53 AM > To: Bharat Bhushan > Cc: jean-phili...@linaro.org; j...@8bytes.org; jasow...@redhat.com; > virtualizat...@lists.linux-foundation.org; io...@lists.linux-foundation.o

[PATCH v5] iommu/virtio: Use page size bitmap supported by endpoint

2020-05-05 Thread Bharat Bhushan
Different endpoint can support different page size, probe endpoint if it supports specific page size otherwise use global page sizes. Signed-off-by: Bharat Bhushan --- v4->v5: - Rebase to Linux v5.7-rc4 v3->v4: - Fix whitespace error v2->v3: - Fixed error return for incompatible

RE: [PATCH] soc: fsl: dpio: fix cpu range check

2019-01-14 Thread Bharat Bhushan
> -Original Message- > From: Li Yang > Sent: Tuesday, January 15, 2019 12:47 AM > To: Bharat Bhushan > Cc: Roy Pledge ; linux-kernel@vger.kernel.org; > linuxppc-...@lists.ozlabs.org; linux-arm-ker...@lists.infradead.org; > bharatb.ya...@gmail.com > Subject: Re

[PATCH] soc: fsl: dpio: fix cpu range check

2019-01-13 Thread Bharat Bhushan
cpu_possible(cpu) will always return true when cpu parameter is from cpumask_next(). Check for nr_cpu_ids rather than !cpu_possible(cpu). Signed-off-by: Bharat Bhushan --- drivers/soc/fsl/dpio/dpio-driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/fsl/dpio

RE: [PATCH] PCI: Mark NXP LS1088 to avoid bus reset bus

2018-12-03 Thread Bharat Bhushan
Hi Alex, > -Original Message- > From: Alex Williamson > Sent: Friday, November 30, 2018 9:49 PM > To: Bharat Bhushan > Cc: Bjorn Helgaas ; Bjorn Helgaas > ; linux-...@vger.kernel.org; Linux Kernel Mailing List > ; bharatb.ya...@gmail.com; David Daney > ; jgla

RE: [PATCH] PCI: Mark NXP LS1088 to avoid bus reset bus

2018-12-03 Thread Bharat Bhushan
Hi Alex, > -Original Message- > From: Alex Williamson > Sent: Friday, November 30, 2018 9:49 PM > To: Bharat Bhushan > Cc: Bjorn Helgaas ; Bjorn Helgaas > ; linux-...@vger.kernel.org; Linux Kernel Mailing List > ; bharatb.ya...@gmail.com; David Daney > ; jgla

RE: [PATCH] PCI: Mark NXP LS1088 to avoid bus reset bus

2018-11-29 Thread Bharat Bhushan
Hi Alex, > -Original Message- > From: Alex Williamson > Sent: Friday, November 30, 2018 11:26 AM > To: Bharat Bhushan > Cc: Bjorn Helgaas ; Bjorn Helgaas > ; linux-...@vger.kernel.org; Linux Kernel Mailing List > ; bharatb.ya...@gmail.com; David Daney > ; jgla

RE: [PATCH] PCI: Mark NXP LS1088 to avoid bus reset bus

2018-11-29 Thread Bharat Bhushan
Hi Alex, > -Original Message- > From: Alex Williamson > Sent: Friday, November 30, 2018 11:26 AM > To: Bharat Bhushan > Cc: Bjorn Helgaas ; Bjorn Helgaas > ; linux-...@vger.kernel.org; Linux Kernel Mailing List > ; bharatb.ya...@gmail.com; David Daney > ; jgla

RE: [PATCH] PCI: Mark NXP LS1088 to avoid bus reset bus

2018-11-29 Thread Bharat Bhushan
Hi, > -Original Message- > From: Bjorn Helgaas > Sent: Thursday, November 29, 2018 1:46 AM > To: Bharat Bhushan > Cc: alex.william...@redhat.com; Bjorn Helgaas ; linux- > p...@vger.kernel.org; Linux Kernel Mailing List ker...@vger.kernel.org>; bharatb.ya...@g

RE: [PATCH] PCI: Mark NXP LS1088 to avoid bus reset bus

2018-11-29 Thread Bharat Bhushan
Hi, > -Original Message- > From: Bjorn Helgaas > Sent: Thursday, November 29, 2018 1:46 AM > To: Bharat Bhushan > Cc: alex.william...@redhat.com; Bjorn Helgaas ; linux- > p...@vger.kernel.org; Linux Kernel Mailing List ker...@vger.kernel.org>; bharatb.ya...@g

RE: [PATCH] PCI: Mark NXP LS1088 to avoid bus reset bus

2018-11-27 Thread Bharat Bhushan
Hi, > -Original Message- > From: Alex Williamson > Sent: Tuesday, November 27, 2018 9:39 PM > To: Bjorn Helgaas > Cc: Bharat Bhushan ; linux-...@vger.kernel.org; > linux-kernel@vger.kernel.org; bharatb.ya...@gmail.com; David Daney > ; Jan Glauber ; Maik &g

RE: [PATCH] PCI: Mark NXP LS1088 to avoid bus reset bus

2018-11-27 Thread Bharat Bhushan
Hi, > -Original Message- > From: Alex Williamson > Sent: Tuesday, November 27, 2018 9:39 PM > To: Bjorn Helgaas > Cc: Bharat Bhushan ; linux-...@vger.kernel.org; > linux-kernel@vger.kernel.org; bharatb.ya...@gmail.com; David Daney > ; Jan Glauber ; Maik &g

[PATCH] PCI: Mark NXP LS1088 to avoid bus reset bus

2018-11-27 Thread Bharat Bhushan
NXP (Freescale Vendor ID) LS1088 chips do not behave correctly after bus reset with e1000e. Link state of device does not comes UP and so config space never accessible again. Signed-off-by: Bharat Bhushan --- drivers/pci/quirks.c | 7 +++ 1 file changed, 7 insertions(+) diff --git

[PATCH] PCI: Mark NXP LS1088 to avoid bus reset bus

2018-11-27 Thread Bharat Bhushan
NXP (Freescale Vendor ID) LS1088 chips do not behave correctly after bus reset with e1000e. Link state of device does not comes UP and so config space never accessible again. Signed-off-by: Bharat Bhushan --- drivers/pci/quirks.c | 7 +++ 1 file changed, 7 insertions(+) diff --git

RE: [RFC 5/5] powerpc/fsl: Add supported-irq-ranges for P2020

2018-08-07 Thread Bharat Bhushan
> -Original Message- > From: Scott Wood [mailto:o...@buserror.net] > Sent: Wednesday, August 8, 2018 2:44 AM > To: Bharat Bhushan ; > b...@kernel.crashing.org; pau...@samba.org; m...@ellerman.id.au; > ga...@kernel.crashing.org; mark.rutl...@arm.com; > kstew...@lin

RE: [RFC 5/5] powerpc/fsl: Add supported-irq-ranges for P2020

2018-08-07 Thread Bharat Bhushan
> -Original Message- > From: Scott Wood [mailto:o...@buserror.net] > Sent: Wednesday, August 8, 2018 2:44 AM > To: Bharat Bhushan ; > b...@kernel.crashing.org; pau...@samba.org; m...@ellerman.id.au; > ga...@kernel.crashing.org; mark.rutl...@arm.com; > kstew...@lin

RE: [RFC 3/5] powerpc/mpic: Add support for non-contiguous irq ranges

2018-08-07 Thread Bharat Bhushan
> -Original Message- > From: Scott Wood [mailto:o...@buserror.net] > Sent: Wednesday, August 8, 2018 2:34 AM > To: Rob Herring ; Bharat Bhushan > > Cc: b...@kernel.crashing.org; pau...@samba.org; m...@ellerman.id.au; > ga...@kernel.crashing.org; mark.rut

RE: [RFC 3/5] powerpc/mpic: Add support for non-contiguous irq ranges

2018-08-07 Thread Bharat Bhushan
> -Original Message- > From: Scott Wood [mailto:o...@buserror.net] > Sent: Wednesday, August 8, 2018 2:34 AM > To: Rob Herring ; Bharat Bhushan > > Cc: b...@kernel.crashing.org; pau...@samba.org; m...@ellerman.id.au; > ga...@kernel.crashing.org; mark.rut

RE: [PATCH] powerpc/mpic: Cleanup irq vector accounting

2018-07-05 Thread Bharat Bhushan
> -Original Message- > From: Michael Ellerman [mailto:m...@ellerman.id.au] > Sent: Wednesday, July 4, 2018 6:57 PM > To: Bharat Bhushan ; > b...@kernel.crashing.org; pau...@samba.org; r...@kernel.org; > ge...@infradead.org; tyr...@linux.vnet.ibm.com; linuxppc- >

RE: [PATCH] powerpc/mpic: Cleanup irq vector accounting

2018-07-05 Thread Bharat Bhushan
> -Original Message- > From: Michael Ellerman [mailto:m...@ellerman.id.au] > Sent: Wednesday, July 4, 2018 6:57 PM > To: Bharat Bhushan ; > b...@kernel.crashing.org; pau...@samba.org; r...@kernel.org; > ge...@infradead.org; tyr...@linux.vnet.ibm.com; linuxppc- >

RE: [upstream-release] [PATCH] irqchip/ls-scfg-msi: map MSIs in the iommu

2018-06-06 Thread Bharat Bhushan
> > Signed-off-by: Laurentiu Tudor Reviewed-by: Bharat Bhushan Thanks -Bharat > --- > drivers/irqchip/irq-ls-scfg-msi.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/irqchip/irq-ls-scfg-msi.c > b/drivers/irqchip/irq-ls-scfg-msi.c > index 57e3d9

RE: [upstream-release] [PATCH] irqchip/ls-scfg-msi: map MSIs in the iommu

2018-06-06 Thread Bharat Bhushan
> > Signed-off-by: Laurentiu Tudor Reviewed-by: Bharat Bhushan Thanks -Bharat > --- > drivers/irqchip/irq-ls-scfg-msi.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/irqchip/irq-ls-scfg-msi.c > b/drivers/irqchip/irq-ls-scfg-msi.c > index 57e3d9

RE: [PATCH 2/6 v2] iommu: of: make of_pci_map_rid() available for other devices too

2018-04-17 Thread Bharat Bhushan
xppc- > d...@lists.ozlabs.org; linux-...@vger.kernel.org; Bharat Bhushan > <bharat.bhus...@nxp.com>; stuyo...@gmail.com; Laurentiu Tudor > <laurentiu.tu...@nxp.com>; Leo Li <leoyang...@nxp.com> > Subject: Re: [PATCH 2/6 v2] iommu: of: make of_pci_map_rid() available for > other

RE: [PATCH 2/6 v2] iommu: of: make of_pci_map_rid() available for other devices too

2018-04-17 Thread Bharat Bhushan
> h...@lst.de; gre...@linuxfoundation.org; j...@8bytes.org; > m.szyprow...@samsung.com; shawn...@kernel.org; bhelg...@google.com; > io...@lists.linux-foundation.org; linux-kernel@vger.kernel.org; > devicet...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; linuxppc- > d...@lists.ozlabs.org;

RE: [PATCH v2 1/2] dma-mapping: move dma configuration to bus infrastructure

2018-03-21 Thread Bharat Bhushan
- > ker...@vger.kernel.org; io...@lists.linux-foundation.org; linux- > wirel...@vger.kernel.org; linux-arm-...@vger.kernel.org; linux- > s...@vger.kernel.org; dmaeng...@vger.kernel.org; dri- > de...@lists.freedesktop.org; linux-te...@vger.kernel.org; > devicet...@vger.kernel.org; linux-...@v

RE: [PATCH v2 1/2] dma-mapping: move dma configuration to bus infrastructure

2018-03-21 Thread Bharat Bhushan
- > ker...@vger.kernel.org; io...@lists.linux-foundation.org; linux- > wirel...@vger.kernel.org; linux-arm-...@vger.kernel.org; linux- > s...@vger.kernel.org; dmaeng...@vger.kernel.org; dri- > de...@lists.freedesktop.org; linux-te...@vger.kernel.org; > devicet...@vger.kernel.org; linux-.

RE: [RESEND PATCH 1/2 v2] staging: fsl-mc: Allocate IRQ's before scanning DPRC objects

2017-12-11 Thread Bharat Bhushan
> -Original Message- > From: Nipun Gupta [mailto:nipun.gu...@nxp.com] > Sent: Monday, December 11, 2017 9:16 PM > To: Laurentiu Tudor <laurentiu.tu...@nxp.com>; stuyo...@gmail.com; > Bharat Bhushan <bharat.bhus...@nxp.com>; gre...@linuxfoundation.org;

RE: [RESEND PATCH 1/2 v2] staging: fsl-mc: Allocate IRQ's before scanning DPRC objects

2017-12-11 Thread Bharat Bhushan
> -Original Message- > From: Nipun Gupta [mailto:nipun.gu...@nxp.com] > Sent: Monday, December 11, 2017 9:16 PM > To: Laurentiu Tudor ; stuyo...@gmail.com; > Bharat Bhushan ; gre...@linuxfoundation.org; > cakt...@gmail.com; bretth...@gmail.com; a...@arndb.de

RE: [PATCH 1/2] staging: fsl-mc: Allocate IRQ's before scanning DPRC objects

2017-12-06 Thread Bharat Bhushan
Hi Laurentiu, > -Original Message- > From: Laurentiu Tudor > Sent: Wednesday, December 06, 2017 7:00 PM > To: Nipun Gupta <nipun.gu...@nxp.com>; stuyo...@gmail.com; Bharat > Bhushan <bharat.bhus...@nxp.com>; gre...@linuxfoundation.org; > cakt...@

RE: [PATCH 1/2] staging: fsl-mc: Allocate IRQ's before scanning DPRC objects

2017-12-06 Thread Bharat Bhushan
Hi Laurentiu, > -Original Message- > From: Laurentiu Tudor > Sent: Wednesday, December 06, 2017 7:00 PM > To: Nipun Gupta ; stuyo...@gmail.com; Bharat > Bhushan ; gre...@linuxfoundation.org; > cakt...@gmail.com; bretth...@gmail.com; a...@arndb.de > Cc: linux-kerne

RE: [PATCH v3] staging: fsl-mc: use 32bits to support 64K size mc-portals

2017-11-24 Thread Bharat Bhushan
Hi Greg, > -Original Message- > From: gre...@linuxfoundation.org [mailto:gre...@linuxfoundation.org] > Sent: Friday, November 24, 2017 9:29 PM > To: Laurentiu Tudor <laurentiu.tu...@nxp.com> > Cc: Bharat Bhushan <bharat.bhus...@nxp.com>; Ruxandra Ioana R

RE: [PATCH v3] staging: fsl-mc: use 32bits to support 64K size mc-portals

2017-11-24 Thread Bharat Bhushan
Hi Greg, > -Original Message- > From: gre...@linuxfoundation.org [mailto:gre...@linuxfoundation.org] > Sent: Friday, November 24, 2017 9:29 PM > To: Laurentiu Tudor > Cc: Bharat Bhushan ; Ruxandra Ioana Radulescu > ; de...@driverdev.osuosl.org; > stuyo...@gmail.co

[PATCH v3] staging: fsl-mc: use 32bits to support 64K size mc-portals

2017-11-21 Thread Bharat Bhushan
As per APIs each mc-portal is of 64K size while currently 16bits (type u16) is used to store size of mc-portal. In these cases upper bit of portal size gets truncated. Signed-off-by: Bharat Bhushan <bharat.bhus...@nxp.com> --- v2->v3: - v2 patch: https://patchwork.kernel.org/patch

[PATCH v3] staging: fsl-mc: use 32bits to support 64K size mc-portals

2017-11-21 Thread Bharat Bhushan
As per APIs each mc-portal is of 64K size while currently 16bits (type u16) is used to store size of mc-portal. In these cases upper bit of portal size gets truncated. Signed-off-by: Bharat Bhushan --- v2->v3: - v2 patch: https://patchwork.kernel.org/patch/10067661/ - Changes patch subj

[PATCH v2] staging: fsl-mc: fix mc-portal to use u32 type

2017-11-20 Thread Bharat Bhushan
portal_size from u16 to u32 Signed-off-by: Bharat Bhushan <bharat.bhus...@nxp.com> --- drivers/staging/fsl-mc/include/mc-sys.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/fsl-mc/include/mc-sys.h b/drivers/staging/fsl-mc/include/mc-sys.h index dca7f90

[PATCH v2] staging: fsl-mc: fix mc-portal to use u32 type

2017-11-20 Thread Bharat Bhushan
portal_size from u16 to u32 Signed-off-by: Bharat Bhushan --- drivers/staging/fsl-mc/include/mc-sys.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/fsl-mc/include/mc-sys.h b/drivers/staging/fsl-mc/include/mc-sys.h index dca7f90..11d4367 100644 --- a/driver

[PATCH] staging: fsl-mc: fix mc-portal to use uin32_t type

2017-11-20 Thread Bharat Bhushan
nges mc_io->portal_size from uin16_t to uin32_t Signed-off-by: Bharat Bhushan <bharat.bhus...@nxp.com> --- drivers/staging/fsl-mc/include/mc-sys.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/fsl-mc/include/mc-sys.h b/drivers/staging/fsl-mc/include/mc-sys.

[PATCH] staging: fsl-mc: fix mc-portal to use uin32_t type

2017-11-20 Thread Bharat Bhushan
nges mc_io->portal_size from uin16_t to uin32_t Signed-off-by: Bharat Bhushan --- drivers/staging/fsl-mc/include/mc-sys.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/fsl-mc/include/mc-sys.h b/drivers/staging/fsl-mc/include/mc-sys.h index dca7f90..11d4367 100644

RE: [PATCH] RM64: dts: ls208xa: Add iommu-map property for pci

2017-09-27 Thread Bharat Bhushan
Hi Robin, > -Original Message- > From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- > ow...@vger.kernel.org] On Behalf Of Bharat Bhushan > Sent: Wednesday, September 06, 2017 12:47 PM > To: Robin Murphy <robin.mur...@arm.com>; Marc Zyngier > <

RE: [PATCH] RM64: dts: ls208xa: Add iommu-map property for pci

2017-09-27 Thread Bharat Bhushan
Hi Robin, > -Original Message- > From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- > ow...@vger.kernel.org] On Behalf Of Bharat Bhushan > Sent: Wednesday, September 06, 2017 12:47 PM > To: Robin Murphy ; Marc Zyngier > ; robh...@kernel.org; Mark Ru

RE: [PATCH] RM64: dts: ls208xa: Add iommu-map property for pci

2017-09-06 Thread Bharat Bhushan
Hi Robin, > -Original Message- > From: Robin Murphy [mailto:robin.mur...@arm.com] > Sent: Friday, September 01, 2017 4:29 PM > To: Bharat Bhushan <bharat.bhus...@nxp.com>; Marc Zyngier > <marc.zyng...@arm.com>; robh...@kernel.org; Mark Rutland > <mark.rutl

RE: [PATCH] RM64: dts: ls208xa: Add iommu-map property for pci

2017-09-06 Thread Bharat Bhushan
Hi Robin, > -Original Message- > From: Robin Murphy [mailto:robin.mur...@arm.com] > Sent: Friday, September 01, 2017 4:29 PM > To: Bharat Bhushan ; Marc Zyngier > ; robh...@kernel.org; Mark Rutland > ; will.dea...@arm.com; o...@buserror.net; Gang > Liu ; devicet...@v

RE: [PATCH] RM64: dts: ls208xa: Add iommu-map property for pci

2017-09-01 Thread Bharat Bhushan
> -Original Message- > From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- > ow...@vger.kernel.org] On Behalf Of Bharat Bhushan > Sent: Thursday, August 31, 2017 4:53 PM > To: Marc Zyngier <marc.zyng...@arm.com>; robh...@kernel.org; Mark > Rutla

RE: [PATCH] RM64: dts: ls208xa: Add iommu-map property for pci

2017-09-01 Thread Bharat Bhushan
> -Original Message- > From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- > ow...@vger.kernel.org] On Behalf Of Bharat Bhushan > Sent: Thursday, August 31, 2017 4:53 PM > To: Marc Zyngier ; robh...@kernel.org; Mark > Rutland ; will.dea...@arm.com; > o.

RE: [PATCH] RM64: dts: ls208xa: Add iommu-map property for pci

2017-08-31 Thread Bharat Bhushan
> -Original Message- > From: Marc Zyngier [mailto:marc.zyng...@arm.com] > Sent: Thursday, August 31, 2017 4:20 PM > To: Bharat Bhushan <bharat.bhus...@nxp.com>; robh...@kernel.org; > Mark Rutland <mark.rutl...@arm.com>; will.dea...@arm.com; > o...@buserror.n

RE: [PATCH] RM64: dts: ls208xa: Add iommu-map property for pci

2017-08-31 Thread Bharat Bhushan
> -Original Message- > From: Marc Zyngier [mailto:marc.zyng...@arm.com] > Sent: Thursday, August 31, 2017 4:20 PM > To: Bharat Bhushan ; robh...@kernel.org; > Mark Rutland ; will.dea...@arm.com; > o...@buserror.net; Gang Liu ; > devicet...@vger.kern

RE: [PATCH] RM64: dts: ls208xa: Add iommu-map property for pci

2017-08-31 Thread Bharat Bhushan
> -Original Message- > From: Marc Zyngier [mailto:marc.zyng...@arm.com] > Sent: Thursday, August 31, 2017 3:02 PM > To: Bharat Bhushan <bharat.bhus...@nxp.com>; robh...@kernel.org; > ark.rutl...@arm.com; will.dea...@arm.com; o...@buserror.net; Gang Liu > <

RE: [PATCH] RM64: dts: ls208xa: Add iommu-map property for pci

2017-08-31 Thread Bharat Bhushan
> -Original Message- > From: Marc Zyngier [mailto:marc.zyng...@arm.com] > Sent: Thursday, August 31, 2017 3:02 PM > To: Bharat Bhushan ; robh...@kernel.org; > ark.rutl...@arm.com; will.dea...@arm.com; o...@buserror.net; Gang Liu > ; devicet...@vger.kernel.org

[PATCH v2] ARM64: dts: ls208xa: Add iommu-map property for pci

2017-08-31 Thread Bharat Bhushan
This patch adds iommu-map property for PCIe, which enables SMMU for these devices on LS208xA devices. Signed-off-by: Bharat Bhushan <bharat.bhus...@nxp.com> --- v1->v2 - Corrected "RM64" to "ARM64" arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi | 4 1 file c

[PATCH v2] ARM64: dts: ls208xa: Add iommu-map property for pci

2017-08-31 Thread Bharat Bhushan
This patch adds iommu-map property for PCIe, which enables SMMU for these devices on LS208xA devices. Signed-off-by: Bharat Bhushan --- v1->v2 - Corrected "RM64" to "ARM64" arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi | 4 1 file changed, 4 insertions(+) diff

[PATCH] RM64: dts: ls208xa: Add iommu-map property for pci

2017-08-31 Thread Bharat Bhushan
This patch adds iommu-map property for PCIe, which enables SMMU for these devices on LS208xA devices. Signed-off-by: Bharat Bhushan <bharat.bhus...@nxp.com> --- arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/fre

[PATCH] RM64: dts: ls208xa: Add iommu-map property for pci

2017-08-31 Thread Bharat Bhushan
This patch adds iommu-map property for PCIe, which enables SMMU for these devices on LS208xA devices. Signed-off-by: Bharat Bhushan --- arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi b/arch

RE: [PATCH] kexec/kdump: Minor Documentation updates for arm64 and Image

2017-05-22 Thread Bharat Bhushan
> -Original Message- > From: Pratyush Anand [mailto:pan...@redhat.com] > Sent: Monday, May 22, 2017 12:09 PM > To: AKASHI Takahiro <takahiro.aka...@linaro.org>; Dave Young > <dyo...@redhat.com>; Bharat Bhushan <bharat.bhus...@nxp.com>; > b...@redhat.co

RE: [PATCH] kexec/kdump: Minor Documentation updates for arm64 and Image

2017-05-22 Thread Bharat Bhushan
> -Original Message- > From: Pratyush Anand [mailto:pan...@redhat.com] > Sent: Monday, May 22, 2017 12:09 PM > To: AKASHI Takahiro ; Dave Young > ; Bharat Bhushan ; > b...@redhat.com; vgo...@redhat.com; cor...@lwn.net; > ke...@lists.infradead.org; linux-...@vger.ker

[PATCH v2] kexec/kdump: Minor Documentation updates for arm64 and Image

2017-05-18 Thread Bharat Bhushan
This patch have minor updates in Documentation for arm64i as relocatable kernel. Also this patch updates documentation for using uncompressed image "Image" which is used for ARM64. Signed-off-by: Bharat Bhushan <bharat.bhus...@nxp.com> --- v1->v2 - "

[PATCH v2] kexec/kdump: Minor Documentation updates for arm64 and Image

2017-05-18 Thread Bharat Bhushan
This patch have minor updates in Documentation for arm64i as relocatable kernel. Also this patch updates documentation for using uncompressed image "Image" which is used for ARM64. Signed-off-by: Bharat Bhushan --- v1->v2 - "a uncompressed" replaced with "an uncompr

RE: [PATCH] kexec/kdump: Minor Documentation updates for arm64 and Image

2017-05-18 Thread Bharat Bhushan
> -Original Message- > From: Dave Young [mailto:dyo...@redhat.com] > Sent: Thursday, May 18, 2017 11:29 AM > To: Bharat Bhushan <bharat.bhus...@nxp.com> > Cc: b...@redhat.com; vgo...@redhat.com; cor...@lwn.net; > ke...@lists.infradead.org; linux-...@vger.

RE: [PATCH] kexec/kdump: Minor Documentation updates for arm64 and Image

2017-05-18 Thread Bharat Bhushan
> -Original Message- > From: Dave Young [mailto:dyo...@redhat.com] > Sent: Thursday, May 18, 2017 11:29 AM > To: Bharat Bhushan > Cc: b...@redhat.com; vgo...@redhat.com; cor...@lwn.net; > ke...@lists.infradead.org; linux-...@vger.kernel.org; linux- > ker...@vger.ker

[PATCH] kexec/kdump: Minor Documentation updates for arm64 and Image

2017-05-17 Thread Bharat Bhushan
This patch have minor updates in Documentation for arm64i as relocatable kernel. Also this patch updates documentation for using uncompressed image "Image" which is used for ARM64. Signed-off-by: Bharat Bhushan <bharat.bhus...@nxp.com> --- Documentation/kdump/kdump.txt | 10 ++

[PATCH] kexec/kdump: Minor Documentation updates for arm64 and Image

2017-05-17 Thread Bharat Bhushan
This patch have minor updates in Documentation for arm64i as relocatable kernel. Also this patch updates documentation for using uncompressed image "Image" which is used for ARM64. Signed-off-by: Bharat Bhushan --- Documentation/kdump/kdump.txt | 10 -- 1 file changed, 8

RE: [PATCH] iommu/dma: Setup iova_domain granule for IOMMU_DMA_MSI cookies

2017-05-04 Thread Bharat Bhushan
Hi Robin, I faced same issue on our platform and debugged to get the root cause of the issue. Also fixed in somewhat similar way, cleared iova_off and not change size for if cookie->type is IOMMU_DMA_MSI_COOKIE. Anyways that was not as good as below changes. While just now I saw this was

RE: [PATCH] iommu/dma: Setup iova_domain granule for IOMMU_DMA_MSI cookies

2017-05-04 Thread Bharat Bhushan
Hi Robin, I faced same issue on our platform and debugged to get the root cause of the issue. Also fixed in somewhat similar way, cleared iova_off and not change size for if cookie->type is IOMMU_DMA_MSI_COOKIE. Anyways that was not as good as below changes. While just now I saw this was

RE: [PATCH] ARM64/PCI: Allow userspace to mmap PCI resources

2017-05-03 Thread Bharat Bhushan
> -Original Message- > From: Lorenzo Pieralisi [mailto:lorenzo.pieral...@arm.com] > Sent: Wednesday, May 03, 2017 9:29 PM > To: Bharat Bhushan <bharat.bhus...@nxp.com> > Cc: catalin.mari...@arm.com; will.dea...@arm.com; > bhelg...@google.com; linux-arm-ker...@li

RE: [PATCH] ARM64/PCI: Allow userspace to mmap PCI resources

2017-05-03 Thread Bharat Bhushan
> -Original Message- > From: Lorenzo Pieralisi [mailto:lorenzo.pieral...@arm.com] > Sent: Wednesday, May 03, 2017 9:29 PM > To: Bharat Bhushan > Cc: catalin.mari...@arm.com; will.dea...@arm.com; > bhelg...@google.com; linux-arm-ker...@lists.infradead.org; linux- > k

[PATCH] ARM64/PCI: Allow userspace to mmap PCI resources

2017-05-03 Thread Bharat Bhushan
This patch allows user-space to mmap PCI resources. This patch is inline to arm32 bit implementation. Signed-off-by: Bharat Bhushan <bharat.bhus...@nxp.com> --- arch/arm64/include/asm/pci.h | 4 arch/arm64/kernel/pci.c | 19 +++ 2 files changed, 23 insertions(+)

[PATCH] ARM64/PCI: Allow userspace to mmap PCI resources

2017-05-03 Thread Bharat Bhushan
This patch allows user-space to mmap PCI resources. This patch is inline to arm32 bit implementation. Signed-off-by: Bharat Bhushan --- arch/arm64/include/asm/pci.h | 4 arch/arm64/kernel/pci.c | 19 +++ 2 files changed, 23 insertions(+) diff --git a/arch/arm64

RE: [PATCH v8 00/18] KVM PCIe/MSI passthrough on ARM/ARM64 and IOVA reserved regions

2017-01-11 Thread Bharat Bhushan
t.agra...@arm.com; Diana Madalina > Craciun <diana.crac...@nxp.com>; gpkulka...@gmail.com; > shank...@codeaurora.org; Bharat Bhushan <bharat.bhus...@nxp.com>; > geethasowjanya.ak...@gmail.com > Subject: [PATCH v8 00/18] KVM PCIe/MSI passthrough on ARM/ARM64 and > IOVA reserved re

RE: [PATCH v8 00/18] KVM PCIe/MSI passthrough on ARM/ARM64 and IOVA reserved regions

2017-01-11 Thread Bharat Bhushan
t.agra...@arm.com; Diana Madalina > Craciun ; gpkulka...@gmail.com; > shank...@codeaurora.org; Bharat Bhushan ; > geethasowjanya.ak...@gmail.com > Subject: [PATCH v8 00/18] KVM PCIe/MSI passthrough on ARM/ARM64 and > IOVA reserved regions > > Following LPC discussions, we now r

RE: [PATCH v6 17/18] vfio/type1: Check MSI remapping at irq domain level

2017-01-06 Thread Bharat Bhushan
> -Original Message- > From: Marc Zyngier [mailto:marc.zyng...@arm.com] > Sent: Friday, January 06, 2017 2:50 PM > To: Auger Eric <eric.au...@redhat.com>; Bharat Bhushan > <bharat.bhus...@nxp.com>; eric.auger@gmail.com; > christoffer.d...@li

RE: [PATCH v6 17/18] vfio/type1: Check MSI remapping at irq domain level

2017-01-06 Thread Bharat Bhushan
> -Original Message- > From: Marc Zyngier [mailto:marc.zyng...@arm.com] > Sent: Friday, January 06, 2017 2:50 PM > To: Auger Eric ; Bharat Bhushan > ; eric.auger@gmail.com; > christoffer.d...@linaro.org; robin.mur...@arm.com; > alex.william...@redhat.com; w

RE: [PATCH v6 17/18] vfio/type1: Check MSI remapping at irq domain level

2017-01-06 Thread Bharat Bhushan
t.agra...@arm.com; Diana Madalina > Craciun <diana.crac...@nxp.com>; gpkulka...@gmail.com; > shank...@codeaurora.org; Bharat Bhushan <bharat.bhus...@nxp.com>; > geethasowjanya.ak...@gmail.com > Subject: [PATCH v6 17/18] vfio/type1: Check MSI remapping at irq domain > level

RE: [PATCH v6 17/18] vfio/type1: Check MSI remapping at irq domain level

2017-01-06 Thread Bharat Bhushan
t.agra...@arm.com; Diana Madalina > Craciun ; gpkulka...@gmail.com; > shank...@codeaurora.org; Bharat Bhushan ; > geethasowjanya.ak...@gmail.com > Subject: [PATCH v6 17/18] vfio/type1: Check MSI remapping at irq domain > level > > In case the IOMMU translates MSI transa

RE: [PATCH v5 13/17] irqdomain: irq_domain_check_msi_remap

2017-01-05 Thread Bharat Bhushan
Craciun <diana.crac...@nxp.com>; iommu@lists.linux- > foundation.org; pranav.sawargaon...@gmail.com; Bharat Bhushan > <bharat.bhus...@nxp.com>; shank...@codeaurora.org; > gpkulka...@gmail.com > Subject: Re: [PATCH v5 13/17] irqdomain: irq_domain_check_msi_remap > > Hi M

RE: [PATCH v5 13/17] irqdomain: irq_domain_check_msi_remap

2017-01-05 Thread Bharat Bhushan
mmu@lists.linux- > foundation.org; pranav.sawargaon...@gmail.com; Bharat Bhushan > ; shank...@codeaurora.org; > gpkulka...@gmail.com > Subject: Re: [PATCH v5 13/17] irqdomain: irq_domain_check_msi_remap > > Hi Marc, > > On 05/01/2017 12:57, Marc Zyngier wrote: > > On 05/01/17 11:29

RE: [RFC v4 00/16] KVM PCIe/MSI passthrough on ARM/ARM64 and IOVA reserved regions

2016-12-20 Thread Bharat Bhushan
v.sawargaon...@gmail.com; > io...@lists.linux-foundation.org; punit.agra...@arm.com; Diana Madalina > Craciun <diana.crac...@nxp.com>; gpkulka...@gmail.com; > shank...@codeaurora.org; Bharat Bhushan <bharat.bhus...@nxp.com> > Subject: [RFC v4 00/16] KVM PCIe/MSI passthrough on AR

RE: [RFC v4 00/16] KVM PCIe/MSI passthrough on ARM/ARM64 and IOVA reserved regions

2016-12-20 Thread Bharat Bhushan
v.sawargaon...@gmail.com; > io...@lists.linux-foundation.org; punit.agra...@arm.com; Diana Madalina > Craciun ; gpkulka...@gmail.com; > shank...@codeaurora.org; Bharat Bhushan > Subject: [RFC v4 00/16] KVM PCIe/MSI passthrough on ARM/ARM64 and > IOVA reserved regions > > Follow

RE: [upstream-release] [PATCH v5 5/8] bus: fsl-mc: dpio: add QBMan portal APIs for DPAA2

2016-12-19 Thread Bharat Bhushan
> -Original Message- > From: upstream-release-boun...@linux.freescale.net [mailto:upstream- > release-boun...@linux.freescale.net] On Behalf Of Stuart Yoder > Sent: Friday, December 16, 2016 10:01 PM > To: gre...@linuxfoundation.org > Cc: de...@driverdev.osuosl.org; ag...@suse.de;

RE: [upstream-release] [PATCH v5 5/8] bus: fsl-mc: dpio: add QBMan portal APIs for DPAA2

2016-12-19 Thread Bharat Bhushan
> -Original Message- > From: upstream-release-boun...@linux.freescale.net [mailto:upstream- > release-boun...@linux.freescale.net] On Behalf Of Stuart Yoder > Sent: Friday, December 16, 2016 10:01 PM > To: gre...@linuxfoundation.org > Cc: de...@driverdev.osuosl.org; ag...@suse.de;

RE: [RFC v3 00/10] KVM PCIe/MSI passthrough on ARM/ARM64 and IOVA reserved regions

2016-12-07 Thread Bharat Bhushan
Hi Eric, I have tested this series on NXP platform. Thanks -Bharat > -Original Message- > From: iommu-boun...@lists.linux-foundation.org [mailto:iommu- > boun...@lists.linux-foundation.org] On Behalf Of Eric Auger > Sent: Tuesday, November 15, 2016 6:39 PM > To: eric.au...@redhat.com;

RE: [RFC v3 00/10] KVM PCIe/MSI passthrough on ARM/ARM64 and IOVA reserved regions

2016-12-07 Thread Bharat Bhushan
Hi Eric, I have tested this series on NXP platform. Thanks -Bharat > -Original Message- > From: iommu-boun...@lists.linux-foundation.org [mailto:iommu- > boun...@lists.linux-foundation.org] On Behalf Of Eric Auger > Sent: Tuesday, November 15, 2016 6:39 PM > To: eric.au...@redhat.com;

RE: [RFC v3 00/10] KVM PCIe/MSI passthrough on ARM/ARM64 and IOVA reserved regions

2016-11-18 Thread Bharat Bhushan
Hi Eric, Have you sent out QEMU side patches based on this new approach? In case I missed please point me the patches? Thanks -Bharat > -Original Message- > From: iommu-boun...@lists.linux-foundation.org [mailto:iommu- > boun...@lists.linux-foundation.org] On Behalf Of Eric Auger >

RE: [RFC v3 00/10] KVM PCIe/MSI passthrough on ARM/ARM64 and IOVA reserved regions

2016-11-18 Thread Bharat Bhushan
Hi Eric, Have you sent out QEMU side patches based on this new approach? In case I missed please point me the patches? Thanks -Bharat > -Original Message- > From: iommu-boun...@lists.linux-foundation.org [mailto:iommu- > boun...@lists.linux-foundation.org] On Behalf Of Eric Auger >

[PATCH] fsl mc-bus: Move mc-io destroy to bus remove

2016-06-16 Thread Bharat Bhushan
-by: Bharat Bhushan <bharat.bhus...@nxp.com> --- drivers/staging/fsl-mc/bus/dprc-driver.c | 3 +++ drivers/staging/fsl-mc/bus/mc-bus.c | 8 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/staging/fsl-mc/bus/dprc-driver.c b/drivers/staging/fsl-mc/bus/dprc-dr

[PATCH] fsl mc-bus: Move mc-io destroy to bus remove

2016-06-16 Thread Bharat Bhushan
-by: Bharat Bhushan --- drivers/staging/fsl-mc/bus/dprc-driver.c | 3 +++ drivers/staging/fsl-mc/bus/mc-bus.c | 8 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/staging/fsl-mc/bus/dprc-driver.c b/drivers/staging/fsl-mc/bus/dprc-driver.c index 7fc4717..14f9c82

RE: [PATCH 0/9 v2] vfio-pci: add support for Freescale IOMMU (PAMU)

2013-12-05 Thread Bharat Bhushan
com; linuxppc- > d...@lists.ozlabs.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH 0/9 v2] vfio-pci: add support for Freescale IOMMU (PAMU) > > On Sun, 2013-11-24 at 23:33 -0600, Bharat Bhushan wrote: > > > > > -Original Message- > > > From: Alex Williamson

RE: [PATCH 0/9 v2] vfio-pci: add support for Freescale IOMMU (PAMU)

2013-12-05 Thread Bharat Bhushan
com; linuxppc- > d...@lists.ozlabs.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH 0/9 v2] vfio-pci: add support for Freescale IOMMU (PAMU) > > On Thu, 2013-11-28 at 03:19 -0600, Bharat Bhushan wrote: > > > > > -Original Message- > > > From: Bhushan Bharat-R

RE: [PATCH 0/9 v2] vfio-pci: add support for Freescale IOMMU (PAMU)

2013-12-05 Thread Bharat Bhushan
; linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/9 v2] vfio-pci: add support for Freescale IOMMU (PAMU) On Thu, 2013-11-28 at 03:19 -0600, Bharat Bhushan wrote: -Original Message- From: Bhushan Bharat-R65777 Sent: Wednesday, November 27, 2013 9:39 PM To: 'Alex Williamson

RE: [PATCH 0/9 v2] vfio-pci: add support for Freescale IOMMU (PAMU)

2013-12-05 Thread Bharat Bhushan
; linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/9 v2] vfio-pci: add support for Freescale IOMMU (PAMU) On Sun, 2013-11-24 at 23:33 -0600, Bharat Bhushan wrote: -Original Message- From: Alex Williamson [mailto:alex.william...@redhat.com] Sent: Friday, November 22, 2013 2:31

RE: [PATCH 1/9 v2] pci:msi: add weak function for returning msi region info

2013-11-28 Thread Bharat Bhushan
o > > On Tue, Nov 19, 2013 at 10:47:05AM +0530, Bharat Bhushan wrote: > > In Aperture type of IOMMU (like FSL PAMU), VFIO-iommu system need to > > know the MSI region to map its window in h/w. This patch just defines > > the required weak functions only and will be use

RE: [PATCH 0/9 v2] vfio-pci: add support for Freescale IOMMU (PAMU)

2013-11-28 Thread Bharat Bhushan
; Subject: Re: [PATCH 0/9 v2] vfio-pci: add support for Freescale IOMMU > > (PAMU) > > > > On Mon, 2013-11-25 at 05:33 +, Bharat Bhushan wrote: > > > > > > > -Original Message- > > > > From: Alex Williamson [mailto:alex.william..

RE: [PATCH 0/9 v2] vfio-pci: add support for Freescale IOMMU (PAMU)

2013-11-28 Thread Bharat Bhushan
:33 +, Bharat Bhushan wrote: -Original Message- From: Alex Williamson [mailto:alex.william...@redhat.com] Sent: Friday, November 22, 2013 2:31 AM To: Wood Scott-B07421 Cc: Bhushan Bharat-R65777; linux-...@vger.kernel.org; ag...@suse.de; Yoder Stuart-B08248

RE: [PATCH 1/9 v2] pci:msi: add weak function for returning msi region info

2013-11-28 Thread Bharat Bhushan
, Bharat Bhushan wrote: In Aperture type of IOMMU (like FSL PAMU), VFIO-iommu system need to know the MSI region to map its window in h/w. This patch just defines the required weak functions only and will be used by followup patches. Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com

  1   2   >