Adding:
PCIE_EP_MMAP_RESOURCE_USER_MEM,
PCIE_EP_MMAP_RESOURCE_RK3568_RC_DBI,
PCIE_EP_MMAP_RESOURCE_RK3588_RC_DBI,
Change-Id: I69facbb8b268516c3ab68f70f15650b214649c55
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
Some PCIe root port uses combophy but combo phy can be used by
other type of controllers. If someone enable phy for both of two
controllers, it should break the s2r and hard to debug. Validate
this kind of bug and cast an error like this:
[ 10.698225] naneng-combphy fee20000.phy: expected mode is PCIe, but current mode is USB3
[ 10.698232] rk-pcie fe180000.pcie: PHY is reused by other controller, check the dts!
[ 10.698244] PM: dpm_run_callback(): rockchip_dw_pcie_suspend+0x0/0x410 returns -22
[ 10.698266] PM: Device fe180000.pcie failed to suspend async: error -22
[ 10.902134] PM: pm_system_irq_wakeup: 166 triggered fsc_interrupt_int_n
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: Icc65c9d19ef2bcb54bfb3665d4c012f8ac0e710e
This commit adds demo dts about the various possible uses of LVDS:
1. Single channel LVDS
2. Dual LVDS
3. Two Video Port use two separate single channel LVDS
4. One Video Port use two separate single channel LVDS
For case 1, the video port outputs as follows:
VP1 -> LVDS0 or VP1 -> LVDS1
or VP2 -> LVDS0 or VP2 -> LVDS1
For case 2, the video port outputs as follows:
VP1 -> LVDS0, VP1 -> LVDS1
or VP2-> LVDS0, VP2-> LVDS1
For case 3, the video port outputs as follows:
VP1 -> LVDS0, VP2 -> LVDS1
or VP1 -> LVDS1, VP2 -> LVDS0
For case 4, the video port outputs as follows:
VP1 -> LVDS0, VP1 -> LVDS1
or VP2-> LVDS0, VP2-> LVDS1
Change-Id: I426ba9033863cc1442834daf8fa63aaa472274c5
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
Ensure that cs io is in the input state in initial progress.
Change-Id: I808994ec14e3f4ab1c580f2f07e3e41b444bcc2e
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
the dsi2 controller can be select work in Munual or
Automatic mode, by writing in MANUAL_MODE_CFG register.
the Auto-Calculation mode has the following advantages:
1.Eliminates the need for the user to configure a set of registers
2.Makes the configuration routine easier, and the controller is less
prone to undesired behaviors
3.Allows IPI frames to change dynamically with the controller adapting
the output frames
Change-Id: I00dfad82f9d5aa27abc4a2b99471ae4d6412d1b0
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
When resetting an instance, the buffer generation ID will be changed,
but when receiving images, the ID will be used to determine whether
it is an expired buffer. Therefore, the ID generator should be placed
in the instance instead of the device.
Change-Id: I707403dd22dce784dee07654d7333a02f5f35f43
Signed-off-by: Rimon Xu <rimon.xu@rock-chips.com>
Allow the DRM ignore some permission issues.
Change-Id: I8e122ebeb1fc103b0bb5b9334cbb89ebf5a4334d
Signed-off-by: Jianlong Wang <jianlong.wang@rock-chips.com>
Take a buffer from pstore buffer for minidump share memory
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: If201f09d771b612258d703fa567813976f7c99f2
A very similar case on amdgpu_vkms:
commit 826c1e923b ("drm/amdgpu/vkms: relax timer deactivation by
hrtimer_try_to_cancel")
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: I0692cd2c4ad3e3f090c0df040537995f99c2fcff
Before this commit, because the crtc is not initialized yet, if use the drm_crtc_mask(crtc) at
vop2_cursor_plane_init(), the cursor plane possible_crtcs will always be 1 for vp0.
After this commit, the plane possible_crtcs will be:
if (disable_win_move && vop2)
possible_crtcs = BIT(registered_num_crtcs);
else if (vop3)
possible_crtcs = win->possible_crtcs from reg_data;
else
possible_crtcs =(1 << vop2_data->nr_vps) - 1;//all crtc
Fixes: 1a6b7e170f1e ("drm/rockchip: vop3: add support rk3528")
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I7d23aab328962c1a77f6d0c11c5f81731bdceb80
1.Add crtc property IS_VIRTUAL and SOC_ID. HWC needs
property IS_VIRTUAL to identify the virtual crtc,
and the property SOC_ID to confirm the platform.
2.Add support for resolutions:
1280x720 720x1280
1920x1080 1080x1920
2560x1440 1440x2560
3840x2160 2160x3840
4096x2160 2160x4096
with frame rate 30/60/90/120/144.
3.Fix the process of releasing resources in vvop_unbind().
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I5cbd8ce4cb0d55023fb36426ff3a79bf0ae25080