drm/amd/display: add an ASSERT() to irq service functions
authorHamza Mahfooz <hamza.mahfooz@amd.com>
Fri, 14 Oct 2022 14:29:46 +0000 (10:29 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 17 Oct 2022 21:41:21 +0000 (17:41 -0400)
commitb3372fa74d2a7f840bea706607ee2224dfd24039
treeeda487c78f793aaedaa84a420b418af5051233b0
parente299b00adf3d4505132e624894f549422ad05eeb
drm/amd/display: add an ASSERT() to irq service functions

Currently, if we encounter unimplemented functions, it is difficult to
tell what caused them just by looking at dmesg and that is compounded by
the fact that it is often hard to reproduce said issues, for instance we
have had reports of this condition being triggered when removing a
secondary display that is setup in mirror mode and is connected using
usb-c. So, to have access to more detailed debugging information, add an
ASSERT() to dal_irq_service_ack() and dal_irq_service_set() that only
triggers when we encounter an unimplemented function.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/irq/irq_service.c