drm/amd: add support to check whether the system is set to s3