Stupid NVIDIA 3D vgaarb.c patch

2014-09-27 Thread Pasi Kärkkäinen
On Mon, Sep 22, 2014 at 06:10:50PM -0400, Alex Deucher wrote: > > > > With dual VGA controllers, we can change VGA routing in the chipset so > > that we can address one device or the other using the VGA address space. > > This lets things like Xorg switch between cards to initialize a card via > >

[PATCH] drm/nouveau: avoid null deref on bad arguments to nouveau_vma_getmap

2014-01-03 Thread Pasi Kärkkäinen
On Fri, Oct 18, 2013 at 05:44:45PM +0300, Pasi K?rkk?inen wrote: > On Thu, Sep 26, 2013 at 02:48:49AM +1000, Ben Skeggs wrote: > > > > > > Ben/Maarten: Are you guys planning to take a look at this and submit > > > another patch, or.. ? > > > > > > I tested the two earlier patches from this

[PATCH] drm/nouveau: avoid null deref on bad arguments to nouveau_vma_getmap

2013-10-18 Thread Pasi Kärkkäinen
On Wed, Sep 25, 2013 at 05:42:46PM +0300, Pasi K?rkk?inen wrote: > On Wed, Sep 04, 2013 at 08:59:13AM +0200, Maarten Lankhorst wrote: > > > > When looking into this bug I noticed that nouveau_bo_vma_add needs to have > > a check for nvbo->page_shift == vma->vm->vmm->spg_shift, > > and only if

[PATCH] drm/nouveau: avoid null deref on bad arguments to nouveau_vma_getmap

2013-10-18 Thread Pasi Kärkkäinen
On Thu, Sep 26, 2013 at 02:48:49AM +1000, Ben Skeggs wrote: > > > > Ben/Maarten: Are you guys planning to take a look at this and submit > > another patch, or.. ? > > > > I tested the two earlier patches from this thread, and they both fixed the > > problem (hard kernel crash). > > I'm hoping

Re: [PATCH] drm/nouveau: avoid null deref on bad arguments to nouveau_vma_getmap

2013-09-25 Thread Pasi Kärkkäinen
a pages list. If that's not set, it will do a null deref down the line. Warn on that condition and return an error. See https://bugs.freedesktop.org/show_bug.cgi?id=64774 Reported-by: Pasi Kärkkäinen pa...@iki.fi Tested-by: Pasi Kärkkäinen pa...@iki.fi Signed-off-by: Ilia Mirkin imir

Re: [PATCH] drm/nouveau: avoid null deref on bad arguments to nouveau_vma_getmap

2013-09-25 Thread Pasi Kärkkäinen
On Wed, Sep 04, 2013 at 08:59:13AM +0200, Maarten Lankhorst wrote: When looking into this bug I noticed that nouveau_bo_vma_add needs to have a check for nvbo-page_shift == vma-vm-vmm-spg_shift, and only if the check is true it should map the page in TTM_PL_TT. Patch below. Should

Re: [PATCH] drm/nouveau: avoid null deref on bad arguments to nouveau_vma_getmap

2013-09-25 Thread Pasi Kärkkäinen
On Thu, Sep 26, 2013 at 02:48:49AM +1000, Ben Skeggs wrote: On Thu, Sep 26, 2013 at 12:41 AM, Pasi Kärkkäinen pa...@iki.fi wrote: Hello, On Wed, Sep 04, 2013 at 08:59:13AM +0200, Maarten Lankhorst wrote: Op 04-09-13 05:41, Ben Skeggs schreef: On Thu, Aug 22, 2013 at 5:12 PM, Maarten

Re: [PATCH] drm/nouveau: avoid null deref on bad arguments to nouveau_vma_getmap

2013-09-10 Thread Pasi Kärkkäinen
list. If that's not set, it will do a null deref down the line. Warn on that condition and return an error. See https://bugs.freedesktop.org/show_bug.cgi?id=64774 Reported-by: Pasi Kärkkäinen pa...@iki.fi Tested-by: Pasi Kärkkäinen pa...@iki.fi Signed-off-by: Ilia Mirkin imir

Re: [PATCH] drm/nouveau: avoid null deref on bad arguments to nouveau_vma_getmap

2013-09-03 Thread Pasi Kärkkäinen
On Wed, Aug 28, 2013 at 09:44:15AM +0200, Maarten Lankhorst wrote: Op 28-08-13 08:29, Pasi Kärkkäinen schreef: On Fri, Aug 23, 2013 at 11:20:42PM +0300, Pasi Kärkkäinen wrote: On Thu, Aug 22, 2013 at 09:12:40AM +0200, Maarten Lankhorst wrote: Op 22-08-13 02:10, Ilia Mirkin schreef

Re: [PATCH] drm/nouveau: avoid null deref on bad arguments to nouveau_vma_getmap

2013-09-03 Thread Pasi Kärkkäinen
On Tue, Sep 03, 2013 at 04:34:56PM +0200, Maarten Lankhorst wrote: Op 03-09-13 16:20, Pasi Kärkkäinen schreef: On Wed, Aug 28, 2013 at 09:44:15AM +0200, Maarten Lankhorst wrote: Op 28-08-13 08:29, Pasi Kärkkäinen schreef: On Fri, Aug 23, 2013 at 11:20:42PM +0300, Pasi Kärkkäinen wrote

Re: [PATCH] drm/nouveau: avoid null deref on bad arguments to nouveau_vma_getmap

2013-09-03 Thread Pasi Kärkkäinen
On Tue, Sep 03, 2013 at 05:48:48PM +0300, Pasi Kärkkäinen wrote: Not it really isn't appropriate.. You'd have to call call nouveau_vm_map_sg_table instead, the only place that doesn't handle that correctly is where it's not expected to be called. Here, have a completely

[PATCH] drm/nouveau: avoid null deref on bad arguments to nouveau_vma_getmap

