[PATCH 4.14 294/496] drm/amdkfd: Fix scratch memory with HWS enabled