[PATCH 085/459] drm/amdgpu/psp11: skip ta firmware for navi10

2019-06-17 Thread Alex Deucher
From: Hawking Zhang Signed-off-by: Hawking Zhang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/psp_v11_0.c | 54 ++ 1 file changed, 30 insertions(+), 24 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/psp_v11_0.c

[PATCH 093/459] drm/amdgpu/sdma: allocate CSA per sdma ring

2019-06-17 Thread Alex Deucher
From: Jack Xiao Allocate CSA for the given sdma ring. Acked-by: Hawking Zhang Signed-off-by: Jack Xiao Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c | 27 drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h | 2 +- 2 files changed, 28 insertions(+),

[PATCH 082/459] drm/amdgpu: enable psp front door loading by default on navi10

2019-06-17 Thread Alex Deucher
From: Hawking Zhang Signed-off-by: Hawking Zhang Reviewed-by: Le Ma Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c

[PATCH 071/459] drm/amdgpu/psp: print out psp v11 ucode hdr in drm debug mode

2019-06-17 Thread Alex Deucher
From: Hawking Zhang Signed-off-by: Hawking Zhang Reviewed-by: Le Ma Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/psp_v11_0.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/psp_v11_0.c b/drivers/gpu/drm/amd/amdgpu/psp_v11_0.c index

[PATCH 094/459] drm/amdgpu: program for resuming preempted ib

2019-06-17 Thread Alex Deucher
From: Jack Xiao For new submission ib, CE/DE metadata should be programmed to 0; for partially execution ib, CE/DE metadata should be restored. Acked-by: Alex Deucher Reviewed-by: Hawking Zhang Signed-off-by: Jack Xiao Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c

[PATCH 074/459] drm/amdgpu/psp: add support to load TOC to psp

2019-06-17 Thread Alex Deucher
From: Hawking Zhang Signed-off-by: Hawking Zhang Reviewed-by: Le Ma Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 57 +++-- 1 file changed, 53 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c

[PATCH 087/459] drm/amdgpu: Add helper function amdgpu_ring_set_preempt_cond_exec

2019-06-17 Thread Alex Deucher
From: Rex Zhu can preempt the ring by setting cond_exec to false Acked-by: Hawking Zhang Signed-off-by: Rex Zhu Signed-off-by: Jack Xiao Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH 072/459] drm/amdgpu/psp: support print out psp firmware header v1_1 info

2019-06-17 Thread Alex Deucher
From: Hawking Zhang Signed-off-by: Hawking Zhang Reviewed-by: Le Ma Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c

[PATCH 080/459] drm/amd/amdgpu: add flag to mark whether autoload is supported or not

2019-06-17 Thread Alex Deucher
From: Hawking Zhang rlc autoload is supported since navi10 Signed-off-by: Hawking Zhang Acked-by: Alex Deucher Reviewed-by: Jack Xiao Reviewed-by: Le Ma Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH 096/459] drm/amdgpu: mark the partial job as preempted in mcbp unit test

2019-06-17 Thread Alex Deucher
From: Jack Xiao In mcbp unit test, the test should detect the preempted job which may be a partial execution ib and mark it as preempted; so that the gfx block can correctly generate PM4 frame. Reviewed-by: Hawking Zhang Signed-off-by: Jack Xiao Signed-off-by: Alex Deucher ---

[PATCH 088/459] drm/amdgpu: add the trailing fence per ring

2019-06-17 Thread Alex Deucher
From: Jack Xiao The trailing fence for ring is used to track the completion of preemption. Acked-by: Hawking Zhang Signed-off-by: Jack Xiao Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c | 18 +- drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | 10

[PATCH 086/459] drm/amdgpu: enable virtual display feature for navi10

2019-06-17 Thread Alex Deucher
From: "Le.Ma" Signed-off-by: Le.Ma Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/dce_virtual.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/dce_virtual.c b/drivers/gpu/drm/amd/amdgpu/dce_virtual.c index

[PATCH 057/459] drm/amdgpu: add irq sources for gfx v10_1

2019-06-17 Thread Alex Deucher
From: Hawking Zhang Signed-off-by: Hawking Zhang Reviewed-by: Jack Xiao Signed-off-by: Alex Deucher --- .../include/ivsrcid/gfx/irqsrcs_gfx_10_1.h| 53 +++ 1 file changed, 53 insertions(+) create mode 100644 drivers/gpu/drm/amd/include/ivsrcid/gfx/irqsrcs_gfx_10_1.h

[PATCH 062/459] drm/amdgpu: add structures for buffer allocate/release for rlc autoload

2019-06-17 Thread Alex Deucher
From: "Le.Ma" Allocate a visible framebuffer to store all gfxip ucodes as the format of TOC. Signed-off-by: Le.Ma Reviewed-by: Alex Deucher Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.h | 5 + 1 file changed, 5 insertions(+) diff

