drm/etnaviv: reference MMU context when setting up hardware state
stable inclusion from stable-5.10.68 commit ea995e8a629446c4a27e7f8042fc08e05659298b bugzilla: 182671 https://gitee.com/openeuler/kernel/issues/I4EWUH Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ea995e8a629446c4a27e7f8042fc08e05659298b -------------------------------- commit d6408538 upstream. Move the refcount manipulation of the MMU context to the point where the hardware state is programmed. At that point it is also known if a previous MMU state is still there, or the state needs to be reprogrammed with a potentially different context. Cc: stable@vger.kernel.org # 5.4 Signed-off-by: NLucas Stach <l.stach@pengutronix.de> Tested-by: NMichael Walle <michael@walle.cc> Tested-by: NMarek Vasut <marex@denx.de> Reviewed-by: NChristian Gmeiner <christian.gmeiner@gmail.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: NChen Jun <chenjun102@huawei.com> Acked-by: NWeilong Chen <chenweilong@huawei.com> Signed-off-by: NChen Jun <chenjun102@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录