We ran into a similar problem when we played with priorities on KFD
queues. You can't change an MQD of a currently mapped queue. To change a
queue priority we need to unmap it, update the MQD, and then map it again.
I wonder if a queue can change its own priority by using register write
commands
On Fri, May 5, 2017 at 1:10 PM, Andres Rodriguez wrote:
> Hey Everyone,
>
> On one of the previous comments for this series I received feedback that
> the register programming should be done through the KIQ. This series has
> the relevant changes.
>
> However, register writes
First step towards enabling kiq register operations from an interrupt
handler
Signed-off-by: Andres Rodriguez
---
drivers/gpu/drm/amd/amdgpu/amdgpu.h| 2 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 10 +-
2 files changed, 6 insertions(+), 6 deletions(-)
Add a new context creation parameter to express a global context priority.
The priority ranking in descending order is as follows:
* AMDGPU_CTX_PRIORITY_HIGH
* AMDGPU_CTX_PRIORITY_NORMAL
* AMDGPU_CTX_PRIORITY_LOW
The driver will attempt to schedule work to the hardware according to
the
The kiq's srbm window is independent of the MMIO srbm window.
Signed-off-by: Andres Rodriguez
---
drivers/gpu/drm/amd/amdgpu/amdgpu.h| 1 +
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 +
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 34
Add WREG32_KIQ_ASYNC() to allow for a caller to perform a register write
without waiting for the result to be commited.
This allows us to queue register writes from a context that cannot
sleep.
It may also be useful for long sequences of register writes performed
through the kiq. Where only the
Use the [WR]REG32_KIQ() macros when a register operation should go
through the kiq.
Signed-off-by: Andres Rodriguez
---
drivers/gpu/drm/amd/amdgpu/amdgpu.h| 3 +++
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 --
2 files changed, 7 insertions(+), 2 deletions(-)
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:
Add an initial framework for changing the HW priorities of rings. The
framework allows requesting priority changes for the lifetime of an
amdgpu_job. After the job completes the priority will decay to the next
lowest priority for which a request is still valid.
A new ring function set_priority()
KIQ is now used for baremetal compute initialization. Since it is no
longer compute specific, move the KIQ reg opts to a more general
location.
Signed-off-by: Andres Rodriguez
---
drivers/gpu/drm/amd/amdgpu/amdgpu.h| 4 +++
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
Hey Everyone,
On one of the previous comments for this series I received feedback that
the register programming should be done through the KIQ. This series has
the relevant changes.
However, register writes that require an srbm_select are not working
correctly. The effect is as if the write
Update the scratch reg for when the engine is hung.
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | 13 +
drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.h | 2 ++
2 files changed, 15 insertions(+)
diff --git
Need to use the atomfirmware interface rather than atombios since
soc15 is atomfirmware based.
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/amd/amdgpu/soc15.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
Patch 2 is missing your signed-off-by. With that fixed, the series is:
Reviewed-by: Alex Deucher
From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf Of Zhu,
Rex
Sent: Friday, May 05, 2017 8:43 AM
To: amd-gfx@lists.freedesktop.org
Cc: Zhu, Rex
can you check if vega the same
-Original Message-
From: Yu, Xiangliang
Sent: Friday, May 5, 2017 5:18 PM
To: Ding, Pixel ; Liu, Monk ;
amd-gfx@lists.freedesktop.org
Subject: RE: [PATCH 2/6] drm/amdgpu: reset GDW, GWS and OA software copy to
On Fri, May 5, 2017 at 2:45 AM, Chunming Zhou wrote:
> the root cause is vram content is lost completely after pci reset.
>
> Change-Id: I012cea984702894410b0f05149fd017bb62b624c
> Signed-off-by: Chunming Zhou
Let's see if it makes sense to change the
From: Shirish S
dc_commit_surfaces_to_stream() function currently
is handle's only one plane at a time.
This will not work if multiple planes have to be set to a crtc.
The functionality of dc_commit_surfaces_to_stream() with this patch
is slit into
1. Accumulate and
Missed these patches the other day. This is some of the recent work
to hook up underlay support.
Shirish S (2):
drm/amd/display: update the YUV plane offsets
drm/amd/display: make dc_commit_surfaces_to_stream() re-entrant
.../drm/amd/display/amdgpu_dm/amdgpu_dm_types.c| 85
From: Shirish S
This patch updates the planes default offsets to
the appropriate ones, and aligns the pitch to 64 bits.
BUG=SWDEV-119421
TEST=Boots to UI on jadeite
TEST=
plane_test --format AR24 --size 500x50 -p --format YV12 --size 500x500
plane_test --format AR24
Change-Id: Ida8f8168d9600503146b5140ea47c913733888cf
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/include/amd_shared.h | 6 ++
1 file changed, 6 insertions(+)
diff --git a/drivers/gpu/drm/amd/include/amd_shared.h
b/drivers/gpu/drm/amd/include/amd_shared.h
index
Change-Id: Ib8681558cabab99da804d1d10987aca63435b1e5
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 43 --
.../gpu/drm/amd/powerplay/hwmgr/vega10_thermal.h | 1 +
2 files changed, 25 insertions(+), 19 deletions(-)
diff
Signed-off-by: Rex Zhu
Change-Id: I72d61851630e5d4ff5b3236ca33abac6f5b200c6
---
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 35 --
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_thermal.c | 9 +++---
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_thermal.h |
Change-Id: Ieb05cfa95e4072357e18f631ab71780de0688008
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/amdgpu/ci_dpm.c | 27 +++
1 file changed, 15 insertions(+), 12 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/ci_dpm.c
Reviewed-by: Christian König
Am 05.05.2017 um 09:47 schrieb He, Hongbo:
Reviewed-by: Roger.He
-Original Message-
From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf Of
Chunming Zhou
Sent: Friday, May 05, 2017 2:46 PM
Reviewed-by: Christian König
Am 05.05.2017 um 09:33 schrieb zhoucm1:
Reviewed-by: Chunming Zhou
On 2017年05月05日 15:22, Roger.He wrote:
to cover below case:
1. A task gart bind/unbind but not add to adev->gtt_list yet
2. at this time gpu reset,
Am 05.05.2017 um 05:34 schrieb Zhang, Jerry (Junwei):
On 05/04/2017 10:33 PM, Alex Deucher wrote:
rather than defining it locally.
Signed-off-by: Alex Deucher
Reviewed-by: Junwei Zhang
Reviewed-by: Christian König
Reviewed-by: Roger.He
-Original Message-
From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf Of
Chunming Zhou
Sent: Friday, May 05, 2017 2:46 PM
To: amd-gfx@lists.freedesktop.org
Cc: Zhou, David(ChunMing)
Subject: [PATCH 2/2] drm/amdgpu: print when
Reviewed-by: Chunming Zhou
On 2017年05月05日 15:22, Roger.He wrote:
to cover below case:
1. A task gart bind/unbind but not add to adev->gtt_list yet
2. at this time gpu reset, gtt only recover those gtt in adev->gtt_list
Change-Id: Ifb4360e3b68624f2be67fa82100623cf4c451873
to cover below case:
1. A task gart bind/unbind but not add to adev->gtt_list yet
2. at this time gpu reset, gtt only recover those gtt in adev->gtt_list
Change-Id: Ifb4360e3b68624f2be67fa82100623cf4c451873
Signed-off-by: Roger.He
---
drivers/gpu/drm/amd/amdgpu/amdgpu.h
> -Original Message-
> From: Huang Rui [mailto:ray.hu...@amd.com]
> Sent: Friday, May 05, 2017 2:47 PM
> To: Yu, Xiangliang
> Cc: amd-gfx@lists.freedesktop.org; Wang, Daniel(Xiaowei)
>
> Subject: Re: [PATCH 4/6] drm/amdgpu/psp: Do not load
On Thu, May 04, 2017 at 02:36:35PM +0800, Xiangliang Yu wrote:
> If psp version doesn't match asd version, asd loading will be
> failed. Add workaround to bypass it for sriov.
>
> Signed-off-by: Daniel Wang
> Signed-off-by: Xiangliang Yu
> ---
>
the root cause is vram content is lost completely after pci reset.
Change-Id: I012cea984702894410b0f05149fd017bb62b624c
Signed-off-by: Chunming Zhou
---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 57 ++
1 file changed, 50 insertions(+), 7
32 matches
Mail list logo