[PATCH 058/459] drm/amdgpu: add irq sources for sdma v5_0

2019-06-17 Thread Alex Deucher
From: Hawking Zhang Signed-off-by: Hawking Zhang Reviewed-by: Jack Xiao Signed-off-by: Alex Deucher --- .../include/ivsrcid/sdma0/irqsrcs_sdma0_5_0.h | 43 ++ .../include/ivsrcid/sdma1/irqsrcs_sdma1_5_0.h | 44 +++ 2 files changed, 87 insertions(+) create

[PATCH 077/459] drm/amdgpu/psp: perform tmr_init and asd_init after loading sysdrv/sos

2019-06-17 Thread Alex Deucher
From: Hawking Zhang Since from navi10, the tmr_size should be decided by psp sos according to toc header. Driver should issue LOAD_TOC to psp sos to get the tmr_size needed. The allocation of tmr_size then should be done only when sos/sysdrv loading completed Accordingly, asd_init also move to

[PATCH 063/459] drm/amdgpu: add fw load type flag for rlc autoload

2019-06-17 Thread Alex Deucher
From: "Le.Ma" Add another firmware load type AMDGPU_FW_LOAD_RLC_AUTO to support firmware autoloading new feature in gfx10. This flag can be leveraged for future engines that need autoload fw. Signed-off-by: Le.Ma Reviewed-by: Alex Deucher Reviewed-by: Hawking Zhang Signed-off-by: Alex

[PATCH 064/459] drm/amdgpu: set navi10's fw loading type as direct

2019-06-17 Thread Alex Deucher
From: Huang Rui Signed-off-by: Huang Rui Reviewed-by: Alex Deucher Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c

[PATCH 056/459] drm/amdgpu: add gmc v10 ip block for navi10 (v6)

2019-06-17 Thread Alex Deucher
From: Hawking Zhang GMC in the GPU memory controller. v1: add place holder and initial basic implementation (Ray) v2: retire unused amdgpu_gart_set_defaults (Hawking) v3: re-work get_vm_pde function (Hawking) v4: replace legacy amdgpu_vram/gtt_location with amdgpu_gmc_vram/gtt_location

[PATCH 065/459] drm/amdgpu: Add psp 11.0 support for navi10.

2019-06-17 Thread Alex Deucher
From: Tao Zhou Add psp 11.0 code for navi10. psp 11.0 is not enabled for now. Will enable it when psp 11.0 firmware is available. Signed-off-by: Tao Zhou Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 1 +

[PATCH 059/459] drm/amdgpu: add irq sources for vcn v2_0 (v2)

2019-06-17 Thread Alex Deucher
From: Hawking Zhang v2: update (Alex) Signed-off-by: Hawking Zhang Reviewed-by: Jack Xiao Signed-off-by: Alex Deucher --- .../amd/include/ivsrcid/vcn/irqsrcs_vcn_2_0.h | 32 +++ 1 file changed, 32 insertions(+) create mode 100644

[PATCH 067/459] drm/amdgpu/psp: support init psp sos microcode with build-in toc

2019-06-17 Thread Alex Deucher
From: Hawking Zhang psp_firmware_header_v1_1 is used for psp sos with build-in toc Signed-off-by: Hawking Zhang Reviewed-by: Le Ma Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h | 2 +- drivers/gpu/drm/amd/amdgpu/psp_v11_0.c | 31 +++-- 2 files

[PATCH 076/459] drm/amdgpu/psp: switch to use sos_offset_bytes member as sys_bin_size

2019-06-17 Thread Alex Deucher
From: Hawking Zhang Navi10 will have toc built-in sos binary so that using header.ucode_size_bytes minus sos_size_bytes actually is not sys_bin_size. Using sos_offset_bytes works for both vega20 (psp_firmware_header_v1_0) and navi10 (psp_firmware_header_v1_1) Signed-off-by: Hawking Zhang

[PATCH 079/459] drm/amdgpu/psp: initialize autoload_supported flag in psp_sw_init

2019-06-17 Thread Alex Deucher
From: Hawking Zhang RLC autoload is supported since from Navi10 Signed-off-by: Hawking Zhang Acked-by: Alex Deucher Reviewed-by: Jack Xiao Reviewed-by: Le Ma Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH 069/459] drm/amdgpu: rename rlc autoload to backdoor autoload

2019-06-17 Thread Alex Deucher
From: Hawking Zhang This is to differentiate rlc backdoor autoload from rlc frontdoor autoload Signed-off-by: Hawking Zhang Reviewed-by: Le Ma Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 081/459] drm/amdgpu/psp: skip mec jt when autoload is enabled

2019-06-17 Thread Alex Deucher
From: Hawking Zhang When autoload is enabled, there is no need to load mec jt, RLC will handle it automatically Signed-off-by: Hawking Zhang Acked-by: Alex Deucher Reviewed-by: Jack Xiao Reviewed-by: Le Ma Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 5 +

