Skip to contentSkip to conversation

Intel Poulsbo [psb] driver for Asus Eeepc 1101

DISCUSSION Zeno Davatz 4 participants 15 messages Nov 19, 2009 – Dec 7, 2009

lore
Share & tools
lore
#0 lore raw

Hi

I am looking for the Asus Eeepc Poulsbo (psb) driver in Kernel 2.6.32-rc7. When is this driver expected to make it into the kernel?

At the moment I am getting following error:

CC [M] /var/tmp/portage/x11-drivers/psb-kmod-4.41.1_p10/work/psb-kernel-source-4.41.1/drm_ttm.o
CC [M] /var/tmp/portage/x11-drivers/psb-kmod-4.41.1_p10/work/psb-kernel-source-4.41.1/drm_bo.o
/var/tmp/portage/x11-drivers/psb-kmod-4.41.1_p10/work/psb-kernel-source-4.41.1/drm_ttm.c:
In function 'drm_ttm_ipi_handler':
/var/tmp/portage/x11-drivers/psb-kmod-4.41.1_p10/work/psb-kernel-source-4.41.1/drm_ttm.c:35:
error: implicit declaration of function 'flush_agp_cache' /var/tmp/portage/x11-drivers/psb-kmod-4.41.1_p10/work/psb-kernel-source-4.41.1/drm_ttm.c:
In function 'drm_set_caching':
/var/tmp/portage/x11-drivers/psb-kmod-4.41.1_p10/work/psb-kernel-source-4.41.1/drm_ttm.c:116:
error: implicit declaration of function 'map_page_into_agp' /var/tmp/portage/x11-drivers/psb-kmod-4.41.1_p10/work/psb-kernel-source-4.41.1/drm_ttm.c:118:
error: implicit declaration of function 'unmap_page_from_agp'
make[2]: *** [/var/tmp/portage/x11-drivers/psb-kmod-4.41.1_p10/work/psb-kernel-source-4.41.1/drm_ttm.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/var/tmp/portage/x11-drivers/psb-kmod-4.41.1_p10/work/psb-kernel-source-4.41.1] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.32-rc7'
make: *** [modules] Error 2
* ERROR: x11-drivers/psb-kmod-4.41.1_p10 failed:
* (no error message)
*
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 3471: Called die
* The specific snippet of code:
* LINUXDIR=/usr/src/linux emake DRM_MODULES=psb || die
*

When trying to use the driver from:

http://www.happyassassin.net/2009/09/26/gma-500-poulsbo-driver-for-fedora-11-soon-to-be-in-rpm-fusion/comment-page-1/#comment-1005

I would prefer to install the driver directly from the kernel.

Thank you for your Feedback.

Let me know if you need my .config.

Best
Zeno

#1 lore raw

Op 19-11-09 09:52, Zeno Davatz schreef:

Quoted 18 lines

Hi

I am looking for the Asus Eeepc Poulsbo (psb) driver in Kernel 2.6.32-rc7. When is this driver expected to make it into the kernel?

At the moment I am getting following error:

CC [M] /var/tmp/portage/x11-drivers/psb-kmod-4.41.1_p10/work/psb-kernel-source-4.41.1/drm_ttm.o
CC [M] /var/tmp/portage/x11-drivers/psb-kmod-4.41.1_p10/work/psb-kernel-source-4.41.1/drm_bo.o
/var/tmp/portage/x11-drivers/psb-kmod-4.41.1_p10/work/psb-kernel-source-4.41.1/drm_ttm.c:
In function 'drm_ttm_ipi_handler':
/var/tmp/portage/x11-drivers/psb-kmod-4.41.1_p10/work/psb-kernel-source-4.41.1/drm_ttm.c:35:
error: implicit declaration of function 'flush_agp_cache' /var/tmp/portage/x11-drivers/psb-kmod-4.41.1_p10/work/psb-kernel-source-4.41.1/drm_ttm.c:
In function 'drm_set_caching':
/var/tmp/portage/x11-drivers/psb-kmod-4.41.1_p10/work/psb-kernel-source-4.41.1/drm_ttm.c:116:
error: implicit declaration of function 'map_page_into_agp' /var/tmp/portage/x11-drivers/psb-kmod-4.41.1_p10/work/psb-kernel-source-4.41.1/drm_ttm.c:118:

Quoted 8 lines