2013-08-28 Thread Pasi Kärkkäinen
On Fri, Aug 23, 2013 at 11:20:42PM +0300, Pasi K?rkk?inen wrote: > On Thu, Aug 22, 2013 at 09:12:40AM +0200, Maarten Lankhorst wrote: > > Op 22-08-13 02:10, Ilia Mirkin schreef: > > > The code expects non-VRAM mem nodes to have a pages list. If that's not > > > set, it will do a null deref down

Re: [PATCH] drm/nouveau: avoid null deref on bad arguments to nouveau_vma_getmap

2013-08-28 Thread Pasi Kärkkäinen
On Fri, Aug 23, 2013 at 11:20:42PM +0300, Pasi Kärkkäinen wrote: On Thu, Aug 22, 2013 at 09:12:40AM +0200, Maarten Lankhorst wrote: Op 22-08-13 02:10, Ilia Mirkin schreef: The code expects non-VRAM mem nodes to have a pages list. If that's not set, it will do a null deref down the line

[PATCH] drm/nouveau: avoid null deref on bad arguments to nouveau_vma_getmap

2013-08-24 Thread Pasi Kärkkäinen
On Thu, Aug 22, 2013 at 09:12:40AM +0200, Maarten Lankhorst wrote: > Op 22-08-13 02:10, Ilia Mirkin schreef: > > The code expects non-VRAM mem nodes to have a pages list. If that's not > > set, it will do a null deref down the line. Warn on that condition and > > return an error. > > > > See

Re: [PATCH] drm/nouveau: avoid null deref on bad arguments to nouveau_vma_getmap

2013-08-23 Thread Pasi Kärkkäinen
://bugs.freedesktop.org/show_bug.cgi?id=64774 Reported-by: Pasi Kärkkäinen pa...@iki.fi Tested-by: Pasi Kärkkäinen pa...@iki.fi Signed-off-by: Ilia Mirkin imir...@alum.mit.edu Cc: sta...@vger.kernel.org # 3.8+ --- I don't exactly understand what's going on, but this is just a straightforward

[PATCH] drm/nouveau: avoid null deref on bad arguments to nouveau_vma_getmap

2013-08-22 Thread Pasi Kärkkäinen
On Thu, Aug 22, 2013 at 09:12:40AM +0200, Maarten Lankhorst wrote: > Op 22-08-13 02:10, Ilia Mirkin schreef: > > The code expects non-VRAM mem nodes to have a pages list. If that's not > > set, it will do a null deref down the line. Warn on that condition and > > return an error. > > > > See

[PATCH] drm/nouveau: avoid null deref on bad arguments to nouveau_vma_getmap

2013-08-22 Thread Pasi Kärkkäinen
On Thu, Aug 22, 2013 at 04:41:06PM +1000, Ben Skeggs wrote: > On Thu, Aug 22, 2013 at 10:10 AM, Ilia Mirkin wrote: > > The code expects non-VRAM mem nodes to have a pages list. If that's not > > set, it will do a null deref down the line. Warn on that condition and > > return an error. > > > >

Re: [PATCH] drm/nouveau: avoid null deref on bad arguments to nouveau_vma_getmap

2013-08-22 Thread Pasi Kärkkäinen
an error. See https://bugs.freedesktop.org/show_bug.cgi?id=64774 Reported-by: Pasi Kärkkäinen pa...@iki.fi Tested-by: Pasi Kärkkäinen pa...@iki.fi Signed-off-by: Ilia Mirkin imir...@alum.mit.edu Cc: sta...@vger.kernel.org # 3.8+ --- I don't exactly understand what's going

Re: [PATCH] drm/nouveau: avoid null deref on bad arguments to nouveau_vma_getmap

2013-08-22 Thread Pasi Kärkkäinen
://bugs.freedesktop.org/show_bug.cgi?id=64774 Reported-by: Pasi Kärkkäinen pa...@iki.fi Tested-by: Pasi Kärkkäinen pa...@iki.fi Signed-off-by: Ilia Mirkin imir...@alum.mit.edu Cc: sta...@vger.kernel.org # 3.8+ --- I don't exactly understand what's going on, but this is just a straightforward

[PATCH] [RFC] drm/nouveau: bring back hdmi audio device after switcheroo power down

2013-07-24 Thread Pasi Kärkkäinen
On Wed, Jul 24, 2013 at 05:13:42PM +1000, Dave Airlie wrote: > After a full device powerdown via the optimus power switch, we seem > to lose the HDMI device completely on power on, this keep track of > whether we had a hdmi audio sub function device at power on, and > pokes a magic register to

Re: [PATCH] [RFC] drm/nouveau: bring back hdmi audio device after switcheroo power down

2013-07-24 Thread Pasi Kärkkäinen
On Wed, Jul 24, 2013 at 05:13:42PM +1000, Dave Airlie wrote: After a full device powerdown via the optimus power switch, we seem to lose the HDMI device completely on power on, this keep track of whether we had a hdmi audio sub function device at power on, and pokes a magic register to make it

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

2013-05-19 Thread Pasi Kärkkäinen
On Thu, May 09, 2013 at 06:11:23PM +0300, Pasi K?rkk?inen wrote: > Hello, > > ping also here.. any other information needed about this nouveau kernel > crash? > So this hard kernel crash stil happens with Linux 3.9.2, with the difference that I don't get to see the traceback with 3.9.2. (with

nouveau GF108 kernel errors and graphics corruption when enabling another output

2013-05-19 Thread Pasi Kärkkäinen
On Thu, May 09, 2013 at 06:10:04PM +0300, Pasi K?rkk?inen wrote: > Hello, > > Any comments? Should I provide more logs, or try something I didn't try yet? > I just tried Linux kernel 3.9.2, and it has the same kind of graphics corruption when enabling second output on nouveau adapter. dmesg

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

2013-05-19 Thread Pasi Kärkkäinen
On Thu, May 09, 2013 at 06:10:04PM +0300, Pasi Kärkkäinen wrote: Hello, Any comments? Should I provide more logs, or try something I didn't try yet? I just tried Linux kernel 3.9.2, and it has the same kind of graphics corruption when enabling second output on nouveau adapter. dmesg errors

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

