Commit Graph

1086547 Commits

Author SHA1 Message Date
William Wu
ab0546fdd0 media: uvcvideo: set system status to performance when stream on
For rockchip platforms, set performance frequency for the
memory controller when uvc stream on, and clear it after
uvc stream off. It can improve uvc streaming stability.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I1dc0cf10c552bba2c3a0f8a1bb37d90f546eb4a3
2023-11-08 18:28:40 +08:00
Jkand Huang
87f2ffb98e ARM: configs: rv1106-wakeup.config: fix some sleep to slow down the process
Change-Id: Ie8283ca6d1c8939f9ee6f4881c619e9d979d0a39
Signed-off-by: Jkand Huang <jkand.huang@rock-chips.com>
2023-11-08 18:17:55 +08:00
Finley Xiao
776e251569 clk: rockchip: rk3562: Fix clk_uart3_frac parent clk
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ief524953ddb3875ca1e99e63b99eca6193b7f3cc
2023-11-08 18:17:08 +08:00
Cai Wenzhong
04a82bed12 media: i2c: maxim4c: driver version v2.05.00
1. local device power on add some delay for i2c normal access.
2. enable hot plug detect for partial links are locked.
3. remote device hot plug init disable lock irq.

Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I3424421395601266c0c2a787bedbd5028a786aab
2023-11-08 18:15:59 +08:00
Lan Honglin
006f6868f6 media: i2c: sc230ai support master&slaver mode
Change-Id: If019de218771c7f5a87d8dcc4439d7b464480b6d
Signed-off-by: Lan Honglin <helin.lan@rock-chips.com>
2023-11-08 18:15:40 +08:00
Cai YiWei
d0d7380104 media: rockchip: isp: add isp dgain for tb mem head
Change-Id: I35e717445e798b0d7bee9e173cb39e67299676cb
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-11-08 18:14:46 +08:00
Cai YiWei
03d235b318 media: rockchip: isp: support for param run double
Change-Id: I4b7d32b98762b66a322a831a2c20b23958714a07
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-11-08 18:14:19 +08:00
Tao Huang
e201a6c59d regulator: core: Ensure debugfs is fully initialized
regulator->debugfs is NULL when sysfs_create_link_nowarn() return -EEXIST,
and triggering the following warning:

[    2.426974] debugfs: File 'uA_load' in directory '/' already present!
[    2.426983] debugfs: File 'min_uV' in directory '/' already present!
[    2.426991] debugfs: File 'max_uV' in directory '/' already present!
[    2.426999] debugfs: File 'constraint_flags' in directory '/' already present!

Fixes: 08880713ce ("regulator: core: Streamline debugfs operations")
Fixes: 2715bb11cf ("regulator: core: Fix more error checking for debugfs_create_dir()")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Iab0b91cacba410705a643d7198eee4f70e1108d5
2023-11-08 17:39:47 +08:00
Tao Huang
383aefeeab Merge tag 'ASB-2023-11-05_12-5.10' of https://android.googlesource.com/kernel/common
https://source.android.com/docs/security/bulletin/2023-11-01

* tag 'ASB-2023-11-05_12-5.10':
  BACKPORT: firmware_loader: Abort all upcoming firmware load request once reboot triggered
  UPSTREAM: firmware_loader: Refactor kill_pending_fw_fallback_reqs()

