Commit Graph

232 Commits

Author SHA1 Message Date
yujun.zhang 7de96f728a drm: refine shutdown callback [1/1]
PD#SWPL-144894

Problem:
Still running commit and wait vblank ioctl
cause shutdown not to work.

Solution:
1.drm_wait_vblank_ioctl can suspend on wait vblank,
so use helper shutdown to disable KMS and disable irq.
2.drm_wait_vblank_ioctl can also suspend on lock before
waiting vblank, so force drm_device.num_crtc=0 to prevent it.
3.running commit can be suspended by blocking the atomic ioctl
thread and commit thread. For commit thread, flush worker of
thread and stop it.

Verify:
yocto + S905y4
android + s905y4
yocto + t7c
android + t7c

Test:
DRM-OSD-30

Change-Id: Id7c30e3afbcc83051ef4d1c4933c8e0140aebfd1
Signed-off-by: yujun.zhang <yujun.zhang@amlogic.com>
2024-04-30 02:35:16 -07:00
yujun.zhang 6fcb8bf6a4 drm: use gfcd only for S7D [1/1]
PD#SWPL-165984

Problem:
S7D uses different PATH_MISC_CTRL definition from other platforms,
and causes rdma issue in case of multiple displays in other platforms.

Solution:
use gfcd only for S7D.

Verify:
t7c

Test:
DRM-OSD-2

Change-Id: Ie13eff1c9e330340e2f4c21d9a90f72500c373f1
Signed-off-by: yujun.zhang <yujun.zhang@amlogic.com>
2024-04-28 22:40:16 -07:00
Ao Xu af701fddc2 drm: add drm_policy_mask property to report hardware feature [1/1]
PD#SWPL-163920

Problem:
hdr before osdblend, it will cause UI flashing when switch composites
between device and gpu for multi-layers

Solution:
add drm_policy_mask property to report hardware feature
then hwc will not exchange device and client composite repeatedly

Verify:
s5 s7d

Test:
DRM-OSD-59

Change-Id: I8c717e180c4962ab8f422efa607e4d63d298e462
Signed-off-by: wenlong.zhang <wenlong.zhang@amlogic.com>
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2024-04-27 23:44:19 -07:00
linfang.zhao 3f48fc6137 drm: move dummy data setting from video update to crtc_flush [1/1]
PD#SWPL-163672

Problem:
set bg color at anytime

Solution:
move dummy data setting from video update to crtc_flush

Verify:
zapper s1a

Test:
DRM-OSD-20

Change-Id: I61baee791fe2024945f8bc3e621ee01ef13e0831
Signed-off-by: linfang.zhao <linfang.zhao@amlogic.com>
2024-04-23 05:54:03 -07:00
Ao Xu 2e7c288fc7 drm: fix osd proc in hsize not correct issue [1/1]
PD#SWPL-160146
PD#SWPL-163250
PD#SWPL-162538

Problem:
osd1 has the even width, osd3 has the odd width
it will lead to osd1 flicker.

Solution:
osd proc in hsize should be two times of real hsize

Verify:
s5

Test:
DRM-OSD-9, DRM-OSD-50

Change-Id: I65a21ead5b435944228ce9108b2fc54da09f5b63
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2024-04-21 20:44:32 -07:00
yujun.zhang d23ac42d5f drm: fix osd display abnormal [1/1]
PD#SWPL-157417

Problem:
hdr in size is incorrect

Solution:
fill hdr in size according osd source input

Verify:
t7c

Test:
DRM-OSD-57

Change-Id: I79320514261db0dc35053a9e0a3b8474fdbb640f
Signed-off-by: yujun.zhang <yujun.zhang@amlogic.com>
2024-04-19 07:58:00 -07:00
wenlong.zhang b3436bfa11 drm: change afbc format [1/1]
PD#SWPL-163150

Problem:
support DRM_FORMAT_ABGR1010102

Solution:
support DRM_FORMAT_ABGR1010102

Verify:
S7D

Test:
DRM-OSD-6