[PATCH 083/459] drm/amdgpu: load smc ucode at first with psp while rlc auto load is supported

2019-06-17 Thread Alex Deucher
From: Huang Rui This patch loades smc ucode at first with psp while rlc auto load is supported on navi10. Signed-off-by: Huang Rui Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 35 - 1 file changed, 28

[PATCH 070/459] drm/amdgpu: add helper function to print psp hdr

2019-06-17 Thread Alex Deucher
From: Hawking Zhang Signed-off-by: Hawking Zhang Reviewed-by: Le Ma Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 24 +++ drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h | 1 + 2 files changed, 25 insertions(+) diff --git

[PATCH 055/459] drm/amdgpu: add mmhub v2 block for navi10 (v4)

2019-06-17 Thread Alex Deucher
From: Hawking Zhang v1: add place holder and initial functions (Ray) v2: replace legacy amdgpu_mc structure with amdgpu_gmc (Hawking) v3: switch to use amdgpu_gmc_pd_addr (Hawking) v4: squash in updates (Alex) Signed-off-by: Huang Rui Signed-off-by: Hawking Zhang Reviewed-by: Alex Deucher

[PATCH 050/459] drm/amdgpu/athub2: enable athub2 clock gating

2019-06-17 Thread Alex Deucher
From: Jack Xiao Enable athub2 clock gating and light sleep Signed-off-by: Jack Xiao Reviewed-by: Hawking Zhang Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/Makefile | 4 + drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 3 +

[PATCH 049/459] drm/amdgpu: add flag to support IH clock gating

2019-06-17 Thread Alex Deucher
From: Hawking Zhang Signed-off-by: Hawking Zhang Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/include/amd_shared.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/include/amd_shared.h b/drivers/gpu/drm/amd/include/amd_shared.h index

[PATCH 068/459] drm/amdgpu: use rlc toc from psp sos binary

2019-06-17 Thread Alex Deucher
From: Hawking Zhang Instead of putting toc into driver source code, the toc will be part of psp_sos fw. Driver need to get and parse it from psp fw Signed-off-by: Hawking Zhang Reviewed-by: Le Ma Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.h | 93

[PATCH 061/459] drm/amdgpu: add navi10 ih ip block (v3)

2019-06-17 Thread Alex Deucher
From: Hawking Zhang IH is the interrupt handler block. v1: add initial ih support (Ray) v2: add dummy prescreen iv function for navi10 (Hawking) v3: squash in additional updates (Alex) Signed-off-by: Huang Rui Signed-off-by: Hawking Zhang Reviewed-by: Alex Deucher Reviewed-by: Hawking Zhang

[PATCH 066/459] drm/amdgpu: add structure to support build-in toc to psp sos

2019-06-17 Thread Alex Deucher
From: Hawking Zhang Table Of Content (TOC) is used by RLC to auto load gc firmwares. PSP need to parse the toc to calculate the tmr size needed and load gc firmwares to tmr for RLC to auto load them finally Signed-off-by: Hawking Zhang Reviewed-by: Le Ma Signed-off-by: Alex Deucher ---

[PATCH 052/459] drm/amd/gmc9: rename AMDGPU_PTE_MTYPE to AMDGPU_PTE_MTYPE_VG10

2019-06-17 Thread Alex Deucher
From: Hawking Zhang To differentiate the mtypes across asics. Signed-off-by: Hawking Zhang Reviewed-by: Alex Deucher Reviewed-by: Christian König Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 4 ++-- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 4 ++--

[PATCH 060/459] drm/amd/display: move dcn v1_0 irq source header to ivsrcid/dcn/

