summaryrefslogtreecommitdiffstats
path: root/drivers
Commit message (Collapse)AuthorAgeFilesLines
* drm/nouveau/core: add some missing subdev/engine disable flagsBen Skeggs2012-11-292-4/+10
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* drm/nouveau/bios: implement BIT 'U' table (and subtable) parsing in coreBen Skeggs2012-11-293-0/+227
| | | | | | | This will, in the near future, replace what's currently in the DRM nouveau_bios.c code. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* drm/nvd0/disp: allocate display and evo channels from driver coreBen Skeggs2012-11-291-354/+375
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* drm/nouveau: run mode_config destructor before destroying internal display stateBen Skeggs2012-11-291-2/+3
| | | | | | | Later changes will depend on being able to pull down CRTCs etc with the master display state still intact. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* drm/nouveau/drm/nvd0/disp: display->dispBen Skeggs2012-11-291-15/+15
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* drm/nvd0/disp: introduce a nvd0_head as a subclass of nouveau_crtcBen Skeggs2012-11-291-20/+24
| | | | | | | This will be used instead of storing a heap of per-head data (such as evo channels) in nvd0_display in some other way. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* drm/nvd0-nve0/disp: initial implementation of evo channel classesBen Skeggs2012-11-298-14/+671
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* drm/nv50/disp: allow PCI_US pushbuf bindingBen Skeggs2012-11-291-0/+3
|
* drm/nv50/disp: initial implementation of the various channel object classesBen Skeggs2012-11-299-112/+601
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* drm/nv50/disp: enable interrupts and setup memory areaBen Skeggs2012-11-291-5/+28
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* drm/nv50/disp: copy caps to evoBen Skeggs2012-11-291-2/+40
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* drm/nv50/disp: create skeleton display/channel object classesBen Skeggs2012-11-2910-25/+699
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* drm/nvd0/dmaobj: initial bind() method implementationBen Skeggs2012-11-292-1/+43
| | | | | | | 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-292-1/+69
| | | | | | 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-296-16/+51
| | | | | | | 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-295-3/+88
| | | | | | | 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-292-6/+26
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* drm/nouveau/dmaobj: move parent class check to bind() methodBen Skeggs2012-11-295-17/+41
| | | | | | | | | | | 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-295-188/+63
| | | | | | | 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-2912-45/+45
| | | | | | | 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-291-2/+2
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* drm/nouveau: remove newline-only NV_DEBUG callsBen Skeggs2012-11-297-39/+0
| | | | | | | 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-291-4/+72
| | | | | 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-291-1/+1
| | | | | 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-291-1/+1
| | | | | | | | 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-291-1/+1
| | | | | | 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-296-3/+107
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* drm/nv40/fb: enable z compressionBen Skeggs2012-11-295-5/+24
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* drm/nv20/fb: fixup compression tag allocation sizeBen Skeggs2012-11-293-30/+17
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* drm/nv30-nv40/graph: poke zcomp regs from tile_prog hookBen Skeggs2012-11-293-5/+38
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* drm/nv30-nv40/fb: call zcomp setup hook from tiling setupBen Skeggs2012-11-2910-20/+16
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* drm/nouveau/fb: create tag heap from common code for all relevant chipsetsBen Skeggs2012-11-2920-404/+468
| | | | | | 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-294-5/+19
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* drm/nouveau: replace some open-coded mm_initialised checksBen Skeggs2012-11-293-13/+18
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* drm/nouveau/fb: read TILE_BASE after writing it to avoid a hardware raceBen Skeggs2012-11-294-0/+4
| | | | | | | 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-296-6/+24
| | | | | | 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-295-4/+36
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* drm/nv20/fb: fix zcomp register calculation on big-endian systemsBen Skeggs2012-11-292-0/+6
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* drm/nv40/fb: split implementation into nv40/nv41/nv44/nv46/nv47/nv49/nv4e piecesBen Skeggs2012-11-2910-112/+526
| | | | | | 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-295-4/+80
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* drm/nv20/fb: split implementation into nv20/nv25 piecesBen Skeggs2012-11-295-17/+120
| | | | | | | 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-292-19/+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-291-5/+13
| | | | | | | 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/doc: add new dp helpers into drm DocBookDaniel Vetter2012-11-281-0/+21
| | | | | | | | | | | | | | I didn't bother with documenting the really trivial new "extract something from dpcd" helpers, but the i2c over aux ch is now documented a bit. v2: Clarify the comment for i2c_dp_aux_add_bus a bit. v3: Fix more spelling fail spotted by Laurent Pinchart. Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dave Airlie <airlied@redhat.com>
* drm/doc: integrate fb helper reference into docsDaniel Vetter2012-11-281-4/+15
| | | | | | | | | | | | Again only minimal changes to make kerneldoc no longer shout. Plus a little introduction in the form of a inline DOC: section to quickly explain what this is all about. v2: Fixup spelling fail. Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dave Airlie <airlied@redhat.com>
* drm/doc: integrate crtc helper api into docbookDaniel Vetter2012-11-281-24/+42
| | | | | | | | | | | | | | | | | | - Add the missing doc for drm_helper_move_panel_connectors_to_head. - Fixup any outdated stuff in existing sections. I've only looked at those kerneldoc headers that actually resulted in a complaint from the kerneldoc parser tool. v2: - Actually include the docbook snippet in the right patch. - Fix spelling fail. v3: It's now called drm_crtc_helper_set_mode, spotted by Laurent Pinchart. Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dave Airlie <airlied@redhat.com>
* drm/edid: tune down debug message in parse_hdmi_vsdbDaniel Vetter2012-11-281-1/+1
| | | | | | | | | | Those tend to be totally not interesting for end-users, and for debugging we tend to dump the entire noise anyway by enabling all debug messages. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=57388 Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dave Airlie <airlied@redhat.com>
* drm: only build ati_pcigart if PCI enabledJames Hogan2012-11-281-1/+2
| | | | | | | | | | | | Prevent ati_pcigart.c being built unless PCI is enabled. The exported functions in this file are only used by drivers which depend on PCI (namely r128 and radeon), and it tries to use PCI specific functions (pci_unmap_page, pci_map_page, and pci_dma_mapping_error) that cause compiler errors when PCI is disabled. Signed-off-by: James Hogan <james.hogan@imgtec.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
* drm/vmwgfx: Tighten the security around buffer mapsThomas Hellstrom2012-11-283-5/+26
| | | | | | | | | Make sure that other DRM clients can't map the contents of non-shareable buffer objects. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
* drm: tegra: Add Tegra30 supportThierry Reding2012-11-283-1/+5
| | | | | | | | | | Add support for host1x, the display controllers and HDMI on the Tegra30 SoC. Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de> Tested-by: Stephen Warren <swarren@nvidia.com> Tested-by: Mark Zhang <markz@nvidia.com> Signed-off-by: Dave Airlie <airlied@redhat.com>