Change-Id: I63f764e519e8791928832881b292a20e0b28c986
2023-11-08 09:47:16 +08:00
Tao Huang
0a9e86dc1f Merge commit 'f40707abde2eb5cd21cf8848f33aefb7e394ad1a' of https://android.googlesource.com/kernel/common
* commit 'f40707abde2eb5cd21cf8848f33aefb7e394ad1a': (1250 commits)
  ANDROID: GKI: Update symbols to symbol list
  ANDROID: Add Interrupt Hook for madvise Compression
  UPSTREAM: netfilter: ipset: add the missing IP_SET_HASH_WITH_NET0 macro for ip_set_hash_netportnet.c
  BACKPORT: ravb: Fix use-after-free issue in ravb_tx_timeout_work()
  UPSTREAM: ravb: Fix up dma_free_coherent() call in ravb_remove()
  Revert "netfilter: handle the connecting collision properly in nf_conntrack_proto_sctp"
  Revert "net: bridge: use DEV_STATS_INC()"
  Revert "configfs: fix a race in configfs_lookup()"
  UPSTREAM: netfilter: ipset: Fix race between IPSET_CMD_CREATE and IPSET_CMD_SWAP
  UPSTREAM: net: xfrm: Fix xfrm_address_filter OOB read
  UPSTREAM: igb: set max size RX buffer when store bad packet is enabled
  UPSTREAM: netfilter: nfnetlink_osf: avoid OOB read
  ANDROID: abi_gki_aarch64_qcom: Add wait_for_device_probe symbol
  UPSTREAM: netfilter: xt_sctp: validate the flag_info count
  UPSTREAM: netfilter: xt_u32: validate user space input
  UPSTREAM: net/sched: Retire rsvp classifier
  UPSTREAM: ipv4: fix null-deref in ipv4_link_failure
  UPSTREAM: netfilter: nf_tables: disallow rule removal from chain binding
  UPSTREAM: netfilter: nf_tables: report use refcount overflow
  FROMLIST: lib/test_meminit: fix off-by-one error in test_pages()
  ...

Change-Id: I78c7dc68c56008361ff7365d2ef2e59359f2e3fe
2023-11-07 19:03:05 +08:00
Tao Huang
1253eedfbf Merge tag 'ASB-2023-10-06_12-5.10' of https://android.googlesource.com/kernel/common
https://source.android.com/docs/security/bulletin/2023-10-01

* tag 'ASB-2023-10-06_12-5.10': (4345 commits)
  ANDROID: ABI: Update oplus symbol list
  ANDROID: vendor_hooks: Add hooks for oem percpu-rwsem optimaton
  UPSTREAM: net: sched: sch_qfq: Fix UAF in qfq_dequeue()
  UPSTREAM: net/sched: sch_hfsc: Ensure inner classes have fsc curve
  FROMGIT: f2fs: split initial and dynamic conditions for extent_cache
  ANDROID: GKI:  Update moto symbols list
  ANDROID: vendor_hook: Add hook to skip swapcache
  ANDROID: GKI: Update symbols to symbol list
  ANDROID: add vendor hook of add/delete/iterate node for swap_avail_heads
  UPSTREAM: tty: n_gsm: fix the UAF caused by race condition in gsm_cleanup_mux
  UPSTREAM: netfilter: nf_tables: prevent OOB access in nft_byteorder_eval
  UPSTREAM: net/sched: sch_qfq: account for stab overhead in qfq_enqueue
  ANDROID: GKI update xiaomi symbols list
  UPSTREAM: af_unix: Fix null-ptr-deref in unix_stream_sendpage().
  UPSTREAM: USB: dwc3: fix use-after-free on core driver unbind
  UPSTREAM: xhci: Fix incorrect tracking of free space on transfer rings
  UPSTREAM: kfence: avoid passing -g for test
  UPSTREAM: coresight: etm4x: Do not access TRCIDR1 for identification
  UPSTREAM: usb: typec: tcpm: fix warning when handle discover_identity message
  UPSTREAM: f2fs: fix to update age extent in f2fs_do_zero_range()
  ...

Change-Id: I629b30e89c59280f9fd1073d160b74de1d8b04b1

Conflicts:
	arch/arm/boot/dts/rk3288.dtsi
	drivers/crypto/Kconfig
	drivers/dma/pl330.c
	drivers/gpu/drm/rockchip/rockchip_drm_vop.c
	drivers/gpu/drm/rockchip/rockchip_lvds.c
	drivers/pci/controller/pcie-rockchip.c
	drivers/phy/rockchip/phy-rockchip-inno-usb2.c
	drivers/phy/rockchip/phy-rockchip-typec.c
	drivers/pinctrl/pinctrl-rockchip.c
	drivers/tty/serial/8250/8250_dma.c
	drivers/tty/serial/8250/8250_port.c
	drivers/usb/dwc2/platform.c
	drivers/usb/dwc3/core.c
	drivers/usb/dwc3/gadget.c
	drivers/usb/gadget/udc/core.c
	drivers/usb/host/xhci.h
	drivers/usb/storage/unusual_uas.h
	drivers/usb/typec/altmodes/displayport.c
	drivers/usb/typec/tcpm/tcpm.c
	kernel/sched/fair.c
	sound/soc/rockchip/rockchip_pdm.c
