mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-10 20:09:56 +00:00
[Why] HDCP locality check has strict timing requirements, currently broken due to reliance on msleep which does not guarantee accuracy. The PR moves the write-poll-read sequence into DMUB using new generic Fused IO interface, where the timing accuracy is greatly improved. New flow is enabled using DCN resource capability bit (none for now), or using a debug flag. [How] * Extended mod_hdcp_config with new function for requesting DMUB to execute a sequence of fused I2C/AUX commands and synchronously wait until an outbox reply arrives or a timeout expires. * If the timeout expires, send an abort to DMUB. * Update HDCP to use the DMUB for locality check if supported. * Add DC_HDCP_LC_FORCE_FW_ENABLE and DC_HDCP_LC_ENABLE_SW_FALLBACK. * Make the first enable new flow regardless of resource capabilities. * Make the second enable fallback to old SW flow. * Clean up makefile source file listings for easier updates. Reviewed-by: Alvin Lee <alvin.lee2@amd.com> Signed-off-by: Dominik Kaszewski <dominik.kaszewski@amd.com> Signed-off-by: Roman Li <roman.li@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
32 lines
704 B
C
32 lines
704 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright 2025 Advanced Micro Devices, Inc.
|
|
*/
|
|
|
|
#ifndef __DC_FUSED_IO_H__
|
|
#define __DC_FUSED_IO_H__
|
|
|
|
#include "dc.h"
|
|
#include "mod_hdcp.h"
|
|
|
|
bool dm_atomic_write_poll_read_i2c(
|
|
struct dc_link *link,
|
|
const struct mod_hdcp_atomic_op_i2c *write,
|
|
const struct mod_hdcp_atomic_op_i2c *poll,
|
|
struct mod_hdcp_atomic_op_i2c *read,
|
|
uint32_t poll_timeout_us,
|
|
uint8_t poll_mask_msb
|
|
);
|
|
|
|
bool dm_atomic_write_poll_read_aux(
|
|
struct dc_link *link,
|
|
const struct mod_hdcp_atomic_op_aux *write,
|
|
const struct mod_hdcp_atomic_op_aux *poll,
|
|
struct mod_hdcp_atomic_op_aux *read,
|
|
uint32_t poll_timeout_us,
|
|
uint8_t poll_mask_msb
|
|
);
|
|
|
|
#endif // __DC_FUSED_IO_H__
|
|
|