[PATCH v6 3/3] PCI/of fix of_dma_get_range; get PCI specific dma-ranges

2017-05-15 Thread Oza Pawandeep
ould get dev->coherent_dma_mask=0x7f. based on which IOVA allocation space will honour PCI host bridge limitations. the implementation hooks bus specific callbacks for getting dma-ranges. Signed-off-by: Oza Pawandeep <oza@broadcom.com> diff --git a/drivers/of/address.c b/drivers/of/ad

[PATCH v6 3/3] PCI/of fix of_dma_get_range; get PCI specific dma-ranges

2017-05-15 Thread Oza Pawandeep
ould get dev->coherent_dma_mask=0x7f. based on which IOVA allocation space will honour PCI host bridge limitations. the implementation hooks bus specific callbacks for getting dma-ranges. Signed-off-by: Oza Pawandeep diff --git a/drivers/of/address.c b/drivers/of/address.c index 02b2903.

[PATCH v5 3/3] PCI/of fix of_dma_get_range; get PCI specific dma-ranges

2017-05-05 Thread Oza Pawandeep
honour PCI host bridge limitations. the implementation hooks bus specific callbacks for getting dma-ranges. Signed-off-by: Oza Pawandeep <oza@broadcom.com> diff --git a/drivers/of/address.c b/drivers/of/address.c index 02b2903..b43e347 100644 --- a/drivers/of/address.c +++ b/drivers/of/a

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

2017-05-05 Thread Oza Pawandeep
to avoid allocating IOVA which are reserved. which inturn does not allocate IOVA if it falls into hole. Signed-off-by: Oza Pawandeep <oza@broadcom.com> diff --git a/drivers/iommu/dma-iommu.c b/drivers/iommu/dma-iommu.c index 48d36ce..08764b0 100644 --- a/drivers/iommu/dma-iommu.c +

[PATCH v5 3/3] PCI/of fix of_dma_get_range; get PCI specific dma-ranges

2017-05-05 Thread Oza Pawandeep
honour PCI host bridge limitations. the implementation hooks bus specific callbacks for getting dma-ranges. Signed-off-by: Oza Pawandeep diff --git a/drivers/of/address.c b/drivers/of/address.c index 02b2903..b43e347 100644 --- a/drivers/of/address.c +++ b/drivers/of/address.c @@ -6,6 +6,7 @@ #inc

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

2017-05-05 Thread Oza Pawandeep
to avoid allocating IOVA which are reserved. which inturn does not allocate IOVA if it falls into hole. Signed-off-by: Oza Pawandeep diff --git a/drivers/iommu/dma-iommu.c b/drivers/iommu/dma-iommu.c index 48d36ce..08764b0 100644 --- a/drivers/iommu/dma-iommu.c +++ b/drivers/iommu/dma-iommu.c @@

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

2017-05-05 Thread Oza Pawandeep
way the callers of for e.g. of_dma_get_ranges does not need to change. 5) leaves scope of adding PCI flag handling for inbound memory by the new function. Signed-off-by: Oza Pawandeep <oza@broadcom.com> diff --git a/drivers/of/of_pci.c b/drivers/of/of_pci.c index 0ee42c3..ed6e69a 100644 ---

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

2017-05-05 Thread Oza Pawandeep
way the callers of for e.g. of_dma_get_ranges does not need to change. 5) leaves scope of adding PCI flag handling for inbound memory by the new function. Signed-off-by: Oza Pawandeep diff --git a/drivers/of/of_pci.c b/drivers/of/of_pci.c index 0ee42c3..ed6e69a 100644 --- a/drivers/of/of_pci.c +++ b/driv

[PATCH v5 0/3] OF/PCI address PCI inbound memory limitations

2017-05-05 Thread Oza Pawandeep
: reserve iova for PCI masters; since under discussion with Robin Oza Pawandeep (3): of/pci/dma: fix DMA configuration for PCI masters iommu/pci: reserve IOVA for PCI masters PCI/of fix of_dma_get_range; get PCI specific dma-ranges drivers/iommu/dma-iommu.c | 35 drivers/of/

[PATCH v5 0/3] OF/PCI address PCI inbound memory limitations

2017-05-05 Thread Oza Pawandeep
: reserve iova for PCI masters; since under discussion with Robin Oza Pawandeep (3): of/pci/dma: fix DMA configuration for PCI masters iommu/pci: reserve IOVA for PCI masters PCI/of fix of_dma_get_range; get PCI specific dma-ranges drivers/iommu/dma-iommu.c | 35 drivers/of/

[PATCH v4 0/3] OF/PCI address PCI inbound memory limitations

