mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 09:04:39 +02:00
drm/nouveau/fuse/tu102-: prepare for GSP-RM
- disable FUSE 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-12-skeggsb@gmail.com
This commit is contained in:
parent
834a712b6e
commit
c41aebc9ac
|
|
@ -23,6 +23,8 @@
|
|||
*/
|
||||
#include "priv.h"
|
||||
|
||||
#include <subdev/gsp.h>
|
||||
|
||||
static u32
|
||||
gm107_fuse_read(struct nvkm_fuse *fuse, u32 addr)
|
||||
{
|
||||
|
|
@ -39,5 +41,8 @@ int
|
|||
gm107_fuse_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
|
||||
struct nvkm_fuse **pfuse)
|
||||
{
|
||||
if (nvkm_gsp_rm(device->gsp))
|
||||
return -ENODEV;
|
||||
|
||||
return nvkm_fuse_new_(&gm107_fuse, device, type, inst, pfuse);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user