Commit Graph

1072703 Commits

Author SHA1 Message Date
Tao Huang
4f1d178da1 soc: rockchip: rockchip_system_monitor: use IS_REACHABLE instead of IS_ENABLED
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I1726278ab44f17bb204d0c57758952f5f3896d76
2022-09-29 10:02:27 +08:00
Shaohan Yao
cf0e68c8b4 soc: rockchip: rockchip_system_monitor: Add temperature notifier
Signed-off-by: Shaohan Yao <shaohan.yao@rock-chips.com>
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I8152d13f09f9e4f38a1d402ca32ae1e7f4a8585c
2022-09-29 09:38:27 +08:00
Tao Huang
217d03411d power: reset: reboot-mode: Don't miss panic reboot mode
pre_restart will rewrite reboot mode with normal mode when panic.

Fixes: c0b196cd5b ("power: reset: reboot-mode: Register callback for kernel pre restart")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I8ad03b8f699b9c1a544a46bbdb60d118381d8356
2022-09-29 09:35:41 +08:00
Sugar Zhang
112acab47d ASoC: dmaengine: Fix NULL pointer reference
Unable to handle kernel NULL pointer dereference at virtual address 0000000000000080
Internal error: Oops: 96000005 [#1] PREEMPT SMP
Modules linked in: bcmdhd dhd_static_buf r8168
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.10.110 #470
Hardware name: Rockchip RK3588 EVB1 LP4 V10 Board (DT)
pstate: 20400009 (nzCv daif +PAN -UAO -TCO BTYPE=--)
pc : dmaengine_pcm_dma_complete+0x44/0xdc
lr : pl330_tasklet+0xd4/0x2d0
sp : ffffffc01249bdf0
x29: ffffffc01249bdf0 x28: 0000000000000000
x27: ffffff8102c8c608 x26: 0000000000000002
x25: ffffff8102c8c608 x24: ffffff8102d4c600
x23: ffffff81018868c0 x22: ffffff8102c8c618
x21: 0000000000000000 x20: ffffffc010f238ec
x19: ffffff8102c8c560 x18: ffffffc012491048
x17: 0000000000000000 x16: 0000000000000000
x15: 0000000000000000 x14: 000000000007fcc4
x13: 0000000000000004 x12: 0000000a7e22d2ff
x11: 0000000000004007 x10: 0000000000000000
x9 : 0000000000003000 x8 : ffffff8030b7d480
x7 : 000000b2b5593519 x6 : 00000000003033ff
x5 : 0000000000000000 x4 : 0000000000bb82b6
x3 : ffffff8102c90b28 x2 : 0000000000000001
x1 : 0000000000000000 x0 : ffffff8102d4c600
Call trace:
 dmaengine_pcm_dma_complete+0x44/0xdc
 pl330_tasklet+0xd4/0x2d0
 tasklet_action_common+0x11c/0x414
 tasklet_action+0x28/0x38
 _stext+0x108/0x408
 __irq_exit_rcu+0xc0/0xc4
 irq_exit+0x14/0x28
 __handle_domain_irq+0x84/0xd0
 gic_handle_irq+0x78/0x154
 el1_irq+0xe4/0x1c0
 cpuidle_enter_state+0x200/0x3b8
 cpuidle_enter+0x3c/0x58
 cpuidle_idle_call+0x158/0x238
 do_idle+0xac/0xfc
 cpu_startup_entry+0x28/0x2c
 rest_init+0xd8/0xec
 arch_call_rest_init+0x14/0x24
 start_kernel+0x3d8/0x500

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ib3d3ac842d3cd249c8cc6f516178031400dbc307
2022-09-29 09:34:51 +08:00
Sugar Zhang
f3fe5ad04b ASoC: rockchip: i2s-tdm: Workaround for Skyworth 8K TVs' Playback
Bring back CLK ASAP after cfg changed to make SINK devices active
on HDMI-PATH-ALWAYS-ON situation, this workaround for some TVs no
sound issue. at the moment, it's 8K@60Hz display situation.

On HDMI-PATH-ALWAYS-ON situation, we almost keep XFER always on,
so, for new data start, suggested to STOP-CLEAR-START to make sure
data aligned.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I56f97d7246cf790ea33a7410eff418baeeecc6d0
2022-09-29 09:31:06 +08:00
Jianqun Xu
bc8ef86861 mm/page_isolation.c: dump page owner if fail to isolate
CMA alloc may failure due to page busy caused by isolated failure,
it's helpful to dump page owner stack for debug.

To use this debug, there should enable PAGE_OWNER debug first by
- CONFIG_PAGE_OWNER=y
- add “page_owner=on” to boot cmdline

then it will shows as following:
 page allocated via order 0, migratetype Movable, gfp_mask 0x6212ca(GFP_HIGHUSER_MOVABLE|__GFP_NOWARN|__GFP_NORETRY)
  get_page_from_freelist+0x1404/0x1920
  __alloc_pages_nodemask+0xf4/0xe90
  __do_page_cache_readahead+0x104/0x1f0
  filemap_fault+0x3d4/0x618
  ext4_filemap_fault+0x30/0x50
  __do_fault+0x50/0x118
  __handle_mm_fault+0x7e4/0xb40
  handle_mm_fault+0xcc/0x1a0
  do_page_fault+0x1f0/0x4a8
  do_translation_fault+0x5c/0x64
  do_mem_abort+0x54/0xf8
  el0_da+0x1c/0x20

Change-Id: I94b02a7c4ce9174f8151e0979e18adba4011c1d2
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2022-09-28 18:10:02 +08:00
William Wu
f537dfe383 USB: quirks: add quirk auto suspend for Sonix webcam
The Sonix webcam (idVendor=0x0c45,idProduct=0x636a)
can't support auto-suspend well on rockchip platforms.
With auto-suspend, the usb mic of the webcam fail to
start capture. So we need to disable auto-suspend for
this Sonix webcam.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: Icc59c4fe1fda78be73441dc4320d6d738d031efd
2022-09-28 16:34:26 +08:00
Dingxian Wen
797ce37d8c media: rockchip: hdmirx: enhance the stability of reading resolution
sometimes the signal is locked, but the resolution is not stable.

Signed-off-by: Dingxian Wen <shawn.wen@rock-chips.com>
Change-Id: I4088690c58159dbdc6a36a1f3fe1db4dada4bfbb
2022-09-28 09:51:40 +08:00
Andy Yan
247fa56c8d drm/rockchip: vop2: Fix the pixel/yrgb_mst/uv_mst alignments of NV15/NV12 at splice mode
The mst of yrgb/uv must start at a byte aligned address with a full
group of pixel.

For a pixel with NV15 format,  the y channel has 10 bits and uv channel
has 5 bits. So limit the alignment to 8 pixel(10 bytes for Y, and 5 bytes
for UV) to meet this requirement.

For a pixel with NV12 format, we should limit the alignment to 2 pixel.

Change-Id: I23eccca6d706d3da25d2deac29e5a862e4bf355d
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2022-09-28 09:35:17 +08:00
Jianqun Xu
45b3d59d13 mm: cma: add CmaAllocated/CmaReleased info for meminfo node
Show the CMA pages used by cma_alloc in meminfo node.

Tested on RV1126 EVB DDR3:
CmaTotal:         270336 kB
CmaAllocated:      44408 kB
CmaReleased:      225928 kB
CmaFree:               0 kB

The CmaTotal = CmaAllocated + CmaReleased, and the CmaFree is pages
under cma area unused by system.

The CmaAllocated can be calculated by CMA_DEBUGFS.
Tested on RV1126 EVB DDR3:
cat /sys/kernel/debug/cma/*/used
10756
346

The results from cma used is in page count, 1 page = 4kByte
CmaAllocated = 44408kB = 10756 + 346 pages

Change-Id: Ib79001367562c968e6432816b158cba551978173
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2022-09-27 17:05:11 +08:00
Sach Lin
46af2a4fc8 ARM: dts: rockchip: rv1106-smd-cam: add gt24c512
Signed-off-by: Sach Lin <sach.lin@rock-chips.com>
Change-Id: I1d298fa02c42e9a2b0cfa120a4a569ed21ee4d02
2022-09-27 14:29:27 +08:00
Sach Lin
13f3f54056 ARM: configs: rv1106-smart-door: enable CONFIG_EEPROM_AT24
Signed-off-by: Sach Lin <sach.lin@rock-chips.com>
Change-Id: I5f1300451d10b821775427ad519eb3739f896a1e
2022-09-27 14:15:33 +08:00
Yandong Lin
4935d15e9b video: rockchip: mpp: fix dec err issue for rk356x
1. Add need_hack check for rk356x
2. Use cancel_delayed_work replace cancel_delayed_work_sync
3. Remove the operation of resetting rkvdec2 before suspend

Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: If826ce65fa1db164a99067bdc9ab5092474a88a3
2022-09-27 11:08:58 +08:00
Wang Xiaobin
cbf9da816c ARM: dts: rockchip: rv1106g-smart-door: use erofs with dax
Signed-off-by: Wang Xiaobin <xb.wang@rock-chips.com>
Change-Id: I23a83c0118c3a0d497d2c7a408fd223be422fe09
2022-09-27 10:59:36 +08:00
Jianqun Xu
5b4996597c Revert "dma-buf: heaps: cma: add uncached"
This reverts commit d3bf1f97b4.
Convert to use rk_cma_heap.c

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I463c67387fc8fba06b4cf5b09e8d4d1c7f0e4856
2022-09-27 10:57:48 +08:00
Jianqun Xu
257c52e940 Revert "dma-buf: cma_heap: support dmabuf partial sync"
This reverts commit dcbfe3bd8c.
Convert to use rk_cma_heap.c

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Iee39ced1023abce09116d73143bb81a6b15ca54f
2022-09-27 10:57:34 +08:00
Jianqun Xu
23cdadf8a5 Revert "dma-buf: dma-heap: heap ops supports get_phys"
This partially reverts commit 61a32e157e.
Convert to use rk_cma_heap.c and keep fixes to dma-heap.c

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I740d0de75d8b526f7de987b0b1c18dc3f6298705
2022-09-27 10:57:14 +08:00
Jianqun Xu
449b29d7ab Revert "dma-buf: cma_heap: Fix compile warning when !CONFIG_NO_GKI"
This reverts commit 78a3c0db57.
Convert to use rk_cma_heap.c

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I799107c485187d99f1c71e58ede360865337cf3e
2022-09-27 10:56:35 +08:00
Jianqun Xu
e8bbe70394 dma-buf: heaps: rk_cma_heap named cma-heap default to be "cma-heap"
The userland (gralloc or libdmaheap) fixed to use a heap name "cma-heap"
to be the device name, without this patch, the dt file should named the
cma default node name as "cma". otherwise it is defaultly to be "reserved"
that make the userland fail to open the device.

This patch fixes the cma-heap default name to "cma-heap".

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I09befb35bb8d4cd042b8c1c66c5d99c7d58fbbb6
2022-09-27 10:55:06 +08:00
Jianqun Xu
59b87bad33 dma-buf: heaps: rk_cma_heap fix the implement of partial sync
Make the partial sync separated from normal sync.
Fixes: dcbfe3bd8c ("dma-buf: cma_heap: support dmabuf partial sync")

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I07342cf850f212e9682a589818069977ef4b78a8
2022-09-27 10:55:06 +08:00
Jianqun Xu
cc85d657a1 dma-buf: heaps: rk_cma_heap fix module license to "GPL"
WARNING: Prefer "GPL" over "GPL v2" - see commit bf7fbeeae6
("module: Cure the MODULE_LICENSE "GPL" vs. "GPL v2" bogosity")

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I52c2110ac9b150e615bbeb497b7e997d49ec2106
2022-09-27 10:55:06 +08:00
Algea Cao
b7cf9d2872 drm/bridge: synopsys: dw-hdmi-qp: Reset avp data path before flt
Fix probabilistic no signal output in samsung 8K TV.

Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I366311b61595534ce8fefeb235bc9b20cb3991e0
2022-09-27 10:43:20 +08:00
Jianqun Xu
662e202de8 dma-buf: heaps: Add the rk_cma_heap
Renamed from cma_heap.c and add copyright from Rockchip.

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: If67e0a76d95389b34027c1990f0816c0b95f2a28
2022-09-27 09:03:56 +08:00
Wang Xiaobin
61a8f0b804 ARM: dts: rockchip: rv1106g-smart-door: remove the meta node
The layout about meta has been changed and defined in rv1106-thunder-boot.dtsi.

Signed-off-by: Wang Xiaobin <xb.wang@rock-chips.com>
Change-Id: I9d658cdcd01905e74e7a9faaaaead6396171dd84
2022-09-26 19:25:02 +08:00
Cai YiWei
88807cdb04 media: rockchip: isp: fix stream off just close isp
Fixes: 39c3a52c25 ("media: rockchip: isp: stop without waiting if isp idle for readback mode")
Change-Id: I80446449bf705819b0266e6a0cbdc9e2ee67b57e
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-09-26 19:11:25 +08:00
Su Yuefu
8c27fc9fb4 media: i2c: sc3336 increase vblank to 8ms
Signed-off-by: Su Yuefu <yuefu.su@rock-chips.com>
Change-Id: I66705f4669e3af9a7ef53791a49e26f0fd83e775
2022-09-26 19:07:36 +08:00
Weiwen Chen
06eeb706c4 ARM: dts: rockchip: rv1103g-battery-ipc-v10: use erofs default
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I0447efd99dd55c9bf995a651ca36976accb03c43
2022-09-26 19:03:31 +08:00
Weiwen Chen
c5bdad8318 ARM: dts: rockchip: rv1106g-evb2-v10: use erofs default
Change-Id: I283eb3e7fe46eac90003d3e430ef91216c94ef2d
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
2022-09-26 19:02:52 +08:00
Tao Huang
f1f705150d ARM: rv1106-tb.config: Replace ROMFS with EROFS with DAX
size vmlinux:
before:
   text    data     bss     dec     hex filename
2595092 1136900   85540 3817532  3a403c vmlinux

after:
   text    data     bss     dec     hex filename
2639206 1147196  121300 3907702  3ba076 vmlinux

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I2c88bec947fe1cf5f28cc0a8e2251fa4012f6165
2022-09-26 18:04:24 +08:00
Tao Huang
2c601817eb dax: allow FS_DAX when CONFIG_ROCKCHIP_RAMDISK=y on ARM
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ic73f4ad0989e33ea14d1842e2b99dd02628f242e
2022-09-26 18:04:24 +08:00
Tao Huang
2a30414424 erofs: fix panic when CONFIG_ROCKCHIP_RAMDISK=y on ARM
Internal error: Oops - BUG: 0 [#1] THUMB2
Modules linked in:
CPU: 0 PID: 271 Comm: busybox Not tainted 5.10.110 #117
Hardware name: Generic DT based system
PC is at __vm_insert_mixed+0x1e/0xda
LR is at vmf_insert_mixed+0xf/0x12
pc : [<b005a8d0>]    lr : [<b005a9ad>]    psr: 20000133
sp : b668fdb0  ip : 00000000  fp : 00000000
r10: 00000000  r9 : b0bb25a8  r8 : 00005001
r7 : 00010000  r6 : 000043a8  r5 : b6656528  r4 : 0000018f
r3 : 00007ffb  r2 : 00005001  r1 : 00010000  r0 : b6656528
Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA Thumb  Segment user
Control: 50c53c7d  Table: 00d6c059  DAC: 00000055
Process busybox (pid: 271, stack limit = 0xaf1f1034)
[<b005a8d0>] (__vm_insert_mixed) from [<b005a9ad>] (vmf_insert_mixed+0xf/0x12)
[<b005a9ad>] (vmf_insert_mixed) from [<b0094ef5>] (dax_iomap_pte_fault+0x429/0x470)
[<b0094ef5>] (dax_iomap_pte_fault) from [<b0130bdf>] (erofs_dax_huge_fault+0xf/0x18)
[<b0130bdf>] (erofs_dax_huge_fault) from [<b005963d>] (__do_fault+0x23/0x3a)
[<b005963d>] (__do_fault) from [<b005afa3>] (handle_mm_fault+0x259/0x45e)
[<b005afa3>] (handle_mm_fault) from [<b000f98f>] (do_page_fault+0x10f/0x184)
[<b000f98f>] (do_page_fault) from [<b000facf>] (do_DataAbort+0x27/0x80)
[<b000facf>] (do_DataAbort) from [<b000902f>] (__dabt_usr+0x4f/0x60)

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Id241bf92d60a473dc6baa88d65bb17a775875713
2022-09-26 18:04:24 +08:00
Tao Huang
f14ace6fc6 dax: support ARM
ARM missing define copy_user_page.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ib2ae611a9605e153e72f4c94936ab6ebcae3510e
2022-09-26 18:04:24 +08:00
Tao Huang
bd0c2d37e0 soc: rockchip: ramdisk: Add DAX support
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I27085e3a323975bffc001ac8bd5188be731b9501
2022-09-26 18:04:24 +08:00
Gao Xiang
f0b75ac1fc UPSTREAM: erofs: dax support for non-tailpacking regular file
DAX is quite useful for some VM use cases in order to save guest
memory extremely with minimal lightweight EROFS.

In order to prepare for such use cases, add preliminary dax support
for non-tailpacking regular files for now.

Tested with the DRAM-emulated PMEM and the EROFS image generated by
"mkfs.erofs -Enoinline_data enwik9.fsdax.img enwik9"

Link: https://lore.kernel.org/r/20210805003601.183063-3-hsiangkao@linux.alibaba.com
Cc: nvdimm@lists.linux.dev
Cc: linux-fsdevel@vger.kernel.org
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Change-Id: I640c90ce0b20e636848aac828ed0f568676e74e1
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit 06252e9ce0)
2022-09-26 18:04:24 +08:00
Huang Jianan
282ccecc15 BACKPORT: erofs: iomap support for non-tailpacking DIO
Add iomap support for non-tailpacking uncompressed data in order to
support DIO and DAX.

Direct I/O is useful in certain scenarios for uncompressed files.
For example, double pagecache can be avoid by direct I/O when
loop device is used for uncompressed files containing upper layer
compressed filesystem.

This adds iomap DIO support for non-tailpacking cases first and
tail-packing inline files are handled in the follow-up patch.

Link: https://lore.kernel.org/r/20210805003601.183063-2-hsiangkao@linux.alibaba.com
Cc: linux-fsdevel@vger.kernel.org
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Huang Jianan <huangjianan@oppo.com>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
[ Add include linux/uio.h and replace filemap_read with generic_file_buffered_read ]
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I421298df25eb8b5cf22ad43339d168ac50777012
(cherry picked from commit a08e67a028)
2022-09-26 18:04:24 +08:00
Sandy Huang
432173aa04 drm/rockchip: drv: fix iommu pagefault when pitch isn't aligned as 4 byte
The unit of VOP stride is word, so we return error to avoid userspace to
commit legal alignment.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I147f4985f4c6304db68efb0876c3f918da76ff52
2022-09-26 18:04:24 +08:00
Algea Cao
1bf8b6d4b4 drm/bridge: synopsys: dw-hdmi-qp: Support ALLM
Add two drm properties for ALLM:

allm_capacity:
	values: 0 1
	0: sink not support ALLM
	1: sink support ALLM

allm_enable:
	0: disable ALLM
	1: enable ALLM

Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I0f5a6fa324c6727c37414f017b4839b3ec910206
2022-09-26 18:04:24 +08:00
Xing Zheng
5ebe93e6bf ASoC: codecs: rv1106_codec: fix and optimize ADC enabling VREF
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: Ieb34e125972faef68f0bef23c4819aeaf6127ee7
2022-09-26 09:43:28 +08:00
Nickey Yang
5999dafd2b arm64: rockchip_linux_config: enable CONFIG_ROCKCHIP_DW_HDCP2
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
Change-Id: Icedd151f0c6e6751faa39eb9c3053860c36c91fe
2022-09-26 09:39:25 +08:00
Tao Huang
a0c6cc5fdb Revert "dma-buf: system_heap: adjust orders if swiotlb limit"
This reverts commit 79c6a1e08b.
Use rk_system_heap.c instead of system_heap.c now, reverts all changes.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I0351b2a839fa984729ca167c66ca10231475ec5e
2022-09-24 09:27:20 +08:00
Tao Huang
86ab879b66 Revert "dma-buf: system_heap: support cpu access partial dma-buf"
This reverts commit 21f2fd663e.
Use rk_system_heap.c instead of system_heap.c now, reverts all changes.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ica9d2358c14956a8233523b7b91e1a9d09d50632
2022-09-24 09:27:20 +08:00
Tao Huang
7f281c203b Revert "ANDROID: dma-buf: system_heap: reorder pages for scatterlist"
This reverts commit 10e18d6585.
Use rk_system_heap.c instead of system_heap.c now, reverts all changes.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I32e5e13c2d9765c9cf1bbda4622731ec7a8c1848
2022-09-24 09:27:17 +08:00
Tao Huang
e83883cf87 Revert "ANDROID: dma-buf: system_heap: support to allocate pages with GFP_DMA32"
This reverts commit 8880c05e5a.
Use rk_system_heap.c instead of system_heap.c now, reverts all changes.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I1b00ac9fabb0825dcedf8719a840ac8138bdc81e
2022-09-24 09:27:16 +08:00
Tao Huang
83065feb35 Revert "ANDROID: dma-buf: system_heap: allocate from dma32_pool for dma32* heap"
This reverts commit 383018f42d.
Use rk_system_heap.c instead of system_heap.c now, reverts all changes.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I27099b713ac3249acb628868c7255c51b2881371
2022-09-24 09:27:16 +08:00
Tao Huang
d2c32e14b6 Revert "dma-buf: system_heap: fix compile warning"
This reverts commit 9d91ed824a.
Use rk_system_heap.c instead of system_heap.c now, reverts all changes.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ibb891bd5d9c8a1a56208b8b39402b9b7b04bdd4f
2022-09-24 09:27:16 +08:00
Tao Huang
1f9114b0ba Revert "ANDROID: dma-buf: system_heap: dynamic get ddr map info for reorder page"
This reverts commit a22edac69e.
Use rk_system_heap.c instead of system_heap.c now, reverts all changes.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Iae81cc96b1e1ac3073d1e0fe4cf6cdb55abf6103
2022-09-24 09:27:15 +08:00
Tao Huang
940557cb33 Revert "dma-buf: system_heap: do force sync only if attachment list empty"
This reverts commit 33b98bf612.
Use rk_system_heap.c instead of system_heap.c now, reverts all changes.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Id265fd16b1531708478f07187f50fe23e74e427e
2022-09-24 09:27:13 +08:00
Tao Huang
ea59f61ab4 Revert "dma-buf: heaps: system_heap: fix partial sync contition error"
This reverts commit e165028391.
Use rk_system_heap.c instead of system_heap.c now, reverts all changes.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Iaa80d3480d2e039cdd530e3278035c84553d07e7
2022-09-24 09:27:08 +08:00
Tao Huang
e87b0f89a5 Revert "dma-buf: heaps: system_heap: fix to for_each_sgtable_sg"
This reverts commit 4925881228.
Use rk_system_heap.c instead of system_heap.c now, reverts all changes.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ib7e1dd75ff948b7a190b4169037df83d4596b70e
2022-09-24 09:27:04 +08:00
Tao Huang
7bc10a9db5 Revert "dma-buf: heaps: system_heap: partial sync with sgtable from heap buffer"
This reverts commit 3212cfb965.
Use rk_system_heap.c instead of system_heap.c now, reverts all changes.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I023ebda5731f5c509c703799bfb96115701bdf9e
2022-09-24 09:26:59 +08:00