2017-05-05 Thread Oza Pawandeep
_range call of_bus_match() and then bus->get_dma_ranges. - no revison for [PATCH 2/3] iommu/pci: reserve iova for PCI masters; since under discussion with Robin Oza Pawandeep (3): of/pci/dma: fix DMA configuration for PCI masters iommu/pci: reserve iova for PCI masters PCI/of fix of_dma_

[PATCH v4 0/3] OF/PCI address PCI inbound memory limitations

2017-05-05 Thread Oza Pawandeep
_range call of_bus_match() and then bus->get_dma_ranges. - no revison for [PATCH 2/3] iommu/pci: reserve iova for PCI masters; since under discussion with Robin Oza Pawandeep (3): of/pci/dma: fix DMA configuration for PCI masters iommu/pci: reserve iova for PCI masters PCI/of fix of_dma_

[PATCH v4 3/3] PCI/of fix of_dma_get_range; get PCI specific dma-ranges

2017-05-05 Thread Oza Pawandeep
honour PCI host bridge limitations. the implementation hooks bus specific callbacks for getting dma-ranges. Signed-off-by: Oza Pawandeep <oza@broadcom.com> diff --git a/drivers/of/address.c b/drivers/of/address.c index 02b2903..b43e347 100644 --- a/drivers/of/address.c +++ b/drivers/of/a

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

2017-05-05 Thread Oza Pawandeep
to avoid allocating IOVA which are reserved. which inturn does not allocate IOVA if it falls into hole. Signed-off-by: Oza Pawandeep <oza@broadcom.com> diff --git a/drivers/iommu/dma-iommu.c b/drivers/iommu/dma-iommu.c index 48d36ce..08764b0 100644 --- a/drivers/iommu/dma-iommu.c +

[PATCH v4 3/3] PCI/of fix of_dma_get_range; get PCI specific dma-ranges

2017-05-05 Thread Oza Pawandeep
honour PCI host bridge limitations. the implementation hooks bus specific callbacks for getting dma-ranges. Signed-off-by: Oza Pawandeep diff --git a/drivers/of/address.c b/drivers/of/address.c index 02b2903..b43e347 100644 --- a/drivers/of/address.c +++ b/drivers/of/address.c @@ -6,6 +6,7 @@ #inc

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

2017-05-05 Thread Oza Pawandeep
to avoid allocating IOVA which are reserved. which inturn does not allocate IOVA if it falls into hole. Signed-off-by: Oza Pawandeep diff --git a/drivers/iommu/dma-iommu.c b/drivers/iommu/dma-iommu.c index 48d36ce..08764b0 100644 --- a/drivers/iommu/dma-iommu.c +++ b/drivers/iommu/dma-iommu.c @@

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

2017-05-05 Thread Oza Pawandeep
way the callers of for e.g. of_dma_get_ranges does not need to change. 5) leaves scope of adding PCI flag handling for inbound memory by the new function. Signed-off-by: Oza Pawandeep <oza@broadcom.com> diff --git a/drivers/of/of_pci.c b/drivers/of/of_pci.c index 0ee42c3..ed6e69a 100644 ---

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

2017-05-05 Thread Oza Pawandeep
way the callers of for e.g. of_dma_get_ranges does not need to change. 5) leaves scope of adding PCI flag handling for inbound memory by the new function. Signed-off-by: Oza Pawandeep diff --git a/drivers/of/of_pci.c b/drivers/of/of_pci.c index 0ee42c3..ed6e69a 100644 --- a/drivers/of/of_pci.c +++ b/driv

[PATCH v3 0/3] OF/PCI address PCI inbound memory limitations

2017-05-05 Thread Oza Pawandeep
ranges and adding that to the default of_bus struct. - Make of_dma_get_range call of_bus_match() and then bus->get_dma_ranges. - no revison for [PATCH 2/3] iommu/pci: reserve iova for PCI masters; since under discussion with Robin Oza Pawandeep (3): of/pci/dma: fix DMA configuration for PCI master

[PATCH v3 0/3] OF/PCI address PCI inbound memory limitations

2017-05-05 Thread Oza Pawandeep
ranges and adding that to the default of_bus struct. - Make of_dma_get_range call of_bus_match() and then bus->get_dma_ranges. - no revison for [PATCH 2/3] iommu/pci: reserve iova for PCI masters; since under discussion with Robin Oza Pawandeep (3): of/pci/dma: fix DMA configuration for PCI master

[PATCH v3 3/3] PCI/of fix of_dma_get_range; get PCI specific dma-ranges

