Re: [PATCH] drm/amdgpu:remove debugfs file in amdgpu_device_finish

2017-11-06 Thread Christian König
Hi Gary, not sure what driver re-initialize feature you are talking about, but the last time I tried to re-initialize the driver it deadlocks in the modeset code because of some DC problem. It's probably a good idea to fix that first, but in general please explain further what are you workin

[PATCH 1/2] drm/amdgpu: use irq-safe lock for kiq->ring_lock

2017-11-06 Thread Pixel Ding
From: pding This lock is used during register accessing in SRIOV guest. The register accessing could happen both in irq enabled and irq disabled cases. Always use irq-safe lock. Signed-off-by: pding --- drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 10 ++ 1 file changed, 6 insertions(+),

RE: [PATCH] drm/amdgpu:remove debugfs file in amdgpu_device_finish

2017-11-06 Thread Sun, Gary
Hi Christian, The patch is for driver re- initialize feature, not for driver exit or rmmod. When the driver initialize failed at some point, the re- initialize feature will do some little clean and then try to initialize driver again, then it will re-register some registered debugfs , so it

[PATCH 2/2] drm/amdgpu: use irq-safe lock for adev->ring_lru_list_lock

2017-11-06 Thread Pixel Ding
From: pding This lock is used during register accessing in SRIOV guest since KIQ uses general ring submission (amdgpu_ring_commit). The register accessing could happen both in irq enabled and irq disabled cases. Always use irq-safe lock. Signed-off-by: pding --- drivers/gpu/drm/amd/amdgpu/amdg

Re: [PATCH 1/2] drm/amdgpu: use multipipe compute policy on non PL11 asics

