Skip to content

Commit e65c6a4

Browse files
committed
Merge tag 'drm-fixes-2022-07-30' of git://anongit.freedesktop.org/drm/drm
Pull more drm fixes from Dave Airlie: "Maxime had the dog^Wmailing list server eat his homework^Wmisc pull request. Two more small fixes, one in nouveau svm code and the other in simpledrm. nouveau: - page migration fix simpledrm: - fix mode_valid return value" * tag 'drm-fixes-2022-07-30' of git://anongit.freedesktop.org/drm/drm: nouveau/svm: Fix to migrate all requested pages drm/simpledrm: Fix return type of simpledrm_simple_display_pipe_mode_valid()
2 parents 1c8ac1c + ce156c8 commit e65c6a4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

drivers/gpu/drm/nouveau/nouveau_dmem.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,11 @@ nouveau_dmem_migrate_vma(struct nouveau_drm *drm,
680680
goto out_free_dma;
681681

682682
for (i = 0; i < npages; i += max) {
683-
args.end = start + (max << PAGE_SHIFT);
683+
if (args.start + (max << PAGE_SHIFT) > end)
684+
args.end = end;
685+
else
686+
args.end = args.start + (max << PAGE_SHIFT);
687+
684688
ret = migrate_vma_setup(&args);
685689
if (ret)
686690
goto out_free_pfns;

drivers/gpu/drm/tiny/simpledrm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ static const struct drm_connector_funcs simpledrm_connector_funcs = {
627627
.atomic_destroy_state = drm_atomic_helper_connector_destroy_state,
628628
};
629629

630-
static int
630+
static enum drm_mode_status
631631
simpledrm_simple_display_pipe_mode_valid(struct drm_simple_display_pipe *pipe,
632632
const struct drm_display_mode *mode)
633633
{

0 commit comments

Comments
 (0)