1. 10 10月, 2017 2 次提交
    • A
      drm/amdgpu: implement ring set_priority for gfx_v8 compute v9 · b8866c26
      Andres Rodriguez 提交于
      Programming CP_HQD_QUEUE_PRIORITY enables a queue to take priority over
      other queues on the same pipe. Multiple queues on a pipe are timesliced
      so this gives us full precedence over other queues.
      
      Programming CP_HQD_PIPE_PRIORITY changes the SPI_ARB_PRIORITY of the
      wave as follows:
              0x2: CS_H
              0x1: CS_M
              0x0: CS_L
      
      The SPI block will then dispatch work according to the policy set by
      SPI_ARB_PRIORITY. In the current policy CS_H is higher priority than
      gfx.
      
      In order to prevent getting stuck in loops of resources bouncing between
      GFX and high priority compute and introducing further latency, we
      statically reserve a portion of the pipe.
      
      v2: fix srbm_select to ring->queue and use ring->funcs->type
      v3: use AMD_SCHED_PRIORITY_* instead of AMDGPU_CTX_PRIORITY_*
      v4: switch int to enum amd_sched_priority
      v5: corresponding changes for srbm_lock
      v6: change CU reservation to PIPE_PERCENT allocation
      v7: use kiq instead of MMIO
      v8: back to MMIO, and make the implementation sleep safe.
      v9: corresponding changes for splitting HIGH into _HW/_SW
      Acked-by: NChristian König <christian.koenig@amd.com>
      Signed-off-by: NAndres Rodriguez <andresx7@gmail.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      b8866c26
    • H
      drm/amdgpu: Reserve shared memory on VRAM for SR-IOV · a05502e5
      Horace Chen 提交于
      SR-IOV need to reserve a piece of shared VRAM at the exact place
      to exchange data betweem PF and VF. The start address and size of
      the shared mem are passed to guest through VBIOS structure
      VRAM_UsageByFirmware.
      
      VRAM_UsageByFirmware is a general feature in VBIOS, it indicates
      that VBIOS need to reserve a piece of memory on the VRAM.
      
      Because the mem address is specified. Reserve it early in
      amdgpu_ttm_init to make sure that it can monoplize the space.
      Signed-off-by: NHorace Chen <horace.chen@amd.com>
      Reviewed-by: NChristian König <christian.koenig@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      a05502e5
  2. 29 9月, 2017 3 次提交
  3. 27 9月, 2017 3 次提交
  4. 19 9月, 2017 1 次提交
  5. 01 9月, 2017 1 次提交
  6. 30 8月, 2017 4 次提交
  7. 24 8月, 2017 2 次提交
  8. 18 8月, 2017 1 次提交
  9. 16 8月, 2017 5 次提交
  10. 26 7月, 2017 1 次提交
  11. 14 7月, 2017 13 次提交
  12. 01 7月, 2017 1 次提交
  13. 30 6月, 2017 1 次提交
    • A
      drm/amdgpu: fix typo in amdgpu_debugfs_test_ib_init · 27bad5b9
      Arnd Bergmann 提交于
      The debugfs interface has calls a function that was evidently
      defined under the wrong name in some configurations:
      
      drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:64:12: error: 'amdgpu_debugfs_test_ib_ring_init' used but never defined [-Werror]
      drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:3803:12: error: 'amdgpu_debugfs_test_ib_init' defined but not used [-Werror=unused-function]
      
      This fixes the function name.
      
      Fixes: 4f0955fc ("drm/amdgpu: export test ib debugfs interface")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      27bad5b9
  14. 17 6月, 2017 1 次提交
  15. 15 6月, 2017 1 次提交
    • H
      drm/amdgpu: fix missed gpu info firmware when cache firmware during S3 · ab4fe3e1
      Huang Rui 提交于
      gpu_info firmware is released after data is used. But when system enters into
      suspend, upper class driver will cache all firmware names. At that time,
      gpu_info will be failing to load. It seems an upper class issue, that we should
      not release gpu_info firmware until device finished.
      
      [  903.236589] cache_firmware: amdgpu/vega10_sdma1.bin
      [  903.236590] fw_set_page_data: fw-amdgpu/vega10_sdma1.bin buf=ffff88041eee10c0 data=ffffc90002561000 size=17408
      [  903.236591] cache_firmware: amdgpu/vega10_sdma1.bin ret=0
      [  903.464160] __allocate_fw_buf: fw-amdgpu/vega10_gpu_info.bin buf=ffff88041eee2c00
      [  903.471815] (NULL device *): loading /lib/firmware/updates/4.11.0-custom/amdgpu/vega10_gpu_info.bin failed with error -2
      [  903.482870] (NULL device *): loading /lib/firmware/updates/amdgpu/vega10_gpu_info.bin failed with error -2
      [  903.492716] (NULL device *): loading /lib/firmware/4.11.0-custom/amdgpu/vega10_gpu_info.bin failed with error -2
      [  903.503156] (NULL device *): direct-loading amdgpu/vega10_gpu_info.bin
      Signed-off-by: NHuang Rui <ray.huang@amd.com>
      Reviewed-by: NAlex Deucher <alexander.deucher@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      ab4fe3e1