2019-06-17 Thread Alex Deucher
From: Hawking Zhang Signed-off-by: Hawking Zhang Reviewed-by: Jack Xiao Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +- drivers/gpu/drm/amd/display/dc/irq/dcn10/irq_service_dcn10.c| 2 +- drivers/gpu/drm/amd/include/ivsrcid/{ =>

[PATCH 053/459] drm/amdgpu: refine the PTE encoding of PRT for navi10

2019-06-17 Thread Alex Deucher
From: Jack Xiao Due to GCR change from navi10, the PTE encoding of PRT needs change VSCTL = 0 (was 0XX1X). Signed-off-by: Jack Xiao Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 5 + drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 2 ++

[PATCH 054/459] drm/amdgpu: add gfxhub v2.0 block for navi10 (v4)

2019-06-17 Thread Alex Deucher
From: Hawking Zhang v1: add place holder and initial basic functions (Ray) v2: replace the refernce to legacy mc structure with gmc structure remove the direct use of gart.table_addr (Hawking) v3: switch to use amdgpu_gmc_pd_addr (Hawking) v4: squash in updates (Alex) Signed-off-by: Huang

[PATCH 031/459] drm/amdgpu: add nbio callbacks for vcn doorbell support

2019-06-17 Thread Alex Deucher
From: Leo Liu For Navi10 VCN2.0, the engine supports Doorbell Signed-off-by: Leo Liu Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h

[PATCH 030/459] drm/amdgpu: query vram_width from vram_info table

2019-06-17 Thread Alex Deucher
From: Hawking Zhang Driver will get channel_number and channel_width from vram_info table, then calculate vram_width by multiply channel_number by channel_width Signed-off-by: Hawking Zhang Reviewed-by: Alex Deucher Reviewed-by: Jack Xiao Signed-off-by: Alex Deucher ---

[PATCH 032/459] drm/amdgpu: add nbio v2.3 for navi10 (v3)

2019-06-17 Thread Alex Deucher
From: Hawking Zhang nbio handles bus io functionality. v1: add place holder and initial basic nbio v2.3 functions (Ray) v2: implements and expose all functions in format of nbio_v2_3_funcs (Hawking) v3: squash in updates (Alex) Signed-off-by: Huang Rui Signed-off-by: Hawking Zhang

[PATCH 038/459] drm/amdgpu: add helper function for gfx queue/bitmap transition

2019-06-17 Thread Alex Deucher
From: Hawking Zhang Signed-off-by: Hawking Zhang Reviewed-by: Jack Xiao Reviewed-by: Alex Deucher Acked-by: Felix Kuehling Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c| 42 ++

[PATCH 025/459] drm/amdgpu: add v10 structs header (v2)

2019-06-17 Thread Alex Deucher
From: Huang Rui Header for CP structures (MQD, etc.) V2: squash in updates Signed-off-by: Huang Rui Acked-by: Hawking Zhang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/include/v10_structs.h | 1258 + 1 file changed, 1258 insertions(+) create mode 100644

[PATCH 028/459] drm/amdgpu: add navi pm4 header

2019-06-17 Thread Alex Deucher
From: Hawking Zhang A pm4 header for Navi. PM4 is the packet format used by the compute and gfx engines. Signed-off-by: Huang Rui Signed-off-by: Hawking Zhang Reviewed-by: Alex Deucher Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/nvd.h | 418

[PATCH 043/459] drm/amdgpu/gfx10: add special unmap_queues packet for preemption

2019-06-17 Thread Alex Deucher
From: Jack Xiao CP introduced a special unmap_queues packet for gfx preemtion. Acked-by: Alex Deucher Reviewed-by: Hawking Zhang Signed-off-by: Jack Xiao Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 3 ++- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 11

[PATCH 051/459] drm/amdgpu: correct pte mtype field for navi

2019-06-17 Thread Alex Deucher
From: Hawking Zhang The MTYPE filed moves from bits 58:57 to 50:48 for NV10 And the size of MTYPE field is now 3bits Signed-off-by: Hawking Zhang Reviewed-by: Alex Deucher Reviewed-by: Christian König Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 9 +++--

[PATCH 042/459] drm/amdgpu: Move common code to amdgpu_gfx.c

2019-06-17 Thread Alex Deucher
From: Hawking Zhang move common code to amdgpu_gfx_enable_kcq,so this function can be shared with gfx8 and gfx9 Signed-off-by: Hawking Zhang Signed-off-by: Rex Zhu Reviewed-by: Alex Deucher Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c

[PATCH 047/459] drm/amdgpu: create mqd for gfx queues on navi10

2019-06-17 Thread Alex Deucher
From: Hawking Zhang Signed-off-by: Hawking Zhang Reviewed-by: Jack Xiao Reviewed-by: Alex Deucher Acked-by: Felix Kuehling Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 35 - 1 file changed, 34 insertions(+), 1 deletion(-) diff --git

[PATCH 044/459] drm/amdgpu: enable gfx eop interrupt per gfx pipe

2019-06-17 Thread Alex Deucher
From: Hawking Zhang Navi10 has 2 gfx pipe and need to enable gfx eop interrupt per pipe, instead of enable eop int for all gfx pipes at one time. Signed-off-by: Hawking Zhang Acked-by: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 3 ++-

[PATCH 048/459] drm/amdgpu: add new HDP CG flags

2019-06-17 Thread Alex Deucher
From: Hawking Zhang HDP 5.0 supports SRAM power gating. all the LS (Light Sleep)/ DS (Deep Sleep)/SD (Shut Down) modes are supported. However, only one of these modes can be enabled at one time. There is no dynamic power mode switch support. clock/power gating has to be disabled before making

[PATCH 046/459] drm/amdgpu: enable async gfx ring by default

2019-06-17 Thread Alex Deucher
From: Jack Xiao VDDGFX requires gfx queue to be installed via MAP_QUEUES packet. Hence, enable async gfx ring by default. Signed-off-by: Jack Xiao Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 039/459] drm/amdgpu: rename amdgpu_gfx_compute_mqd_sw_init