2023-11-07 19:01:23 +08:00
Tao Huang
c575feaee9 Revert "usb: typec: typec_port_register_altmodes() depends on CONFIG_NO_GKI"
This reverts commit afaeb74a36.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2023-11-07 18:57:40 +08:00
Lan Honglin
be8938d206 media: i2c: os02k10: fix setting exposure error
Change-Id: Id945ead34286b485eb38b860cc751158534b27d7
Signed-off-by: Lan Honglin <helin.lan@rock-chips.com>
2023-11-07 18:43:38 +08:00
Hu Kejun
4a0a1b85cb media: i2c: dw9800w: add ioctl set max logical pos
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: Ib0c1fb970aeeae3cbf85d1a4108ed58ef7101881
2023-11-07 18:42:29 +08:00
Yu Qiaowei
0edaeafbfc video: rockchip: rga3: prevent calling mmget()/mmput() in spin_lock
Change-Id: Iab49cf67340fa2a476bb5931a927b04f7c8edb01
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
2023-11-07 18:33:16 +08:00
Yu Qiaowei
59b58f06c5 video: rockchip: rga3: refining time-consuming logs
1. Add map/unmap time-consuming
2. Use more intuitive log printing

Change-Id: Id70bc4cce42bb33580ceaf18220fe2454481e78d
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
2023-11-07 17:40:44 +08:00
Yu Qiaowei
0011fa588c video: rockchip: rga3: destroy internal_buffer when user exits
When a user imports the same buffer from multiple threads, relying only
on put to reduce the reference count after the process exits will lead
to memory leaks.

Change-Id: I22e48eb89d23d0d1bc3066048235f1d58ba93511
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
2023-11-07 17:39:57 +08:00
Yu Qiaowei
08092751f1 video: rockchip: rga3: signaled fecne after request commit failed
Change-Id: I32b35bece1b20aa3228d6d4107b0dad1f4ce6c22
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
2023-11-07 17:39:57 +08:00
Wen Zhiwei
d85f16835d UPSTREAM: mmc: dw_mmc: Fix potential null pointer risk
we previously assumed 'host->slot' could be null,
null pointer judgment should be added

Signed-off-by: Wen Zhiwei <wenzhiwei@kylinos.cn>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Link: https://lore.kernel.org/r/20211229023814.53372-1-wenzhiwei@kylinos.cn
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Yifeng Zhao <zyf@rock-chips.com>
(cherry picked from commit 4a835afd80)
Change-Id: Iffade4e1d3ab6ad5bde7b6f05aaf3ce03ba28922
2023-11-07 17:09:44 +08:00
Guochun Huang
16239e4037 drm/rockchip: rk628: vrefresh should not be zero
Change-Id: Ia9bde450208f72aa8f9d5dd77b6086abc715bd5e
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2023-11-07 16:54:13 +08:00
Guochun Huang
c15b005b73 phy/rockchip: inno-dsidphy: fref and _prediv should not be zero
Change-Id: I51bcc4ca83e176d2c3de82b7dadabd3a409d16b7
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2023-11-07 16:54:13 +08:00
Guochun Huang
ec130295af drm/rockchip: dsi2: sys_clk and pixel_clk should not be zero
Change-Id: I8a92a1d12093b3562566349707c7ee0308e7d01c
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2023-11-07 16:54:13 +08:00
Guochun Huang
f16cdb0b9b drm/rockchip: dsi: the bpp should not be zero
Change-Id: I41d4ec692475014951beb3295e912995a2b17d16
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2023-11-07 16:54:13 +08:00
Cai YiWei
097fce7074 media: rockchip: isp: fix build warning
Change-Id: I44ce213cf48379e496cf47906bcad2cef685b93d
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-11-07 16:47:57 +08:00
Huibin Hong
d7c2994c9b soc: rockchip: rk_dmabuf_procfs: check return value of platform_device_register_full()
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: I2d6b83fd4eba02c587b9af52aa91e6b92618085a
2023-11-07 14:46:12 +08:00
Cai Wenzhong
2182c42cb8 media: i2c: add Maxim Dual GMSL2/GMSL1 to CSI-2 Deserializer driver.
1. maxim deserializer support: max96716/max96718
1.1 local maxim deserlializer depend on CONFIG_VIDEO_DES_MAXIM2C

