Ah, sorry, I used a wrong Message-Id in In-reply-to, please ignore this one.
Sorry about that.
On 2018年03月12日 11:37, Shunqian Zheng wrote:
rk3399 have two ISP, but we havn't test isp1, so just add isp0 at present.
Signed-off-by: Shunqian Zheng <zhen...@rock-chips.com>
Signed-off-by:
Ah, sorry, I used a wrong Message-Id in In-reply-to, please ignore this one.
Sorry about that.
On 2018年03月12日 11:37, Shunqian Zheng wrote:
rk3399 have two ISP, but we havn't test isp1, so just add isp0 at present.
Signed-off-by: Shunqian Zheng
Signed-off-by: Jacob Chen
---
arch/arm64
rk3399 have two ISP, but we havn't test isp1, so just add isp0 at present.
Signed-off-by: Shunqian Zheng <zhen...@rock-chips.com>
Signed-off-by: Jacob Chen <jacob2.c...@rock-chips.com>
---
arch/arm64/boot/dts/rockchip/rk3399.dtsi | 18 ++
1 file changed, 18 inserti
rk3399 have two ISP, but we havn't test isp1, so just add isp0 at present.
Signed-off-by: Shunqian Zheng
Signed-off-by: Jacob Chen
---
arch/arm64/boot/dts/rockchip/rk3399.dtsi | 18 ++
1 file changed, 18 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi
b
rk3399 have two ISP, but we havn't test isp1, so just add isp0 at present.
Signed-off-by: Shunqian Zheng <zhen...@rock-chips.com>
Signed-off-by: Jacob Chen <jacob2.c...@rock-chips.com>
---
arch/arm64/boot/dts/rockchip/rk3399.dtsi | 18 ++
1 file changed, 18 inserti
rk3399 have two ISP, but we havn't test isp1, so just add isp0 at present.
Signed-off-by: Shunqian Zheng
Signed-off-by: Jacob Chen
---
arch/arm64/boot/dts/rockchip/rk3399.dtsi | 18 ++
1 file changed, 18 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi
b
one board may override cru node and
set the CPLL to 1.6 GHz. On that board it will be very important to be
explicit about aclk-vio being 400 MHz.
Signed-off-by: Shunqian Zheng <zhen...@rock-chips.com>
---
arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 6 --
arch/arm64/boot/dts/rockchip/
one board may override cru node and
set the CPLL to 1.6 GHz. On that board it will be very important to be
explicit about aclk-vio being 400 MHz.
Signed-off-by: Shunqian Zheng
---
arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 6 --
arch/arm64/boot/dts/rockchip/rk3399.dtsi | 6 --
2
Add the Rockchip ISP1 specific processing parameter format
V4L2_META_FMT_RK_ISP1_PARAMS and metadata format
V4L2_META_FMT_RK_ISP1_STAT_3A for 3A.
Signed-off-by: Shunqian Zheng <zhen...@rock-chips.com>
Signed-off-by: Jacob Chen <jacob2.c...@rock-chips.com>
---
drivers/media/v4l2-core/
Add the Rockchip ISP1 specific processing parameter format
V4L2_META_FMT_RK_ISP1_PARAMS and metadata format
V4L2_META_FMT_RK_ISP1_STAT_3A for 3A.
Signed-off-by: Shunqian Zheng
Signed-off-by: Jacob Chen
---
drivers/media/v4l2-core/v4l2-ioctl.c | 2 ++
include/uapi/linux/videodev2.h | 4
From: Jacob Chen <jacob2.c...@rock-chips.com>
Add the subdev driver for rockchip isp1.
Signed-off-by: Jacob Chen <jacob2.c...@rock-chips.com>
Signed-off-by: Shunqian Zheng <zhen...@rock-chips.com>
Signed-off-by: Yichong Zhong <z...@rock-chips.com>
Signed-off-by: Jacob C
From: Jacob Chen
Add the subdev driver for rockchip isp1.
Signed-off-by: Jacob Chen
Signed-off-by: Shunqian Zheng
Signed-off-by: Yichong Zhong
Signed-off-by: Jacob Chen
Signed-off-by: Eddie Cai
Signed-off-by: Jeffy Chen
Signed-off-by: Allon Huang
Signed-off-by: Tomasz Figa
---
drivers
From: Jacob Chen <jacob2.c...@rock-chips.com>
Add the core driver for rockchip isp1.
Signed-off-by: Jacob Chen <jacob2.c...@rock-chips.com>
Signed-off-by: Shunqian Zheng <zhen...@rock-chips.com>
Signed-off-by: Yichong Zhong <z...@rock-chips.com>
Signed-off-by: Jacob C
From: Jacob Chen
Add the core driver for rockchip isp1.
Signed-off-by: Jacob Chen
Signed-off-by: Shunqian Zheng
Signed-off-by: Yichong Zhong
Signed-off-by: Jacob Chen
Signed-off-by: Eddie Cai
Signed-off-by: Jeffy Chen
Signed-off-by: Allon Huang
Signed-off-by: Tomasz Figa
---
drivers
From: Jacob Chen
Add DT bindings documentation for Rockchip ISP1
Signed-off-by: Jacob Chen
Reviewed-by: Rob Herring
---
.../devicetree/bindings/media/rockchip-isp1.txt| 69 ++
1 file changed, 69
From: Jacob Chen
Add DT bindings documentation for Rockchip ISP1
Signed-off-by: Jacob Chen
Reviewed-by: Rob Herring
---
.../devicetree/bindings/media/rockchip-isp1.txt| 69 ++
1 file changed, 69 insertions(+)
create mode 100644
From: Jacob Chen
Add DT bindings documentation for Rockchip MIPI D-PHY RX
Signed-off-by: Jacob Chen
Reviewed-by: Rob Herring
---
.../bindings/media/rockchip-mipi-dphy.txt | 88 ++
1 file
rk3399 have two ISP, but we havn't test isp1, so just add isp0 at present.
Signed-off-by: Shunqian Zheng <zhen...@rock-chips.com>
Signed-off-by: Jacob Chen <jacob2.c...@rock-chips.com>
---
arch/arm64/boot/dts/rockchip/rk3399.dtsi | 15 +++
1 file changed, 15 insertions(+)
From: Jacob Chen
Add DT bindings documentation for Rockchip MIPI D-PHY RX
Signed-off-by: Jacob Chen
Reviewed-by: Rob Herring
---
.../bindings/media/rockchip-mipi-dphy.txt | 88 ++
1 file changed, 88 insertions(+)
create mode 100644
rk3399 have two ISP, but we havn't test isp1, so just add isp0 at present.
Signed-off-by: Shunqian Zheng
Signed-off-by: Jacob Chen
---
arch/arm64/boot/dts/rockchip/rk3399.dtsi | 15 +++
1 file changed, 15 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi
b/arch
+ROCKCHIP ISP V1 DRIVER
+M: Jacob chen <jacob2.c...@rock-chips.com>
+M: Shunqian Zheng <zhen...@rock-chips.com>
+M: Yichong Zhong <z...@rock-chips.com>
+L: linux-me...@vger.kernel.org
+S: Maintained
+F: drivers/media/platform/rockchip/isp1/
+F: Doc
a/MAINTAINERS b/MAINTAINERS
index 85773bf..b97bc25 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -11668,6 +11668,16 @@ F: drivers/hid/hid-roccat*
F: include/linux/hid-roccat*
F: Documentation/ABI/*/sysfs-driver-hid-roccat*
+ROCKCHIP ISP V1 DRIVER
+M: Jacob chen
+M: Shunqian
From: Jacob Chen
It's a Designware MIPI D-PHY, used by ISP in rk3288.
Signed-off-by: Jacob Chen
---
arch/arm/boot/dts/rk3288.dtsi | 7 +++
1 file changed, 7 insertions(+)
diff --git a/arch/arm/boot/dts/rk3288.dtsi
From: Jacob Chen
It's a Designware MIPI D-PHY, used by ISP in rk3288.
Signed-off-by: Jacob Chen
---
arch/arm/boot/dts/rk3288.dtsi | 7 +++
1 file changed, 7 insertions(+)
diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi
index 5dbfafb..a4c9a6e 100644
---
It's a Designware MIPI D-PHY, used for ISP0 in rk3399.
Signed-off-by: Shunqian Zheng <zhen...@rock-chips.com>
Signed-off-by: Jacob Chen <jacob2.c...@rock-chips.com>
---
arch/arm64/boot/dts/rockchip/rk3399.dtsi | 10 ++
1 file changed, 10 insertions(+)
diff --git a/arch/ar
It's a Designware MIPI D-PHY, used for ISP0 in rk3399.
Signed-off-by: Shunqian Zheng
Signed-off-by: Jacob Chen
---
arch/arm64/boot/dts/rockchip/rk3399.dtsi | 10 ++
1 file changed, 10 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi
b/arch/arm64/boot/dts/rockchip
From: Jacob Chen <jacob2.c...@rock-chips.com>
Add the output video driver that accept params from userspace.
Signed-off-by: Jacob Chen <jacob2.c...@rock-chips.com>
Signed-off-by: Shunqian Zheng <zhen...@rock-chips.com>
Signed-off-by: Yichong Zhong <z...@rock-chips.com>
S
From: Jacob Chen <jacob2.c...@rock-chips.com>
This commit adds a subdev driver for Rockchip MIPI Synopsys DPHY driver
Signed-off-by: Jacob Chen <jacob2.c...@rock-chips.com>
Signed-off-by: Shunqian Zheng <zhen...@rock-chips.com>
Signed-off-by: Tomasz Figa <tf...@chromiu
the Rockchip ISP1 bindings
dt-bindings: Document the Rockchip MIPI RX D-PHY bindings
ARM: dts: rockchip: add isp node for rk3288
ARM: dts: rockchip: add rx0 mipi-phy for rk3288
MAINTAINERS: add entry for Rockchip ISP1 driver
Jeffy Chen (1):
media: rkisp1: Add user space ABI definitions
Shunqian
From: Jacob Chen
Add the output video driver that accept params from userspace.
Signed-off-by: Jacob Chen
Signed-off-by: Shunqian Zheng
Signed-off-by: Yichong Zhong
Signed-off-by: Jacob Chen
Signed-off-by: Eddie Cai
Signed-off-by: Jeffy Chen
Signed-off-by: Allon Huang
Signed-off
From: Jacob Chen
This commit adds a subdev driver for Rockchip MIPI Synopsys DPHY driver
Signed-off-by: Jacob Chen
Signed-off-by: Shunqian Zheng
Signed-off-by: Tomasz Figa
---
.../media/platform/rockchip/isp1/mipi_dphy_sy.c| 787 +
1 file changed, 787 insertions
the Rockchip ISP1 bindings
dt-bindings: Document the Rockchip MIPI RX D-PHY bindings
ARM: dts: rockchip: add isp node for rk3288
ARM: dts: rockchip: add rx0 mipi-phy for rk3288
MAINTAINERS: add entry for Rockchip ISP1 driver
Jeffy Chen (1):
media: rkisp1: Add user space ABI definitions
Shunqian
From: Jacob Chen <jacob2.c...@rock-chips.com>
Add the capture video driver for rockchip isp1 statistics block.
Signed-off-by: Jacob Chen <jacob2.c...@rock-chips.com>
Signed-off-by: Shunqian Zheng <zhen...@rock-chips.com>
Signed-off-by: Yichong Zhong <z...@rock-chips.com&
From: Jacob Chen <jacob2.c...@rock-chips.com>
This is the capture device interface driver that provides the v4l2
user interface. Frames can be received from ISP1.
Signed-off-by: Jacob Chen <jacob2.c...@rock-chips.com>
Signed-off-by: Shunqian Zheng <zhen...@rock-chips.com>
Sign
From: Jacob Chen
This commit add docuemnt for rkisp1 meta buffer format
Signed-off-by: Jacob Chen
---
Documentation/media/uapi/v4l/meta-formats.rst | 2 ++
.../media/uapi/v4l/pixfmt-meta-rkisp1-params.rst | 17
From: Jacob Chen
rk3288 have a Embedded 13M ISP
Signed-off-by: Jacob Chen
---
arch/arm/boot/dts/rk3288.dtsi | 17 +
1 file changed, 17 insertions(+)
diff --git a/arch/arm/boot/dts/rk3288.dtsi
From: Jeffy Chen
Add the header for userspace
Signed-off-by: Jeffy Chen
Signed-off-by: Jacob Chen
---
include/uapi/linux/rkisp1-config.h | 757 +
1 file changed, 757
From: Jacob Chen
Add the capture video driver for rockchip isp1 statistics block.
Signed-off-by: Jacob Chen
Signed-off-by: Shunqian Zheng
Signed-off-by: Yichong Zhong
Signed-off-by: Jacob Chen
Signed-off-by: Eddie Cai
Signed-off-by: Jeffy Chen
Signed-off-by: Allon Huang
Signed-off
From: Jacob Chen
This is the capture device interface driver that provides the v4l2
user interface. Frames can be received from ISP1.
Signed-off-by: Jacob Chen
Signed-off-by: Shunqian Zheng
Signed-off-by: Yichong Zhong
Signed-off-by: Jacob Chen
Signed-off-by: Eddie Cai
Signed-off-by: Jeffy
From: Jacob Chen
This commit add docuemnt for rkisp1 meta buffer format
Signed-off-by: Jacob Chen
---
Documentation/media/uapi/v4l/meta-formats.rst | 2 ++
.../media/uapi/v4l/pixfmt-meta-rkisp1-params.rst | 17 +
.../media/uapi/v4l/pixfmt-meta-rkisp1-stat.rst
From: Jacob Chen
rk3288 have a Embedded 13M ISP
Signed-off-by: Jacob Chen
---
arch/arm/boot/dts/rk3288.dtsi | 17 +
1 file changed, 17 insertions(+)
diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi
index cd24894..5dbfafb 100644
---
From: Jeffy Chen
Add the header for userspace
Signed-off-by: Jeffy Chen
Signed-off-by: Jacob Chen
---
include/uapi/linux/rkisp1-config.h | 757 +
1 file changed, 757 insertions(+)
create mode 100644 include/uapi/linux/rkisp1-config.h
diff --git
We would prefer the 2016M as 2.0G than 1992M which seems odd, adding
it to big cpu clk rate table then we can set 2016M in dts.
Signed-off-by: Shunqian Zheng <zhen...@rock-chips.com>
---
drivers/clk/rockchip/clk-rk3399.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/clk/ro
We would prefer the 2016M as 2.0G than 1992M which seems odd, adding
it to big cpu clk rate table then we can set 2016M in dts.
Signed-off-by: Shunqian Zheng
---
drivers/clk/rockchip/clk-rk3399.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/clk/rockchip/clk-rk3399.c
b/drivers
laves")
Signed-off-by: Shunqian Zheng <zhen...@rock-chips.com>
Signed-off-by: Tomasz Figa <tf...@chromium.org>
Reviewed-by: Douglas Anderson <diand...@chromium.org>
---
drivers/iommu/rockchip-iommu.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/dr
laves")
Signed-off-by: Shunqian Zheng
Signed-off-by: Tomasz Figa
Reviewed-by: Douglas Anderson
---
drivers/iommu/rockchip-iommu.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/iommu/rockchip-iommu.c b/drivers/iommu/rockchip-iommu.c
index 53fa0d9..8a5b
From: Simon Xue <x...@rock-chips.com>
This patch makes it possible to compile the rockchip-iommu driver on
ARM64, so that it can be used with 64-bit SoCs equipped with this type
of IOMMU.
Signed-off-by: Simon Xue <x...@rock-chips.com>
Signed-off-by: Shunqian Zheng <zhen...@rock-ch
ga <tf...@chromium.org>
Signed-off-by: Shunqian Zheng <zhen...@rock-chips.com>
---
drivers/gpu/drm/rockchip/rockchip_drm_drv.h | 3 +
drivers/gpu/drm/rockchip/rockchip_drm_gem.c | 221 ++--
drivers/gpu/drm/rockchip/rockchip_drm_gem.h | 9 ++
3 files changed, 222
From: Simon Xue
This patch makes it possible to compile the rockchip-iommu driver on
ARM64, so that it can be used with 64-bit SoCs equipped with this type
of IOMMU.
Signed-off-by: Simon Xue
Signed-off-by: Shunqian Zheng
Signed-off-by: Tomasz Figa
---
drivers/iommu/Kconfig | 2 +-
1 file
.
This patch should not introduce any functional changes until the driver
is made to attach subdevices into an IOMMU domain with the generic IOMMU
API, which will happen in following patch. Based heavily on GEM
implementation of Tegra DRM driver.
Signed-off-by: Tomasz Figa
Signed-off-by: Shunqian
device is
registered for each allocated IOMMU domain.
With this patch, this driver can be used on both ARM and ARM64
platforms, such as RK3288 and RK3399 respectively.
Signed-off-by: Shunqian Zheng <zhen...@rock-chips.com>
Signed-off-by: Tomasz Figa <tf...@chromium.org>
---
drivers/io
device is
registered for each allocated IOMMU domain.
With this patch, this driver can be used on both ARM and ARM64
platforms, such as RK3288 and RK3399 respectively.
Signed-off-by: Shunqian Zheng
Signed-off-by: Tomasz Figa
---
drivers/iommu/rockchip-iommu.c | 162
wires
things to use the new method.
Signed-off-by: Shunqian Zheng <zhen...@rock-chips.com>
Signed-off-by: Tomasz Figa <tf...@chromium.org>
---
drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 100 +++-
1 file changed, 53 insertions(+), 47 deletions(-)
diff --git a
From: Simon Xue <x...@rock-chips.com>
The iommu_dma_alloc() in iommu/dma-iommu.c calls iommu_map_sg()
that requires the callback iommu_ops .map_sg(). Adding the
default_iommu_map_sg() to Rockchip IOMMU accordingly.
Signed-off-by: Simon Xue <x...@rock-chips.com>
Signed-off-by: Shunq
Set geometry for allocated domains and fix .domain_alloc() callback to
work with IOMMU_DOMAIN_DMA domain type, which is used for implicit
domains on ARM64.
Signed-off-by: Shunqian Zheng <zhen...@rock-chips.com>
Signed-off-by: Tomasz Figa <tf...@chromium.org>
---
drivers/iommu/rock
wires
things to use the new method.
Signed-off-by: Shunqian Zheng
Signed-off-by: Tomasz Figa
---
drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 100 +++-
1 file changed, 53 insertions(+), 47 deletions(-)
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
b/drivers
From: Simon Xue
The iommu_dma_alloc() in iommu/dma-iommu.c calls iommu_map_sg()
that requires the callback iommu_ops .map_sg(). Adding the
default_iommu_map_sg() to Rockchip IOMMU accordingly.
Signed-off-by: Simon Xue
Signed-off-by: Shunqian Zheng
Reviewed-by: Douglas Anderson
Signed-off
Set geometry for allocated domains and fix .domain_alloc() callback to
work with IOMMU_DOMAIN_DMA domain type, which is used for implicit
domains on ARM64.
Signed-off-by: Shunqian Zheng
Signed-off-by: Tomasz Figa
---
drivers/iommu/rockchip-iommu.c | 16 +++-
1 file changed, 11
:
- Instead of registering virtual IOMMU from DTS, create it when
attaching.
- Fix some bugs found in internal review.
Shunqian Zheng (4):
iommu/rockchip: Fix allocation of bases array in driver probe
iommu/rockchip: Use DMA API to manage coherency
iommu/rockchip: Prepare to support generic DMA
:
- Instead of registering virtual IOMMU from DTS, create it when
attaching.
- Fix some bugs found in internal review.
Shunqian Zheng (4):
iommu/rockchip: Fix allocation of bases array in driver probe
iommu/rockchip: Use DMA API to manage coherency
iommu/rockchip: Prepare to support generic DMA
clear.
Signed-off-by: Simon Xue <x...@rock-chips.com>
Signed-off-by: Shunqian Zheng <zhen...@rock-chips.com>
Reviewed-by: Douglas Anderson <diand...@chromium.org>
Signed-off-by: Tomasz Figa <tf...@chromium.org>
---
drivers/iommu/rockchip-iommu.c | 4 ++--
1 file changed
-by: Simon Xue
Signed-off-by: Shunqian Zheng
Reviewed-by: Douglas Anderson
Signed-off-by: Tomasz Figa
---
drivers/iommu/rockchip-iommu.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/iommu/rockchip-iommu.c b/drivers/iommu/rockchip-iommu.c
index 25b4627..5a9659a 100644
a iommu when virtual master(group is NULL)
attaching, so it can use this iommu even the real iommus disabled.
Changes of V3:
- Instead of registering virtual iommu in DTS, this patch
creates a iommu when attaching.
Signed-off-by: Shunqian Zheng <zhen...@rock-chips.com>
Suggested-by: Tomas
led.
With this patch, this driver is available for ARM64 like RK3399.
Signed-off-by: Shunqian Zheng <zhen...@rock-chips.com>
---
drivers/iommu/rockchip-iommu.c | 113 +++--
1 file changed, 76 insertions(+), 37 deletions(-)
diff --git a/drivers/iommu/rockchip-
a iommu when virtual master(group is NULL)
attaching, so it can use this iommu even the real iommus disabled.
Changes of V3:
- Instead of registering virtual iommu in DTS, this patch
creates a iommu when attaching.
Signed-off-by: Shunqian Zheng
Suggested-by: Tomasz Figa
---
drivers/iommu
led.
With this patch, this driver is available for ARM64 like RK3399.
Signed-off-by: Shunqian Zheng
---
drivers/iommu/rockchip-iommu.c | 113 +++--
1 file changed, 76 insertions(+), 37 deletions(-)
diff --git a/drivers/iommu/rockchip-iommu.c b/drivers/iommu/rockc
From: Simon Xue <x...@rock-chips.com>
Even though the iommu shares irq with its master, using the *dev of iommu
instead of master's *dev for devm_{request,free}_irq makes things clear.
Signed-off-by: Simon Xue <x...@rock-chips.com>
Signed-off-by: Shunqian Zheng <zhen...@rock-chip
From: Simon Xue
Even though the iommu shares irq with its master, using the *dev of iommu
instead of master's *dev for devm_{request,free}_irq makes things clear.
Signed-off-by: Simon Xue
Signed-off-by: Shunqian Zheng
Reviewed-by: Tomasz Figa
---
drivers/iommu/rockchip-iommu.c | 4 ++--
1
From: Simon Xue <x...@rock-chips.com>
The iommu_dma_alloc() in iommu/dma-iommu.c calls iommu_map_sg()
that requires the callback iommu_ops .map_sg(). Adding the
default_iommu_map_sg() to rockchip iommu accordingly.
Signed-off-by: Simon Xue <x...@rock-chips.com>
Signed-off-by: Shunq
From: Simon Xue <x...@rock-chips.com>
This patch makes it possible to compile the rockchip-iommu driver on
ARM64 platform to be used with 64-bit SoCs equipped with this type
of IOMMU.
Signed-off-by: Simon Xue <x...@rock-chips.com>
Signed-off-by: Shunqian Zheng <zhen...@rock-chip
-by: Shunqian Zheng <zhen...@rock-chips.com>
---
drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 112 +---
drivers/gpu/drm/rockchip/rockchip_drm_drv.h | 1 +
2 files changed, 71 insertions(+), 42 deletions(-)
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_dr
of registering virtual iommu in DTS, V3
creates a iommu when attaching.
- Fix some bugs according to Tomasz's comments,
most of them are offline, locally.
Shunqian Zheng (3):
iommu/rockchip: support virtual iommu slave device
drm: rockchip: use common iommu api to attach iommu
From: Simon Xue
The iommu_dma_alloc() in iommu/dma-iommu.c calls iommu_map_sg()
that requires the callback iommu_ops .map_sg(). Adding the
default_iommu_map_sg() to rockchip iommu accordingly.
Signed-off-by: Simon Xue
Signed-off-by: Shunqian Zheng
Reviewed-by: Tomasz Figa
---
drivers/iommu
From: Simon Xue
This patch makes it possible to compile the rockchip-iommu driver on
ARM64 platform to be used with 64-bit SoCs equipped with this type
of IOMMU.
Signed-off-by: Simon Xue
Signed-off-by: Shunqian Zheng
Reviewed-by: Tomasz Figa
---
drivers/iommu/Kconfig | 2 +-
1 file changed
-by: Shunqian Zheng
---
drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 112 +---
drivers/gpu/drm/rockchip/rockchip_drm_drv.h | 1 +
2 files changed, 71 insertions(+), 42 deletions(-)
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
b/drivers/gpu/drm/rockchip
of registering virtual iommu in DTS, V3
creates a iommu when attaching.
- Fix some bugs according to Tomasz's comments,
most of them are offline, locally.
Shunqian Zheng (3):
iommu/rockchip: support virtual iommu slave device
drm: rockchip: use common iommu api to attach iommu
-by: Shunqian Zheng <zhen...@rock-chips.com>
---
drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 130 +++-
drivers/gpu/drm/rockchip/rockchip_drm_drv.h | 1 +
2 files changed, 89 insertions(+), 42 deletions(-)
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_dr
-by: Shunqian Zheng
---
drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 130 +++-
drivers/gpu/drm/rockchip/rockchip_drm_drv.h | 1 +
2 files changed, 89 insertions(+), 42 deletions(-)
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
b/drivers/gpu/drm/rockchip
An virtual iommu without reg or interrupts for display.
Adding this according to iommu driver changes.
Signed-off-by: Shunqian Zheng <zhen...@rock-chips.com>
---
arch/arm/boot/dts/rk3288.dtsi | 6 ++
1 file changed, 6 insertions(+)
diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/ar
An virtual iommu without reg or interrupts for display.
Adding this according to iommu driver changes.
Signed-off-by: Shunqian Zheng
---
arch/arm/boot/dts/rk3288.dtsi | 6 ++
1 file changed, 6 insertions(+)
diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi
index
From: Simon Xue <x...@rock-chips.com>
Signed-off-by: Simon Xue <x...@rock-chips.com>
Signed-off-by: Shunqian Zheng <zhen...@rock-chips.com>
---
drivers/iommu/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kco
From: Simon Xue <x...@rock-chips.com>
The iommu_dma_alloc() in iommu/dma-iommu.c calls iommu_map_sg()
that requires the callback iommu_ops .map_sg(). Adding the
default_iommu_map_sg() to rockchip iommu accordingly.
Signed-off-by: Simon Xue <x...@rock-chips.com>
Signed-off-by: Shunq
, we can probe a virtual iommu device and
allow the DRM attaching to it. The virtual iommu is needed also
because we want convert to use DMA API for map/unmap, cache flush,
so that DRM buffer alloc still work even VOP is disabled.
Signed-off-by: Shunqian Zheng <zhen...@rock-chips.com>
---
d
From: Simon Xue
Signed-off-by: Simon Xue
Signed-off-by: Shunqian Zheng
---
drivers/iommu/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig
index ad08603..5572621 100644
--- a/drivers/iommu/Kconfig
+++ b/drivers/iommu
From: Simon Xue
The iommu_dma_alloc() in iommu/dma-iommu.c calls iommu_map_sg()
that requires the callback iommu_ops .map_sg(). Adding the
default_iommu_map_sg() to rockchip iommu accordingly.
Signed-off-by: Simon Xue
Signed-off-by: Shunqian Zheng
---
drivers/iommu/rockchip-iommu.c | 1 +
1
, we can probe a virtual iommu device and
allow the DRM attaching to it. The virtual iommu is needed also
because we want convert to use DMA API for map/unmap, cache flush,
so that DRM buffer alloc still work even VOP is disabled.
Signed-off-by: Shunqian Zheng
---
drivers/iommu/rockchip-iommu.c
led.
With this patch, this driver is available for ARM64 like RK3399.
Signed-off-by: Shunqian Zheng <zhen...@rock-chips.com>
---
drivers/iommu/rockchip-iommu.c | 113 ++---
1 file changed, 71 insertions(+), 42 deletions(-)
diff --git a/drivers/iommu/rockchip-
led.
With this patch, this driver is available for ARM64 like RK3399.
Signed-off-by: Shunqian Zheng
---
drivers/iommu/rockchip-iommu.c | 113 ++---
1 file changed, 71 insertions(+), 42 deletions(-)
diff --git a/drivers/iommu/rockchip-iommu.c b/drivers/iommu/rockc
From: Simon Xue <x...@rock-chips.com>
Even though the iommu shares irq with its master, using the *dev of iommu
instead of master's *dev for devm_{request,free}_irq makes things clear.
Signed-off-by: Simon Xue <x...@rock-chips.com>
Signed-off-by: Shunqian Zheng <zhen...
From: Simon Xue
Even though the iommu shares irq with its master, using the *dev of iommu
instead of master's *dev for devm_{request,free}_irq makes things clear.
Signed-off-by: Simon Xue
Signed-off-by: Shunqian Zheng
---
drivers/iommu/rockchip-iommu.c | 4 ++--
1 file changed, 2 insertions
vs v1, so please forget the v1.
Shunqian Zheng (4):
iommu/rockchip: support virtual iommu slave device
ARM: dts: rockchip: add virtual iommu for display
drm: rockchip: use common iommu api to attach iommu
iommu/rockchip: use DMA API to map, to flush cache
Simon Xue (3):
iommu/rockchip
vs v1, so please forget the v1.
Shunqian Zheng (4):
iommu/rockchip: support virtual iommu slave device
ARM: dts: rockchip: add virtual iommu for display
drm: rockchip: use common iommu api to attach iommu
iommu/rockchip: use DMA API to map, to flush cache
Simon Xue (3):
iommu/rockchip
Catalin, Robin,
On 2016年05月23日 21:35, Catalin Marinas wrote:
On Mon, May 23, 2016 at 11:44:14AM +0100, Robin Murphy wrote:
On 23/05/16 02:37, Shunqian Zheng wrote:
From: Simon <x...@rock-chips.com>
Signed-off-by: Simon <x...@rock-chips.com>
---
drivers/iommu/rockchip-iommu.c
Catalin, Robin,
On 2016年05月23日 21:35, Catalin Marinas wrote:
On Mon, May 23, 2016 at 11:44:14AM +0100, Robin Murphy wrote:
On 23/05/16 02:37, Shunqian Zheng wrote:
From: Simon
Signed-off-by: Simon
---
drivers/iommu/rockchip-iommu.c | 4
1 file changed, 4 insertions(+)
diff --git
From: Simon
When rk_iommu_attach_device or rk_iommu_detach_device be called, the second
parameter "dev" represent the device who own the iommu, so it is not resonable
using "dev" for devm_request_irq's first parameter. To avoid potential error,
we must use iommu device
From: Simon
We mark DRM as "virtual" device by checking it's group,
which may no longer true with the new rockchip drm drv in
https://patchwork.kernel.org/patch/8876331/.
Checking the group->iommu_data for virtual device.
Signed-off-by: Simon
---
From: Simon
When rk_iommu_attach_device or rk_iommu_detach_device be called, the second
parameter "dev" represent the device who own the iommu, so it is not resonable
using "dev" for devm_request_irq's first parameter. To avoid potential error,
we must use iommu device itself "iommu->dev"
From: Simon
We mark DRM as "virtual" device by checking it's group,
which may no longer true with the new rockchip drm drv in
https://patchwork.kernel.org/patch/8876331/.
Checking the group->iommu_data for virtual device.
Signed-off-by: Simon
---
drivers/iommu/rockchip-iommu.c | 7 ++-
1
From: Simon
Signed-off-by: Simon
---
drivers/iommu/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig
index ad08603..5572621 100644
--- a/drivers/iommu/Kconfig
+++
From: Simon
Signed-off-by: Simon
---
drivers/iommu/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig
index ad08603..5572621 100644
--- a/drivers/iommu/Kconfig
+++ b/drivers/iommu/Kconfig
@@ -218,7 +218,7 @@ config
1 - 100 of 190 matches
Mail list logo