2017-05-05 Thread Oza Pawandeep
honour PCI host bridge limitations. the implementation hooks bus specific callbacks for getting dma-ranges. Signed-off-by: Oza Pawandeep <oza@broadcom.com> diff --git a/drivers/of/address.c b/drivers/of/address.c index 02b2903..cc0fc28 100644 --- a/drivers/of/address.c +++ b/drivers/of/a

[PATCH v3 3/3] PCI/of fix of_dma_get_range; get PCI specific dma-ranges

2017-05-05 Thread Oza Pawandeep
honour PCI host bridge limitations. the implementation hooks bus specific callbacks for getting dma-ranges. Signed-off-by: Oza Pawandeep diff --git a/drivers/of/address.c b/drivers/of/address.c index 02b2903..cc0fc28 100644 --- a/drivers/of/address.c +++ b/drivers/of/address.c @@ -6,6 +6,7 @@ #inc

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

2017-05-05 Thread Oza Pawandeep
way the callers of for e.g. of_dma_get_ranges does not need to change. 5) leaves scope of adding PCI flag handling for inbound memory by the new function. Signed-off-by: Oza Pawandeep <oza@broadcom.com> diff --git a/drivers/of/of_pci.c b/drivers/of/of_pci.c index 0ee42c3..ed6e69a 100644 ---

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

2017-05-05 Thread Oza Pawandeep
way the callers of for e.g. of_dma_get_ranges does not need to change. 5) leaves scope of adding PCI flag handling for inbound memory by the new function. Signed-off-by: Oza Pawandeep diff --git a/drivers/of/of_pci.c b/drivers/of/of_pci.c index 0ee42c3..ed6e69a 100644 --- a/drivers/of/of_pci.c +++ b/driv

[PATCH v2 0/3] OF/PCI address PCI inbound memory limitations

2017-05-05 Thread Oza Pawandeep
ranges and adding that to the default of_bus struct. - Make of_dma_get_range call of_bus_match() and then bus->get_dma_ranges. - no revison for [PATCH 2/3] iommu/pci: reserve iova for PCI masters; since under discussion with Robin Oza Pawandeep (3): of/pci/dma: fix DMA configuration for PCI master

[PATCH v2 0/3] OF/PCI address PCI inbound memory limitations

2017-05-05 Thread Oza Pawandeep
ranges and adding that to the default of_bus struct. - Make of_dma_get_range call of_bus_match() and then bus->get_dma_ranges. - no revison for [PATCH 2/3] iommu/pci: reserve iova for PCI masters; since under discussion with Robin Oza Pawandeep (3): of/pci/dma: fix DMA configuration for PCI master

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

2017-05-05 Thread Oza Pawandeep
way the callers of for e.g. of_dma_get_ranges does not need to change. 5) leaves scope of adding PCI flag handling for inbound memory by the new function. Signed-off-by: Oza Pawandeep <oza@broadcom.com> diff --git a/drivers/of/of_pci.c b/drivers/of/of_pci.c index 0ee42c3..ed6e69a 100644 ---

[PATCH v2 3/3] PCI/of fix of_dma_get_range; get PCI specific dma-ranges

2017-05-05 Thread Oza Pawandeep
honour PCI host bridge limitations. the implementation hooks bus specific callbacks for getting dma-ranges. Signed-off-by: Oza Pawandeep <oza@broadcom.com> diff --git a/drivers/of/address.c b/drivers/of/address.c index 02b2903..cc0fc28 100644 --- a/drivers/of/address.c +++ b/drivers/of/a

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

2017-05-05 Thread Oza Pawandeep
way the callers of for e.g. of_dma_get_ranges does not need to change. 5) leaves scope of adding PCI flag handling for inbound memory by the new function. Signed-off-by: Oza Pawandeep diff --git a/drivers/of/of_pci.c b/drivers/of/of_pci.c index 0ee42c3..ed6e69a 100644 --- a/drivers/of/of_pci.c +++ b/driv

[PATCH v2 3/3] PCI/of fix of_dma_get_range; get PCI specific dma-ranges

2017-05-05 Thread Oza Pawandeep
honour PCI host bridge limitations. the implementation hooks bus specific callbacks for getting dma-ranges. Signed-off-by: Oza Pawandeep diff --git a/drivers/of/address.c b/drivers/of/address.c index 02b2903..cc0fc28 100644 --- a/drivers/of/address.c +++ b/drivers/of/address.c @@ -6,6 +6,7 @@ #inc

[PATCH v2 0/3] OF/PCI address PCI inbound memory limitations

