Skip to content
  1. Mar 16, 2018
    • Karol Herbst's avatar
      drm/nouveau/bl: fix backlight regression · 9e75dc61
      Karol Herbst authored
      Fixes: 3c66c87d
      
       ("drm/nouveau/disp: remove hw-specific customisation
      of output paths")
      Suggested-by: default avatarBen Skeggs <skeggsb@redhat.com>
      Signed-off-by: default avatarKarol Herbst <kherbst@redhat.com>
      Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
      9e75dc61
    • Lukas Wunner's avatar
      drm/nouveau/bl: Fix oops on driver unbind · 76f2e2bc
      Lukas Wunner authored
      Unbinding nouveau on a dual GPU MacBook Pro oopses because we iterate
      over the bl_connectors list in nouveau_backlight_exit() but skipped
      initializing it in nouveau_backlight_init().  Stacktrace for posterity:
      
          BUG: unable to handle kernel NULL pointer dereference at 0000000000000010
          IP: nouveau_backlight_exit+0x2b/0x70 [nouveau]
          nouveau_display_destroy+0x29/0x80 [nouveau]
          nouveau_drm_unload+0x65/0xe0 [nouveau]
          drm_dev_unregister+0x3c/0xe0 [drm]
          drm_put_dev+0x2e/0x60 [drm]
          nouveau_drm_device_remove+0x47/0x70 [nouveau]
          pci_device_remove+0x36/0xb0
          device_release_driver_internal+0x157/0x220
          driver_detach+0x39/0x70
          bus_remove_driver+0x51/0xd0
          pci_unregister_driver+0x2a/0xa0
          nouveau_drm_exit+0x15/0xfb0 [nouveau]
          SyS_delete_module+0x18c/0x290
          system_call_fast_compare_end+0xc/0x6f
      
      Fixes: b53ac1ee
      
       ("drm/nouveau/bl: Do not register interface if Apple GMUX detected")
      Cc: stable@vger.kernel.org # v4.10+
      Cc: Pierre Moreau <pierre.morrow@free.fr>
      Signed-off-by: default avatarLukas Wunner <lukas@wunner.de>
      Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
      76f2e2bc
    • Māris Nartišs's avatar
      drm/nouveau/mmu: ALIGN_DOWN correct variable · da5e45e6
      Māris Nartišs authored
      
      
      Commit 7110c89bb8852ff8b0f88ce05b332b3fe22bd11e ("mmu: swap out round
      for ALIGN") replaced two calls to round/rounddown with ALIGN/ALIGN_DOWN,
      but erroneously applied ALIGN_DOWN to a different variable (addr) and left
      intended variable (tail) not rounded/ALIGNed.
      
      As a result screen corruption, X lockups are observable. An example of kernel
      log of affected system with NV98 card where it was bisected:
      
      nouveau 0000:01:00.0: gr: TRAP_M2MF 00000002 [IN]
      nouveau 0000:01:00.0: gr: TRAP_M2MF 00320951 400007c0 00000000 04000000
      nouveau 0000:01:00.0: gr: 00200000 [] ch 1 [000fbbe000 DRM] subc 4 class 5039
      mthd 0100 data 00000000
      nouveau 0000:01:00.0: fb: trapped read at 0040000000 on channel 1
      [0fbbe000 DRM]
      engine 00 [PGRAPH] client 03 [DISPATCH] subclient 04 [M2M_IN] reason 00000006
      [NULL_DMAOBJ]
      
      Fixes bug 105173 ("[MCP79][Regression] Unhandled NULL pointer dereference in
      nvkm_object_unmap since kernel 4.15")
      https://bugs.freedesktop.org/show_bug.cgi?id=105173
      
      Fixes: 7110c89bb885 ("mmu: swap out round for ALIGN ")
      Tested-by: default avatarPierre Moreau <pierre.morrow@free.fr>
      Reviewed-by: default avatarPierre Moreau <pierre.morrow@free.fr>
      Signed-off-by: default avatarMaris Nartiss <maris.nartiss@gmail.com>
      Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
      Cc: stable@vger.kernel.org # v4.15+
      da5e45e6
  2. Feb 16, 2018
  3. Feb 02, 2018
  4. Feb 01, 2018
    • Daniel Vetter's avatar
      drm/ast: Load lut in crtc_commit · 24b8ef69
      Daniel Vetter authored
      In the past the ast driver relied upon the fbdev emulation helpers to
      call ->load_lut at boot-up. But since
      
      commit b8e2b019
      Author: Peter Rosin <peda@axentia.se>
      Date:   Tue Jul 4 12:36:57 2017 +0200
      
          drm/fb-helper: factor out pseudo-palette
      
      that's cleaned up and drivers are expected to boot into a consistent
      lut state. This patch fixes that.
      
      Fixes: b8e2b019
      
       ("drm/fb-helper: factor out pseudo-palette")
      Cc: Peter Rosin <peda@axenita.se>
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Cc: <stable@vger.kernel.org> # v4.14+
      Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=198123
      Cc: Bill Fraser <bill.fraser@gmail.com>
      Reported-and-Tested-by: default avatarBill Fraser <bill.fraser@gmail.com>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      24b8ef69
    • Dave Airlie's avatar
      Merge tag 'drm-misc-next-fixes-2018-01-31' of... · 7ec3c095
      Dave Airlie authored
      Merge tag 'drm-misc-next-fixes-2018-01-31' of git://anongit.freedesktop.org/drm/drm-misc into drm-next
      
      This contains a fix to restrict what lessee can do with masters and
      another one when waiting for timeouts on reservation objects.
      
      * tag 'drm-misc-next-fixes-2018-01-31' of git://anongit.freedesktop.org/drm/drm-misc:
        drm: Check for lessee in DROP_MASTER ioctl
        dma-buf: fix reservation_object_wait_timeout_rcu once more v2
      7ec3c095
  5. Jan 31, 2018
    • Keith Packard's avatar
      drm: Check for lessee in DROP_MASTER ioctl · 761e05a7
      Keith Packard authored
      
      
      Don't let a lessee control what the current DRM master is set to;
      that's the job of the "real" master. Otherwise, the lessee would
      disable all access to master operations for the owner and all lessees
      under it.
      
      This matches the same check made in the SET_MASTER ioctl.
      
      Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
      Fixes: 2ed077e4
      
       ("drm: Add drm_object lease infrastructure [v5]")
      Cc: <stable@vger.kernel.org> # v4.15+
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: https://patchwork.freedesktop.org/patch/msgid/20180119015159.1606-1-keithp@keithp.com
      761e05a7
  6. Jan 25, 2018
    • Dave Airlie's avatar
      Merge tag 'drm-misc-next-fixes-2018-01-18' of... · 559f17be
      Dave Airlie authored
      Merge tag 'drm-misc-next-fixes-2018-01-18' of git://anongit.freedesktop.org/drm/drm-misc into drm-next
      
      Fixes for 4.16:
      
      Fixes one Kconfig issue and a enable some panels to work properly.
      There is also a fix of error code return in sun4i.
      
      * tag 'drm-misc-next-fixes-2018-01-18' of git://anongit.freedesktop.org/drm/drm-misc:
        drm: Fix PANEL_ORIENTATION_QUIRKS breaking the Kconfig DRM menuconfig
        drm/panel: lvds: Handle the optional regulator case properly
        drm/sun4i: Fix error code in sun4i_tcon_bind()
      559f17be
    • Dave Airlie's avatar
      Merge branch 'drm-next-4.16' of git://people.freedesktop.org/~agd5f/linux into drm-next · 22bc72c8
      Dave Airlie authored
       A few more fixes for 4.16, nothing major.
      
      A few more fixes for 4.16.  This is on top of the pull request from
      last week.  Most notable change here is a fix to the link order for
      the now separate from amdgpu GPU scheduler to fix crashes when the
      modules are build into the kernel rather than as modules.
      
      * 'drm-next-4.16' of git://people.freedesktop.org/~agd5f/linux:
        drm: fix gpu scheduler link order
        drm/amd/display: Demote error print to debug print when ATOM impl missing
        drm/amdgpu: Avoid leaking PM domain on driver unbind (v2)
        drm/amd/amdgpu: Add Polaris version check
        drm/amdgpu: Reenable manual GPU reset from sysfs
        drm/amdgpu: disable MMHUB power gating on raven
        drm/ttm: Don't unreserve swapped BOs that were previously reserved
        drm/ttm: Don't add swapped BOs to swap-LRU list
        drm/amdgpu: only check for ECC on Vega10
        drm/amd/powerplay: Fix smu_table_entry.handle type
        drm/ttm: add VADDR_FLAG_UPDATED_COUNT to correctly update dma_page global count
        drm/radeon: fill in rb backend map on evergreen/ni.
        drm/amdgpu/gfx9: fix ngg enablement to clear gds reserved memory (v2)
        drm/ttm: only free pages rather than update global memory count together
        drm/amdgpu: fix CPU based VM updates
        drm/amdgpu: fix typo in amdgpu_vce_validate_bo
        drm/amdgpu: fix amdgpu_vm_pasid_fault_credit
        drm/ttm: check the return value of register_shrinker
        drm/radeon: fix sparse warning: Should it be static?
      22bc72c8
    • Christian König's avatar
      drm: fix gpu scheduler link order · 87440329
      Christian König authored
      
      
      It should initialize before the drivers using it.
      
      Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
      Bug: https://bugs.freedesktop.org/show_bug.cgi?id=104736
      Reviewed-by: default avatarMike Lothian <mike@fireburn.co.uk>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      87440329
    • Harry Wentland's avatar
      drm/amd/display: Demote error print to debug print when ATOM impl missing · 30305f58
      Harry Wentland authored
      
      
      I assumed wrongfully that all relevant functions should be implemented.
      Apparently this isn't the case. Demote the print to debug level for now.
      
      Signed-off-by: default avatarHarry Wentland <harry.wentland@amd.com>
      Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
      Acked-by: default avatarHarry Wentland <harry.wentland@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      30305f58
  7. Jan 23, 2018
  8. Jan 20, 2018
  9. Jan 19, 2018