Re: [PATCH v8 2/3] PCI: iproc: retry request when CRS returned from EP

2017-08-30 Thread Oza Oza
On Wed, Aug 30, 2017 at 1:32 AM, Bjorn Helgaas <helg...@kernel.org> wrote: > On Tue, Aug 29, 2017 at 11:02:23AM +0530, Oza Oza wrote: >> On Tue, Aug 29, 2017 at 3:17 AM, Bjorn Helgaas <helg...@kernel.org> wrote: >> > On Thu, Aug 24, 2017 at 10:34:25AM +0530, Oza Pa

Re: [PATCH v8 2/3] PCI: iproc: retry request when CRS returned from EP

2017-08-30 Thread Oza Oza
On Wed, Aug 30, 2017 at 1:32 AM, Bjorn Helgaas wrote: > On Tue, Aug 29, 2017 at 11:02:23AM +0530, Oza Oza wrote: >> On Tue, Aug 29, 2017 at 3:17 AM, Bjorn Helgaas wrote: >> > On Thu, Aug 24, 2017 at 10:34:25AM +0530, Oza Pawandeep wrote: >> >> PCIe spec r3.1, s

Re: [PATCH v8 2/3] PCI: iproc: retry request when CRS returned from EP

2017-08-28 Thread Oza Oza
On Tue, Aug 29, 2017 at 3:17 AM, Bjorn Helgaas wrote: > On Thu, Aug 24, 2017 at 10:34:25AM +0530, Oza Pawandeep wrote: >> PCIe spec r3.1, sec 2.3.2 >> If CRS software visibility is not enabled, the RC must reissue the >> config request as a new request. >> >> - If CRS software

Re: [PATCH v8 2/3] PCI: iproc: retry request when CRS returned from EP

2017-08-28 Thread Oza Oza
On Tue, Aug 29, 2017 at 3:17 AM, Bjorn Helgaas wrote: > On Thu, Aug 24, 2017 at 10:34:25AM +0530, Oza Pawandeep wrote: >> PCIe spec r3.1, sec 2.3.2 >> If CRS software visibility is not enabled, the RC must reissue the >> config request as a new request. >> >> - If CRS software visibility is

Re: [PATCH v8 0/3] PCI: iproc: SOC specific fixes

2017-08-28 Thread Oza Oza
On Tue, Aug 29, 2017 at 3:23 AM, Bjorn Helgaas wrote: > On Thu, Aug 24, 2017 at 10:34:23AM +0530, Oza Pawandeep wrote: >> PCI: iproc: Retry request when CRS returned from EP Above patch adds >> support for CRS in PCI RC driver, otherwise if not handled at lower >> level, the

Re: [PATCH v8 0/3] PCI: iproc: SOC specific fixes

