Re: [RfC PATCH] drm: fourcc byteorder: brings header file comments in line with reality.

2017-04-13 Thread Pekka Paalanen
On Tue, 11 Apr 2017 13:23:53 +0200 Gerd Hoffmann wrote: > Hi, > > > > Just let know what you need tested, I should be able to turn it around > > > within a couple of days. > > > > That's part of my problem. I don't really know what should be tested. > > What do people do with their BE machi

[PATCH] drm/amdgpu: fix dead lock if any ip block resume failed in s3

2017-04-13 Thread Huang Rui
Driver must free the console lock whether driver resuming successful or not. Otherwise, fb_console will be always waiting for the lock and then cause system stuck. [ 244.405541] INFO: task kworker/0:0:4 blocked for more than 120 seconds. [ 244.405543] Tainted: G OE 4.9.0-custo

[PATCH 2/3] drm/amdgpu: add gtt print like vram when dump mm table

2017-04-13 Thread Chunming Zhou
Change-Id: If0474e24e14d237d2d55731871c5ceb11e5a3601 Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c | 6 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 4 2 files changed, 10 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c b/driver

[PATCH 3/3] drm/amdgpu: move gtt usage statistic to gtt mgr

2017-04-13 Thread Chunming Zhou
Change-Id: Ifea42c8ae2206143d7e22b35eea537ba9e928fe8 Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c | 13 ++--- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 6 -- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu

[PATCH 1/3] drm/amdgpu: fix gtt mgr available statistics

2017-04-13 Thread Chunming Zhou
gtt_mgr_alloc is called by many places in local driver, while gtt_mgr_new is called by get_node in ttm. Change-Id: Ia5a18a3b531a01ad7d47f40e08f778e7b94c048a Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions

Re: [PATCH] drm/amdgpu: fix dead lock if any ip block resume failed in s3

2017-04-13 Thread Michel Dänzer
On 13/04/17 05:12 PM, Huang Rui wrote: > Driver must free the console lock whether driver resuming successful > or not. Otherwise, fb_console will be always waiting for the lock and > then cause system stuck. > > [ 244.405541] INFO: task kworker/0:0:4 blocked for more than 120 seconds. > [ 244.

RE: [PATCH] drm/amdgpu: fix dead lock if any ip block resume failed in s3

2017-04-13 Thread Deucher, Alexander
> -Original Message- > From: Huang Rui [mailto:ray.hu...@amd.com] > Sent: Thursday, April 13, 2017 4:12 AM > To: amd-gfx@lists.freedesktop.org; Deucher, Alexander > Cc: Koenig, Christian; Wang, Ken; Huang, Ray > Subject: [PATCH] drm/amdgpu: fix dead lock if any ip block resume failed in > s

[PATCH] drm/dp-helper: DP_TEST_MISC1 should be DP_TEST_MISC0

2017-04-13 Thread Harry Wentland
Bring this in line with spec and what commit in upstream drm tree. Signed-off-by: Harry Wentland --- This brings this definition in amd-staging-4.9 in line with upstream. include/drm/drm_dp_helper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/drm/drm_dp_helper.h

Re: [PATCH] drm/dp-helper: DP_TEST_MISC1 should be DP_TEST_MISC0

2017-04-13 Thread Alex Deucher
On Thu, Apr 13, 2017 at 10:34 AM, Harry Wentland wrote: > Bring this in line with spec and what commit in upstream drm tree. > > Signed-off-by: Harry Wentland Acked-by: Alex Deucher > --- > > This brings this definition in amd-staging-4.9 in line with upstream. > > include/drm/drm_dp_helper.h

[PATCH libdrm 0/2] amdgpu: add amdgpu_cs_wait_fences

2017-04-13 Thread Nicolai Hähnle
Hi all, These changes expose a function to call the WAIT_FENCES ioctl for waiting on multiple fences at the same time. This is useful for Vulkan. They are mostly changes that have been in the amdgpu-pro libdrm for a long time. I've taken the liberty to clean them up a bit and add some missing bit

[PATCH libdrm 1/2] amdgpu: add the interface of waiting multiple fences

2017-04-13 Thread Nicolai Hähnle
From: Nicolai Hähnle Signed-off-by: Junwei Zhang [v2: allow returning the first signaled fence index] Signed-off-by: monk.liu [v3: - cleanup *status setting - fix amdgpu symbols check] Signed-off-by: Nicolai Hähnle Reviewed-by: Christian König (v1) Reviewed-by: Jammy Zhou (v1) --- amdgpu/

[PATCH libdrm 2/2] amdgpu: add a test for amdgpu_cs_wait_fences

2017-04-13 Thread Nicolai Hähnle
From: Nicolai Hähnle Signed-off-by: monk.liu [v2: actually hook up the test case] Signed-off-by: Nicolai Hähnle --- tests/amdgpu/basic_tests.c | 100 + 1 file changed, 100 insertions(+) diff --git a/tests/amdgpu/basic_tests.c b/tests/amdgpu/basic_te

amdgpu 0000:84:00.0: gpu post error! \\ Fatal error during GPU init

2017-04-13 Thread Dennis Schridde
Hello! I am trying to use an AMD FirePro S7150X2 with the AMDGPU driver of a Linux 4.10.9 kernel (CoreOS Container Linux) and linux-firmware e39f0e3e6897ad865b3704f61218ae83f98a85da, but I run into the following error after the amdgpu module is being loaded: [ 17.692746] amdgpu :84:00.0:

AMDGPU without display output

2017-04-13 Thread Dennis Schridde
Hello again! I am trying to use a AMD FirePro S7150X2 with the AMDGPU driver of a Linux 4.10.9 kernel (CoreOS Container Linux) and linux-firmware e39f0e3e6897ad865b3704f61218ae83f98a85da. Since the card has no display output and I want to run remote applications only, I would like to prevent a

RE: AMDGPU without display output

2017-04-13 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Dennis Schridde > Sent: Thursday, April 13, 2017 10:32 AM > To: amd-gfx@lists.freedesktop.org > Subject: AMDGPU without display output > > Hello again! > > I am trying to use a AMD FirePro S

Re: AMDGPU without display output

2017-04-13 Thread Dennis Schridde
Thanks, Alex! signature.asc Description: This is a digitally signed message part. ___ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx

RE: amdgpu 0000:84:00.0: gpu post error! \\ Fatal error during GPU init

2017-04-13 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Dennis Schridde > Sent: Thursday, April 13, 2017 10:18 AM > To: amd-gfx@lists.freedesktop.org > Subject: amdgpu :84:00.0: gpu post error! \\ Fatal error during GPU init > > Hello! > > I

RE: [PATCH] drm/amdgpu: Add kernel parameter to manage memory error handling.

2017-04-13 Thread Panariti, David
+ Vilas > -Original Message- > From: Deucher, Alexander > Sent: Wednesday, April 12, 2017 9:29 PM > To: 'Michel Dänzer' ; Panariti, David > > Cc: amd-gfx@lists.freedesktop.org > Subject: RE: [PATCH] drm/amdgpu: Add kernel parameter to manage > memory error handling. > > > -Original M

Re: [PATCH] drm/amdgpu: Add kernel parameter to manage memory error handling.

2017-04-13 Thread Tom St Denis
On 13/04/17 11:38 AM, Panariti, David wrote: + Vilas -Original Message- From: Deucher, Alexander Sent: Wednesday, April 12, 2017 9:29 PM To: 'Michel Dänzer' ; Panariti, David Cc: amd-gfx@lists.freedesktop.org Subject: RE: [PATCH] drm/amdgpu: Add kernel parameter to manage memory error

Re: [PATCH 3/3] drm/amdgpu: CIK support is no longer experimental

2017-04-13 Thread Nicolai Hähnle
On 11.04.2017 00:06, Felix Kuehling wrote: On 17-04-08 04:50 AM, Nicolai Hähnle wrote: On 07.04.2017 22:15, Felix Kuehling wrote: Change the wording of the CONFIG_DRM_AMDGPU_CIK option to indicate that it's no longer experimental. Signed-off-by: Felix Kuehling --- drivers/gpu/drm/amd/amdgpu/

RE: [PATCH] drm/dp-helper: DP_TEST_MISC1 should be DP_TEST_MISC0

2017-04-13 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Harry Wentland > Sent: Thursday, April 13, 2017 10:34 AM > To: amd-gfx@lists.freedesktop.org > Cc: Wentland, Harry > Subject: [PATCH] drm/dp-helper: DP_TEST_MISC1 should be > DP_TEST_MISC0 >

Re: [PATCH 3/3] drm/amdgpu: CIK support is no longer experimental

2017-04-13 Thread Marek Olšák
On Thu, Apr 13, 2017 at 6:41 PM, Nicolai Hähnle wrote: > On 11.04.2017 00:06, Felix Kuehling wrote: >> >> On 17-04-08 04:50 AM, Nicolai Hähnle wrote: >>> >>> On 07.04.2017 22:15, Felix Kuehling wrote: Change the wording of the CONFIG_DRM_AMDGPU_CIK option to indicate that it's no lo

Re: amdgpu 0000:84:00.0: gpu post error! \\ Fatal error during GPU init

2017-04-13 Thread Dennis Schridde
Hi! On Donnerstag, 13. April 2017 17:30:45 CEST Deucher, Alexander wrote: > > [ 17.692746] amdgpu :84:00.0: enabling device ( -> 0003) > > [ 17.692940] [drm] initializing kernel modesetting (TONGA 0x1002:0x6929 > > 0x1002:0x0334 0x00). > > [ 17.692963] [drm] register mmio base: 0xD01

[PATCH 04/17] drm/amdgpu: remove duplicate definition of cik_mqd

2017-04-13 Thread Andres Rodriguez
The gfxv7 contains a slightly different version of cik_mqd called bonaire_mqd. This can introduce subtle bugs if fixes are not applied in both places. Reviewed-by: Edward O'Callaghan Acked-by: Christian König Acked-by: Felix Kuehling Signed-off-by: Andres Rodriguez --- drivers/gpu/drm/amd/amd

[PATCH split] Improve pipe split between amdgpu and amdkfd

2017-04-13 Thread Andres Rodriguez
This is a split of patches that are ready to land from the series: Add support for high priority scheduling in amdgpu v8 I've included Felix and Alex's feedback from the thread above. This includes: * Separate MEC_HPD_SIZE rename into a separate patch (patch 01) * Added a patch to fix the kgd_hq

[PATCH] dmr/amdgpu: Fix wrongly unref of BO

2017-04-13 Thread Alex Xie
According to comment of amdgpu_bo_reserve, amdgpu_bo_reserve can return with -ERESTARTSYS. When this function was interrupted by a signal, BO should not be unref. Otherwise the BO might be released while is kmapped and pinned, or BO MIGHT be deref multiple times, etc. Change-Id: If76071a768950a0d3

[PATCH 01/17] drm/amdgpu: clarify MEC_HPD_SIZE is specific to a gfx generation

2017-04-13 Thread Andres Rodriguez
Rename MEC_HPD_SIZE to GFXN_MEC_HPD_SIZE to clarify it is specific to a gfx generation. Signed-off-by: Andres Rodriguez --- drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c | 11 +-- drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 15 +++ drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 17 -

[PATCH 03/17] drm/amdgpu: detect timeout error when deactivating hqd

2017-04-13 Thread Andres Rodriguez
Handle HQD deactivation timeouts instead of ignoring them. Reviewed-by: Edward O'Callaghan Acked-by: Christian König Acked-by: Felix Kuehling Signed-off-by: Andres Rodriguez --- drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-)

[PATCH 02/17] drm/amdgpu: refactor MQD/HQD initialization v3

2017-04-13 Thread Andres Rodriguez
The MQD programming sequence currently exists in 3 different places. Refactor it to absorb all the duplicates. The success path remains mostly identical except for a slightly different order in the non-kiq case. This shouldn't matter if the HQD is disabled. The error handling paths have been upda

[PATCH 07/17] drm/amdgpu: rename rdev to adev

2017-04-13 Thread Andres Rodriguez
Rename straggler instances of r(adeon)dev to a(mdgpu)dev Reviewed-by: Edward O'Callaghan Reviewed-by: Felix Kuehling Acked-by: Christian König Signed-off-by: Andres Rodriguez --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 70 +++--- drivers/gpu/drm/amd/amdgpu/amdgpu_

[PATCH 08/17] drm/radeon: take ownership of pipe initialization

2017-04-13 Thread Andres Rodriguez
Take ownership of pipe initialization away from KFD. Note that hpd_eop_gpu_addr was already large enough to accomodate all pipes. Reviewed-by: Edward O'Callaghan Reviewed-by: Felix Kuehling Acked-by: Christian König Signed-off-by: Andres Rodriguez --- drivers/gpu/drm/radeon/cik.c| 27

[PATCH 09/17] drm/amdgpu: take ownership of per-pipe configuration v2

2017-04-13 Thread Andres Rodriguez
Make amdgpu the owner of all per-pipe state of the HQDs. This change will allow us to split the queues between kfd and amdgpu with a queue granularity instead of pipe granularity. This patch fixes kfd allocating an HDP_EOP region for its 3 pipes which goes unused. v2: support for gfx9 Reviewed-

[PATCH 13/17] drm/amdgpu: remove duplicate magic constants from amdgpu_amdkfd_gfx*.c

2017-04-13 Thread Andres Rodriguez
This information is already available in adev. Reviewed-by: Edward O'Callaghan Reviewed-by: Felix Kuehling Acked-by: Christian König Signed-off-by: Andres Rodriguez --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c | 12 ++-- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c | 12

[PATCH 16/17] drm/amdgpu: avoid KIQ clashing with compute or KFD queues v2

2017-04-13 Thread Andres Rodriguez
Instead of picking an arbitrary queue for KIQ, search for one according to policy. The queue must be unused. Also report the KIQ as an unavailable resource to KFD. In testing I ran into KCQ initialization issues when using pipes 2/3 of MEC2 for the KIQ. Therefore the policy disallows grabbing one

[PATCH 06/17] drm/amdgpu: fix kgd_hqd_load failing to update shadow_wptr

2017-04-13 Thread Andres Rodriguez
The return value from copy_form_user is 0 for the success case. Signed-off-by: Andres Rodriguez --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c b/drivers/gpu/drm/amd/amdgp

[PATCH 17/17] drm/amdgpu: new queue policy, take first 2 queues of each pipe v2

2017-04-13 Thread Andres Rodriguez
Instead of taking the first pipe and giving the rest to kfd, take the first 2 queues of each pipe. Effectively, amdgpu and amdkfd own the same number of queues. But because the queues are spread over multiple pipes the hardware will be able to better handle concurrent compute workloads. amdgpu go

[PATCH 14/17] drm/amdgpu: allocate queues horizontally across pipes

2017-04-13 Thread Andres Rodriguez
Pipes provide better concurrency than queues, therefore we want to make sure that apps use queues from different pipes whenever possible. Optimize for the trivial case where an app will consume rings in order, therefore we don't want adjacent rings to belong to the same pipe. Reviewed-by: Edward

[PATCH 15/17] drm/amdgpu: remove hardcoded queue_mask in PACKET3_SET_RESOURCES

2017-04-13 Thread Andres Rodriguez
The assumption that we are only using the first pipe no longer holds. Instead, calculate the queue_mask from the queue_bitmap. Acked-by: Felix Kuehling Signed-off-by: Andres Rodriguez --- drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 20 ++-- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 23

[PATCH 12/17] drm/amdkfd: allow split HQD on per-queue granularity v4

2017-04-13 Thread Andres Rodriguez
Update the KGD to KFD interface to allow sharing pipes with queue granularity instead of pipe granularity. This allows for more interesting pipe/queue splits. v2: fix overflow check for res.queue_mask v3: fix shift overflow when setting res.queue_mask v4: fix comment in is_pipeline_enabled() Rev

[PATCH 10/17] drm/amdgpu: allow split of queues with kfd at queue granularity v4

2017-04-13 Thread Andres Rodriguez
Previously the queue/pipe split with kfd operated with pipe granularity. This patch allows amdgpu to take ownership of an arbitrary set of queues. It also consolidates the last few magic numbers in the compute initialization process into mec_init. v2: support for gfx9 v3: renamed AMDGPU_MAX_QUEUE

[PATCH 11/17] drm/amdgpu: teach amdgpu how to enable interrupts for any pipe v3

2017-04-13 Thread Andres Rodriguez
The current implementation is hardcoded to enable ME1/PIPE0 interrupts only. This patch allows amdgpu to enable interrupts for any pipe of ME1. v2: added gfx9 support v3: use soc15_grbm_select for gfx9 Acked-by: Felix Kuehling Signed-off-by: Andres Rodriguez --- drivers/gpu/drm/amd/amdgpu/gfx

[PATCH 05/17] drm/amdgpu: unify MQD programming sequence for kfd and amdgpu v2

2017-04-13 Thread Andres Rodriguez
Use the same gfx_*_mqd_commit function for kfd and amdgpu codepaths. This removes the last duplicates of this programming sequence. v2: fix cp_hqd_pq_wptr value Reviewed-by: Edward O'Callaghan Acked-by: Christian König Reviewed-by: Felix Kuehling Signed-off-by: Andres Rodriguez --- drivers/

Re: [PATCH split] Improve pipe split between amdgpu and amdkfd

2017-04-13 Thread Andres Rodriguez
Forgot to mention: * Re-ordered some patches as suggested by Felix * Included "drm: Fix get_property logic fumble" during testing, otherwise the system boots to a black screen. Regards, Andres On 2017-04-13 05:35 PM, Andres Rodriguez wrote: This is a split of patches that are ready to lan

[PATCH 2/6] drm/amdgpu: workaround tonga HW bug in HQD programming sequence

2017-04-13 Thread Andres Rodriguez
Tonga based asics may experience hangs when an HQD's EOP parameters are modified. Workaround this HW issue by avoiding writes to these registers for tonga asics. Based on the following ROCm commit: 2a0fb8 - drm/amdgpu: Synchronize KFD HQD load protocol with CP scheduler From the ROCm git reposit

[PATCH 6/6] drm/amdgpu: use LRU mapping policy for SDMA engines

2017-04-13 Thread Andres Rodriguez
Spreading the load across multiple SDMA engines can increase memory transfer performance. Signed-off-by: Andres Rodriguez Reviewed-by: Nicolai Hähnle --- drivers/gpu/drm/amd/amdgpu/amdgpu_queue_mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/

[PATCH 4/6] drm/amdgpu: implement lru amdgpu_queue_mgr policy for compute v4

2017-04-13 Thread Andres Rodriguez
Use an LRU policy to map usermode rings to HW compute queues. Most compute clients use one queue, and usually the first queue available. This results in poor pipe/queue work distribution when multiple compute apps are running. In most cases pipe 0 queue 0 is the only queue that gets used. In orde

[PATCH 3/6] drm/amdgpu: untie user ring ids from kernel ring ids v4

2017-04-13 Thread Andres Rodriguez
Add amdgpu_queue_mgr, a mechanism that allows disjointing usermode's ring ids from the kernel's ring ids. The queue manager maintains a per-file descriptor map of user ring ids to amdgpu_ring pointers. Once a map is created it is permanent (this is required to maintain FIFO execution guarantees fo

[PATCH 1/6] drm/amdgpu: condense mqd programming sequence

2017-04-13 Thread Andres Rodriguez
The MQD structure matches the reg layout. Take advantage of this to simplify HQD programming. Note that the ACTIVE field still needs to be programmed last. Suggested-by: Felix Kuehling Signed-off-by: Andres Rodriguez --- drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c | 44 +- drivers/gp

[PATCH 5/6] drm/amdgpu: guarantee bijective mapping of ring ids for LRU v3

2017-04-13 Thread Andres Rodriguez
Depending on usage patterns, the current LRU policy may create a non-injective mapping between userspace ring ids and kernel rings. This behaviour is undesired as apps that attempt to fill all HW blocks would be unable to reach some of them. This change forces the LRU policy to create bijective m

[PATCH split 2/3] LRU map compute/SDMA user ring ids to kernel ring ids

2017-04-13 Thread Andres Rodriguez
Second part of the split of the series: Add support for high priority scheduling in amdgpu v8 These patches should be close to being good enough to land. The first two patches are simple fixes I've ported from the ROCm branch. These still need review. I've fixed all of Christian's comments for p

[PATCH 1/4] drm/amdgpu: add parameter to allocate high priority contexts v7

2017-04-13 Thread Andres Rodriguez
Add a new context creation parameter to express a global context priority. Contexts allocated with AMDGPU_CTX_PRIORITY_HIGH will receive higher priority to schedule their work than AMDGPU_CTX_PRIORITY_NORMAL (default) contexts. v2: Instead of using flags, repurpose __pad v3: Swap enum values of _

[PATCH 3/4] drm/amdgpu: convert srbm lock to a spinlock v2

2017-04-13 Thread Andres Rodriguez
Replace adev->srbm_mutex with a spinlock adev->srbm_lock v2: rebased on 4.12 and included gfx9 Signed-off-by: Andres Rodriguez --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c | 4 +-- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v

[PATCH 2/4] drm/amdgpu: add framework for HW specific priority settings v6

2017-04-13 Thread Andres Rodriguez
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() c

[PATCH split 3/3] Add support for high priority scheduling in amdgpu v9

2017-04-13 Thread Andres Rodriguez
Third part of the split of the series: Add support for high priority scheduling in amdgpu v8 This is the part of the series that is in a bit more murky water than the rest. Sending out this patch series mostly for completion. And maybe for discussion purposes as well. There are still 2 issues ope

[PATCH 4/4] drm/amdgpu: implement ring set_priority for gfx_v8 compute v5

2017-04-13 Thread 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_

Re: AMDGPU without display output

2017-04-13 Thread Yu, Qiang
PS. If you want to use X11/OGL on this no display output card, just add an option to the amdgpu kernel module "virtual_display=all" which will fake a display output so that the xserver can start with amdgpu DDX successfully. You can use remote desktop apps like VNC to view the X screen. Regard

[PATCH] drm/amdgpu: fix to print incorrect wptr address

2017-04-13 Thread Huang Rui
Signed-off-by: Huang Rui --- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c index da4559b..4736196 100644 --- a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +++ b

Re: [PATCH] drm/amdgpu: fix to print incorrect wptr address

2017-04-13 Thread Michel Dänzer
On 14/04/17 11:50 AM, Huang Rui wrote: > Signed-off-by: Huang Rui > --- > drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c > b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c > index da4559b..4736196 10

Re: [PATCH] dmr/amdgpu: Fix wrongly unref of BO

2017-04-13 Thread zhoucm1
On 2017年04月14日 05:34, Alex Xie wrote: According to comment of amdgpu_bo_reserve, amdgpu_bo_reserve can return with -ERESTARTSYS. When this function was interrupted by a signal, BO should not be unref. Otherwise the BO might be released while is kmapped and pinned, or BO MIGHT be deref multiple