2017-05-05 Thread Oza Pawandeep
e call of_bus_match() and then bus->get_dma_ranges. - no revison for [PATCH 2/3] iommu/pci: reserve iova for PCI masters; since under discussion with Robin Oza Pawandeep (3): of/pci/dma: fix DMA configuration for PCI masters iommu/pci: reserve iova for PCI masters PCI/of fix of_dma_

[PATCH v2 0/3] OF/PCI address PCI inbound memory limitations

2017-05-05 Thread Oza Pawandeep
e call of_bus_match() and then bus->get_dma_ranges. - no revison for [PATCH 2/3] iommu/pci: reserve iova for PCI masters; since under discussion with Robin Oza Pawandeep (3): of/pci/dma: fix DMA configuration for PCI masters iommu/pci: reserve iova for PCI masters PCI/of fix of_dma_

[PATCH v2 0/3] OF/PCI address PCI inbound memory limitations

2017-05-05 Thread Oza Pawandeep
e call of_bus_match() and then bus->get_dma_ranges. - no revison for [PATCH 2/3] iommu/pci: reserve iova for PCI masters; since under discussion with Robin Oza Pawandeep (3): of/pci/dma: fix DMA configuration for PCI masters iommu/pci: reserve iova for PCI masters PCI/of fix of_dma_

[PATCH v2 3/3] PCI/of fix of_dma_get_range; get PCI specific dma-ranges

2017-05-05 Thread Oza Pawandeep
honour PCI host bridge limitations. the implementation hooks bus specific callbacks for getting dma-ranges. Signed-off-by: Oza Pawandeep <oza@broadcom.com> diff --git a/drivers/of/address.c b/drivers/of/address.c index 02b2903..cc0fc28 100644 --- a/drivers/of/address.c +++ b/drivers/of/a

[PATCH v2 0/3] OF/PCI address PCI inbound memory limitations

2017-05-05 Thread Oza Pawandeep
e call of_bus_match() and then bus->get_dma_ranges. - no revison for [PATCH 2/3] iommu/pci: reserve iova for PCI masters; since under discussion with Robin Oza Pawandeep (3): of/pci/dma: fix DMA configuration for PCI masters iommu/pci: reserve iova for PCI masters PCI/of fix of_dma_

[PATCH v2 3/3] PCI/of fix of_dma_get_range; get PCI specific dma-ranges

2017-05-05 Thread Oza Pawandeep
honour PCI host bridge limitations. the implementation hooks bus specific callbacks for getting dma-ranges. Signed-off-by: Oza Pawandeep diff --git a/drivers/of/address.c b/drivers/of/address.c index 02b2903..cc0fc28 100644 --- a/drivers/of/address.c +++ b/drivers/of/address.c @@ -6,6 +6,7 @@ #inc

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

2017-05-05 Thread Oza Pawandeep
way the callers of for e.g. of_dma_get_ranges does not need to change. 5) leaves scope of adding PCI flag handling for inbound memory by the new function. Signed-off-by: Oza Pawandeep <oza@broadcom.com> Reviewed-by: Ray Jui <ray@broadcom.com> Reviewed-by: Scott Branden <scott.bra

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

2017-05-05 Thread Oza Pawandeep
way the callers of for e.g. of_dma_get_ranges does not need to change. 5) leaves scope of adding PCI flag handling for inbound memory by the new function. Signed-off-by: Oza Pawandeep Reviewed-by: Ray Jui Reviewed-by: Scott Branden diff --git a/drivers/of/of_pci.c b/drivers/of/of_pci.c index 0ee42c3.

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

2017-05-02 Thread Oza Pawandeep
o avoid allocating iovas which are reserved. which inturn does not allocate iova if it falls into hole. Bug: SOC-5216 Change-Id: Icbfc99a045d730be143fef427098c937b9d46353 Signed-off-by: Oza Pawandeep <oza@broadcom.com> Reviewed-on: http://gerrit-ccxsw.broadcom.net/40760 Reviewed-by: vpx_

[PATCH 3/3] PCI/of fix of_dma_get_range; get PCI specific dma-ranges

2017-05-02 Thread Oza Pawandeep
llocation space will honour PCI host bridge limitations. Bug: SOC-5216 Change-Id: I4c534bdd17e70c6b27327d39d1656e8ed0cf56d6 Signed-off-by: Oza Pawandeep <oza@broadcom.com> Reviewed-on: http://gerrit-ccxsw.broadcom.net/40762 Reviewed-by: vpx_checkpatch status <vpx_checkpa...@broadcom.com>

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

