Skip to content

Commit 34165d8

Browse files
Lucas BerthouAndroid (Google) Code Review
authored andcommitted
Merge "SF: passing link training failure up to DM" into main
2 parents 5cafdd7 + 0d18823 commit 34165d8

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

services/surfaceflinger/SurfaceFlinger.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2268,6 +2268,19 @@ void SurfaceFlinger::onComposerHalHotplugEvent(hal::HWDisplayId hwcDisplayId,
22682268
return;
22692269
}
22702270

2271+
if (event < DisplayHotplugEvent::ERROR_LINK_UNSTABLE) {
2272+
// This needs to be kept in sync with DisplayHotplugEvent to prevent passing new errors.
2273+
const auto errorCode = static_cast<int32_t>(event);
2274+
ALOGW("%s: Unknown hotplug error %d for hwcDisplayId %" PRIu64, __func__, errorCode,
2275+
hwcDisplayId);
2276+
return;
2277+
}
2278+
2279+
if (event == DisplayHotplugEvent::ERROR_LINK_UNSTABLE &&
2280+
!FlagManager::getInstance().display_config_error_hal()) {
2281+
return;
2282+
}
2283+
22712284
// TODO(b/311403559): use enum type instead of int
22722285
const auto errorCode = static_cast<int32_t>(event);
22732286
ALOGD("%s: Hotplug error %d for hwcDisplayId %" PRIu64, __func__, errorCode, hwcDisplayId);

0 commit comments

Comments
 (0)