OSDN Git Service

nouveau: add support for Volta chipsets
authorMauro Rossi <issor.oruam@gmail.com>
Sat, 16 Jan 2021 16:26:12 +0000 (17:26 +0100)
committerMauro Rossi <issor.oruam@gmail.com>
Sat, 16 Jan 2021 16:26:12 +0000 (17:26 +0100)
NV_VOLTA 0x140 chipsets handling is added in gralloc_drm_nouveau.c

gralloc_drm_nouveau.c

index 5f0e192..4f57fe1 100644 (file)
@@ -48,6 +48,7 @@
 #define NV_KEPLER   0xe0
 #define NV_MAXWELL  0x110
 #define NV_PASCAL   0x130
+#define NV_VOLTA    0x140
 
 #define NV50_TILE_HEIGHT(m) (4 << ((m) >> 4))
 #define NVC0_TILE_HEIGHT(m) (8 << ((m) >> 4))
@@ -371,6 +372,9 @@ static int nouveau_init(struct nouveau_info *info)
        case 0x130:
                info->arch = NV_PASCAL;
                break;
+       case 0x140:
+               info->arch = NV_VOLTA;
+               break;
        default:
                ALOGE("unknown nouveau chipset 0x%x", info->dev->chipset);
                err = -EINVAL;