2017-05-02 Thread Oza Pawandeep
way the callers of for e.g. of_dma_get_ranges does not need to change. 5) leaves scope of adding PCI flag handling for inbound memory by the new function. Bug: SOC-5216 Change-Id: Ie045386df91e1e0587846bb147ae40d96f6d7d2e Signed-off-by: Oza Pawandeep <oza@broadcom.com> Reviewed-on: http://gerr

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

2017-05-02 Thread Oza Pawandeep
o avoid allocating iovas which are reserved. which inturn does not allocate iova if it falls into hole. Bug: SOC-5216 Change-Id: Icbfc99a045d730be143fef427098c937b9d46353 Signed-off-by: Oza Pawandeep Reviewed-on: http://gerrit-ccxsw.broadcom.net/40760 Reviewed-by: vpx_checkpatch status Re

[PATCH 3/3] PCI/of fix of_dma_get_range; get PCI specific dma-ranges

2017-05-02 Thread Oza Pawandeep
llocation space will honour PCI host bridge limitations. Bug: SOC-5216 Change-Id: I4c534bdd17e70c6b27327d39d1656e8ed0cf56d6 Signed-off-by: Oza Pawandeep Reviewed-on: http://gerrit-ccxsw.broadcom.net/40762 Reviewed-by: vpx_checkpatch status Reviewed-by: CCXSW Reviewed-by: Scott Branden Tested-by: vpx_a

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

2017-05-02 Thread Oza Pawandeep
way the callers of for e.g. of_dma_get_ranges does not need to change. 5) leaves scope of adding PCI flag handling for inbound memory by the new function. Bug: SOC-5216 Change-Id: Ie045386df91e1e0587846bb147ae40d96f6d7d2e Signed-off-by: Oza Pawandeep Reviewed-on: http://gerrit-ccxsw.broadcom.net

[RFC PATH] of/pci/dma: fix DMA configruation for PCI masters

2017-04-22 Thread Oza Pawandeep
e of adding PCI flag handling for inbound memory by the new function. Signed-off-by: Oza Pawandeep <oza@broadcom.com> diff --git a/drivers/of/address.c b/drivers/of/address.c index 02b2903..ec21191 100644 --- a/drivers/of/address.c +++ b/drivers/of/address.c @@ -6,6 +6,7 @@ #include

[RFC PATH] of/pci/dma: fix DMA configruation for PCI masters

2017-04-22 Thread Oza Pawandeep
e of adding PCI flag handling for inbound memory by the new function. Signed-off-by: Oza Pawandeep diff --git a/drivers/of/address.c b/drivers/of/address.c index 02b2903..ec21191 100644 --- a/drivers/of/address.c +++ b/drivers/of/address.c @@ -6,6 +6,7 @@ #include #include #include +#inc

[RFC PATCH 2/2] of/pci: call pci specific dma-ranges instead of memory-mapped.

2017-03-30 Thread Oza Pawandeep
, and largest possible inbound window size. with that largest possible dma_mask can be generated. Signed-off-by: Oza Pawandeep <oza@broadcom.com> diff --git a/drivers/of/device.c b/drivers/of/device.c index b1e6beb..d6a8dde 100644 --- a/drivers/of/device.c +++ b/drivers/of/device.c @@ -9,

[RFC PATCH 2/2] of/pci: call pci specific dma-ranges instead of memory-mapped.

2017-03-30 Thread Oza Pawandeep
, and largest possible inbound window size. with that largest possible dma_mask can be generated. Signed-off-by: Oza Pawandeep diff --git a/drivers/of/device.c b/drivers/of/device.c index b1e6beb..d6a8dde 100644 --- a/drivers/of/device.c +++ b/drivers/of/device.c @@ -9,6 +9,7 @@ #include #include

[RFC PATCH 1/2] of/pci: implement inbound dma-ranges for PCI

2017-03-30 Thread Oza Pawandeep
tends to handle multiple inbound windows and dma-ranges. it is left to the caller, how it wants to use them. Signed-off-by: Oza Pawandeep <oza@broadcom.com> diff --git a/drivers/of/of_pci.c b/drivers/of/of_pci.c index 0ee42c3..5299438 100644 --- a/drivers/of/of_pci.c +++ b/drivers/of/of_pc

[RFC PATCH 1/2] of/pci: implement inbound dma-ranges for PCI

2017-03-30 Thread Oza Pawandeep
tends to handle multiple inbound windows and dma-ranges. it is left to the caller, how it wants to use them. Signed-off-by: Oza Pawandeep diff --git a/drivers/of/of_pci.c b/drivers/of/of_pci.c index 0ee42c3..5299438 100644 --- a/drivers/of/of_pci.c +++ b/drivers/of/of_pci.c @@ -283,6