2. maxim serializer support: max9295/max96715/max96717
2.1 remote max9295 serializer depend on CONFIG_MAXIM2C_SER_MAX9295
2.2 remote max96715 serializer depend on CONFIG_MAXIM2C_SER_MAX96715
2.3 remote max96717 serializer depend on CONFIG_MAXIM2C_SER_MAX96717

Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: Iff158e3a05927c8e3d2c17e4aa04bfc0fcc86a37
2023-11-07 11:28:01 +08:00
Weiwen Chen
dbf5c36476 media: i2c: sc200ai: get camera param from cam-tb-setup
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: Ie9aae3722e23f72a5381b64583044c86810c61dc
2023-11-07 09:51:00 +08:00
Mukesh Ojha
ba88bbf1bb BACKPORT: firmware_loader: Abort all upcoming firmware load request once reboot triggered
There could be following scenario where there is a ongoing reboot
is going from processA which tries to call all the reboot notifier
callback and one of them is firmware reboot call which tries to
abort all the ongoing firmware userspace request under fw_lock but
there could be another processB which tries to do request firmware,
which came just after abort done from ProcessA and ask for userspace
to load the firmware and this can stop the ongoing reboot ProcessA
to stall for next 60s(default timeout) which may not be expected
behaviour everyone like to see, instead we should abort any firmware
load request which came once firmware knows about the reboot through
notification.

      ProcessA                             ProcessB

kernel_restart_prepare
  blocking_notifier_call_chain
   fw_shutdown_notify
     kill_pending_fw_fallback_reqs
      __fw_load_abort
       fw_state_aborted                request_firmware
         __fw_state_set                 firmware_fallback_sysfs
...                                       fw_load_from_user_helper
..                                         ...
.                                          ..
                                            usermodehelper_read_trylock
                                             fw_load_sysfs_fallback
                                              fw_sysfs_wait_timeout
usermodehelper_disable
 __usermodehelper_disable
  down_write()

Bug: 309378049
Change-Id: I61eb91f21a01460f340f890b25c60de7597a87ff
Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
Acked-by: Luis Chamberlain <mcgrof@kernel.org>
Link: https://lore.kernel.org/r/1698330459-31776-2-git-send-email-quic_mojha@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit effd7c70eaa0440688b60b9d419243695ede3c45)
Signed-off-by: Srinivasarao Pathipati <quic_c_spathi@quicinc.com>
2023-11-06 15:14:28 +05:30
Mukesh Ojha
10120b0270 UPSTREAM: firmware_loader: Refactor kill_pending_fw_fallback_reqs()
Rename 'only_kill_custom' and refactor logic related to it
to be more meaningful.

