1. 25 Jun, 2021 36 commits
  2. 24 Jun, 2021 4 commits
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2021-06-25' of git://anongit.freedesktop.org/drm/drm · 44db63d1
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "This is a bit bigger than I'd like at this stage, and I guess last
        week was extra quiet, but it's mostly one fix across three drivers to
        wait for buffer move pinning to complete.
      
        There was one locking change that got reverted so it's just noise.
      
        Otherwise the amdgpu/nouveau changes are for known regressions, and
        otherwise it's just misc changes in kmb/atmel/vc4 drivers.
      
        Summary:
      
        core:
         - auth locking change + brown paper bag revert
      
        radeon/nouveau/amdgpu/ttm:
         - wait for BO to be pinned after moving it (same fix in three
           drivers)
      
        amdgpu:
         - Revert GFX9/10 doorbell fixes, we just end up trading one bug for
           another
         - Potential memory corruption fix in framebuffer handling
      
        nouveau:
         - fix regression checking dma addresses
      
        kmb:
         - error return fix
      
        atmel-hlcdc:
         - fix kernel warnings at boot
         - enable async flips
      
        vc4:
         - fix CPU hang due to power management"
      
      * tag 'drm-fixes-2021-06-25' of git://anongit.freedesktop.org/drm/drm:
        drm/nouveau: fix dma_address check for CPU/GPU sync
        drm/kmb: Fix error return code in kmb_hw_init()
        drm/amdgpu: wait for moving fence after pinning
        drm/radeon: wait for moving fence after pinning
        drm/nouveau: wait for moving fence after pinning v2
        Revert "drm: add a locked version of drm_is_current_master"
        Revert "drm/amdgpu/gfx9: fix the doorbell missing when in CGPG issue."
        Revert "drm/amdgpu/gfx10: enlarge CP_MEC_DOORBELL_RANGE_UPPER to cover full doorbell."
        drm/amdgpu: Call drm_framebuffer_init last for framebuffer init
        drm: add a locked version of drm_is_current_master
        drm/atmel-hlcdc: Allow async page flips
        drm/panel: ld9040: reference spi_device_id table
        drm: atmel_hlcdc: Enable the crtc vblank prior to crtc usage.
        drm/vc4: hdmi: Make sure the controller is powered in detect
        drm/vc4: hdmi: Move the HSM clock enable to runtime_pm
      44db63d1
    • Johan Hovold's avatar
      i2c: robotfuzz-osif: fix control-request directions · 4ca070ef
      Johan Hovold authored
      The direction of the pipe argument must match the request-type direction
      bit or control requests may fail depending on the host-controller-driver
      implementation.
      
      Control transfers without a data stage are treated as OUT requests by
      the USB stack and should be using usb_sndctrlpipe(). Failing to do so
      will now trigger a warning.
      
      Fix the OSIFI2C_SET_BIT_RATE and OSIFI2C_STOP requests which erroneously
      used the osif_usb_read() helper and set the IN direction bit.
      
      Reported-by: syzbot+9d7dadd15b8819d73f41@syzkaller.appspotmail.com
      Fixes: 83e53a8f ("i2c: Add bus driver for for OSIF USB i2c device.")
      Cc: stable@vger.kernel.org      # 3.14
      Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
      Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
      4ca070ef
    • Dave Airlie's avatar
      Merge tag 'drm-misc-fixes-2021-06-24' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes · 5e0e7a40
      Dave Airlie authored
      A DMA address check for nouveau, an error code return fix for kmb, fixes
      to wait for a moving fence after pinning the BO for amdgpu, nouveau and
      radeon, a crtc and async page flip fix for atmel-hlcdc and a cpu hang
      fix for vc4.
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Maxime Ripard <maxime@cerno.tech>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210624190353.wyizoil3wqrrxz5d@gilmour
      5e0e7a40
    • Andreas Hecht's avatar
      i2c: dev: Add __user annotation · 3265a7e6
      Andreas Hecht authored
      Fix Sparse warnings:
      drivers/i2c/i2c-dev.c:546:19: warning: incorrect type in assignment (different address spaces)
      drivers/i2c/i2c-dev.c:549:53: warning: incorrect type in argument 2 (different address spaces)
      
      compat_ptr() returns a pointer tagged __user which gets assigned to a
      pointer missing the __user annotation. The same pointer is passed to
      copy_from_user() as an argument where it is expected to have the __user
      annotation. Fix both by adding the __user annotation to the pointer.
      
      Fixes: 7d5cb456 ("i2c compat ioctls: move to ->compat_ioctl()")
      Signed-off-by: default avatarAndreas Hecht <andreas.e.hecht@gmail.com>
      Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
      3265a7e6