2019-06-17 Thread Alex Deucher
From: Hawking Zhang The function now will create mqd bos for both gfx queue and compute queue Signed-off-by: Hawking Zhang Reviewed-by: Jack Xiao Reviewed-by: Alex Deucher Acked-by: Felix Kuehling Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 8

[PATCH 036/459] drm/amdgpu: add members in amdgpu_me for gfx queue

2019-06-17 Thread Alex Deucher
From: Hawking Zhang Signed-off-by: Hawking Zhang Reviewed-by: Jack Xiao Reviewed-by: Alex Deucher Acked-by: Felix Kuehling Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 8 1 file changed, 8 insertions(+) diff --git

[PATCH 041/459] drm/amdgpu: Add common gfx func Disable kcq via kiq

2019-06-17 Thread Alex Deucher
From: Rex Zhu so can be shared with gfx8 and gfx9 Reviewed-by: Alex Deucher Reviewed-by: Hawking Zhang Signed-off-by: Rex Zhu Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 19 +++ drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 1 + 2 files changed,

[PATCH 034/459] drm/amdgpu/gfx10: new approach to load ce fw (v4)

2019-06-17 Thread Alex Deucher
From: Hawking Zhang gfx10 allows to only upload ce jumptable while save the whole ce image at gtt memory. v2: program CP_CE_IC_BASE_CNTL to default value v3: switch to use amdgpu_bo_create_reserved to create ce fw bo v4: split common code from gfx10 code Signed-off-by: Hawking Zhang

[PATCH 035/459] drm/amdgpu/gfx10: new approach to load gfx10 me fw (v4)

2019-06-17 Thread Alex Deucher
From: Hawking Zhang gfx10 allows to only upload me jumptable while save the whole me image at gtt memory. v2: program CP_ME_IC_BASE_CNTL to default value v3: switch to use amdgpu_bo_create_reserved to create me fw bo v4: split common code from gfx10 code Signed-off-by: Hawking Zhang

[PATCH 033/459] drm/amdgpu/gfx10: new approach to load pfp fw (v4)

2019-06-17 Thread Alex Deucher
From: Hawking Zhang gfx10 allows to only upload pfp jumptable while save the whole pfp image at gtt memory. v2: program CP_PFP_IC_BASE_CNTL to default value v3: switch to use amdgpu_bo_create_reserved to create pfp fw bo v4: split common code from gfx10 code Signed-off-by: Hawking Zhang

[PATCH 037/459] drm/amdgpu: acquire available gfx queues

2019-06-17 Thread Alex Deucher
From: Hawking Zhang currently, amdgpu will owns the first gfx queue of each pipe they are: me:0 pipe:0 queue:0 me:0 pipe:1 queue:0 Signed-off-by: Hawking Zhang Reviewed-by: Jack Xiao Reviewed-by: Alex Deucher Acked-by: Felix Kuehling Signed-off-by: Alex Deucher ---

[PATCH 040/459] drm/amdgpu: Add struct kiq_pm4_funcs into kiq struct

2019-06-17 Thread Alex Deucher
From: Rex Zhu kiq can support 4 pm4 scheduler packets set_resource, map_queues, unmap_queues, query_status. Reviewed-by: Alex Deucher Reviewed-by: Hawking Zhang Signed-off-by: Rex Zhu Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 20 1 file

[PATCH 029/459] drm/amdgpu: query vram type from atomfirmware vram_info

2019-06-17 Thread Alex Deucher
From: Hawking Zhang vram_type is saved in member vram_module[0].memory_type Signed-off-by: Hawking Zhang Reviewed-by: Alex Deucher Reviewed-by: Jack Xiao Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | 7 +++ 1 file changed, 7 insertions(+) diff

[PATCH 022/459] drm/amdgpu: add navi10 gpu info firmware

2019-06-17 Thread Alex Deucher
From: Huang Rui Signed-off-by: Huang Rui Reviewed-by: Alex Deucher Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

[PATCH 026/459] drm/amdgpu: add gfx v10 clear state header v2

2019-06-17 Thread Alex Deucher
From: Huang Rui Clear state for gfx pipe. v2: squash in updates Signed-off-by: Huang Rui Reviewed-by: Alex Deucher Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/clearstate_gfx10.h | 975 ++ 1 file changed, 975 insertions(+) create

[PATCH 019/459] drm/amdgpu: Add GDDR6 in vram_name arrary

2019-06-17 Thread Alex Deucher
From: Hawking Zhang For printing vram type. Signed-off-by: Hawking Zhang Reviewed-by: Tao Zhou Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c

[PATCH 023/459] drm/amdgpu: add gpu_info_firmware v1_1 structure for navi10

2019-06-17 Thread Alex Deucher
From: Hawking Zhang two new members that specific for navi10 are included in v2_0: num_sc_per_sh and num_packer_per_sc Signed-off-by: Hawking Zhang Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h | 6 ++ 1 file changed, 6 insertions(+)