Change-Id: I20a2b0080dd99baafd9fff4b0c6a9a32a99df58a
Signed-off-by: wenlong.zhang <wenlong.zhang@amlogic.com>
2024-04-17 19:31:22 +08:00
wenlong.zhang 00c90dfb33 drm: fix osd display abnormal [1/1]
PD#SWPL-164125

Problem:
hdr in size is incorrect

Solution:
fill hdr in size according osd source input

Verify:
s7d

Test:
DRM-OSD-57

Change-Id: I92ab6c424ba26a7f52960573a51043e2fd450692
Signed-off-by: wenlong.zhang <wenlong.zhang@amlogic.com>
2024-04-17 19:31:22 +08:00
wenlong.zhang 9c1caac616 drm: S7D Silicon bringup [1/1]
PD#SWPL-163100

Problem:
fix issue

Solution:
1.dummy_l clk choose encp;
2.gfcd afbc rgb888 enable alpha replace;
3.remove pxp_mode parameter from dts;
4.enable yuv_trans for fix android afbc display abnormal

Verify:
s7d

Test:
DRM-OSD-15

Change-Id: I0966386903f54f11232ce0251322ddac0b0205a6
Signed-off-by: wenlong.zhang <wenlong.zhang@amlogic.com>
2024-04-17 19:31:21 +08:00
wenlong.zhang 560bdbdbac drm: s7d bringup & support gfcd [1/1]
PD#SWPL-147645

Problem:
s7d bringup & support gfcd

Solution:
s7d bringup & support gfcd

Verify:
s7d

Test:
DRM-OSD-138

Change-Id: I6e8f268f0fa42a6906f18a21d923ec059b749954
Signed-off-by: wenlong.zhang <wenlong.zhang@amlogic.com>
2024-04-17 19:31:20 +08:00
congyang.huang 82770393a7 drm: the bandwidth of t3x osd2 whiteboard is abnormal [1/1]
PD#SWPL-161908

Problem:
due to obtaining the init value of fifo before
initializing the mif register, the bits value of
fifo_crtl are incorrect, and the bandwidth of t3x
osd2 whiteboard is twice the theoretical value

Solution:
first initialize the fifo register and then use the
initial value, the value of the fifo_crtl bits is correct

Verify:
t3x dual

Test:
DRM-OSD-56

Change-Id: Icd24e5e2b36e46bb78414c0ededfee981d52b707
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-04-16 22:06:09 -07:00
congyang.huang c7983badd4 drm: dummy_panel connector drm_display_mode should match lcd's timing [1/1]
PD#SWPL-158147

Problem:
not hardcode dummy_panel timing

Solution:
get vinfo2 timing and set for dummy_panel

Verify:
txhd2

Test:
DRM-OSD-55

Change-Id: I6b899edfc9445f880cb217d6b1e96d63acbdd249
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-04-15 00:35:53 -07:00
Ao Xu 3e79ef53f5 drm: add get_vrr_range function for lcd connector [1/1]
PD#SWPL-156902

Problem:
hwc need get lcd connector's vrr range info

Solution:
add get_vrr_range function for lcd connector

Verify:
t3x

Test:
DRM-LCD-1

Change-Id: I562929b06bdfcfc4bb514b2d67e93e84a6925814
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2024-04-12 16:39:52 +08:00
Ao Xu 8c74df0390 drm: add force_slice parameter [1/1]
PD#SWPL-161420

Problem:
t3x mode will change from 48-120hz
it will lead to garbage screen

Solution:
add force_slice parameter

Verify:
t3x-bc302

Test:
DRM-OSD-10

Change-Id: I7134c628dc412bf43a5419c8f85782a6e414b4bf
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2024-04-10 23:41:55 -07:00
haitao.liu c20b47558c vdin: fix failed to compile zapper issue [1/1]
PD#SWPL-161512

Problem:
mk_zapper32.sh execution failed

Solution:
resolve code dependencies

Verify:
s1a

Test:
compile pass

Change-Id: Id2453a4414b768580ced0a57453dd29609fed86b
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2024-04-09 13:44:59 -07:00
Wenjie Qiao 8d5a638b93 hdmitx: set frac 0 when brr mode [1/1]
PD#SWPL-163844

Problem:
switch to 59.94hz, not set 60hz mode when qms enable
because frac mode