2017-08-28 Thread Oza Oza
On Tue, Aug 29, 2017 at 3:23 AM, Bjorn Helgaas wrote: > On Thu, Aug 24, 2017 at 10:34:23AM +0530, Oza Pawandeep wrote: >> PCI: iproc: Retry request when CRS returned from EP Above patch adds >> support for CRS in PCI RC driver, otherwise if not handled at lower >> level, the user space PMD (poll

Re: [PATCH v8 2/3] PCI: iproc: retry request when CRS returned from EP

2017-08-28 Thread Oza Oza
On Tue, Aug 29, 2017 at 1:24 AM, Bjorn Helgaas <helg...@kernel.org> wrote: > On Tue, Aug 29, 2017 at 01:09:53AM +0530, Oza Oza wrote: >> On Tue, Aug 29, 2017 at 12:47 AM, Bjorn Helgaas <helg...@kernel.org> wrote: >> > On Thu, Aug 24, 2017 at 10:34:25AM +0530, Oza Pa

Re: [PATCH v8 2/3] PCI: iproc: retry request when CRS returned from EP

2017-08-28 Thread Oza Oza
On Tue, Aug 29, 2017 at 1:24 AM, Bjorn Helgaas wrote: > On Tue, Aug 29, 2017 at 01:09:53AM +0530, Oza Oza wrote: >> On Tue, Aug 29, 2017 at 12:47 AM, Bjorn Helgaas wrote: >> > On Thu, Aug 24, 2017 at 10:34:25AM +0530, Oza Pawandeep wrote: >> >> PCIe spec r3.1, s

Re: [PATCH v8 2/3] PCI: iproc: retry request when CRS returned from EP

2017-08-28 Thread Oza Oza
On Tue, Aug 29, 2017 at 12:47 AM, Bjorn Helgaas wrote: > On Thu, Aug 24, 2017 at 10:34:25AM +0530, Oza Pawandeep wrote: >> PCIe spec r3.1, sec 2.3.2 >> If CRS software visibility is not enabled, the RC must reissue the >> config request as a new request. >> >> - If CRS

Re: [PATCH v8 2/3] PCI: iproc: retry request when CRS returned from EP

2017-08-28 Thread Oza Oza
On Tue, Aug 29, 2017 at 12:47 AM, Bjorn Helgaas wrote: > On Thu, Aug 24, 2017 at 10:34:25AM +0530, Oza Pawandeep wrote: >> PCIe spec r3.1, sec 2.3.2 >> If CRS software visibility is not enabled, the RC must reissue the >> config request as a new request. >> >> - If CRS software visibility is

Re: [PATCH v7 1/2] PCI: iproc: Retry request when CRS returned from EP

2017-08-23 Thread Oza Oza
On Wed, Aug 23, 2017 at 11:30 PM, Bjorn Helgaas <helg...@kernel.org> wrote: > On Wed, Aug 23, 2017 at 09:32:06PM +0530, Oza Oza wrote: >> On Wed, Aug 23, 2017 at 9:22 PM, Sinan Kaya <ok...@codeaurora.org> wrote: >> > Hi Oza, >> > >> &

Re: [PATCH v7 1/2] PCI: iproc: Retry request when CRS returned from EP

2017-08-23 Thread Oza Oza
On Wed, Aug 23, 2017 at 11:30 PM, Bjorn Helgaas wrote: > On Wed, Aug 23, 2017 at 09:32:06PM +0530, Oza Oza wrote: >> On Wed, Aug 23, 2017 at 9:22 PM, Sinan Kaya wrote: >> > Hi Oza, >> > >> >> In working Enumuration case I get following: >> >> [

Re: [PATCH v7 1/2] PCI: iproc: Retry request when CRS returned from EP

2017-08-23 Thread Oza Oza
On Wed, Aug 23, 2017 at 9:22 PM, Sinan Kaya wrote: > Hi Oza, > >> In working Enumuration case I get following: >> [9.125976] pci :00:00.0: bridge configuration invalid ([bus >> 00-00]), re-configuring >> [9.134267] where=0x0 val=0x0001 >> [9.146946]

Re: [PATCH v7 1/2] PCI: iproc: Retry request when CRS returned from EP

2017-08-23 Thread Oza Oza
On Wed, Aug 23, 2017 at 9:22 PM, Sinan Kaya wrote: > Hi Oza, > >> In working Enumuration case I get following: >> [9.125976] pci :00:00.0: bridge configuration invalid ([bus >> 00-00]), re-configuring >> [9.134267] where=0x0 val=0x0001 >> [9.146946] where=0x0 val=0x0001 >>

Re: [PATCH v7 1/2] PCI: iproc: Retry request when CRS returned from EP

2017-08-23 Thread Oza Oza
On Wed, Aug 23, 2017 at 7:21 PM, Bjorn Helgaas <helg...@kernel.org> wrote: > On Wed, Aug 23, 2017 at 03:57:02PM +0530, Oza Oza wrote: >> On Wed, Aug 23, 2017 at 2:03 AM, Bjorn Helgaas <helg...@kernel.org> wrote: >> > [+cc Sinan, Timur, Alex] >> > >> &

Re: [PATCH v7 1/2] PCI: iproc: Retry request when CRS returned from EP

2017-08-23 Thread Oza Oza
On Wed, Aug 23, 2017 at 7:21 PM, Bjorn Helgaas wrote: > On Wed, Aug 23, 2017 at 03:57:02PM +0530, Oza Oza wrote: >> On Wed, Aug 23, 2017 at 2:03 AM, Bjorn Helgaas wrote: >> > [+cc Sinan, Timur, Alex] >> > >> > Hi Oza, >> > >> > On Mon,

Re: [PATCH v7 1/2] PCI: iproc: Retry request when CRS returned from EP

2017-08-23 Thread Oza Oza
On Wed, Aug 23, 2017 at 2:03 AM, Bjorn Helgaas wrote: > [+cc Sinan, Timur, Alex] > > Hi Oza, > > On Mon, Aug 21, 2017 at 09:28:43PM +0530, Oza Pawandeep wrote: >> PCIe spec r3.1, sec 2.3.2 >> If CRS software visibility is not enabled, the RC must reissue the >> config request

Re: [PATCH v7 1/2] PCI: iproc: Retry request when CRS returned from EP

2017-08-23 Thread Oza Oza
On Wed, Aug 23, 2017 at 2:03 AM, Bjorn Helgaas wrote: > [+cc Sinan, Timur, Alex] > > Hi Oza, > > On Mon, Aug 21, 2017 at 09:28:43PM +0530, Oza Pawandeep wrote: >> PCIe spec r3.1, sec 2.3.2 >> If CRS software visibility is not enabled, the RC must reissue the >> config request as a new request. >>

Re: [PATCH v6 2/2] PCI: iproc: add device shutdown for PCI RC

2017-08-20 Thread Oza Oza
On Mon, Aug 21, 2017 at 2:55 AM, Bjorn Helgaas <helg...@kernel.org> wrote: > On Sun, Aug 20, 2017 at 09:06:51AM +0530, Oza Oza wrote: >> On Sun, Aug 20, 2017 at 2:34 AM, Bjorn Helgaas <helg...@kernel.org> wrote: >> > On Fri, Aug 04, 2017 at 09:18:16PM +0530, Oza Paw

Re: [PATCH v6 2/2] PCI: iproc: add device shutdown for PCI RC

2017-08-20 Thread Oza Oza
On Mon, Aug 21, 2017 at 2:55 AM, Bjorn Helgaas wrote: > On Sun, Aug 20, 2017 at 09:06:51AM +0530, Oza Oza wrote: >> On Sun, Aug 20, 2017 at 2:34 AM, Bjorn Helgaas wrote: >> > On Fri, Aug 04, 2017 at 09:18:16PM +0530, Oza Pawandeep wrote: >> >> PERST must be

Re: [PATCH v6 1/2] PCI: iproc: Retry request when CRS returned from EP

2017-08-19 Thread Oza Oza
On Sun, Aug 20, 2017 at 1:56 AM, Bjorn Helgaas <helg...@kernel.org> wrote: > On Sun, Aug 20, 2017 at 01:02:09AM +0530, Oza Oza wrote: >> On Sat, Aug 19, 2017 at 11:56 PM, Bjorn Helgaas <helg...@kernel.org> wrote: > >> > I think you should do something

Re: [PATCH v6 1/2] PCI: iproc: Retry request when CRS returned from EP

2017-08-19 Thread Oza Oza
On Sun, Aug 20, 2017 at 1:56 AM, Bjorn Helgaas wrote: > On Sun, Aug 20, 2017 at 01:02:09AM +0530, Oza Oza wrote: >> On Sat, Aug 19, 2017 at 11:56 PM, Bjorn Helgaas wrote: > >> > I think you should do something like this instead so you don't do the >> > MMIO read

Re: [PATCH v6 2/2] PCI: iproc: add device shutdown for PCI RC

2017-08-19 Thread Oza Oza
On Sun, Aug 20, 2017 at 2:34 AM, Bjorn Helgaas wrote: > On Fri, Aug 04, 2017 at 09:18:16PM +0530, Oza Pawandeep wrote: >> PERST must be asserted around ~500ms before the reboot is applied. >> >> During soft reset (e.g., "reboot" from Linux) on some iproc based SOCs >> LCPLL

Re: [PATCH v6 2/2] PCI: iproc: add device shutdown for PCI RC

2017-08-19 Thread Oza Oza
On Sun, Aug 20, 2017 at 2:34 AM, Bjorn Helgaas wrote: > On Fri, Aug 04, 2017 at 09:18:16PM +0530, Oza Pawandeep wrote: >> PERST must be asserted around ~500ms before the reboot is applied. >> >> During soft reset (e.g., "reboot" from Linux) on some iproc based SOCs >> LCPLL clock and PERST both

Re: [PATCH v6 1/2] PCI: iproc: Retry request when CRS returned from EP

2017-08-19 Thread Oza Oza
On Sat, Aug 19, 2017 at 11:56 PM, Bjorn Helgaas wrote: > On Fri, Aug 04, 2017 at 09:18:15PM +0530, Oza Pawandeep wrote: >> PCIe spec r3.1, sec 2.3.2 >> If CRS software visibility is not enabled, the RC must reissue the >> config request as a new request. >> >> - If CRS

Re: [PATCH v6 1/2] PCI: iproc: Retry request when CRS returned from EP

2017-08-19 Thread Oza Oza
On Sat, Aug 19, 2017 at 11:56 PM, Bjorn Helgaas wrote: > On Fri, Aug 04, 2017 at 09:18:15PM +0530, Oza Pawandeep wrote: >> PCIe spec r3.1, sec 2.3.2 >> If CRS software visibility is not enabled, the RC must reissue the >> config request as a new request. >> >> - If CRS software visibility is

Re: [PATCH v6 1/2] PCI: iproc: Retry request when CRS returned from EP

2017-08-19 Thread Oza Oza
On Sat, Aug 19, 2017 at 11:56 PM, Bjorn Helgaas wrote: > On Fri, Aug 04, 2017 at 09:18:15PM +0530, Oza Pawandeep wrote: >> PCIe spec r3.1, sec 2.3.2 >> If CRS software visibility is not enabled, the RC must reissue the >> config request as a new request. >> >> - If CRS

Re: [PATCH v6 1/2] PCI: iproc: Retry request when CRS returned from EP

2017-08-19 Thread Oza Oza
On Sat, Aug 19, 2017 at 11:56 PM, Bjorn Helgaas wrote: > On Fri, Aug 04, 2017 at 09:18:15PM +0530, Oza Pawandeep wrote: >> PCIe spec r3.1, sec 2.3.2 >> If CRS software visibility is not enabled, the RC must reissue the >> config request as a new request. >> >> - If CRS software visibility is

Re: [PATCH v6 0/2] PCI: iproc: SOC specific fixes

2017-08-19 Thread Oza Oza
On Sat, Aug 19, 2017 at 10:40 PM, Bjorn Helgaas wrote: > On Fri, Aug 04, 2017 at 09:18:14PM +0530, Oza Pawandeep wrote: >> PCI: iproc: Retry request when CRS returned from EP >> Above patch adds support for CRS in PCI RC driver, otherwise if not >> handled at lower level, the

Re: [PATCH v6 0/2] PCI: iproc: SOC specific fixes

2017-08-19 Thread Oza Oza
On Sat, Aug 19, 2017 at 10:40 PM, Bjorn Helgaas wrote: > On Fri, Aug 04, 2017 at 09:18:14PM +0530, Oza Pawandeep wrote: >> PCI: iproc: Retry request when CRS returned from EP >> Above patch adds support for CRS in PCI RC driver, otherwise if not >> handled at lower level, the user space PMD (poll

Re: [PATCH 2/2] PCI: iproc: Add optional brcm,pci-hotplug

2017-08-08 Thread Oza Oza
On Wed, Aug 9, 2017 at 11:13 AM, Oza Oza <oza@broadcom.com> wrote: > On Wed, Aug 9, 2017 at 10:57 AM, Ray Jui <ray@broadcom.com> wrote: >> >> >> On 8/8/2017 10:22 PM, Oza Oza wrote: >>> >>> On Tue, Aug 8, 2017 at 7:50 PM, Rob Herrin

Re: [PATCH 2/2] PCI: iproc: Add optional brcm,pci-hotplug

2017-08-08 Thread Oza Oza
On Wed, Aug 9, 2017 at 11:13 AM, Oza Oza wrote: > On Wed, Aug 9, 2017 at 10:57 AM, Ray Jui wrote: >> >> >> On 8/8/2017 10:22 PM, Oza Oza wrote: >>> >>> On Tue, Aug 8, 2017 at 7:50 PM, Rob Herring wrote: >>>> >>>> Please send bindin

Re: [PATCH 2/2] PCI: iproc: Add optional brcm,pci-hotplug

2017-08-08 Thread Oza Oza
On Wed, Aug 9, 2017 at 10:57 AM, Ray Jui <ray@broadcom.com> wrote: > > > On 8/8/2017 10:22 PM, Oza Oza wrote: >> >> On Tue, Aug 8, 2017 at 7:50 PM, Rob Herring <robh...@kernel.org> wrote: >>> >>> Please send bindings to DT list. >> >

Re: [PATCH 2/2] PCI: iproc: Add optional brcm,pci-hotplug

2017-08-08 Thread Oza Oza
On Wed, Aug 9, 2017 at 10:57 AM, Ray Jui wrote: > > > On 8/8/2017 10:22 PM, Oza Oza wrote: >> >> On Tue, Aug 8, 2017 at 7:50 PM, Rob Herring wrote: >>> >>> Please send bindings to DT list. >> >> Sure, will do that. >> >>> On Mon

Re: [PATCH 2/2] PCI: iproc: Add optional brcm,pci-hotplug

2017-08-08 Thread Oza Oza
On Tue, Aug 8, 2017 at 7:50 PM, Rob Herring wrote: > Please send bindings to DT list. Sure, will do that. > > On Mon, Aug 7, 2017 at 11:44 PM, Oza Pawandeep wrote: >> Add description for optional device tree property >> 'brcm,pci-hotplug' for PCI

Re: [PATCH 2/2] PCI: iproc: Add optional brcm,pci-hotplug

2017-08-08 Thread Oza Oza
On Tue, Aug 8, 2017 at 7:50 PM, Rob Herring wrote: > Please send bindings to DT list. Sure, will do that. > > On Mon, Aug 7, 2017 at 11:44 PM, Oza Pawandeep wrote: >> Add description for optional device tree property >> 'brcm,pci-hotplug' for PCI hotplug feature. >> >> Signed-off-by: Oza

Re: [PATCH v5 1/2] PCI: iproc: Retry request when CRS returned from EP

2017-08-04 Thread Oza Oza
On Fri, Aug 4, 2017 at 7:07 PM, Bjorn Helgaas <helg...@kernel.org> wrote: > On Fri, Aug 04, 2017 at 11:29:29AM +0530, Oza Oza wrote: >> On Fri, Aug 4, 2017 at 12:27 AM, Bjorn Helgaas <helg...@kernel.org> wrote: >> > On Thu, Aug 03, 2017 at 01:50:29PM +0530, Oza Oza wr

Re: [PATCH v5 1/2] PCI: iproc: Retry request when CRS returned from EP

2017-08-04 Thread Oza Oza
On Fri, Aug 4, 2017 at 7:07 PM, Bjorn Helgaas wrote: > On Fri, Aug 04, 2017 at 11:29:29AM +0530, Oza Oza wrote: >> On Fri, Aug 4, 2017 at 12:27 AM, Bjorn Helgaas wrote: >> > On Thu, Aug 03, 2017 at 01:50:29PM +0530, Oza Oza wrote: >> >> On Thu, Aug 3, 2017 at

Re: [PATCH v5 1/2] PCI: iproc: Retry request when CRS returned from EP

2017-08-04 Thread Oza Oza
On Fri, Aug 4, 2017 at 6:57 PM, Bjorn Helgaas <helg...@kernel.org> wrote: > On Fri, Aug 04, 2017 at 11:40:46AM +0530, Oza Oza wrote: >> On Fri, Aug 4, 2017 at 11:29 AM, Oza Oza <oza@broadcom.com> wrote: >> > On Fri, Aug 4, 2017 at 12:27 AM, Bjorn Helg

Re: [PATCH v5 1/2] PCI: iproc: Retry request when CRS returned from EP

2017-08-04 Thread Oza Oza
On Fri, Aug 4, 2017 at 6:57 PM, Bjorn Helgaas wrote: > On Fri, Aug 04, 2017 at 11:40:46AM +0530, Oza Oza wrote: >> On Fri, Aug 4, 2017 at 11:29 AM, Oza Oza wrote: >> > On Fri, Aug 4, 2017 at 12:27 AM, Bjorn Helgaas wrote: >> >> On Thu, Aug 03, 2017 at 0

Re: [PATCH v5 1/2] PCI: iproc: Retry request when CRS returned from EP

2017-08-04 Thread Oza Oza
On Fri, Aug 4, 2017 at 7:07 PM, Bjorn Helgaas <helg...@kernel.org> wrote: > On Fri, Aug 04, 2017 at 11:29:29AM +0530, Oza Oza wrote: >> On Fri, Aug 4, 2017 at 12:27 AM, Bjorn Helgaas <helg...@kernel.org> wrote: >> > On Thu, Aug 03, 2017 at 01:50:29PM +0530, Oza Oza wr

Re: [PATCH v5 1/2] PCI: iproc: Retry request when CRS returned from EP

2017-08-04 Thread Oza Oza
On Fri, Aug 4, 2017 at 7:07 PM, Bjorn Helgaas wrote: > On Fri, Aug 04, 2017 at 11:29:29AM +0530, Oza Oza wrote: >> On Fri, Aug 4, 2017 at 12:27 AM, Bjorn Helgaas wrote: >> > On Thu, Aug 03, 2017 at 01:50:29PM +0530, Oza Oza wrote: >> >> On Thu, Aug 3, 2017 at

Re: [PATCH v5 1/2] PCI: iproc: Retry request when CRS returned from EP

2017-08-04 Thread Oza Oza
On Fri, Aug 4, 2017 at 11:29 AM, Oza Oza <oza@broadcom.com> wrote: > On Fri, Aug 4, 2017 at 12:27 AM, Bjorn Helgaas <helg...@kernel.org> wrote: >> On Thu, Aug 03, 2017 at 01:50:29PM +0530, Oza Oza wrote: >>> On Thu, Aug 3, 2017 at 2:34 AM, Bjorn Helgaas <helg..

Re: [PATCH v5 1/2] PCI: iproc: Retry request when CRS returned from EP

2017-08-04 Thread Oza Oza
On Fri, Aug 4, 2017 at 11:29 AM, Oza Oza wrote: > On Fri, Aug 4, 2017 at 12:27 AM, Bjorn Helgaas wrote: >> On Thu, Aug 03, 2017 at 01:50:29PM +0530, Oza Oza wrote: >>> On Thu, Aug 3, 2017 at 2:34 AM, Bjorn Helgaas wrote: >>> > On Thu, Jul 06, 2017 at 08:39:4

Re: [PATCH v5 1/2] PCI: iproc: Retry request when CRS returned from EP

2017-08-04 Thread Oza Oza
On Fri, Aug 4, 2017 at 12:27 AM, Bjorn Helgaas <helg...@kernel.org> wrote: > On Thu, Aug 03, 2017 at 01:50:29PM +0530, Oza Oza wrote: >> On Thu, Aug 3, 2017 at 2:34 AM, Bjorn Helgaas <helg...@kernel.org> wrote: >> > On Thu, Jul 06, 2017 at 08:39:4

Re: [PATCH v5 1/2] PCI: iproc: Retry request when CRS returned from EP

2017-08-04 Thread Oza Oza
On Fri, Aug 4, 2017 at 12:27 AM, Bjorn Helgaas wrote: > On Thu, Aug 03, 2017 at 01:50:29PM +0530, Oza Oza wrote: >> On Thu, Aug 3, 2017 at 2:34 AM, Bjorn Helgaas wrote: >> > On Thu, Jul 06, 2017 at 08:39:41AM +0530, Oza Pawandeep wrote: >> >> For Configuration

Re: [PATCH v5 1/2] PCI: iproc: Retry request when CRS returned from EP

2017-08-03 Thread Oza Oza
On Thu, Aug 3, 2017 at 2:34 AM, Bjorn Helgaas wrote: > On Thu, Jul 06, 2017 at 08:39:41AM +0530, Oza Pawandeep wrote: >> For Configuration Requests only, following reset it is possible for a >> device to terminate the request but indicate that it is temporarily unable >> to

Re: [PATCH v5 1/2] PCI: iproc: Retry request when CRS returned from EP

2017-08-03 Thread Oza Oza
On Thu, Aug 3, 2017 at 2:34 AM, Bjorn Helgaas wrote: > On Thu, Jul 06, 2017 at 08:39:41AM +0530, Oza Pawandeep wrote: >> For Configuration Requests only, following reset it is possible for a >> device to terminate the request but indicate that it is temporarily unable >> to process the Request,

Re: [PATCH v7 3/3] IOMMU/PCI: Reserve IOVA for inbound memory for PCI masters

2017-07-19 Thread Oza Oza
Hi Robin, My apology for noise. I have taken care of your comments. but these whole patch-set, (specially PCI patch-set) inbound memory addition depends on Lorenzo's patch-set . So I will be posting version 8 patches for IOVA reservation soon after Lorenzo's patches are made in. Regards, Oza.

Re: [PATCH v7 3/3] IOMMU/PCI: Reserve IOVA for inbound memory for PCI masters

2017-07-19 Thread Oza Oza
Hi Robin, My apology for noise. I have taken care of your comments. but these whole patch-set, (specially PCI patch-set) inbound memory addition depends on Lorenzo's patch-set . So I will be posting version 8 patches for IOVA reservation soon after Lorenzo's patches are made in. Regards, Oza.

Re: [PATCH v4 2/2] PCI: iproc: add device shutdown for PCI RC

2017-07-05 Thread Oza Oza
On Wed, Jul 5, 2017 at 9:21 AM, Ray Jui wrote: > Hi Oza, > > It looks like you missed my comments during the internal review. See my > comments inline below. > > > > On 7/4/2017 8:08 PM, Oza Pawandeep wrote: >> >> PERST must be asserted around ~500ms before the reboot is

Re: [PATCH v4 2/2] PCI: iproc: add device shutdown for PCI RC

2017-07-05 Thread Oza Oza
On Wed, Jul 5, 2017 at 9:21 AM, Ray Jui wrote: > Hi Oza, > > It looks like you missed my comments during the internal review. See my > comments inline below. > > > > On 7/4/2017 8:08 PM, Oza Pawandeep wrote: >> >> PERST must be asserted around ~500ms before the reboot is applied. >> >> During

Re: [PATCH v3 2/2] PCI: iproc: add device shutdown for PCI RC

2017-06-21 Thread Oza Oza
On Thu, Jun 15, 2017 at 7:11 PM, Bjorn Helgaas <helg...@kernel.org> wrote: > On Wed, Jun 14, 2017 at 10:24:11AM +0530, Oza Oza wrote: >> On Tue, Jun 13, 2017 at 5:13 AM, Bjorn Helgaas <helg...@kernel.org> wrote: >> > On Sun, Jun 11, 2017 at 09:35:38AM +0530, Oza Pawa

Re: [PATCH v3 2/2] PCI: iproc: add device shutdown for PCI RC

2017-06-21 Thread Oza Oza
On Thu, Jun 15, 2017 at 7:11 PM, Bjorn Helgaas wrote: > On Wed, Jun 14, 2017 at 10:24:11AM +0530, Oza Oza wrote: >> On Tue, Jun 13, 2017 at 5:13 AM, Bjorn Helgaas wrote: >> > On Sun, Jun 11, 2017 at 09:35:38AM +0530, Oza Pawandeep wrote: >> >> PERST# must be

Re: [PATCH v3 1/2] PCI: iproc: Retry request when CRS returned from EP

2017-06-20 Thread Oza Oza
On Tue, Jun 20, 2017 at 4:09 AM, Bjorn Helgaas <helg...@kernel.org> wrote: > On Tue, Jun 13, 2017 at 09:58:22AM +0530, Oza Oza wrote: >> On Tue, Jun 13, 2017 at 5:00 AM, Bjorn Helgaas <helg...@kernel.org> wrote: >> > Please wrap your changelogs to use

Re: [PATCH v3 1/2] PCI: iproc: Retry request when CRS returned from EP

2017-06-20 Thread Oza Oza
On Tue, Jun 20, 2017 at 4:09 AM, Bjorn Helgaas wrote: > On Tue, Jun 13, 2017 at 09:58:22AM +0530, Oza Oza wrote: >> On Tue, Jun 13, 2017 at 5:00 AM, Bjorn Helgaas wrote: >> > Please wrap your changelogs to use 75 columns. "git log" indents the >> > chan

Re: [PATCH v3 2/2] PCI: iproc: add device shutdown for PCI RC

2017-06-13 Thread Oza Oza
On Tue, Jun 13, 2017 at 5:13 AM, Bjorn Helgaas wrote: > On Sun, Jun 11, 2017 at 09:35:38AM +0530, Oza Pawandeep wrote: >> PERST# must be asserted around ~500ms before >> the reboot is applied. >> >> During soft reset (e.g., "reboot" from Linux) on some iProc based SoCs >>

Re: [PATCH v3 2/2] PCI: iproc: add device shutdown for PCI RC

2017-06-13 Thread Oza Oza
On Tue, Jun 13, 2017 at 5:13 AM, Bjorn Helgaas wrote: > On Sun, Jun 11, 2017 at 09:35:38AM +0530, Oza Pawandeep wrote: >> PERST# must be asserted around ~500ms before >> the reboot is applied. >> >> During soft reset (e.g., "reboot" from Linux) on some iProc based SoCs >> LCPLL clock and PERST

Re: [PATCH v3 1/2] PCI: iproc: Retry request when CRS returned from EP

2017-06-12 Thread Oza Oza
On Tue, Jun 13, 2017 at 9:58 AM, Oza Oza <oza@broadcom.com> wrote: > On Tue, Jun 13, 2017 at 5:00 AM, Bjorn Helgaas <helg...@kernel.org> wrote: >> Please wrap your changelogs to use 75 columns. "git log" indents the >> changelog by four spaces, so if your

Re: [PATCH v3 1/2] PCI: iproc: Retry request when CRS returned from EP

2017-06-12 Thread Oza Oza
On Tue, Jun 13, 2017 at 9:58 AM, Oza Oza wrote: > On Tue, Jun 13, 2017 at 5:00 AM, Bjorn Helgaas wrote: >> Please wrap your changelogs to use 75 columns. "git log" indents the >> changelog by four spaces, so if your text is 75 wide, it will still >> fit without

Re: [PATCH v3 1/2] PCI: iproc: Retry request when CRS returned from EP

2017-06-12 Thread Oza Oza
On Tue, Jun 13, 2017 at 5:00 AM, Bjorn Helgaas wrote: > Please wrap your changelogs to use 75 columns. "git log" indents the > changelog by four spaces, so if your text is 75 wide, it will still > fit without wrapping. > > On Sun, Jun 11, 2017 at 09:35:37AM +0530, Oza

Re: [PATCH v3 1/2] PCI: iproc: Retry request when CRS returned from EP

2017-06-12 Thread Oza Oza
On Tue, Jun 13, 2017 at 5:00 AM, Bjorn Helgaas wrote: > Please wrap your changelogs to use 75 columns. "git log" indents the > changelog by four spaces, so if your text is 75 wide, it will still > fit without wrapping. > > On Sun, Jun 11, 2017 at 09:35:37AM +0530, Oza Pawandeep wrote: >> For

Re: [PATCH 2/2] PCI: iproc: add device shutdown for PCI RC

2017-06-01 Thread Oza Oza
On Thu, Jun 1, 2017 at 11:41 PM, Ray Jui wrote: > Hi Oza, > > On 5/31/17 10:27 PM, Oza Pawandeep wrote: >> PERST# must be asserted around ~500ms before >> the reboot is applied. >> >> During soft reset (e.g., "reboot" from Linux) on some iProc based SoCs >> LCPLL clock and

Re: [PATCH 2/2] PCI: iproc: add device shutdown for PCI RC

2017-06-01 Thread Oza Oza
On Thu, Jun 1, 2017 at 11:41 PM, Ray Jui wrote: > Hi Oza, > > On 5/31/17 10:27 PM, Oza Pawandeep wrote: >> PERST# must be asserted around ~500ms before >> the reboot is applied. >> >> During soft reset (e.g., "reboot" from Linux) on some iProc based SoCs >> LCPLL clock and PERST both goes off

Re: [PATCH v7 2/3] PCI: Add support for PCI inbound windows resources

2017-06-01 Thread Oza Oza
On Thu, Jun 1, 2017 at 10:38 PM, Bjorn Helgaas <bhelg...@google.com> wrote: > On Wed, May 31, 2017 at 11:17 AM, Oza Oza <oza@broadcom.com> wrote: >> On Wed, May 31, 2017 at 4:12 AM, Bjorn Helgaas <bhelg...@google.com> wrote: >>> On Mon, May 22,

Re: [PATCH v7 2/3] PCI: Add support for PCI inbound windows resources

2017-06-01 Thread Oza Oza
On Thu, Jun 1, 2017 at 10:38 PM, Bjorn Helgaas wrote: > On Wed, May 31, 2017 at 11:17 AM, Oza Oza wrote: >> On Wed, May 31, 2017 at 4:12 AM, Bjorn Helgaas wrote: >>> On Mon, May 22, 2017 at 11:39 AM, Oza Pawandeep >>> wrote: >>>> This patch adds support

Re: [PATCH v7 2/3] PCI: Add support for PCI inbound windows resources

2017-05-31 Thread Oza Oza
On Wed, May 31, 2017 at 4:12 AM, Bjorn Helgaas wrote: > On Mon, May 22, 2017 at 11:39 AM, Oza Pawandeep wrote: >> This patch adds support for inbound memory window >> for PCI RC drivers. >> >> It defines new function pci_create_root_bus2 which >> takes

Re: [PATCH v7 2/3] PCI: Add support for PCI inbound windows resources

2017-05-31 Thread Oza Oza
On Wed, May 31, 2017 at 4:12 AM, Bjorn Helgaas wrote: > On Mon, May 22, 2017 at 11:39 AM, Oza Pawandeep wrote: >> This patch adds support for inbound memory window >> for PCI RC drivers. >> >> It defines new function pci_create_root_bus2 which >> takes inbound resources as an argument and fills

Re: [PATCH v7 0/3] PCI/IOMMU: Reserve IOVAs for PCI inbound memory

2017-05-22 Thread Oza Oza
On Tue, May 23, 2017 at 12:48 AM, Alex Williamson wrote: > On Mon, 22 May 2017 22:09:39 +0530 > Oza Pawandeep wrote: > >> iproc based PCI RC and Stingray SOC has limitaiton of addressing only 512GB >> memory at once. >> >> IOVA allocation honors

Re: [PATCH v7 0/3] PCI/IOMMU: Reserve IOVAs for PCI inbound memory

2017-05-22 Thread Oza Oza
On Tue, May 23, 2017 at 12:48 AM, Alex Williamson wrote: > On Mon, 22 May 2017 22:09:39 +0530 > Oza Pawandeep wrote: > >> iproc based PCI RC and Stingray SOC has limitaiton of addressing only 512GB >> memory at once. >> >> IOVA allocation honors device's coherent_dma_mask/dma_mask. >> In PCI

Re: [PATCH 2/3] iommu/pci: reserve iova for PCI masters

2017-05-22 Thread Oza Oza
On Fri, May 5, 2017 at 9:21 PM, Robin Murphy <robin.mur...@arm.com> wrote: > On 04/05/17 19:52, Oza Oza wrote: >> On Thu, May 4, 2017 at 11:50 PM, Robin Murphy <robin.mur...@arm.com> wrote: >>> On 03/05/17 05:46, Oza Pawandeep wrote: >>>> this patch res

Re: [PATCH 2/3] iommu/pci: reserve iova for PCI masters

2017-05-22 Thread Oza Oza
On Fri, May 5, 2017 at 9:21 PM, Robin Murphy wrote: > On 04/05/17 19:52, Oza Oza wrote: >> On Thu, May 4, 2017 at 11:50 PM, Robin Murphy wrote: >>> On 03/05/17 05:46, Oza Pawandeep wrote: >>>> this patch reserves the iova for PCI masters. >>>> ARM64

Re: [PATCH v6 1/3] of/pci/dma: fix DMA configuration for PCI masters

2017-05-22 Thread Oza Oza
On Thu, May 18, 2017 at 12:43 AM, Arnd Bergmann wrote: > On Tue, May 16, 2017 at 7:22 AM, Oza Pawandeep wrote: >> current device framework and OF framework integration assumes >> dma-ranges in a way where memory-mapped devices define their >> dma-ranges.

Re: [PATCH v6 1/3] of/pci/dma: fix DMA configuration for PCI masters

2017-05-22 Thread Oza Oza
On Thu, May 18, 2017 at 12:43 AM, Arnd Bergmann wrote: > On Tue, May 16, 2017 at 7:22 AM, Oza Pawandeep wrote: >> current device framework and OF framework integration assumes >> dma-ranges in a way where memory-mapped devices define their >> dma-ranges. (child-bus-address, parent-bus-address,

Re: [PATCH v6 1/3] of/pci/dma: fix DMA configuration for PCI masters

2017-05-18 Thread Oza Oza
On Thu, May 18, 2017 at 12:43 AM, Arnd Bergmann wrote: > On Tue, May 16, 2017 at 7:22 AM, Oza Pawandeep wrote: >> current device framework and OF framework integration assumes >> dma-ranges in a way where memory-mapped devices define their >> dma-ranges.

Re: [PATCH v6 1/3] of/pci/dma: fix DMA configuration for PCI masters

2017-05-18 Thread Oza Oza
On Thu, May 18, 2017 at 12:43 AM, Arnd Bergmann wrote: > On Tue, May 16, 2017 at 7:22 AM, Oza Pawandeep wrote: >> current device framework and OF framework integration assumes >> dma-ranges in a way where memory-mapped devices define their >> dma-ranges. (child-bus-address, parent-bus-address,

Re: [PATCH v6 1/3] of/pci/dma: fix DMA configuration for PCI masters

2017-05-18 Thread Oza Oza
On Wed, May 17, 2017 at 10:40 PM, Bjorn Helgaas wrote: > On Tue, May 16, 2017 at 10:52:05AM +0530, Oza Pawandeep wrote: >> current device framework and OF framework integration assumes > > s/current/The current/ > >> dma-ranges in a way where memory-mapped devices define their

Re: [PATCH v6 1/3] of/pci/dma: fix DMA configuration for PCI masters

2017-05-18 Thread Oza Oza
On Wed, May 17, 2017 at 10:40 PM, Bjorn Helgaas wrote: > On Tue, May 16, 2017 at 10:52:05AM +0530, Oza Pawandeep wrote: >> current device framework and OF framework integration assumes > > s/current/The current/ > >> dma-ranges in a way where memory-mapped devices define their >> dma-ranges.

Re: [PATCH v6 2/3] iommu/pci: reserve IOVA for PCI masters

2017-05-18 Thread Oza Oza
On Wed, May 17, 2017 at 10:41 PM, Bjorn Helgaas wrote: > On Tue, May 16, 2017 at 10:52:06AM +0530, Oza Pawandeep wrote: >> this patch reserves the IOVA for PCI masters. >> ARM64 based SOCs may have scattered memory banks. >> such as iproc based SOC has >> >> <0x

Re: [PATCH v6 2/3] iommu/pci: reserve IOVA for PCI masters

2017-05-18 Thread Oza Oza
On Wed, May 17, 2017 at 10:41 PM, Bjorn Helgaas wrote: > On Tue, May 16, 2017 at 10:52:06AM +0530, Oza Pawandeep wrote: >> this patch reserves the IOVA for PCI masters. >> ARM64 based SOCs may have scattered memory banks. >> such as iproc based SOC has >> >> <0x 0x8000 0x0

Re: [PATCH 1/3] of/pci/dma: fix DMA configuration for PCI masters

2017-05-15 Thread Oza Oza
On Sat, May 6, 2017 at 11:00 AM, Oza Oza <oza@broadcom.com> wrote: > On Fri, May 5, 2017 at 8:55 PM, Robin Murphy <robin.mur...@arm.com> wrote: >> On 04/05/17 19:41, Oza Oza wrote: >> [...] >>>>> 5) leaves scope of adding PCI flag handling fo

Re: [PATCH 1/3] of/pci/dma: fix DMA configuration for PCI masters

2017-05-15 Thread Oza Oza
On Sat, May 6, 2017 at 11:00 AM, Oza Oza wrote: > On Fri, May 5, 2017 at 8:55 PM, Robin Murphy wrote: >> On 04/05/17 19:41, Oza Oza wrote: >> [...] >>>>> 5) leaves scope of adding PCI flag handling for inbound memory >>>>> by the new function. >

Re: [RFC] NVMe Configuraiton using sysctl

2017-05-15 Thread Oza Oza
On Mon, May 15, 2017 at 2:45 PM, Sagi Grimberg wrote: > >>> Hi, > > > Hi Oza, > >>> we are configuring interrupt coalesce for NVMe, but right now, it uses >>> module param. >>> so the same interrupt coalesce settings get applied for all the NVMEs >>> connected to different RCs.

Re: [RFC] NVMe Configuraiton using sysctl

2017-05-15 Thread Oza Oza
On Mon, May 15, 2017 at 2:45 PM, Sagi Grimberg wrote: > >>> Hi, > > > Hi Oza, > >>> we are configuring interrupt coalesce for NVMe, but right now, it uses >>> module param. >>> so the same interrupt coalesce settings get applied for all the NVMEs >>> connected to different RCs. >>> >>> ideally it

Re: [RFC] NVMe Configuraiton using sysctl

2017-05-15 Thread Oza Oza
On Mon, May 15, 2017 at 2:04 PM, Oza Oza <oza@broadcom.com> wrote: > Hi, > > we are configuring interrupt coalesce for NVMe, but right now, it uses > module param. > so the same interrupt coalesce settings get applied for all the NVMEs > connected to different RC

Re: [RFC] NVMe Configuraiton using sysctl

2017-05-15 Thread Oza Oza
On Mon, May 15, 2017 at 2:04 PM, Oza Oza wrote: > Hi, > > we are configuring interrupt coalesce for NVMe, but right now, it uses > module param. > so the same interrupt coalesce settings get applied for all the NVMEs > connected to different RCs. > > ideally it should b

[RFC] NVMe Configuraiton using sysctl

2017-05-15 Thread Oza Oza
Hi, we are configuring interrupt coalesce for NVMe, but right now, it uses module param. so the same interrupt coalesce settings get applied for all the NVMEs connected to different RCs. ideally it should be with sysctl. for e.g. sysctl should provide interface to change Per-CPU IO queue pairs,

[RFC] NVMe Configuraiton using sysctl

2017-05-15 Thread Oza Oza
Hi, we are configuring interrupt coalesce for NVMe, but right now, it uses module param. so the same interrupt coalesce settings get applied for all the NVMEs connected to different RCs. ideally it should be with sysctl. for e.g. sysctl should provide interface to change Per-CPU IO queue pairs,

Re: [PATCH 2/3] iommu/pci: reserve iova for PCI masters

2017-05-06 Thread Oza Oza
On Fri, May 5, 2017 at 9:21 PM, Robin Murphy <robin.mur...@arm.com> wrote: > On 04/05/17 19:52, Oza Oza wrote: >> On Thu, May 4, 2017 at 11:50 PM, Robin Murphy <robin.mur...@arm.com> wrote: >>> On 03/05/17 05:46, Oza Pawandeep wrote: >>>> this patch res

Re: [PATCH 2/3] iommu/pci: reserve iova for PCI masters

2017-05-06 Thread Oza Oza
On Fri, May 5, 2017 at 9:21 PM, Robin Murphy wrote: > On 04/05/17 19:52, Oza Oza wrote: >> On Thu, May 4, 2017 at 11:50 PM, Robin Murphy wrote: >>> On 03/05/17 05:46, Oza Pawandeep wrote: >>>> this patch reserves the iova for PCI masters. >>>> ARM64

Re: [PATCH 1/3] of/pci/dma: fix DMA configuration for PCI masters

2017-05-05 Thread Oza Oza
On Fri, May 5, 2017 at 8:55 PM, Robin Murphy <robin.mur...@arm.com> wrote: > On 04/05/17 19:41, Oza Oza wrote: > [...] >>>> 5) leaves scope of adding PCI flag handling for inbound memory >>>> by the new function. >>> >>> Which flag

Re: [PATCH 1/3] of/pci/dma: fix DMA configuration for PCI masters

2017-05-05 Thread Oza Oza
On Fri, May 5, 2017 at 8:55 PM, Robin Murphy wrote: > On 04/05/17 19:41, Oza Oza wrote: > [...] >>>> 5) leaves scope of adding PCI flag handling for inbound memory >>>> by the new function. >>> >>> Which flags would ever actually matter? DMA windo

Re: [PATCH 2/3] iommu/pci: reserve iova for PCI masters

2017-05-05 Thread Oza Oza
On Thu, May 4, 2017 at 11:50 PM, Robin Murphy wrote: > On 03/05/17 05:46, Oza Pawandeep wrote: >> this patch reserves the iova for PCI masters. >> ARM64 based SOCs may have scattered memory banks. >> such as iproc based SOC has >> >> <0x 0x8000 0x0 0x8000>,

Re: [PATCH 2/3] iommu/pci: reserve iova for PCI masters

2017-05-05 Thread Oza Oza
On Thu, May 4, 2017 at 11:50 PM, Robin Murphy wrote: > On 03/05/17 05:46, Oza Pawandeep wrote: >> this patch reserves the iova for PCI masters. >> ARM64 based SOCs may have scattered memory banks. >> such as iproc based SOC has >> >> <0x 0x8000 0x0 0x8000>, /* 2G @ 2G */ >>

Re: [PATCH 1/3] of/pci/dma: fix DMA configuration for PCI masters

2017-05-04 Thread Oza Oza
On Thu, May 4, 2017 at 11:32 PM, Robin Murphy wrote: > [apologies for the silence - I've been on holiday] > > On 03/05/17 05:46, Oza Pawandeep wrote: >> current device framework and of framework integration assumes >> dma-ranges in a way where memory-mapped devices define

Re: [PATCH 1/3] of/pci/dma: fix DMA configuration for PCI masters

2017-05-04 Thread Oza Oza
On Thu, May 4, 2017 at 11:32 PM, Robin Murphy wrote: > [apologies for the silence - I've been on holiday] > > On 03/05/17 05:46, Oza Pawandeep wrote: >> current device framework and of framework integration assumes >> dma-ranges in a way where memory-mapped devices define their >> dma-ranges.

Re: [PATCH 2/3] iommu/pci: reserve iova for PCI masters

2017-05-04 Thread Oza Oza
On Thu, May 4, 2017 at 11:50 PM, Robin Murphy wrote: > On 03/05/17 05:46, Oza Pawandeep wrote: >> this patch reserves the iova for PCI masters. >> ARM64 based SOCs may have scattered memory banks. >> such as iproc based SOC has >> >> <0x 0x8000 0x0 0x8000>,

Re: [PATCH 2/3] iommu/pci: reserve iova for PCI masters

2017-05-04 Thread Oza Oza
On Thu, May 4, 2017 at 11:50 PM, Robin Murphy wrote: > On 03/05/17 05:46, Oza Pawandeep wrote: >> this patch reserves the iova for PCI masters. >> ARM64 based SOCs may have scattered memory banks. >> such as iproc based SOC has >> >> <0x 0x8000 0x0 0x8000>, /* 2G @ 2G */ >>

Re: [PATCH 1/3] of/pci/dma: fix DMA configuration for PCI masters

2017-05-04 Thread Oza Oza
On Thu, May 4, 2017 at 11:32 PM, Robin Murphy wrote: > [apologies for the silence - I've been on holiday] > > On 03/05/17 05:46, Oza Pawandeep wrote: >> current device framework and of framework integration assumes >> dma-ranges in a way where memory-mapped devices define

Re: [PATCH 1/3] of/pci/dma: fix DMA configuration for PCI masters

2017-05-04 Thread Oza Oza
On Thu, May 4, 2017 at 11:32 PM, Robin Murphy wrote: > [apologies for the silence - I've been on holiday] > > On 03/05/17 05:46, Oza Pawandeep wrote: >> current device framework and of framework integration assumes >> dma-ranges in a way where memory-mapped devices define their >> dma-ranges.

  1   2   >