Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 338330

Summary: x11-drivers/xf86-video-psb-0.32.0_p1: Add support for Xorg 1.7
Product: Gentoo Linux Reporter: Jim Edwards <jimbo-gentoo>
Component: New packagesAssignee: Patrick Lauer <patrick>
Status: RESOLVED WONTFIX    
Severity: normal CC: bugs-gentoo, peterjohnhartman, timmy
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: ebuild with Xorg 1.7 support
Patch 1 needed
Patch 2 needed
Patch 3 needed
Patch 4 needed
Patch 5 needed
Yves' patch to fix xv (from launchpad/gma500)
updated ebuild (based on luman) to get xv patch in

Description Jim Edwards 2010-09-22 06:11:37 UTC
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.
Comment 1 Jim Edwards 2010-09-22 06:13:14 UTC
Created attachment 248324 [details]
ebuild with Xorg 1.7 support
Comment 2 Jim Edwards 2010-09-22 06:14:09 UTC
Created attachment 248326 [details, diff]
Patch 1 needed
Comment 3 Jim Edwards 2010-09-22 06:14:42 UTC
Created attachment 248327 [details, diff]
Patch 2 needed
Comment 4 Jim Edwards 2010-09-22 06:15:22 UTC
Created attachment 248329 [details, diff]
Patch 3 needed
Comment 5 Jim Edwards 2010-09-22 06:16:01 UTC
Created attachment 248330 [details, diff]
Patch 4 needed
Comment 6 Jim Edwards 2010-09-22 06:16:44 UTC
Created attachment 248331 [details, diff]
Patch 5 needed
Comment 7 Jim Edwards 2010-09-22 06:27:47 UTC
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/.  
Comment 8 Lukas Elsner 2010-12-08 23:12:58 UTC
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.
Comment 9 peter john hartman 2011-02-19 15:49:12 UTC
Created attachment 263035 [details, diff]
Yves' patch to fix xv (from launchpad/gma500)

Works fine so far.
Comment 10 peter john hartman 2011-02-19 15:50:00 UTC
Created attachment 263037 [details]
updated ebuild (based on luman) to get xv patch in
Comment 11 peter john hartman 2011-02-19 15:51:22 UTC
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
Comment 12 Juergen Rose 2011-04-20 18:02:06 UTC
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?
Comment 13 Juergen Rose 2011-04-20 18:10:05 UTC
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):
Comment 14 Pacho Ramos gentoo-dev 2012-12-25 13:23:38 UTC
dropped