Solution:
set frac 0 when brr mode

Verify:
s7d

Test:
DRM-TX-75

Change-Id: I69fc38ffee456d2a917f586e7ed04dad3aa8a22d
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2024-04-07 21:54:09 -07:00
linfang.zhao d0fd43f239 drm: sync drm code from sandia to s7&trunk [1/1]
PD#SWPL-145614

Problem:
sync drm code from sandia to s7&trunk

Solution:
sync drm code from sandia to s7&trunk

Verify:
androidU_s5/androidU_T3X-BDS/androidU_s7/RDK_SC2/yocto_sc2

Test:
DRM-OSD-27
DRM-OSD-33

Change-Id: I7fddcabf1a901419fb4b79680bee3e6246180380
Signed-off-by: linfang.zhao <linfang.zhao@amlogic.com>
2024-04-07 21:53:08 -07:00
congyang.huang 9dba6f4574 drm: support vrr range debugfs [1/1]
PD#SWPL-162048

Problem:
the value of the vrr range debugfs node is incorrect

Solution:
update the value of vrr range to the debugfs node in get_modes

Verify:
t7

Test:
DRM-OSD-16

Change-Id: Ie465fabc761f23beaca406c8bb60b743f173c3bb
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-04-03 06:04:58 -07:00
linfang.zhao c52d22d045 drm: conflict between drm and dv when write afbc top ctrl reg [1/1]
PD#SWPL-153008

Problem:
conflict between drm and dv when write afbc top ctrl reg

Solution:
write osd_axi_sel bit when update_state func come firstly,
and the bit only set mali_afbcd_data one time.

Verify:
T7C

Test:
DRM-OSD-6

Change-Id: Ib05927b147f524862cfa20070cc0474dd0dc5854
Signed-off-by: linfang.zhao <linfang.zhao@amlogic.com>
2024-04-02 00:39:15 -07:00
mingyang.he cf15989a9f drm: kasan failed for slab-out-of-bounds [1/1]
PD#SWPL-151540

Problem:
kasan failed
cat/echo sysfs osd node crash in s5
cat fbdump return zero size file in s5

Solution:
reset BLOCK_ID_MAX with 32
sysfs node should according to vpu block by index
set correct plane index

Verify:
s5, t5m

Test:
DRM-OSD-17

Change-Id: I02094c9044b172af46ab9b5bd5688a12f18ce96a
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2024-04-01 04:39:02 -07:00
yahui.liu 8f9e15f3c3 hdmitx: [hpd] add system time id in hdmitx state [1/1]
PD#SWPL-158042

Problem:
drm module automic-check and automic-enable use differnet hpd status
information when hdmitx hotplug

Solution:
[hpd] add system timein hdmitx state

Verify:
S5/SC2

Test:
DRM-TX-103

Change-Id: Id0f37cf01c5266a720f2881ee8cd9fab274b79b9
Signed-off-by: yahui.liu <yahui.liu@amlogic.com>
2024-03-28 19:44:59 -07:00
congyang.huang 1679fbd1a5 drm: fix afbc dump reg issue [1/1]
PD#SWPL-157367

Problem:
afbc dump reg error

Solution:
soc > T7, one afbc core supports multiple afbc planes,
configure it when init afbc core

Verify:
t7c, sc2, s5

Test:
DRM-OSD-6

Change-Id: I94cefc5948dc22d25703002e537e389e9a41a65d
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-03-25 03:13:03 -07:00
mingyang.he 7fe33c7234 drm: rgba4444 displaying transparent in t3x [1/1]
PD#SWPL-159921

Problem:
when rgba4444 pixel format's alpha is largest,
the displaying is transparent

Solution:
Set the correct mode so that the color component is padding with
most-left bits on the right instead of 0 when it expands to 8 bits

Verify:
t3x

Test:
DRM-OSD-7

Change-Id: I421f130ca3c82a99fd9557a68dcaf21b6d0e4f95
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2024-03-19 07:57:01 -07:00
yujun.zhang 1fc9e7e50c drm: add plane pixel blend parameter [1/1]
PD#SWPL-158698

Problem:
Plane pixel blend parameter is needed in some cases.

