mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-21 06:50:25 +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>
16 lines
334 B
C
16 lines
334 B
C
/* SPDX-License-Identifier: MIT
|
|
*
|
|
* Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
|
|
*/
|
|
#include "priv.h"
|
|
|
|
#include <nvhw/drf.h>
|
|
#include <nvhw/ref/gb202/dev_ce.h>
|
|
|
|
u32
|
|
gb202_ce_grce_mask(struct nvkm_device *device)
|
|
{
|
|
u32 data = nvkm_rd32(device, NV_CE_GRCE_MASK);
|
|
|
|
return NVVAL_GET(data, NV_CE, GRCE_MASK, VALUE);
|
|
}
|