2013-05-19 Thread Pasi Kärkkäinen
On Thu, May 09, 2013 at 06:11:23PM +0300, Pasi Kärkkäinen wrote: Hello, ping also here.. any other information needed about this nouveau kernel crash? So this hard kernel crash stil happens with Linux 3.9.2, with the difference that I don't get to see the traceback with 3.9.2. (with 3.8

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

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

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 VGA

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

2013-05-06 Thread Pasi Kärkkäinen
Hello, Lenovo T430 laptop with intel+nvidia hybrid graphics, optimus enabled in BIOS: $ lspci | grep VGA 00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09) 01:00.0 VGA compatible controller: NVIDIA Corporation GF108 [Quadro NVS 5400M] (rev

nouveau GF108 kernel errors and graphics corruption when enabling another output

2013-05-05 Thread Pasi Kärkkäinen
Hello, Lenovo T430 laptop with intel/nvidia hybrid graphics, but optimus is disabled in BIOS, and only the Nvidia discreet GPU is enabled: $ lspci | grep VGA 01:00.0 VGA compatible controller: NVIDIA Corporation GF108 [Quadro NVS 5400M] (rev a1) I boot up the laptop with only using the

nouveau GF108 kernel errors and graphics corruption when enabling another output

2013-05-05 Thread Pasi Kärkkäinen
Hello, Lenovo T430 laptop with intel/nvidia hybrid graphics, but optimus is disabled in BIOS, and only the Nvidia discreet GPU is enabled: $ lspci | grep VGA 01:00.0 VGA compatible controller: NVIDIA Corporation GF108 [Quadro NVS 5400M] (rev a1) I boot up the laptop with only using the

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

2013-05-05 Thread Pasi Kärkkäinen
Hello, Lenovo T430 laptop with intel+nvidia hybrid graphics, optimus enabled in BIOS: $ lspci | grep VGA 00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09) 01:00.0 VGA compatible controller: NVIDIA Corporation GF108 [Quadro NVS 5400M] (rev

[Bug 29842] Radeon runs very hot

2012-02-23 Thread Pasi Kärkkäinen
On Wed, Feb 22, 2012 at 04:56:26PM +, bugzilla-daemon at bugzilla.kernel.org wrote: > https://bugzilla.kernel.org/show_bug.cgi?id=29842 > > > > > > --- Comment #14 from Igor Rudchenko 2012-02-22 > 16:56:23 --- > Commit "PCI: Rework ASPM disable code" added in 3.0.20 and 3.2.25 has

Re: [Bug 29842] Radeon runs very hot

2012-02-22 Thread Pasi Kärkkäinen
On Wed, Feb 22, 2012 at 04:56:26PM +, bugzilla-dae...@bugzilla.kernel.org wrote: https://bugzilla.kernel.org/show_bug.cgi?id=29842 --- Comment #14 from Igor Rudchenko i...@starrain.org 2012-02-22 16:56:23 --- Commit PCI: Rework ASPM disable code added in 3.0.20 and 3.2.25 has

radeon issues on MacBook Pro 8,2

2012-01-20 Thread Pasi Kärkkäinen
On Thu, Jan 19, 2012 at 02:53:17PM -0600, Seth Forshee wrote: > On Thu, Jan 19, 2012 at 02:48:52PM -0500, Alex Deucher wrote: > > On Thu, Jan 19, 2012 at 12:18 PM, Seth Forshee > > wrote: > > > I'm seeing several issues related to the radeon driver on a MacBook Pro > > > 8,2 with the following

Re: radeon issues on MacBook Pro 8,2

2012-01-20 Thread Pasi Kärkkäinen
On Thu, Jan 19, 2012 at 02:53:17PM -0600, Seth Forshee wrote: On Thu, Jan 19, 2012 at 02:48:52PM -0500, Alex Deucher wrote: On Thu, Jan 19, 2012 at 12:18 PM, Seth Forshee seth.fors...@canonical.com wrote: I'm seeing several issues related to the radeon driver on a MacBook Pro 8,2 with

radeon power_profile "default" causes laptop overheating and crashes

2011-09-01 Thread Pasi Kärkkäinen
On Mon, Aug 29, 2011 at 07:20:16PM +0300, Pasi K?rkk?inen wrote: > Hello, > > I have a laptop with Mobility Radeon HD 3650, and the opensource radeon > driver makes > the laptop overheat and crash (or kernel does thermal emergency shutdowns). > Even when the laptop is totally *idle* the system

radeon power_profile "default" causes laptop overheating and crashes

2011-08-29 Thread Pasi Kärkkäinen
Hello, I have a laptop with Mobility Radeon HD 3650, and the opensource radeon driver makes the laptop overheat and crash (or kernel does thermal emergency shutdowns). Even when the laptop is totally *idle* the system overheats! As a default power_profile "default" is in use (and causes

radeon power_profile default causes laptop overheating and crashes

2011-08-29 Thread Pasi Kärkkäinen
Hello, I have a laptop with Mobility Radeon HD 3650, and the opensource radeon driver makes the laptop overheat and crash (or kernel does thermal emergency shutdowns). Even when the laptop is totally *idle* the system overheats! As a default power_profile default is in use (and causes

Status of Radeon power management / laptop overheating

2011-07-19 Thread Pasi Kärkkäinen
On Mon, Jul 11, 2011 at 11:26:32PM +0300, Pasi K?rkk?inen wrote: > Hello, > > Does someone know the current status of radeon power management in Linux? > and also the roadmap/todo? > > I have a laptop than runs *very* hot in Linux, while it's cool in Windows, > and the difference seems to be

Re: Status of Radeon power management / laptop overheating

2011-07-19 Thread Pasi Kärkkäinen
On Mon, Jul 11, 2011 at 11:26:32PM +0300, Pasi Kärkkäinen wrote: Hello, Does someone know the current status of radeon power management in Linux? and also the roadmap/todo? I have a laptop than runs *very* hot in Linux, while it's cool in Windows, and the difference seems to be mostly

Status of Radeon power management / laptop overheating

2011-07-12 Thread Pasi Kärkkäinen
Hello, Does someone know the current status of radeon power management in Linux? and also the roadmap/todo? I have a laptop than runs *very* hot in Linux, while it's cool in Windows, and the difference seems to be mostly about radeon graphics driver. The default power_profile makes the laptop

ApiTrace: OpenGL tracer, analyzer, debugger, replayer..

2011-04-29 Thread Pasi Kärkkäinen
Hello, This might be an interesting tool for dri/driver developers.. from opengl.org: "New OpenGL tracer, analyzer and debugger: ApiTrace is a brand new project to trace, replay, analyze and debug graphics APIs. Using it you can inspect the OpenGL state frame by frame, call by call. You can

ApiTrace: OpenGL tracer, analyzer, debugger, replayer..

2011-04-29 Thread Pasi Kärkkäinen
Hello, This might be an interesting tool for dri/driver developers.. from opengl.org: New OpenGL tracer, analyzer and debugger: ApiTrace is a brand new project to trace, replay, analyze and debug graphics APIs. Using it you can inspect the OpenGL state frame by frame, call by call. You can

Detecting if display is powered on or not

2010-10-20 Thread Pasi Kärkkäinen
On Sun, Oct 17, 2010 at 03:25:09PM -0400, Alex Deucher wrote: > On Sun, Oct 17, 2010 at 9:07 AM, Pasi K?rkk?inen wrote: > > Hello, > > > > While I was discussing the laptop lid/dock issues with Fedora > > people this issue was brought up. > > > > How do you determine if a display is actually

Re: Detecting if display is powered on or not

2010-10-20 Thread Pasi Kärkkäinen
On Sun, Oct 17, 2010 at 03:25:09PM -0400, Alex Deucher wrote: On Sun, Oct 17, 2010 at 9:07 AM, Pasi Kärkkäinen pa...@iki.fi wrote: Hello, While I was discussing the laptop lid/dock issues with Fedora people this issue was brought up. How do you determine if a display is actually

Detecting if display is powered on or not

2010-10-17 Thread Pasi Kärkkäinen
Hello, While I was discussing the laptop lid/dock issues with Fedora people this issue was brought up. How do you determine if a display is actually powered on or not? Scenario: - Laptop in a docking station, lid open, so internal LVDS enabled. - External DVI display connected, but powered

Detecting if display is powered on or not

2010-10-17 Thread Pasi Kärkkäinen
Hello, While I was discussing the laptop lid/dock issues with Fedora people this issue was brought up. How do you determine if a display is actually powered on or not? Scenario: - Laptop in a docking station, lid open, so internal LVDS enabled. - External DVI display connected, but powered

Radeon 3650HD laptop LVDS lid open/closed detection problem

2010-09-21 Thread Pasi Kärkkäinen
On Tue, Sep 21, 2010 at 01:09:37AM -0400, Alex Deucher wrote: > On Mon, Sep 20, 2010 at 1:53 AM, Pasi K?rkk?inen wrote: > > On Sun, Sep 19, 2010 at 11:56:27PM -0400, Alex Deucher wrote: > >> On Sun, Sep 19, 2010 at 10:56 AM, Pasi K?rkk?inen wrote: > >> > On Sun, Sep 19, 2010 at 03:25:47PM +0300,

Re: Radeon 3650HD laptop LVDS lid open/closed detection problem

2010-09-21 Thread Pasi Kärkkäinen
On Tue, Sep 21, 2010 at 01:09:37AM -0400, Alex Deucher wrote: On Mon, Sep 20, 2010 at 1:53 AM, Pasi Kärkkäinen pa...@iki.fi wrote: On Sun, Sep 19, 2010 at 11:56:27PM -0400, Alex Deucher wrote: On Sun, Sep 19, 2010 at 10:56 AM, Pasi Kärkkäinen pa...@iki.fi wrote: On Sun, Sep 19, 2010 at 03

Radeon 3650HD laptop LVDS lid open/closed detection problem

2010-09-20 Thread Pasi Kärkkäinen
On Sun, Sep 19, 2010 at 11:56:27PM -0400, Alex Deucher wrote: > On Sun, Sep 19, 2010 at 10:56 AM, Pasi K?rkk?inen wrote: > > On Sun, Sep 19, 2010 at 03:25:47PM +0300, Pasi K?rkk?inen wrote: > >> > > > >> > > so "/proc/acpi/button/lid/LID/state" seems to work properly on my > >> > > laptop, > >>

Radeon 3650HD laptop LVDS lid open/closed detection problem

2010-09-19 Thread Pasi Kärkkäinen
On Sun, Sep 19, 2010 at 03:25:47PM +0300, Pasi K?rkk?inen wrote: > > > > > > so "/proc/acpi/button/lid/LID/state" seems to work properly on my laptop, > > > but is there a way to monitor the state of the drm/kms outputs from > > > /proc, /sys or from somewhere? > > > > > > I'd like to see the

Radeon 3650HD laptop LVDS lid open/closed detection problem

2010-09-19 Thread Pasi Kärkkäinen
On Sun, Sep 19, 2010 at 02:34:03PM +0300, Pasi K?rkk?inen wrote: > On Sun, Sep 19, 2010 at 02:18:34PM +0300, Pasi K?rkk?inen wrote: > > On Tue, Jul 27, 2010 at 11:41:12AM +0300, Pasi K?rkk?inen wrote: > > > > >> > > > > > > > > > > Yes, the lid acpi stuff seems to work: > > > > > > > > > > lid

Radeon 3650HD laptop LVDS lid open/closed detection problem

2010-09-19 Thread Pasi Kärkkäinen
On Sun, Sep 19, 2010 at 02:18:34PM +0300, Pasi K?rkk?inen wrote: > On Tue, Jul 27, 2010 at 11:41:12AM +0300, Pasi K?rkk?inen wrote: > > > >> > > > > > > > > Yes, the lid acpi stuff seems to work: > > > > > > > > lid closed: > > > > $ cat /proc/acpi/button/lid/LID/state > > > > state: ? ? ?closed >

Radeon 3650HD laptop LVDS lid open/closed detection problem

2010-09-19 Thread Pasi Kärkkäinen
On Tue, Jul 27, 2010 at 11:41:12AM +0300, Pasi K?rkk?inen wrote: > > >> > > > > > > Yes, the lid acpi stuff seems to work: > > > > > > lid closed: > > > $ cat /proc/acpi/button/lid/LID/state > > > state: ? ? ?closed > > > > > > lid open: > > > $ cat /proc/acpi/button/lid/LID/state > > > state: ? ?

Re: Radeon 3650HD laptop LVDS lid open/closed detection problem

2010-09-19 Thread Pasi Kärkkäinen
On Sun, Sep 19, 2010 at 02:18:34PM +0300, Pasi Kärkkäinen wrote: On Tue, Jul 27, 2010 at 11:41:12AM +0300, Pasi Kärkkäinen wrote: Yes, the lid acpi stuff seems to work: lid closed: $ cat /proc/acpi/button/lid/LID/state state:      closed lid open: $ cat

Re: Radeon 3650HD laptop LVDS lid open/closed detection problem

2010-09-19 Thread Pasi Kärkkäinen
On Tue, Jul 27, 2010 at 11:41:12AM +0300, Pasi Kärkkäinen wrote: Yes, the lid acpi stuff seems to work: lid closed: $ cat /proc/acpi/button/lid/LID/state state:      closed lid open: $ cat /proc/acpi/button/lid/LID/state state:      open I also verified

Re: Radeon 3650HD laptop LVDS lid open/closed detection problem

2010-09-19 Thread Pasi Kärkkäinen
On Sun, Sep 19, 2010 at 02:34:03PM +0300, Pasi Kärkkäinen wrote: On Sun, Sep 19, 2010 at 02:18:34PM +0300, Pasi Kärkkäinen wrote: On Tue, Jul 27, 2010 at 11:41:12AM +0300, Pasi Kärkkäinen wrote: Yes, the lid acpi stuff seems to work: lid closed: $ cat /proc/acpi

Re: Radeon 3650HD laptop LVDS lid open/closed detection problem

2010-09-19 Thread Pasi Kärkkäinen
On Sun, Sep 19, 2010 at 03:25:47PM +0300, Pasi Kärkkäinen wrote: so /proc/acpi/button/lid/LID/state seems to work properly on my laptop, but is there a way to monitor the state of the drm/kms outputs from /proc, /sys or from somewhere? I'd like to see the state before X

Re: Radeon 3650HD laptop LVDS lid open/closed detection problem

2010-09-19 Thread Pasi Kärkkäinen
On Sun, Sep 19, 2010 at 11:56:27PM -0400, Alex Deucher wrote: On Sun, Sep 19, 2010 at 10:56 AM, Pasi Kärkkäinen pa...@iki.fi wrote: On Sun, Sep 19, 2010 at 03:25:47PM +0300, Pasi Kärkkäinen wrote: so /proc/acpi/button/lid/LID/state seems to work properly on my laptop

DRI/DRM profiling for performance analysis?

2010-08-17 Thread Pasi Kärkkäinen
On Mon, Aug 16, 2010 at 09:15:18PM -0700, Eric Anholt wrote: > On Mon, 16 Aug 2010 10:22:35 +0300, Pasi K?rkk?inen wrote: > > Hello, > > > > Do we currently have a method of profiling DRI/DRM drivers? > > > > I was thinking that it would be interesting to: > > > > 1) Execute a benchmark, or

Re: DRI/DRM profiling for performance analysis?

2010-08-17 Thread Pasi Kärkkäinen
On Mon, Aug 16, 2010 at 09:15:18PM -0700, Eric Anholt wrote: On Mon, 16 Aug 2010 10:22:35 +0300, Pasi Kärkkäinen pa...@iki.fi wrote: Hello, Do we currently have a method of profiling DRI/DRM drivers? I was thinking that it would be interesting to: 1) Execute a benchmark, or some

DRI/DRM profiling for performance analysis?

2010-08-16 Thread Pasi Kärkkäinen
Hello, Do we currently have a method of profiling DRI/DRM drivers? I was thinking that it would be interesting to: 1) Execute a benchmark, or some "timedemo" of a game 2) See how many times each dri/drm driver function is called, maybe top 20 most often called functions, and the total

