1. 02 Nov, 2017 1 commit
  2. 07 Nov, 2016 2 commits
  3. 30 Jul, 2016 1 commit
    • Mikulas Patocka's avatar
      drm/nouveau/fbcon: fix font width not divisible by 8 · 28668f43
      Mikulas Patocka authored
      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: default avatarMikulas Patocka <mpatocka@redhat.com>
      Fixes: f045f459
      
       ("drm/nouveau/fbcon: fix out-of-bounds memory accesses")
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
      28668f43
  4. 02 Jun, 2016 1 commit
  5. 20 May, 2016 1 commit
  6. 28 Aug, 2015 1 commit
    • Ben Skeggs's avatar
      drm/nouveau/nvif: simplify and tidy library interfaces · a01ca78c
      Ben Skeggs authored
      
      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: default avatarBen Skeggs <bskeggs@redhat.com>
      a01ca78c
  7. 27 Jul, 2015 1 commit
  8. 09 Aug, 2014 2 commits
  9. 03 Oct, 2012 3 commits
    • Ben Skeggs's avatar
      drm/nouveau: port remainder of drm code, and rip out compat layer · 77145f1c
      Ben Skeggs authored
      
      v2: Ben Skeggs <bskeggs@redhat.com>
      - fill in nouveau_pm.dev to prevent oops
      - fix ppc issues (build + OF shadow)
      Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
      77145f1c
    • Ben Skeggs's avatar
      drm/nouveau: port all engines to new engine module format · ebb945a9
      Ben Skeggs authored
      
      This is a HUGE commit, but it's not nearly as bad as it looks - any problems
      can be isolated to a particular chipset and engine combination.  It was
      simply too difficult to port each one at a time, the compat layers are
      *already* ridiculous.
      
      Most of the changes here are simply to the glue, the process for each of the
      engine modules was to start with a standard skeleton and copy+paste the old
      code into the appropriate places, fixing up variable names etc as needed.
      
      v2: Marcin Slusarz <marcin.slusarz@gmail.com>
      - fix find/replace bug in license header
      
      v3: Ben Skeggs <bskeggs@redhat.com>
      - bump indirect pushbuf size to 8KiB, 4KiB barely enough for userspace and
        left no space for kernel's requirements during GEM pushbuf submission.
      - fix duplicate assignments noticed by clang
      
      v4: Marcin Slusarz <marcin.slusarz@gmail.com>
      - add sparse annotations to nv04_fifo_pause/nv04_fifo_start
      - use ioread32_native/iowrite32_native for fifo control registers
      
      v5: Ben Skeggs <bskeggs@redhat.com>
      - rebase on v3.6-rc4, modified to keep copy engine fix intact
      - nv10/fence: unmap fence bo before destroying
      - fixed fermi regression when using nvidia gr fuc
      - fixed typo in supported dma_mask checking
      Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
      ebb945a9
    • Ben Skeggs's avatar
      drm/nouveau: restructure source tree, split core from drm implementation · 02a841d4
      Ben Skeggs authored
      
      Future work will be headed in the way of separating the policy supplied by
      the nouveau drm module from the mechanisms provided by the driver core.
      
      There will be a couple of major classes (subdev, engine) of driver modules
      that have clearly defined tasks, and the further directory structure change
      is to reflect this.
      
      No code changes here whatsoever, aside from fixing up a couple of include
      file pathnames.
      Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
      02a841d4
  10. 02 Oct, 2012 1 commit
  11. 24 May, 2012 1 commit
  12. 23 Jun, 2011 3 commits
  13. 29 Dec, 2010 1 commit
  14. 21 Dec, 2010 1 commit