Bug: 309378049
Change-Id: I119d2f8c29b9b624e6c1d8546c1533d76a2cc51d
Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
Acked-by: Luis Chamberlain <mcgrof@kernel.org>
Link: https://lore.kernel.org/r/1698330459-31776-1-git-send-email-quic_mojha@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 87ffa98eeee8d62a56afdad80ea697e7a6e5c354)
Signed-off-by: Srinivasarao Pathipati <quic_c_spathi@quicinc.com>
2023-11-06 14:52:33 +05:30
Elaine Zhang
64ab42efa5 net: can: rockchip: use soft reset for bus off
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I8950b7ee8fa677376600599922aa6c40d1af2d0a
2023-11-06 17:15:22 +08:00
Elaine Zhang
9038fae6bd net: can: rockchip: fix rx stuck and timeout
In some special applications, tx has read data from the fifo, rx to read
the fifo is 0 when there is no need to do timeout waiting.

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I7f4bc88ace026088228396da96d628bebb9e4b94
2023-11-06 17:15:22 +08:00
Elaine Zhang
e903c65661 net: can: rockchip: support Listen-only mode
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I6b566f3f0834ff01e9cff1c1b7ef3934c2e5ec37
2023-11-06 17:15:22 +08:00
Elaine Zhang
4314dcc88f net: can: rockchip: fix tx error in special application
add wait tx req cmd.
fix warning: "BUG! echo_skb %d is occupied!"
disable space_rx_mode when tx req to fix extended frame probability
change standard frame.

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I0b11d985224682700f43cb155f357b28622dc4be
2023-11-06 17:15:22 +08:00
Cody Xie
ecd2f7a8a0 arm64: dts: rockchip: rk3588-vehicle-evb-v22: Switch to use standalone NCA9539 driver
Change-Id: Iff456e2bf6644185a164fba601e914f19c86effa
Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
2023-11-06 16:18:00 +08:00
Yandong Lin
d9794ef01e video: rockchip: mpp: fix rkvenc2 run crash issue
Calling an interface containing mutex lock after
schedule_preempt_disabled caused the problem.

Call trace:
 dump_backtrace+0xf4/0x118
 show_stack+0x18/0x24
 dump_stack_lvl+0x60/0x7c
 dump_stack+0x18/0x3c
 __schedule_bug+0x6c/0x8c
 __schedule+0x64c/0x9cc
 schedule+0x7c/0xe8
 schedule_preempt_disabled+0x24/0x40
 __mutex_lock+0x224/0xdac
 __mutex_lock_slowpath+0x14/0x24
 mutex_lock+0x40/0xec
 clk_get_rate+0x50/0x134
 rkvenc_run+0x4ec/0x728 [rk_vcodec]
 mpp_task_worker_default+0x2b4/0x494 [rk_vcodec]
 kthread_worker_fn+0x10c/0x244
 kthread+0x104/0x1d4
 ret_from_fork+0x10/0x20

Fixes: ca7fd65693 ("video: rockchip: mpp: rkvenc2: optimize iommu fault handle")
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I1bceea441495a1c6c94776a648601d670b7a29d2
2023-11-06 16:16:58 +08:00
YouMin Chen
59cc6c2107 arm64: dts: rockchip: rk3588: dmc add SYS_STATUS_DEEP_SUSPEND
Signed-off-by: YouMin Chen <cym@rock-chips.com>
Change-Id: Ia15fc5ce372aeaaef1a009da20e2759f599988bf
2023-11-06 16:09:59 +08:00
YouMin Chen
8abd0d3f68 PM / devfreq: rockchip_dmc: add support SYS_STATUS_DEEP_SUSPEND
Set the frequency of SYS_STATUS_DEEP_SUSPEND to devfreq->suspend_freq,
which is the device frequency set during deep suspend phase.

Signed-off-by: YouMin Chen <cym@rock-chips.com>
Change-Id: Ic33ded5cc6a17335404ef65dd071e856bdf7e598
2023-11-06 16:09:59 +08:00
Zefa Chen
dbcf24dd4c media: rockchip: isp: support change work mode to online with quick stream
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ic44728b9e98cb8d15967f3ebdc94ca3d05f7d0e3
2023-11-06 14:25:38 +08:00
Cody Xie
87742febe2 arm64: dts: rockchip: rk3588-vehicle-s66\*maxim\*: Fix pins default pinctrls
Change-Id: Ide7bc019d2599888ee52bc1d257f5ba5a598631d
Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
2023-11-06 14:23:09 +08:00
Cody Xie
ce8fb3bb30 arm64: dts: rockchip: rk3588-vehicle\*maxim\*: Fix pins default pinctrls
Set all default pins to expected input/output values to
prevent glitch during probe.

