aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
Commit message (Collapse)AuthorAgeFilesLines
* OMAP4: SGX-KM: Update DDK version to 1.6.16.4061Rodrigo Obregon2011-06-1421-428/+2160
| | | | | | | | | | This patch updates the DDK to version 1.6.16.4061 The corresponding change in the user side most be in place for this DDK to work. Change-Id: I0e3ffff29506115fac5b215b1020d20559ee1853 Signed-off-by: Rodrigo Obregon <robregon@ti.com>
* OMAP4: SGX: UDD: Fixed checking of manual update support for DSS2Lajos Molnar2011-06-141-2/+1
| | | | | | | | | Displays that don't support manual update mode do not implements the get_update_mode() method. Changed code to use the new DSS2 method to check if an overlay is manually updated. Change-Id: I7fecbc62b021cf83bcca74455142198bcfff3d1e Signed-off-by: Lajos Molnar <molnar@ti.com>
* OMAP/SGX: UDD: Make use of new sched_update() call for DSS2 displaysLajos Molnar2011-06-141-5/+12
| | | | | | | | Have SGX now call the new sched_update() so that it is not blocked on a concurrent update. Change-Id: I18bd9d9f36d077ad0ffc79919d2bb861c1fb5dec Signed-off-by: Lajos Molnar <molnar@ti.com>
* SGX: UDD: Give support to calculate DPI from framebuffer infoGustavo Diaz Prado2011-06-141-0/+10
| | | | | | | | | | | | Populates the information needed in the DisplayClass structure reported to SGX Services to determine the panel DPI based on the information given by the framebuffer. This patch is a rebase for DDK 1.6.16.3924. Signed-off-by: sayen mohanty <sayenmohanty@ti.com> Signed-off-by: Gustavo Diaz Prado <x0083741@ti.com> Change-Id: I1234be3711ec61a8da9b1c34065e998066a2d0d0
* SGX: UDD: Correct update and sync sequence for DPI and HDMI panelsGustavo Diaz Prado2011-06-143-13/+21
| | | | | | | | | Prevents tearing on DPI and HDMI panel by following the correct update and sync sequence for those panels. Code is generic for DSI and DPI panels. Change-Id: Ided7bf4e9795d8bd389c63007a7b83834833f720 Signed-off-by: Gustavo Diaz Prado <x0083741@ti.com>
* SGX: UDD: Support for flipping with multiple display typesGustavo Diaz Prado2011-06-142-85/+75
| | | | | | | | | | This patch enables the SGX display driver to support flipping with multiple display types and configurations including DSI auto and manual update modes. Code is compatible with DPI interface panels and HDMI. Change-Id: Iab57b495d29bb406f748a6e5b56612713789b7bb Signed-off-by: Gustavo Diaz Prado <x0083741@ti.com>
* OMAP3: PVR: Won't compile without CONFIG_HAS_EARLYSUSPEND.Steve Schefter2011-06-141-5/+5
| | | | | | | | Add support for compiling with CONFIG_HAS_EARLYSUSPEND turned off. Turning this off is needed as a temporary step in getting OMAP3 support in 2.6.35. Signed-off-by: Steve Schefter <sschefter@ti.com> Acked-by: Leed Aguilar <leed.aguilar@ti.com>
* OMAP4: SGX: Rebase virtual display code for DDK 1.6.16.3924Gustavo Diaz Prado2011-06-143-19/+31
| | | | | | | | Rebases the virtual display code to make it work DDK 1.6.16.3924 and kernel 2.6.35 Signed-off-by: Gustavo Diaz Prado <x0083741@ti.com> Change-Id: I29bc5e14e735b82834a83dbc8245a4ae4095ff57
* SGX:KM DVFS ImplementationHaluk Aral2011-06-142-4/+14
| | | | | | | DVFS Implementation for SGX driver Change-Id: Ic85b2cd8c91c289984fff4ab804eb565506dd9cf Signed-off-by: Haluk Aral <h-aral@ti.com>
* SGX-KM: OMAP4 change SYS_SGX_ACTIVE_POWER_LATENCY_MS to 1Eric Luong2011-06-141-1/+1
| | | | | | Re-submit due to http://review.omapzoom.org/#change,7359 over write it Signed-off-by: Eric Luong <x0119002@ti.com>
* SGX-KM: Upgrading to DDK 1.6.16.3924Hemant Hariyani2011-06-1452-710/+1053
| | | | | | Upgrading kernel side DDK to version 1.6.16.3924. Signed-off-by: Hemant Hariyani <hemanthariyani@ti.com>
* SGX: UDD: Give support to calculate DPI from framebuffer informationGustavo Diaz Prado2011-06-141-0/+10
| | | | | | | | | This patch populates the information needed in the DisplayClass structure reported to SGX Services to determine the panel DPI based on the information given by the framebuffer Signed-off-by: sayen mohanty <sayenmohanty@ti.com> Signed-off-by: Gustavo Diaz Prado <x0083741@ti.com>
* OMAP4: SGX: Rebasing virtual display codeGustavo Diaz Prado2011-06-143-19/+31
| | | | | | | This patch rebases the virtual display code according to the new DSS structures changes to make it work on 2.6.35 Signed-off-by: Gustavo Diaz Prado <x0083741@ti.com>
* SGX-KM: OMAP4 change SYS_SGX_ACTIVE_POWER_LATENCY_MS to 1Eric Luong2011-06-141-1/+1
| | | | | | For L27.7.1 Graphics hand off Signed-off-by: Eric Luong <x0119002@ti.com>
* SGX-KM: OMAP4 K35 Turn on active power managementEric Luong2011-06-141-0/+2
| | | | | | | For L27.7.1 Graphics release Signed-off-by: Eric Luong <x0119002@ti.com> Change-Id: I88aa53bad1b38da196bb094d2c62492609408687
* SGX-KM: Use base address and IRQ from hwmodHemant Hariyani2011-06-142-13/+16
| | | | | | | Remove hard coded base address and IRQ from the SGX driver and use them from hwmod database. Signed-off-by: Hemant Hariyani <hemanthariyani@ti.com>
* SGX-KM: hwmod and pm_runtime adaptationHemant Hariyani2011-06-142-32/+24
| | | | | | | | | | | | | Adding pm_runtime and hwmod support. Device registration happens as a part of omap_device_build in omap_init_gpu (mach-omap2/devices.c) and is not required here in the driver. pm_runtime calls are required to enable and disable required clocks. This patch does not use hwmod base address - a separate patch will be provided for that. Signed-off-by: Hemant Hariyani <hemanthariyani@ti.com>
* SGX-KM Initial SGX driver integration for 2.6.35 kernel.Hemant Hariyani2011-06-14135-0/+66032
| | | | | | | | | This is the first version of SGX driver integration to ensure UI boot-up. Power management and hwmod modifications will be added as patches. Change-Id: If71e6cd651a53f4809e7b978b693cb7d1a89178d Signed-off-by: Hemant Hariyani <hemanthariyani@ti.com>
* drm/radeon/kms: disable hdmi audio by defaultAlex Deucher2011-06-081-2/+2
| | | | | | | | | | | | | | | | | | The current RE'd code causes blank screens and display problems on a lot of systems. So disable it by default for now. It can still be enabled by setting the audio parameter to 1. E.g.: radeon.audio=1 Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=38010 https://bugs.freedesktop.org/show_bug.cgi?id=27731 https://bugs.freedesktop.org/show_bug.cgi?id=35970 https://bugs.freedesktop.org/show_bug.cgi?id=26195 and many other reported problems. Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
* drm/radeon/kms: fix for radeon on systems >4GB without hardware iommuDaniel Haid2011-06-081-0/+1
| | | | | | | | | | | | | | | | | | | | | On my x86_64 system with >4GB of ram and swiotlb instead of a hardware iommu (because I have a VIA chipset), the call to pci_set_dma_mask (see below) with 40bits returns an error. But it seems that the radeon driver is designed to have need_dma32 = true exactly if pci_set_dma_mask is called with 32 bits and false if it is called with 40 bits. I have read somewhere that the default are 32 bits. So if the call fails I suppose that need_dma32 should be set to true. And indeed the patch fixes the problem I have had before and which I had described here: http://choon.net/forum/read.php?21,106131,115940 Acked-by: Alex Deucher <alexdeucher@gmail.com> cc: stable@kernel.org Signed-off-by: Dave Airlie <airlied@redhat.com>
* drm/radeon/kms: set family for use in parser.Dave Airlie2011-06-081-0/+1
| | | | | | | | Wierdly the kms parser never initialised the family, it wasn't really used much, but the fmt checker patch started using it and it fell over. Reported-by: Markus Trippelsdorf <markus@trippelsdorf.de> Signed-off-by: Dave Airlie <airlied@redhat.com>
* Merge branch 'drm-fixes' of ↵Linus Torvalds2011-06-0719-187/+161
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6 * 'drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6: drm/nv40: fall back to paged dma object for the moment drm/nouveau: fix leak of gart mm node drm/nouveau: fix vram page mapping when crossing page table boundaries drm/nv17-nv40: Fix modesetting failure when pitch == 4096px (fdo bug 35901). drm/nouveau: don't create accel engine objects when noaccel=1 drm/nvc0: recognise 0xdX chipsets as NV_C0 drm/i915: Add a no lvds quirk for the Asus EeeBox PC EB1007 drm/i915: Share the common force-audio property between connectors drm/i915: Remove unused enum "chip_family" drm/915: fix relaxed tiling on gen2: tile height drm/i915/crt: Explicitly return false if connected to a digital monitor drm/i915: Replace ironlake_compute_wm0 with g4x_compute_wm0 drm/i915: Only print out the actual number of fences for i915_error_state drm/i915: s/addr & ~PAGE_MASK/offset_in_page(addr)/ drm: i915: correct return status in intel_hdmi_mode_valid() drm/i915: fix regression after clock gating init split drm/i915: fix if statement in ivybridge irq handler
| * Merge remote branch 'nouveau/drm-nouveau-fixes' of /ssd/git/drm-nouveau-next ↵Dave Airlie2011-06-077-59/+74
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into drm-fixes * 'nouveau/drm-nouveau-fixes' of /ssd/git/drm-nouveau-next: drm/nv40: fall back to paged dma object for the moment drm/nouveau: fix leak of gart mm node drm/nouveau: fix vram page mapping when crossing page table boundaries drm/nv17-nv40: Fix modesetting failure when pitch == 4096px (fdo bug 35901). drm/nouveau: don't create accel engine objects when noaccel=1 drm/nvc0: recognise 0xdX chipsets as NV_C0
| | * drm/nv40: fall back to paged dma object for the momentBen Skeggs2011-06-072-2/+2
| | | | | | | | | | | | | | | | | | | | | PCI(E)GART isn't quite stable it seems, fall back to old method until I get the time to sort it out properly. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
| | * drm/nouveau: fix leak of gart mm nodeBen Skeggs2011-06-071-0/+2
| | | | | | | | | | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
| | * drm/nouveau: fix vram page mapping when crossing page table boundariesBen Skeggs2011-06-071-0/+1
| | | | | | | | | | | | | | | | | | Hopefully the cause of nvc0 "page jumping" issue. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
| | * drm/nv17-nv40: Fix modesetting failure when pitch == 4096px (fdo bug 35901).Francisco Jerez2011-06-073-1/+11
| | | | | | | | | | | | | | | | | | | | | Reported-by: Mario Bachmann <grafgrimm77@gmx.de> Tested-by: Greg Turner <gmturner007@ameritech.net> Signed-off-by: Francisco Jerez <currojerez@riseup.net> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
| | * drm/nouveau: don't create accel engine objects when noaccel=1Ben Skeggs2011-06-071-56/+56
| | | | | | | | | | | | | | | | | | Fixes various potential oopses. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
| | * drm/nvc0: recognise 0xdX chipsets as NV_C0Ben Skeggs2011-06-071-0/+2
| | | | | | | | | | | | | | | | | | | | | Should hopefully get modesetting at least from this, it appears these are GF119 chipsets. Accel will come eventually, once I order a board. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
| * | drm/i915: Add a no lvds quirk for the Asus EeeBox PC EB1007Hans de Goede2011-06-041-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I found this while figuring out why gnome-shell would not run on my Asus EeeBox PC EB1007. As a standalone "pc" this device cleary does not have an internal panel, yet it claims it does. Add a quirk to fix this. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Keith Packard <keithp@keithp.com> cc: stable@kernel.org Signed-off-by: Keith Packard <keithp@keithp.com>
| * | drm/i915: Share the common force-audio property between connectorsChris Wilson2011-06-046-37/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | Make the audio property creation routine common and share the single property between the connectors. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Keith Packard <keithp@keithp.com>
| * | drm/i915: Remove unused enum "chip_family"Chris Wilson2011-06-041-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | Superseded by the tracking the render generation in the chipset capabiltiies struct. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Keith Packard <keithp@keithp.com>
| * | drm/915: fix relaxed tiling on gen2: tile heightDaniel Vetter2011-06-041-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A tile on gen2 has a size of 2kb, stride of 128 bytes and 16 rows. Userspace was broken and assumed 8 rows. Chris Wilson noted that the kernel unfortunately can't reliable check that because libdrm rounds up the size to the next bucket. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Keith Packard <keithp@keithp.com>
| * | drm/i915/crt: Explicitly return false if connected to a digital monitorChris Wilson2011-06-041-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rather than proceed on and silently return false by default, mention why we rejected the presence of an EDID as implying the presence of a VGA monitor. (The question arises whether there is a broken EDID which falsely reports a digital connection when attached by VGA.) Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Keith Packard <keithp@keithp.com>
| * | drm/i915: Replace ironlake_compute_wm0 with g4x_compute_wm0Chris Wilson2011-06-041-68/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The computation of the first-level watermarks for g4x and gen5+ are based on the same algorithm, so we can refactor those code paths to use a single function. Note that g4x_compute_wm0 takes a 'plane' argument while ironlake_compute_wm0 took a 'pipe' argument. Both should have used a 'plane' argument, so this patch fixes that as well (not that it caused a problem; ironlake always uses pipe == plane). Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Keith Packard <keithp@keithp.com>
| * | drm/i915: Only print out the actual number of fences for i915_error_stateDaniel Vetter2011-06-041-1/+1
| | | | | | | | | | | | | | | | | | | | | Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Keith Packard <keithp@keithp.com>
| * | drm/i915: s/addr & ~PAGE_MASK/offset_in_page(addr)/Chris Wilson2011-06-041-11/+10
| | | | | | | | | | | | | | | | | | | | | | | | Convert our open coded offset_in_page() to the common macro. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Keith Packard <keithp@keithp.com>
| * | drm: i915: correct return status in intel_hdmi_mode_valid()Nicolas Kaiser2011-06-041-1/+1
| | | | | | | | | | | | | | | | | | Signed-off-by: Nicolas Kaiser <nikai@nikai.net> Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Keith Packard <keithp@keithp.com>
| * | drm/i915: fix regression after clock gating init splitJason Stubbs2011-06-041-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During the refactoring in revision 6067aaeadb5b3df26f27ac827256b1ef01e674f5, the intel_enable_clock_gating was split up into several functions that are then called indirectly. However, which function to call was not specified for the IS_PINEVIEW() case. This patch specifies the correct gating function. Signed-off-by: Jason Stubbs <jasonbstubbs@gmail.com> Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by: Keith Packard <keithp@keithp.com>
| * | drm/i915: fix if statement in ivybridge irq handlerDan Carpenter2011-06-041-1/+1
| |/ | | | | | | | | | | | | | | The extra semicolon was not intended. Signed-off-by: Dan Carpenter <error27@gmail.com> Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Keith Packard <keithp@keithp.com>
* | Merge branch 'drm-radeon-fixes' of ↵Linus Torvalds2011-06-0718-304/+819
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6 * 'drm-radeon-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6: drm/radeon/kms/atom: fix PHY init drm/radeon/kms: add missing Evergreen texture formats to the CS parser drm/radeon/kms: viewport height has to be even drm/radeon/kms: remove duplicate reg from r600 safe regs drm/radeon/kms: add support for Llano Fusion APUs drm/radeon/kms: add llano pci ids drm/radeon/kms: fill in asic struct for llano drm/radeon/kms: add family ids for llano APUs drm/radeon: fix oops in ttm reserve when pageflipping (v2) drm/radeon/kms: clean up the radeon kms Kconfig drm/radeon/kms: fix thermal sensor reading on juniper drm/radeon/kms: add missing case for cayman thermal sensor drm/radeon/kms: add blit support for cayman (v2) drm/radeon/kms/blit: workaround some hw issues on evergreen+
| * drm/radeon/kms/atom: fix PHY initAlex Deucher2011-06-051-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The PHY was not initialized correctly after ac89af1e1010640db072416c786f97391b85790f since the function bailed early as an encoder was not assigned. The encoder isn't necessary for PHY init so just assign to 0 for init so that the table is executed. Reported-by: Ari Savolainen <ari.m.savolainen@gmail.com> Tested-by: Ari Savolainen <ari.m.savolainen@gmail.com> Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
| * drm/radeon/kms: add missing Evergreen texture formats to the CS parserMarek Olšák2011-06-022-10/+21
| | | | | | | | | | | | | | | | | | BC6 and BC7 are described in ARB_texture_compression_bptc. No idea what FMT_32_AS_32_32_32_32 is good for. Signed-off-by: Marek Olšák <maraeo@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
| * drm/radeon/kms: viewport height has to be evenAlex Deucher2011-06-021-4/+8
| | | | | | | | | | | | | | | | | | | | Otherwise, no vblank interrupts. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=37522 Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Cc: stable@kernel.org Signed-off-by: Dave Airlie <airlied@redhat.com>
| * drm/radeon/kms: remove duplicate reg from r600 safe regsAlex Deucher2011-06-021-1/+0
| | | | | | | | | | | | | | It got added twice by accident. Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
| * drm/radeon/kms: add support for Llano Fusion APUsAlex Deucher2011-06-023-0/+116
| | | | | | | | | | | | | | | | | | - add gpu init support - add blit support - add ucode loader Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
| * drm/radeon/kms: fill in asic struct for llanoAlex Deucher2011-06-021-0/+2
| | | | | | | | | | Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
| * drm/radeon/kms: add family ids for llano APUsAlex Deucher2011-06-022-0/+4
| | | | | | | | | | Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
| * drm/radeon: fix oops in ttm reserve when pageflipping (v2)Dave Airlie2011-06-021-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need to take a reference to this object, pinning doesn't take a reference so if userspace deletes the object it can disappear even if pinned. v2: fix error paths to unreference properly also. should fix: https://bugzilla.kernel.org/show_bug.cgi?id=32402 and https://bugzilla.redhat.com/show_bug.cgi?id=680651 Acked-By: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
| * drm/radeon/kms: clean up the radeon kms KconfigAlex Deucher2011-05-261-8/+1
| | | | | | | | | | | | | | | | - no longer in staging - all radeons supported Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>