drm/nouveau/ltc/tu102-: prepare for GSP-RM
- disable LTC 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-16-skeggsb@gmail.com
This commit is contained in:
parent
624c6f78cc
commit
1dc750dab1
@ -21,6 +21,8 @@
|
||||
*/
|
||||
#include "priv.h"
|
||||
|
||||
#include <subdev/gsp.h>
|
||||
|
||||
static void
|
||||
ga102_ltc_zbc_clear_color(struct nvkm_ltc *ltc, int i, const u32 color[4])
|
||||
{
|
||||
@ -53,5 +55,8 @@ int
|
||||
ga102_ltc_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
|
||||
struct nvkm_ltc **pltc)
|
||||
{
|
||||
if (nvkm_gsp_rm(device->gsp))
|
||||
return -ENODEV;
|
||||
|
||||
return nvkm_ltc_new_(&ga102_ltc, device, type, inst, pltc);
|
||||
}
|
||||
|
@ -21,6 +21,8 @@
|
||||
*/
|
||||
#include "priv.h"
|
||||
|
||||
#include <subdev/gsp.h>
|
||||
|
||||
void
|
||||
gp102_ltc_zbc_clear_stencil(struct nvkm_ltc *ltc, int i, const u32 stencil)
|
||||
{
|
||||
@ -49,5 +51,8 @@ int
|
||||
gp102_ltc_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
|
||||
struct nvkm_ltc **pltc)
|
||||
{
|
||||
if (nvkm_gsp_rm(device->gsp))
|
||||
return -ENODEV;
|
||||
|
||||
return nvkm_ltc_new_(&gp102_ltc, device, type, inst, pltc);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user