1. 30 7月, 2016 1 次提交
    • M
      drm/nouveau/fbcon: fix font width not divisible by 8 · 28668f43
      Mikulas Patocka 提交于
      The patch f045f459 ("drm/nouveau/fbcon: fix out-of-bounds memory accesses")
      tries to fix some out of memory accesses. Unfortunatelly, the patch breaks the
      display when using fonts with width that is not divisiable by 8.
      
      The monochrome bitmap for each character is stored in memory by lines from top
      to bottom. Each line is padded to a full byte.
      
      For example, for 22x11 font, each line is padded to 16 bits, so each
      character is consuming 44 bytes total, that is 11 32-bit words. The patch
      f045f459 changed the logic to "dsize = ALIGN(image->width *
      image->height, 32) >> 5", that is just 8 words - this is incorrect and it
      causes display corruption.
      
      This patch adds the necesary padding of lines to 8 bytes.
      
      This patch should be backported to stable kernels where f045f459 was
      backported.
      Signed-off-by: NMikulas Patocka <mpatocka@redhat.com>
      Fixes: f045f459 ("drm/nouveau/fbcon: fix out-of-bounds memory accesses")
      Cc: stable@vger.kernel.org
      Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
      28668f43
  2. 02 6月, 2016 1 次提交
  3. 20 5月, 2016 1 次提交
  4. 28 8月, 2015 1 次提交
    • B
      drm/nouveau/nvif: simplify and tidy library interfaces · a01ca78c
      Ben Skeggs 提交于
      A variety of tweaks to the NVIF library interfaces, mostly ripping out
      things that turned out to be not so useful.
      
      - Removed refcounting from nvif_object, callers are expected to not be
        stupid instead.
      - nvif_client is directly reachable from anything derived from nvif_object,
        removing the need for heuristics to locate it
      - _new() versions of interfaces, that allocate memory for the object
        they construct, have been removed.  The vast majority of callers used
        the embedded _init() interfaces.
      - No longer storing constructor arguments (and the data returned from
        nvkm) inside nvif_object, it's more or less unused and just wastes
        memory.
      Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
      a01ca78c
  5. 27 7月, 2015 1 次提交
  6. 10 8月, 2014 4 次提交
  7. 14 11月, 2013 1 次提交
  8. 03 10月, 2012 4 次提交
  9. 24 5月, 2012 1 次提交
  10. 08 12月, 2010 1 次提交
  11. 03 12月, 2010 1 次提交
  12. 24 9月, 2010 1 次提交
  13. 19 5月, 2010 1 次提交
  14. 07 4月, 2010 1 次提交
  15. 10 3月, 2010 1 次提交
  16. 25 2月, 2010 1 次提交
  17. 09 2月, 2010 1 次提交
  18. 11 1月, 2010 6 次提交
  19. 11 12月, 2009 1 次提交
    • B
      drm/nouveau: Add DRM driver for NVIDIA GPUs · 6ee73861
      Ben Skeggs 提交于
      This adds a drm/kms staging non-API stable driver for GPUs from NVIDIA.
      
      This driver is a KMS-based driver and requires a compatible nouveau
      userspace libdrm and nouveau X.org driver.
      
      This driver requires firmware files not available in this kernel tree,
      interested parties can find them via the nouveau project git archive.
      
      This driver is reverse engineered, and is in no way supported by nVidia.
      
      Support for nearly the complete range of nvidia hw from nv04->g80 (nv50)
      is available, and the kms driver should support driving nearly all
      output types (displayport is under development still) along with supporting
      suspend/resume.
      
      This work is all from the upstream nouveau project found at
      nouveau.freedesktop.org.
      
      The original authors list from nouveau git tree is:
      Anssi Hannula <anssi.hannula@iki.fi>
      Ben Skeggs <bskeggs@redhat.com>
      Francisco Jerez <currojerez@riseup.net>
      Maarten Maathuis <madman2003@gmail.com>
      Marcin Kościelnicki <koriakin@0x04.net>
      Matthew Garrett <mjg@redhat.com>
      Matt Parnell <mparnell@gmail.com>
      Patrice Mandin <patmandin@gmail.com>
      Pekka Paalanen <pq@iki.fi>
      Xavier Chantry <shiningxc@gmail.com>
      along with project founder Stephane Marchesin <marchesin@icps.u-strasbg.fr>
      Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      6ee73861