[PATCH 015/459] drm/amdgpu: add navi10 ip offset header

2019-06-17 Thread Alex Deucher
From: Hawking Zhang Signed-off-by: Hawking Zhang Signed-off-by: Alex Deucher --- .../gpu/drm/amd/include/navi10_ip_offset.h| 855 ++ drivers/gpu/drm/amd/include/soc15_hw_ip.h | 4 +- 2 files changed, 858 insertions(+), 1 deletion(-) create mode 100644

[PATCH 024/459] drm/amdgpu: parse the new members added by gpu_info ucode v1_1

2019-06-17 Thread Alex Deucher
From: Hawking Zhang Signed-off-by: Hawking Zhang Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

[PATCH 017/459] drm/amdgpu: add NV series gpu family id

2019-06-17 Thread Alex Deucher
From: Huang Rui Signed-off-by: Huang Rui Reviewed-by: Alex Deucher Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- include/uapi/drm/amdgpu_drm.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/drm/amdgpu_drm.h b/include/uapi/drm/amdgpu_drm.h index

[PATCH 018/459] drm/amdgpu: add GDDR6 vram type

2019-06-17 Thread Alex Deucher
From: Huang Rui Signed-off-by: Huang Rui Reviewed-by: Alex Deucher Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- include/uapi/drm/amdgpu_drm.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/drm/amdgpu_drm.h b/include/uapi/drm/amdgpu_drm.h index

[PATCH 021/459] drm/amdgpu: add gfx10 specific new member pa_sc_tile_steering_override

2019-06-17 Thread Alex Deucher
From: Hawking Zhang Signed-off-by: Hawking Zhang Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h index

[PATCH 016/459] drm/amdgpu: add navi10 asic type

2019-06-17 Thread Alex Deucher
From: Huang Rui Signed-off-by: Huang Rui Reviewed-by: Alex Deucher Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 + include/drm/amd_asic_type.h| 1 + 2 files changed, 2 insertions(+) diff --git

[PATCH 020/459] drm/amdgpu: add gfx10 specific config in amdgpu_gfx_config

2019-06-17 Thread Alex Deucher
From: Hawking Zhang The two members are used to cache the values from gpu_info fw accordingly Signed-off-by: Hawking Zhang Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH 014/459] drm/amdgpu: add doorbell assignement for navi10

2019-06-17 Thread Alex Deucher
From: Hawking Zhang Update mappings for Navi10. Signed-off-by: Hawking Zhang Reviewed-by: Alex Deucher Reviewed-by: Jack Xiao Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_doorbell.h | 40 1 file changed, 40 insertions(+) diff --git

[PATCH 013/459] drm/amdgpu: atomfirmware.h updates for navi10

2019-06-17 Thread Alex Deucher
From: Hawking Zhang Updated tables for Navi10. Signed-off-by: Hawking Zhang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/include/atomfirmware.h | 188 - 1 file changed, 180 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/amd/include/atomfirmware.h

[PATCH 000/459] amdgpu support for Navi10

2019-06-17 Thread Alex Deucher
Hi, This patch set adds support for Navi10 asics to amdgpu. This includes support for: - Core driver support - Displays (DCN2) - GFX and compute (GFX10) - System DMA (SDMA 5) - Multimedia decode and encode (VCN2) - Power management The new register headers are huge, so I have not sent them out.

Re: [PATCH] drm/amd/amdgpu: cast mem->num_pages to 64-bits when shifting

2019-06-17 Thread Kuehling, Felix
Looks good to me. One cosmetic comment inline. With that fixed this patch is Reviewed-by:  Felix Kuehling On 2019-06-14 12:51 p.m., StDenis, Tom wrote: > On 32-bit hosts mem->num_pages is 32-bits and can overflow > when shifted. Add a cast to avoid this. > > Signed-off-by: Tom St Denis > ---

Re: [PATCH] drm/amd/amdgpu: cast mem->num_pages to 64-bits when shifting

2019-06-17 Thread Tom St Denis
ping? On Fri, Jun 14, 2019 at 12:51 PM StDenis, Tom wrote: > On 32-bit hosts mem->num_pages is 32-bits and can overflow > when shifted. Add a cast to avoid this. > > Signed-off-by: Tom St Denis > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c | 8 +--- > 1 file changed, 5

Re: [PATCH 06/59] drm/prime: Actually remove DRIVER_PRIME everywhere

2019-06-17 Thread Emil Velikov
On 2019/06/14, Daniel Vetter wrote: > Split out to make the functional changes stick out more. > Since this patch flew-by, as standalone one (intentionally or not) I'd add, anything vaguely like: "Core users of DRIVER_PRIME were removed from core with prior patches." HTH Emil

Re: [PATCH] drm/amdgpu: wait to fetch the vbios until after common init