2017-11-06 Thread Andres Rodriguez
Do you have any work actually going into multiple pipes? My understanding is that opencl will only use one queue at a time (but I'm not really certain about that). What you can also check is if the app works correctly when it executed on pipe0, and if it hangs on pipe 1+. I removed all the locatio

[PATCH] drm/amd/display: fix static checker warning

2017-11-06 Thread S, Shirish
From: Shirish S This patch fixes static checker warning of "warn: cast after binop" introduced by 4d3e00dad80a: "drm/amd/display : add high part address calculation for underlay" Signed-off-by: Shirish S --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 ++-- 1 file changed, 2 insertio

Re: [PATCH 1/2] drm/amdgpu: use multipipe compute policy on non PL11 asics

2017-11-06 Thread Zhou, David(ChunMing)
Then snychronization should have no problem, it maybe relate to multipipe hw setting issue. Regards, David Zhou From: Andres Rodriguez Sent: Tuesday, November 7, 2017 2:00:57 AM To: Zhou, David(ChunMing); amd-gfx list Cc: Deucher, Alexander Subject: Re: [PATCH

[PATCH] drm/amdgpu: bypass FB resizing for SRIOV VF

2017-11-06 Thread Pixel Ding
From: pding It introduces 900ms latency in exclusive mode which causes failure of driver loading. Host can resize the BAR before guest staring, so the resizing is not necessary here. Signed-off-by: pding --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 1 file changed, 4 insertions(+)

[PATCH 1/2] drm/amd/scheduler: fix page protection of cb

2017-11-06 Thread Chunming Zhou
We must remove the fence callback. Change-Id: I5d58a3a43b82fefd6c211c4128b0c9187c191e7f Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/scheduler/gpu_scheduler.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c b/drivers/gpu/drm/amd/s

[PATCH 2/2] drm/amd/scheduler: remove fence callback when context is killed

2017-11-06 Thread Chunming Zhou
Otherwise there could be page protection. Change-Id: I1f6c81002fb2ba21c17cdc14fdde86579b28374e Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/scheduler/gpu_scheduler.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c b/drivers/gpu/drm

Re: [PATCH] drm/amdgpu: resize VRAM BAR for CPU access v5

2017-11-06 Thread Ding, Pixel
It doesn’t work without that write. Meanwhile, this functionality doesn’t change BAR0 and BAR2 when operating on VF, just as you said it’s not necessary for VF. So I think we can skip the whole stuff. Please help to review the patch coming later. — Sincerely Yours, Pixel On 06/11/2017,

[PATCH 2/3] amdgpu/dc: Fix potential null dereference in amdgpu_dm.c

2017-11-06 Thread Ernst Sjöstrand
Signed-off-by: Ernst Sjöstrand --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index e6bfa9f30900..2301589e4cc3 100644 --- a/dr

[PATCH 1/3] amdgpu/dc: fix more indentation warnings

2017-11-06 Thread Ernst Sjöstrand
More "warn: inconsistent indenting" fixes from smatch. Signed-off-by: Ernst Sjöstrand --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 10 +- .../gpu/drm/amd/display/dc/i2caux/dce110/aux_engine_dce110.c | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff

[PATCH 3/3] amdgpu/dc: Fix missing null checks in amdgpu_dm.c

2017-11-06 Thread Ernst Sjöstrand
From smatch: error: we previously assumed X could be null Signed-off-by: Ernst Sjöstrand --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm

More smatch fixes

2017-11-06 Thread Ernst Sjöstrand
I saw the previous smatch fixes and thought I would try to fix a few. Since the other patches were applied to agd5f/amd-staging-drm-next I continued there. ___ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listi

RE: [PATCH 2/2] drm/amdkfd: Use order_base_2 to get log2 of buffes sizes

2017-11-06 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Felix Kuehling > Sent: Monday, November 06, 2017 2:52 PM > To: amd-gfx@lists.freedesktop.org; oded.gab...@gmail.com > Cc: Kuehling, Felix > Subject: [PATCH 2/2] drm/amdkfd: Use order_base_2 to

Re: [PATCH 1/1] drm/amd/powerplay: initialize a variable before using it

2017-11-06 Thread Alex Deucher
On Sat, Nov 4, 2017 at 8:21 AM, Nicolas Iooss wrote: > On Sun, Sep 3, 2017 at 2:00 PM, Nicolas Iooss > wrote: >> >> Function vega10_apply_state_adjust_rules() only initializes >> stable_pstate_sclk_dpm_percentage when >> data->registry_data.stable_pstate_sclk_dpm_percentage is not between 1 >> an

Re: [PATCH] drm/amd/display: remove some unneeded code

2017-11-06 Thread Alex Deucher
On Mon, Nov 6, 2017 at 6:59 AM, Christian König wrote: > Am 06.11.2017 um 12:44 schrieb Dan Carpenter: >> >> We assign "v_init = asic_blank_start;" a few lines earlier so there is >> no need to do it again inside the if statements. Also "v_init" is >> unsigned so it can't be less than zero. >> >>

Re: [PATCH] drm/amd/display: checking for NULL instead of IS_ERR()

2017-11-06 Thread Alex Deucher
On Mon, Nov 6, 2017 at 6:51 AM, Christian König wrote: > Am 06.11.2017 um 12:43 schrieb Dan Carpenter: >> >> backlight_device_register() never returns NULL, it returns error >> pointers on error so the check here is wrong. >> >> Signed-off-by: Dan Carpenter > > > Acked-by: Christian König Appli

Re: [PATCH] drm/amd/display: small cleanup in destruct()

2017-11-06 Thread Alex Deucher
On Mon, Nov 6, 2017 at 3:44 AM, Christian König wrote: > Am 06.11.2017 um 08:07 schrieb Dan Carpenter: >> >> Static analysis tools get annoyed that we don't indent this if >> statement. Actually, the if statement isn't required because kfree() >> can handle NULL pointers just fine. The DCE110STR

[PATCH 1/2] drm/amdkfd: Hardware DWORD size is 4 bytes

2017-11-06 Thread Felix Kuehling
Don't use sizeof(uint32_t) or similar types for hardware or firmware DWORD size. The hardware and firmware don't care about Linux types. Signed-off-by: Felix Kuehling --- drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c | 14 +- drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c| 2 +

[PATCH 2/2] drm/amdkfd: Use order_base_2 to get log2 of buffes sizes

2017-11-06 Thread Felix Kuehling
Replace (ffs(size) - 1) with order_base_2(size) as a more straight forward way to get log2 of buffer sizes. Signed-off-by: Felix Kuehling --- drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c | 6 +++--- drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c | 6 +++--- 2 files changed, 6 insertions(+)

Re: [PATCH] amdgpu/dc: fix non-ansi function decls.

2017-11-06 Thread Christian König
Am 06.11.2017 um 20:17 schrieb Dave Airlie: From: Dave Airlie smatch reported: drivers/gpu/drm/amd/amdgpu/../display/dc/bios/dce80/command_table_helper_dce80.c:351:71: warning: non-ANSI function declaration of function 'dal_cmd_tbl_helper_dce80_get_table' drivers/gpu/drm/amd/amdgpu/../display

[PATCH] amdgpu/dc: fix indentation warning from smatch.

2017-11-06 Thread Dave Airlie
From: Dave Airlie This fixes all the current smatch: warn: inconsistent indenting Signed-off-by: Dave Airlie --- drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c | 2 +- .../gpu/drm/amd/display/dc/bios/command_table2.c | 18 ++--- drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c

[PATCH] amdgpu/dc: handle allocation failures in dc_commit_planes_to_stream.

2017-11-06 Thread Dave Airlie
From: Dave Airlie Reported-by smatch: drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:966 dc_commit_planes_to_stream() error: potential null dereference 'flip_addr'. (kcalloc returns null) drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:968 dc_commit_planes_to_stream() error: potential

[PATCH] amdgpu/dc: fix non-ansi function decls.

2017-11-06 Thread Dave Airlie
From: Dave Airlie smatch reported: drivers/gpu/drm/amd/amdgpu/../display/dc/bios/dce80/command_table_helper_dce80.c:351:71: warning: non-ANSI function declaration of function 'dal_cmd_tbl_helper_dce80_get_table' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/dce110/command_table_helper_dce110.c:

Re: [PATCH umr] Skip ahead if PDE entry is actually a PTE entry. (v2)

2017-11-06 Thread Christian König
Am 06.11.2017 um 19:39 schrieb Tom St Denis: On 06/11/17 01:34 PM, Christian König wrote: Am 06.11.2017 um 19:28 schrieb Tom St Denis: On 06/11/17 05:01 AM, Christian König wrote: Am 04.11.2017 um 18:15 schrieb Tom St Denis: Signed-off-by: Tom St Denis Still not perfect, but good enough fo

Re: [PATCH umr] Skip ahead if PDE entry is actually a PTE entry. (v2)

2017-11-06 Thread Tom St Denis
On 06/11/17 01:34 PM, Christian König wrote: Am 06.11.2017 um 19:28 schrieb Tom St Denis: On 06/11/17 05:01 AM, Christian König wrote: Am 04.11.2017 um 18:15 schrieb Tom St Denis: Signed-off-by: Tom St Denis Still not perfect, but good enough for now. Patch is Tested-by: Christian König .

Re: [PATCH umr] Skip ahead if PDE entry is actually a PTE entry. (v2)

2017-11-06 Thread Christian König
Am 06.11.2017 um 19:28 schrieb Tom St Denis: On 06/11/17 05:01 AM, Christian König wrote: Am 04.11.2017 um 18:15 schrieb Tom St Denis: Signed-off-by: Tom St Denis Still not perfect, but good enough for now. Patch is Tested-by: Christian König . I think you need to rework the VM walking a

Re: [PATCH umr] Skip ahead if PDE entry is actually a PTE entry. (v2)

2017-11-06 Thread Tom St Denis
On 06/11/17 05:01 AM, Christian König wrote: Am 04.11.2017 um 18:15 schrieb Tom St Denis: Signed-off-by: Tom St Denis Still not perfect, but good enough for now. Patch is Tested-by: Christian König . I think you need to rework the VM walking a bit, cause we need to support the T bit as we

Re: radeon_dp_aux_transfer_native: 74 callbacks suppressed

2017-11-06 Thread Christian König
Additionally, we should also just fix this ratelimit macro anyway since it's intended purpose is not to print anything when debugging isn't enabled. What do you think Alex? Well, at least I think that the described behavior of the macro is a bug which should be fixed. But I think that is indepe

Re: [PATCH 1/2] drm/amdgpu: use multipipe compute policy on non PL11 asics

2017-11-06 Thread Andres Rodriguez
Sorry my mail client seems to have blown up. My reply got cut off, here is the full version: On 2017-11-06 01:49 AM, Chunming Zhou wrote: > Hi Andres, > Hi David, > With your this patch, OCLperf hung. Is this on all ASICs or just a specific one? > > Could you explain more? > > If I am correctl

Re: linux-next: Tree for Nov 6 (amdgpu_virt.c)

2017-11-06 Thread Alex Deucher
On Mon, Nov 6, 2017 at 12:20 PM, Randy Dunlap wrote: > On 11/05/2017 11:30 PM, Stephen Rothwell wrote: >> Hi all, >> >> Changes since 20171103: >> > > on i386, when CONFIG_MODULES is not set: > > CC drivers/gpu/drm/amd/amdgpu/amdgpu_virt.o > In file included from ../arch/x86/include/asm/ato

Re: linux-next: Tree for Nov 6 (amdgpu_virt.c)

2017-11-06 Thread Randy Dunlap
On 11/05/2017 11:30 PM, Stephen Rothwell wrote: > Hi all, > > Changes since 20171103: > on i386, when CONFIG_MODULES is not set: CC drivers/gpu/drm/amd/amdgpu/amdgpu_virt.o In file included from ../arch/x86/include/asm/atomic.h:5:0, from ../include/linux/atomic.h:5,

Re: [PATCH 3/3] ASoC: rt5645: Wait for 400msec before concluding on value of RT5645_VENDOR_ID2

2017-11-06 Thread Mark Brown
On Fri, Nov 03, 2017 at 04:35:45PM -0400, Alex Deucher wrote: > Minimum time required between power On of codec and read > of RT5645_VENDOR_ID2 is 400msec. We should wait and attempt > before erroring out. So the description says we have to wait 400ms before attempting a read... > BUG=b:66978383

Re: [PATCH 2/2] dma-buf: try to replace a signaled fence in reservation_object_add_shared_inplace

2017-11-06 Thread Chris Wilson
Quoting Christian König (2017-10-30 14:59:04) > From: Christian König > > The amdgpu issue to also need signaled fences in the reservation objects > should > be fixed by now. > > Optimize the handling by replacing a signaled fence when adding a new > shared one. > > Signed-off-by: Christian Kö

Re: [PATCH 1/2] dma-buf: keep only not signaled fence in reservation_object_add_shared_replace v2

2017-11-06 Thread Chris Wilson
Quoting Christian König (2017-10-30 14:59:03) > From: Christian König > > The amdgpu issue to also need signaled fences in the reservation objects > should be fixed by now. > > Optimize the list by keeping only the not signaled yet fences around. > > v2: temporary put the signaled fences at the

Re: radeon_dp_aux_transfer_native: 74 callbacks suppressed

2017-11-06 Thread Lyude Paul
The main reason I added this was because the radeon driver's hotplugging paths for DP do a ton of unnessecary probing, and because the driver usually also checks all connectors every time there's a hotplug (there isn't much of a good reason for this, it's just an old driver) it's not at all difficu

Re: [PATCH 1/3] ASoC: amd: Report accurate hw_ptr during dma

2017-11-06 Thread Mark Brown
On Fri, Nov 03, 2017 at 04:35:43PM -0400, Alex Deucher wrote: > Signed-off-by: Vijendar Mukunda > Signed-off-by: Akshu Agrawal > Reviewed-on: https://chromium-review.googlesource.com/659699 > Commit-Ready: Akshu Agrawal > Tested-by: Akshu Agrawal > Reviewed-by: Jason Clinton > Reviewed-on: ht

Re: release ex mode after hw_init

2017-11-06 Thread Felix Kuehling
[+Oded] Hi Pixel, Thanks, this looks a lot cleaner. The series is Reviewed-by: Felix Kuehling . Oded, are you OK with this as well? Regards,   Felix On 2017-11-06 03:18 AM, Pixel Ding wrote: > Hi Felix, > > Please review. > > [PATCH 1/2] drm/amdkfd: initialise kfd inside amdgpu_device_init > A

Re: Did my graphics card get damaged?

2017-11-06 Thread Michel Dänzer
On 06/11/17 09:57 AM, Vladimir Klebanov wrote: > On Sun, Nov 5, 2017 at 11:53 PM, Bridgman, John wrote: > >> The only problems I see in the xorg log are the following lines at the end, >> but not sure if they are serious or not. >> >> [ 205.542] (WW) RADEON(0): flip queue failed: Invalid argum

Re: Did my graphics card get damaged?

2017-11-06 Thread Vladimir Klebanov
Hi John, On Sun, Nov 5, 2017 at 11:53 PM, Bridgman, John wrote: > For clarity, are you saying that when you go back to whatever distro you had > installed on the machine previously it is still not booting correctly ? Indeed. Even worse, nothing boots correctly as the machine does not get to/co

radeon_dp_aux_transfer_native: 74 callbacks suppressed

2017-11-06 Thread Jean Delvare
Hi all, commit 92c177b7947d9c889ea7b024871445015ea74221 Author: Lyude Date: Wed Feb 22 16:34:53 2017 -0500 drm/radeon/dp_auxch: Ratelimit aux transfer debug messages does more harm than good in my opinion. Since this commit, I see several occurrences of the following message in my kernel l

[PATCH umr] Tidy up skipping PDE=>PTE mappings

2017-11-06 Thread Tom St Denis
Should fix the indentation now when a PDE entry is actually a PTE. Signed-off-by: Tom St Denis --- src/lib/read_vram.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/lib/read_vram.c b/src/lib/read_vram.c index 51823d71021e..89d55ff1bef6 100

Re: [PATCH] drm/amd/display: remove some unneeded code

2017-11-06 Thread Christian König
Am 06.11.2017 um 12:44 schrieb Dan Carpenter: We assign "v_init = asic_blank_start;" a few lines earlier so there is no need to do it again inside the if statements. Also "v_init" is unsigned so it can't be less than zero. Signed-off-by: Dan Carpenter Acked-by: Christian König diff --git

Re: [PATCH] drm/amd/display: checking for NULL instead of IS_ERR()

2017-11-06 Thread Christian König
Am 06.11.2017 um 12:43 schrieb Dan Carpenter: backlight_device_register() never returns NULL, it returns error pointers on error so the check here is wrong. Signed-off-by: Dan Carpenter Acked-by: Christian König diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu

[PATCH] drm/amd/display: remove some unneeded code

2017-11-06 Thread Dan Carpenter
We assign "v_init = asic_blank_start;" a few lines earlier so there is no need to do it again inside the if statements. Also "v_init" is unsigned so it can't be less than zero. Signed-off-by: Dan Carpenter diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_timing_generator.c b/drivers/gpu

[PATCH] drm/amd/display: checking for NULL instead of IS_ERR()

2017-11-06 Thread Dan Carpenter
backlight_device_register() never returns NULL, it returns error pointers on error so the check here is wrong. Signed-off-by: Dan Carpenter diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 33a15a1d818c..75f9383f5b9b 100644

AMD, please run Smatch on your driver

2017-11-06 Thread Dan Carpenter
Linux-next was offline for the last month and the AMD drm driver went through major changes. Anyway, I'm a bit overwhelmed by the number of warnings and I'm not going to be able to go through them all so I'm just sending them to you unfiltered. Part of the problem is that I'm not running the rele

[PATCH] drm/amdgpu:remove debugfs file in amdgpu_device_finish

2017-11-06 Thread Gary Sun
remove debugfs file in amdgpu_device_finish Signed-off-by: Gary Sun --- drivers/gpu/drm/amd/amdgpu/amdgpu.h|1 + drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 18 ++ 2 files changed, 19 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h

Re: [PATCH umr] Skip ahead if PDE entry is actually a PTE entry. (v2)

2017-11-06 Thread Christian König
Am 04.11.2017 um 18:15 schrieb Tom St Denis: Signed-off-by: Tom St Denis Still not perfect, but good enough for now. Patch is Tested-by: Christian König . I think you need to rework the VM walking a bit, cause we need to support the T bit as well in the future and your code make a few ass

Re: [PATCH] drm/amdgpu: resize VRAM BAR for CPU access v5

2017-11-06 Thread Christian König
What benefits will the larger VRAM bar bring in, Well the obvious one that the CPU can access all of VRAM. There are some games/workloads which rely quite a bit on this and it simplifies MM largely when you don't need to shuffle buffers around for CPU access. or are there new features relying

[bug report] drm/amd/display : add high part address calculation for underlay

2017-11-06 Thread Dan Carpenter
Hello Shirish S, The patch 4d3e00dad80a: "drm/amd/display : add high part address calculation for underlay" from Oct 19, 2017, leads to the following static checker warning: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1838 fill_plane_attributes_from_fb() warn: cas

Re: [PATCH] drm/amd/powerplay: suppress KASAN out of bounds warning in vega10_populate_all_memory_levels

2017-11-06 Thread Christian König
Am 06.11.2017 um 10:33 schrieb Evan Quan: Change-Id: I437e3e08cd48943de277c5d3eefdbaf21fd6a489 Signed-off-by: Evan Quan Tested-and-Acked-by: Christian König --- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/amd/

Re: [PATCH] drm/amdgpu: resize VRAM BAR for CPU access v5

2017-11-06 Thread Ding, Pixel
What benefits will the larger VRAM bar bring in, or are there new features relying on larger VRAM bar under development? SRIOV wants to leverage this sort of optimization too. I think it’s better to try something which can keep this change for SRIOV and don’t introduce too much latency. — Sin

[PATCH] drm/amd/powerplay: suppress KASAN out of bounds warning in vega10_populate_all_memory_levels

2017-11-06 Thread Evan Quan
Change-Id: I437e3e08cd48943de277c5d3eefdbaf21fd6a489 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c ind

Re: [PATCH] drm/amdgpu:remove debugfs file in amdgpu_device_finish

2017-11-06 Thread Christian König
Am 06.11.2017 um 10:20 schrieb Gary Sun: remove debugfs file in amdgpu_device_finish NAK, the debugfs files are removed automatically by drm_debugfs_cleanup(). So that patch is unnecessary. Regards, Christian. Signed-off-by: Gary Sun --- drivers/gpu/drm/amd/amdgpu/amdgpu.h|1

Re: [PATCH] drm/amdgpu: resize VRAM BAR for CPU access v5

2017-11-06 Thread Christian König
Am 06.11.2017 um 08:21 schrieb Ding, Pixel: Hi Christian, The latest driver fails to load on SRIOV VF with xen hypervisor driver. +int amdgpu_device_resize_fb_bar(struct amdgpu_device *adev) +{ + u64 space_needed = roundup_pow_of_two(adev->mc.real_vram_size); + u32 rbar_size = order_bas

Re: [PATCH] drm/amd/display: small cleanup in destruct()

2017-11-06 Thread Christian König
Am 06.11.2017 um 08:07 schrieb Dan Carpenter: Static analysis tools get annoyed that we don't indent this if statement. Actually, the if statement isn't required because kfree() can handle NULL pointers just fine. The DCE110STRENC_FROM_STRENC() macro is a wrapper around container_of() but it's

[bug report] drm/amd/dc: Add dc display driver (v2)

2017-11-06 Thread Dan Carpenter
Hello Harry Wentland, The patch 4562236b3bc0: "drm/amd/dc: Add dc display driver (v2)" from Sep 12, 2017, leads to the following static checker warning: drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:117 get_reg_field_value_ex() warn: mask and shift to zero drivers/gpu/d

release ex mode after hw_init

2017-11-06 Thread Pixel Ding
Hi Felix, Please review. [PATCH 1/2] drm/amdkfd: initialise kfd inside amdgpu_device_init As you suggested, move kfd init/fini inside amdgpu_device_init. Other changes for KFD interfaces are dropped. [PATCH 2/2] drm/amdgpu: release exclusive mode after hw_init __

[PATCH 2/2] drm/amdgpu: release exclusive mode after hw_init

2017-11-06 Thread Pixel Ding
From: pding Signed-off-by: pding --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c| 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c i

[PATCH 1/2] drm/amdkfd: initialise kfd inside amdgpu_device_init

2017-11-06 Thread Pixel Ding
From: pding Also finalize kfd inside amdgpu_device_fini. kfd device_init needs SRIOV exclusive accessing. Try to gather exclusive accessing to reduce time consuming. Signed-off-by: pding --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c| 5 ---