DRI/DRM profiling for performance analysis?

2010-08-16 Thread Pasi Kärkkäinen
Hello, Do we currently have a method of profiling DRI/DRM drivers? I was thinking that it would be interesting to: 1) Execute a benchmark, or some timedemo of a game 2) See how many times each dri/drm driver function is called, maybe top 20 most often called functions, and the total cpu

Radeon 3650HD laptop LVDS lid open/closed detection problem

2010-07-27 Thread Pasi Kärkkäinen
On Mon, Jul 26, 2010 at 05:13:30PM -0400, Alex Deucher wrote: > On Mon, Jul 26, 2010 at 3:42 PM, Pasi K?rkk?inen wrote: > > On Mon, Jul 12, 2010 at 01:37:28PM -0400, Alex Deucher wrote: > >> >> >> > >> >> > > >> >> > The other patch (0001-drm-radeon-kms-fix-shared-ddc-handling.patch) > >> >> >

Re: Radeon 3650HD laptop LVDS lid open/closed detection problem

2010-07-27 Thread Pasi Kärkkäinen
On Mon, Jul 26, 2010 at 05:13:30PM -0400, Alex Deucher wrote: On Mon, Jul 26, 2010 at 3:42 PM, Pasi Kärkkäinen pa...@iki.fi wrote: On Mon, Jul 12, 2010 at 01:37:28PM -0400, Alex Deucher wrote: The other patch (0001-drm-radeon-kms-fix-shared-ddc-handling.patch) applied my