error: implicit declaration of function 'unmap_page_from_agp'
make[2]: *** [/var/tmp/portage/x11-drivers/psb-kmod-4.41.1_p10/work/psb-kernel-source-4.41.1/drm_ttm.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/var/tmp/portage/x11-drivers/psb-kmod-4.41.1_p10/work/psb-kernel-source-4.41.1] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.32-rc7'
make: *** [modules] Error 2

Hi,
I'd also be interested by a patch to get the psb kernel module to compile with 2.6.32. If anyone has this already available, please post it! Or maybe someone knows what should be done to fix this type of errors?

Thanks,
Eric

#2 lore raw

Op 19-11-09 15:28, Éric Piel schreef:

Quoted 5 lines

Op 19-11-09 09:52, Zeno Davatz schreef:

Quoted 4 lines

Hi

I am looking for the Asus Eeepc Poulsbo (psb) driver in Kernel 2.6.32-rc7. When is this driver expected to make it into the kernel?

:

Quoted 4 lines

Hi,
I'd also be interested by a patch to get the psb kernel module to compile with 2.6.32. If anyone has this already available, please post it! Or maybe someone knows what should be done to fix this type of errors?

Hello,

I've just noticed that Zac Medico has written the fixes (as sed scripts) for the psb driver in gentoo. Below is the patch version of his fixes. It works for me :-)

Thanks Zac!
See you,
Eric

8<--------------------------------------------------
psb: Fix compilation with kernel 2.6.32

This patch made from the Gentoo ebuild written by Zac Medico <[email protected]>, to fix compilation of the psb module with kernel 2.6.32

It should be safe to be used with older version of the kernel. It fixes two changes:
* In commit 6a12235c7d2d75c7d94b9afcaaecd422ff845ce0 phys_to_gart was removed since it is a 1:1 mapping on all platforms.
* The acpi PREFIX constant is gone.

---

drm_agpsupport.c +1 -1
diff -urP psb-4.41.1-4mdv2010.0.orig/drm_agpsupport.c psb-4.41.1-4mdv2010.0.fix2632/drm_agpsupport.c
@@ -524,7 +524,7 @@
 	DRM_DEBUG("Current page count is %ld\n", (long) mem->page_count);
 	mem->page_count = 0;
 	for (cur_page = pages; cur_page < last_page; ++cur_page)
-		mem->pages[mem->page_count++] = phys_to_gart(page_to_phys(*cur_page));
+		mem->pages[mem->page_count++] = page_to_phys(*cur_page);
 	agp_be->mem = mem;
 	return 0;
 }
drm_edid.c +1 -1
diff -urP psb-4.41.1-4mdv2010.0.orig/drm_edid.c psb-4.41.1-4mdv2010.0.fix2632/drm_edid.c
@@ -39,7 +39,7 @@
 	if (obj && obj->type == ACPI_TYPE_BUFFER)
 		memcpy(edid, obj->buffer.pointer, obj->buffer.length);
 	else {
-		printk(KERN_ERR PREFIX "Invalid _DDC data\n");
+		printk(KERN_ERR "ACPI: " "Invalid _DDC data\n");
 		status = -EFAULT;
 		kfree(obj);
 	}
#3 lore raw
Quoted 11 lines · Éric Piel

Op 19-11-09 15:28, Éric Piel schreef:

Quoted 5 lines

Op 19-11-09 09:52, Zeno Davatz schreef:

Quoted 4 lines

Hi

I am looking for the Asus Eeepc Poulsbo (psb) driver in Kernel 2.6.32-rc7. When is this driver expected to make it into the kernel?

:

Quoted 4 lines

Hi,
I'd also be interested by a patch to get the psb kernel module to compile with 2.6.32. If anyone has this already available, please post it! Or maybe someone knows what should be done to fix this type of errors?

Quoted 5 lines

Hello,

I've just noticed that Zac Medico has written the fixes (as sed scripts) for the psb driver in gentoo. Below is the patch version of his fixes. It works for me :-)

Ok, it does compile but when I insert the module I get:

psb: Unknown symbol i2c_bit_add_bus

I got the exact same error with 2.6.29

Best
Zeno

#4 lore raw
Quoted 3 lines · Zeno Davatz

Ok, it does compile but when I insert the module I get:

psb: Unknown symbol i2c_bit_add_bus

This might solve it:

modprobe i2c_algo_bit

That module comes from CONFIG_I2C_ALGOBIT=m in your kernel config.

Signature · 2 lines
Thanks,
Zac
#5 lore raw
Quoted 10 lines · Zac Medico
Quoted 3 lines · Zeno Davatz

Ok, it does compile but when I insert the module I get:

psb: Unknown symbol i2c_bit_add_bus

This might solve it:

 modprobe i2c_algo_bit

That module comes from CONFIG_I2C_ALGOBIT=m in your kernel config.

Yes, thanks. That helped another step. I am getting the correct screen resolution after enabling that in the kernel as well. The boot [ok] messages of Gentoo are in a higher resolution now though. That is a good start.

But after my X starts I get a black screen with a

-

in the top left corner. They keyboard also does not work. May be an X.org config problem.

Also this is in my /var/log/messages

[    6.348077] [drm:psb_do_init] *ERROR* Debug is 0x00000000

Best
Zeno

#6 lore raw

Op 06-12-09 17:35, Zeno Davatz schreef:
:

Quoted 5 lines

Yes, thanks. That helped another step. I am getting the correct screen resolution after enabling that in the kernel as well. The boot [ok] messages of Gentoo are in a higher resolution now though. That is a good start.

Quoted 7 lines

But after my X starts I get a black screen with a

-

in the top left corner. They keyboard also does not work. May be an X.org config problem.

I've got similar behaviour here if psb is loaded before the X server starts (aka there is a framebuffer). If the console is just ascii (no vga=... argument on the kernel boot line, and no "modprobe psb"), then X starts fine.

Eric

#7 lore raw
Quoted 12 lines · Éric Piel

Op 06-12-09 17:35, Zeno Davatz schreef:
:

Quoted 10 lines

Yes, thanks. That helped another step. I am getting the correct screen resolution after enabling that in the kernel as well. The boot [ok] messages of Gentoo are in a higher resolution now though. That is a good start.

But after my X starts I get a black screen with a

-

Quoted 7 lines
Quoted 3 lines

in the top left corner. They keyboard also does not work. May be an X.org config problem.

I've got similar behaviour here if psb is loaded before the X server starts (aka there is a framebuffer). If the console is just ascii (no vga=... argument on the kernel boot line, and no "modprobe psb"), then X starts fine.

When I do X -configure I also get:

X: symbol lookup error: /usr/lib/xorg/modules/drivers/psb_drv.so:
undefined symbol: LoaderRefSymLists

Let me know if you need any other info.

I will now try Eric's version from above.

Best
Zeno

#8 lore raw
In reply to Éric Piel
Quoted 12 lines · Éric Piel

Op 06-12-09 17:35, Zeno Davatz schreef:
:

Quoted 10 lines

Yes, thanks. That helped another step. I am getting the correct screen resolution after enabling that in the kernel as well. The boot [ok] messages of Gentoo are in a higher resolution now though. That is a good start.

But after my X starts I get a black screen with a

-

Quoted 7 lines
Quoted 3 lines

in the top left corner. They keyboard also does not work. May be an X.org config problem.

I've got similar behaviour here if psb is loaded before the X server starts (aka there is a framebuffer). If the console is just ascii (no vga=... argument on the kernel boot line, and no "modprobe psb"), then X starts fine.

What are the exact options that you are using for "no vga"?

My terminal seems to automatically load "psb". I have no modprobe loading "psb" explicitly.

Best
Zeno

#9 lore raw

Op 07-12-09 10:43, Zeno Davatz schreef:

Quoted 20 lines · Éric Piel
Quoted 11 lines

Op 06-12-09 17:35, Zeno Davatz schreef:
:

Quoted 9 lines

Yes, thanks. That helped another step. I am getting the correct screen resolution after enabling that in the kernel as well. The boot [ok] messages of Gentoo are in a higher resolution now though. That is a good start.

But after my X starts I get a black screen with a

-

Quoted 7 lines
Quoted 3 lines

in the top left corner. They keyboard also does not work. May be an X.org config problem.

I've got similar behaviour here if psb is loaded before the X server starts (aka there is a framebuffer). If the console is just ascii (no vga=... argument on the kernel boot line, and no "modprobe psb"), then X starts fine.

Quoted 5 lines

What are the exact options that you are using for "no vga"?

