https://cgit.freedesktop.org/~agd5f/linux/commit/?h=drm-next-4.9&id=325cbba19a32b172300fc87cd4da7c45c4f9e0ba (and the changes before / after that one) may help for this.