Radeon 3650HD laptop LVDS lid open/closed detection problem

2010-07-26 Thread Pasi Kärkkäinen
On Mon, Jul 12, 2010 at 01:37:28PM -0400, Alex Deucher wrote: > >> >> > >> > > >> > The other patch (0001-drm-radeon-kms-fix-shared-ddc-handling.patch) > >> > applied > >> > my system mostly works now, but here's a summary about the problem I > >> > still have > >> > with the lid detection: > >>

Re: Radeon 3650HD laptop LVDS lid open/closed detection problem

2010-07-26 Thread Pasi Kärkkäinen
On Mon, Jul 12, 2010 at 01:37:28PM -0400, Alex Deucher wrote: The other patch (0001-drm-radeon-kms-fix-shared-ddc-handling.patch) applied my system mostly works now, but here's a summary about the problem I still have with the lid detection: - I boot up the laptop with

[PATCH] drm/radeon/kms: fix shared ddc harder

2010-07-25 Thread Pasi Kärkkäinen
On Thu, Jul 22, 2010 at 03:28:32PM +0300, Pasi K?rkk?inen wrote: > On Tue, Jul 20, 2010 at 11:27:54AM -0400, Alex Deucher wrote: > > This fixes a regression caused by b2ea4aa67bfd084834edd070e0a4a47857d6db59 > > due to the way shared ddc with multiple digital connectors was handled. > > > > I

