1. 26 Apr, 2013 4 commits
    • Laurent Pinchart's avatar
      drm/shmobile: Fix race condition between page flip request and handler · 17f0efc4
      Laurent Pinchart authored
      The page flip handler stores the page flip event pointer and then calls
      drm_vblank_get() to enable the vblank interrupt. Due to the vblank off
      delay, the vblank interrupt can be enabled in the hardware at that
      point, even if the vblank reference count is equal to 0. If a vblank
      interrupt is triggered between storing the event pointer and calling
      drm_vblank_get(), the page flip completion handler will process the
      event and call drm_vblank_put() with a reference count equal to 0. This
      will result in a BUG_ON.
      
      Fix the race condition by calling drm_vblank_get() before storing the
      event pointer.
      Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      17f0efc4
    • Arnd Bergmann's avatar
      drm: export drm_vm_open_locked · d5028995
      Arnd Bergmann authored
      The EXYNOS DRM driver uses drm_vm_open_locked in its mmap() function,
      and it can be built as a loadable module, which currently fails.
      This exports the symbol from the DRM core to avoid
      
      ERROR: "drm_vm_open_locked" [drivers/gpu/drm/exynos/exynosdrm.ko] undefined!
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Cc: Inki Dae <inki.dae@samsung.com>
      Cc: Joonyoung Shim <jy0922.shim@samsung.com>
      Cc: Seung-Woo Kim <sw0312.kim@samsung.com>
      Cc: Kyungmin Park <kyungmin.park@samsung.com>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      d5028995
    • Arnd Bergmann's avatar
      drm/tilcdc: use only a single module device table · a59e1ff3
      Arnd Bergmann authored
      The tilcdc driver fails to be built as a module because of extraneous
      MODULE_DEVICE_TABLE entries:
      
      drivers/gpu/drm/tilcdc/tilcdc_slave.o:(.data+0x54): multiple definition of `__mod_of_device_table'
      drivers/gpu/drm/tilcdc/tilcdc_tfp410.o:(.data+0x54): first defined here
      drivers/gpu/drm/tilcdc/tilcdc_panel.o:(.data+0x54): multiple definition of `__mod_of_device_table'
      drivers/gpu/drm/tilcdc/tilcdc_tfp410.o:(.data+0x54): first defined here
      drivers/gpu/drm/tilcdc/tilcdc_drv.o:(.data+0x184): multiple definition of `__mod_of_device_table'
      drivers/gpu/drm/tilcdc/tilcdc_tfp410.o:(.data+0x54): first defined here
      
      Since the entire point of these entries is to make the module autoload
      when one of the devices is present, it's enough to keep the one entry
      for "ti,am33xx-tilcdc", which should always be there if any of the
      others are.
      Acked-by: default avatarRob Clark <robdclark@gmail.com>
      Cc: dri-devel@lists.freedesktop.org
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      a59e1ff3
    • Dave Airlie's avatar
      Merge branch 'gma500-fixes' of git://github.com/patjak/drm-gma500 into drm-next · 84806ade
      Dave Airlie authored
      Two fixes for gma500. First one from Anisse allows us to handle ASLE irqs even
      when BIOS doesn't trigger a pipe event irq. The second one allows dual head
      setups to have a big shared framebuffer.
      
      * 'gma500-fixes' of git://github.com/patjak/drm-gma500:
        drm/gma500: Increase max resolution for mode setting
        drm/gma500: fix backlight hotkeys behaviour on netbooks
      84806ade
  2. 25 Apr, 2013 2 commits
  3. 24 Apr, 2013 7 commits
  4. 23 Apr, 2013 16 commits
  5. 22 Apr, 2013 11 commits