Change-Id: I29e882f47b8ab1e4d89e29cc1525187a434cba53
Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
2023-11-06 14:23:09 +08:00
Damon Ding
18df0d10b7 backlight: pwm_bl: fix the state check in power-off
If the default-brightness-level is 0 and related pwm
has been enabled in uboot, the pwm_backlight may not
actually be turned off.

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I92c0c363a13040e300dd8aa2d40edcad87fa50d0
2023-11-06 14:21:06 +08:00
Finley Xiao
99f2737534 arm64: dts: rockchip: rk3528: Add low temperature config for opp table
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I7f8813c2508bc1eb024f2e2b327dc298bbe5bcb6
2023-11-06 11:35:20 +08:00
David Wu
6a5f6ee5bf net: phy: rk630: Fixed for reboot && ping issue
Fixes: ee144563a5 ("net: phy: rk630: Enable aps && uaps to save power consumption")
Fixes: b67f47f242 ("net: phy: rk630phy: Add adc performance")

Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I9519024f839e1648570ea98c77d2c22e58b9bc76
2023-11-06 11:34:25 +08:00
Treehugger Robot
f40707abde Merge "Merge tag 'android12-5.10.198_r00' into android12-5.10" into android12-5.10 2023-11-03 21:00:44 +00:00
Damon Ding
1dfbd3db7b pwm: rockchip: add debugfs to dump regs
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I2cef534c3cb9c655258f6fc6e66e696b6293307e
2023-11-03 18:44:23 +08:00
Sandy Huang
fb2ea0c6bc drm/rockchip: vop2: fix NULL point when dump regs or active_regs
when vp0 is disabled, the vop2->vps[0].rockchip_crtc.crtc.state is NULL.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I93b3ea4f3ddc6076f2105ebcabf7317627b602a3
2023-11-03 09:09:30 +08:00
Hongming Zou
4334bb68c1 arm64: dts: rockchip: rk3308-amp: support ap rpmsg
Change-Id: I0f50eb6e8a4653f4298c499b29168f0031076c7a
Signed-off-by: Hongming Zou <hongming.zou@rock-chips.com>
2023-11-02 10:32:30 +08:00
Weiwen Chen
2deb8446dd ARM: configs: rockchip: enable CONFIG_PWRSEQ_SIMPLE for rv1106-tb-nofastae.config
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I67caa4711b664174f0192133d5b6280573b72fc1
2023-11-02 09:52:39 +08:00
zihan ju
422887ef07 ANDROID: GKI: Update symbols to symbol list
Leaf changes summary: 2 artifacts changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 1 Added function
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 1 Added variable

1 Added function:

  [A] 'function int __traceiter_android_vh_should_end_madvise(void*, mm_struct*, bool*, bool*)'

1 Added variable:

  [A] 'tracepoint __tracepoint_android_vh_should_end_madvise'

Bug: 307846869

Change-Id: Ib0f337ae35bf7129d90561054f9a8e17ccbbd28b
Signed-off-by: zihan ju <zihan.ju@transsion.com>
2023-11-01 19:07:41 +00:00
zihan ju
91d2427218 ANDROID: Add Interrupt Hook for madvise Compression
We introduce an interrupt hook in Android to manage memory compression
using madvise, improving user experience.

Currently, when a user returns to the home screen, memory compression is
triggered using madvise. The vma and PAGEOUT flag are sent to
process_madvise, initiating page reclaim.

However, if an app is re-opened soon after starting compression, the
reclaim process can cause read delays, leading to potential lag.

To resolve this, we propose to skip pte range traversal. By comparing
the vma's task uid with the current app's uid, we can identify and
interrupt the madvise operation for that vma.

Implementing this requires a vendor hook for should_end_madvise. This
allows us to skip traversal, enhancing user experience.

Bug: 307846869

Change-Id: If2bdbc200b7305e92f836353b7356aa115e00705
Signed-off-by: zihan ju <zihan.ju@transsion.com>
2023-11-01 19:07:41 +00:00