Solution:
Add module parameter.

Verify:
SC2, T7c

Test:
DRM-OSD-147

Change-Id: I7b7c99e185087dfdc8c647ab70e71b9718c799ef
Signed-off-by: yujun.zhang <yujun.zhang@amlogic.com>
2024-03-18 07:55:01 -07:00
wenlong.zhang 03b7b807dc drm: fix osd2 shift after osd1 scaling [1/1]
PD#SWPL-160107

Problem:
if osd1 scaling firstly, and then osd2 scaling different from
osd1, osd2 postion will be shift.

Solution:
clean last pipeline status of scaling

Verify:
SC2

Test:
DRM-OSD-8

Change-Id: Ie2363fd5afcd7341a6589dfc11d1c668951f88c8
Signed-off-by: wenlong.zhang <wenlong.zhang@amlogic.com>
2024-03-12 03:57:02 -08:00
robin.zhu d50290169a drivers: resolve config dependence [1/2]
PD#SWPL-157030

Problem:
failed to build when disable config

Solution:
resolve code dependence of kernel config

Verify:
T5D

Test:
DRM-OSD-1

Change-Id: I1dd2b0d4b9928a2f468bd7451a0fd6d6a7f0f51d
Signed-off-by: robin.zhu <robin.zhu@amlogic.com>
2024-03-07 22:49:21 -08:00
wenlong.zhang 3b57eefc55 drm: fix UI is not clear enough after scaling [1/1]
PD#SWPL-102815

Problem:
The scaling algorithm needs to be optimized

Solution:
scaler0_block input size should refer to the
source of osd0, and postblend hstart&vstart usd the dst_x&dst_y of
osd0.

Verify:
s4

Test:
DRM-OSD-8

Change-Id: Ic3ffddbfa92ff2de0cf3345fb6a970bb842b413c
Signed-off-by: wenlong.zhang <wenlong.zhang@amlogic.com>
2024-02-29 22:53:14 -08:00
congyang.huang f4c9f6c8f1 drm: fix osdblend crash for t3x [1/1]
PD#SWPL-158272

Problem:
when only osd2 is displayed, osdblend will crash

Solution:
the index of osd is not equal to the index
of the structure array of osdblend_t3x_din

Verify:
t3x

Test:
DRM-OSD-9

Change-Id: I4ed287beab5292538cf20f268c2d4040e6551ff8
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-02-29 22:03:38 -08:00
congyang.huang f18805dc72 drm: fix qms interlace mode issue [1/1]
PD#SWPL-155808

Problem:
connect LG QMS TV, switch interlace mode display half screen

Solution:
interlace mode not support qms, so add interlace judgement to qms

Verify:
t7c

Test:
DRM-OSD-5

Change-Id: I8bad581f1d36eb28aebd445a7b2f48b850821b83
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-02-29 00:51:13 -08:00
wenlong.zhang 8f15390304 drm: fix hdr_cap can not change [1/1]
PD#SWPL-158247

Problem:
hdr_cap parameter is static type, which will return incorrect value

Solution:
remove static type of hdr_cap parameter

Verify:
SC2

Test:
DRM-TX-100

Change-Id: Ia41b4d7b88dbe595bd90c30c163bc07c4b32663e
Signed-off-by: wenlong.zhang <wenlong.zhang@amlogic.com>
2024-02-22 23:55:34 -07:00
Ao Xu b2e9135b64 drm: fix afbc block dump register crash issue [1/1]
PD#SWPL-157664

Problem:
adb bugreport crash due to afbc block dump register crash

Solution:
fix invalid afbc register for afbc block register dump

Verify:
ohm

Test:
DRM-OSD-32

Change-Id: Iea61e1f06afaa1af03c61718e4e62115c432801f
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2024-02-22 05:55:40 -07:00
linfang.zhao 3f0746ba3f drm: conflict between drm and dv when write afbc top ctrl reg [1/1]
PD#SWPL-153877

Problem:
conflict between drm and dv when write afbc top ctrl

Solution:
drm get dv status and write corresponding reg bit

Verify:
T7C

Test:
DRM-OSD-6

