mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-18 16:44:27 +08:00
drm/nouveau/disp: update SOR routing immediately on acquire()
- was previously delayed until second supervisor interrupt Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Reviewed-by: Lyude Paul <lyude@redhat.com> Acked-by: Danilo Krummrich <me@dakr.org> Signed-off-by: Lyude Paul <lyude@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230919220442.202488-15-lyude@redhat.com
This commit is contained in:
parent
cefc3c1452
commit
45d954c05d
@ -48,8 +48,8 @@ nvkm_outp_route(struct nvkm_disp *disp)
|
||||
|
||||
list_for_each_entry(ior, &disp->iors, head) {
|
||||
if ((outp = ior->asy.outp)) {
|
||||
OUTP_DBG(outp, "acquire %s", ior->name);
|
||||
if (ior->asy.outp != ior->arm.outp) {
|
||||
OUTP_DBG(outp, "acquire %s", ior->name);
|
||||
if (ior->func->route.set)
|
||||
ior->func->route.set(outp, ior);
|
||||
ior->arm.outp = ior->asy.outp;
|
||||
|
@ -235,6 +235,8 @@ nvkm_uoutp_mthd_acquire(struct nvkm_outp *outp, void *argv, u32 argc)
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
nvkm_outp_route(outp->disp);
|
||||
|
||||
args->v0.or = outp->ior->id;
|
||||
args->v0.link = outp->ior->asy.link;
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user