projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
152be54
)
drm/nouveau: chan: use channel class definitions
author
Danilo Krummrich
<dakr@redhat.com>
Mon, 2 Oct 2023 13:46:47 +0000
(15:46 +0200)
committer
Danilo Krummrich
<dakr@redhat.com>
Tue, 3 Oct 2023 22:10:12 +0000
(
00:10
+0200)
Use channel class definitions instead of magic numbers.
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20231002135008.10651-2-dakr@redhat.com
drivers/gpu/drm/nouveau/nouveau_chan.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/nouveau_chan.c
b/drivers/gpu/drm/nouveau/nouveau_chan.c
index f44d19a50d392c8a2f885af72816d7951b923f53..68e9b08a4803f564e531d2889b9eca34722c6be8 100644
(file)
--- a/
drivers/gpu/drm/nouveau/nouveau_chan.c
+++ b/
drivers/gpu/drm/nouveau/nouveau_chan.c
@@
-440,9
+440,11
@@
nouveau_channel_init(struct nouveau_channel *chan, u32 vram, u32 gart)
}
/* initialise dma tracking parameters */
- switch (chan->user.oclass & 0x00ff) {
- case 0x006b:
- case 0x006e:
+ switch (chan->user.oclass) {
+ case NV03_CHANNEL_DMA:
+ case NV10_CHANNEL_DMA:
+ case NV17_CHANNEL_DMA:
+ case NV40_CHANNEL_DMA:
chan->user_put = 0x40;
chan->user_get = 0x44;
chan->dma.max = (0x10000 / 4) - 2;