projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e69122
)
drm/nouveau/kms/nv50-: convert core caps_init() to new push macros
author
Ben Skeggs
<bskeggs@redhat.com>
Sat, 20 Jun 2020 07:06:41 +0000
(17:06 +1000)
committer
Ben Skeggs
<bskeggs@redhat.com>
Fri, 24 Jul 2020 08:50:53 +0000
(18:50 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
drivers/gpu/drm/nouveau/dispnv50/core507d.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/dispnv50/core507d.c
b/drivers/gpu/drm/nouveau/dispnv50/core507d.c
index
ce6f649
..
455509c
100644
(file)
--- a/
drivers/gpu/drm/nouveau/dispnv50/core507d.c
+++ b/
drivers/gpu/drm/nouveau/dispnv50/core507d.c
@@
-66,15
+66,14
@@
core507d_ntfy_init(struct nouveau_bo *bo, u32 offset)
int
core507d_caps_init(struct nouveau_drm *drm, struct nv50_disp *disp)
{
- u32 *push = evo_wait(&disp->core->chan, 2);
+ struct nvif_push *push = disp->core->chan.push;
+ int ret;
- if (push) {
- evo_mthd(push, 0x008c, 1);
- evo_data(push, 0x0);
- evo_kick(push, &disp->core->chan);
- }
+ if ((ret = PUSH_WAIT(push, 2)))
+ return ret;
- return 0;
+ PUSH_NVSQ(push, NV507D, 0x008c, 0x00000000);
+ return PUSH_KICK(push);
}
int