Skip to content

Commit

Permalink
drm/nouveau/kms: remove a few unused struct members and fn decls
Browse files Browse the repository at this point in the history
Left-overs from the past that are completely unused now.

Signed-off-by: Ben Skeggs <bskeggs@nvidia.com>
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240726043828.58966-37-bskeggs@nvidia.com
  • Loading branch information
Ben Skeggs authored and Danilo Krummrich committed Jul 27, 2024
1 parent 0df26c0 commit 723388b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
3 changes: 0 additions & 3 deletions drivers/gpu/drm/nouveau/dispnv50/disp.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,6 @@ nv50_dmac_create(struct nouveau_drm *drm,
u8 type = NVIF_MEM_COHERENT;
int ret;

mutex_init(&dmac->lock);

/* Pascal added support for 47-bit physical addresses, but some
* parts of EVO still only accept 40-bit PAs.
*
Expand All @@ -258,7 +256,6 @@ nv50_dmac_create(struct nouveau_drm *drm,
if (ret)
return ret;

dmac->ptr = dmac->_push.mem.object.map.ptr;
dmac->_push.wait = nv50_dmac_wait;
dmac->_push.kick = nv50_dmac_kick;
dmac->push = &dmac->_push;
Expand Down
9 changes: 0 additions & 9 deletions drivers/gpu/drm/nouveau/dispnv50/disp.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,10 @@ struct nv50_dmac {

struct nvif_push _push;
struct nvif_push *push;
u32 *ptr;

struct nvif_object sync;
struct nvif_object vram;

/* Protects against concurrent pushbuf access to this channel, lock is
* grabbed by evo_wait (if the pushbuf reservation is successful) and
* dropped again by evo_kick. */
struct mutex lock;

u32 cur;
u32 put;
u32 max;
Expand Down Expand Up @@ -108,9 +102,6 @@ void nv50_dmac_destroy(struct nv50_dmac *);
*/
struct nouveau_encoder *nv50_real_outp(struct drm_encoder *encoder);

u32 *evo_wait(struct nv50_dmac *, int nr);
void evo_kick(u32 *, struct nv50_dmac *);

extern const u64 disp50xx_modifiers[];
extern const u64 disp90xx_modifiers[];
extern const u64 wndwc57e_modifiers[];
Expand Down

0 comments on commit 723388b

Please sign in to comment.