Loading drivers/gpu/drm/nouveau/core/subdev/fb/nvc0.c +16 −0 Original line number Diff line number Diff line Loading @@ -33,6 +33,21 @@ nvc0_fb_memtype_valid(struct nouveau_fb *pfb, u32 tile_flags) return likely((nvc0_pte_storage_type_map[memtype] != 0xff)); } static void nvc0_fb_intr(struct nouveau_subdev *subdev) { struct nvc0_fb_priv *priv = (void *)subdev; u32 intr = nv_rd32(priv, 0x000100); if (intr & 0x08000000) { nv_debug(priv, "PFFB intr\n"); intr &= ~0x08000000; } if (intr & 0x00002000) { nv_debug(priv, "PBFB intr\n"); intr &= ~0x00002000; } } int nvc0_fb_init(struct nouveau_object *object) { Loading Loading @@ -86,6 +101,7 @@ nvc0_fb_ctor(struct nouveau_object *parent, struct nouveau_object *engine, return -EFAULT; } nv_subdev(priv)->intr = nvc0_fb_intr; return 0; } Loading drivers/gpu/drm/nouveau/core/subdev/mc/nvc0.c +2 −0 Original line number Diff line number Diff line Loading @@ -32,6 +32,7 @@ nvc0_mc_intr[] = { { 0x00000080, NVDEV_ENGINE_COPY2 }, { 0x00000100, NVDEV_ENGINE_FIFO }, { 0x00001000, NVDEV_ENGINE_GR }, { 0x00002000, NVDEV_SUBDEV_FB }, { 0x00008000, NVDEV_ENGINE_BSP }, { 0x00040000, NVDEV_SUBDEV_THERM }, { 0x00020000, NVDEV_ENGINE_VP }, Loading @@ -40,6 +41,7 @@ nvc0_mc_intr[] = { { 0x01000000, NVDEV_SUBDEV_PWR }, { 0x02000000, NVDEV_SUBDEV_LTCG }, { 0x04000000, NVDEV_ENGINE_DISP }, { 0x08000000, NVDEV_SUBDEV_FB }, { 0x10000000, NVDEV_SUBDEV_BUS }, { 0x40000000, NVDEV_SUBDEV_IBUS }, { 0x80000000, NVDEV_ENGINE_SW }, Loading Loading
drivers/gpu/drm/nouveau/core/subdev/fb/nvc0.c +16 −0 Original line number Diff line number Diff line Loading @@ -33,6 +33,21 @@ nvc0_fb_memtype_valid(struct nouveau_fb *pfb, u32 tile_flags) return likely((nvc0_pte_storage_type_map[memtype] != 0xff)); } static void nvc0_fb_intr(struct nouveau_subdev *subdev) { struct nvc0_fb_priv *priv = (void *)subdev; u32 intr = nv_rd32(priv, 0x000100); if (intr & 0x08000000) { nv_debug(priv, "PFFB intr\n"); intr &= ~0x08000000; } if (intr & 0x00002000) { nv_debug(priv, "PBFB intr\n"); intr &= ~0x00002000; } } int nvc0_fb_init(struct nouveau_object *object) { Loading Loading @@ -86,6 +101,7 @@ nvc0_fb_ctor(struct nouveau_object *parent, struct nouveau_object *engine, return -EFAULT; } nv_subdev(priv)->intr = nvc0_fb_intr; return 0; } Loading
drivers/gpu/drm/nouveau/core/subdev/mc/nvc0.c +2 −0 Original line number Diff line number Diff line Loading @@ -32,6 +32,7 @@ nvc0_mc_intr[] = { { 0x00000080, NVDEV_ENGINE_COPY2 }, { 0x00000100, NVDEV_ENGINE_FIFO }, { 0x00001000, NVDEV_ENGINE_GR }, { 0x00002000, NVDEV_SUBDEV_FB }, { 0x00008000, NVDEV_ENGINE_BSP }, { 0x00040000, NVDEV_SUBDEV_THERM }, { 0x00020000, NVDEV_ENGINE_VP }, Loading @@ -40,6 +41,7 @@ nvc0_mc_intr[] = { { 0x01000000, NVDEV_SUBDEV_PWR }, { 0x02000000, NVDEV_SUBDEV_LTCG }, { 0x04000000, NVDEV_ENGINE_DISP }, { 0x08000000, NVDEV_SUBDEV_FB }, { 0x10000000, NVDEV_SUBDEV_BUS }, { 0x40000000, NVDEV_SUBDEV_IBUS }, { 0x80000000, NVDEV_ENGINE_SW }, Loading