[RFC PATCH 2/3] iommu/dma: account pci host bridge dma_mask for IOVA allocation

2017-03-24 Thread Oza Pawandeep
sk=0x7f. Reviewed-by: Anup Patel <anup.pa...@broadcom.com> Reviewed-by: Scott Branden <scott.bran...@broadcom.com> Signed-off-by: Oza Pawandeep <oza@broadcom.com> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 8c7c244..20cfff7 100644 --- a/arch/arm64/Kconfig +

[RFC PATCH 3/3] of: fix node traversing in of_dma_get_range

2017-03-24 Thread Oza Pawandeep
it jumps to the parent node without examining the child node. also with that, it throws "no dma-ranges found for node" for pci dma-ranges. this patch fixes device node traversing for dma-ranges. Reviewed-by: Anup Patel <anup.pa...@broadcom.com> Signed-off-by: Oza Pawandeep <o

[RFC PATCH 2/3] iommu/dma: account pci host bridge dma_mask for IOVA allocation

2017-03-24 Thread Oza Pawandeep
sk=0x7f. Reviewed-by: Anup Patel Reviewed-by: Scott Branden Signed-off-by: Oza Pawandeep diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 8c7c244..20cfff7 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -217,6 +217,9 @@ config NEED_DMA_MAP_STATE config NEED_SG_DMA_LENGTH

[RFC PATCH 3/3] of: fix node traversing in of_dma_get_range

2017-03-24 Thread Oza Pawandeep
it jumps to the parent node without examining the child node. also with that, it throws "no dma-ranges found for node" for pci dma-ranges. this patch fixes device node traversing for dma-ranges. Reviewed-by: Anup Patel Signed-off-by: Oza Pawandeep diff --git a/drivers/of/address.c

[RFC PATCH 1/3] of/pci: dma-ranges to account highest possible host bridge dma_mask

2017-03-24 Thread Oza Pawandeep
herent_dma_mask=0x7f. Reviewed-by: Anup Patel <anup.pa...@broadcom.com> Reviewed-by: Scott Branden <scott.bran...@broadcom.com> Signed-off-by: Oza Pawandeep <oza@broadcom.com> Signed-off-by: Oza Pawandeep <oza@broadcom.com> diff --git a/drivers/of/device.c b/dri

[RFC PATCH 1/3] of/pci: dma-ranges to account highest possible host bridge dma_mask

2017-03-24 Thread Oza Pawandeep
herent_dma_mask=0x7f. Reviewed-by: Anup Patel Reviewed-by: Scott Branden Signed-off-by: Oza Pawandeep Signed-off-by: Oza Pawandeep diff --git a/drivers/of/device.c b/drivers/of/device.c index b1e6beb..d362a98 100644 --- a/drivers/of/device.c +++ b/drivers/of/device.c @@ -9,6 +9,7 @@ #inc

[RFC PATCH] iommu/dma: account pci host bridge dma_mask for IOVA allocation

2017-03-17 Thread Oza Pawandeep
anup.pa...@broadcom.com> Reviewed-by: Scott Branden <scott.bran...@broadcom.com> Signed-off-by: Oza Pawandeep <oza@broadcom.com> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 8c7c244..20cfff7 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -2

[RFC PATCH] iommu/dma: account pci host bridge dma_mask for IOVA allocation

2017-03-17 Thread Oza Pawandeep
ewed-by: Scott Branden Signed-off-by: Oza Pawandeep diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 8c7c244..20cfff7 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -217,6 +217,9 @@ config NEED_DMA_MAP_STATE config NEED_SG_DMA_LENGTH def_bool y +config

[RFC PATCH] iommu/dma: check pci host bridge dma_mask for IOVA allocation

2017-03-14 Thread Oza Pawandeep
device and corresponding PCI Host dma_mask (if set). 3. Use iommu_get_dma_mask() in IOMMU DMA ops implementation instead of dma_get_mask() Signed-off-by: Oza Pawandeep <oza@broadcom.com> Reviewed-by: Anup Patel <anup.pa...@broadcom.com> Reviewed-by: Scott Branden <scott.bran.

[RFC PATCH] iommu/dma: check pci host bridge dma_mask for IOVA allocation

2017-03-14 Thread Oza Pawandeep
device and corresponding PCI Host dma_mask (if set). 3. Use iommu_get_dma_mask() in IOMMU DMA ops implementation instead of dma_get_mask() Signed-off-by: Oza Pawandeep Reviewed-by: Anup Patel Reviewed-by: Scott Branden --- drivers/iommu/dma-iommu.c | 44

