And use it to bail early in DP detection and avoid futile AUX transactions. This could be used on other connector types too in theory, but it's not something we've ever done before and I'd rather not risk breaking working systems without looking into it more closely. It's safe for DP though. We already do this by checking an AUX register that contains HPD status and aborting the transaction. However, this is much deeper in the stack - after taking various mutexes, poking HW for no good reason, and making a mess in debug logs. Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Reviewed-by: Lyude Paul <lyude@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
24 lines
416 B
C
24 lines
416 B
C
/* SPDX-License-Identifier: MIT */
|
|
#ifndef __NVIF_IF0011_H__
|
|
#define __NVIF_IF0011_H__
|
|
|
|
union nvif_conn_args {
|
|
struct nvif_conn_v0 {
|
|
__u8 version;
|
|
__u8 id; /* DCB connector table index. */
|
|
__u8 pad02[6];
|
|
} v0;
|
|
};
|
|
|
|
#define NVIF_CONN_V0_HPD_STATUS 0x00000000
|
|
|
|
union nvif_conn_hpd_status_args {
|
|
struct nvif_conn_hpd_status_v0 {
|
|
__u8 version;
|
|
__u8 support;
|
|
__u8 present;
|
|
__u8 pad03[5];
|
|
} v0;
|
|
};
|
|
#endif
|