Change-Id: I45e8f9c86b7ca63532d642c268e5e5dba866fca0
Signed-off-by: linfang.zhao <linfang.zhao@amlogic.com>
2024-02-12 01:51:12 -07:00
congyang.huang c61a22e879 drm: hdmitx validate mode error [1/1]
PD#SWPL-151562

Problem:
validate mode and attr error on recovery

Solution:
modify test_attr and decide_attr interface functions

Verify:
t7c s5

Test:
DRM-OSD-5

Change-Id: I080a453f4819ed71d09a2b062840a1bc7bcf7ef6
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-02-04 07:57:29 -07:00
mingyang.he d3ea48b673 drm: use vfree instead of kfree in meson_gem_prime_export [1/1]
PD#SWPL-154857

Problem:
crash when play the video is protected by digital rights management

Solution:
modify kfree to vfree

Verify:
sc2

Test:
DRM-OSD-3

Change-Id: Ifff893726965e12fcf1e07a0fb87af5be0d11a8d
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2024-02-02 06:02:12 -07:00
congyang.huang ada3c492e9 drm: fix display issues during startup and afbc dump reg issue [1/1]
PD#SWPL-150255

Problem:
issues with flashing and black screens during the startup
afbc dump reg error

Solution:
1.the vpp0 not init and write the vpp1 reg
2.distinguish crtcs in postblend_disable
3.dump the correct address of the afbc reg
4.not dump osdblend reg due to txhd2 no osdblend

Verify:
t3x dual

Test:
DRM-OSD-9
DRM-OSD-11

Change-Id: I8b81880fda51fed3718624d82a764ac93423da06
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-02-02 06:01:18 -07:00
congyang.huang 6443766f46 drm: fix osdblend reg_dump and direct render black screen issues [1/1]
PD#SWPL-156112

Problem:
txhd2 not have osdblend
osd2_bld_src_ctrl did not clear the bit when osd2 was disabled

Solution:
not dump txhd2 osdblend reg
clear osd2_bld_src_ctrl when osd2 was disabled

Verify:
txhd2

Test:
DRM-OSD-9
DRM-OSD-11

Change-Id: I5aefb58eb182886697081174f61429244e575549
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-02-01 04:11:39 -07:00
Ao Xu ee10c78482 drm: add force update property for cvbs connector [1/1]
PD#SWPL-155059

Problem:
hwc depend on mode change uevent to unblank display
drm did not set the same mode.

Solution:
add force update property for cvbs connector
drm will do a mode change forcely

Verify:
ohm

Test:
DRM-CVBS-2

Change-Id: I2ab6aac005ca1bbfb3b3ae241eb98629bcd59f75
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2024-02-01 02:05:15 -07:00
Ao Xu 647549be79 drm: add back synchronization between encoder check and edid parse [1/1]
PD#SWPL-96632

Problem:
hdmitx_common_validate_format_para has no mutex lock protect.
when hdmitx plug event happen in encoder atomic check stage,
it will lead to info mismatch

Solution:
add hdmitx_common_validate_mode_locked api which has mutex lock
to protect the encoder check flow.
Will revert it when we move edid parering to drm.

Verify:
ah212

Test:
DRM-OSD-5

Change-Id: I7b4c98fac8378133166100f9d22ddcfe0af66407
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2024-02-01 00:43:25 -07:00
wenlong.zhang 0716b65134 drm: only setting background by property [1/1]
PD#SWPL-155913

Problem:
any video commit will set background function

Solution:
only setting background by property

Verify:
sc2

Test:
DRM-OSD-145

Change-Id: I2df668789259e78c0d62d853a83329affc59048b
Signed-off-by: wenlong.zhang <wenlong.zhang@amlogic.com>
2024-01-31 04:53:39 -07:00
mingyang.he e6fb3ab4da drm: s1a remove debugfs [1/1]
PD#SWPL-155132

Problem:
sysfs and debugfs use same code to write reg

Solution:
remain sysfs write reg func

Verify:
s1a

Test:
DRM-OSD-27

Change-Id: I43b7ce9496d245b43b22da4530c0436ea24893b4
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2024-01-31 02:09:09 -07:00
mingyang.he 8d6a204093 drm: postpone osd write rdma reg 1 vsync [1/1]
PD#SWPL-148385