RE: [KERNEL BUG] do_timer/tick_handover_do_timer 3.10.17

2015-05-07 Thread Oza (Pawandeep) Oza
...@gmail.com] Sent: Friday, May 08, 2015 10:42 AM To: Oza (Pawandeep) Oza Cc: pawandeep oza; linux-kernel@vger.kernel.org; malayasen rout Subject: Re: [KERNEL BUG] do_timer/tick_handover_do_timer 3.10.17 On Fri, 2015-05-08 at 04:16 +, Oza (Pawandeep) Oza wrote: > So Mike, is this reason str

RE: [KERNEL BUG] do_timer/tick_handover_do_timer 3.10.17

2015-05-07 Thread Oza (Pawandeep) Oza
ards, -Oza -Original Message----- From: Oza (Pawandeep) Oza Sent: Thursday, May 07, 2015 2:17 PM To: 'Mike Galbraith' Cc: pawandeep oza; linux-kernel@vger.kernel.org; malayasen rout Subject: RE: [KERNEL BUG] do_timer/tick_handover_do_timer 3.10.17 Oh ok. So the reason why I cared was: There is a c

RE: [KERNEL BUG] do_timer/tick_handover_do_timer 3.10.17

2015-05-07 Thread Oza (Pawandeep) Oza
-Original Message- From: Mike Galbraith [mailto:umgwanakikb...@gmail.com] Sent: Thursday, May 07, 2015 2:00 PM To: Oza (Pawandeep) Oza Cc: pawandeep oza; linux-kernel@vger.kernel.org; malayasen rout Subject: Re: [KERNEL BUG] do_timer/tick_handover_do_timer 3.10.17 On Thu, 2015-05-07 at 07:05 +

RE: [KERNEL BUG] do_timer/tick_handover_do_timer 3.10.17

2015-05-07 Thread Oza (Pawandeep) Oza
u == cpu) Regards, -Oza -Original Message----- From: Oza (Pawandeep) Oza Sent: Thursday, May 07, 2015 12:36 PM To: 'Mike Galbraith' Cc: pawandeep oza; linux-kernel@vger.kernel.org; malayasen rout Subject: RE: [KERNEL BUG] do_timer/tick_handover_do_timer 3.10.17 : ) Well, I am not sure, if

RE: [KERNEL BUG] do_timer/tick_handover_do_timer 3.10.17

2015-05-07 Thread Oza (Pawandeep) Oza
-Original Message- From: Mike Galbraith [mailto:umgwanakikb...@gmail.com] Sent: Thursday, May 07, 2015 12:25 PM To: Oza (Pawandeep) Oza Cc: pawandeep oza; linux-kernel@vger.kernel.org; malayasen rout Subject: Re: [KERNEL BUG] do_timer/tick_handover_do_timer 3.10.17 On Thu, 2015-05-07 at 05:58 +

RE: [KERNEL BUG] do_timer/tick_handover_do_timer 3.10.17

2015-05-07 Thread Oza (Pawandeep) Oza
-Original Message- From: Mike Galbraith [mailto:umgwanakikb...@gmail.com] Sent: Thursday, May 07, 2015 12:25 PM To: Oza (Pawandeep) Oza Cc: pawandeep oza; linux-kernel@vger.kernel.org; malayasen rout Subject: Re: [KERNEL BUG] do_timer/tick_handover_do_timer 3.10.17 On Thu, 2015-05-07 at 05:58 +

RE: [KERNEL BUG] do_timer/tick_handover_do_timer 3.10.17

2015-05-07 Thread Oza (Pawandeep) Oza
-Original Message- From: Oza (Pawandeep) Oza Sent: Thursday, May 07, 2015 12:36 PM To: 'Mike Galbraith' Cc: pawandeep oza; linux-kernel@vger.kernel.org; malayasen rout Subject: RE: [KERNEL BUG] do_timer/tick_handover_do_timer 3.10.17 : ) Well, I am not sure, if problem was communicated clearly

RE: [KERNEL BUG] do_timer/tick_handover_do_timer 3.10.17

2015-05-07 Thread Oza (Pawandeep) Oza
-Original Message- From: Mike Galbraith [mailto:umgwanakikb...@gmail.com] Sent: Thursday, May 07, 2015 2:00 PM To: Oza (Pawandeep) Oza Cc: pawandeep oza; linux-kernel@vger.kernel.org; malayasen rout Subject: Re: [KERNEL BUG] do_timer/tick_handover_do_timer 3.10.17 On Thu, 2015-05-07 at 07:05 +

