1. 14 Jun, 2019 2 commits
    • Greg Hackmann's avatar
      dma-buf: give each buffer a full-fledged inode · ed63bb1d
      Greg Hackmann authored
      By traversing /proc/*/fd and /proc/*/map_files, processes with CAP_ADMIN
      can get a lot of fine-grained data about how shmem buffers are shared
      among processes.  stat(2) on each entry gives the caller a unique
      ID (st_ino), the buffer's size (st_size), and even the number of pages
      currently charged to the buffer (st_blocks / 512).
      
      In contrast, all dma-bufs share the same anonymous inode.  So while we
      can count how many dma-buf fds or mappings a process has, we can't get
      the size of the backing buffers or tell if two entries point to the same
      dma-buf.  On systems with debugfs, we can get a per-buffer breakdown of
      size and reference count, but can't tell which processes are actually
      holding the references to each buffer.
      
      Replace the singleton inode with full-fledged inodes allocated by
      alloc_anon_inode().  This involves creating and mounting a
      mini-pseudo-filesystem for dma-buf, following the example in fs/aio.c.
      Signed-off-by: default avatarGreg Hackmann <ghackmann@google.com>
      Signed-off-by: default avatarChenbo Feng <fengc@google.com>
      Signed-off-by: default avatarSumit Semwal <sumit.semwal@linaro.org>
      Link: https://patchwork.freedesktop.org/patch/msgid/20190613223408.139221-2-fengc@google.com
      ed63bb1d
    • Sean Paul's avatar
      drm/amdgpu: Fix connector atomic_check compilation fail · 51e857af
      Sean Paul authored
      I missed amdgpu in my connnector_helper_funcs->atomic_check conversion,
      which is understandably causing compilation failures.
      
      Fixes: 6f3b6278 ("drm: Convert connector_helper_funcs->atomic_check to accept drm_atomic_state")
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
      Cc: Jani Nikula <jani.nikula@linux.intel.com>
      Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
      Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
      Cc: Ben Skeggs <bskeggs@redhat.com>
      Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
      Cc: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
      Cc: Eric Anholt <eric@anholt.net>
      Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com> [for rcar lvds]
      Cc: Sean Paul <seanpaul@chromium.org>
      Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Cc: Maxime Ripard <maxime.ripard@bootlin.com>
      Cc: Sean Paul <sean@poorly.run>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Lyude Paul <lyude@redhat.com>
      Cc: Karol Herbst <karolherbst@gmail.com>
      Cc: Ilia Mirkin <imirkin@alum.mit.edu>
      Cc: dri-devel@lists.freedesktop.org
      Cc: intel-gfx@lists.freedesktop.org
      Cc: linux-renesas-soc@vger.kernel.org
      Reported-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
      Signed-off-by: default avatarSean Paul <seanpaul@chromium.org>
      Signed-off-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20190614002713.141340-1-sean@poorly.run
      51e857af
  2. 13 Jun, 2019 26 commits
  3. 12 Jun, 2019 6 commits
  4. 11 Jun, 2019 6 commits