[PATCH 6.6 078/132] drm/amdgpu/pm: Check input value for CUSTOM profile mode setting on legacy SOCs