aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorMichael Strauss <[email protected]>2024-05-07 12:03:15 -0400
committerAlex Deucher <[email protected]>2024-06-14 16:18:55 -0400
commit37256027b45fe48d1cd23954db90d1c53401e29a (patch)
tree562b307fddba7949fa1e3e2619b8e7c5beb8ec45 /lib/test_fortify/write_overflow-strncpy-src.c
parent2d62bb450ed1846ffdaff7072347e40fb4908cb2 (diff)
drm/amd/display: Attempt to avoid empty TUs when endpoint is DPIA
[WHY] Empty SST TUs are illegal to transmit over a USB4 DP tunnel. Current policy is to configure stream encoder to pack 2 pixels per pclk even when ODM combine is not in use, allowing seamless dynamic ODM reconfiguration. However, in extreme edge cases where average pixel count per TU is less than 2, this can lead to unexpected empty TU generation during compliance testing. For example, VIC 1 with a 1xHBR3 link configuration will average 1.98 pix/TU. [HOW] Calculate average pixel count per TU, and block 2 pixels per clock if endpoint is a DPIA tunnel and pixel clock is low enough that we will never require 2:1 ODM combine. Cc: [email protected] # 6.6+ Reviewed-by: Wenjing Liu <[email protected]> Acked-by: Hamza Mahfooz <[email protected]> Signed-off-by: Michael Strauss <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions