Re: [PATCH] Add Intel GMA500(Poulsbo) Stub Driver

2010-11-03 Thread Zhang Rui
Hi, Lee,

Sorry I missed this thread.

On Wed, 2010-10-20 at 13:51 +0800, Lee, Chun-Yi wrote:
> Currently, there have no GMA500(Poulsbo) native video driver to support
> intel opregion. So, use this stub driver to enable the acpi backlight
> control sysfs entry files by requrest acpi_video_register.
> 
If you want the acpi backlight control, why not set CONFIG_ACPI_VIDEO
driver directly?
The reason why i915 driver selects ACPI_VIDEO is that it needs some
cooperation between these two drivers during initialization, or else the
system may hang.

thanks,
rui

> Signed-off-by: Lee, Chun-Yi 
> ---
>  drivers/gpu/Makefile   |2 +-
>  drivers/gpu/stub/Kconfig   |   13 +
>  drivers/gpu/stub/Makefile  |1 +
>  drivers/gpu/stub/poulsbo.c |   63 
> 
>  drivers/video/Kconfig  |2 +
>  5 files changed, 80 insertions(+), 1 deletions(-)
>  create mode 100644 drivers/gpu/stub/Kconfig
>  create mode 100644 drivers/gpu/stub/Makefile
>  create mode 100644 drivers/gpu/stub/poulsbo.c
> 
> diff --git a/drivers/gpu/Makefile b/drivers/gpu/Makefile
> index 30879df..cc92778 100644
> --- a/drivers/gpu/Makefile
> +++ b/drivers/gpu/Makefile
> @@ -1 +1 @@
> -obj-y+= drm/ vga/
> +obj-y+= drm/ vga/ stub/
> diff --git a/drivers/gpu/stub/Kconfig b/drivers/gpu/stub/Kconfig
> new file mode 100644
> index 000..8f5a540
> --- /dev/null
> +++ b/drivers/gpu/stub/Kconfig
> @@ -0,0 +1,13 @@
> +config STUB_POULSBO
> + tristate "Intel GMA500 Stub Driver"
> + depends on PCI
> +# Poulsbo stub depends on ACPI_VIDEO when ACPI is enabled
> +# but for select to work, need to select ACPI_VIDEO's dependencies, 
> ick
> +select ACPI_VIDEO if ACPI
> + help
> +   Choose this option if you have a system that has Intel GMA500
> +   (Poulsbo) integrated graphics. If M is selected, the module will
> +   be called Poulsbo. This driver is a stub driver for Poulsbo that
> +   will call poulsbo.ko to enable the acpi backlight control sysfs
> +   entry file because there have no poulsbo native driver can support
> +   intel opregion.
> diff --git a/drivers/gpu/stub/Makefile b/drivers/gpu/stub/Makefile
> new file mode 100644
> index 000..cd940cc
> --- /dev/null
> +++ b/drivers/gpu/stub/Makefile
> @@ -0,0 +1 @@
> +obj-$(CONFIG_STUB_POULSBO) += poulsbo.o
> diff --git a/drivers/gpu/stub/poulsbo.c b/drivers/gpu/stub/poulsbo.c
> new file mode 100644
> index 000..d8aa636
> --- /dev/null
> +++ b/drivers/gpu/stub/poulsbo.c
> @@ -0,0 +1,63 @@
> +/*
> + * Intel Poulsbo Stub driver
> + *
> + * Copyright (C) 2010 Novell 
> + *
> + * This program is free software; you can redistribute it and/or modify it
> + * under the terms of the GNU General Public License version 2 as published 
> by
> + * the Free Software Foundation.
> + *
> + */
> +
> +#include 
> +#include 
> +#include 
> +
> +#define DRIVER_NAME "poulsbo"
> +
> +enum {
> + CHIP_PSB_8108 = 0,
> + CHIP_PSB_8109 = 1,
> +};
> +
> +static struct pci_device_id pciidlist[] = {
> + {0x8086, 0x8108, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_PSB_8108}, \
> + {0x8086, 0x8109, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_PSB_8109}, \
> + {0, 0, 0}
> +};
> +
> +static int poulsbo_probe(struct pci_dev *pdev, const struct pci_device_id 
> *id)
> +{
> + return acpi_video_register();
> +}
> +
> +static void poulsbo_remove(struct pci_dev *pdev)
> +{
> + acpi_video_unregister();
> +}
> +
> +static struct pci_driver poulsbo_driver = {
> + .name = DRIVER_NAME,
> + .id_table = pciidlist,
> + .probe = poulsbo_probe,
> + .remove = poulsbo_remove,
> +};
> +
> +static int __init poulsbo_init(void)
> +{
> + return pci_register_driver(&poulsbo_driver);
> +}
> +
> +static void __exit poulsbo_exit(void)
> +{
> + pci_unregister_driver(&poulsbo_driver);
> +}
> +
> +module_init(poulsbo_init);
> +module_exit(poulsbo_exit);
> +
> +MODULE_AUTHOR("Lee, Chun-Yi ");
> +MODULE_DESCRIPTION("Poulsbo Stub Driver");
> +MODULE_LICENSE("GPL");
> +
> +MODULE_DEVICE_TABLE(pci, pciidlist);
> diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig
> index 8b31fdf..8807ae5 100644
> --- a/drivers/video/Kconfig
> +++ b/drivers/video/Kconfig
> @@ -17,6 +17,8 @@ source "drivers/gpu/vga/Kconfig"
>  
>  source "drivers/gpu/drm/Kconfig"
>  
> +source "drivers/gpu/stub/Kconfig"
> +
>  config VGASTATE
> tristate
> default n


___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [Ksummit-2010-discuss] [v2] Remaining BKL users, what to do

2010-11-03 Thread Pekka Enberg
On Tue, Nov 2, 2010 at 3:21 AM, Pavel Machek  wrote:
> Hi!
>
>> @@ -79,6 +79,10 @@ static struct drm_driver driver = {
>>
>>  static int __init i810_init(void)
>>  {
>> +     if (num_present_cpus() > 1) {
>> +             pr_err("drm/i810 does not support SMP\n");
>> +             return -EINVAL;
>> +     }
>>       driver.num_ioctls = i810_max_ioctl;
>>       return drm_init(&driver);
>
> Umm, and now someone onlines second cpu?

Well, I see it's being fixed in a different way but yeah,
num_possible_cpus() would be more appropriate here.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [Ksummit-2010-discuss] [v2] Remaining BKL users, what to do

2010-11-03 Thread Pavel Machek
Hi!

> @@ -79,6 +79,10 @@ static struct drm_driver driver = {
>  
>  static int __init i810_init(void)
>  {
> + if (num_present_cpus() > 1) {
> + pr_err("drm/i810 does not support SMP\n");
> + return -EINVAL;
> + }
>   driver.num_ioctls = i810_max_ioctl;
>   return drm_init(&driver);

Umm, and now someone onlines second cpu?

Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) 
http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 29703] demos crashing on rv710 r600g

2010-11-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29703

--- Comment #8 from Michal Suchanek  2010-11-03 04:04:04 
PDT ---
draw-vertices now works reliably with r600c from 7.9 and r600g from git.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 31154] EIZO S2242W has invalid extension block, no display

2010-11-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=31154

--- Comment #4 from sam tygier  2010-11-03 04:37:52 PDT 
---
https://bugs.launchpad.net/linux/+bug/601376/comments/44 seems to be the same
issue on nvidia card, with a different monitor

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 5353] Memory behind 128 MB should be made available ...

2010-11-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=5353

Michel Dänzer  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

--- Comment #8 from Michel Dänzer  2010-11-03 04:58:08 PDT 
---
Fixed with KMS in current kernels.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 29928] [RADEON-KMS, Evergreen, Eyefinity 5] Invalid output on 4th monitor

2010-11-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29928

ISHIKAWA Mutsumi  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

--- Comment #11 from ISHIKAWA Mutsumi  2010-11-03 
08:51:45 PDT ---
I tested this problem on linux kernel 2.6.37-rc1 (from tar ball) again.

This problem is gone on the kernel. My 4th monitor looks fine.
(But I can not find which changeset(s) solve this problem from ChangeLog...)

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 31152] Please backport r200 fix to r100 and r300c

2010-11-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=31152

--- Comment #3 from Alexei  2010-11-03 09:00:45 PDT ---
Alex, I'm also still getting this error on Radeon X1650.

$ lspci -nn | grep VGA
01:00.0 VGA compatible controller [0300]: ATI Technologies Inc RV535 [Radeon
X1650 Series] [1002:71c7] (rev 9e)

Running glxgears and resizing produces:

drmRadeonCmdBuffer: -22. Kernel failed to parse or rejected command stream. See
dmesg for more info.

$ dmesg | tail
[ 255.016584] [drm:r100_cs_track_check] *ERROR* [drm] Buffer too small for z
buffer (need 612864 have 516096) !
[ 255.016594] [drm:r100_cs_track_check] *ERROR* [drm] zbuffer (384 4 0 399)
[ 255.016597] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !

$ uname -a
Linux 2.6.36-020636rc6-generic #201009291126 SMP Wed Sep 29 12:42:36 UTC 2010
i686 GNU/Linux

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


Problems with running Mesa Demos EGL_DRI2 - OpenGLES

2010-11-03 Thread Clurado cl
Hi all , please sombody tell me is egl_dri2 capable of working without x
window ?!

i set the EGL_PLATFORM=drm , EGL_DRIVER=/usr/lib/egl/egl_dri2.so

when i want to run screen demos from mesa egl , opengl es 1 , i got
following errors :

libEGL debug: dlopen(/usr/local/lib/egl/egl_dri2.so)
libEGL debug: DRI2: could not get parent device
libEGL debug: EGL user error 0x3003 (EGL_BAD_ALOC) in DRI2 : failed to get
driver name

EGLUT: failed to initialize EGL Display

--
so whats wrong ?!
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 31364] New: [r300g] CS section size missmatch start at (../../src/radeon_textured_videofuncs.c, R300PrepareTexturedVideoCP, 2184) 66 vs 62

2010-11-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=31364

   Summary: [r300g] CS section size missmatch start at
(../../src/radeon_textured_videofuncs.c,R300PrepareTex
turedVideoCP,2184) 66 vs 62
   Product: Mesa
   Version: git
  Platform: x86 (IA32)
OS/Version: Linux (All)
Status: NEW
  Severity: normal
  Priority: medium
 Component: Drivers/Gallium/r300
AssignedTo: dri-devel@lists.freedesktop.org
ReportedBy: xe...@irc.pl


Created an attachment (id=40021)
 --> (https://bugs.freedesktop.org/attachment.cgi?id=40021)
kdm.log.gz

After an hour or so (maybe less) I'm getting /var/log/kdm.log full of errors:
CS section size missmatch start at
(../../src/radeon_textured_videofuncs.c,R300PrepareTexturedVideoCP,2184) 66 vs
62
CS section end at
(../../src/radeon_textured_videofuncs.c,R300PrepareTexturedVideoCP,2418)

and Xorg process CPU usage gets to near 100% even or P4 with HT so KDE desktop
gets almost unresponsible (wating for few seconds for almost every operation).

At system boot everything is OK - Xorg CPU usage for few percent sometimes even
less, kdm.log doesn't have such errors but after some time using KDE desktop
(no matter if there are KWin effects or not) the problem as described above
occurs.

The problem occurs from at least commits from 2010-10-27 (I'm testing r300g
from xorg-edgers/radeon ppa). I haven't noticed this problem before but before
that date I've used Kubuntu 10.10 + r300g from xorg-edgers/radeon ppa booted
only from pendrive for hour, maybe sometimes some more time between reboots and
now I use the same configuration installed on hard disk.

libgl1-mesa-dri and glx: 7.10.0~git20101101+gallium.ad00a92e-0ubuntu0tormod
and 7.10.0~git20101027+gallium.3acc8265-0ubuntu0tormod before.

Kernel: stock *buntu 10.10 2.6.35-22-generic
Xorg: 1.9.0-0ubuntu7
libdrm2: 2.4.21-1ubuntu2.1
libdrm-radeon1: 2.4.21-1ubuntu2.1

CPU: Intel Pentium 4 32bit with HT
Graphic card: Radeon 9600 AGP (RV350) 256MB
OS: Kubuntu 10.10

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 31364] [r300g] CS section size missmatch start at (../../src/radeon_textured_videofuncs.c, R300PrepareTexturedVideoCP, 2184) 66 vs 62

2010-11-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=31364

--- Comment #1 from Tomasz Czapiewski  2010-11-03 13:30:38 PDT ---
Created an attachment (id=40022)
 --> (https://bugs.freedesktop.org/attachment.cgi?id=40022)
dmesg

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 31364] [r300g] CS section size missmatch start at (../../src/radeon_textured_videofuncs.c, R300PrepareTexturedVideoCP, 2184) 66 vs 62

2010-11-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=31364

--- Comment #2 from Tomasz Czapiewski  2010-11-03 13:31:15 PDT ---
Created an attachment (id=40023)
 --> (https://bugs.freedesktop.org/attachment.cgi?id=40023)
Xorg.0.log

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 31364] [r300g] CS section size missmatch start at (../../src/radeon_textured_videofuncs.c, R300PrepareTexturedVideoCP, 2184) 66 vs 62

2010-11-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=31364

Tomasz Czapiewski  changed:

   What|Removed |Added

 CC||xe...@irc.pl

--- Comment #3 from Tomasz Czapiewski  2010-11-03 13:33:18 PDT ---
And the kernel is stock *buntu but with one module (drm_kms_helper) patched for
parameter to disable poll with kernel parameter:
drm_kms_helper.poll=0

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [PATCH] i915: reprogram power monitoring registers on resume

2010-11-03 Thread Chris Wilson
On Wed, 3 Nov 2010 16:27:57 -0400, Kyle McMartin  wrote:
> From: Kyle McMartin 
> 
> Fixes issue where i915_gfx_val was reporting values several
> orders of magnitude higher than physically possible (without
> leaving scorch marks on my thighs at least.)

Applied to -fixes, thanks.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 28402] random radeon/kms/drm related freezes with kernel 2.6.34

2010-11-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=28402

--- Comment #97 from mrste...@gmx.de 2010-11-03 15:10:44 PDT ---
Just for the record: The patch in Comment #85 fixes it for me as well. Firefox,
compositing (KWin 4.4), Extreme-Tuxracer - everything's just rock solid now.

Thanks for your amazing work! This is what I call great support for Linux!

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[PATCH 1/2] drm/ttm: ensure ttm_mem_io_free is called on bo destruction

2010-11-03 Thread Ben Skeggs
From: Ben Skeggs 

Nouveau will start to use ttm_mem_io_reserve to allocate BAR VM space
for VRAM mappings, and without this call GPU address space gets leaked.

Signed-off-by: Ben Skeggs 
---
 drivers/gpu/drm/ttm/ttm_bo.c |1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c
index dfa163b..c373cf9 100644
--- a/drivers/gpu/drm/ttm/ttm_bo.c
+++ b/drivers/gpu/drm/ttm/ttm_bo.c
@@ -472,6 +472,7 @@ static void ttm_bo_cleanup_memtype_use(struct 
ttm_buffer_object *bo)
wake_up_all(&bo->event_queue);
spin_unlock(&glob->lru_lock);
 
+   ttm_mem_io_free(bo->bdev, &tmp_mem);
ttm_bo_mem_put(bo, &tmp_mem);
 }
 
-- 
1.7.3.1

___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[PATCH 2/2] drm/ttm: track kmap io_reserve(), only unreserve on unmap where needed

2010-11-03 Thread Ben Skeggs
From: Ben Skeggs 

If the driver kmaps an object userspace is expecting to be mapped, the
unmap would have called down into the drivers io_unreserve() function
and potentially unmapped the pages from its BARs (for example) and they'd
no longer be accessible for the userspace mapping.

Signed-off-by: Ben Skeggs 
---
 drivers/gpu/drm/ttm/ttm_bo_util.c |   14 ++
 include/drm/ttm/ttm_bo_api.h  |1 +
 2 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/ttm/ttm_bo_util.c 
b/drivers/gpu/drm/ttm/ttm_bo_util.c
index ff358ad..e9dbe8b 100644
--- a/drivers/gpu/drm/ttm/ttm_bo_util.c
+++ b/drivers/gpu/drm/ttm/ttm_bo_util.c
@@ -467,9 +467,12 @@ int ttm_bo_kmap(struct ttm_buffer_object *bo,
if (num_pages > 1 && !DRM_SUSER(DRM_CURPROC))
return -EPERM;
 #endif
-   ret = ttm_mem_io_reserve(bo->bdev, &bo->mem);
-   if (ret)
-   return ret;
+   if (!bo->mem.bus.io_reserved) {
+   ret = ttm_mem_io_reserve(bo->bdev, &bo->mem);
+   if (ret)
+   return ret;
+   map->io_reserved = true;
+   }
if (!bo->mem.bus.is_iomem) {
return ttm_bo_kmap_ttm(bo, start_page, num_pages, map);
} else {
@@ -487,7 +490,10 @@ void ttm_bo_kunmap(struct ttm_bo_kmap_obj *map)
switch (map->bo_kmap_type) {
case ttm_bo_map_iomap:
iounmap(map->virtual);
-   ttm_mem_io_free(map->bo->bdev, &map->bo->mem);
+   if (map->io_reserved) {
+   ttm_mem_io_free(map->bo->bdev, &map->bo->mem);
+   map->io_reserved = false;
+   }
break;
case ttm_bo_map_vmap:
vunmap(map->virtual);
diff --git a/include/drm/ttm/ttm_bo_api.h b/include/drm/ttm/ttm_bo_api.h
index 5afa5b5..ce998ac 100644
--- a/include/drm/ttm/ttm_bo_api.h
+++ b/include/drm/ttm/ttm_bo_api.h
@@ -300,6 +300,7 @@ struct ttm_bo_kmap_obj {
ttm_bo_map_premapped= 4 | TTM_BO_MAP_IOMEM_MASK,
} bo_kmap_type;
struct ttm_buffer_object *bo;
+   bool io_reserved;
 };
 
 /**
-- 
1.7.3.1

___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[PATCH] Add Intel GMA500(Poulsbo) Stub Driver

2010-11-03 Thread Zhang Rui
Hi, Lee,

Sorry I missed this thread.

On Wed, 2010-10-20 at 13:51 +0800, Lee, Chun-Yi wrote:
> Currently, there have no GMA500(Poulsbo) native video driver to support
> intel opregion. So, use this stub driver to enable the acpi backlight
> control sysfs entry files by requrest acpi_video_register.
> 
If you want the acpi backlight control, why not set CONFIG_ACPI_VIDEO
driver directly?
The reason why i915 driver selects ACPI_VIDEO is that it needs some
cooperation between these two drivers during initialization, or else the
system may hang.

thanks,
rui

> Signed-off-by: Lee, Chun-Yi 
> ---
>  drivers/gpu/Makefile   |2 +-
>  drivers/gpu/stub/Kconfig   |   13 +
>  drivers/gpu/stub/Makefile  |1 +
>  drivers/gpu/stub/poulsbo.c |   63 
> 
>  drivers/video/Kconfig  |2 +
>  5 files changed, 80 insertions(+), 1 deletions(-)
>  create mode 100644 drivers/gpu/stub/Kconfig
>  create mode 100644 drivers/gpu/stub/Makefile
>  create mode 100644 drivers/gpu/stub/poulsbo.c
> 
> diff --git a/drivers/gpu/Makefile b/drivers/gpu/Makefile
> index 30879df..cc92778 100644
> --- a/drivers/gpu/Makefile
> +++ b/drivers/gpu/Makefile
> @@ -1 +1 @@
> -obj-y+= drm/ vga/
> +obj-y+= drm/ vga/ stub/
> diff --git a/drivers/gpu/stub/Kconfig b/drivers/gpu/stub/Kconfig
> new file mode 100644
> index 000..8f5a540
> --- /dev/null
> +++ b/drivers/gpu/stub/Kconfig
> @@ -0,0 +1,13 @@
> +config STUB_POULSBO
> + tristate "Intel GMA500 Stub Driver"
> + depends on PCI
> +# Poulsbo stub depends on ACPI_VIDEO when ACPI is enabled
> +# but for select to work, need to select ACPI_VIDEO's dependencies, 
> ick
> +select ACPI_VIDEO if ACPI
> + help
> +   Choose this option if you have a system that has Intel GMA500
> +   (Poulsbo) integrated graphics. If M is selected, the module will
> +   be called Poulsbo. This driver is a stub driver for Poulsbo that
> +   will call poulsbo.ko to enable the acpi backlight control sysfs
> +   entry file because there have no poulsbo native driver can support
> +   intel opregion.
> diff --git a/drivers/gpu/stub/Makefile b/drivers/gpu/stub/Makefile
> new file mode 100644
> index 000..cd940cc
> --- /dev/null
> +++ b/drivers/gpu/stub/Makefile
> @@ -0,0 +1 @@
> +obj-$(CONFIG_STUB_POULSBO) += poulsbo.o
> diff --git a/drivers/gpu/stub/poulsbo.c b/drivers/gpu/stub/poulsbo.c
> new file mode 100644
> index 000..d8aa636
> --- /dev/null
> +++ b/drivers/gpu/stub/poulsbo.c
> @@ -0,0 +1,63 @@
> +/*
> + * Intel Poulsbo Stub driver
> + *
> + * Copyright (C) 2010 Novell 
> + *
> + * This program is free software; you can redistribute it and/or modify it
> + * under the terms of the GNU General Public License version 2 as published 
> by
> + * the Free Software Foundation.
> + *
> + */
> +
> +#include 
> +#include 
> +#include 
> +
> +#define DRIVER_NAME "poulsbo"
> +
> +enum {
> + CHIP_PSB_8108 = 0,
> + CHIP_PSB_8109 = 1,
> +};
> +
> +static struct pci_device_id pciidlist[] = {
> + {0x8086, 0x8108, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_PSB_8108}, \
> + {0x8086, 0x8109, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_PSB_8109}, \
> + {0, 0, 0}
> +};
> +
> +static int poulsbo_probe(struct pci_dev *pdev, const struct pci_device_id 
> *id)
> +{
> + return acpi_video_register();
> +}
> +
> +static void poulsbo_remove(struct pci_dev *pdev)
> +{
> + acpi_video_unregister();
> +}
> +
> +static struct pci_driver poulsbo_driver = {
> + .name = DRIVER_NAME,
> + .id_table = pciidlist,
> + .probe = poulsbo_probe,
> + .remove = poulsbo_remove,
> +};
> +
> +static int __init poulsbo_init(void)
> +{
> + return pci_register_driver(&poulsbo_driver);
> +}
> +
> +static void __exit poulsbo_exit(void)
> +{
> + pci_unregister_driver(&poulsbo_driver);
> +}
> +
> +module_init(poulsbo_init);
> +module_exit(poulsbo_exit);
> +
> +MODULE_AUTHOR("Lee, Chun-Yi ");
> +MODULE_DESCRIPTION("Poulsbo Stub Driver");
> +MODULE_LICENSE("GPL");
> +
> +MODULE_DEVICE_TABLE(pci, pciidlist);
> diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig
> index 8b31fdf..8807ae5 100644
> --- a/drivers/video/Kconfig
> +++ b/drivers/video/Kconfig
> @@ -17,6 +17,8 @@ source "drivers/gpu/vga/Kconfig"
>  
>  source "drivers/gpu/drm/Kconfig"
>  
> +source "drivers/gpu/stub/Kconfig"
> +
>  config VGASTATE
> tristate
> default n




[Ksummit-2010-discuss] [v2] Remaining BKL users, what to do

2010-11-03 Thread Pekka Enberg
On Tue, Nov 2, 2010 at 3:21 AM, Pavel Machek  wrote:
> Hi!
>
>> @@ -79,6 +79,10 @@ static struct drm_driver driver = {
>>
>> ?static int __init i810_init(void)
>> ?{
>> + ? ? if (num_present_cpus() > 1) {
>> + ? ? ? ? ? ? pr_err("drm/i810 does not support SMP\n");
>> + ? ? ? ? ? ? return -EINVAL;
>> + ? ? }
>> ? ? ? driver.num_ioctls = i810_max_ioctl;
>> ? ? ? return drm_init(&driver);
>
> Umm, and now someone onlines second cpu?

Well, I see it's being fixed in a different way but yeah,
num_possible_cpus() would be more appropriate here.


[Bug 29703] demos crashing on rv710 r600g

2010-11-03 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=29703

--- Comment #8 from Michal Suchanek  2010-11-03 
04:04:04 PDT ---
draw-vertices now works reliably with r600c from 7.9 and r600g from git.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 31154] EIZO S2242W has invalid extension block, no display

2010-11-03 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=31154

--- Comment #4 from sam tygier  2010-11-03 04:37:52 
PDT ---
https://bugs.launchpad.net/linux/+bug/601376/comments/44 seems to be the same
issue on nvidia card, with a different monitor

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 5353] Memory behind 128 MB should be made available ...

2010-11-03 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=5353

Michel D?nzer  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

--- Comment #8 from Michel D?nzer  2010-11-03 04:58:08 
PDT ---
Fixed with KMS in current kernels.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 29928] [RADEON-KMS, Evergreen, Eyefinity 5] Invalid output on 4th monitor

2010-11-03 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=29928

ISHIKAWA Mutsumi  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

--- Comment #11 from ISHIKAWA Mutsumi  2010-11-03 
08:51:45 PDT ---
I tested this problem on linux kernel 2.6.37-rc1 (from tar ball) again.

This problem is gone on the kernel. My 4th monitor looks fine.
(But I can not find which changeset(s) solve this problem from ChangeLog...)

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 31152] Please backport r200 fix to r100 and r300c

2010-11-03 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=31152

--- Comment #3 from Alexei  2010-11-03 09:00:45 PDT ---
Alex, I'm also still getting this error on Radeon X1650.

$ lspci -nn | grep VGA
01:00.0 VGA compatible controller [0300]: ATI Technologies Inc RV535 [Radeon
X1650 Series] [1002:71c7] (rev 9e)

Running glxgears and resizing produces:

drmRadeonCmdBuffer: -22. Kernel failed to parse or rejected command stream. See
dmesg for more info.

$ dmesg | tail
[ 255.016584] [drm:r100_cs_track_check] *ERROR* [drm] Buffer too small for z
buffer (need 612864 have 516096) !
[ 255.016594] [drm:r100_cs_track_check] *ERROR* [drm] zbuffer (384 4 0 399)
[ 255.016597] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !

$ uname -a
Linux 2.6.36-020636rc6-generic #201009291126 SMP Wed Sep 29 12:42:36 UTC 2010
i686 GNU/Linux

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


Problems with running Mesa Demos EGL_DRI2 - OpenGLES

2010-11-03 Thread Clurado cl
Hi all , please sombody tell me is egl_dri2 capable of working without x
window ?!

i set the EGL_PLATFORM=drm , EGL_DRIVER=/usr/lib/egl/egl_dri2.so

when i want to run screen demos from mesa egl , opengl es 1 , i got
following errors :

libEGL debug: dlopen(/usr/local/lib/egl/egl_dri2.so)
libEGL debug: DRI2: could not get parent device
libEGL debug: EGL user error 0x3003 (EGL_BAD_ALOC) in DRI2 : failed to get
driver name

EGLUT: failed to initialize EGL Display

--
so whats wrong ?!
-- next part --
An HTML attachment was scrubbed...
URL: 
<http://lists.freedesktop.org/archives/dri-devel/attachments/20101103/f3bb9220/attachment.htm>


[Bug 31364] New: [r300g] CS section size missmatch start at (../../src/radeon_textured_videofuncs.c, R300PrepareTexturedVideoCP, 2184) 66 vs 62

2010-11-03 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=31364

   Summary: [r300g] CS section size missmatch start at
(../../src/radeon_textured_videofuncs.c,R300PrepareTex
turedVideoCP,2184) 66 vs 62
   Product: Mesa
   Version: git
  Platform: x86 (IA32)
OS/Version: Linux (All)
Status: NEW
  Severity: normal
  Priority: medium
 Component: Drivers/Gallium/r300
AssignedTo: dri-devel at lists.freedesktop.org
ReportedBy: xeros at irc.pl


Created an attachment (id=40021)
 --> (https://bugs.freedesktop.org/attachment.cgi?id=40021)
kdm.log.gz

After an hour or so (maybe less) I'm getting /var/log/kdm.log full of errors:
CS section size missmatch start at
(../../src/radeon_textured_videofuncs.c,R300PrepareTexturedVideoCP,2184) 66 vs
62
CS section end at
(../../src/radeon_textured_videofuncs.c,R300PrepareTexturedVideoCP,2418)

and Xorg process CPU usage gets to near 100% even or P4 with HT so KDE desktop
gets almost unresponsible (wating for few seconds for almost every operation).

At system boot everything is OK - Xorg CPU usage for few percent sometimes even
less, kdm.log doesn't have such errors but after some time using KDE desktop
(no matter if there are KWin effects or not) the problem as described above
occurs.

The problem occurs from at least commits from 2010-10-27 (I'm testing r300g
from xorg-edgers/radeon ppa). I haven't noticed this problem before but before
that date I've used Kubuntu 10.10 + r300g from xorg-edgers/radeon ppa booted
only from pendrive for hour, maybe sometimes some more time between reboots and
now I use the same configuration installed on hard disk.

libgl1-mesa-dri and glx: 7.10.0~git20101101+gallium.ad00a92e-0ubuntu0tormod
and 7.10.0~git20101027+gallium.3acc8265-0ubuntu0tormod before.

Kernel: stock *buntu 10.10 2.6.35-22-generic
Xorg: 1.9.0-0ubuntu7
libdrm2: 2.4.21-1ubuntu2.1
libdrm-radeon1: 2.4.21-1ubuntu2.1

CPU: Intel Pentium 4 32bit with HT
Graphic card: Radeon 9600 AGP (RV350) 256MB
OS: Kubuntu 10.10

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 31364] [r300g] CS section size missmatch start at (../../src/radeon_textured_videofuncs.c, R300PrepareTexturedVideoCP, 2184) 66 vs 62

