drm/nouveau/privring/tu102-: prepare for GSP-RM
- disable PRIVRING completely when GSP-RM detected Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230918202149.4343-20-skeggsb@gmail.com
This commit is contained in:
parent
ab724be7a3
commit
fd7d598270
@ -23,6 +23,8 @@
|
||||
*/
|
||||
#include "priv.h"
|
||||
|
||||
#include <subdev/gsp.h>
|
||||
|
||||
static const struct nvkm_subdev_func
|
||||
gm200_privring = {
|
||||
.intr = gk104_privring_intr,
|
||||
@ -32,5 +34,8 @@ int
|
||||
gm200_privring_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
|
||||
struct nvkm_subdev **pprivring)
|
||||
{
|
||||
if (nvkm_gsp_rm(device->gsp))
|
||||
return -ENODEV;
|
||||
|
||||
return nvkm_subdev_new_(&gm200_privring, device, type, inst, pprivring);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user