My terminal seems to automatically load "psb". I have no modprobe loading "psb" explicitly.

Well, I don't know exactly how it works, probably it's part of the initrd. Here, on Mandriva, if I remove the "vga" argument, it automatically stays in ascii mode.

You could use lsinitrd to check your initrd.
Eric

#10 lore raw
Quoted 21 lines · Éric Piel

Op 07-12-09 10:43, Zeno Davatz schreef:

Quoted 20 lines · Éric Piel
Quoted 18 lines

Op 06-12-09 17:35, Zeno Davatz schreef:
:

Quoted 5 lines

Yes, thanks. That helped another step. I am getting the correct screen resolution after enabling that in the kernel as well. The boot [ok] messages of Gentoo are in a higher resolution now though. That is a good start.

Quoted 7 lines

But after my X starts I get a black screen with a

-

in the top left corner. They keyboard also does not work. May be an X.org config problem.

I've got similar behaviour here if psb is loaded before the X server starts (aka there is a framebuffer). If the console is just ascii (no vga=... argument on the kernel boot line, and no "modprobe psb"), then X starts fine.

Quoted 8 lines
Quoted 5 lines

What are the exact options that you are using for "no vga"?

My terminal seems to automatically load "psb". I have no modprobe loading "psb" explicitly.

Well, I don't know exactly how it works, probably it's part of the initrd. Here, on Mandriva, if I remove the "vga" argument, it automatically stays in ascii mode.

Not the same on Gentoo. I think I have to find the kernel boot-option that I can pass to lilo.

Also: When I force remove the modules psb and drm_psb with "rmmod -f" and then start X I get the same error:

X: symbol lookup error: /usr/lib/xorg/modules/drivers/psb_drv.so:
undefined symbol: LoaderRefSymLists

X just does not yet like psb.

;)

Best
Zeno

#11 lore raw

Op 07-12-09 11:02, Zeno Davatz schreef:
:

Quoted 10 lines

Not the same on Gentoo. I think I have to find the kernel boot-option that I can pass to lilo.

Also: When I force remove the modules psb and drm_psb with "rmmod -f" and then start X I get the same error:

X: symbol lookup error: /usr/lib/xorg/modules/drivers/psb_drv.so:
undefined symbol: LoaderRefSymLists

X just does not yet like psb.

You are also aware that it does not work on Xserver 1.7, right? 1.6 is the the maximum.

See you
Eric

#12 lore raw
Quoted 8 lines · Éric Piel

Op 07-12-09 11:02, Zeno Davatz schreef:
:

Quoted 6 lines

Not the same on Gentoo. I think I have to find the kernel boot-option that I can pass to lilo.

Also: When I force remove the modules psb and drm_psb with "rmmod -f" and then start X I get the same error:

Quoted 6 lines
Quoted 4 lines

X: symbol lookup error: /usr/lib/xorg/modules/drivers/psb_drv.so:
undefined symbol: LoaderRefSymLists

X just does not yet like psb.

You are also aware that it does not work on Xserver 1.7, right? 1.6 is the the maximum.

Thanks. I thought it should work with 1.7 as well. Will try that then.

Best
Zeno

#13 lore raw
In reply to Éric Piel
Quoted 11 lines · Éric Piel

Op 19-11-09 15:28, Éric Piel schreef:

Quoted 5 lines

Op 19-11-09 09:52, Zeno Davatz schreef:

Quoted 4 lines

Hi

I am looking for the Asus Eeepc Poulsbo (psb) driver in Kernel 2.6.32-rc7. When is this driver expected to make it into the kernel?

:

Quoted 4 lines

Hi,
I'd also be interested by a patch to get the psb kernel module to compile with 2.6.32. If anyone has this already available, please post it! Or maybe someone knows what should be done to fix this type of errors?

Quoted 5 lines

Hello,

I've just noticed that Zac Medico has written the fixes (as sed scripts) for the psb driver in gentoo. Below is the patch version of his fixes. It works for me :-)

compiles fine. But I still get:

psb: Unknown symbol i2c_bit_add_bus

when inserting the module.

And this is my Xorg.0.log- see attachment.

Best
Zeno

X.Org X Server 1.7.1
Release Date: 2009-10-23
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.32-rc7 i686
Current Operating System: Linux zdavatz-eeepc 2.6.32 #12 SMP Fri Dec 4 20:32:04 CET 2009 i686 Kernel command line: BOOT_IMAGE=2.6.32 ro root=803 elevator=noop
Build Date: 17 November 2009 02:02:11PM

