4 Replies Latest reply on Dec 18, 2016 5:07 PM by an4ous

    AMD Radeon R7 m445 card on linux

    an4ous

      I have laptop dell Inspiron 15 5567 with AMD Radeon R7 m445 card.

      On the laptop I have installed arch linux (instead of preinstalled ubuntu 16.04).

      cat /etc/os-release && uname -a

      NAME="Arch Linux"

      PRETTY_NAME="Arch Linux"

      ID=arch

      ID_LIKE=archlinux

      ANSI_COLOR="0;36"

      HOME_URL="https://www.archlinux.org/"

      SUPPORT_URL="https://bbs.archlinux.org/"

      BUG_REPORT_URL="https://bugs.archlinux.org/"

      Linux ctgx 4.8.13-1-ARCH #1 SMP PREEMPT Fri Dec 9 07:24:34 CET 2016 x86_64 GNU/Linux

       

      I try to use on this card hardware video acceleration, but vainfo and vdpauinfo show me, that this card not have video acceleration

       

      tm4ig@ctgx ~ % export DRI_PRIME=1                        

      tm4ig@ctgx ~ % export LIBVA_DRIVER_NAME=radeonsi         

      tm4ig@ctgx ~ % export VDPAU_DRIVER=radeonsi              

       

      tm4ig@ctgx ~ % vainfo

      libva info: VA-API version 0.39.4

      libva info: va_getDriverName() returns 0

      libva info: User requested driver 'radeonsi'

      libva info: Trying to open /usr/lib/dri/radeonsi_drv_video.so

      libva info: Found init function __vaDriverInit_0_39

      libva info: va_openDriver() returns 0

      vainfo: VA-API version: 0.39 (libva 1.7.3)

      vainfo: Driver version: mesa gallium vaapi

      vainfo: Supported profile and entrypoints

            VAProfileMPEG2Simple            : VAEntrypointVLD

            VAProfileMPEG2Main              : VAEntrypointVLD

            VAProfileNone                   : VAEntrypointVideoProc

       

       

       

      tm4ig@ctgx ~ % 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                           0 1048576 16384 16384

      MPEG2_SIMPLE                    3 1048576 16384 16384

      MPEG2_MAIN                      3 1048576 16384 16384

      H264_BASELINE                  --- not supported ---

      H264_MAIN                      --- not supported ---

      H264_HIGH                      --- not supported ---

      VC1_SIMPLE                     --- not supported ---

      VC1_MAIN                       --- not supported ---

      VC1_ADVANCED                   --- not supported ---

      MPEG4_PART2_SP                 --- not supported ---

      MPEG4_PART2_ASP                --- not supported ---

      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      --- not supported ---

      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 A8I8 I8A8

      R8G8B8A8         16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 A8I8 I8A8

      R10G10B10A2      16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 A8I8 I8A8

      B10G10R10A2      16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 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    16384

      VIDEO_SURFACE_HEIGHT             y        48    16384

      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 

       

      Used amdgpu driver with prime

       

      tm4ig@ctgx ~ % DRI_PRIME=1 glxinfo | grep 'OpenGL renderer'

      OpenGL renderer string: Gallium 0.4 on AMD ICELAND (DRM 3.3.0 / 4.8.13-1-ARCH, LLVM 3.9.0)

      tm4ig@ctgx ~ % DRI_PRIME=0 glxinfo | grep 'OpenGL renderer'

      OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 620 (Kabylake GT2)

       

      tm4ig@ctgx ~ % grep -i amdgpu /var/log/Xorg.0.log

      [    30.633] (II) Applying OutputClass "AMDgpu" to /dev/dri/card1

      [    30.633]    loading driver: amdgpu

      [    30.633] (==) Matched amdgpu as autoconfigured driver 1

      [    30.692] (II) LoadModule: "amdgpu"

      [    30.692] (II) Loading /usr/lib/xorg/modules/drivers/amdgpu_drv.so

      [    30.758] (II) Module amdgpu: vendor="X.Org Foundation"

      [    30.791] (II) AMDGPU: Driver for AMD Radeon chipsets: OLAND, HAINAN, TAHITI,

      [    30.825] (==) AMDGPU(G0): Depth 24, (--) framebuffer bpp 32

      [    30.825] (II) AMDGPU(G0): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps)

      [    30.825] (==) AMDGPU(G0): Default visual is TrueColor

      [    30.825] (==) AMDGPU(G0): RGB weight 888

      [    30.825] (II) AMDGPU(G0): Using 8 bits per RGB (8 bit DAC)

      [    30.825] (--) AMDGPU(G0): Chipset: "TOPAZ" (ChipID = 0x6900)

      [    32.303] (II) AMDGPU(G0): glamor detected, initialising EGL layer.

      [    32.303] (II) AMDGPU(G0): KMS Pageflipping: enabled

      [    32.313] (II) AMDGPU(G0): mem size init: gart size :ffe7a000 vram size: s:ff7bd000 visible:f7bd000

      [    32.313] (==) AMDGPU(G0): DPI set to (96, 96)

      [    32.313] (==) AMDGPU(G0): Using gamma correction (1.0, 1.0, 1.0)

      [    32.314] (II) AMDGPU(G0): [DRI2] Setup complete

      [    32.314] (II) AMDGPU(G0): [DRI2]   DRI driver: radeonsi

      [    32.314] (II) AMDGPU(G0): [DRI2]   VDPAU driver: radeonsi

      [    32.315] (II) AMDGPU(G0): Front buffer pitch: 4096 bytes

      [    32.322] (II) AMDGPU(G0): SYNC extension fences enabled

      [    32.323] (II) AMDGPU(G0): Present extension enabled

      [    32.323] (==) AMDGPU(G0): DRI3 enabled

      [    32.323] (==) AMDGPU(G0): Backing store enabled

      [    32.323] (II) AMDGPU(G0): Direct rendering enabled

      [    33.109] (II) AMDGPU(G0): Use GLAMOR acceleration.

      [    33.109] (II) AMDGPU(G0): Acceleration enabled

      [    33.109] (==) AMDGPU(G0): DPMS enabled

      [    33.109] (==) AMDGPU(G0): Silken mouse enabled

      [    33.125] (II) AMDGPU(G0): Set up textured video (glamor)

      [    33.125] (II) AMDGPU(G0): RandR 1.2 enabled, ignore the following RandR disabled message.

       

      01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Topaz XT [Radeon R7 M260/M265 / M340/M360 / M440/M445] (rev c3)

              Subsystem: Dell Radeon R7 M445

              Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+

              Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-

              Latency: 0

              Interrupt: pin A routed to IRQ 284

              Region 0: Memory at c0000000 (64-bit, prefetchable) [size=256M]

              Region 2: Memory at d0000000 (64-bit, prefetchable) [size=2M]

              Region 4: I/O ports at e000 [size=256]

              Region 5: Memory at df200000 (32-bit, non-prefetchable) [size=256K]

              Expansion ROM at df240000 [disabled] [size=128K]

              Capabilities: <access denied>

              Kernel driver in use: amdgpu

              Kernel modules: amdgpu

       

      What is the problem?