drm/amdgpu: Support VCE1 IP block
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest14 patches 26 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/14 | drm/amdgpu/gmc: Don't hardcode GART page count before GTTdrivers/ drivers/ drivers/ | +4 | 2 replies | |
| 2/14 | drm/amdgpu/gmc6: Place gart at low address rangedrivers/ | +1 | 1 reply | |
| 3/14 | drm/amdgpu/gmc6: Add GART space for VCPU BOdrivers/ | +4 | 2 replies | |
| 4/14 | drm/amdgpu/gart: Add helper to bind VRAM BOdrivers/ drivers/ | +43 | 2 replies | |
| 5/14 | drm/amdgpu/vce: Clear VCPU BO before copying firmware to itdrivers/ | +1 | 2 replies | |
| 6/14 | drm/amdgpu/vce: Move firmware load to amdgpu_vce_early_initdrivers/ drivers/ drivers/ +2 more | +91 | 2 replies | |
| 7/14 | drm/amdgpu/si, cik, vi: Verify IP block when querying video codecsdrivers/ drivers/ drivers/ +1 more | +20 | 2 replies | |
| 8/14 | drm/amdgpu/vce1: Clean up register definitionsdrivers/ drivers/ drivers/ | +15 | 1 reply | |
| 9/14 | drm/amdgpu/vce1: Load VCE1 firmwaredrivers/ | +12 | 1 reply | |
| 10/14 | drm/amdgpu/vce1: Implement VCE1 IP blockdrivers/ drivers/ drivers/ +1 more | +839 | 5 replies | |
| 11/14 | drm/amdgpu/vce1: Ensure VCPU BO is in lower 32-bit address spacedrivers/ | +44 | 1 reply | |
| 12/14 | drm/amd/pm/si: Hook up VCE1 to SI DPMdrivers/ | +13 | 1 reply | |
| 13/14 | drm/amdgpu/vce1: Enable VCE1 on Tahiti, Pitcairn, Cape Verde GPUsdrivers/ | +3 | 1 reply | |
| 14/14 | drm/amdgpu/vce1: Tolerate VCE PLL timeout betterdrivers/ drivers/ | +10 | 3 replies |
Reviews trailers per patch
6 of 14 patches have a Reviewed-by or Acked-by.
| Patch | Christian König | Leo Liu |
|---|---|---|
| 1/14 | ||
| 2/14 | R-b | |
| 3/14 | ||
| 4/14 | ||
| 5/14 | ||
| 6/14 | R-b | |
| 7/14 | ||
| 8/14 | A-b | |
| 9/14 | R-b | |
| 10/14 | ||
| 11/14 | ||
| 12/14 | R-b | |
| 13/14 | R-b | |
| 14/14 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 00/14] drm/amdgpu: Support VCE1 IP block
VCE1 is the Video Coding Engine 1.0 found in SI GPUs. Add support for the VCE1 IP block, which is the last missing piece for fully-featured SI support in amdgpu. Co-developed by Alexandre Demers and Christian König.
This VCE1 implementation is based on:
VCE2 code in amdgpu
VCE1 code in radeon
Research by Alexandre and Christian
The biggest challenge was getting the firmware validation mechanism to work correctly. Due to some limitations in the HW, the VCE1 requires the VCPU BO to be located at a low 32-bit address. This was achieved by placing the GART in the LOW address space and manually mapping the VCPU BO in the GART page table.
Also hook up the VCE1 to the DPM.
Tested on the following HW:
Radeon R9 280X (Tahiti)
Radeon HD 7990 (Tahiti)
FirePro W9000 (Tahiti)
Radeon R7 450 (Cape Verde)
Looking forward to reviews and feedback!
Timur Kristóf (14):
drm/amdgpu/gmc: Don't hardcode GART page count before GTT drm/amdgpu/gmc6: Place gart at low address range drm/amdgpu/gmc6: Add GART space for VCPU BO drm/amdgpu/gart: Add helper to bind VRAM BO drm/amdgpu/vce: Clear VCPU BO before copying firmware to it drm/amdgpu/vce: Move firmware load to amdgpu_vce_early_init drm/amdgpu/si,cik,vi: Verify IP block when querying video codecs drm/amdgpu/vce1: Clean up register definitions drm/amdgpu/vce1: Load VCE1 firmware
drm/amdgpu/vce1: Implement VCE1 IP block drm/amdgpu/vce1: Ensure VCPU BO is in lower 32-bit address space drm/amd/pm/si: Hook up VCE1 to SI DPM
drm/amdgpu/vce1: Enable VCE1 on Tahiti, Pitcairn, Cape Verde GPUs drm/amdgpu/vce1: Tolerate VCE PLL timeout better
drivers/gpu/drm/amd/amdgpu/Makefile | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c | 41 + drivers/gpu/drm/amd/amdgpu/amdgpu_gart.h | 2 + drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 2 + drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 3 +- drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | 134 ++- drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h | 2 + drivers/gpu/drm/amd/amdgpu/cik.c | 6 + drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c | 7 +- drivers/gpu/drm/amd/amdgpu/si.c | 26 +- drivers/gpu/drm/amd/amdgpu/sid.h | 40 - drivers/gpu/drm/amd/amdgpu/vce_v1_0.c | 857 ++++++++++++++++++ drivers/gpu/drm/amd/amdgpu/vce_v1_0.h | 32 + drivers/gpu/drm/amd/amdgpu/vce_v2_0.c | 5 + drivers/gpu/drm/amd/amdgpu/vce_v3_0.c | 5 + drivers/gpu/drm/amd/amdgpu/vce_v4_0.c | 5 + drivers/gpu/drm/amd/amdgpu/vi.c | 6 + .../drm/amd/include/asic_reg/vce/vce_1_0_d.h | 5 + .../include/asic_reg/vce/vce_1_0_sh_mask.h | 10 + drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c | 18 +- 22 files changed, 1099 insertions(+), 112 deletions(-) create mode 100644 drivers/gpu/drm/amd/amdgpu/vce_v1_0.c create mode 100644 drivers/gpu/drm/amd/amdgpu/vce_v1_0.h
Signature · 1 line
2.51.0