| /OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/rga/ |
| H A D | rga.c | 28 #include "rga-hw.h" 29 #include "rga.h" 37 struct rockchip_rga *rga = ctx->rga; in device_run() local 41 spin_lock_irqsave(&rga->ctrl_lock, flags); in device_run() 43 rga->curr = ctx; in device_run() 51 rga_hw_start(rga); in device_run() 53 spin_unlock_irqrestore(&rga->ctrl_lock, flags); in device_run() 58 struct rockchip_rga *rga = prv; in rga_isr() local 61 intr = rga_read(rga, RGA_INT) & 0xf; in rga_isr() 63 rga_mod(rga, RGA_INT, intr << 4, 0xf << 4); in rga_isr() [all …]
|
| H A D | rga-hw.c | 9 #include "rga-hw.h" 10 #include "rga.h" 35 * The rga hw scaling factor is a normalized inverse of the in rga_get_scaling() 124 struct rockchip_rga *rga = ctx->rga; in rga_cmd_set_src_addr() local 125 u32 *dest = rga->cmdbuf_virt; in rga_cmd_set_src_addr() 137 struct rockchip_rga *rga = ctx->rga; in rga_cmd_set_src1_addr() local 138 u32 *dest = rga->cmdbuf_virt; in rga_cmd_set_src1_addr() 150 struct rockchip_rga *rga = ctx->rga; in rga_cmd_set_dst_addr() local 151 u32 *dest = rga->cmdbuf_virt; in rga_cmd_set_dst_addr() 163 struct rockchip_rga *rga = ctx->rga; in rga_cmd_set_trans_info() local [all …]
|
| H A D | rga-buf.c | 15 #include "rga-hw.h" 16 #include "rga.h" 79 struct rockchip_rga *rga = ctx->rga; in rga_buf_start_streaming() local 82 ret = pm_runtime_resume_and_get(rga->dev); in rga_buf_start_streaming() 94 struct rockchip_rga *rga = ctx->rga; in rga_buf_stop_streaming() local 97 pm_runtime_put(rga->dev); in rga_buf_stop_streaming() 110 /* RGA MMU is a 1-Level MMU, so it can't be used through the IOMMU API. 116 struct rockchip_rga *rga = ctx->rga; in rga_buf_map() local 124 pages = rga->src_mmu_pages; in rga_buf_map() 126 pages = rga->dst_mmu_pages; in rga_buf_map() [all …]
|
| H A D | rga.h | 14 #define RGA_NAME "rockchip-rga" 50 struct rockchip_rga *rga; member 90 /* RGA Buffers Manage */ 94 /* RGA Hardware */ 95 static inline void rga_write(struct rockchip_rga *rga, u32 reg, u32 value) in rga_write() argument 97 writel(value, rga->regs + reg); in rga_write() 100 static inline u32 rga_read(struct rockchip_rga *rga, u32 reg) in rga_read() argument 102 return readl(rga->regs + reg); in rga_read() 105 static inline void rga_mod(struct rockchip_rga *rga, u32 reg, u32 val, u32 mask) in rga_mod() argument 107 u32 temp = rga_read(rga, reg) & ~(mask); in rga_mod() [all …]
|
| H A D | Makefile | 2 rockchip-rga-objs := rga.o rga-hw.o rga-buf.o 4 obj-$(CONFIG_VIDEO_ROCKCHIP_RGA) += rockchip-rga.o
|
| /OK3568_Linux_fs/external/linux-rga/docs/ |
| H A D | Rockchip_FAQ_RGA_EN.md | 1 # RGA FAQ 63 For RGA driver and user-mode API librga, this document summarizes some common problems occurred whe… 73 RGA hardware consists of three versions: RGA1, RGA2, and RGA3. See section Introducions in [Rockchi… 108 - RGA Driver 134 When using RGA, you need to confirm that the current operating environment can work normally. The f… 139 | 1.0.0 ~ 1.3.2 | RGA Device Driver(kernel - 4.4 and above)<br/>RGA2 Device Driver(no version or v2… 140 | > 1.4.0 | RGA multicore Device Driver(v1.2.0 and above) | RGA2、RGA3 | 141 | > 1.9.0 | RGA Device Driver(kernel-4.4 and above)<br/>RGA2 Device Driver(no version or v2.1… 143 …ersion librga.so, you can use the following Baidu Cloud link to obtain the RGA module code update … 149 … When the original driver is RGA Device Driver or RGA2 Device Driver, use this update package to … [all …]
|
| H A D | Rockchip_FAQ_RGA_CN.md | 1 # RGA FAQ 113 #### RGA driver 143 | 1.0.0 ~ 1.3.2 | RGA Device Driver(kernel - 4.4及以上)<br/>RGA2 Device Driver(无版本号或v2.1.0) | RGA1、RGA… 144 | > 1.4.0 | RGA multicore Device Driver(v1.2.0及以上) | RGA2、RGA3 | 145 | > 1.9.0 | RGA Device Driver(kernel-4.4及以上)<br/>RGA2 Device Driver(无版本号和v2.1.0)<br/>RGA mult… 184 setprop vendor.rga.log 1 193 setprop vendor.rga.log_level 6 303 | RGA Device Driver | rga_debug | 306 | RGA multicore Device Driver | rkrga | 332 | RGA Device Driver | rga_debug/rga | [all …]
|
| H A D | Rockchip_Developer_Guide_RGA_EN.md | 1 # RGA IM2D API Instruction 67 RGA (Raster Graphic Acceleration Unit) is an independent 2D hardware accelerator that can be used t… 240 …ressing capability of RGA is related to the number of bits of IOMMU. For example, the actual physi… 531 RGA's support library librga.so updates the version number according to certain rules, indicating t… 575 Version number is printed when each process first calls RGA API. 585 Call the following API to query the code version number, compilation version number, and RGA hardwa… 594 > RGA version : RGA_2_Enhance 600 …ted only by Android system, and the property takes effect only after an existing process calls RGA. 603 :/# getprop |grep rga 611 librga calls the RGA hardware based on the driver, it must be ensured that the driver version is wi… [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/media/ |
| H A D | rockchip-rga.yaml | 4 $id: http://devicetree.org/schemas/media/rockchip-rga.yaml# 7 title: Rockchip 2D raster graphic acceleration controller (RGA) 10 RGA is a standalone 2D raster graphic acceleration unit. It accelerates 2D 21 - const: rockchip,rk3288-rga 22 - const: rockchip,rk3399-rga 24 - const: rockchip,rk3228-rga 25 - const: rockchip,rk3288-rga 70 rga: rga@ff680000 { 71 compatible = "rockchip,rk3399-rga";
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/video/ |
| H A D | rockchip_rga.txt | 1 device-tree bindings for rockchip 2D raster graphic acceleration controller (RGA) 3 RGA is a standalone 2D raster graphic acceleration unit. It accelerates 2D 10 "rockchip,rk312x-rga"; 12 - interrupts: RGA interrupt specifier. 14 - clocks: phandle to RGA sclk/hclk/aclk clocks 23 …o rga driver, dma_map_sg will always do cpu cache sync, it cause low performance.Actually we don't… 27 rga: rga@ff680000 {
|
| /OK3568_Linux_fs/yocto/meta-rockchip/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.20/ |
| H A D | 0008-video-converter-Support-rockchip-RGA-2D-accel.patch | 4 Subject: [PATCH 08/11] video-converter: Support rockchip RGA 2D accel 37 +#include <rga/rga.h> 38 +#include <rga/RgaApi.h> 105 + /* RGA requires contig buffer */ 144 + /* RGA requires yuv image rect align to 2 */ 191 + GST_DEBUG ("unsupported src info for RGA"); 197 + GST_DEBUG ("unsupported dst info for RGA"); 202 + GST_DEBUG ("failed to blit with RGA"); 206 + GST_DEBUG ("converted with RGA"); 219 + /* Accel convert with rockchip RGA */ [all …]
|
| /OK3568_Linux_fs/yocto/meta-rockchip/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.22/ |
| H A D | 0008-video-converter-Support-rockchip-RGA-2D-accel.patch | 4 Subject: [PATCH 08/14] video-converter: Support rockchip RGA 2D accel 37 +#include <rga/rga.h> 38 +#include <rga/RgaApi.h> 105 + /* RGA requires contig buffer */ 144 + /* RGA requires yuv image rect align to 2 */ 191 + GST_DEBUG ("unsupported src info for RGA"); 197 + GST_DEBUG ("unsupported dst info for RGA"); 202 + GST_DEBUG ("failed to blit with RGA"); 206 + GST_DEBUG ("converted with RGA"); 219 + /* Accel convert with rockchip RGA */ [all …]
|
| /OK3568_Linux_fs/buildroot/package/gstreamer1/gst1-plugins-base/ |
| H A D | 0008-video-converter-Support-rockchip-RGA-2D-accel.patch | 4 Subject: [PATCH 08/14] video-converter: Support rockchip RGA 2D accel 37 +#include <rga/rga.h> 38 +#include <rga/RgaApi.h> 105 + /* RGA requires contig buffer */ 144 + /* RGA requires yuv image rect align to 2 */ 191 + GST_DEBUG ("unsupported src info for RGA"); 197 + GST_DEBUG ("unsupported dst info for RGA"); 202 + GST_DEBUG ("failed to blit with RGA"); 206 + GST_DEBUG ("converted with RGA"); 219 + /* Accel convert with rockchip RGA */ [all …]
|
| /OK3568_Linux_fs/buildroot/package/lvgl/lv_drivers/ |
| H A D | 0007-Added-rga-Acceleration-rga-copy-instead-of-memcpy.patch | 4 Subject: [PATCH 7/8] Added rga Acceleration: rga copy instead of memcpy 23 + include_directories(${CMAKE_SYSROOT}/usr/include/rga/) 34 + target_link_libraries(lv_drivers PUBLIC rga) 78 + printf("drm_flush rga not supported format\n"); 119 +#include <rga/im2d.h> 120 +#include <rga/rga.h> 121 +#include <rga/RgaApi.h>
|
| /OK3568_Linux_fs/buildroot/package/gstreamer1/gst1-plugins-good/ |
| H A D | 0005-video-flip-Support-rockchip-RGA-2D-accel.patch | 4 Subject: [PATCH 05/12] video-flip: Support rockchip RGA 2D accel 24 +#include <rga/rga.h> 25 +#include <rga/RgaApi.h> 110 + /* RGA requires contig buffer */ 149 + /* RGA requires yuv image rect align to 2 */ 200 + GST_DEBUG ("unsupported src info for RGA"); 205 + GST_DEBUG ("unsupported dst info for RGA"); 226 + GST_DEBUG ("unsupported rotation for RGA"); 231 + GST_DEBUG ("failed to blit with RGA"); 235 + GST_DEBUG ("flipped with RGA"); [all …]
|
| /OK3568_Linux_fs/yocto/meta-rockchip/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.22/ |
| H A D | 0005-video-flip-Support-rockchip-RGA-2D-accel.patch | 4 Subject: [PATCH 05/12] video-flip: Support rockchip RGA 2D accel 24 +#include <rga/rga.h> 25 +#include <rga/RgaApi.h> 110 + /* RGA requires contig buffer */ 149 + /* RGA requires yuv image rect align to 2 */ 200 + GST_DEBUG ("unsupported src info for RGA"); 205 + GST_DEBUG ("unsupported dst info for RGA"); 226 + GST_DEBUG ("unsupported rotation for RGA"); 231 + GST_DEBUG ("failed to blit with RGA"); 235 + GST_DEBUG ("flipped with RGA"); [all …]
|
| /OK3568_Linux_fs/yocto/meta-rockchip/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.20/ |
| H A D | 0005-video-flip-Support-rockchip-RGA-2D-accel.patch | 4 Subject: [PATCH 5/5] video-flip: Support rockchip RGA 2D accel 24 +#include <rga/rga.h> 25 +#include <rga/RgaApi.h> 110 + /* RGA requires contig buffer */ 149 + /* RGA requires yuv image rect align to 2 */ 200 + GST_DEBUG ("unsupported src info for RGA"); 205 + GST_DEBUG ("unsupported dst info for RGA"); 226 + GST_DEBUG ("unsupported rotation for RGA"); 231 + GST_DEBUG ("failed to blit with RGA"); 235 + GST_DEBUG ("flipped with RGA"); [all …]
|
| /OK3568_Linux_fs/external/mpp/mpp/vproc/rga/test/ |
| H A D | rga_test.cpp | 146 mpp_log("rga test unit\n"); in main() 258 mpp_err("init rga context failed %d\n", ret); in main() 265 mpp_err("rga cmd init failed %d\n", ret); in main() 271 mpp_err("rga cmd setup source failed %d\n", ret); in main() 277 mpp_err("rga cmd setup destination failed %d\n", ret); in main() 283 mpp_err("rga cmd process copy failed %d\n", ret); in main() 297 mpp_err("rga cmd init failed %d\n", ret); in main() 303 mpp_err("rga cmd setup source failed %d\n", ret); in main() 309 mpp_err("rga cmd setup destination failed %d\n", ret); in main() 315 mpp_err("rga cmd process copy failed %d\n", ret); in main() [all …]
|
| /OK3568_Linux_fs/buildroot/package/qt5/qt5base/ |
| H A D | 0018-HACK-qpaintengine_raster-Support-rga-in-fillRect-wit.patch | 4 Subject: [PATCH 18/28] HACK: qpaintengine_raster: Support rga in fillRect with 13 src/gui/painting/rga.c | 117 +++++++++++++++++++++++ 15 create mode 100644 src/gui/painting/rga.c 42 +#include "rga.c" 66 +#if 0 // Somehow neon is faster than rga on this 97 diff --git a/src/gui/painting/rga.c b/src/gui/painting/rga.c 101 +++ b/src/gui/painting/rga.c 103 +#include <rga/rga.h> 104 +#include <rga/RgaApi.h>
|
| /OK3568_Linux_fs/kernel/drivers/video/rockchip/rga3/ |
| H A D | Kconfig | 18 bool "Enable RGA procfs" 22 Enable procfs to debug multi RGA driver. 25 bool "Enable RGA debugfs" 30 Enable debugfs to debug multi RGA driver. 35 Enabling the debugger of multi RGA, you can use procfs and debugfs for debugging.
|
| /OK3568_Linux_fs/kernel/drivers/video/rockchip/rga/ |
| H A D | rga_drv.c | 15 #define pr_fmt(fmt) "rga: " fmt 56 #include "rga.h" 81 #define DRIVER_DESC "RGA Device Driver" 82 #define DRIVER_NAME "rga" 348 DBG("rga align check over!\n"); in rga_align_check() 450 printk("rga total_running %d\n", running); in rga_dump() 468 … printk("rga session pid %d, done %d, running %d\n", reg->session->pid, num_done, running); in rga_dump() 487 … printk("rga session pid %d, done %d, running %d:\n", reg->session->pid, num_done, running); in rga_dump() 650 …/*RGA can support up to 8192*8192 resolution in RGB format,but we limit the image size to 8191*819… in rga_check_param() 819 /* RGA is idle */ in rga_try_set_reg() [all …]
|
| /OK3568_Linux_fs/external/linux-rga/samples/im2d_api_demo/ |
| H A D | args.cpp | 37 …the version or support information corresponding to the current version of RGA according to the op… in help_function() 38 …put options, all versions and support information of the current version of RGA will be printed.\n" in help_function() 41 "\t version \tPrint RGA version, and librga/im2d_api version.\n" in help_function() 49 "\t --copy Copy the image by RGA.The default is 720p to 720p.\n" in help_function() 50 …"\t --resize resize the image by RGA.You can choose to up(720p->1080p) or down(720p->480p).\n" in help_function() 51 …"\t --crop Crop the image by RGA.By default, a picture of 300*300 size is cropped from (100… in help_function() 52 … "\t --rotate Rotate the image by RGA.You can choose to rotate 90/180/270 degrees.\n" in help_function() 53 … "\t --flip Flip the image by RGA.You can choice of horizontal flip or vertical flip.\n" in help_function() 54 "\t --translate Translate the image by RGA.Default translation (300,300).\n" in help_function() 55 "\t --blend Blend the image by RGA.Default, Porter-Duff 'SRC over DST'.\n" in help_function() [all …]
|
| /OK3568_Linux_fs/external/linux-rga/debian/ |
| H A D | control | 11 Homepage: https://github.com/rockchip-linux/linux-rga 12 Vcs-Git: https://github.com/rockchip-linux/linux-rga 13 Vcs-Browser: https://github.com/rockchip-linux/linux-rga 18 Description: Userspace interface to Rockchip RGA 2D accelerator 23 Description: Userspace interface to Rockchip RGA 2D accelerator
|
| /OK3568_Linux_fs/buildroot/package/pixman/ |
| H A D | 0005-pixman_image_composite32-Support-rockchip-RGA-2D-acc.patch | 4 Subject: [PATCH 5/6] pixman_image_composite32: Support rockchip RGA 2D accel 23 +dnl check for rockchip RGA 24 +PKG_CHECK_MODULES(RGA, [librga], 25 + AC_DEFINE(HAVE_RGA, 1, [Have rockchip RGA])], 26 + AC_MSG_NOTICE([Without rockchip RGA])) 58 +#include <rga/rga.h> 59 +#include <rga/RgaApi.h> 119 + /* RGA requires image width/height larger than 2 */ 288 + /* RGA requires yuv image rect align to 2 */ 294 + /* RGA requires yuv image stride align to 2 */ [all …]
|
| /OK3568_Linux_fs/external/rknpu2/examples/rknn_yolov5_android_apk_demo/app/src/main/java/com/rockchip/gpadc/demo/rga/ |
| H A D | RGA.java | 1 package com.rockchip.gpadc.demo.rga; 5 public class RGA { class 12 * Please refer to the link to confirm the RGA driver version, make sure it is higher than 1.2.4 13 * https://github.com/airockchip/librga/blob/main/docs/Rockchip_FAQ_RGA_CN.md#rga-driver 27 Log.w("rkyolo.RGA", "src or dst is null"); in colorConvertAndFlip()
|