Current version of pixman: 0.16.2
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sun Dec 6 16:42:35 2009 (==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout "X.org Configured"

(**) |-->Screen "Screen0" (0)
(**) |   |-->Monitor "Monitor0"
(**) |   |-->Device "Card0"
(**) |-->Input Device "Keyboard"
(**) |-->Input Device "Synaptics Touchpad"
(**) |-->Input Device "Configured Mouse"

(**) Option "AllowMouseOpenFail" "true"
(**) Option "AutoAddDevices" "no"
(**) Not automatically adding devices
(==) Automatically enabling devices
(**) FontPath set to:

	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF,
	/usr/share/fonts/Type1/,
	/usr/share/fonts/100dpi/,
	/usr/share/fonts/75dpi/,
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF,
	/usr/share/fonts/Type1/,
	/usr/share/fonts/100dpi/,
	/usr/share/fonts/75dpi/

(**) ModulePath set to "/usr/lib/xorg/modules"
(WW) Duplicate core pointer devices. Removing core pointer attribute from "Configured Mouse" (II) Loader magic: 0x81e7e60
(II) Module ABI versions:
X.Org ANSI C Emulation: 0.4
X.Org Video Driver: 6.0
X.Org XInput driver : 7.0
X.Org Server Extension : 2.0
(++) using VT number 7

(--) PCI:*(0:0:2:0) 8086:8108:1043:83ce Intel Corporation System Controller Hub (SCH Poulsbo) Graphics Controller rev 7, Mem @ 0xf3f80000/524288, 0xd0000000/268435456, 0xf3f40000/262144, I/O @ 0x0000c880/8 (II) Open ACPI successful (/var/run/acpid.socket)
(II) "extmod" will be loaded. This was enabled by default and also specified in the config file.
(II) "dbe" will be loaded. This was enabled by default and also specified in the config file.
(II) "glx" will be loaded. This was enabled by default and also specified in the config file.
(II) "record" will be loaded. This was enabled by default and also specified in the config file.
(II) "dri" will be loaded. This was enabled by default and also specified in the config file.
(II) "dri2" will be loaded. This was enabled by default and also specified in the config file.
(II) LoadModule: "dbe"
(II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
(II) Module dbe: vendor="X.Org Foundation"
compiled for 1.7.1, module version = 1.0.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "dri"
(II) Loading /usr/lib/xorg/modules/extensions/libdri.so
(II) Module dri: vendor="X.Org Foundation"

	compiled for 1.7.1, module version = 1.0.0
	ABI class: X.Org Server Extension, version 2.0

(II) Loading extension XFree86-DRI
(II) LoadModule: "dri2"
(II) Loading /usr/lib/xorg/modules/extensions/libdri2.so (II) Module dri2: vendor="X.Org Foundation"

	compiled for 1.7.1, module version = 1.1.0
	ABI class: X.Org Server Extension, version 2.0

(II) Loading extension DRI2
(II) LoadModule: "extmod"
(II) Loading /usr/lib/xorg/modules/extensions/libextmod.so (II) Module extmod: vendor="X.Org Foundation"
compiled for 1.7.1, module version = 1.0.0 Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 2.0
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XFree86-VidModeExtension (II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation (II) Loading extension X-Resource
(II) LoadModule: "glx"
(II) Loading /usr/lib/xorg/modules/extensions/libglx.so (II) Module glx: vendor="X.Org Foundation"

	compiled for 1.7.1, module version = 1.0.0
	ABI class: X.Org Server Extension, version 2.0

(==) AIGLX enabled
(II) Loading extension GLX
(II) LoadModule: "record"
(II) Loading /usr/lib/xorg/modules/extensions/librecord.so (II) Module record: vendor="X.Org Foundation"
compiled for 1.7.1, module version = 1.13.0 Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 2.0
(II) Loading extension RECORD
(II) LoadModule: "psb"
(II) Loading /usr/lib/xorg/modules/drivers/psb_drv.so (II) Module psb: vendor="X.Org Foundation"
compiled for 1.7.1, module version = 0.29.0 Module class: X.Org Video Driver
ABI class: X.Org Video Driver, version 6.0
(II) Debug: psbSetup