The following attachments add support for current Xorg 1.7. The patches were shamelessly stolen from: http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/x11-driver-video-psb/current/SOURCES/. 3D acceleration and va-api seem to work as well. Reproducible: Always Steps to Reproduce: Without these patches, the driver builds, but Xorg fails to load. Usually hanging with a blank screen, or your display manager complaining about missing symbols.
Created attachment 248324 [details] ebuild with Xorg 1.7 support
Created attachment 248326 [details, diff] Patch 1 needed
Created attachment 248327 [details, diff] Patch 2 needed
Created attachment 248329 [details, diff] Patch 3 needed
Created attachment 248330 [details, diff] Patch 4 needed
Created attachment 248331 [details, diff] Patch 5 needed
I will do my best to keep up with the latest Xorg and patches required to keep the psb driver working, submitting patches of course. Check out my blog if you want to stay current: http://jim-dev.blogspot.com/.
Hey, I created an overlay! The overlay is called "luman". It should contain everything you need. It is only tested with 2.6.36, 2.6.37 and newest xserver unter gentoo ~x86. Maybe you can test with ~amd64 x86 and amd64 also.
Created attachment 263035 [details, diff] Yves' patch to fix xv (from launchpad/gma500) Works fine so far.
Created attachment 263037 [details] updated ebuild (based on luman) to get xv patch in
Hi, I proposed to close the other two xf86-video-psb bugs and consolidate everything here. I also propose that we change the subject of this bug to something more general like "xf86-video-psb doesn't work or crashes". Best, Peter
The psb-kmod-4.42.0 from the luman overlay fails for me with 2.6.38-gentoo-r2 with: ... CC [M] /var/tmp/portage/x11-drivers/psb-kmod-4.42.0/work/psb-kernel-source/drm_agpsupport.o /var/tmp/portage/x11-drivers/psb-kmod-4.42.0/work/psb-kernel-source/drm_agpsupport.c: In function ‘drm_agp_populate’: /var/tmp/portage/x11-drivers/psb-kmod-4.42.0/work/psb-kernel-source/drm_agpsupport.c:527:33: warning: assignment makes pointer from integer without a cast /var/tmp/portage/x11-drivers/psb-kmod-4.42.0/work/psb-kernel-source/drm_agpsupport.c: In function ‘psb_drm_agp_flush_chipset’: /var/tmp/portage/x11-drivers/psb-kmod-4.42.0/work/psb-kernel-source/drm_agpsupport.c:647:2: error: implicit declaration of function ‘agp_flush_chipset’ make[2]: *** [/var/tmp/portage/x11-drivers/psb-kmod-4.42.0/work/psb-kernel-source/drm_agpsupport.o] Error 1 make[1]: *** [_module_/var/tmp/portage/x11-drivers/psb-kmod-4.42.0/work/psb-kernel-source] Error 2 make[1]: Leaving directory `/usr/src_inspironM12/linux-2.6.38-gentoo-r2' make: *** [modules] Error 2 Any idea?
xf86-video-psb -0.36.0-r0 from the luman overlay fails to emerge with: ... make[1]: Entering directory `/var/tmp/portage/x11-drivers/xf86-video-psb-0.36.0-r0/work/xserver-xorg-video-psb/src' /bin/sh ../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/psb/psb -I/usr/include/psb/psb/drm -I/usr/include/X11/dri -Wall -I.. -O2 -march=core2 -mtune=generic -fomit-frame-pointer -pipe -fvisibility=default -MT psb_driver.lo -MD -MP -MF .deps/psb_driver.Tpo -c -o psb_driver.lo psb_driver.c libtool: compile: i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/psb/psb -I/usr/include/psb/psb/drm -I/usr/include/X11/dri -Wall -I.. -O2 -march=core2 -mtune=generic -fomit-frame-pointer -pipe -fvisibility=default -MT psb_driver.lo -MD -MP -MF .deps/psb_driver.Tpo -c psb_driver.c -fPIC -DPIC -o .libs/psb_driver.o In file included from psb_driver.c:41:0: i810_reg.h:2288:0: warning: "BITS_PER_BYTE" redefined /usr/include/xorg/edid.h:23:0: note: this is the location of the previous definition psb_driver.c: In function 'psbProbe': psb_driver.c:479:2: warning: 'Xfree' is deprecated (declared at /usr/include/xorg/os.h:235) psb_driver.c:481:2: warning: 'Xfree' is deprecated (declared at /usr/include/xorg/os.h:235) psb_driver.c: In function 'psbGetRec': psb_driver.c:490:2: warning: 'Xcalloc' is deprecated (declared at /usr/include/xorg/os.h:226) psb_driver.c: In function 'psbFreeRec': psb_driver.c:499:5: warning: 'Xfree' is deprecated (declared at /usr/include/xorg/os.h:235) psb_driver.c: In function 'psbSetFront': psb_driver.c:539:6: warning: 'Xfree' is deprecated (declared at /usr/include/xorg/os.h:235) psb_driver.c:565:7: error: 'struct _ScrnInfoRec' has no member named 'pixmapPrivate' psb_driver.c: In function 'psbPreInit': psb_driver.c:896:5: warning: 'Xalloc' is deprecated (declared at /usr/include/xorg/os.h:222) psb_driver.c: In function 'psbDeviceInit': psb_driver.c:1076:13: warning: passing argument 2 of 'pci_device_cfg_read_u32' from incompatible pointer type /usr/include/pciaccess.h:153:5: note: expected 'uint32_t *' but argument is of type 'CARD32 *' psb_driver.c:1116:5: warning: format '%08x' expects type 'unsigned int', but argument 4 has type 'long unsigned int' psb_driver.c:1152:5: warning: format '%08x' expects type 'unsigned int', but argument 5 has type 'long unsigned int' psb_driver.c:1152:5: warning: format '%08x' expects type 'unsigned int', but argument 6 has type 'long unsigned int' psb_driver.c:1230:9: warning: passing argument 2 of 'pci_device_cfg_read_u32' from incompatible pointer type /usr/include/pciaccess.h:153:5: note: expected 'uint32_t *' but argument is of type 'CARD32 *' psb_driver.c: In function 'psbDeviceTakeDown': psb_driver.c:1352:2: warning: 'Xfree' is deprecated (declared at /usr/include/xorg/os.h:235) psb_driver.c: In function 'psbCloseScreen': psb_driver.c:1857:2: warning: 'Xfree' is deprecated (declared at /usr/include/xorg/os.h:235) psb_driver.c: At top level: psb_driver.c:168:20: warning: 'vbeSymbols' defined but not used psb_driver.c:174:20: warning: 'fbSymbols' defined but not used psb_driver.c:180:20: warning: 'shadowSymbols' defined but not used psb_driver.c:186:20: warning: 'exaSymbols' defined but not used psb_driver.c:198:20: warning: 'psbvgahwSymbols' defined but not used psb_driver.c:217:20: warning: 'psbDRISymbols' defined but not used psb_driver.c:233:20: warning: 'psbDRMSymbols' defined but not used psb_driver.c:268:20: warning: 'psbXpsbSymbols' defined but not used psb_driver.c:282:20: warning: 'ddcSymbols' defined but not used psb_driver.c:2191:1: warning: 'psbPointerMoved' defined but not used i830_bios.h:232:26: warning: array 'g_SupportedCeShortVideoModes' assumed to have one element make[1]: *** [psb_driver.lo] Error 1 make[1]: Leaving directory `/var/tmp/portage/x11-drivers/xf86-video-psb-0.36.0-r0/work/xserver-xorg-video-psb/src' make: *** [install-recursive] Error 1 emake failed * ERROR: x11-drivers/xf86-video-psb-0.36.0-r0 failed (install phase):
dropped