RE: [PATCH v6 5/5] drm/amdgpu: resize VRAM BAR for CPU access v2

2017-06-06 Thread Deucher, Alexander
> -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: Tuesday, June 06, 2017 7:10 PM > To: Christian König > Cc: linux-...@vger.kernel.org; platform-driver-...@vger.kernel.org; > Deucher, Alexander; David Airlie; amd-gfx@lists.freedesktop.org; dri- > de...@lists.fre

Re: Bug reports for beginners.

2017-06-06 Thread Luke Miller
Done! https://bugs.freedesktop.org/show_bug.cgi?id=101325 Also, running ue4editor with R600_DEBUG=check_vm GALLIUM_DDEBUG="pipelined 1" set made a difference -- program crashed but didn't take out the whole system. I take that as a good sign. Luke On 7 June 2017 at 00:09, Alex Deucher wrot

Re: [PATCH] drm/amdgpu:fix world switch hang

2017-06-06 Thread zhoucm1
On 2017年06月06日 20:01, Christian König wrote: Am 06.06.2017 um 11:27 schrieb Monk Liu: for SR-IOV, we must keep the pipeline-sync in the protection of COND_EXEC, otherwise the command consumed by CPG is not consistent when world switch triggerd, e.g.: world switch hit and the IB frame is skipp

Re: amd-gfx Digest, Vol 13, Issue 29

2017-06-06 Thread Michel Dänzer
Hi Alex, > As I work more for open source driver, this digest mode becomes more > annoying. > > I didn't even know that amd-gfx can send individual emails to me. As a > result, I did not know how to ask correct question about my puzzling. I > did ask around once. > > Now I wondered how I enab

Re: [PATCH v6 5/5] drm/amdgpu: resize VRAM BAR for CPU access v2

2017-06-06 Thread Bjorn Helgaas
On Tue, Jun 06, 2017 at 01:51:11PM +0200, Christian König wrote: > Am 02.06.2017 um 22:26 schrieb Bjorn Helgaas: > >On Fri, Jun 02, 2017 at 11:32:21AM +0200, Christian König wrote: > >>Hi Bjorn, > >> > >>sorry for not responding earlier and thanks for picking this thread > >>up again. > >> > >>Am 0

Re: [PATCH] drm/amdgpu/gfx: create a common bitmask function (v2)

2017-06-06 Thread axie
Thanks for the change. "static inline" may improve speed, though this patch is not a critical code path. Perhaps it will be true in future... Reviewed-by: Alex Xie On 2017-06-06 06:19 PM, Alex Deucher wrote: The same function was duplicated in all the gfx IPs. Use a single implementation for

[PATCH] drm/amdgpu/gfx: create a common bitmask function (v2)

2017-06-06 Thread Alex Deucher
The same function was duplicated in all the gfx IPs. Use a single implementation for all. v2: use static inline (Alex Xie) Suggested-by: Andres Rodriguez Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 13 + drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 11 +++

RE: [PATCH 3/3] drm/amdgpu: Add kernel parameter to control use of ECC/EDC.

2017-06-06 Thread Deucher, Alexander
> -Original Message- > From: Panariti, David > Sent: Tuesday, June 06, 2017 5:50 PM > To: Deucher, Alexander; amd-gfx@lists.freedesktop.org > Subject: RE: [PATCH 3/3] drm/amdgpu: Add kernel parameter to control use > of ECC/EDC. > > Rather than inlining this in a number of places, Re verbo

Re: [PATCH] drm/amdgpu/gfx: create a common bitmask function

2017-06-06 Thread axie
For such a simple function, I would implement it inside the header file with "static inline". Thanks, Alex Bin On 2017-06-06 05:42 PM, Alex Deucher wrote: The same function was duplicated in all the gfx IPs. Use a single implementation for all. Suggested-by: Andres Rodriguez Signed-off-by:

RE: [PATCH 3/3] drm/amdgpu: Add kernel parameter to control use of ECC/EDC.

2017-06-06 Thread Panariti, David
Rather than inlining this in a number of places, Re verbosity: I've worked in embedded environments and when dealing with intermittent problems it's nice to have all of the information ASAP rather than waiting for a problem to reoccur, especially if it's very intermittent. I would've preferred mo

[PATCH] drm/amdgpu/gfx: create a common bitmask function

2017-06-06 Thread Alex Deucher
The same function was duplicated in all the gfx IPs. Use a single implementation for all. Suggested-by: Andres Rodriguez Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 13 + drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 2 ++ drivers/gpu/drm/amd/amdgpu/gfx_v6

Re: [PATCH] drm/amdgpu/gfx8: drop per-APU CU limits

