Hi,
I cannot start KDE with the 2.6.37-rc3 kernel. The X server and display manager start normally, but when I attempt to log into KDE, it attempts to start, but then the X apparently crashes and this appears in the dmesg output:
[ 24.342287] radeon 0000:01:05.0: r600_cs_track_validate_cb offset[0] 0 46097920 4325376 too big [ 24.342298] radeon 0000:01:05.0: r600_packet3_check:1331 invalid cmd stream 502 [ 24.342304] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream ! [ 24.694106] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id [ 93.938946] radeon 0000:01:05.0: r600_cs_track_validate_cb offset[0] 0 46097920 4325376 too big [ 93.938956] radeon 0000:01:05.0: r600_packet3_check:1331 invalid cmd stream 502 [ 93.938962] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream ! [ 94.278050] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id [ 114.898043] radeon 0000:01:05.0: r600_cs_track_validate_cb offset[0] 0 46097920 4325376 too big [ 114.898053] radeon 0000:01:05.0: r600_packet3_check:1331 invalid cmd stream 502 [ 114.898058] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream ! [ 115.266113] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id [ 129.722472] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id [ 142.984314] radeon 0000:01:05.0: r600_cs_track_validate_cb offset[0] 0 46097920 4325376 too big [ 142.984324] radeon 0000:01:05.0: r600_packet3_check:1331 invalid cmd stream 502 [ 142.984330] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream ! [ 143.370083] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id
This doesn't happen with 2.6.37-rc2.
Full dmesg output is attached, please let me know if you need more information.
Thanks, Rafael
On Wednesday, November 24, 2010, Rafael J. Wysocki wrote:
Hi,
I cannot start KDE with the 2.6.37-rc3 kernel. The X server and display manager start normally, but when I attempt to log into KDE, it attempts to start, but then the X apparently crashes and this appears in the dmesg output:
[ 24.342287] radeon 0000:01:05.0: r600_cs_track_validate_cb offset[0] 0 46097920 4325376 too big [ 24.342298] radeon 0000:01:05.0: r600_packet3_check:1331 invalid cmd stream 502 [ 24.342304] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream ! [ 24.694106] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id [ 93.938946] radeon 0000:01:05.0: r600_cs_track_validate_cb offset[0] 0 46097920 4325376 too big [ 93.938956] radeon 0000:01:05.0: r600_packet3_check:1331 invalid cmd stream 502 [ 93.938962] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream ! [ 94.278050] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id [ 114.898043] radeon 0000:01:05.0: r600_cs_track_validate_cb offset[0] 0 46097920 4325376 too big [ 114.898053] radeon 0000:01:05.0: r600_packet3_check:1331 invalid cmd stream 502 [ 114.898058] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream ! [ 115.266113] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id [ 129.722472] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id [ 142.984314] radeon 0000:01:05.0: r600_cs_track_validate_cb offset[0] 0 46097920 4325376 too big [ 142.984324] radeon 0000:01:05.0: r600_packet3_check:1331 invalid cmd stream 502 [ 142.984330] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream ! [ 143.370083] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id
This doesn't happen with 2.6.37-rc2.
Reverting the following commit:
commit 16790569eddf4d406a16a65f4750f405fa669c52 Author: Alex Deucher alexdeucher@gmail.com Date: Sun Nov 14 20:24:35 2010 -0500
drm/radeon/kms: fix and unify tiled buffer alignment checking for r6xx/7xx
fixes the issue for me (so everyone involved is already in the Cc list ;-)).
Thanks, Rafael
2010/11/23 Rafael J. Wysocki rjw@sisk.pl:
On Wednesday, November 24, 2010, Rafael J. Wysocki wrote:
Hi,
I cannot start KDE with the 2.6.37-rc3 kernel. The X server and display manager start normally, but when I attempt to log into KDE, it attempts to start, but then the X apparently crashes and this appears in the dmesg output:
[ 24.342287] radeon 0000:01:05.0: r600_cs_track_validate_cb offset[0] 0 46097920 4325376 too big [ 24.342298] radeon 0000:01:05.0: r600_packet3_check:1331 invalid cmd stream 502 [ 24.342304] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream ! [ 24.694106] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id [ 93.938946] radeon 0000:01:05.0: r600_cs_track_validate_cb offset[0] 0 46097920 4325376 too big [ 93.938956] radeon 0000:01:05.0: r600_packet3_check:1331 invalid cmd stream 502 [ 93.938962] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream ! [ 94.278050] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id [ 114.898043] radeon 0000:01:05.0: r600_cs_track_validate_cb offset[0] 0 46097920 4325376 too big [ 114.898053] radeon 0000:01:05.0: r600_packet3_check:1331 invalid cmd stream 502 [ 114.898058] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream ! [ 115.266113] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id [ 129.722472] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id [ 142.984314] radeon 0000:01:05.0: r600_cs_track_validate_cb offset[0] 0 46097920 4325376 too big [ 142.984324] radeon 0000:01:05.0: r600_packet3_check:1331 invalid cmd stream 502 [ 142.984330] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream ! [ 143.370083] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id
This doesn't happen with 2.6.37-rc2.
Reverting the following commit:
commit 16790569eddf4d406a16a65f4750f405fa669c52 Author: Alex Deucher alexdeucher@gmail.com Date: Sun Nov 14 20:24:35 2010 -0500
drm/radeon/kms: fix and unify tiled buffer alignment checking for r6xx/7xx
fixes the issue for me (so everyone involved is already in the Cc list ;-)).
Are you sure you've got the right commit? That shouldn't change the calculation that's failing at all. I'd guess it's probably one of these: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdif... http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdif...
Can you attach your xorg log as well?
Alex
Thanks, Rafael
On Wednesday, November 24, 2010, Alex Deucher wrote:
2010/11/23 Rafael J. Wysocki rjw@sisk.pl:
On Wednesday, November 24, 2010, Rafael J. Wysocki wrote:
Hi,
I cannot start KDE with the 2.6.37-rc3 kernel. The X server and display manager start normally, but when I attempt to log into KDE, it attempts to start, but then the X apparently crashes and this appears in the dmesg output:
[ 24.342287] radeon 0000:01:05.0: r600_cs_track_validate_cb offset[0] 0 46097920 4325376 too big [ 24.342298] radeon 0000:01:05.0: r600_packet3_check:1331 invalid cmd stream 502 [ 24.342304] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream ! [ 24.694106] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id [ 93.938946] radeon 0000:01:05.0: r600_cs_track_validate_cb offset[0] 0 46097920 4325376 too big [ 93.938956] radeon 0000:01:05.0: r600_packet3_check:1331 invalid cmd stream 502 [ 93.938962] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream ! [ 94.278050] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id [ 114.898043] radeon 0000:01:05.0: r600_cs_track_validate_cb offset[0] 0 46097920 4325376 too big [ 114.898053] radeon 0000:01:05.0: r600_packet3_check:1331 invalid cmd stream 502 [ 114.898058] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream ! [ 115.266113] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id [ 129.722472] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id [ 142.984314] radeon 0000:01:05.0: r600_cs_track_validate_cb offset[0] 0 46097920 4325376 too big [ 142.984324] radeon 0000:01:05.0: r600_packet3_check:1331 invalid cmd stream 502 [ 142.984330] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream ! [ 143.370083] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id
This doesn't happen with 2.6.37-rc2.
Reverting the following commit:
commit 16790569eddf4d406a16a65f4750f405fa669c52 Author: Alex Deucher alexdeucher@gmail.com Date: Sun Nov 14 20:24:35 2010 -0500
drm/radeon/kms: fix and unify tiled buffer alignment checking for r6xx/7xx
fixes the issue for me (so everyone involved is already in the Cc list ;-)).
Are you sure you've got the right commit?
Well, as I said, I reverted that particular commit and things started to work.
That shouldn't change the calculation that's failing at all. I'd guess it's probably one of these: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdif... http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdif...
I don't know. Perhaps there are some interactions between the two and the reverted one. I can try reverting these tomorrow if you want me to.
Can you attach your xorg log as well?
Sure, attached (the working case).
Thanks, Rafael
On Tue, Nov 23, 2010 at 8:45 PM, Rafael J. Wysocki rjw@sisk.pl wrote:
On Wednesday, November 24, 2010, Alex Deucher wrote:
2010/11/23 Rafael J. Wysocki rjw@sisk.pl:
On Wednesday, November 24, 2010, Rafael J. Wysocki wrote:
Hi,
I cannot start KDE with the 2.6.37-rc3 kernel. The X server and display manager start normally, but when I attempt to log into KDE, it attempts to start, but then the X apparently crashes and this appears in the dmesg output:
[ 24.342287] radeon 0000:01:05.0: r600_cs_track_validate_cb offset[0] 0 46097920 4325376 too big [ 24.342298] radeon 0000:01:05.0: r600_packet3_check:1331 invalid cmd stream 502 [ 24.342304] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream ! [ 24.694106] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id [ 93.938946] radeon 0000:01:05.0: r600_cs_track_validate_cb offset[0] 0 46097920 4325376 too big [ 93.938956] radeon 0000:01:05.0: r600_packet3_check:1331 invalid cmd stream 502 [ 93.938962] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream ! [ 94.278050] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id [ 114.898043] radeon 0000:01:05.0: r600_cs_track_validate_cb offset[0] 0 46097920 4325376 too big [ 114.898053] radeon 0000:01:05.0: r600_packet3_check:1331 invalid cmd stream 502 [ 114.898058] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream ! [ 115.266113] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id [ 129.722472] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id [ 142.984314] radeon 0000:01:05.0: r600_cs_track_validate_cb offset[0] 0 46097920 4325376 too big [ 142.984324] radeon 0000:01:05.0: r600_packet3_check:1331 invalid cmd stream 502 [ 142.984330] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream ! [ 143.370083] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id
This doesn't happen with 2.6.37-rc2.
Reverting the following commit:
commit 16790569eddf4d406a16a65f4750f405fa669c52 Author: Alex Deucher alexdeucher@gmail.com Date: Sun Nov 14 20:24:35 2010 -0500
drm/radeon/kms: fix and unify tiled buffer alignment checking for r6xx/7xx
fixes the issue for me (so everyone involved is already in the Cc list ;-)).
Are you sure you've got the right commit?
Well, as I said, I reverted that particular commit and things started to work.
That shouldn't change the calculation that's failing at all. I'd guess it's probably one of these: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdif... http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdif...
I don't know. Perhaps there are some interactions between the two and the reverted one. I can try reverting these tomorrow if you want me to.
Can you try just reverting this patch: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdif...
I think the real issue is a bug in the 3D driver (probably a flush at the wrong time) that one of these commits exposing.
Alex
Can you attach your xorg log as well?
Sure, attached (the working case).
Thanks, Rafael
On Wednesday, November 24, 2010, Alex Deucher wrote:
On Tue, Nov 23, 2010 at 8:45 PM, Rafael J. Wysocki rjw@sisk.pl wrote:
On Wednesday, November 24, 2010, Alex Deucher wrote:
2010/11/23 Rafael J. Wysocki rjw@sisk.pl:
On Wednesday, November 24, 2010, Rafael J. Wysocki wrote:
Hi,
I cannot start KDE with the 2.6.37-rc3 kernel. The X server and display manager start normally, but when I attempt to log into KDE, it attempts to start, but then the X apparently crashes and this appears in the dmesg output:
[ 24.342287] radeon 0000:01:05.0: r600_cs_track_validate_cb offset[0] 0 46097920 4325376 too big [ 24.342298] radeon 0000:01:05.0: r600_packet3_check:1331 invalid cmd stream 502 [ 24.342304] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream ! [ 24.694106] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id [ 93.938946] radeon 0000:01:05.0: r600_cs_track_validate_cb offset[0] 0 46097920 4325376 too big [ 93.938956] radeon 0000:01:05.0: r600_packet3_check:1331 invalid cmd stream 502 [ 93.938962] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream ! [ 94.278050] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id [ 114.898043] radeon 0000:01:05.0: r600_cs_track_validate_cb offset[0] 0 46097920 4325376 too big [ 114.898053] radeon 0000:01:05.0: r600_packet3_check:1331 invalid cmd stream 502 [ 114.898058] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream ! [ 115.266113] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id [ 129.722472] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id [ 142.984314] radeon 0000:01:05.0: r600_cs_track_validate_cb offset[0] 0 46097920 4325376 too big [ 142.984324] radeon 0000:01:05.0: r600_packet3_check:1331 invalid cmd stream 502 [ 142.984330] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream ! [ 143.370083] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id
This doesn't happen with 2.6.37-rc2.
Reverting the following commit:
commit 16790569eddf4d406a16a65f4750f405fa669c52 Author: Alex Deucher alexdeucher@gmail.com Date: Sun Nov 14 20:24:35 2010 -0500
drm/radeon/kms: fix and unify tiled buffer alignment checking for r6xx/7xx
fixes the issue for me (so everyone involved is already in the Cc list ;-)).
Are you sure you've got the right commit?
Well, as I said, I reverted that particular commit and things started to work.
That shouldn't change the calculation that's failing at all. I'd guess it's probably one of these: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdif... http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdif...
I don't know. Perhaps there are some interactions between the two and the reverted one. I can try reverting these tomorrow if you want me to.
Can you try just reverting this patch: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdif...
That helps too.
I think the real issue is a bug in the 3D driver (probably a flush at the wrong time) that one of these commits exposing.
Well, that's possible, but unfortunately this is a regression in the kernel still.
Thanks, Rafael
This reverts commit d33ef52d9db8a36900dd53f2e32db9a521ace259.
This change seems to expose a bug in the 3D driver tiggered by certain apps, so revert it to keep userspace working.
Reported-by: Rafael J. Wysocki rjw@sisk.pl
Cc: Rafael J. Wysocki rjw@sisk.pl Signed-off-by: Alex Deucher alexdeucher@gmail.com --- drivers/gpu/drm/radeon/r600_cs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/gpu/drm/radeon/r600_cs.c b/drivers/gpu/drm/radeon/r600_cs.c index 9bebac1..0f90fc3 100644 --- a/drivers/gpu/drm/radeon/r600_cs.c +++ b/drivers/gpu/drm/radeon/r600_cs.c @@ -315,7 +315,7 @@ static inline int r600_cs_track_validate_cb(struct radeon_cs_parser *p, int i) if (array_mode == V_0280A0_ARRAY_LINEAR_GENERAL) { /* the initial DDX does bad things with the CB size occasionally */ /* it rounds up height too far for slice tile max but the BO is smaller */ - tmp = (height - 7) * pitch * bpe; + tmp = (height - 7) * 8 * bpe; if ((tmp + track->cb_color_bo_offset[i]) > radeon_bo_size(track->cb_color_bo[i])) { dev_warn(p->dev, "%s offset[%d] %d %d %lu too big\n", __func__, i, track->cb_color_bo_offset[i], tmp, radeon_bo_size(track->cb_color_bo[i])); return -EINVAL;
On Tue, Nov 23, 2010 at 09:02:57PM -0500, Alex Deucher wrote:
On Tue, Nov 23, 2010 at 8:45 PM, Rafael J. Wysocki rjw@sisk.pl wrote:
On Wednesday, November 24, 2010, Alex Deucher wrote:
Are you sure you've got the right commit?
Well, as I said, I reverted that particular commit and things started to work.
That shouldn't change the calculation that's failing at all. I'd guess it's probably one of these: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdif... http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdif...
I don't know. Perhaps there are some interactions between the two and the reverted one. I can try reverting these tomorrow if you want me to.
Can you try just reverting this patch: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdif...
I think the real issue is a bug in the 3D driver (probably a flush at the wrong time) that one of these commits exposing.
I ran into the same problem and bisected, commit d33ef52 got the blame. It's a Radeon HD 4850 in my case, apart from that the problem was exactly the same.
dri-devel@lists.freedesktop.org