mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-19 13:50:48 +00:00

This commit adds support for the GB20x GPUs found on GeForce RTX 50xx series boards. Beyond a few miscellaneous register moves and HW class ID plumbing, this reuses most of the code added to support GH100/GB10x. 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>
30 lines
826 B
C
30 lines
826 B
C
/* SPDX-License-Identifier: MIT
|
|
*
|
|
* Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
|
|
*/
|
|
#include "priv.h"
|
|
|
|
#include <nvhw/drf.h>
|
|
#include <nvhw/ref/gb10b/dev_fbhub.h>
|
|
|
|
static void
|
|
gb202_fb_sysmem_flush_page_init(struct nvkm_fb *fb)
|
|
{
|
|
struct nvkm_device *device = fb->subdev.device;
|
|
const u64 addr = fb->sysmem.flush_page_addr;
|
|
|
|
nvkm_wr32(device, NV_PFB_FBHUB0_PCIE_FLUSH_SYSMEM_ADDR_HI, upper_32_bits(addr));
|
|
nvkm_wr32(device, NV_PFB_FBHUB0_PCIE_FLUSH_SYSMEM_ADDR_LO, lower_32_bits(addr));
|
|
}
|
|
|
|
static const struct nvkm_fb_func
|
|
gb202_fb = {
|
|
.sysmem.flush_page_init = gb202_fb_sysmem_flush_page_init,
|
|
.vidmem.size = ga102_fb_vidmem_size,
|
|
};
|
|
|
|
int
|
|
gb202_fb_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_fb **pfb)
|
|
{
|
|
return r535_fb_new(&gb202_fb, device, type, inst, pfb);
|
|
}
|