Skip to content

Commit ce156c8

Browse files
committed
Merge tag 'drm-misc-fixes-2022-07-29' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes
One fix to fix simpledrm mode_valid return value, and one for page migration in nouveau Signed-off-by: Dave Airlie <airlied@redhat.com> From: Maxime Ripard <maxime@cerno.tech> Link: https://patchwork.freedesktop.org/patch/msgid/20220729094514.sfzhc3gqjgwgal62@penduick
2 parents f16a2f5 + 66cee90 commit ce156c8

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)