2019-06-17 Thread Christian König
A quick guide to the different tags: Signed-off-by: I'm somehow responsible that the code is in the mainline tree. E.g. either the Author of a patch or some maintainer who forwarded the stuff to Linus. Tested-by: I tested the code and found it working good. Reviewed-by: I'm familiar with both

Re: [PATCH v17 03/15] arm64: Introduce prctl() options to control the tagged user addresses ABI

2019-06-17 Thread Catalin Marinas
On Mon, Jun 17, 2019 at 09:57:36AM -0700, Evgenii Stepanov wrote: > On Mon, Jun 17, 2019 at 6:56 AM Catalin Marinas > wrote: > > On Wed, Jun 12, 2019 at 01:43:20PM +0200, Andrey Konovalov wrote: > > > From: Catalin Marinas > > > > > > It is not desirable to relax the ABI to allow tagged user

Re: [PATCH v17 03/15] arm64: Introduce prctl() options to control the tagged user addresses ABI

2019-06-17 Thread Evgenii Stepanov
On Mon, Jun 17, 2019 at 6:56 AM Catalin Marinas wrote: > > On Wed, Jun 12, 2019 at 01:43:20PM +0200, Andrey Konovalov wrote: > > From: Catalin Marinas > > > > It is not desirable to relax the ABI to allow tagged user addresses into > > the kernel indiscriminately. This patch introduces a prctl()

Re: [PATCH v17 03/15] arm64: Introduce prctl() options to control the tagged user addresses ABI

2019-06-17 Thread Szabolcs Nagy
On 17/06/2019 14:56, Catalin Marinas wrote: > On Wed, Jun 12, 2019 at 01:43:20PM +0200, Andrey Konovalov wrote: >> From: Catalin Marinas >> >> It is not desirable to relax the ABI to allow tagged user addresses into >> the kernel indiscriminately. This patch introduces a prctl() interface >> for

[PATCH] drm/prime: Actually remove DRIVER_PRIME everywhere

2019-06-17 Thread Daniel Vetter
Split out to make the functional changes stick out more. v2: amdgpu gained DRIVER_SYNCOBJ_TIMELINE. v3: amdgpu lost DRIVER_SYNCOBJ_TIMELINE. v4: Don't add a space in i915_drv.c (Sam) Cc: Sam Ravnborg Reviewed-by: Eric Anholt Signed-off-by: Daniel Vetter Cc: amd-gfx@lists.freedesktop.org Cc:

RE: [PATCH] drm/amdgpu: wait to fetch the vbios until after common init

2019-06-17 Thread Russell, Kent
Thanks, I need to get familiar with all of the tags  Kent From: Deucher, Alexander Sent: Monday, June 17, 2019 11:24 AM To: Russell, Kent ; Alex Deucher ; amd-gfx@lists.freedesktop.org Subject: Re: [PATCH] drm/amdgpu: wait to fetch the vbios until after common init I'll make that a

Re: [PATCH] drm/amdgpu: wait to fetch the vbios until after common init

2019-06-17 Thread Deucher, Alexander
I'll make that a tested-by. Thanks! Alex From: Russell, Kent Sent: Monday, June 17, 2019 11:14 AM To: Alex Deucher; amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander Subject: RE: [PATCH] drm/amdgpu: wait to fetch the vbios until after common init This also

RE: [PATCH] drm/amdgpu: wait to fetch the vbios until after common init

2019-06-17 Thread Russell, Kent
This also worked. I don't think that I'm qualified enough to RB it, but you can add my Verified-By: Kent Russell Kent -Original Message- From: amd-gfx On Behalf Of Alex Deucher Sent: Monday, June 17, 2019 10:45 AM To: amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander Subject:

Re: [PATCH] drm/amd/powerplay: Delete a redundant memory setting in vega20_set_default_od8_setttings()

2019-06-17 Thread Alex Deucher
Applied this and the dc patch. Thanks! Alex On Mon, Jun 17, 2019 at 10:07 AM Markus Elfring wrote: > > From: Markus Elfring > Date: Mon, 17 Jun 2019 14:24:14 +0200 > > The memory was set to zero already by a call of the function “kzalloc”. > Thus remove an extra call of the function “memset”

Re: [PATCH] drm/amd/display: Add missing newline at end of file

2019-06-17 Thread Alex Deucher
On Mon, Jun 17, 2019 at 10:45 AM Geert Uytterhoeven wrote: > > "git diff" says: > > \ No newline at end of file > > after modifying the file. > > Signed-off-by: Geert Uytterhoeven Applied. thanks! Alex > --- > drivers/gpu/drm/amd/display/modules/power/Makefile | 2 +- > 1 file changed,

Re: [PATCH] drm/amdgpu: fix error handling in df_v3_6_pmc_start

2019-06-17 Thread Alex Deucher
On Mon, Jun 17, 2019 at 8:57 AM Arnd Bergmann wrote: > > When df_v3_6_pmc_get_ctrl_settings() fails for some reason, we > store uninitialized data in a register, as gcc points out: > > drivers/gpu/drm/amd/amdgpu/df_v3_6.c: In function 'df_v3_6_pmc_start': >

