mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-09-01 09:36:29 +00:00

Adds basic support for the new display classes available on GB20x GPUs. Most of the changes here deal with HW method moves, with the only other change of note being tweaks to skip allocation of CTXDMA objects, which aren't required on Blackwell display. Signed-off-by: Ben Skeggs <bskeggs@nvidia.com> Reviewed-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Timur Tabi <ttabi@nvidia.com> Tested-by: Timur Tabi <ttabi@nvidia.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
19 lines
722 B
C
19 lines
722 B
C
#ifndef __NVIF_PUSHC97B_H__
|
|
#define __NVIF_PUSHC97B_H__
|
|
#include <nvif/push.h>
|
|
|
|
#include <nvhw/class/clc97b.h>
|
|
|
|
#define PUSH_HDR(p,m,c) do { \
|
|
PUSH_ASSERT(!((m) & ~DRF_SMASK(NVC97B_DMA_METHOD_OFFSET)), "mthd"); \
|
|
PUSH_ASSERT(!((c) & ~DRF_MASK(NVC97B_DMA_METHOD_COUNT)), "size"); \
|
|
PUSH_DATA__((p), NVDEF(NVC97B, DMA, OPCODE, METHOD) | \
|
|
NVVAL(NVC97B, DMA, METHOD_COUNT, (c)) | \
|
|
NVVAL(NVC97B, DMA, METHOD_OFFSET, (m) >> 2), \
|
|
" mthd 0x%04x size %d - %s", (u32)(m), (u32)(c), __func__); \
|
|
} while(0)
|
|
|
|
#define PUSH_MTHD_HDR(p,s,m,c) PUSH_HDR(p,m,c)
|
|
#define PUSH_MTHD_INC 4:4
|
|
#endif
|