Re: [PATCH 2/5] drm: Make the HPD status updates debug logs more readable

2013-05-09 Thread Jani Nikula
On Wed, 08 May 2013, Ville Syrjälä wrote: > On Wed, May 08, 2013 at 05:03:31PM +0100, Damien Lespiau wrote: >> +static const char *connector_status_str(enum drm_connector_status status) >> +{ >> +switch (status) { >> +case connector_status_connected: >> +return "connected"; >>

[Bug 57919] Visual glitches in unity with Radeon HD 7600M

2013-05-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=57919 --- Comment #17 from Thilo Cestonaro --- Hey ho, I updated to ubuntu raring latest again and the bug is still bugging me ;). Please let me know if I can provide more info so the bug can be fixed. Greetings Thilo -- You are receiving this mai

[PATCH] radeon: add RADEON_SURF_FMASK flag which disables 2D->1D tiling transition

2013-05-09 Thread Marek Olšák
I will release a new version of libdrm after this is committed. --- radeon/radeon_surface.c |9 ++--- radeon/radeon_surface.h |1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/radeon/radeon_surface.c b/radeon/radeon_surface.c index 288b5e2..56012da 100644 --- a/radeo

[Bug 64201] OpenCL usage result segmentation fault on r600g with HD6850.

2013-05-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=64201 --- Comment #15 from Tom Stellard --- (In reply to comment #8) > (In reply to comment #7) > > I would recommend using bfgminer for bitcoin mining. It auto-detects the > > mesa platform, and disabled unsupported features. All you need to do to g

[Bug 57831] radeon fatal error during GPU init (Radeon 5850, KVM GPU passthrough)

2013-05-09 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=57831 Luke-Jr changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Bug 57831] radeon fatal error during GPU init (Radeon 5850, KVM GPU passthrough)

2013-05-09 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=57831 --- Comment #7 from Alex Deucher 2013-05-09 23:06:32 --- That's not something I'd like to support in the driver. If you can't get the vbios, you probably have bigger problems. -- Configure bugmail: https://bugzilla.kernel.org/userprefs.cg

[PATCH 11/12] drm: DRM should depend on HAS_DMA

2013-05-09 Thread Geert Uytterhoeven
If NO_DMA=y: drivers/built-in.o: In function `__drm_pci_free': drivers/gpu/drm/drm_pci.c:112: undefined reference to `dma_free_coherent' drivers/built-in.o: In function `drm_pci_alloc': drivers/gpu/drm/drm_pci.c:72: undefined reference to `dma_alloc_coherent' drivers/built-in.o: In function `drm_g

[Bug 57831] radeon fatal error during GPU init (Radeon 5850, KVM GPU passthrough)

2013-05-09 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=57831 --- Comment #6 from Luke-Jr 2013-05-09 22:52:11 --- For the workaround, I meant the driver ignoring the vbios ROM, and instead loading it from a firmware file. ;) -- Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email --

[Bug 64376] radeon fatal error during GPU init (Radeon 5850, KVM GPU passthrough)

2013-05-09 Thread bugzilla-dae...@freedesktop.org
. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20130509/d5d36893/attachment.html>

[Bug 57831] radeon fatal error during GPU init (Radeon 5850, KVM GPU passthrough)

2013-05-09 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=57831 --- Comment #5 from Alex Deucher 2013-05-09 22:32:47 --- You should be able to pass the existing pci rom resource through to the VM, but I'm not really a KVM expert. Just about every graphics driver is going to need the vbios image so there

[Bug 57831] radeon fatal error during GPU init (Radeon 5850, KVM GPU passthrough)

2013-05-09 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=57831 --- Comment #4 from Luke-Jr 2013-05-09 22:19:33 --- Confirmed both the fglrx and radeon systems are getting the Cirrus (emulated) VGA ROM instead of the Radeon ROM. Is there a way I can override/provide the Radeon ROM to the driver as a wor

[Bug 64201] OpenCL usage result segmentation fault on r600g with HD6850.

2013-05-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=64201 --- Comment #14 from Aaron Watry --- > @Aaron, could you use pyrit or any other OpenCL tools with yours HD6850 > without lockup? I get the same error from pyrit (cpyrit-opencl) as you do: > awatry@veer:~/src/opencl_applications/cpyrit-opencl-0.

[Bug 57831] radeon fatal error during GPU init (Radeon 5850, KVM GPU passthrough)

2013-05-09 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=57831 --- Comment #3 from Alex Deucher 2013-05-09 21:01:41 --- No both drivers need the vbios image. The closed driver either gets the vbios via some alternative means or it has some sort of fallback image if it can't find the actual vbios image.

[Bug 57831] radeon fatal error during GPU init (Radeon 5850, KVM GPU passthrough)

2013-05-09 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=57831 --- Comment #2 from Luke-Jr 2013-05-09 20:47:30 --- I guess I assumed that the hardware end should be working fine since fglrx works. Is needing the PCI ROM something unique to the free drivers? -- Configure bugmail: https://bugzilla.kerne

[RFC/PATCH v2 0/8] Clean up write-combining MTRR addition

2013-05-09 Thread Jerome Glisse
On Thu, May 9, 2013 at 3:46 PM, Andy Lutomirski wrote: > A fair number of drivers (mostly graphics) add write-combining MTRRs. > Most ignore errors and most add the MTRR even on PAT systems which don't > need to use MTRRs. This comment is wrong, as i said we need MTRR on PAT system for VRAM. Che

[PATCH v2 2/4] drm/mgag200: Fix writes into MGA1064_PIX_CLK_CTL register

2013-05-09 Thread Christopher Harvey
The original line, WREG_DAC(MGA1064_PIX_CLK_CTL_CLK_DIS, tmp); wrote tmp into MGA1064_PIX_CLK_CTL_CLK_DIS, where MGA1064_PIX_CLK_CTL_CLK_DIS is an offset into MGA1064_PIX_CLK_CTL. Change the line to write properly into MGA1064_PIX_CLK_CTL. There were other chunks of code nearby that use the same

[PATCH v2 1/4] drm/mgag200: Don't change unrelated registers during modeset

2013-05-09 Thread Christopher Harvey
Registers in indices below 0x18 are totally unrelated to modesetting, so don't write 0's, or anything else into them on modeset. Most of these registers are hardware cursor related, so this existing code interferes with hardware cursor development. Signed-off-by: Christopher Harvey Tested-by: Jul

[PATCH] radeon: add RADEON_SURF_FMASK flag which disables 2D->1D tiling transition

2013-05-09 Thread Alex Deucher
On Thu, May 9, 2013 at 5:30 PM, Marek Ol??k wrote: > I will release a new version of libdrm after this is committed. Reviewed-by: Alex Deucher > --- > radeon/radeon_surface.c |9 ++--- > radeon/radeon_surface.h |1 + > 2 files changed, 7 insertions(+), 3 deletions(-) > > diff --git

[RFC/PATCH v2 0/8] Clean up write-combining MTRR addition

2013-05-09 Thread Andy Lutomirski
On Thu, May 9, 2013 at 4:44 PM, Jerome Glisse wrote: > On Thu, May 9, 2013 at 3:46 PM, Andy Lutomirski > wrote: >> A fair number of drivers (mostly graphics) add write-combining MTRRs. >> Most ignore errors and most add the MTRR even on PAT systems which don't >> need to use MTRRs. > > This comm

nouveau GF108 kernel crash in optimus mode when enabling external display output

2013-05-09 Thread Pasi Kärkkäinen
Hello, ping also here.. any other information needed about this nouveau kernel crash? Thanks, -- Pasi On Mon, May 06, 2013 at 12:06:04AM +0300, Pasi K?rkk?inen wrote: > Hello, > > Lenovo T430 laptop with intel+nvidia hybrid graphics, optimus enabled in BIOS: > > $ lspci | grep VGA > 00:02.0

nouveau GF108 kernel errors and graphics corruption when enabling another output

2013-05-09 Thread Pasi Kärkkäinen
Hello, Any comments? Should I provide more logs, or try something I didn't try yet? Thanks, -- Pasi On Sun, May 05, 2013 at 05:36:36PM +0300, Pasi K?rkk?inen wrote: > Hello, > > Lenovo T430 laptop with intel/nvidia hybrid graphics, but optimus is disabled > in BIOS, > and only the Nvidia dis

[PATCH 2/4] drm/mgag200: Fix writes into MGA1064_PIX_CLK_CTL register

2013-05-09 Thread Christopher Harvey
The original line, WREG_DAC(MGA1064_PIX_CLK_CTL_CLK_DIS, tmp); wrote tmp into MGA1064_PIX_CLK_CTL_CLK_DIS, where MGA1064_PIX_CLK_CTL_CLK_DIS is an offset into MGA1064_PIX_CLK_CTL. Change the line to write properly into MGA1064_PIX_CLK_CTL. There were other chunks of code nearby that use the same

[PATCH 1/4] drm/mgag200: Don't change unrelated registers during modeset

2013-05-09 Thread Christopher Harvey
Registers in indices below 0x18 are totally unrelated to modesetting, so don't write 0's, or anything else into them on modeset. Most of these registers are hardware cursor related, so this existing code interferes with hardware cursor development. Signed-off-by: Christopher Harvey --- drivers/g

[Bug 63236] kwin crashes when some desktop effects are used

2013-05-09 Thread bugzilla-dae...@freedesktop.org
: 2.1 Mesa 9.1.2 OpenGL shading language version string: 1.20 -- You are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20130509/24a38

[Bug 57921] NULL pointer dereference in radeon_bo_create

2013-05-09 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=57921 --- Comment #1 from Luke-Jr 2013-05-10 00:40:46 --- Created an attachment (id=101051) --> (https://bugzilla.kernel.org/attachment.cgi?id=101051) kernel patch by workaround VBIOS issue -- Configure bugmail: https://bugzilla.kernel.org/user

[Bug 57921] New: NULL pointer dereference in radeon_bo_create

2013-05-09 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=57921 Summary: NULL pointer dereference in radeon_bo_create Product: Drivers Version: 2.5 Kernel Version: 3.9.0 Platform: All OS/Version: Linux Tree: Mainline Status: NEW

Re: [RFC/PATCH v2 0/8] Clean up write-combining MTRR addition

2013-05-09 Thread Jerome Glisse
On Thu, May 9, 2013 at 3:46 PM, Andy Lutomirski wrote: > A fair number of drivers (mostly graphics) add write-combining MTRRs. > Most ignore errors and most add the MTRR even on PAT systems which don't > need to use MTRRs. This comment is wrong, as i said we need MTRR on PAT system for VRAM. Che

Introduce a new helper framework for buffer synchronization

2013-05-09 Thread Inki Dae
esktop.org/archives/dri-devel/attachments/20130509/c2d57955/attachment.html>

[Bug 57831] radeon fatal error during GPU init (Radeon 5850, KVM GPU passthrough)

2013-05-09 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=57831 Luke-Jr changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

Re: [PATCH] radeon: add RADEON_SURF_FMASK flag which disables 2D->1D tiling transition

2013-05-09 Thread Alex Deucher
On Thu, May 9, 2013 at 5:30 PM, Marek Olšák wrote: > I will release a new version of libdrm after this is committed. Reviewed-by: Alex Deucher > --- > radeon/radeon_surface.c |9 ++--- > radeon/radeon_surface.h |1 + > 2 files changed, 7 insertions(+), 3 deletions(-) > > diff --git

[Bug 57831] radeon fatal error during GPU init (Radeon 5850, KVM GPU passthrough)

2013-05-09 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=57831 --- Comment #7 from Alex Deucher 2013-05-09 23:06:32 --- That's not something I'd like to support in the driver. If you can't get the vbios, you probably have bigger problems. -- Configure bugmail: https://bugzilla.kernel.org/userprefs.cg

[Bug 57831] radeon fatal error during GPU init (Radeon 5850, KVM GPU passthrough)

2013-05-09 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=57831 --- Comment #6 from Luke-Jr 2013-05-09 22:52:11 --- For the workaround, I meant the driver ignoring the vbios ROM, and instead loading it from a firmware file. ;) -- Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email --

[Bug 64376] radeon fatal error during GPU init (Radeon 5850, KVM GPU passthrough)

2013-05-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=64376 Alex Deucher changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[RFC/PATCH v2 8/8] drm: Remove mtrr_add and mtrr_del fallback hack for non-MTRR systems

2013-05-09 Thread Andy Lutomirski
There are no users left in drivers/gpu. Signed-off-by: Andy Lutomirski --- This is new in v2. The code I'm deleting is kind of gross. include/drm/drmP.h | 5 + include/drm/drm_os_linux.h | 16 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/include

[RFC/PATCH v2 7/8] uvesafb: Clean up MTRR code

2013-05-09 Thread Andy Lutomirski
The old code allowed very strange memory types. Now it works like all the other video drivers: ioremap_wc is used unconditionally, and MTRRs are set if PAT is unavailable (unless MTRR is disabled by a module parameter). UC, WB, and WT support is gone. If there are MTRR conflicts that prevent add

[RFC/PATCH v2 6/8] radeon: Switch to arch_phys_wc_add and add a missing ..._del

2013-05-09 Thread Andy Lutomirski
Signed-off-by: Andy Lutomirski --- drivers/gpu/drm/radeon/radeon_object.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_object.c b/drivers/gpu/drm/radeon/radeon_object.c index d3aface..15cd34b 100644 --- a/drivers/gpu/drm/radeon/radeon_obj

[PATCH 0/4] mgag200 fixes

2013-05-09 Thread Christopher Harvey
Christopher Harvey writes: > The Following should be CC'd to stable: > * drm/mgag200: Fix writes into MGA1064_PIX_CLK_CTL register > * drm/mgag200: Fix framebuffer base address programming > > The others are bug fixes, but aren't critical. I'm sitting on some > hardware cursor code that depend

[RFC/PATCH v2 5/8] i915: Use arch_phys_wc_{add,del}

2013-05-09 Thread Andy Lutomirski
i915 open-coded logic that was essentially equivalent to the new API. Signed-off-by: Andy Lutomirski --- Changes from v1: More cleanup drivers/gpu/drm/i915/i915_dma.c | 44 ++--- 1 file changed, 6 insertions(+), 38 deletions(-) diff --git a/drivers/gpu/drm/

[RFC/PATCH v2 4/8] drm, agpgart: Use pgprot_writecombine for AGP maps and make the MTRR optional

2013-05-09 Thread Andy Lutomirski
I'm not sure I understand the intent of the previous behavior. mmap on /dev/agpgart and DRM_AGP maps had no cache flags set, so they would be fully cacheable. But the DRM code (most of the time) would add a write-combining MTRR that would change the effective memory type to WC. The new behavior

[RFC/PATCH v2 3/8] drm: Update drm_addmap and drm_mmap to use PAT WC instead of MTRRs

2013-05-09 Thread Andy Lutomirski
Previously, DRM_FRAME_BUFFER mappings, as well as DRM_REGISTERS mappings with DRM_WRITE_COMBINING set, resulted in an unconditional MTRR being added but the actual mappings being created as UC-. Now these mappings have the MTRR added only if needed, but they will be mapped with pgprot_writecombine

[RFC/PATCH v2 2/8] drm (ast, cirrus, mgag200, nouveau, savage, vmwgfx): Remove drm_mtrr_{add, del}

2013-05-09 Thread Andy Lutomirski
This replaces drm_mtrr_{add,del} with arch_phys_wc_{add,del}. The interface is simplified (because the base and size parameters to drm_mtrr_del never did anything), and it no longer adds MTRRs on systems that don't need them. Signed-off-by: Andy Lutomirski --- drivers/gpu/drm/ast/ast_ttm.c

[RFC/PATCH v2 1/8] Add arch_phys_wc_{add, del} to manipulate WC MTRRs if needed

2013-05-09 Thread Andy Lutomirski
Several drivers currently use mtrr_add through various #ifdef guards and/or drm wrappers. The vast majority of them want to add WC MTRRs on x86 systems and don't actually need the MTRR if PAT (i.e. ioremap_wc, etc) are working. arch_phys_wc_add and arch_phys_wc_del are new functions, available on

[RFC/PATCH v2 0/8] Clean up write-combining MTRR addition

2013-05-09 Thread Andy Lutomirski
A fair number of drivers (mostly graphics) add write-combining MTRRs. Most ignore errors and most add the MTRR even on PAT systems which don't need to use MTRRs. This series adds new functions arch_phys_wc_{add,del} that, on PAT-less x86 systems with MTRRs, add MTRRs and report errors, and that do

[PATCH v2 0/4] *** SUBJECT HERE ***

2013-05-09 Thread Christopher Harvey
I forgot to include some acked and tested-by lines in v1 of this series. No code changes in v2. thanks, Christopher Harvey (4): drm/mgag200: Don't change unrelated registers during modeset drm/mgag200: Fix writes into MGA1064_PIX_CLK_CTL register drm/mgag200: Convert counter delays to jiffi

[Bug 57831] radeon fatal error during GPU init (Radeon 5850, KVM GPU passthrough)

2013-05-09 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=57831 --- Comment #5 from Alex Deucher 2013-05-09 22:32:47 --- You should be able to pass the existing pci rom resource through to the VM, but I'm not really a KVM expert. Just about every graphics driver is going to need the vbios image so there

[Bug 57831] radeon fatal error during GPU init (Radeon 5850, KVM GPU passthrough)

2013-05-09 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=57831 --- Comment #4 from Luke-Jr 2013-05-09 22:19:33 --- Confirmed both the fglrx and radeon systems are getting the Cirrus (emulated) VGA ROM instead of the Radeon ROM. Is there a way I can override/provide the Radeon ROM to the driver as a wor

[Bug 63935] TURKS [drm:r600_uvd_init] *ERROR* UVD not responding, trying to reset the VCPU!!!

2013-05-09 Thread bugzilla-dae...@freedesktop.org
er touched it. -- You are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20130509/19e08833/attachment.html>

[PATCH] radeon: add RADEON_SURF_FMASK flag which disables 2D->1D tiling transition

2013-05-09 Thread Marek Olšák
I will release a new version of libdrm after this is committed. --- radeon/radeon_surface.c |9 ++--- radeon/radeon_surface.h |1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/radeon/radeon_surface.c b/radeon/radeon_surface.c index 288b5e2..56012da 100644 --- a/radeo

[PATCH v2 5/5] drm: Use names of ioctls in debug traces

2013-05-09 Thread Chris Cummins
The intention here is to make the output of dmesg with full verbosity a bit easier for a human to parse. This commit transforms: [drm:drm_ioctl], pid=699, cmd=0x6458, nr=0x58, dev 0xe200, auth=1 [drm:drm_ioctl], pid=699, cmd=0xc010645b, nr=0x5b, dev 0xe200, auth=1 [drm:drm_ioctl], pid=699, cmd=0xc

[PATCH 11/12] drm: DRM should depend on HAS_DMA

2013-05-09 Thread Geert Uytterhoeven
If NO_DMA=y: drivers/built-in.o: In function `__drm_pci_free': drivers/gpu/drm/drm_pci.c:112: undefined reference to `dma_free_coherent' drivers/built-in.o: In function `drm_pci_alloc': drivers/gpu/drm/drm_pci.c:72: undefined reference to `dma_alloc_coherent' drivers/built-in.o: In function `drm_g

[Bug 57831] radeon fatal error during GPU init (Radeon 5850, KVM GPU passthrough)

2013-05-09 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=57831 --- Comment #3 from Alex Deucher 2013-05-09 21:01:41 --- No both drivers need the vbios image. The closed driver either gets the vbios via some alternative means or it has some sort of fallback image if it can't find the actual vbios image.

[PATCH 0/4] mgag200 fixes

2013-05-09 Thread Christopher Harvey
The Following should be CC'd to stable: * drm/mgag200: Fix writes into MGA1064_PIX_CLK_CTL register * drm/mgag200: Fix framebuffer base address programming The others are bug fixes, but aren't critical. I'm sitting on some hardware cursor code that depends on all of these patches before it can g

[PATCH] qxl: fix bug with object eviction and update area

2013-05-09 Thread Dave Airlie
From: Dave Airlie if the surface is evicted, this validation will happen to the wrong place, I noticed this with other work I was doing, haven't seen it go wrong in practice. Signed-off-by: Dave Airlie --- drivers/gpu/drm/qxl/qxl_ioctl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/driv

[Bug 57831] radeon fatal error during GPU init (Radeon 5850, KVM GPU passthrough)

2013-05-09 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=57831 --- Comment #2 from Luke-Jr 2013-05-09 20:47:30 --- I guess I assumed that the hardware end should be working fine since fglrx works. Is needing the PCI ROM something unique to the free drivers? -- Configure bugmail: https://bugzilla.kerne

[Bug 64376] radeon fatal error during GPU init (Radeon 5850, KVM GPU passthrough)

2013-05-09 Thread bugzilla-dae...@freedesktop.org
... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20130509/bd98261e/attachment.html>

[Bug 57831] radeon fatal error during GPU init (Radeon 5850, KVM GPU passthrough)

2013-05-09 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=57831 Alex Deucher changed: What|Removed |Added CC||alexdeucher at gmail.com --- Comment #

[RFC/PATCH v2 8/8] drm: Remove mtrr_add and mtrr_del fallback hack for non-MTRR systems

2013-05-09 Thread Andy Lutomirski
There are no users left in drivers/gpu. Signed-off-by: Andy Lutomirski --- This is new in v2. The code I'm deleting is kind of gross. include/drm/drmP.h | 5 + include/drm/drm_os_linux.h | 16 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/include

[RFC/PATCH v2 7/8] uvesafb: Clean up MTRR code

2013-05-09 Thread Andy Lutomirski
The old code allowed very strange memory types. Now it works like all the other video drivers: ioremap_wc is used unconditionally, and MTRRs are set if PAT is unavailable (unless MTRR is disabled by a module parameter). UC, WB, and WT support is gone. If there are MTRR conflicts that prevent add

[RFC/PATCH v2 6/8] radeon: Switch to arch_phys_wc_add and add a missing ..._del

2013-05-09 Thread Andy Lutomirski
Signed-off-by: Andy Lutomirski --- drivers/gpu/drm/radeon/radeon_object.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_object.c b/drivers/gpu/drm/radeon/radeon_object.c index d3aface..15cd34b 100644 --- a/drivers/gpu/drm/radeon/radeon_obj

[RFC/PATCH v2 5/8] i915: Use arch_phys_wc_{add,del}

2013-05-09 Thread Andy Lutomirski
i915 open-coded logic that was essentially equivalent to the new API. Signed-off-by: Andy Lutomirski --- Changes from v1: More cleanup drivers/gpu/drm/i915/i915_dma.c | 44 ++--- 1 file changed, 6 insertions(+), 38 deletions(-) diff --git a/drivers/gpu/drm/

[RFC/PATCH v2 4/8] drm, agpgart: Use pgprot_writecombine for AGP maps and make the MTRR optional

2013-05-09 Thread Andy Lutomirski
I'm not sure I understand the intent of the previous behavior. mmap on /dev/agpgart and DRM_AGP maps had no cache flags set, so they would be fully cacheable. But the DRM code (most of the time) would add a write-combining MTRR that would change the effective memory type to WC. The new behavior

[RFC/PATCH v2 3/8] drm: Update drm_addmap and drm_mmap to use PAT WC instead of MTRRs

2013-05-09 Thread Andy Lutomirski
Previously, DRM_FRAME_BUFFER mappings, as well as DRM_REGISTERS mappings with DRM_WRITE_COMBINING set, resulted in an unconditional MTRR being added but the actual mappings being created as UC-. Now these mappings have the MTRR added only if needed, but they will be mapped with pgprot_writecombine

[RFC/PATCH v2 2/8] drm (ast, cirrus, mgag200, nouveau, savage, vmwgfx): Remove drm_mtrr_{add, del}

2013-05-09 Thread Andy Lutomirski
This replaces drm_mtrr_{add,del} with arch_phys_wc_{add,del}. The interface is simplified (because the base and size parameters to drm_mtrr_del never did anything), and it no longer adds MTRRs on systems that don't need them. Signed-off-by: Andy Lutomirski --- drivers/gpu/drm/ast/ast_ttm.c

[RFC/PATCH v2 1/8] Add arch_phys_wc_{add, del} to manipulate WC MTRRs if needed

2013-05-09 Thread Andy Lutomirski
Several drivers currently use mtrr_add through various #ifdef guards and/or drm wrappers. The vast majority of them want to add WC MTRRs on x86 systems and don't actually need the MTRR if PAT (i.e. ioremap_wc, etc) are working. arch_phys_wc_add and arch_phys_wc_del are new functions, available on

[RFC/PATCH v2 0/8] Clean up write-combining MTRR addition

2013-05-09 Thread Andy Lutomirski
A fair number of drivers (mostly graphics) add write-combining MTRRs. Most ignore errors and most add the MTRR even on PAT systems which don't need to use MTRRs. This series adds new functions arch_phys_wc_{add,del} that, on PAT-less x86 systems with MTRRs, add MTRRs and report errors, and that do

Re: [PATCH 0/4] mgag200 fixes

2013-05-09 Thread Christopher Harvey
Christopher Harvey writes: > The Following should be CC'd to stable: > * drm/mgag200: Fix writes into MGA1064_PIX_CLK_CTL register > * drm/mgag200: Fix framebuffer base address programming > > The others are bug fixes, but aren't critical. I'm sitting on some > hardware cursor code that depend

[PATCH v2 4/4] drm/mgag200: Fix framebuffer base address programming

2013-05-09 Thread Christopher Harvey
Higher bits of the base address of framebuffers weren't being programmed properly. This caused framebuffers that didn't happen to be allocated at a low enough address to not be displayed properly. Signed-off-by: Christopher Harvey Signed-off-by: Mathieu Larouche Acked-by: Julia Lemire Tested-by

[PATCH v2 3/4] drm/mgag200: Convert counter delays to jiffies

2013-05-09 Thread Christopher Harvey
Signed-off-by: Christopher Harvey Acked-by: Julia Lemire Tested-by: Julia Lemire Acked-by: Mathieu Larouche --- drivers/gpu/drm/mgag200/mgag200_mode.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/mgag200/mgag200_mode.c b/drivers/gpu/drm/m

[PATCH v2 2/4] drm/mgag200: Fix writes into MGA1064_PIX_CLK_CTL register

2013-05-09 Thread Christopher Harvey
The original line, WREG_DAC(MGA1064_PIX_CLK_CTL_CLK_DIS, tmp); wrote tmp into MGA1064_PIX_CLK_CTL_CLK_DIS, where MGA1064_PIX_CLK_CTL_CLK_DIS is an offset into MGA1064_PIX_CLK_CTL. Change the line to write properly into MGA1064_PIX_CLK_CTL. There were other chunks of code nearby that use the same

[PATCH v2 1/4] drm/mgag200: Don't change unrelated registers during modeset

2013-05-09 Thread Christopher Harvey
Registers in indices below 0x18 are totally unrelated to modesetting, so don't write 0's, or anything else into them on modeset. Most of these registers are hardware cursor related, so this existing code interferes with hardware cursor development. Signed-off-by: Christopher Harvey Tested-by: Jul

[PATCH v2 0/4] *** SUBJECT HERE ***

2013-05-09 Thread Christopher Harvey
I forgot to include some acked and tested-by lines in v1 of this series. No code changes in v2. thanks, Christopher Harvey (4): drm/mgag200: Don't change unrelated registers during modeset drm/mgag200: Fix writes into MGA1064_PIX_CLK_CTL register drm/mgag200: Convert counter delays to jiffi

[PATCH 4/4] drm/mgag200: Fix framebuffer base address programming

2013-05-09 Thread Christopher Harvey
Higher bits of the base address of framebuffers weren't being programmed properly. This caused framebuffers that didn't happen to be allocated at a low enough address to not be displayed properly. Signed-off-by: Christopher Harvey Signed-off-by: Mathieu Larouche --- drivers/gpu/drm/mgag200/mgag

[PATCH 3/4] drm/mgag200: Convert counter delays to jiffies

2013-05-09 Thread Christopher Harvey
Signed-off-by: Christopher Harvey --- drivers/gpu/drm/mgag200/mgag200_mode.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/mgag200/mgag200_mode.c b/drivers/gpu/drm/mgag200/mgag200_mode.c index 6f3b9db..6dbf6de 100644 --- a/drivers/gpu/drm/mga

[PATCH 2/4] drm/mgag200: Fix writes into MGA1064_PIX_CLK_CTL register

2013-05-09 Thread Christopher Harvey
The original line, WREG_DAC(MGA1064_PIX_CLK_CTL_CLK_DIS, tmp); wrote tmp into MGA1064_PIX_CLK_CTL_CLK_DIS, where MGA1064_PIX_CLK_CTL_CLK_DIS is an offset into MGA1064_PIX_CLK_CTL. Change the line to write properly into MGA1064_PIX_CLK_CTL. There were other chunks of code nearby that use the same

[PATCH 1/4] drm/mgag200: Don't change unrelated registers during modeset

2013-05-09 Thread Christopher Harvey
Registers in indices below 0x18 are totally unrelated to modesetting, so don't write 0's, or anything else into them on modeset. Most of these registers are hardware cursor related, so this existing code interferes with hardware cursor development. Signed-off-by: Christopher Harvey --- drivers/g

[PATCH 0/4] mgag200 fixes

2013-05-09 Thread Christopher Harvey
The Following should be CC'd to stable: * drm/mgag200: Fix writes into MGA1064_PIX_CLK_CTL register * drm/mgag200: Fix framebuffer base address programming The others are bug fixes, but aren't critical. I'm sitting on some hardware cursor code that depends on all of these patches before it can g

[Bug 63236] kwin crashes when some desktop effects are used

2013-05-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=63236 Eugene changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[PATCH v2 5/5] drm: Use names of ioctls in debug traces

2013-05-09 Thread Alex Deucher
On Thu, May 9, 2013 at 9:20 AM, Chris Cummins wrote: > The intention here is to make the output of dmesg with full verbosity a > bit easier for a human to parse. This commit transforms: > > [drm:drm_ioctl], pid=699, cmd=0x6458, nr=0x58, dev 0xe200, auth=1 > [drm:drm_ioctl], pid=699, cmd=0xc010645b

[Bug 62959] r600g (HD 6950 Cayman) fails piglit tests and hangs system

2013-05-09 Thread bugzilla-dae...@freedesktop.org
: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20130509/7d88c138/attachment.html>

Re: nouveau GF108 kernel crash in optimus mode when enabling external display output

2013-05-09 Thread Pasi Kärkkäinen
Hello, ping also here.. any other information needed about this nouveau kernel crash? Thanks, -- Pasi On Mon, May 06, 2013 at 12:06:04AM +0300, Pasi Kärkkäinen wrote: > Hello, > > Lenovo T430 laptop with intel+nvidia hybrid graphics, optimus enabled in BIOS: > > $ lspci | grep VGA > 00:02.0

Re: nouveau GF108 kernel errors and graphics corruption when enabling another output

2013-05-09 Thread Pasi Kärkkäinen
Hello, Any comments? Should I provide more logs, or try something I didn't try yet? Thanks, -- Pasi On Sun, May 05, 2013 at 05:36:36PM +0300, Pasi Kärkkäinen wrote: > Hello, > > Lenovo T430 laptop with intel/nvidia hybrid graphics, but optimus is disabled > in BIOS, > and only the Nvidia dis

[Bug 63935] TURKS [drm:r600_uvd_init] *ERROR* UVD not responding, trying to reset the VCPU!!!

2013-05-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=63935 --- Comment #9 from Dave Witbrodt --- Noting Benjamin's experience with EFI in comment 8, I took a look at my 3 machines on which I am trying the UVD support. I have a laptop, a desktop, and another (inexpensive) desktop which I use as a file se

Re: [PATCH v2 5/5] drm: Use names of ioctls in debug traces

2013-05-09 Thread Alex Deucher
On Thu, May 9, 2013 at 9:20 AM, Chris Cummins wrote: > The intention here is to make the output of dmesg with full verbosity a > bit easier for a human to parse. This commit transforms: > > [drm:drm_ioctl], pid=699, cmd=0x6458, nr=0x58, dev 0xe200, auth=1 > [drm:drm_ioctl], pid=699, cmd=0xc010645b

[PATCH v2 5/5] drm: Use names of ioctls in debug traces

2013-05-09 Thread Chris Cummins
The intention here is to make the output of dmesg with full verbosity a bit easier for a human to parse. This commit transforms: [drm:drm_ioctl], pid=699, cmd=0x6458, nr=0x58, dev 0xe200, auth=1 [drm:drm_ioctl], pid=699, cmd=0xc010645b, nr=0x5b, dev 0xe200, auth=1 [drm:drm_ioctl], pid=699, cmd=0xc

[Bug 64376] radeon fatal error during GPU init (Radeon 5850, KVM GPU passthrough)

2013-05-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=64376 --- Comment #1 from Alex Deucher --- You need to make sure the VM has access to the PCI rom. -- You are receiving this mail because: You are the assignee for the bug. ___ dri-devel mailing list dri-de

[Bug 57831] radeon fatal error during GPU init (Radeon 5850, KVM GPU passthrough)

2013-05-09 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=57831 Alex Deucher changed: What|Removed |Added CC||alexdeuc...@gmail.com --- Comment #1 f

[Bug 64376] New: radeon fatal error during GPU init (Radeon 5850, KVM GPU passthrough)

2013-05-09 Thread bugzilla-dae...@freedesktop.org
vel/attachments/20130509/53f21447/attachment-0001.html>

[Bug 57831] New: radeon fatal error during GPU init (Radeon 5850, KVM GPU passthrough)

2013-05-09 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=57831 Summary: radeon fatal error during GPU init (Radeon 5850, KVM GPU passthrough) Product: Drivers Version: 2.5 Kernel Version: 3.9.0 Platform: All OS/Version: Linux

[Bug 62959] r600g (HD 6950 Cayman) fails piglit tests and hangs system

2013-05-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=62959 --- Comment #64 from udo --- Weird thing is that with 3.8.10 the box has been stable for a few days without weird radeon-related errors. Currently trying 3.9.1. Git mesa, llvm, libclc, xf-video-ati etc -- You are receiving this mail because: Y

Introduce a new helper framework for buffer synchronization

2013-05-09 Thread Inki Dae
Hi all, This post introduces a new helper framework based on dma fence. And the purpose of this post is to collect other opinions and advices before RFC posting. First of all, this helper framework, called fence helper, is in progress yet so might not have enough comments in codes and also might