Fix rockit link error occurs in NOFASTAE scenario:
arch/arm/configs/rv1106-tb-nofastae.config
Signed-off-by: Wang Xiaobin <xb.wang@rock-chips.com>
Change-Id: Ib309742b7c2e095481e68dcbf70e5f361819ae22
This maybe also an iommu isuue(without page fault), we need
to do disable then enable display pipeline to revcovery it.
Change-Id: If6886d624d6a354952bb7c9d1a6369707d432d92
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Report ROCKCHIP_DRM_ERROR_EVENT_POST_BUF_EMPTY to userspace
if a POST_BUF_EMPTY storm lasts more than 1 minute.
The userspace should try to avoid use VOP for ovelay and scale
down after receive such event.
Change-Id: Ibd5be1cdb5a64708616e46e1729a16130e6afaf9
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Userspace can do a error recovery by disable/enable all
the display pipeline when get such error event like IOMMU_FAULT.
Change-Id: I4fb5bc7f6f1c04eb3559462ef5ffee5960507d2f
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
vop2_crt_debugfs_dump may call by iommu fault handler,
this may case BUG: scheduling while atomic.
Change-Id: Ia9505a3c4ded48652c1ebc63839a16e48de7a90f
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
when hpd irq coming, the dptx will access dpcd registers, but
the phy may be disabled. it need enable phy first.
Change-Id: I0a07659eafdbf5d093949d85e9f6f18651dc04ec
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
This reverts commit f14693316b.
A better solution to avoid the fifo overflow is to adjust the
config order between vop and dp, which has been applied. So
revert this commit.
Change-Id: I972ff9d92f348657421b510c992c82f0d5b4bd4a
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
There is nothing worth to do when rebooting in normal system
as the whole thing is going to be reset in a clean way. However
if the reboot process doesn't reset the anything, then reset
PCIe controller in probe would throw a glitch which could generate
a spurious irq. Work around this by disabling misc irq before rebooting.
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I7b6e53ecbce385581a6beb0333a2df320a32cc9e
Don't force reset iommu when enable vop iommu firstly on RK3576 platform
Change-Id: I4cc27d051fec1d3f6a26f0a2fc9913bb9760c892
Signed-off-by: Simon Xue <xxm@rock-chips.com>
Merge from kernel-5.10
media: rockchip: vicap skip fs/fe match detect when use smartsens sensor and work with hdr mode
media: vicap: fixed the sequence not increasing in one frame mode
media: rockchip: vicap support soft sync mode
media: rockchip: vicap support get timestamp for rtt_stream_on buffer
media: rockchip: vicap support mipi/dvp reset together below rk3588
media: rockchip: vicap fixes error of frame interval info
media: rockchip: vicap remove interrupt flags of IRQF_SHARED for rv1106/rv1103b
media: rockchip: vicap fixes error of buf update seconds in one frame interval
media: rockchip: vicap fixes lack_buf_cnt error
media: rockchip: vicap clean to_stop_dma state before start stream
media: rockchip: vicap fixes error of rtt stream on
media: rockchip: vicap add pipe stop stream to function of shutdown
media: rockchip: vicap skip direct reset when size err occurs and work in online mode
media: rockchip: vicap proc node add group info
media: rockchip: vicap: error print of mipi csi2 add base address to distinguish device
media: rockchip: vicap fixes error of wake up time in thundboot mode
media: rockchip: vicap support rtt stream on
media: rockchip: vicap make sure sequence of first frame send to isp is zero
media: rockchip: vicap rdbk_auto mode support group sync
media: rockchip: vicap add register debug info to proc node
media: rockchip: vicap support online_unite with thunderboot
media: rockchip: vicap support set csi2 quick stream on/off
media: rockchip: vicap fixes logic of thunderboot skip
media: rockchip: vicap clean fs intr state before set fs intr enable
media: rockchip: vicap use addr force update to replace dma reset for chip after rk3562
media: rockchip: vicap add complete for restart stream with aov
media: rockchip: vicap fixes soft reset error of chips after rv1103b
media: rockchip: vicap set capture mode to isp when resume one frame mode
media: rockchip: vicap remove line intr disable each frame after rk3588
media: rockchip: vicap wait fe to stop stream when stream suspend
media: rockchip: vicap remove cif-rockit init limit
media: rockchip: vicap add vblank check
media: rockchip: vicap: fastboot reserved buffer count according to isp
media: rockchip: vicap: single dev need to config toisp when resume
media: rockchip: vicap fixes null point of cur_stream
media: rockchip: vicap disable fs inf intr when stop dma capture to reduce unnecessary intr consume
media: rockchip: vicap fixes error of common dual camera aov
media: rockchip: vicap add frame skipping to ensure frame integrity when using sensor flip
media: rockchip: vicap remove limit of x_offset/y_offset
media: rockchip: vicap support rounding 2/4bit for rv1103b
media: rockchip: vicap support online hdr wrap for rv1103b
media: rockchip: vicap fixes cru rst sequence of rv1103b
media: rockchip: vicap fixes stream off issue when restart to multi frame mode
media: rockchip: rv1103b vicap support online unite
media: rockchip: vicap move toisp stop operation to toisp fs for more secure
media: rockchip: vicap fixes same error with more toisp mode
media: rockchip: vicap change work mode according to isp
media: rockchip: vicap support rv1103b
media: rockchip: vicap fixes isp timeout error
media: rockchip: vicap fixes error of multi frame mode to singgle frame
media: rockchip: vicap: rv1106 isp_unite not support change to online
media: rockchip: vicap: rv1106 unite fixes error of write toisp register
media: rockchip: vicap: rv1106 unite fix loss stream frame one frame to multi frame mode
media: rockchip: vicap support distinguish toisp on/off
media: rockchip: vicap check dev cnt acording to rkisp sd cxonnect state
media: rockchip: vicap fixes error call soft reset below rk3588
media: rockchip: vicap support change to multi frame mode during capture in one frame mode
media: rockchip: vicap add limit of rdbk_mode from app for aov
media: rockchip: vicap fixes stream loss with rockit
media: rockchip: vicap wait thunderboot ready when open video
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Icc7c03e5d15bd4ea789deaa785a4534eafd53ce9
During board verification, there is a need to test the various supported
eMMC/SD speed modes. However, since the framework chooses the best mode
supported by the card and the host controller's caps, this currently
necessitates changing the devicetree for every iteration.
Allow the various speed mode host capabilities to be modified via
debugfs in order to allow easier hardware verification. The values to
be written are the raw MMC_CAP* values from include/linux/mmc/host.h.
This is rather low-level, and these defines are not guaranteed to be
stable, but it is perhaps good enough for the intended use case.
MMC_CAP_AGGRESSIVE_PM can also be set, in order to be able to
re-initialize the card without having to physically remove and re-insert
it.
/sys/kernel/debug/mmc0# grep timing ios
timing spec: 9 (mmc HS200)
// Turn on MMC_CAP_AGGRESSIVE_PM and re-trigger runtime suspend
/sys/kernel/debug/mmc0# echo $(($(cat caps) | (1 << 7))) > caps
/sys/kernel/debug/mmc0# echo on > /sys/bus/mmc/devices/mmc0\:0001/power/control
/sys/kernel/debug/mmc0# echo auto > /sys/bus/mmc/devices/mmc0\:0001/power/control
// MMC_CAP2_HS200_1_8V_SDR
/sys/kernel/debug/mmc0# echo $(($(cat caps2) & ~(1 << 5))) > caps2
/sys/kernel/debug/mmc0# echo on > /sys/bus/mmc/devices/mmc0\:0001/power/control
/sys/kernel/debug/mmc0# grep timing ios
timing spec: 8 (mmc DDR52)
Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
Link: https://lore.kernel.org/r/20230929-mmc-caps-v2-2-11a4c2d94f15@axis.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
(cherry picked from commit ff369d7b98426abf7bccb0722253f5d4490f3c17)
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I6ea2fc093234785e05d05128556c60ef42da02a4