summaryrefslogtreecommitdiff
path: root/drm/dispnv04
AgeCommit message (Collapse)AuthorFilesLines
2015-01-19drm: remove symlinks from build, use Kbuild files for lib buildBen Skeggs16-7240/+0
The DRM build used a separate, symlinked, source tree out of a desire to avoid Kbuild/autotools' object files conflicting. Not only is this very annoying to maintain, but it's made worse by having two entirely separate source file lists to maintain too. Fixes both these issues by ditching automake (it doesn't approve of the kernel's Kbuild syntax) in favour of custom makefiles that can build libnvif.so from the Kbuild files. Like the previous commit, this will never show up in the kernel tree (it has its own version). Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-01-12drm/dispnv04: Remove some unused functionsRickard Strandqvist2-20/+0
Removes some functions that are not used anywhere: nv04_display_late_takedown() nv04_display_early_init() This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-12-02drm: teach nouveau_bo_pin() how to force a contig vram allocationBen Skeggs2-4/+4
We have the ability to move buffers around in the kernel if necessary, and should probably use it rather than failing if userspace passes us a non-contig buffer for a plane. The NOUVEAU_GEM_TILE_NONCONTIG flag from userspace will become a mere initial placement hint once all the relevant paths have been updated. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-12-02drm-next 5a0e9d72136d90f5456bcc465d318f49d3f45838Ben Skeggs1-0/+1
2014-10-02drm-next 7a42e83d36d2d0a68622320900dc4e880b1d920aBen Skeggs2-6/+11
2014-08-10drm: use ram info from nvif_deviceBen Skeggs1-5/+4
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-08-10drm: remove as much direct use of core headers as possibleBen Skeggs2-9/+0
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-08-10drm: port to nvif client/device/objectsBen Skeggs4-6/+5
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-08-10drm: initial pass at moving to struct nvif_deviceBen Skeggs13-124/+124
This is an attempt at isolating some of the changes necessary to port to NVIF in a separate commit. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-08-10drm: kill nouveau_dev() + wrap register macrosBen Skeggs8-148/+148
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-08-10drm: fix some usages of the wrong print functionBen Skeggs1-5/+5
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-08-05kms: take more care when pulling down accelerated fbconBen Skeggs1-2/+2
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-06-07drm-next 8d4ad9d4bb0a618c975a32d77087694ec6336f68Ben Skeggs5-6/+6
2014-04-21v3.15-rc2Ben Skeggs2-11/+11
2014-03-26drm: handle -EACCES runtime PM return codeAlexandre Courbot1-1/+1
pm_runtime_get*() may return -EACCES to indicate a device does not have runtime PM enabled. This is currently the case with platform devices on Nouveau, and is not an error in that context. Handle this case without failure. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23drm: create base display from common codeBen Skeggs2-6/+0
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23plane/nv04: add support for nv04/nv05 video overlayIlia Mirkin1-10/+166
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23plane/nv10: add YUYV supportIlia Mirkin1-3/+4
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-17fix null ptr dereferences on some boardsBen Skeggs2-2/+2
Regression from "device: populate master subdev pointer only when fully constructed" Reported-by: Bob Gleitsmann <rjgleits@bellsouth.net> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2013-12-04plane/nv10: some chipsets don't support NV12Ilia Mirkin1-2/+13
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2013-12-04plane/nv10: add downscaling restrictionsIlia Mirkin1-1/+9
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2013-12-04plane/nv10: fix format computationIlia Mirkin1-8/+9
Otherwise none of the format checks pass, since the width was still in 16.16 encoding. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2013-12-04v3.13-rc1Ben Skeggs5-13/+11
2013-11-05i2c: use a custom bitbanging delay for the adt7473Martin Peres2-16/+22
This patch adds a way to define a custom delay when scanning for i2c devices because the adt7473 sometimes doesn't like the default bitbanging udelay. Signed-off-by: Martin Peres <martin.peres@labri.fr> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2013-11-05kms/nv10: add plane support for nv10-nv40Ilia Mirkin5-4/+332
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2013-11-05drm/nv10: introduce a new NV_11 card typeIlia Mirkin1-1/+1
NV11/17/1F/18 come after NV10/15/16/1A. In order to facilitate using numerical comparisons, split up the two sets into different card types. This change should be a no-op except that the relevant cards will see NV11 printed instead of NV10 for the family. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2013-11-05drm: fix backlight mask on ppc powerbookIlia Mirkin1-1/+1
This code was originally moved to using nv_mask by d31e078d84. This should not have any actual effect since the mask isn't applied to the value. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2013-09-17v3.12-rc1Ben Skeggs2-3/+48
2013-08-21drm/dispnv04: fix framebuffer pin refcountinglinux-3.11Ben Skeggs2-15/+44
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2013-04-24dispnv04: hide all the cruft away in its own little holeBen Skeggs15-0/+6688
It'd be pretty awesome if someone would care enough to port this all properly to a class interface, perhaps submitting a command stream to the core via a sw object on PFIFO (emulating how EVO works basically, and also what nvidia have done forever..).. But, this seems unlikely given how old this hardware is now, so, lets just hide it away. There's a heap of other bits and pieces laying around that are still tangled. I'll (re)move them in pieces. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>