Commit Graph

1072722 Commits

Author SHA1 Message Date
Zefa Chen
ce59362f58 media: rockchip: vicap fixed sof error for rv1126/rk356x in HDR mode
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I78dd84b17ebbbcde166b3557a80bcfb132065c23
2022-09-30 14:43:57 +08:00
Jon Lin
fa919e9611 pcie: rockchip: dw: Support dmatest
Change-Id: I14bd31839bfb3fe70d8b12b7e3e6efca535028a1
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2022-09-30 14:43:41 +08:00
Jon Lin
533492f3b5 PCI: rockchip: dw: Add dmatest
Test code of embedded DMA design based on dwc controller.

Show the controller registered with dmatest, and you can assigned the
correspond test_dev for test:
	echo show > ./sys/module/pcie_dw_dmatest/parameters/dmatest

Check the value of the current parameter:
	grep -H . /sys/module/pcie_dw_dmatest/parameters/*

Fix parameter and run the dmatest:
	echo 0 > ./sys/module/pcie_dw_dmatest/parameters/test_dev
	echo 1 > ./sys/module/pcie_dw_dmatest/parameters/chn_en
	echo 1 > ./sys/module/pcie_dw_dmatest/parameters/rw_test
	echo 0x100 > ./sys/module/pcie_dw_dmatest/parameters/size
	echo 0x1 > ./sys/module/pcie_dw_dmatest/parameters/cycles_count
	echo 0x3c000000 > ./sys/module/pcie_dw_dmatest/parameters/local_addr
	echo 0x3c000000 > ./sys/module/pcie_dw_dmatest/parameters/bus_addr
	echo run > ./sys/module/pcie_dw_dmatest/parameters/dmatest

Change-Id: I1b48f849e5e37baec27bc62d2a8cf4945fb40cbc
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2022-09-30 14:43:41 +08:00
Jon Lin
73635093a1 pcie-dma-trx: update to version 0x4
1.Optimize DMA hook to support multiple independent DMA channels
2.Add interrupt callback to support multiple independent DMA channels

Change-Id: I42a638a4cb9fa61ebc1cd51d4e9f6d6942715fd1
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2022-09-30 14:43:41 +08:00
Liang Chen
0d01ed0d12 arm64: dts: rockchip: rk3588: set pcfg_pull_up for touch int pin
This patch can save 0.6mA for PMUIO2(3V3).
Tested on RK3588_EVB1_LP4_V10 platform.

Change-Id: If9298b7de5859e8bfd28baf3e1022b71efd78218
Signed-off-by: Liang Chen <cl@rock-chips.com>
2022-09-30 10:33:55 +08:00
Andy Yan
d8b6c8e1f7 drm/rockchip: delay destroy logo fb
Some NVR product want skip-ref-fb, destroy logo
fb after some delay to make sure the plane is
disabled.

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: Ia257a510ea2382b5ee6aa4f65b2fef856687b0bc
2022-09-30 09:25:57 +08:00
ZiHan Huang
fefa0e0325 arm64: dts: rockchip: rk3588-evb1-lp4-v10-ipc-6x-linux.dts: open hdmi0 node
Signed-off-by: ZiHan Huang <zack.huang@rock-chips.com>
Change-Id: I00e2bbd7404b4474a061907cb41bd757223ce0f8
2022-09-29 19:55:24 +08:00
Sandy Huang
48db713cf4 drm/rockchip: vop2: fix win disable failed
Before this commit the following scenario maybe disable win failed:
-> disable win and config done
-> vop fs coming, this time win state is disabled.
-> enable win and config done
-> disable win[the fs haven't come yes, so win state is disabled, this will
skip to disable win and lead to disable win failed]
->fs coming, this time win state is still enabled.

so we add judge win backup register state to avoid disable win failed.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ie08aa141616291fc900313d99fbc07622b5d1a83
2022-09-29 19:51:39 +08:00
Zefa Chen
fb8b382053 media: rockchip: vicap fixed bug for hdr online mode to capture raw
1. fixed bug caysed by commit 75dc121c3a

2. enable dma capture in fs intr, otherwise,
 if enable during vblank will cause VICAP to use the buffer address of last runtime,
 but the buffer is released.

Fixes: 75dc121c3a ("media: rockchip: vicap support wake up buffer with mode of rdbk by isp driver")
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I51d6e0aaf513dc1e5039980e7643faa7505c271b
2022-09-29 19:43:44 +08:00
Zefa Chen
9b0a2023cc media: rockchip: vicap: thunderboot support HDR mode
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I85c29687c6bdcfd3adfab9d2de14097a2721433b
2022-09-29 19:43:44 +08:00
Su Yuefu
a868b3f46b media: i2c: updata sc200ai hdr config
Signed-off-by: Su Yuefu <yuefu.su@rock-chips.com>
Change-Id: I028b796c20c17ad8ca1bdb2b1d2ed189106cd06c
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2022-09-29 17:49:44 +08:00
Su Yuefu
b6601c35fd media: i2c: sc200ai support fastboot
Signed-off-by: Su Yuefu <yuefu.su@rock-chips.com>
Change-Id: I521c53b826c485231aa4c59b310a0352d6cdf428
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2022-09-29 17:49:15 +08:00
Jon Lin
c39732fb25 mtd: spinand: macronix: Support new devices
MX35UF1GE4AC, MX35UF1GE4AD, MX35UF2GE4AD, MX35UF4GE4AD

Change-Id: Ief8230ac8d37ad28d3253a9bec8786506698c8c3
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2022-09-29 15:41:17 +08:00
Wangqiang Guo
6feda272d3 media: rockchip: hdmirx: fix some source ced err.
The boundary of different frequency points is set as the default value
to avoid CED interruption being triggered by mistake.

Signed-off-by: Wangqiang Guo <kay.guo@rock-chips.com>
Change-Id: I0b1257586d43e335496e87803628da72bc2a7c0c
2022-09-29 14:57:57 +08:00
Yu Qiaowei
78b085b196 video: rockchip: rga3: rga_image_size_cal supports YUV422 10bit
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I042a85cc427df7ccd9473c3b49f9d2294160fe67
2022-09-29 14:52:12 +08:00
Jason Zhu
b4dff81bd7 ASoC: rockchip: vad: update cpudai process
The process is "startup->prepare->trigger".

Others, fix the pdm + vad do not work well since use the patch:
'commit 3437162327 ("ASoC: rockchip: pdm: Fix pop noise in the beginning")'

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: Ifdc40af04695f4082d536b83309c76ed0426fece
2022-09-29 14:41:04 +08:00
Andy Yan
a927626fae drm/rockchip: vop2: Restore lut after VP exit standby
vop2_crtc_load_lut need to sync with vysnc, so we should
make sure the VP exit standby and setting the right dclk,
or we will meet a cfg done timeout:

[drm:vop2_wait_for_fs_by_done_bit_status] *ERROR* wait vp1 done bit
status timeout, vcnt: 0

Fixes: 5aa1d0e08f ("drm/rockchip: vop2: fix double config done at one
frame time")

Change-Id: I66d1e7ba260dc376c7f7ce132dad2212649b31e8
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2022-09-29 14:40:21 +08:00
Shaohan Yao
b5386fc767 arm64: dts: rockchip: rk3588-evb: Enable pwm fan
Signed-off-by: Shaohan Yao <shaohan.yao@rock-chips.com>
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I5413438ed4d94e358c4ad0826371520cf78e037e
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2022-09-29 14:17:20 +08:00
Shaohan Yao
ab64dbf5f0 hwmon: (pwm-fan) Add system monitor notifier
Add support to change fan speed according to temperature,
and force to update pwm state when suspend and resume as
the configuration of pwm is lost.

Signed-off-by: Shaohan Yao <shaohan.yao@rock-chips.com>
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I05b286d1373dd4ace2fb519f4598008b851e4eff
2022-09-29 14:16:27 +08:00
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