1. 12 Feb, 2020 1 commit
  2. 11 Feb, 2020 2 commits
    • Daniel Stone's avatar
      Add drmModeGetFB2 · d8731e9e
      Daniel Stone authored
      Add a wrapper around the getfb2 ioctl, which returns extended
      framebuffer information mirroring addfb2, including multiple planes and
      modifiers.
      
      Changes since v7:
       - add new symbols to core-symbol.txt (Eric Engestrom)
      
      Changes since v5:
       - style change
      
      Changes since v4:
       - Set fb_id at init instead of memclear() and set (Eric Engestrom)
      
      Changes since v3:
       - remove unnecessary null check in drmModeFreeFB2 (Daniel Stone)
      
      Changes since v2:
       - getfb2 ioctl has been merged upstream
       - sync include/drm/drm.h in a seperate patch
      
      Changes since v1:
       - functions should be drm_public
       - modifier should be 64 bits
       - update ioctl number
      Signed-off-by: Juston Li's avatarJuston Li <juston.li@intel.com>
      Signed-off-by: Daniel Stone's avatarDaniel Stone <daniels@collabora.com>
      Reviewed-by: Eric Engestrom's avatarEric Engestrom <eric@engestrom.ch>
      d8731e9e
    • Juston Li's avatar
      include/drm: sync up drm.h · 63d914d4
      Juston Li authored
      a) delta: Adds DRM_IOCTL_MODE_GETFB2
        b) Generated using make headers_install
        c) Taken from drm-next-misc:
              commit 3ff4c24bdb1f494c217c80348f9db4896043ed81
              Author: Lyude Paul <lyude@redhat.com>
              Date:   Fri Jan 17 17:47:48 2020 -0500
      
              drm/dp_mst: Fix indenting in drm_dp_mst_topology_mgr_set_mst()
      Signed-off-by: Juston Li's avatarJuston Li <juston.li@intel.com>
      Acked-by: Eric Engestrom's avatarEric Engestrom <eric@engestrom.ch>
      63d914d4
  3. 01 Feb, 2020 1 commit
  4. 28 Jan, 2020 1 commit
  5. 23 Jan, 2020 2 commits
  6. 21 Jan, 2020 2 commits
  7. 08 Jan, 2020 3 commits
  8. 07 Jan, 2020 7 commits
    • Marek Olšák's avatar
      Revert "tests/amdgpu: Fix various warnings" · 9ebfac15
      Marek Olšák authored
      This reverts commit fb163458.
      9ebfac15
    • Marek Olšák's avatar
      Revert "tests/amdgpu: Fix unused function warning (v2)" · 54b982dc
      Marek Olšák authored
      This reverts commit 4ff499cd.
      54b982dc
    • Marek Olšák's avatar
      Revert "tests/amdgpu: Fix buffer overflow (v3)" · b9600be2
      Marek Olšák authored
      This reverts commit 680542ce.
      b9600be2
    • Luben Tuikov's avatar
      tests/amdgpu: Proper format for "-l" · 7fdebb02
      Luben Tuikov authored
      Proper format for command line option "-l",
      listing the supported and unsupported tests:
      
      1) Add an aligned column header.
      
      2) Align all fields into columns.
      
      3) Fixed length fields, come before the last
      column, which is a variable length field.
      
      4) Variable length field, which is the name of the
      test, goes in the last column.
      
      5) If a suite is disabled, do not iterate over its
      tests, as they'd naturally be all disabled.
      
      Now the output looks like this:
      $sudo ./amdgpu_test -l
       What: ID:   Status: Name
      Suite:  1:  ENABLED: Basic Tests
       Test:  1:  ENABLED: Query Info Test
       Test:  2:  ENABLED: Userptr Test
       Test:  3: DISABLED: bo eviction Test
       Test:  4:  ENABLED: Command submission Test (GFX)
       Test:  5:  ENABLED: Command submission Test (Compute)
       Test:  6:  ENABLED: Command submission Test (Multi-Fence)
       Test:  7:  ENABLED: Command submission Test (SDMA)
       Test:  8:  ENABLED: SW semaphore Test
       Test:  9: DISABLED: Sync dependency Test
       Test: 10: DISABLED: Dispatch Test (Compute)
       Test: 11: DISABLED: Dispatch Test (GFX)
       Test: 12: DISABLED: Draw Test
       Test: 13: DISABLED: GPU reset Test
      Suite:  2:  ENABLED: BO Tests
       Test:  1:  ENABLED: Export/Import
       Test:  2: DISABLED: Metadata
       Test:  3:  ENABLED: CPU map/unmap
       Test:  4:  ENABLED: Memory alloc Test
       Test:  5:  ENABLED: Memory fail alloc Test
       Test:  6:  ENABLED: Find bo by CPU mapping
      Suite:  3: DISABLED: CS Tests
      Suite:  4: DISABLED: VCE Tests
      Suite:  5:  ENABLED: VCN Tests
       Test:  1:  ENABLED: VCN DEC create
       Test:  2:  ENABLED: VCN DEC decode
       Test:  3:  ENABLED: VCN DEC destroy
       Test:  4:  ENABLED: VCN ENC create
       Test:  5:  ENABLED: VCN ENC decode
       Test:  6:  ENABLED: VCN ENC destroy
      Suite:  6: DISABLED: UVD ENC Tests
      Suite:  7: DISABLED: Deadlock Tests
      Suite:  8:  ENABLED: VM Tests
       Test:  1:  ENABLED: resere vmid test
       Test:  2:  ENABLED: unaligned map
       Test:  3:  ENABLED: vm mapping test
      Suite:  9: DISABLED: RAS Tests
      Suite: 10:  ENABLED: SYNCOBJ TIMELINE Tests
       Test:  1:  ENABLED: syncobj timeline test
      $_
      Signed-off-by: default avatarLuben Tuikov <luben.tuikov@amd.com>
      7fdebb02
    • Luben Tuikov's avatar
      tests/amdgpu: Fix buffer overflow (v3) · 680542ce
      Luben Tuikov authored
      This patch fixes the following warning:
      -Wformat-overflow=
      
      v2: Use the correct strlcat(3).
      v3: Use strncat(3) and remove libbsd dependency.
      Signed-off-by: default avatarLuben Tuikov <luben.tuikov@amd.com>
      680542ce
    • Luben Tuikov's avatar
      tests/amdgpu: Fix unused function warning (v2) · 4ff499cd
      Luben Tuikov authored
      This patch fixes:
      -Wunused-function
      
      v2: Always enable amdgpu_ras_test().
      Signed-off-by: default avatarLuben Tuikov <luben.tuikov@amd.com>
      4ff499cd
    • Luben Tuikov's avatar
      tests/amdgpu: Fix various warnings · fb163458
      Luben Tuikov authored
      This patch fixes the following warnings:
      -Wformat=
      -Wmaybe-uninitialized
      -Wmisleading-indentation
      -Wstringop-truncation
      -Wunused-function
      -Wunused-variable
      
      It also removes forward declarations and moves
      global functions to the bottom, keeping locals
      at the top, in ras_tests.c.
      Signed-off-by: default avatarLuben Tuikov <luben.tuikov@amd.com>
      fb163458
  9. 31 Dec, 2019 1 commit
  10. 17 Dec, 2019 4 commits
  11. 11 Dec, 2019 1 commit
    • Devarsh Thakkar's avatar
      modetest: Use floating vrefresh while dumping mode · 7f827145
      Devarsh Thakkar authored
      Add function to derive floating value of vertical
      refresh rate from drm mode using pixel clock,
      horizontal total size and vertical total size.
      
      Use this function to find suitable mode having vrefresh
      value which is matching with user provided vrefresh value.
      
      If user doesn't provide any vrefresh value in args then
      update vertical refresh rate value in pipe args using this
      function.
      
      Also use this function for printing floating vrefresh while
      dumping all available modes.
      
      This will give more accurate picture to user for available modes
      differentiated by floating vertical refresh rate and help user
      select more appropriate mode using suitable refresh rate value.
      
      V4:
      1) While setting mode, print mode name and vrefresh using struct
         drmModeModeInfo instead of struct pipe_args.
      2) Revert back to using a float value instead of float *
         for vrefresh arg in connector_find_mode().
      
      V3:
      1) Change name of function used to derive refresh rate.
      
      V2:
      1) Don't use inline function for deriving refresh rate from mode.
      2) If requested mode not found, print refresh rate only
         if user had provided it in args.
      Signed-off-by: default avatarDevarsh Thakkar <devarsh.thakkar@xilinx.com>
      Reviewed-by: Neil Armstrong's avatarNeil Armstrong <narmstrong@baylibre.com>
      Signed-off-by: Ville Syrjälä's avatarVille Syrjälä <ville.syrjala@linux.intel.com>
      7f827145
  12. 09 Dec, 2019 6 commits
  13. 06 Dec, 2019 1 commit
  14. 05 Dec, 2019 2 commits
  15. 04 Dec, 2019 1 commit
  16. 03 Dec, 2019 1 commit
  17. 28 Nov, 2019 1 commit
  18. 26 Nov, 2019 1 commit
  19. 25 Nov, 2019 1 commit
    • Devarsh Thakkar's avatar
      modetest: Add support for setting mode having floating vertical refresh rate · a2d588fe
      Devarsh Thakkar authored
      For the scenario where user may require to modeset with a mode
      supporting a fractional value for vertical refresh-rate,
      appropriate mode can be selected by searching for mode
      having matching fractional vertical refresh rate using
      below equation.
      
      vrefresh = (1000 * pixel clock) / (htotal * vtotal) Hz.
      
      We do this way since driver doesn't return float value of vrefresh
      as it use int for vrefresh in struct drm_mode_info, but we can derive
      the actual value using pixel clock, horizontal total size and
      vertical total size values.
      
      So for e.g. if user want to select mode having 59.94 Hz as refresh rate
      then with this patch it be can done as shown in below command,
      given there is an appropriate mode is available :
      
      modetest -M xlnx -s 39:1920x1080-59.94@BG24 -v
      
      NOTE: Above command was tested on xilinx DRM driver with DP
      monitor which was supporting mode having 59.94 Hz refresh rate.
      
      V2: Update commit message
      V3: Update with below changes as per review comments :
        1) Use epsilon for vrefresh comparison
        2) Use implicit type-casting wherever possible
      V4: Keep patch version history on main commit message
      Signed-off-by: default avatarDevarsh Thakkar <devarsh.thakkar@xilinx.com>
      Reviewed-by: Ville Syrjälä's avatarVille Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: Ville Syrjälä's avatarVille Syrjälä <ville.syrjala@linux.intel.com>
      a2d588fe
  20. 23 Nov, 2019 1 commit