2017-06-06 Thread Andres Rodriguez
On 2017-05-31 10:16 AM, Alex Deucher wrote: Always use the max for the family rather than the per sku limits. This makes sure the mask is always the max size to avoid reporting the wrong number of CUs. Cc: sta...@vger.kernel.org Signed-off-by: Alex Deucher Reviewed-by: Andres Rodriguez ---

RE: [PATCH 3/3] drm/amdgpu: Add kernel parameter to control use of ECC/EDC.

2017-06-06 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of David Panariti > Sent: Tuesday, June 06, 2017 4:33 PM > To: amd-gfx@lists.freedesktop.org > Cc: Panariti, David > Subject: [PATCH 3/3] drm/amdgpu: Add kernel parameter to control use of > ECC/

RE: [PATCH 1/3] drm/amdgpu: Moved gfx_v8_0_select_se_sh() in lieu of re-redundant prototype.

2017-06-06 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of David Panariti > Sent: Tuesday, June 06, 2017 4:33 PM > To: amd-gfx@lists.freedesktop.org > Cc: Panariti, David > Subject: [PATCH 1/3] drm/amdgpu: Moved gfx_v8_0_select_se_sh() in lieu > of re

RE: [PATCH 2/3] drm/amdgpu: Complete Carrizo EDC (Error Detection and Correction) workarounds.

