From 2c11c5db5416b92e39c29fdc7f347bef93f0ec10 Mon Sep 17 00:00:00 2001 From: Aaron Erhardt Date: Thu, 19 Feb 2026 15:57:48 +0100 Subject: [PATCH] displayport: use correct buffer size in setOuiSource Don't send more bytes than necessary to avoid problems with displays that only accept the exact amount of bytes defined in the DisplayPort standard. --- src/common/displayport/src/dp_configcaps.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/common/displayport/src/dp_configcaps.cpp b/src/common/displayport/src/dp_configcaps.cpp index 893971937..709b5d486 100644 --- a/src/common/displayport/src/dp_configcaps.cpp +++ b/src/common/displayport/src/dp_configcaps.cpp @@ -666,7 +666,7 @@ AuxRetry::status DPCDHALImpl::setOuiSource NvU8 chipRevision ) { - NvU8 ouiBuffer[16]; + NvU8 ouiBuffer[10] = {0}; // The first 3 bytes are IEEE_OUI. 2 hex digits per register. ouiBuffer[0] = (ouiId >> 16) & 0xFF; @@ -691,9 +691,6 @@ AuxRetry::status DPCDHALImpl::setOuiSource } ouiBuffer[9] = chipRevision; - for (int i = 0xA; i<=0xF; ++i) - ouiBuffer[i] = 0; - return bus.write(NV_DPCD_SOURCE_IEEE_OUI, &ouiBuffer[0], sizeof ouiBuffer); }