aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2011-07-02 06:28:49 -0400
committerBen Skeggs <bskeggs@redhat.com>2011-09-20 02:04:45 -0400
commit2e9733ff7d4f1c7185bea16041f532d6142ca40a (patch)
tree631d0f07b0bf9c9f1650869518ad115ce5234eb2 /drivers/gpu/drm/nouveau
parentf3f2f54e11ff6f3f39a108bfcf7e074b282e3a50 (diff)
drm/nvd0: add a card_type for 0xdX chipsets
These are different enough from 0xcX to justify it, half fermi, half kepler(??).. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_bo.c2
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_drv.h1
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_object.c2
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_vm.c2
4 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_bo.c b/drivers/gpu/drm/nouveau/nouveau_bo.c
index 890d50e4d682..7226f419e178 100644
--- a/drivers/gpu/drm/nouveau/nouveau_bo.c
+++ b/drivers/gpu/drm/nouveau/nouveau_bo.c
@@ -956,7 +956,7 @@ nouveau_ttm_io_mem_reserve(struct ttm_bo_device *bdev, struct ttm_mem_reg *mem)
956 break; 956 break;
957 } 957 }
958 958
959 if (dev_priv->card_type == NV_C0) 959 if (dev_priv->card_type >= NV_C0)
960 page_shift = node->page_shift; 960 page_shift = node->page_shift;
961 else 961 else
962 page_shift = 12; 962 page_shift = 12;
diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.h b/drivers/gpu/drm/nouveau/nouveau_drv.h
index 6629f30598f3..842cd7acde8a 100644
--- a/drivers/gpu/drm/nouveau/nouveau_drv.h
+++ b/drivers/gpu/drm/nouveau/nouveau_drv.h
@@ -637,6 +637,7 @@ enum nouveau_card_type {
637 NV_40 = 0x40, 637 NV_40 = 0x40,
638 NV_50 = 0x50, 638 NV_50 = 0x50,
639 NV_C0 = 0xc0, 639 NV_C0 = 0xc0,
640 NV_D0 = 0xd0
640}; 641};
641 642
642struct drm_nouveau_private { 643struct drm_nouveau_private {
diff --git a/drivers/gpu/drm/nouveau/nouveau_object.c b/drivers/gpu/drm/nouveau/nouveau_object.c
index 159b7c437d3f..363379c226ed 100644
--- a/drivers/gpu/drm/nouveau/nouveau_object.c
+++ b/drivers/gpu/drm/nouveau/nouveau_object.c
@@ -746,7 +746,7 @@ nouveau_gpuobj_channel_init(struct nouveau_channel *chan,
746 int ret, i; 746 int ret, i;
747 747
748 NV_DEBUG(dev, "ch%d vram=0x%08x tt=0x%08x\n", chan->id, vram_h, tt_h); 748 NV_DEBUG(dev, "ch%d vram=0x%08x tt=0x%08x\n", chan->id, vram_h, tt_h);
749 if (dev_priv->card_type == NV_C0) 749 if (dev_priv->card_type >= NV_C0)
750 return nvc0_gpuobj_channel_init(chan, vm); 750 return nvc0_gpuobj_channel_init(chan, vm);
751 751
752 /* Allocate a chunk of memory for per-channel object storage */ 752 /* Allocate a chunk of memory for per-channel object storage */
diff --git a/drivers/gpu/drm/nouveau/nouveau_vm.c b/drivers/gpu/drm/nouveau/nouveau_vm.c
index d432a2a791f2..ef0832b29ad2 100644
--- a/drivers/gpu/drm/nouveau/nouveau_vm.c
+++ b/drivers/gpu/drm/nouveau/nouveau_vm.c
@@ -306,7 +306,7 @@ nouveau_vm_new(struct drm_device *dev, u64 offset, u64 length, u64 mm_offset,
306 block = length; 306 block = length;
307 307
308 } else 308 } else
309 if (dev_priv->card_type == NV_C0) { 309 if (dev_priv->card_type >= NV_C0) {
310 vm->map_pgt = nvc0_vm_map_pgt; 310 vm->map_pgt = nvc0_vm_map_pgt;
311 vm->map = nvc0_vm_map; 311 vm->map = nvc0_vm_map;
312 vm->map_sg = nvc0_vm_map_sg; 312 vm->map_sg = nvc0_vm_map_sg;