Re: [PATCH] drm/radeon/kms: fix shared ddc harder

2010-07-25 Thread Pasi Kärkkäinen
On Thu, Jul 22, 2010 at 03:28:32PM +0300, Pasi Kärkkäinen wrote: On Tue, Jul 20, 2010 at 11:27:54AM -0400, Alex Deucher wrote: This fixes a regression caused by b2ea4aa67bfd084834edd070e0a4a47857d6db59 due to the way shared ddc with multiple digital connectors was handled. I guess I

[PATCH] drm/radeon/kms: fix shared ddc harder

2010-07-22 Thread Pasi Kärkkäinen
On Tue, Jul 20, 2010 at 11:27:54AM -0400, Alex Deucher wrote: > This fixes a regression caused by b2ea4aa67bfd084834edd070e0a4a47857d6db59 > due to the way shared ddc with multiple digital connectors was handled. > I guess I should verify this patch still works for me.. -- Pasi > You generally

Re: [PATCH] drm/radeon/kms: fix shared ddc harder

2010-07-22 Thread Pasi Kärkkäinen
On Tue, Jul 20, 2010 at 11:27:54AM -0400, Alex Deucher wrote: This fixes a regression caused by b2ea4aa67bfd084834edd070e0a4a47857d6db59 due to the way shared ddc with multiple digital connectors was handled. I guess I should verify this patch still works for me.. -- Pasi You generally

Radeon 3650HD laptop LVDS lid open/closed detection problem

2010-07-12 Thread Pasi Kärkkäinen
On Mon, Jul 12, 2010 at 10:48:08AM -0400, Alex Deucher wrote: > On Mon, Jul 12, 2010 at 7:53 AM, Pasi K?rkk?inen wrote: > > On Mon, Jun 21, 2010 at 11:12:51AM -0400, Alex Deucher wrote: > >> On Mon, Jun 21, 2010 at 10:53 AM, Francisco Jerez >> riseup.net> wrote: > >> > Jerome Glisse writes: >

Radeon 3650HD laptop LVDS lid open/closed detection problem

2010-07-12 Thread Pasi Kärkkäinen
On Mon, Jun 21, 2010 at 11:12:51AM -0400, Alex Deucher wrote: > On Mon, Jun 21, 2010 at 10:53 AM, Francisco Jerez > wrote: > > Jerome Glisse writes: > > > >> On Mon, Jun 21, 2010 at 03:31:19PM +0300, Pasi K?rkk?inen wrote: > >>> Hello, > >>> > >>> After fixing the dvi/hdmi detection problem I

Re: Radeon 3650HD laptop LVDS lid open/closed detection problem

2010-07-12 Thread Pasi Kärkkäinen
On Mon, Jun 21, 2010 at 11:12:51AM -0400, Alex Deucher wrote: On Mon, Jun 21, 2010 at 10:53 AM, Francisco Jerez curroje...@riseup.net wrote: Jerome Glisse gli...@freedesktop.org writes: On Mon, Jun 21, 2010 at 03:31:19PM +0300, Pasi Kärkkäinen wrote: Hello, After fixing the dvi/hdmi

Re: Radeon 3650HD laptop LVDS lid open/closed detection problem

2010-07-12 Thread Pasi Kärkkäinen
On Mon, Jul 12, 2010 at 10:48:08AM -0400, Alex Deucher wrote: On Mon, Jul 12, 2010 at 7:53 AM, Pasi Kärkkäinen pa...@iki.fi wrote: On Mon, Jun 21, 2010 at 11:12:51AM -0400, Alex Deucher wrote: On Mon, Jun 21, 2010 at 10:53 AM, Francisco Jerez curroje...@riseup.net wrote: Jerome Glisse

[RFC PATCH] Re: KMS:RV635:Radeon 3650HD graphics driver broken on a laptop when connected to a docking station and external display

2010-07-01 Thread Pasi Kärkkäinen
On Thu, Jul 01, 2010 at 10:35:34AM -0400, Alex Deucher wrote: > On Thu, Jul 1, 2010 at 10:07 AM, Pasi K?rkk?inen wrote: > > On Mon, Jun 21, 2010 at 09:18:01PM +0300, Pasi K?rkk?inen wrote: > >> > >> > >> > >> I am not sure your patch is right, my guess is that devices field of > >> > >> radeon

[RFC PATCH] Re: KMS:RV635:Radeon 3650HD graphics driver broken on a laptop when connected to a docking station and external display

2010-07-01 Thread Pasi Kärkkäinen
On Mon, Jun 21, 2010 at 09:18:01PM +0300, Pasi K?rkk?inen wrote: > > >> > > >> I am not sure your patch is right, my guess is that devices field of > > >> radeon connector structure btw the HDMI & DVI connector are different > > >> and thus that drm_detect_hdmi_monitor is not call. I expect it's

[RFC PATCH] Re: KMS:RV635:Radeon 3650HD graphics driver broken on a laptop when connected to a docking station and external display

