drm/nouveau/falcon: add missing context binding memory target
authorAlexandre Courbot <acourbot@nvidia.com>
Thu, 26 Jan 2017 05:59:56 +0000 (14:59 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 7 Mar 2017 07:05:11 +0000 (17:05 +1000)
This is not used currently, but is added for the sake of completeness.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/falcon/v1.c

index b537f111f39c81cce70ec2049b134160e2586ec1..e11fafd02aa1148c8ff325818a07faf3a28edd9e 100644 (file)
@@ -138,6 +138,7 @@ nvkm_falcon_v1_bind_context(struct nvkm_falcon *falcon, struct nvkm_gpuobj *ctx)
        /* Set context */
        switch (nvkm_memory_target(ctx->memory)) {
        case NVKM_MEM_TARGET_VRAM: inst_loc = 0; break;
+       case NVKM_MEM_TARGET_HOST: inst_loc = 2; break;
        case NVKM_MEM_TARGET_NCOH: inst_loc = 3; break;
        default:
                WARN_ON(1);