[PATCH 5.10 028/186] drm/amdgpu/pm: Check input value for CUSTOM profile mode setting on legacy SOCs