Skip to content

Commit 76cfab9

Browse files
committed
Merge branch 'linux-5.8' of git://github.com/skeggsb/linux into drm-fixes
- SVM fixes - display fixes Signed-off-by: Dave Airlie <[email protected]> From: Ben Skeggs <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/ <CACAvsv5i-dc0Onbk8FWzd-PTgXHHWi6jcE3O0hVx8+V5qEOeqg@mail.gmail.com
2 parents a088eb0 + ed710a6 commit 76cfab9

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

drivers/gpu/drm/nouveau/dispnv50/disp.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,9 @@ nv50_audio_disable(struct drm_encoder *encoder, struct nouveau_crtc *nv_crtc)
601601
(0x0100 << nv_crtc->index),
602602
};
603603

604+
if (!nv_encoder->audio)
605+
return;
606+
604607
nv_encoder->audio = false;
605608
nvif_mthd(&disp->disp->object, 0, &args, sizeof(args));
606609

drivers/gpu/drm/nouveau/nouveau_dmem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ static unsigned long nouveau_dmem_migrate_copy_one(struct nouveau_drm *drm,
550550
DMA_BIDIRECTIONAL);
551551
if (dma_mapping_error(dev, *dma_addr))
552552
goto out_free_page;
553-
if (drm->dmem->migrate.copy_func(drm, page_size(spage),
553+
if (drm->dmem->migrate.copy_func(drm, 1,
554554
NOUVEAU_APER_VRAM, paddr, NOUVEAU_APER_HOST, *dma_addr))
555555
goto out_dma_unmap;
556556
} else {

drivers/gpu/drm/nouveau/nouveau_svm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,7 @@ static int nouveau_range_fault(struct nouveau_svmm *svmm,
562562
.end = notifier->notifier.interval_tree.last + 1,
563563
.pfn_flags_mask = HMM_PFN_REQ_FAULT | HMM_PFN_REQ_WRITE,
564564
.hmm_pfns = hmm_pfns,
565+
.dev_private_owner = drm->dev,
565566
};
566567
struct mm_struct *mm = notifier->notifier.mm;
567568
int ret;

drivers/gpu/drm/nouveau/nvkm/subdev/i2c/auxg94.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ g94_i2c_aux_xfer(struct nvkm_i2c_aux *obj, bool retry,
118118
if (retries)
119119
udelay(400);
120120

121-
/* transaction request, wait up to 1ms for it to complete */
121+
/* transaction request, wait up to 2ms for it to complete */
122122
nvkm_wr32(device, 0x00e4e4 + base, 0x00010000 | ctrl);
123123

124-
timeout = 1000;
124+
timeout = 2000;
125125
do {
126126
ctrl = nvkm_rd32(device, 0x00e4e4 + base);
127127
udelay(1);

drivers/gpu/drm/nouveau/nvkm/subdev/i2c/auxgm200.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ gm200_i2c_aux_xfer(struct nvkm_i2c_aux *obj, bool retry,
118118
if (retries)
119119
udelay(400);
120120

121-
/* transaction request, wait up to 1ms for it to complete */
121+
/* transaction request, wait up to 2ms for it to complete */
122122
nvkm_wr32(device, 0x00d954 + base, 0x00010000 | ctrl);
123123

124-
timeout = 1000;
124+
timeout = 2000;
125125
do {
126126
ctrl = nvkm_rd32(device, 0x00d954 + base);
127127
udelay(1);

0 commit comments

Comments
 (0)