Bug 81368

Summary: [r600g] When starting GNOME cheese w/ webcam texture bo too small error
Product: xorg Reporter: Shawn Starr <shawn.starr>
Component: Driver/RadeonAssignee: xf86-video-ati maintainers <xorg-driver-ati>
Status: RESOLVED WORKSFORME QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Shawn Starr 2014-07-15 03:55:11 UTC
Kernel: 3.16.0-0.rc4.git2.2.fc22.x86_64
MESA: 10.3-0.devel.1.f381c27c548aa28b003c8e188f5d627ab4105f76.fc22.x86_64
libdrm: 2.4.54-3.fc21.x86_64
Xorg: 1.15.99.904-3.fc21.x86_64

kernel spits out following each time cheese is run and camera turns on: (four times in this case)

[101178.463633] radeon 0000:01:00.0: texture bo too small ((600 647) (1 1) 0 26 0 -> 1552800 have 4096)
[101178.463912] radeon 0000:01:00.0: alignments 64 1 1 1
[101178.464117] [drm:radeon_cs_ib_chunk] *ERROR* Invalid command stream !
[101209.291089] radeon 0000:01:00.0: texture bo too small ((600 647) (1 1) 0 26 0 -> 1552800 have 4096)
[101209.291378] radeon 0000:01:00.0: alignments 64 1 1 1
[101209.291538] [drm:radeon_cs_ib_chunk] *ERROR* Invalid command stream !
[101865.941966] radeon 0000:01:00.0: texture bo too small ((600 647) (1 1) 0 26 0 -> 1552800 have 4096)
[101865.942294] radeon 0000:01:00.0: alignments 64 1 1 1
[101865.942473] [drm:radeon_cs_ib_chunk] *ERROR* Invalid command stream !
[101893.019489] radeon 0000:01:00.0: texture bo too small ((600 647) (1 1) 0 26 0 -> 1552800 have 4096)
[101893.019768] radeon 0000:01:00.0: alignments 64 1 1 1
[101893.019925] [drm:radeon_cs_ib_chunk] *ERROR* Invalid command stream !
Comment 1 Michel Dänzer 2014-07-15 04:04:42 UTC
Please attach the corresponding Xorg.0.log, preferably captured after the problem occurs. Also, any corresponding output from the cheese process would be interesting.
Comment 2 Shawn Starr 2014-07-15 13:14:48 UTC
This is what happens

When cheese is run Xorg log shows this info:

135152.245] (II) RADEON(0): EDID vendor "SAM", prod id 1126
[135152.245] (II) RADEON(0): Using hsync ranges from config file
[135152.245] (II) RADEON(0): Using vrefresh ranges from config file
[135152.245] (II) RADEON(0): Printing DDC gathered Modelines:
[135152.246] (II) RADEON(0): Modeline "1920x1200"x0.0  154.00  1920 1968 2000 2080  1200 1203 1209 1235 +hsync -vsync (74.0 kHz eP)
[135152.246] (II) RADEON(0): Modeline "800x600"x0.0   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz e)
[135152.246] (II) RADEON(0): Modeline "800x600"x0.0   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz e)
[135152.247] (II) RADEON(0): Modeline "640x480"x0.0   31.50  640 656 720 840  480 481 484 500 -hsync -vsync (37.5 kHz e)
[135152.247] (II) RADEON(0): Modeline "640x480"x0.0   31.50  640 664 704 832  480 489 492 520 -hsync -vsync (37.9 kHz e)
[135152.247] (II) RADEON(0): Modeline "640x480"x0.0   30.24  640 704 768 864  480 483 486 525 -hsync -vsync (35.0 kHz e)
[135152.247] (II) RADEON(0): Modeline "640x480"x0.0   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz e)
[135152.247] (II) RADEON(0): Modeline "720x400"x0.0   28.32  720 738 846 900  400 412 414 449 -hsync +vsync (31.5 kHz e)
[135152.247] (II) RADEON(0): Modeline "1280x1024"x0.0  135.00  1280 1296 1440 1688  1024 1025 1028 1066 +hsync +vsync (80.0 kHz e)
[135152.248] (II) RADEON(0): Modeline "1024x768"x0.0   78.75  1024 1040 1136 1312  768 769 772 800 +hsync +vsync (60.0 kHz e)
[135152.248] (II) RADEON(0): Modeline "1024x768"x0.0   75.00  1024 1048 1184 1328  768 771 777 806 -hsync -vsync (56.5 kHz e)
[135152.248] (II) RADEON(0): Modeline "1024x768"x0.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz e)
[135152.248] (II) RADEON(0): Modeline "832x624"x0.0   57.28  832 864 928 1152  624 625 628 667 -hsync -vsync (49.7 kHz e)
[135152.248] (II) RADEON(0): Modeline "800x600"x0.0   49.50  800 816 896 1056  600 601 604 625 +hsync +vsync (46.9 kHz e)
[135152.249] (II) RADEON(0): Modeline "800x600"x0.0   50.00  800 856 976 1040  600 637 643 666 +hsync +vsync (48.1 kHz e)
[135152.249] (II) RADEON(0): Modeline "1152x864"x0.0  108.00  1152 1216 1344 1600  864 865 868 900 +hsync +vsync (67.5 kHz e)
[135152.249] (II) RADEON(0): Modeline "1600x1200"x0.0  162.00  1600 1664 1856 2160  1200 1201 1204 1250 +hsync +vsync (75.0 kHz e)
[135152.249] (II) RADEON(0): Modeline "1280x1024"x0.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz e)
[135152.249] (II) RADEON(0): Modeline "1280x960"x0.0  108.00  1280 1376 1488 1800  960 961 964 1000 +hsync +vsync (60.0 kHz e)

I note, for me, EXA is *still* default not GLAMOR, I have to override with a xorg.conf.d config to enable GLAMOR. If you'd like me to switch to GLAMOR, I'll do so and retry this all.

DDX: xorg-x11-drv-ati-7.4.0-1.fc21.x86_64

From cheese: no significant errors nothing related to video
Comment 3 Shawn Starr 2014-07-16 06:58:10 UTC
Additional info:

with EXA (default), when Composite is enabled you will see those errors from 
kernel

With EXA (default), Composite *OFF* no error msgs show, but cheese aborts frame updates from webcam

With GLAMOR enabled both with and without Composite in use, no error msgs show from kernel, Cheese aborts frame updates from webcam.
Comment 4 Shawn Starr 2014-07-16 06:59:45 UTC
In all the cases, cheese aborts frame updates and the camera shuts off to clarify.
Comment 5 Michel Dänzer 2014-07-16 07:03:39 UTC
(In reply to comment #3)
> With GLAMOR enabled both with and without Composite in use, no error msgs
> show from kernel, Cheese aborts frame updates from webcam.

(In reply to comment #4)
> In all the cases, cheese aborts frame updates and the camera shuts off to
> clarify.

Sounds like there is some kind of problem with the webcam, which is probably unrelated to the graphics drivers, and the kernel messages are just a symptom of that.
Comment 6 Michel Dänzer 2014-07-17 04:07:37 UTC
Since the kernel messages only appear when using EXA, they're probably caused by a bug in the xf86-video-ati EXA code.

But I really doubt that the webcam issues are directly related to the graphics stack.
Comment 7 Shawn Starr 2016-02-26 19:03:00 UTC
Doesn't seem to be an issue anymore, GLAMOR is now default.

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.