RE: [PATCH] drm/amdgpu: wait to fetch the vbios until after common init

2019-06-17 Thread Russell, Kent
Thanks Alex, I am testing it out now. Kent -Original Message- From: amd-gfx On Behalf Of Alex Deucher Sent: Monday, June 17, 2019 10:45 AM To: amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander Subject: [PATCH] drm/amdgpu: wait to fetch the vbios until after common init We need the

Re: [PATCH] drm/amd/display: include missing linux/delay.h

2019-06-17 Thread Arnd Bergmann
On Mon, Jun 17, 2019 at 4:41 PM Sam Ravnborg wrote: > On Mon, Jun 17, 2019 at 02:38:55PM +0200, Arnd Bergmann wrote: > > Some randconfig builds fail to compile the dcn10 code because of > > a missing declaration: > > > > drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c: In > >

[PATCH] drm/amdgpu: wait to fetch the vbios until after common init

2019-06-17 Thread Alex Deucher
We need the asic_funcs set for the get rom callbacks in some cases. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 24 -- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

Re: [PATCH] drm/amd/display: include missing linux/delay.h

2019-06-17 Thread Sam Ravnborg
Hi Arnd. On Mon, Jun 17, 2019 at 02:38:55PM +0200, Arnd Bergmann wrote: > Some randconfig builds fail to compile the dcn10 code because of > a missing declaration: > > drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c: In > function 'dcn10_apply_ctx_for_surface': >

Re: [PATCH] drm/amdgpu: Need to set the baco cap before baco reset

2019-06-17 Thread Alex Deucher
On Mon, Jun 17, 2019 at 7:08 AM Russell, Kent wrote: > > The issue was limited to one specific model of MI25, I'll see if I can get > access to that later today and try your patch out. Thank you Emily! Where is the crash happening in amdgpu_bios.c? What pointer is NULL? Presumably it's one of

[PATCH] drm/amd/display: Add missing newline at end of file

2019-06-17 Thread Geert Uytterhoeven
"git diff" says: \ No newline at end of file after modifying the file. Signed-off-by: Geert Uytterhoeven --- drivers/gpu/drm/amd/display/modules/power/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/modules/power/Makefile

Re: [PATCH v17 03/15] arm64: Introduce prctl() options to control the tagged user addresses ABI

2019-06-17 Thread Catalin Marinas
On Wed, Jun 12, 2019 at 01:43:20PM +0200, Andrey Konovalov wrote: > From: Catalin Marinas > > It is not desirable to relax the ABI to allow tagged user addresses into > the kernel indiscriminately. This patch introduces a prctl() interface > for enabling or disabling the tagged ABI with a global

[PATCH] drm/amdgpu: fix error handling in df_v3_6_pmc_start

2019-06-17 Thread Arnd Bergmann
When df_v3_6_pmc_get_ctrl_settings() fails for some reason, we store uninitialized data in a register, as gcc points out: drivers/gpu/drm/amd/amdgpu/df_v3_6.c: In function 'df_v3_6_pmc_start': drivers/gpu/drm/amd/amdgpu/amdgpu.h:1012:29: error: 'lo_val' may be used uninitialized in this function

[PATCH] drm/amd/display: include missing linux/delay.h

2019-06-17 Thread Arnd Bergmann
Some randconfig builds fail to compile the dcn10 code because of a missing declaration: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c: In function 'dcn10_apply_ctx_for_surface': drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:2378:3: error: implicit

[PATCH] drm/amd/powerplay: Delete a redundant memory setting in vega20_set_default_od8_setttings()

2019-06-17 Thread Markus Elfring
From: Markus Elfring Date: Mon, 17 Jun 2019 14:24:14 +0200 The memory was set to zero already by a call of the function “kzalloc”. Thus remove an extra call of the function “memset” for this purpose. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

[PATCH] drm/amd/display: Delete a redundant memory setting in amdgpu_dm_irq_register_interrupt()

2019-06-17 Thread Markus Elfring
From: Markus Elfring Date: Mon, 17 Jun 2019 13:56:39 +0200 The memory was set to zero already by a call of the function “kzalloc”. Thus remove an extra call of the function “memset” for this purpose. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

RE: [PATCH] drm/amdgpu: Need to set the baco cap before baco reset

2019-06-17 Thread Russell, Kent
Thanks Emily, this fixed the issue. Verified-By: Kent Russell Kent -Original Message- From: Deng, Emily Sent: Sunday, June 16, 2019 11:53 PM To: Yang, Philip ; Russell, Kent ; Quan, Evan ; amd-gfx@lists.freedesktop.org Subject: RE: [PATCH] drm/amdgpu: Need to set the baco cap before

<    1   2   3   4   5   6   >