Problem:
video and ui disappear when ui quit after playing video

Solution:
make mif and video write reg in the same time

Verify:
t7

Test:
DRM-OSD-11

Change-Id: I9d16bac1c2da30e908d849b41f1865e441d70a74
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2024-01-29 02:08:31 -07:00
mingyang.he 60ad8040bb drm: set osd pixel formats for s7 [1/1]
PD#SWPL-135805

Problem:
set osd pixel formats for s7

Solution:
set osd pixel formats for s7

Verify:
s7

Test:
DRM-OSD-7

Change-Id: I286ea5ad20dd951db9a768cddb2367dd67f6457b
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2024-01-23 04:50:37 -07:00
Ao Xu 2bb724a658 drm: add sysfs node to set display mode [1/1]
PD#SWPL-141593

Problem:
/sys/class/display/mode is not used anymore
need add a new sysfs node to do modesetting

Solution:
add sysfs node to set display mode

Verify:
ohm/t7c

Test:
DRM-OSD-122

Change-Id: Ie897a1cfdf1a0f2574fd14f6576b2bc1fb377c1a
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2024-01-23 04:49:25 -07:00
congyang.huang bff64a20b0 drm: remove hdr&dv_bypass workaround for s7 [1/1]
PD#SWPL-152450

Problem:
need remove workaround for drm osd display

Solution:
uboot has been fixed, the kernel can remove workaround

Verify:
s7

Test:
DRM-OSD-96

Change-Id: I16c53637b1abe183d4e8ad94c29e14fc5563a596
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-01-22 12:48:45 +08:00
mingxiu.sun 1ba84474aa vdin1: s7 pxp bringup [1/1]
PD#SWPL-135801

Problem:
s7 pxp bringup vdin

Solution:
vdin Read/write register activation

Verify:
s7 pxp

Test:
s7 pxp

Change-Id: I6399d6d4149da7e232c30e31937c22a82194fce8
Signed-off-by: mingxiu.sun <mingxiu.sun@amlogic.com>
2024-01-22 12:48:43 +08:00
mingyang.he 5964444dbf drm: ptm s7 drm bringup [1/1]
PD#SWPL-135805

Problem:
need drm support for s7 bringup

Solution:
add drm support for s7 bringup

Verify:
ptm

Test:
DRM-OSD-96

Change-Id: I28960a8ccb75240b8abbae2ee343f412260e9de8
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2024-01-22 12:48:43 +08:00
congyang.huang 8884d8e62a drm: not write dv bypass bits in drm [1/1]
PD#SWPL-147709

Problem:
burn dovi.ko, the color display abnormally

Solution:
uboot and dv write dv bits, so drm should not init it

Verify:
t7c

Test:
DRM-OSD-145

Change-Id: I79355c657ba672cafd8fa57c97160e65e053b30a
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-01-18 02:51:12 -07:00
congyang.huang b4663eb478 drm_hdmitx: The refresh rate of 576i and 480i are incorrect [1/1]
PD#SWPL-138840

Problem:
Incorrect refresh rates for 576i and 480i

Solution:
Divide the clock of mode by 2

Verify:
BG201

Test:
DRM-OSD-119

Change-Id: I8ab37a30753db9e428ecbd58a26ea1e37e6cfd44
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-01-17 04:57:11 -07:00
mingyang.he a6ca4ac450 drm: use vmalloc instead of kmalloc [1/1]
PD#SWPL-62336

Problem:
the struct for drm mush larger than normal so need appropriate
method of alloc memory

Solution:
use vmalloc instead of kmalloc

Verify:
ohm

Test:
DRM-OSD-143

Change-Id: If680bd0ed8b81e730dfc77ebe3531db0474b52d3
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2024-01-15 04:34:09 -07:00
mingyang.he 01d8a262de drm: 5.15 typo check [1/1]
PD#SWPL-103513

Problem:
typo check fail

Solution:
modify typo

Verify:
ohm

Test:
DRM-OSD-36

Change-Id: Ib1c878bbda4f6224f6f35aca9a43ae48f52443e5
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2024-01-15 04:34:01 -07:00