Summary: | [Trident/CyberBlade] Xv fails on Trident CyberBlade | ||
---|---|---|---|
Product: | xorg | Reporter: | Jon-Eirik Pettersen <jonepet> |
Component: | Driver/Trident | Assignee: | Xorg Project Team <xorg-team> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | high | CC: | billy.biggs, charles, gmsoft, pdcoleman, tibbs |
Version: | 6.7.0 | ||
Hardware: | x86 (IA32) | ||
OS: | Linux (All) | ||
URL: | http://www.lln.tuxicoman.be/temp/trident-xv-hires-fix.patch | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Bug Depends on: | |||
Bug Blocks: | 1690 |
Description
Jon-Eirik Pettersen
2004-06-10 06:01:27 UTC
I also have a CyberBlade/i1 that exhibits the same behavior of "a green version of something on the screen" when I use totem/xine. Sometimes it works but most of the time doesn't. If I'm trying to view a clip and get the scrambled greenies then sometimes opening up another mozilla window will allow me to view the clip. I've also noticed if I have a good paused clip in a window that when I return from screensaver the image is now scrambled. It seems the hardware sharing maybe broken. FedoraCore2 00:00.0 Host bridge: VIA Technologies, Inc. VT8601 [Apollo ProMedia] (rev 05) Subsystem: VIA Technologies, Inc.: Unknown device 6010 Flags: bus master, medium devsel, latency 8 Memory at d0000000 (32-bit, prefetchable) Capabilities: [a0] AGP version 2.0 00:01.0 PCI bridge: VIA Technologies, Inc. VT8601 [Apollo ProMedia AGP] (prog-if 00 [Normal decode]) Flags: bus master, 66Mhz, medium devsel, latency 0 Bus: primary=00, secondary=01, subordinate=01, sec-latency=0 Memory behind bridge: e0000000-e2ffffff Capabilities: [80] Power Management version 2 . . . 01:00.0 VGA compatible controller: Trident Microsystems CyberBlade/i1 (rev 6a) (prog-if 00 [VGA]) Subsystem: Trident Microsystems CyberBlade/i1 Flags: bus master, 66Mhz, medium devsel, latency 32, IRQ 11 Memory at e1800000 (32-bit, non-prefetchable) Memory at e2000000 (32-bit, non-prefetchable) [size=128K] Memory at e1000000 (32-bit, non-prefetchable) [size=8M] Capabilities: [80] AGP version 2.0 Capabilities: [90] Power Management version 1 I have seen this problem on the same via+cyberblade using Xorg 6.8.0 and 6.8.2-rc2. I could get Xv to work only when starting X with a Virtual resolution <= 1024x1024, the Xv Maximum Image Size. More discussion is on http://forums.gentoo.org/viewtopic.php?t=283851 > "screenshot" too: http://div.jonepet.net/tvtime.jpg This link was broken and I'm not sure how to take a screenshot of the Xv overlay? same problem on Toshiba Portege 2010 which comes with Trident CyberBlade. The laptop froze whenever I play a video file through xv, but works okay with x11. My video card driver is set to 'trident' in xorg.conf. Thank you. (In reply to comment #3) > same problem on Toshiba Portege 2010 which comes with Trident CyberBlade. > The laptop froze whenever I play a video file through xv, but works okay with > x11. My video card driver is set to 'trident' in xorg.conf. > > Thank you. On Toshiba r100 with Trident Microsystems CyberBlade XP4m32 playing videos with xv results in a blue screen where video should be displayed. This happens on XORG 6.8.2 and 6.8.1. I'm using trident driver with 16bit colour. Same problem occurs with or without ShawdowFB. > On Toshiba r100 with Trident Microsystems CyberBlade XP4m32 playing videos with
> xv results in a blue screen where video should be displayed. This happens on
> XORG 6.8.2 and 6.8.1. I'm using trident driver with 16bit colour. Same problem
> occurs with or without ShawdowFB.
Hmmm, looks like this is a widespread problem. I have the same card in a
Toshiba Tecra M1:
01:00.0 VGA compatible controller: Trident Microsystems CyberBlade XP4m32 (rev 91)
I get the blue colour too, although I can change it with xvattr (its the
XV_COLORKEY).
xvinfo says that xv is working, I can hear sound with mplayer, xine, mythtv etc,
as the system doesn't crash, but only the blue screen is seen.
This is a pity - everything else works fine - which is pretty good given I
understand Trident haven't been too helpful.
I've tried everything I can think of in xorg.conf, no acceleration, shadowFB on,
off, bit depth 16, 15, 24, etc etc etc.
This is on Mandrake 10.1 (kernel 2.6.8.1), running the thac rpm (x.org 6.8.2,
patch level 6).
xvinfo output:
X-Video Extension version 2.2
screen #0
Adaptor #0: "Trident Backend Scaler"
number of ports: 1
port base: 61
operations supported: PutImage
supported visuals:
depth 16, visualID 0x23
depth 16, visualID 0x24
depth 16, visualID 0x25
depth 16, visualID 0x26
number of attributes: 5
"XV_COLORKEY" (range 0 to 16777215)
client settable attribute
client gettable attribute (current value is 2110)
"XV_SATURATION" (range 0 to 187)
client settable attribute
client gettable attribute (current value is 80)
"XV_BRIGHTNESS" (range 0 to 63)
client settable attribute
client gettable attribute (current value is 45)
"XV_HUE" (range 0 to 360)
client settable attribute
client gettable attribute (current value is 0)
"XV_CONTRAST" (range 0 to 7)
client settable attribute
client gettable attribute (current value is 4)
maximum XvImage size: 1024 x 1024
Number of image formats: 3
id: 0x36315652 (RV16)
guid: 52563136-0000-0000-0000-000000000000
bits per pixel: 16
number of planes: 1
type: RGB (packed)
depth: 16
red, green, blue masks: 0xf800, 0x7e0, 0x1f
id: 0x32315659 (YV12)
guid: 59563132-0000-0010-8000-00aa00389b71
bits per pixel: 12
number of planes: 3
type: YUV (planar)
id: 0x32595559 (YUY2)
guid: 59555932-0000-0010-8000-00aa00389b71
bits per pixel: 16
number of planes: 1
type: YUV (packed)
interesting X.Org log file entries:
(WW) TRIDENT(0): Failed to set up write-combining range (0xf0000000,0x800000)
Symbol XAAGetScreenIndex from module usr/X11R6/lib/modules/drivers/trident_drv.o
is unresolved!
I am experiencing the same problems with a Toshiba Tecra M1, which similarly has the Trident Microsystems CyberBlade XP4m32 (rev 91) (prog-if 00 [VGA]). Using X11 for video output works fine, but xv fails displaying a blue screen while displaying no discernible errors. My XVInfo, lspci and xorg.log follow. X-Video Extension version 2.2 screen #0 Adaptor #0: "Trident Backend Scaler" number of ports: 1 port base: 61 operations supported: PutImage supported visuals: depth 24, visualID 0x23 depth 24, visualID 0x24 depth 24, visualID 0x25 depth 24, visualID 0x26 number of attributes: 5 "XV_COLORKEY" (range 0 to 16777215) client settable attribute client gettable attribute (current value is 66046) "XV_SATURATION" (range 0 to 187) client settable attribute client gettable attribute (current value is 80) "XV_BRIGHTNESS" (range 0 to 63) client settable attribute client gettable attribute (current value is 45) "XV_HUE" (range 0 to 360) client settable attribute client gettable attribute (current value is 0) "XV_CONTRAST" (range 0 to 7) client settable attribute client gettable attribute (current value is 4) maximum XvImage size: 1024 x 1024 Number of image formats: 3 id: 0x36315652 (RV16) guid: 52563136-0000-0000-0000-000000000000 bits per pixel: 16 number of planes: 1 type: RGB (packed) depth: 16 red, green, blue masks: 0xf800, 0x7e0, 0x1f id: 0x32315659 (YV12) guid: 59563132-0000-0010-8000-00aa00389b71 bits per pixel: 12 number of planes: 3 type: YUV (planar) id: 0x32595559 (YUY2) guid: 59555932-0000-0010-8000-00aa00389b71 bits per pixel: 16 number of planes: 1 type: YUV (packed) 0000:00:00.0 Host bridge: Intel Corporation 82855PM Processor to I/O Controller (rev 03) Subsystem: Toshiba America Info Systems: Unknown device 0001 Flags: bus master, fast devsel, latency 0 Memory at c0000000 (32-bit, prefetchable) Capabilities: <available only to root> 0000:00:01.0 PCI bridge: Intel Corporation 82855PM Processor to AGP Controller (rev 03) (prog-if 00 [Normal decode]) Flags: bus master, 66Mhz, fast devsel, latency 64 Bus: primary=00, secondary=01, subordinate=01, sec-latency=64 Memory behind bridge: dff00000-f7ffffff 0000:00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 03) (prog-if 00 [UHCI]) Subsystem: Toshiba America Info Systems: Unknown device 0001 Flags: bus master, medium devsel, latency 0, IRQ 11 I/O ports at efe0 [size=32] 0000:00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 03) (prog-if 00 [UHCI]) Subsystem: Toshiba America Info Systems: Unknown device 0001 Flags: bus master, medium devsel, latency 0, IRQ 11 I/O ports at ef80 [size=32] 0000:00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 03) (prog-if 00 [UHCI]) Subsystem: Toshiba America Info Systems: Unknown device 0001 Flags: bus master, medium devsel, latency 0, IRQ 11 I/O ports at ef60 [size=32] 0000:00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 03) (prog-if 20 [EHCI]) Subsystem: Toshiba America Info Systems: Unknown device 0001 Flags: bus master, medium devsel, latency 0, IRQ 11 Memory at dfeffc00 (32-bit, non-prefetchable) Capabilities: <available only to root> 0000:00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 83) (prog-if 00 [Normal decode]) Flags: bus master, fast devsel, latency 0 Bus: primary=00, secondary=02, subordinate=05, sec-latency=64 I/O behind bridge: 0000c000-0000cfff Memory behind bridge: dfd00000-dfdfffff 0000:00:1f.0 ISA bridge: Intel Corporation 82801DBM (ICH4-M) LPC Interface Bridge (rev 03) Flags: bus master, medium devsel, latency 0 0000:00:1f.1 IDE interface: Intel Corporation 82801DBM (ICH4-M) IDE Controller (rev 03) (prog-if 8a [Master SecP PriP]) Subsystem: Toshiba America Info Systems: Unknown device 0001 Flags: bus master, medium devsel, latency 0, IRQ 11 I/O ports at <ignored> I/O ports at <ignored> I/O ports at <ignored> I/O ports at <ignored> I/O ports at bfa0 [size=16] Memory at 20000000 (32-bit, non-prefetchable) [size=1K] 0000:00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 03) Subsystem: Toshiba America Info Systems: Unknown device 0201 Flags: bus master, medium devsel, latency 0, IRQ 11 I/O ports at be00 I/O ports at bdc0 [size=64] Memory at dfcffe00 (32-bit, non-prefetchable) [size=512] Memory at dfcffd00 (32-bit, non-prefetchable) [size=256] Capabilities: <available only to root> 0000:00:1f.6 Modem: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller (rev 03) (prog-if 00 [Generic]) Subsystem: Toshiba America Info Systems: Unknown device 0001 Flags: medium devsel, IRQ 11 I/O ports at ba00 I/O ports at b980 [size=128] Capabilities: <available only to root> 0000:01:00.0 VGA compatible controller: Trident Microsystems CyberBlade XP4m32 (rev 91) (prog-if 00 [VGA]) Subsystem: Toshiba America Info Systems: Unknown device 0001 Flags: bus master, 66Mhz, medium devsel, latency 8, IRQ 11 Memory at f0000000 (32-bit, non-prefetchable) Memory at efc00000 (32-bit, non-prefetchable) [size=4M] Memory at e0000000 (32-bit, non-prefetchable) [size=128M] Memory at dfff8000 (32-bit, non-prefetchable) [size=32K] Capabilities: <available only to root> 0000:02:07.0 FireWire (IEEE 1394): Texas Instruments TSB43AB22/A IEEE-1394a-2000 Controller (PHY/Link) (prog-if 10 [OHCI]) Subsystem: Toshiba America Info Systems: Unknown device 0001 Flags: bus master, medium devsel, latency 64, IRQ 11 Memory at dfdff800 (32-bit, non-prefetchable) Memory at dfdf8000 (32-bit, non-prefetchable) [size=16K] Capabilities: <available only to root> 0000:02:09.0 Ethernet controller: Intel Corporation 82540EP Gigabit Ethernet Controller (LOM) (rev 03) Subsystem: Toshiba America Info Systems PRO/1000 MT Mobile Connection Flags: bus master, 66Mhz, medium devsel, latency 64, IRQ 11 Memory at dfdc0000 (32-bit, non-prefetchable) I/O ports at cf40 [size=64] Capabilities: <available only to root> 0000:02:0a.0 Network controller: Intel Corporation PRO/Wireless LAN 2100 3B Mini PCI Adapter (rev 04) Subsystem: Intel Corporation: Unknown device 2581 Flags: bus master, medium devsel, latency 64, IRQ 11 Memory at dfdbf000 (32-bit, non-prefetchable) Capabilities: <available only to root> 0000:02:0b.0 CardBus bridge: Toshiba America Info Systems ToPIC100 PCI to Cardbus Bridge with ZV Support (rev 32) Subsystem: Toshiba America Info Systems: Unknown device 0001 Flags: bus master, slow devsel, latency 168, IRQ 11 Memory at 20001000 (32-bit, non-prefetchable) Bus: primary=02, secondary=03, subordinate=06, sec-latency=0 Memory window 0: 20400000-207ff000 (prefetchable) Memory window 1: 20800000-20bff000 I/O window 0: 00004000-000040ff I/O window 1: 00004400-000044ff 16-bit legacy interface ports at 0001 0000:02:0b.1 CardBus bridge: Toshiba America Info Systems ToPIC100 PCI to Cardbus Bridge with ZV Support (rev 32) Subsystem: Toshiba America Info Systems: Unknown device 0001 Flags: bus master, slow devsel, latency 168, IRQ 11 Memory at 20002000 (32-bit, non-prefetchable) Bus: primary=02, secondary=07, subordinate=0a, sec-latency=0 Memory window 0: 20c00000-20fff000 (prefetchable) Memory window 1: 21000000-213ff000 I/O window 0: 00004800-000048ff I/O window 1: 00004c00-00004cff 16-bit legacy interface ports at 0001 0000:02:0d.0 System peripheral: Toshiba America Info Systems SD TypA Controller (rev 03) Subsystem: Toshiba America Info Systems: Unknown device 0001 Flags: medium devsel, IRQ 11 Memory at dfdbee00 (32-bit, non-prefetchable) Capabilities: <available only to root> (II) TRIDENT(0): Primary V_BIOS segment is: 0xc000 (II) TRIDENT(0): Overriding Horizontal timings. (II) TRIDENT(0): Shadow off (II) TRIDENT(0): Forcing Shadow off (II) TRIDENT(0): H-timing shadow registers: 0xa3 0x00 0x84 0x94 (II) TRIDENT(0): H-timing registers: 0xa3 0x7f 0x7f 0x00 0x84 0x94 (II) TRIDENT(0): V-timing shadow registers: 0x24 0xf5 0x03 0x09 0x24 (0x08) (II) TRIDENT(0): V-timing registers: 0x24 0xf5 0x03 0x09 0xff 0x00 0x24 (II) TRIDENT(0): Setting BIOS Mode Regs: 3b 63 (II) TRIDENT(0): Found Clock 65.00 n=219 m=23 k=1 (II) TRIDENT(0): Using 1279 scanlines of offscreen memory for area's (II) TRIDENT(0): Using 4096 bytes of offscreen memory for linear (offset=0x7ff000) (**) TRIDENT(0): Option "BackingStore" "on" (**) TRIDENT(0): Backing store enabled (==) TRIDENT(0): Silken mouse enabled (**) Option "dpms" (**) TRIDENT(0): DPMS enabled (II) TRIDENT(0): Trident Video Flags: VID_ZOOM_INV VID_OFF_SHIFT_4 (WW) TRIDENT(0): Option "SaveUnders" is not used (==) RandR enabled Symbol XAAGetScreenIndex from module /usr/lib/modules/drivers/trident_drv.o is unresolved! Same problem here with a Toshiba R100/CyberBladeXP4m32. I took a poke through the driver and didn't have any luck. I did step through all 32 combinations of possible flags (VID_ZOOM_INV and the like) and also a number of offset and skew values but I had no luck whatsoever. If anyone has any ideas for things I might try, I'm happy to experiment. I have the same issue with a Compaq Evo N110 (Trident Cyberblade i1), and it is really annoying. I am willing to help, but I don't know how... I'm using a Compal N38N2 laptop, with CyberBlade i1 integrated video and am having similar problems. Here's some of lspci -v : 00:00.0 Host bridge: VIA Technologies, Inc. VT8601 [Apollo ProMedia] (rev 05) Flags: bus master, medium devsel, latency 64 Memory at f0000000 (32-bit, prefetchable) [size=128M] Capabilities: [a0] AGP version 2.0 01:00.0 VGA compatible controller: Trident Microsystems CyberBlade i1 (rev 6a) (prog-if 00 [VGA]) Subsystem: COMPAL Electronics Inc: Unknown device 0010 When in 24bit color mode, I get mostly greenish garbage in the overlay, and the app seems to hang. However, since the overlay wasn't working I switched to 16bit color to gain some speed for software scaling, and the overlay started working! I also tried switching to 8bit color, and the overlay works there too. Switched back to 24bit, and the overlay doesn't work again. So in my case, the overlay works in 8bit and 16bit color, but not in 24bit. The problem lies in the fact that the last bits of the offset are not passed to the vga card : OUTW(vgaIOBase + 4, ((offset) & 0x070000) >> 8 | 0x94); if you replace 0x070000 by 0xff0000, that allows offset larger than 524287 (7FFFF) to be passed to the card. When using high resolution the offset is higher because a large part of the memory is already allocated. Ths fix is here : http://www.lln.tuxicoman.be/temp/trident-xv-hires-fix.patch oops sorry for the typo in the URL field :) sorry, that didn't solve my problem, i've got a blue screen too even if i applied your patch Toshbia R100 here... (In reply to comment #12) I'm sorry, it seems my problem is not related with this patch. So I can't really tell you that this patch works or not :) sorry for that applied to head, closing. if you're experiencing other problems please open new bugs for them. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.