Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

radeon: The kernel rejected CS (crossing 256MB boundary)

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
styxxx
Posts: 19
Joined: 2013-06-03 20:24

radeon: The kernel rejected CS (crossing 256MB boundary)

#1 Post by styxxx »

Hi,

assume this is a bug in the readon drivers or vdpau. But before I file a report I wanted to aks here if anyone else encountered this behavior with debian testing and an AMD graphics card.

When trying to play hardware accelerated videos in vlc I sometimes get the error message:

Code: Select all

radeon: The kernel rejected CS, see dmesg for more information (-22).
and dmesg says:

Code: Select all

[39423.216154] [drm:radeon_uvd_cs_parse [radeon]] *ERROR* reloc 1EFE1000-211DC000 crossing 256MB boundary!
[39423.216203] [drm:radeon_cs_ioctl [radeon]] *ERROR* Invalid command stream !
The adresses changes, for example:

Code: Select all

[1288075.364896] [drm:radeon_uvd_cs_parse [radeon]] *ERROR* reloc 1FD5D000-20159000 crossing 256MB boundary!
[170591.277089] [drm:radeon_uvd_cs_parse [radeon]] *ERROR* reloc 1D082000-21CF6000 crossing 256MB boundary!
radeontop shows a lot of free memory. Also there's more than 256MB available. I don't know where this magic boundary comes from.

It has some kind of pattern: The error mostly appears when jumping backwards in a video. And after one appearance the chances get higher to ecounter it again. That means: I can watch dozens of videos for hours unless I jump backwards to often. If the problem occours once I have to be very carefully not to jump to often because everytime it wil increase the chance of loosing video playback alltogether. Video playback performance seems to be decreasing during that time (slight stuttering). In the worst case even starting a video won't work anymore without getting these error messages.

There's only one way to solve it: rebooting or going to standby for a second. After waking up the issue is gone for a while. So it seems to be something that accumulates over time (memory leak?) and especially during specific actions (jumping backwards). I assume going to standby reloads some modules or frees some memory space?

While this happens the video playback is usually just crazy flickering or nothing at all. Also cpu usage is very high. Videos not using hardware acceleration are not affected.

This is happening for some weeks or months now.

So I'm wondering if I'm the only one with this issue :D

Some additional information:

Code: Select all

Installed packages:

ii  libdrm-radeon1:amd64                                             2.4.92-1                               amd64        Userspace interface to radeon-specific kernel DRM services -- runtime
ii  libdrm-radeon1:i386                                              2.4.92-1                               i386         Userspace interface to radeon-specific kernel DRM services -- runtime
ii  radeontop                                                        1.0-1+b1                               amd64        Utility to show Radeon GPU utilization
ii  xserver-xorg-video-radeon                                        1:18.0.1-1+b1                          amd64        X.Org X server -- AMD/ATI Radeon display driver

ii  libegl-mesa0:amd64                                               18.1.5-1                               amd64        free implementation of the EGL API -- Mesa vendor library
ii  libegl1-mesa:amd64                                               18.1.5-1                               amd64        transitional dummy package
ii  libegl1-mesa-dev:amd64                                           18.1.5-1                               amd64        free implementation of the EGL API -- development files
ii  libgl1-mesa-dev:amd64                                            18.1.5-1                               amd64        free implementation of the OpenGL API -- GLX development files
ii  libgl1-mesa-dri:amd64                                            18.1.5-1                               amd64        free implementation of the OpenGL API -- DRI modules
ii  libgl1-mesa-dri:i386                                             18.1.5-1                               i386         free implementation of the OpenGL API -- DRI modules
ii  libgl1-mesa-glx:amd64                                            18.1.5-1                               amd64        transitional dummy package
ii  libgl1-mesa-glx:i386                                             18.1.5-1                               i386         transitional dummy package
ii  libglapi-mesa:amd64                                              18.1.5-1                               amd64        free implementation of the GL API -- shared library
ii  libglapi-mesa:i386                                               18.1.5-1                               i386         free implementation of the GL API -- shared library
ii  libgles2-mesa:amd64                                              18.1.5-1                               amd64        transitional dummy package
ii  libglu1-mesa:amd64                                               9.0.0-2.1                              amd64        Mesa OpenGL utility library (GLU)
ii  libglu1-mesa:i386                                                9.0.0-2.1                              i386         Mesa OpenGL utility library (GLU)
ii  libglu1-mesa-dev:amd64                                           9.0.0-2.1                              amd64        Mesa OpenGL utility library -- development files
ii  libglx-mesa0:amd64                                               18.1.5-1                               amd64        free implementation of the OpenGL API -- GLX vendor library
ii  libglx-mesa0:i386                                                18.1.5-1                               i386         free implementation of the OpenGL API -- GLX vendor library
ii  libopenvg1-mesa:amd64                                            10.3.2-1+deb8u1                        amd64        free implementation of the OpenVG API -- runtime
ii  libosmesa6:amd64                                                 18.1.5-1                               amd64        Mesa Off-screen rendering extension
ii  libosmesa6:i386                                                  18.1.5-1                               i386         Mesa Off-screen rendering extension
ii  mesa-common-dev:amd64                                            18.1.5-1                               amd64        Developer documentation for Mesa
ii  mesa-utils                                                       8.4.0-1                                amd64        Miscellaneous Mesa GL utilities
ii  mesa-va-drivers:amd64                                            18.1.5-1                               amd64        Mesa VA-API video acceleration drivers
ii  mesa-va-drivers:i386                                             18.1.5-1                               i386         Mesa VA-API video acceleration drivers
ii  mesa-vdpau-drivers:amd64                                         18.1.5-1                               amd64        Mesa VDPAU video acceleration drivers
ii  mesa-vdpau-drivers:i386                                          18.1.5-1                               i386         Mesa VDPAU video acceleration drivers