RE: [KERNEL BUG] do_timer/tick_handover_do_timer 3.10.17

2015-05-07 Thread Oza (Pawandeep) Oza
...@gmail.com] Sent: Friday, May 08, 2015 10:42 AM To: Oza (Pawandeep) Oza Cc: pawandeep oza; linux-kernel@vger.kernel.org; malayasen rout Subject: Re: [KERNEL BUG] do_timer/tick_handover_do_timer 3.10.17 On Fri, 2015-05-08 at 04:16 +, Oza (Pawandeep) Oza wrote: So Mike, is this reason strong

RE: [KERNEL BUG] do_timer/tick_handover_do_timer 3.10.17

2015-05-07 Thread Oza (Pawandeep) Oza
-Original Message- From: Oza (Pawandeep) Oza Sent: Thursday, May 07, 2015 2:17 PM To: 'Mike Galbraith' Cc: pawandeep oza; linux-kernel@vger.kernel.org; malayasen rout Subject: RE: [KERNEL BUG] do_timer/tick_handover_do_timer 3.10.17 Oh ok. So the reason why I cared was: There is a code in our

RE: [KERNEL BUG] do_timer/tick_handover_do_timer 3.10.17

2015-05-06 Thread Oza (Pawandeep) Oza
[mailto:umgwanakikb...@gmail.com] Sent: Thursday, May 07, 2015 11:25 AM To: Oza (Pawandeep) Oza Cc: pawandeep oza; linux-kernel@vger.kernel.org; malayasen rout Subject: Re: [KERNEL BUG] do_timer/tick_handover_do_timer 3.10.17 On Thu, 2015-05-07 at 05:12 +, Oza (Pawandeep) Oza wrote: > But after Cr

RE: [KERNEL BUG] do_timer/tick_handover_do_timer 3.10.17

2015-05-06 Thread Oza (Pawandeep) Oza
Crash. But after Crash, jiffies do not increment. Regards, -Oza -Original Message- From: Mike Galbraith [mailto:umgwanakikb...@gmail.com] Sent: Thursday, May 07, 2015 10:39 AM To: Oza (Pawandeep) Oza Cc: pawandeep oza; linux-kernel@vger.kernel.org; malayasen rout Subject: Re: [KERNEL BUG

RE: [KERNEL BUG] do_timer/tick_handover_do_timer 3.10.17

2015-05-06 Thread Oza (Pawandeep) Oza
- From: Mike Galbraith [mailto:umgwanakikb...@gmail.com] Sent: Thursday, May 07, 2015 8:53 AM To: pawandeep oza Cc: linux-kernel@vger.kernel.org; malayasen rout; Oza (Pawandeep) Oza Subject: Re: [KERNEL BUG] do_timer/tick_handover_do_timer 3.10.17 On Wed, 2015-05-06 at 22:57 +0530, pawandeep

RE: [KERNEL BUG] do_timer/tick_handover_do_timer 3.10.17

2015-05-06 Thread Oza (Pawandeep) Oza
[mailto:umgwanakikb...@gmail.com] Sent: Thursday, May 07, 2015 11:25 AM To: Oza (Pawandeep) Oza Cc: pawandeep oza; linux-kernel@vger.kernel.org; malayasen rout Subject: Re: [KERNEL BUG] do_timer/tick_handover_do_timer 3.10.17 On Thu, 2015-05-07 at 05:12 +, Oza (Pawandeep) Oza wrote: But after Crash

RE: [KERNEL BUG] do_timer/tick_handover_do_timer 3.10.17

2015-05-06 Thread Oza (Pawandeep) Oza
Crash. But after Crash, jiffies do not increment. Regards, -Oza -Original Message- From: Mike Galbraith [mailto:umgwanakikb...@gmail.com] Sent: Thursday, May 07, 2015 10:39 AM To: Oza (Pawandeep) Oza Cc: pawandeep oza; linux-kernel@vger.kernel.org; malayasen rout Subject: Re: [KERNEL BUG

RE: [KERNEL BUG] do_timer/tick_handover_do_timer 3.10.17

2015-05-06 Thread Oza (Pawandeep) Oza
Galbraith [mailto:umgwanakikb...@gmail.com] Sent: Thursday, May 07, 2015 8:53 AM To: pawandeep oza Cc: linux-kernel@vger.kernel.org; malayasen rout; Oza (Pawandeep) Oza Subject: Re: [KERNEL BUG] do_timer/tick_handover_do_timer 3.10.17 On Wed, 2015-05-06 at 22:57 +0530, pawandeep oza wrote

<    1   2   3   4   5