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>
19 lines
518 B
C
19 lines
518 B
C
/* SPDX-License-Identifier: MIT */
|
|
#ifndef __NVIF_CONN_H__
|
|
#define __NVIF_CONN_H__
|
|
#include <nvif/object.h>
|
|
struct nvif_disp;
|
|
|
|
struct nvif_conn {
|
|
struct nvif_object object;
|
|
};
|
|
|
|
int nvif_conn_ctor(struct nvif_disp *, const char *name, int id, struct nvif_conn *);
|
|
void nvif_conn_dtor(struct nvif_conn *);
|
|
|
|
#define NVIF_CONN_HPD_STATUS_UNSUPPORTED 0 /* negative if query fails */
|
|
#define NVIF_CONN_HPD_STATUS_NOT_PRESENT 1
|
|
#define NVIF_CONN_HPD_STATUS_PRESENT 2
|
|
int nvif_conn_hpd_status(struct nvif_conn *);
|
|
#endif
|