$ dpkg -l | grep vdpau
ii  libvdpau1:amd64                                                  1.1.1-8                                amd64        Video Decode and Presentation API for Unix (libraries)
ii  libvdpau1:i386                                                   1.1.1-8                                i386         Video Decode and Presentation API for Unix (libraries)
ii  mesa-vdpau-drivers:amd64                                         18.1.5-1                               amd64        Mesa VDPAU video acceleration drivers
ii  mesa-vdpau-drivers:i386                                          18.1.5-1                               i386         Mesa VDPAU video acceleration drivers
ii  vdpau-va-driver:amd64                                            0.7.4-dmo8                             amd64        VDPAU-based backend for VA API
ii  vdpau-va-driver:i386                                             0.7.4-dmo8                             i386         VDPAU-based backend for VA API
ii  vdpauinfo                                                        1.0-3                                  amd64        Video Decode and Presentation API for Unix (vdpauinfo utility)

$ dpkg -l | grep glx
ii  libgl1-mesa-glx:amd64                                            18.1.5-1                               amd64        transitional dummy package
ii  libgl1-mesa-glx:i386                                             18.1.5-1                               i386         transitional dummy package
ii  libglx-mesa0:amd64                                               18.1.5-1                               amd64        free implementation of the OpenGL API -- GLX vendor library
ii  libglx-mesa0:i386                                                18.1.5-1                               i386         free implementation of the OpenGL API -- GLX vendor library
ii  libglx0:amd64                                                    1.0.0+git20180308-3                    amd64        Vendor neutral GL dispatch library -- GLX support
ii  libglx0:i386                                                     1.0.0+git20180308-3                    i386         Vendor neutral GL dispatch library -- GLX support
ii  libxcb-glx0:amd64                                                1.13-1                                 amd64        X C Binding, glx extension
ii  libxcb-glx0:i386                                                 1.13-1                                 i386         X C Binding, glx extension
ii  libxcb-glx0-dev:amd64                                            1.13-1                                 amd64        X C Binding, glx extension, development files

$ dpkg -l | grep xorg
ii  xorg-sgml-doctools                                               1:1.11-1                               all          Common tools for building X.Org SGML documentation
ii  xserver-xorg                                                     1:7.7+19                               amd64        X.Org X server
ii  xserver-xorg-core                                                2:1.20.0-3                             amd64        Xorg X server - core server
ii  xserver-xorg-input-evdev                                         1:2.10.5-1                             amd64        X.Org X server -- evdev input driver
ii  xserver-xorg-input-mouse                                         1:1.9.3-1                              amd64        X.Org X server -- mouse input driver
ii  xserver-xorg-input-synaptics                                     1.9.0-1+b1                             amd64        Synaptics TouchPad driver for X.Org server
ii  xserver-xorg-input-wacom                                         0.34.99.1-1                            amd64        X.Org X server -- Wacom input driver
ii  xserver-xorg-legacy                                              2:1.20.0-3                             amd64        setuid root Xorg server wrapper
ii  xserver-xorg-video-ati                                           1:18.0.1-1+b1                          amd64        X.Org X server -- AMD/ATI display driver wrapper
ii  xserver-xorg-video-mach64                                        6.9.6-1                                amd64        X.Org X server -- ATI Mach64 display driver
ii  xserver-xorg-video-r128                                          6.10.2-2                               amd64        X.Org X server -- ATI r128 display driver
ii  xserver-xorg-video-radeon                                        1:18.0.1-1+b1                          amd64        X.Org X server -- AMD/ATI Radeon display driver

Code: Select all

$ vdpauinfo
display: :0   screen: 0
API version: 1
Information string: G3DVL VDPAU Driver Shared Library version 1.0

Video surface:

name   width height types
-------------------------------------------
420    16384 16384  NV12 YV12 
422    16384 16384  UYVY YUYV 
444    16384 16384  Y8U8V8A8 V8U8Y8A8 