2010-11-03 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=31364

--- Comment #1 from Tomasz Czapiewski  2010-11-03 13:30:38 PDT 
---
Created an attachment (id=40022)
 --> (https://bugs.freedesktop.org/attachment.cgi?id=40022)
dmesg

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 31364] [r300g] CS section size missmatch start at (../../src/radeon_textured_videofuncs.c, R300PrepareTexturedVideoCP, 2184) 66 vs 62

2010-11-03 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=31364

--- Comment #2 from Tomasz Czapiewski  2010-11-03 13:31:15 PDT 
---
Created an attachment (id=40023)
 --> (https://bugs.freedesktop.org/attachment.cgi?id=40023)
Xorg.0.log

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 31364] [r300g] CS section size missmatch start at (../../src/radeon_textured_videofuncs.c, R300PrepareTexturedVideoCP, 2184) 66 vs 62

2010-11-03 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=31364

Tomasz Czapiewski  changed:

   What|Removed |Added

 CC||xeros at irc.pl

--- Comment #3 from Tomasz Czapiewski  2010-11-03 13:33:18 PDT 
---
And the kernel is stock *buntu but with one module (drm_kms_helper) patched for
parameter to disable poll with kernel parameter:
drm_kms_helper.poll=0

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[PATCH] i915: reprogram power monitoring registers on resume

2010-11-03 Thread Chris Wilson
On Wed, 3 Nov 2010 16:27:57 -0400, Kyle McMartin  wrote:
> From: Kyle McMartin 
> 
> Fixes issue where i915_gfx_val was reporting values several
> orders of magnitude higher than physically possible (without
> leaving scorch marks on my thighs at least.)

Applied to -fixes, thanks.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


[Bug 28402] random radeon/kms/drm related freezes with kernel 2.6.34

2010-11-03 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=28402

--- Comment #97 from mrsteven at gmx.de 2010-11-03 15:10:44 PDT ---
Just for the record: The patch in Comment #85 fixes it for me as well. Firefox,
compositing (KWin 4.4), Extreme-Tuxracer - everything's just rock solid now.

Thanks for your amazing work! This is what I call great support for Linux!

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[PATCH] i915: reprogram power monitoring registers on resume

2010-11-03 Thread Kyle McMartin
From: Kyle McMartin 

Fixes issue where i915_gfx_val was reporting values several
orders of magnitude higher than physically possible (without
leaving scorch marks on my thighs at least.)

Signed-off-by: Kyle McMartin 
Reviewed-by: Jesse Barnes 
---
 drivers/gpu/drm/i915/i915_suspend.c |4 +++-
 drivers/gpu/drm/i915/intel_drv.h|1 +
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_suspend.c 
b/drivers/gpu/drm/i915/i915_suspend.c
index 989c19d..454c064 100644
--- a/drivers/gpu/drm/i915/i915_suspend.c
+++ b/drivers/gpu/drm/i915/i915_suspend.c
@@ -862,8 +862,10 @@ int i915_restore_state(struct drm_device *dev)
/* Clock gating state */
intel_init_clock_gating(dev);

-   if (HAS_PCH_SPLIT(dev))
+   if (HAS_PCH_SPLIT(dev)) {
ironlake_enable_drps(dev);
+   intel_init_emon(dev);
+   }

/* Cache mode state */
I915_WRITE (CACHE_MODE_0, dev_priv->saveCACHE_MODE_0 | 0x);
diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h
index 9af9f86..21551fe 100644
--- a/drivers/gpu/drm/i915/intel_drv.h
+++ b/drivers/gpu/drm/i915/intel_drv.h
@@ -296,6 +296,7 @@ extern void intel_crtc_fb_gamma_get(struct drm_crtc *crtc, 
u16 *red, u16 *green,
 extern void intel_init_clock_gating(struct drm_device *dev);
 extern void ironlake_enable_drps(struct drm_device *dev);
 extern void ironlake_disable_drps(struct drm_device *dev);
+extern void intel_init_emon(struct drm_device *dev);

 extern int intel_pin_and_fence_fb_obj(struct drm_device *dev,
  struct drm_gem_object *obj,
-- 
1.7.3.1