525.60.11

This commit is contained in:
Andy Ritger
2022-11-28 13:39:27 -08:00
parent 758b4ee818
commit 5f40a5aee5
113 changed files with 1408 additions and 723 deletions

View File

@@ -203,6 +203,8 @@ namespace DisplayPort
virtual bool getSDPExtnForColorimetrySupported() = 0;
virtual bool getPanelFwRevision(NvU16 *revision) = 0;
virtual bool getIgnoreMSACap() = 0;
virtual AuxRetry::status setIgnoreMSAEnable(bool msaTimingParamIgnoreEn) = 0;

View File

@@ -381,6 +381,8 @@ namespace DisplayPort
virtual bool getSDPExtnForColorimetrySupported();
virtual bool getPanelFwRevision(NvU16 *revision);
virtual bool isPowerSuspended();
virtual void setPanelPowerParams(bool bSinkPowerStateD0, bool bPanelPowerStateOn);

View File

@@ -1043,6 +1043,46 @@ bool DeviceImpl::getSDPExtnForColorimetrySupported()
return (this->bSdpExtCapable == True);
}
bool DeviceImpl::getPanelFwRevision(NvU16 *revision)
{
NvU8 fwRevisionMajor = 0;
NvU8 fwRevisionMinor = 0;
unsigned size = 0;
unsigned nakReason = NakUndefined;
if (!revision)
{
return false;
}
*revision = 0;
//
// On faked mux devices, we cannot check if the device has
// the capability as we don't have access to aux.
//
if (this->isFakedMuxDevice())
{
return false;
}
if (AuxBus::success != this->getDpcdData(NV_DPCD14_FW_SW_REVISION_MAJOR,
&fwRevisionMajor, sizeof(fwRevisionMajor), &size, &nakReason))
{
return false;
}
if (AuxBus::success != this->getDpcdData(NV_DPCD14_FW_SW_REVISION_MINOR,
&fwRevisionMinor, sizeof(fwRevisionMinor), &size, &nakReason))
{
return false;
}
*revision = (fwRevisionMajor << 8) | fwRevisionMinor;
return true;
}
bool DeviceImpl::isPowerSuspended()
{
bool bPanelPowerOn, bDPCDPowerStateD0;