Decoder capabilities:

name                        level macbs width height
----------------------------------------------------
MPEG1                          --- not supported ---
MPEG2_SIMPLE                    3  9216  2048  1152
MPEG2_MAIN                      3  9216  2048  1152
H264_BASELINE                  41  9216  2048  1152
H264_MAIN                      41  9216  2048  1152
H264_HIGH                      41  9216  2048  1152
VC1_SIMPLE                      1  9216  2048  1152
VC1_MAIN                        2  9216  2048  1152
VC1_ADVANCED                    4  9216  2048  1152
MPEG4_PART2_SP                  3  9216  2048  1152
MPEG4_PART2_ASP                 5  9216  2048  1152
DIVX4_QMOBILE                  --- not supported ---
DIVX4_MOBILE                   --- not supported ---
DIVX4_HOME_THEATER             --- not supported ---
DIVX4_HD_1080P                 --- not supported ---
DIVX5_QMOBILE                  --- not supported ---
DIVX5_MOBILE                   --- not supported ---
DIVX5_HOME_THEATER             --- not supported ---
DIVX5_HD_1080P                 --- not supported ---
H264_CONSTRAINED_BASELINE       0  9216  2048  1152
H264_EXTENDED                  --- not supported ---
H264_PROGRESSIVE_HIGH          --- not supported ---
H264_CONSTRAINED_HIGH          --- not supported ---
H264_HIGH_444_PREDICTIVE       --- not supported ---
HEVC_MAIN                      --- not supported ---
HEVC_MAIN_10                   --- not supported ---
HEVC_MAIN_STILL                --- not supported ---
HEVC_MAIN_12                   --- not supported ---
HEVC_MAIN_444                  --- not supported ---

Output surface:

name              width height nat types
----------------------------------------------------
B8G8R8A8         16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 A4I4 I4A4 A8I8 I8A8 
R8G8B8A8         16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 A4I4 I4A4 A8I8 I8A8 
R10G10B10A2      16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 A4I4 I4A4 A8I8 I8A8 
B10G10R10A2      16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 A4I4 I4A4 A8I8 I8A8 

Bitmap surface:

name              width height
------------------------------
B8G8R8A8         16384 16384
R8G8B8A8         16384 16384
R10G10B10A2      16384 16384
B10G10R10A2      16384 16384
A8               16384 16384

Video mixer:

feature name                    sup
------------------------------------
DEINTERLACE_TEMPORAL             y
DEINTERLACE_TEMPORAL_SPATIAL     -
INVERSE_TELECINE                 -
NOISE_REDUCTION                  y
SHARPNESS                        y
LUMA_KEY                         y
HIGH QUALITY SCALING - L1        y
HIGH QUALITY SCALING - L2        -
HIGH QUALITY SCALING - L3        -
HIGH QUALITY SCALING - L4        -
HIGH QUALITY SCALING - L5        -
HIGH QUALITY SCALING - L6        -
HIGH QUALITY SCALING - L7        -
HIGH QUALITY SCALING - L8        -
HIGH QUALITY SCALING - L9        -

parameter name                  sup      min      max
-----------------------------------------------------
VIDEO_SURFACE_WIDTH              y        48     2048
VIDEO_SURFACE_HEIGHT             y        48     1152
CHROMA_TYPE                      y  
LAYERS                           y         0        4

attribute name                  sup      min      max
-----------------------------------------------------
BACKGROUND_COLOR                 y  
CSC_MATRIX                       y  
NOISE_REDUCTION_LEVEL            y      0.00     1.00
SHARPNESS_LEVEL                  y     -1.00     1.00
LUMA_KEY_MIN_LUMA                y  
LUMA_KEY_MAX_LUMA                y  

Code: Select all

lspci:
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Wrestler [Radeon HD 6320]

Code: Select all

$ uname -a
Linux notebookneu 4.14.0-3-amd64 #1 SMP Debian 4.14.17-1 (2018-02-14) x86_64 GNU/Linux

User avatar
sjukfan
Posts: 386
Joined: 2010-03-01 19:39

Re: radeon: The kernel rejected CS (crossing 256MB boundary)

#2 Post by sjukfan »

Might not be the same problem but what happens if you downgrade xserver-xorg-core to 2:1.19.6-1? There's some weirdness going on in 2:1.20.0-3 and my problems went away with the downgrade. There's an 1.20.1 upstream so hopefully it will be in testing in a couple of weeks.
Bullseye amd64, AMD Ryzen 5 3600
Buster amd64, Intel Xeon E3-1240 v3
Sid ppc, PowerPC 7447a
Sid ppc64, PowerPC 970FX

styxxx
Posts: 19
Joined: 2013-06-03 20:24

Re: radeon: The kernel rejected CS (crossing 256MB boundary)

#3 Post by styxxx »

This version is affecte too :? But it was a good idea. :wink:

Post Reply