[PATCH 5.16 064/227] drm/amd: add support to check whether the system is set to s3