2010-07-01 Thread Pasi Kärkkäinen
On Mon, Jun 21, 2010 at 09:17:14PM +0300, Pasi K?rkk?inen wrote: > > > > > > I am not sure your patch is right, my guess is that devices field of > > > radeon connector structure btw the HDMI & DVI connector are different > > > and thus that drm_detect_hdmi_monitor is not call. I expect it's

[RFC PATCH] Re: KMS:RV635:Radeon 3650HD graphics driver broken on a laptop when connected to a docking station and external display

2010-06-21 Thread Pasi Kärkkäinen
On Mon, Jun 21, 2010 at 12:11:49PM -0400, Alex Deucher wrote: > On Mon, Jun 21, 2010 at 11:03 AM, Alex Deucher > wrote: > > On Mon, Jun 21, 2010 at 8:45 AM, Jerome Glisse > > wrote: > >> On Mon, Jun 21, 2010 at 12:31:22PM +0300, Pasi K?rkk?inen wrote: > >>> On Mon, Jun 21, 2010 at 12:23:10PM

[RFC PATCH] Re: KMS:RV635:Radeon 3650HD graphics driver broken on a laptop when connected to a docking station and external display

2010-06-21 Thread Pasi Kärkkäinen
On Mon, Jun 21, 2010 at 11:03:08AM -0400, Alex Deucher wrote: > On Mon, Jun 21, 2010 at 8:45 AM, Jerome Glisse > wrote: > > On Mon, Jun 21, 2010 at 12:31:22PM +0300, Pasi K?rkk?inen wrote: > >> On Mon, Jun 21, 2010 at 12:23:10PM +0300, Pasi K?rkk?inen wrote: > >> > On Sat, Jun 19, 2010 at

Radeon 3650HD laptop LVDS lid open/closed detection problem

2010-06-21 Thread Pasi Kärkkäinen
On Mon, Jun 21, 2010 at 02:51:59PM +0200, Jerome Glisse wrote: > On Mon, Jun 21, 2010 at 03:31:19PM +0300, Pasi K?rkk?inen wrote: > > Hello, > > > > After fixing the dvi/hdmi detection problem I now have another problem > > with the HP EliteBook 8530p, which has Radeon 3650HD adapter. > > > >

[RFC PATCH] Re: KMS:RV635:Radeon 3650HD graphics driver broken on a laptop when connected to a docking station and external display

2010-06-21 Thread Pasi Kärkkäinen
On Mon, Jun 21, 2010 at 02:45:44PM +0200, Jerome Glisse wrote: > On Mon, Jun 21, 2010 at 12:31:22PM +0300, Pasi K?rkk?inen wrote: > > On Mon, Jun 21, 2010 at 12:23:10PM +0300, Pasi K?rkk?inen wrote: > > > On Sat, Jun 19, 2010 at 10:24:53PM +0300, Pasi K?rkk?inen wrote: > > > > On Fri, Jun 18, 2010

Radeon 3650HD laptop LVDS lid open/closed detection problem

2010-06-21 Thread Pasi Kärkkäinen
Hello, After fixing the dvi/hdmi detection problem I now have another problem with the HP EliteBook 8530p, which has Radeon 3650HD adapter. Here's a summary of the environment: - laptop connected to a docking station. - external display in use, connected with DVI to the dock.

[RFC PATCH] Re: KMS:RV635:Radeon 3650HD graphics driver broken on a laptop when connected to a docking station and external display

2010-06-21 Thread Pasi Kärkkäinen
On Mon, Jun 21, 2010 at 12:23:10PM +0300, Pasi K?rkk?inen wrote: > On Sat, Jun 19, 2010 at 10:24:53PM +0300, Pasi K?rkk?inen wrote: > > On Fri, Jun 18, 2010 at 09:45:22PM +0300, Pasi K?rkk?inen wrote: > > > > > > >> > > > > > > > >> > I wonder if that HDMI-0 is the key to the problem.. I don't >

[RFC PATCH] Re: KMS:RV635:Radeon 3650HD graphics driver broken on a laptop when connected to a docking station and external display

2010-06-21 Thread Pasi Kärkkäinen
On Sat, Jun 19, 2010 at 10:24:53PM +0300, Pasi K?rkk?inen wrote: > On Fri, Jun 18, 2010 at 09:45:22PM +0300, Pasi K?rkk?inen wrote: > > > > > >> > > > > > > >> > I wonder if that HDMI-0 is the key to the problem.. I don't have > > > > > >> > anything connected > > > > > >> > to the HDMI connector

[RFC PATCH] Re: KMS:RV635:Radeon 3650HD graphics driver broken on a laptop when connected to a docking station and external display

2010-06-21 Thread Pasi Kärkkäinen
On Sat, Jun 19, 2010 at 10:24:53PM +0300, Pasi Kärkkäinen wrote: On Fri, Jun 18, 2010 at 09:45:22PM +0300, Pasi Kärkkäinen wrote: I wonder if that HDMI-0 is the key to the problem.. I don't have anything connected to the HDMI connector on the laptop. There's no HDMI

Radeon 3650HD laptop LVDS lid open/closed detection problem

2010-06-21 Thread Pasi Kärkkäinen
Hello, After fixing the dvi/hdmi detection problem I now have another problem with the HP EliteBook 8530p, which has Radeon 3650HD adapter. Here's a summary of the environment: - laptop connected to a docking station. - external display in use, connected with DVI to the dock.

KMS:RV635:Radeon 3650HD graphics driver broken on a laptop when connected to a docking station and external display

2010-06-19 Thread Pasi Kärkkäinen
On Fri, Jun 18, 2010 at 09:45:22PM +0300, Pasi K?rkk?inen wrote: > > > > >> > > > > > >> > I wonder if that HDMI-0 is the key to the problem.. I don't have > > > > >> > anything connected > > > > >> > to the HDMI connector on the laptop. There's no HDMI connector on > > > > >> > the dock, it's

KMS:RV635:Radeon 3650HD graphics driver broken on a laptop when connected to a docking station and external display