2017-06-06 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of David Panariti > Sent: Tuesday, June 06, 2017 4:33 PM > To: amd-gfx@lists.freedesktop.org > Cc: Panariti, David > Subject: [PATCH 2/3] drm/amdgpu: Complete Carrizo EDC (Error Detection > and C

[PATCH 3/3] drm/amdgpu: Add kernel parameter to control use of ECC/EDC.

2017-06-06 Thread David Panariti
Allow various kinds of memory integrity methods (e.g. ECC/EDC) to be enabled or disabled. By default, all features are disabled. EDC is Error Detection and Correction. It can detect ECC errors and do 0 or more of: count SEC (single error corrected) and DED (double error detected, i.e. uncorrecte

[PATCH 1/3] drm/amdgpu: Moved gfx_v8_0_select_se_sh() in lieu of re-redundant prototype.

2017-06-06 Thread David Panariti
Will be needed for the rest of the EDC workarounds patch. Signed-off-by: David Panariti --- drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 46 +-- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c b/drivers/gpu/drm/amd

Fix CZ EDC workarounds and provide a kernel parameter to control use of EDC.

2017-06-06 Thread David Panariti
I've made the workarounds function a bit verbose because EDC enabled CZs are often used in an embedded environment and providing as much information as possible can be very helpful in debugging. ___ amd-gfx mailing list amd-gfx@lists.freedesktop.org ht

[PATCH 2/3] drm/amdgpu: Complete Carrizo EDC (Error Detection and Correction) workarounds.

2017-06-06 Thread David Panariti
The workarounds are unconditionally performed on CZs with EDC enabled. EDC detects uncorrected ECC errors and uses data poisoning to prevent corrupted compute results from being used (read). EDC enabled CZs are often used in embedded environments. Signed-off-by: David Panariti --- drivers/gpu/dr

Re: [PATCH] drm/amdgpu/gfx8: drop per-APU CU limits

2017-06-06 Thread Alex Deucher
On Wed, May 31, 2017 at 10:16 AM, Alex Deucher wrote: > Always use the max for the family rather than the per sku limits. > This makes sure the mask is always the max size to avoid reporting > the wrong number of CUs. > > Cc: sta...@vger.kernel.org > Signed-off-by: Alex Deucher Ping? Alex > --

RE: [PATCH 2/2] drm/amd/powerplay: fix memory leak in cz_hwmgr backend

2017-06-06 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Hawking Zhang > Sent: Tuesday, June 06, 2017 4:36 AM > To: amd-gfx@lists.freedesktop.org > Cc: Zhang, Hawking > Subject: [PATCH 2/2] drm/amd/powerplay: fix memory leak in cz_hwmgr > backend >

RE: [PATCH] drm/amdgpu: correct clock info for SRIOV

2017-06-06 Thread Deucher, Alexander
> -Original Message- > From: Yu, Xiangliang > Sent: Monday, June 05, 2017 10:33 PM > To: Deucher, Alexander; amd-gfx@lists.freedesktop.org > Subject: RE: [PATCH] drm/amdgpu: correct clock info for SRIOV > > > > Currently, get clock info from default clk of pm if dpm is disable. > > > Buf S

Re: [PATCH] drm/amdgpu: fix missed gpu info firmware when cache firmware during S3

2017-06-06 Thread Alex Deucher
On Tue, Jun 6, 2017 at 10:52 AM, Huang Rui wrote: > On Tue, Jun 06, 2017 at 10:45:42PM +0800, Alex Deucher wrote: >> On Tue, Jun 6, 2017 at 10:03 AM, Alex Deucher wrote: >> > On Tue, Jun 6, 2017 at 7:22 AM, Christian König >> > wrote: >> >>> Yes, I agree with you. That's also my orignal opinion.

Re: [PATCH] drm/amdgpu: fix missed gpu info firmware when cache firmware during S3

2017-06-06 Thread Huang Rui
On Tue, Jun 06, 2017 at 10:52:46PM +0800, Huang Rui wrote: > On Tue, Jun 06, 2017 at 10:45:42PM +0800, Alex Deucher wrote: > > On Tue, Jun 6, 2017 at 10:03 AM, Alex Deucher wrote: > > > On Tue, Jun 6, 2017 at 7:22 AM, Christian K?nig > > > wrote: > > >>> Yes, I agree with you. That's also my orig

Re: [PATCH] drm/amdgpu: fix missed gpu info firmware when cache firmware during S3

2017-06-06 Thread Huang Rui
On Tue, Jun 06, 2017 at 10:45:42PM +0800, Alex Deucher wrote: > On Tue, Jun 6, 2017 at 10:03 AM, Alex Deucher wrote: > > On Tue, Jun 6, 2017 at 7:22 AM, Christian König > > wrote: > >>> Yes, I agree with you. That's also my orignal opinion. > >>> But we encountered a random buggy when we were cal

Re: [PATCH] drm/amdgpu: fix missed gpu info firmware when cache firmware during S3

2017-06-06 Thread Alex Deucher
On Tue, Jun 6, 2017 at 10:03 AM, Alex Deucher wrote: > On Tue, Jun 6, 2017 at 7:22 AM, Christian König > wrote: >>> Yes, I agree with you. That's also my orignal opinion. >>> But we encountered a random buggy when we were calling >>> device_cache_fw_images. >> >> That looks like an upstream bug i

Re: Bug reports for beginners.

2017-06-06 Thread Alex Deucher
On Mon, Jun 5, 2017 at 10:05 PM, Michel Dänzer wrote: > On 03/06/17 07:46 AM, Luke Miller wrote: >> >> I have a recurring problem with one 3D program (UE4editor) crashing my >> computer during a particular operation. >> >> I believe the problem is at the DRM layer. > > It's actually more likely in

Re: [PATCH] drm/amdgpu: fix missed gpu info firmware when cache firmware during S3

2017-06-06 Thread Alex Deucher
On Tue, Jun 6, 2017 at 7:22 AM, Christian König wrote: >> Yes, I agree with you. That's also my orignal opinion. >> But we encountered a random buggy when we were calling >> device_cache_fw_images. > > That looks like an upstream bug in device_cache_fw_images. > > We should probably open a bug rep

Re: [Intel-gfx] [PATCH i-g-t] tests/kms_setmode: Dynamic crtc/connector combinations

2017-06-06 Thread Petri Latvala
On Mon, Jun 05, 2017 at 03:59:37PM -0400, Harry Wentland wrote: > On 2017-06-05 03:50 PM, Alex Deucher wrote: > > On Mon, Jun 5, 2017 at 2:43 PM, Harry Wentland > > wrote: > > > Create crtc/connector combinations based on actual adapter > > > information obtained from drmModeRes. > > > > > > Als

Re: amd-gfx Digest, Vol 13, Issue 29

2017-06-06 Thread axie
Hi Michel, Thanks. As I work more for open source driver, this digest mode becomes more annoying. I didn't even know that amd-gfx can send individual emails to me. As a result, I did not know how to ask correct question about my puzzling. I did ask around once. Now I wondered how I enab

Re: [PATCH v6 5/5] drm/amdgpu: resize VRAM BAR for CPU access v2

2017-06-06 Thread Alex Deucher
On Tue, Jun 6, 2017 at 7:51 AM, Christian König wrote: > Am 02.06.2017 um 22:26 schrieb Bjorn Helgaas: >> >> On Fri, Jun 02, 2017 at 11:32:21AM +0200, Christian König wrote: >>> >>> Hi Bjorn, >>> >>> sorry for not responding earlier and thanks for picking this thread >>> up again. >>> >>> Am 01.06

Re: [PATCH libdrm v6 1/1] amdgpu: move asic id table to a separate file

2017-06-06 Thread Emil Velikov
Hi Samuel, With all the other discussion aside here is some code specific input which I'd hope you agree with. On 31 May 2017 at 21:22, Samuel Li wrote: > --- a/Makefile.am > +++ b/Makefile.am > @@ -45,6 +45,9 @@ AM_DISTCHECK_CONFIGURE_FLAGS = \ > > pkgconfigdir = @pkgconfigdir@ > pkgconfig_D

Re: [Intel-gfx] [PATCH i-g-t] tests/kms_setmode: Dynamic crtc/connector combinations

2017-06-06 Thread Harry Wentland
On 2017-06-06 03:43 AM, Petri Latvala wrote: On Mon, Jun 05, 2017 at 03:59:37PM -0400, Harry Wentland wrote: On 2017-06-05 03:50 PM, Alex Deucher wrote: On Mon, Jun 5, 2017 at 2:43 PM, Harry Wentland wrote: Create crtc/connector combinations based on actual adapter information obtained from

Re: [PATCH 1/2] drm/amdgpu/gfx9: allocate queues horizontally across pipes

2017-06-06 Thread Christian König
Fell free to add an Acked-by: Christian König on both. Christian. Am 06.06.2017 um 13:43 schrieb Tom St Denis: First is Reviewed-by: Tom St Denis and second is Acked-by. Cheers, Tom On 05/06/17 11:06 AM, Alex Deucher wrote: Pipes provide better concurrency than queues, therefore we want

Re: [PATCH] drm/amdgpu:fix world switch hang

2017-06-06 Thread Christian König
Am 06.06.2017 um 11:27 schrieb Monk Liu: for SR-IOV, we must keep the pipeline-sync in the protection of COND_EXEC, otherwise the command consumed by CPG is not consistent when world switch triggerd, e.g.: world switch hit and the IB frame is skipped so the fence won't signal, thus CP will jump

Re: [PATCH v6 5/5] drm/amdgpu: resize VRAM BAR for CPU access v2

2017-06-06 Thread Christian König
Am 02.06.2017 um 22:26 schrieb Bjorn Helgaas: On Fri, Jun 02, 2017 at 11:32:21AM +0200, Christian König wrote: Hi Bjorn, sorry for not responding earlier and thanks for picking this thread up again. Am 01.06.2017 um 22:14 schrieb Bjorn Helgaas: [+cc ADMGPU, DRM folks] On Tue, May 09, 2017 at

Re: [PATCH 1/2] drm/amdgpu/gfx9: allocate queues horizontally across pipes

2017-06-06 Thread Tom St Denis
First is Reviewed-by: Tom St Denis and second is Acked-by. Cheers, Tom On 05/06/17 11:06 AM, Alex Deucher wrote: 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 ap

Re: [PATCH] drm/amdgpu: fix missed gpu info firmware when cache firmware during S3

2017-06-06 Thread Christian König
Yes, I agree with you. That's also my orignal opinion. But we encountered a random buggy when we were calling device_cache_fw_images. That looks like an upstream bug in device_cache_fw_images. We should probably open a bug report and ping the maintainer. Most likely we are not correctly using t

[PATCH] drm/amdgpu:fix world switch hang

2017-06-06 Thread Monk Liu
for SR-IOV, we must keep the pipeline-sync in the protection of COND_EXEC, otherwise the command consumed by CPG is not consistent when world switch triggerd, e.g.: world switch hit and the IB frame is skipped so the fence won't signal, thus CP will jump to the next DMAframe's pipeline-sync comman

[PATCH 2/2] drm/amd/powerplay: fix memory leak in cz_hwmgr backend

2017-06-06 Thread Hawking Zhang
vddc_dep_on_dal_pwrl is allocated and initialized in cz_hwmgr_backend_init Thus free the memory in cz_hwmgr_backend_fini Change-Id: Idd6dd4b76894579674bf334339b71df8559637fd Signed-off-by: Hawking Zhang --- drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 6 ++ 1 file changed, 6 insertions(+

[PATCH 1/2] drm/amd/powerplay: fix memory leak in rv_hwmgr backend

2017-06-06 Thread Hawking Zhang
vddc_dep_on_dal_pwrl and vq_budgeting_table are allocated and initialized in rv_hwmgr_backend_init. Thus free the memory in rv_hwmgr_backend_fini Change-Id: I15878ccb6a39848b764844e45f2ac375164906ad Signed-off-by: Hawking Zhang --- drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c | 10 ++

Re: [PATCH] drm/amdgpu: fix missed gpu info firmware when cache firmware during S3

2017-06-06 Thread Huang Rui
On Tue, Jun 06, 2017 at 04:00:29PM +0800, Christian König wrote: > Hi Ray, > > mhm, indeed a nice catch. > > But why do we need to load the gpu info after resume in the first place? > > I mean we already know what GPU we have, loading it again looks > superfluous to me. > Yes, I agree with you

Re: [PATCH] drm/amdgpu: fix missed gpu info firmware when cache firmware during S3

2017-06-06 Thread Christian König
Hi Ray, mhm, indeed a nice catch. But why do we need to load the gpu info after resume in the first place? I mean we already know what GPU we have, loading it again looks superfluous to me. Regards, Christian. Am 06.06.2017 um 08:24 schrieb Huang Rui: gpu_info firmware is released after da