aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau
Commit message (Collapse)AuthorAge
...
* | drm/nv50/disp: enable interrupts and setup memory areaBen Skeggs2012-11-28
| | | | | | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* | drm/nv50/disp: copy caps to evoBen Skeggs2012-11-28
| | | | | | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* | drm/nv50/disp: create skeleton display/channel object classesBen Skeggs2012-11-28
| | | | | | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* | drm/nvd0/dmaobj: initial bind() method implementationBen Skeggs2012-11-28
| | | | | | | | | | | | | | Currently unused, and rudimentary. Lots to figure out here still, but this is sufficient for what disp will need. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* | drm/nvc0/dmaobj: implement initial bind() methodBen Skeggs2012-11-28
| | | | | | | | | | | | Currently unused. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* | drm/nv50/dmaobj: extend class to allow gpu-specific attributes to be definedBen Skeggs2012-11-28
| | | | | | | | | | | | | | disp is going to need to be able to create more specific dma objects than was previously possible. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* | drm/nvd0/dmaobj: duplicate fermi class, will diverge real soon nowBen Skeggs2012-11-28
| | | | | | | | | | | | | | The hardware dmaobj format completely changed in GF119, so these will need a separate implementation. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* | drm/nvc0/dmaobj: stub bind function for now so we can call unconditionallyBen Skeggs2012-11-28
| | | | | | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* | drm/nouveau/dmaobj: move parent class check to bind() methodBen Skeggs2012-11-28
| | | | | | | | | | | | | | | | | | | | | | Otherwise when nvc0- gains a bind() method (disp needs it), the fifo engine will attempt to create a dma object for the push buffer, which is unnecessary on fermi. The only sane place to put these checks is in the bind method itself, and have it unconditionally called from wherever it might be needed. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* | drm/nouveau/dmaobj: merge everything except ctor and bind togetherBen Skeggs2012-11-28
| | | | | | | | | | | | | | Simplifies things a little, and currently no reason to need chipset-specific dmaobj constructors. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* | drm/nouveau: pass address to object accessor functions as u64Ben Skeggs2012-11-28
| | | | | | | | | | | | | | Will be required by future work. Make the API change now to catch any (but hopefully none) unexpected fallout. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* | drm/nouveau/gpio: place upper limit on using old-school tvdac bios dataBen Skeggs2012-11-28
| | | | | | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* | drm/nouveau: remove newline-only NV_DEBUG callsBen Skeggs2012-11-28
| | | | | | | | | | | | | | This used to output the function name, now doesn't, so just looks stupid. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* | drm/nv50: decode PGRAPH status registers on TLB flush failMarcin Slusarz2012-11-28
| | | | | | | | | | SIgned-off-by: Marcin Slusarz <marcin.slusarz@gmail.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* | drm/nouveau/clk: fix crystal frequency retrieval on nv25Viktor Novotný2012-11-28
| | | | | | | | | | Signed-off-by: Viktor Novotný <noviktor@seznam.cz> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* | drm/nouveau: remove unused variable from nouveau_bios_shadow_ofMarcin Slusarz2012-11-28
| | | | | | | | | | | | | | | | drivers/gpu/drm/nouveau/core/subdev/bios/base.c: warning: unused variable 'i' Reported-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* | drm/nv40/fb: use an actual compressed zeta formatBen Skeggs2012-11-28
| | | | | | | | | | | | SPLIT is apparently just that, and only splits Z and S components. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* | drm/nv30/fb: enable z compressionBen Skeggs2012-11-28
| | | | | | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* | drm/nv40/fb: enable z compressionBen Skeggs2012-11-28
| | | | | | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* | drm/nv20/fb: fixup compression tag allocation sizeBen Skeggs2012-11-28
| | | | | | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* | drm/nv30-nv40/graph: poke zcomp regs from tile_prog hookBen Skeggs2012-11-28
| | | | | | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* | drm/nv30-nv40/fb: call zcomp setup hook from tiling setupBen Skeggs2012-11-28
| | | | | | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* | drm/nouveau/fb: create tag heap from common code for all relevant chipsetsBen Skeggs2012-11-28
| | | | | | | | | | | | A nv2x bug wrt hardcoded tag counts is now also fixed as a side-effect. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* | drm/nv30/fb: start bashing zcomp registers with 'disabled' (for now)Ben Skeggs2012-11-28
| | | | | | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* | drm/nouveau: replace some open-coded mm_initialised checksBen Skeggs2012-11-28
| | | | | | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* | drm/nouveau/fb: read TILE_BASE after writing it to avoid a hardware raceBen Skeggs2012-11-28
| | | | | | | | | | | | | | Apparently needed for turbocache nv4x chips at least, we'll just do it everywhere... Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* | drm/nv40/fb: start bashing zcomp registers on relevant chipsetsBen Skeggs2012-11-28
| | | | | | | | | | | | Always bashing "disabled" for now, actual compressing coming up... Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* | drm/nv30-nv40/fb: make use of bankoff for zeta buffers, where supportedBen Skeggs2012-11-28
| | | | | | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* | drm/nv20/fb: fix zcomp register calculation on big-endian systemsBen Skeggs2012-11-28
| | | | | | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* | drm/nv40/fb: split implementation into nv40/nv41/nv44/nv46/nv47/nv49/nv4e piecesBen Skeggs2012-11-28
| | | | | | | | | | | | Wow, this is a nice complicated mess of build-your-own-mc blocks... Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* | drm/nv30/fb: split implementation into nv34(nv10)/nv30/nv35 piecesBen Skeggs2012-11-28
| | | | | | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* | drm/nv20/fb: split implementation into nv20/nv25 piecesBen Skeggs2012-11-28
| | | | | | | | | | | | | | There's more stuff that can be shared in the constructor, will be merged together again later. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* | drm/nouveau/fb: split tile and compression region handlingBen Skeggs2012-11-28
| | | | | | | | | | | | | | This is in preparation for extending the support to the remaining chipsets, to allow for sharing more functions. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* | drm/nouveau/bios: attempt to fetch entire acpi rom image in one shotBen Skeggs2012-11-28
| | | | | | | | | | | | | | v2: fdo#55948 - the _ROM method silently truncates size to 4KiB, perform a checksum test and fall back to slow _ROM access on failure. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* | drm/ttm: remove sync_arg from driver functionsMaarten Lankhorst2012-11-20
| | | | | | | | | | | | Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com> Reviewed-By: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
* | drm/ttm: remove sync_obj_arg from ttm_bo_move_accel_cleanupMaarten Lankhorst2012-11-20
| | | | | | | | | | | | Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com> Reviewed-By: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
* | drm/nouveau: free memory allocated with alloc_apertures()Tommi Rantala2012-11-20
| | | | | | | | | | | | | | | | Fix a memory leak by deallocating the memory we got from alloc_apertures(). Signed-off-by: Tommi Rantala <tt.rantala@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
* | drm/ttm: remove ttm_buffer_object->buffer_startMarcin Slusarz2012-11-20
|/ | | | | | | | All drivers set it to 0 and nothing uses it. Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com> Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
* drm/nouveau: headless mode by default if pci class != vga displayBen Skeggs2012-10-30
| | | | | | | This is to prevent nouveau from taking over the console on headless boards such as Tesla. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* drm/nouveau: resurrect headless mode since reworkBen Skeggs2012-10-30
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* drm/nv50/fb: prevent oops on chipsets without compression tagsBen Skeggs2012-10-30
| | | | | | Unconditionally create the tagram mm, even if there's zero tags. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* drm/nouveau: allow creation of zero-sized mmBen Skeggs2012-10-30
| | | | | | | | Useful for places where a given chipset may or may not have a given resource, and we want to avoid having to spray checks for the mm's existance around everywhere. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* drm/nouveau/i2c: fix typo when checking nvio i2c port validityBen Skeggs2012-10-30
| | | | | | Reported-by: Mathieu Chouquet-Stringer <mathieu@csetco.com> Tested-by: Mathieu Chouquet-Stringer <mathieu@csetco.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* drm/nouveau: silence modesetting spam on pre-gf8 chipsetsBen Skeggs2012-10-30
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* Merge branch 'drm-nouveau-fixes' of ↵Dave Airlie2012-10-22
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | git://git.freedesktop.org/git/nouveau/linux-2.6 into drm-fixes Fixes from Ben, off note: ACPI ROM regression fix, some IGP and AGP regressions fixes from rework fallout. * 'drm-nouveau-fixes' of git://git.freedesktop.org/git/nouveau/linux-2.6: drm/nouveau/clock: fix missing pll type/addr when matching default entry drm/nouveau/fb: fix reporting of memory type on GF8+ IGPs drm/nv41/vm: don't init hw pciegart on boards with agp bridge drm/nouveau/bios: fetch full 4KiB block to determine ACPI ROM image size drm/nouveau: validate vbios size drm/nouveau: warn when trying to free mm which is still in use drm/nouveau: fix nouveau_mm/nouveau_mm_node leak drm/nouveau/bios: improve error handling when reading the vbios from ACPI drm/nouveau: handle same-fb page flips
| * drm/nouveau/clock: fix missing pll type/addr when matching default entryBen Skeggs2012-10-22
| | | | | | | | | | | | | | | | | | | | This issue is a regression from 70790f4f819875e8f390871fd15bbbf823f28e1b, and causes us to miss a special-case for C51 (NV4E) chipsets and return the wrong reference frequency for the VPLLs. Should fix fdo#56202 Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
| * drm/nouveau/fb: fix reporting of memory type on GF8+ IGPsBen Skeggs2012-10-21
| | | | | | | | | | | | Purely a cosmetic issue at this point. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
| * drm/nv41/vm: don't init hw pciegart on boards with agp bridgeBen Skeggs2012-10-21
| | | | | | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
| * drm/nouveau/bios: fetch full 4KiB block to determine ACPI ROM image sizeBen Skeggs2012-10-21
| | | | | | | | | | | | Buggy firmware leads to bad things happening otherwise.. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
| * drm/nouveau: validate vbios sizeMarcin Slusarz2012-10-21
| | | | | | | | | | | | | | | | | | | | Without checking, we could detect vbios size as 0, allocate 0-byte array (kmalloc returns invalid pointer for such allocation) and crash in nouveau_bios_score while checking for vbios signature. Reported-by: Heinz Diehl <htd@fritha.org> Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>