2010-06-18 Thread Pasi Kärkkäinen
On Wed, Jun 09, 2010 at 06:59:56PM +0300, Pasi K?rkk?inen wrote: > On Thu, Jun 03, 2010 at 07:07:06PM +0300, Pasi K?rkk?inen wrote: > > On Thu, Jun 03, 2010 at 11:33:03AM -0400, Alex Deucher wrote: > > > On Thu, Jun 3, 2010 at 11:30 AM, Pasi K?rkk?inen wrote: > > > > On Thu, Jun 03, 2010 at

Re: KMS:RV635:Radeon 3650HD graphics driver broken on a laptop when connected to a docking station and external display

2010-06-18 Thread Pasi Kärkkäinen
On Wed, Jun 09, 2010 at 06:59:56PM +0300, Pasi Kärkkäinen wrote: On Thu, Jun 03, 2010 at 07:07:06PM +0300, Pasi Kärkkäinen wrote: On Thu, Jun 03, 2010 at 11:33:03AM -0400, Alex Deucher wrote: On Thu, Jun 3, 2010 at 11:30 AM, Pasi Kärkkäinen pa...@iki.fi wrote: On Thu, Jun 03, 2010 at 11

KMS:RV635:Radeon 3650HD graphics driver broken on a laptop when connected to a docking station and external display

2010-06-09 Thread Pasi Kärkkäinen
On Thu, Jun 03, 2010 at 07:07:06PM +0300, Pasi K?rkk?inen wrote: > On Thu, Jun 03, 2010 at 11:33:03AM -0400, Alex Deucher wrote: > > On Thu, Jun 3, 2010 at 11:30 AM, Pasi K?rkk?inen wrote: > > > On Thu, Jun 03, 2010 at 11:00:44AM -0400, Alex Deucher wrote: > > >> >> >> > > >> >> > > > >> >> > I

Re: KMS:RV635:Radeon 3650HD graphics driver broken on a laptop when connected to a docking station and external display

2010-06-09 Thread Pasi Kärkkäinen
On Thu, Jun 03, 2010 at 07:07:06PM +0300, Pasi Kärkkäinen wrote: On Thu, Jun 03, 2010 at 11:33:03AM -0400, Alex Deucher wrote: On Thu, Jun 3, 2010 at 11:30 AM, Pasi Kärkkäinen pa...@iki.fi wrote: On Thu, Jun 03, 2010 at 11:00:44AM -0400, Alex Deucher wrote: I just tried

KMS:RV635:Radeon 3650HD graphics driver broken on a laptop when connected to a docking station and external display

2010-06-03 Thread Pasi Kärkkäinen
On Thu, Jun 03, 2010 at 11:33:03AM -0400, Alex Deucher wrote: > On Thu, Jun 3, 2010 at 11:30 AM, Pasi K?rkk?inen wrote: > > On Thu, Jun 03, 2010 at 11:00:44AM -0400, Alex Deucher wrote: > >> >> >> > >> >> > > >> >> > I just tried with Ubuntu 10.04 (kernel 2.6.32) and it fails in a > >> >> >

KMS:RV635:Radeon 3650HD graphics driver broken on a laptop when connected to a docking station and external display

2010-06-03 Thread Pasi Kärkkäinen
On Thu, Jun 03, 2010 at 11:00:44AM -0400, Alex Deucher wrote: > >> >> > >> > > >> > I just tried with Ubuntu 10.04 (kernel 2.6.32) and it fails in a similar > >> > way than F13 (kernel 2.6.33) does. > >> > > >> > To summarize: > >> > ? ? ? ?- Booting the laptop in the dock, both the internal

KMS:RV635:Radeon 3650HD graphics driver broken on a laptop when connected to a docking station and external display

2010-06-03 Thread Pasi Kärkkäinen
On Wed, Jun 02, 2010 at 05:04:24PM -0400, Alex Deucher wrote: > On Wed, Jun 2, 2010 at 4:36 PM, Pasi K?rkk?inen wrote: > > On Wed, Jun 02, 2010 at 11:15:44PM +0300, Pasi K?rkk?inen wrote: > >> On Wed, Jun 02, 2010 at 03:28:07PM -0400, Alex Deucher wrote: > >> > On Wed, Jun 2, 2010 at 3:12 PM,

KMS:RV635:Radeon 3650HD graphics driver broken on a laptop when connected to a docking station and external display

2010-06-03 Thread Pasi Kärkkäinen
On Wed, Jun 02, 2010 at 11:15:44PM +0300, Pasi K?rkk?inen wrote: > On Wed, Jun 02, 2010 at 03:28:07PM -0400, Alex Deucher wrote: > > On Wed, Jun 2, 2010 at 3:12 PM, Pasi K?rkk?inen wrote: > > > Hello, > > > > > > If someone wants to take a look at this bug I'd be glad: > > > > > >

KMS:RV635:Radeon 3650HD graphics driver broken on a laptop when connected to a docking station and external display

2010-06-03 Thread Pasi Kärkkäinen
On Wed, Jun 02, 2010 at 03:28:07PM -0400, Alex Deucher wrote: > On Wed, Jun 2, 2010 at 3:12 PM, Pasi K?rkk?inen wrote: > > Hello, > > > > If someone wants to take a look at this bug I'd be glad: > > > > "KMS:RV635:Radeon 3650HD graphics driver broken on a laptop when connected > > to a docking

Re: KMS:RV635:Radeon 3650HD graphics driver broken on a laptop when connected to a docking station and external display

2010-06-03 Thread Pasi Kärkkäinen
On Wed, Jun 02, 2010 at 05:04:24PM -0400, Alex Deucher wrote: On Wed, Jun 2, 2010 at 4:36 PM, Pasi Kärkkäinen pa...@iki.fi wrote: On Wed, Jun 02, 2010 at 11:15:44PM +0300, Pasi Kärkkäinen wrote: On Wed, Jun 02, 2010 at 03:28:07PM -0400, Alex Deucher wrote: On Wed, Jun 2, 2010 at 3:12 PM

  1   2   >