[PATCH] drm/amdgpu: Reserve shared memory on VRAM for SR-IOV

2017-09-29 Thread Horace Chen
SR-IOV need to reserve a piece of shared VRAM at the exact place to exchange data betweem PF and VF. The start address and size of the shared mem are passed to guest through VBIOS structure VRAM_UsageByFirmware. VRAM_UsageByFirmware is a general feature in VBIOS, it indicates that VBIOS need to

Recall: [PATCH] drm/amdgpu: correct reference clock value on vega10

2017-09-29 Thread Zhu, Rex
Zhu, Rex would like to recall the message, "[PATCH] drm/amdgpu: correct reference clock value on vega10". ___ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx

RE: [PATCH] drm/amdgpu: correct reference clock value on vega10

2017-09-29 Thread Zhu, Rex
Reviewed-by: Rex Zhu Best Regards Rex -Original Message- From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf Of ken.w...@amd.com Sent: Friday, September 29, 2017 4:35 PM To: amd-gfx@lists.freedesktop.org Cc: Wang, Ken Subject: [PATCH] drm/amdgpu:

RE: [amd-staging-drm-next] regression - no fan info (sensors) on RX580

2017-09-29 Thread Zhu, Rex
Yes, caused by the commit e37a7b4088da ("drm/amd/powerplay: tidy up ret checks in amd_powerplay.c") Replace error when split patches. Have sent the fix patch. Please review. Best Regards Rex -Original Message- From: Alex Deucher [mailto:alexdeuc...@gmail.com] Sent: Friday, September

[PATCH 2/2] drm/amd/powerplay: fix ret checks in amd_powerplay.c

2017-09-29 Thread Rex Zhu
regresstion issue caused by commit e37a7b4088da ("drm/amd/powerplay: tidy up ret checks in amd_powerplay.c") Change-Id: I46be14d8230ad7bc9039782a56a94bb060a21423 Signed-off-by: Rex Zhu --- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 74 +-- 1 file

[PATCH 1/2] drm/amd/powerplay: fix a logic error in pp_hw_init

2017-09-29 Thread Rex Zhu
Change-Id: I8607e51a0e4153b36268e2bcf4fe594c2bfbfe23 Signed-off-by: Rex Zhu --- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c

RE: [PATCH] drm/amd/powerplay: fix a warning in pp_hw_init

2017-09-29 Thread Zhu, Rex
Hi Alex, Thanks for pointing out the logic error in pp_hw_init. Please review the attached patch. Best Regards Rex -Original Message- From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf Of Alex Deucher Sent: Saturday, September 30, 2017 12:38 AM To:

Re: [PATCH libdrm 2/4] drm: add drmSyncobjWait wrapper

2017-09-29 Thread Chunming Zhou
On 2017年09月29日 20:37, Marek Olšák wrote: On Fri, Sep 29, 2017 at 4:12 AM, Chunming Zhou wrote: On 2017年09月29日 06:10, Marek Olšák wrote: From: Marek Olšák --- include/drm/drm.h | 24 xf86drm.c | 22

Re: [PATCH 1/3] drm/syncobj: extract two helpers from drm_syncobj_create

2017-09-29 Thread Chunming Zhou
My mean is like the attached, I revert part of yours. Regards, David zhou On 2017年09月29日 22:15, Marek Olšák wrote: On Fri, Sep 29, 2017 at 4:13 PM, Marek Olšák wrote: On Fri, Sep 29, 2017 at 4:44 AM, Chunming Zhou wrote: On 2017年09月13日 04:42, Marek

[PATCH 4/4] drm/amd/powerplay: get raven sclk and mclk levels

2017-09-29 Thread Evan Quan
Change-Id: I40fa698cd9a25df43aa4bf476c4aa0a8b043edf9 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c | 48 +- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c

Re: [PATCH 1/4] drm/amd/powerplay: added new raven ppsmc messages

2017-09-29 Thread Zhang, Jerry (Junwei)
On 09/30/2017 09:10 AM, Evan Quan wrote: Change-Id: I598f8ab583fc9c7045a4852d6972df90a82f7472 Signed-off-by: Evan Quan the series is Reviewed-by: Junwei Zhang --- drivers/gpu/drm/amd/powerplay/inc/rv_ppsmc.h | 7 ++- 1 file changed, 6

RE: [PATCH 4/4] drm/amd/powerplay: get raven sclk and mclk levels

2017-09-29 Thread Deucher, Alexander
> -Original Message- > From: Evan Quan [mailto:evan.q...@amd.com] > Sent: Friday, September 29, 2017 9:10 PM > To: amd-gfx@lists.freedesktop.org > Cc: Deucher, Alexander; Zhang, Jerry; Quan, Evan > Subject: [PATCH 4/4] drm/amd/powerplay: get raven sclk and mclk levels > Add a better

RE: [PATCH 3/4] drm/amd/powerplay: get raven current sclk and mclk

2017-09-29 Thread Deucher, Alexander
> -Original Message- > From: Evan Quan [mailto:evan.q...@amd.com] > Sent: Friday, September 29, 2017 9:10 PM > To: amd-gfx@lists.freedesktop.org > Cc: Deucher, Alexander; Zhang, Jerry; Quan, Evan > Subject: [PATCH 3/4] drm/amd/powerplay: get raven current sclk and mclk > > Change-Id:

RE: [PATCH 1/4] drm/amd/powerplay: added new raven ppsmc messages

2017-09-29 Thread Deucher, Alexander
> -Original Message- > From: Evan Quan [mailto:evan.q...@amd.com] > Sent: Friday, September 29, 2017 9:10 PM > To: amd-gfx@lists.freedesktop.org > Cc: Deucher, Alexander; Zhang, Jerry; Quan, Evan > Subject: [PATCH 1/4] drm/amd/powerplay: added new raven ppsmc > messages > > Change-Id:

RE: [PATCH 2/4] drm/amd/powerplay: get raven max/min gfx clocks

2017-09-29 Thread Deucher, Alexander
> -Original Message- > From: Evan Quan [mailto:evan.q...@amd.com] > Sent: Friday, September 29, 2017 9:10 PM > To: amd-gfx@lists.freedesktop.org > Cc: Deucher, Alexander; Zhang, Jerry; Quan, Evan > Subject: [PATCH 2/4] drm/amd/powerplay: get raven max/min gfx clocks > > Change-Id:

[PATCH 2/4] drm/amd/powerplay: get raven max/min gfx clocks

2017-09-29 Thread Evan Quan
Change-Id: I56e713e16b9a794857e7ecbb7ca47e0ddd727862 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c | 20 drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.h | 2 ++ 2 files changed, 22 insertions(+) diff --git

Re: [PATCH] drm/amd/powerplay: fix typo on avfs disable

2017-09-29 Thread Alex Deucher
On Fri, Sep 29, 2017 at 9:15 PM, Evan Quan wrote: > Change-Id: I172c1e05ce026b5d600f5b3607778ab48ee2c812 > Signed-off-by: Evan Quan Acked-by: Alex Deucher > --- > drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 2 +- > 1

[PATCH] drm/amd/powerplay: fix typo on avfs disable

2017-09-29 Thread Evan Quan
Change-Id: I172c1e05ce026b5d600f5b3607778ab48ee2c812 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c

[PATCH 1/4] drm/amd/powerplay: added new raven ppsmc messages

2017-09-29 Thread Evan Quan
Change-Id: I598f8ab583fc9c7045a4852d6972df90a82f7472 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/inc/rv_ppsmc.h | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/powerplay/inc/rv_ppsmc.h

[PATCH 3/4] drm/amd/powerplay: get raven current sclk and mclk

2017-09-29 Thread Evan Quan
Change-Id: I17120a53bc3cebd8cc7eb9f3d83124905632a409 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c | 28 -- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c

[PATCH] amdgpu: Add deadlock detection test suit.

2017-09-29 Thread Andrey Grodzovsky
From: Andrey Grodzovsky Adding initial tests for locks detection when SW scheduler FIFO is full. The test works by submitting a batch of identical commands which make the CP stall waiting for condition to become true. The condition is later satisfied form a helper

Re: [PATCH][drm-next] drm/radeon: make functions alloc_pasid and free_pasid static

2017-09-29 Thread Alex Deucher
On Thu, Sep 28, 2017 at 9:46 AM, Colin King wrote: > From: Colin Ian King > > The functions alloc_pasid and free_pasid are local to the > source and do not need to be in global scope, so make them static. > > Cleans up sparse warnings: >

Re: [PATCH] drm/amdgpu: Fixed a potential circular lock

2017-09-29 Thread Felix Kuehling
Thanks Oak. The change is Reviewed-by: Felix Kuehling On 2017-09-29 10:28 AM, ozeng wrote: > The dead circular lock senario captured is as followed. > The idea of the fix is moving read_user_wptr outside of > acquire_queue...release_queue critical section > > [

RE: Regressions in amd-staging-4.12 and amd-staging-drm-next

2017-09-29 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Martin Babutzka > Sent: Friday, September 29, 2017 2:00 PM > To: amd-gfx@lists.freedesktop.org > Subject: Regressions in amd-staging-4.12 and amd-staging-drm-next > > Hello, > > At first

RE: Regressions in amd-staging-4.12 and amd-staging-drm-next

2017-09-29 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Martin Babutzka > Sent: Friday, September 29, 2017 2:00 PM > To: amd-gfx@lists.freedesktop.org > Subject: Regressions in amd-staging-4.12 and amd-staging-drm-next > > Hello, > > At first

Regressions in amd-staging-4.12 and amd-staging-drm-next

2017-09-29 Thread Martin Babutzka
Hello, At first congrats for submitting the pull request. I hope the dc code is accepted and included in the 4.15 kernel. Me and some other users of my kernel builds (https://github.com/M-Bab/l inux-kernel-amdgpu-binaries) found further regressions in builds based on amd-staging-4.12 and

[PATCH] drm/amd/powerplay: fix a warning in pp_hw_init

2017-09-29 Thread Alex Deucher
Make sure hwmgr is valid. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c

Re: [pull] radeon, amdgpu, ttm drm-next-4.15

2017-09-29 Thread Michel Dänzer
On 26/09/17 10:31 PM, Alex Deucher wrote: > Hi Dave, > > First feature pull for 4.15. Highlights: > - Per VM BO support > - Lots of powerplay cleanups > - Powerplay support for CI > - pasid mgr for kfd > - interrupt infrastructure for recoverable page faults > - SR-IOV fixes > - initial GPU

[PATCH] drm/radeon/dp: make radeon_dp_get_dp_link_config static

2017-09-29 Thread Alex Deucher
It's not used outside this file any longer. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_dp.c | 8 drivers/gpu/drm/radeon/radeon_mode.h | 4 2 files changed, 4 insertions(+), 8 deletions(-) diff --git

[PATCH] drm/amdgpu: Fixed a potential circular lock

2017-09-29 Thread ozeng
The dead circular lock senario captured is as followed. The idea of the fix is moving read_user_wptr outside of acquire_queue...release_queue critical section [ 63.477482] WARNING: possible circular locking dependency detected [ 63.484091] 4.12.0-kfd-ozeng #3 Not tainted [ 63.488531]

Re: [PATCH 04/10] amdgpu/dc: allow inlining constant int to fixed a lot better.

2017-09-29 Thread Harry Wentland
On 2017-09-29 03:13 AM, Dave Airlie wrote: > From: Dave Airlie > > This uses two things that might be Linux specific, > __builtin_constant_p (might be gcc) > and > BUILD_BUG_ON. (maybe other dm's can have something similiar). > We can always use ifdef in our internal tree

Re: [PATCH 10/10] amdgpu/dc: inline dml_round_to_multiple

2017-09-29 Thread Harry Wentland
On 2017-09-29 03:13 AM, Dave Airlie wrote: > From: Dave Airlie > > turns out to be a win to inline this. > > Signed-off-by: Dave Airlie Series is Reviewed-by: Harry Wentland Harry > --- >

Re: [PATCH 2/2] amdgpu/dc: inline a bunch of the fixed 31_32 helpers.

2017-09-29 Thread Harry Wentland
On 2017-09-29 01:45 AM, Dave Airlie wrote: > From: Dave Airlie > > This decreases code size by a few hundred bytes. > > Signed-off-by: Dave Airlie Series is Reviewed-by: Harry Wentland Harry > --- >

Re: [PATCH] amdgpu/nbio: use constant nbio_hdp_flush_reg structs.

2017-09-29 Thread Alex Deucher
On Thu, Sep 28, 2017 at 8:47 PM, Dave Airlie wrote: > From: Dave Airlie > > This removes the init path as well, since the init path > just did some constant init of some structs. > > Signed-off-by: Dave Airlie Reviewed-by: Alex Deucher

Re: [PATCH 2/2] amdgpu/pp: constify soft_dummy_pp_table.

2017-09-29 Thread Alex Deucher
On Thu, Sep 28, 2017 at 8:39 PM, Dave Airlie wrote: > From: Dave Airlie > > Signed-off-by: Dave Airlie Reviewed-by: Alex Deucher > --- > drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c | 2 +- > 1

Re: [PATCH] amdgpu/dc: remove pointless returns in the i2caux constructor paths. (v2)

2017-09-29 Thread Harry Wentland
On 2017-09-29 01:44 AM, Dave Airlie wrote: > From: Dave Airlie > > There was lots of return true, and error checking that was never used > in these paths. > > Just remove it all. > > v2: I missed one return true. > > Signed-off-by: Dave Airlie Thanks

Re: [PATCH 9/9] amdgpu/dc: fix construct return values on irq service.

2017-09-29 Thread Harry Wentland
On 2017-09-29 12:34 AM, Dave Airlie wrote: > From: Dave Airlie > > This just removes more unused return/errors paths. > > Signed-off-by: Dave Airlie Series is Reviewed-by: Harry Wentland Harry > --- >

Re: [PATCH 1/3] drm/syncobj: extract two helpers from drm_syncobj_create

2017-09-29 Thread Marek Olšák
On Fri, Sep 29, 2017 at 4:13 PM, Marek Olšák wrote: > On Fri, Sep 29, 2017 at 4:44 AM, Chunming Zhou wrote: >> >> >> On 2017年09月13日 04:42, Marek Olšák wrote: >>> >>> From: Marek Olšák >>> >>> For amdgpu. >>> >>> drm_syncobj_create is

Re: [PATCH 1/3] drm/syncobj: extract two helpers from drm_syncobj_create

2017-09-29 Thread Marek Olšák
On Fri, Sep 29, 2017 at 4:44 AM, Chunming Zhou wrote: > > > On 2017年09月13日 04:42, Marek Olšák wrote: >> >> From: Marek Olšák >> >> For amdgpu. >> >> drm_syncobj_create is renamed to drm_syncobj_create_as_handle, and new >> helpers drm_syncobj_create and

Re: [amd-staging-drm-next] regression - no fan info (sensors) on RX580

2017-09-29 Thread Alex Deucher
Rex, probably related to the recent cleanups in powerplay. On Fri, Sep 29, 2017 at 10:09 AM, Dieter Nützel wrote: > Hello all, > > since latest update > > 1d7da702e70d3c27408a3bb312c71d6be9f7bebe > drm/amd/powerplay: fix spelling mistake: "dividable" -> "divisible" > > I

[amd-staging-drm-next] regression - no fan info (sensors) on RX580

2017-09-29 Thread Dieter Nützel
Hello all, since latest update 1d7da702e70d3c27408a3bb312c71d6be9f7bebe drm/amd/powerplay: fix spelling mistake: "dividable" -> "divisible" I didn't get fan info with my RX580 (Polaris21) any longer. Worked with this commit: 786df0b89fe5a0b405d4de0a1ce03003c0743ec3 drm/amd/display: fix pflip

[PATCH] drm/radeon: move ci_send_msg_to_smc to where it's used

2017-09-29 Thread Alex Deucher
It's used in ci_dpm.c so move it there and make it static. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/ci_dpm.c | 22 ++ drivers/gpu/drm/radeon/ci_dpm.h | 1 - drivers/gpu/drm/radeon/ci_smc.c | 21 - 3 files changed,

Re: [PATCH] drm/amdgpu: Reserve shared memory on VRAM for SR-IOV

2017-09-29 Thread Christian König
Am 29.09.2017 um 09:21 schrieb Horace Chen: SR-IOV need to reserve a piece of shared VRAM at the exact place to exchange data betweem PF and VF. The start address and size of the shared mem are passed to guest through VBIOS structure VRAM_UsageByFirmware. VRAM_UsageByFirmware is a general

Re: [PATCH] [rfc] amdgfx/gfx: don't use static objects for ce/de meta. (v2)

2017-09-29 Thread Christian König
Am 29.09.2017 um 02:16 schrieb Dave Airlie: From: Dave Airlie This isn't safe if we have multiple GPUs plugged in, since there is only one copy of this struct in the bss, just allocate on stack, it's 40/108 bytes which should be safe. Signed-off-by: Dave Airlie

Re: [pull] amdgpu dc drm-next-4.15-dc

2017-09-29 Thread Chris Wilson
Quoting Alex Deucher (2017-09-27 02:36:07) > Hi Dave, > > Initial pull request for DC support. We've completed a substantial amount of > the cleanup and restructuring in our TODO. There are a few additional > cleanups that we are continuing to work on, but I don't think there are any >

RE: [PATCH 2/2] drm/amdgpu: add header kgd_pp_interface.h

2017-09-29 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Rex Zhu > Sent: Friday, September 29, 2017 6:02 AM > To: amd-gfx@lists.freedesktop.org > Cc: Zhu, Rex > Subject: [PATCH 2/2] drm/amdgpu: add header kgd_pp_interface.h > > move powerplay and

RE: [PATCH] drm/amdgpu: Reserve shared memory on VRAM for SR-IOV

2017-09-29 Thread Deucher, Alexander
> -Original Message- > From: Horace Chen [mailto:horace.c...@amd.com] > Sent: Friday, September 29, 2017 3:21 AM > To: amd-gfx@lists.freedesktop.org > Cc: Deucher, Alexander; Chen, Horace > Subject: [PATCH] drm/amdgpu: Reserve shared memory on VRAM for SR- > IOV > > SR-IOV need to reserve

Re: [PATCH libdrm 2/4] drm: add drmSyncobjWait wrapper

2017-09-29 Thread Marek Olšák
On Fri, Sep 29, 2017 at 4:12 AM, Chunming Zhou wrote: > > > On 2017年09月29日 06:10, Marek Olšák wrote: >> >> From: Marek Olšák >> >> --- >> include/drm/drm.h | 24 >> xf86drm.c | 22 ++ >> xf86drm.h

Re: [PATCH 3/3] drm/amdgpu: add FENCE_TO_HANDLE ioctl that returns syncobj or sync_file

2017-09-29 Thread Marek Olšák
On Fri, Sep 29, 2017 at 1:42 AM, Dave Airlie wrote: > On 29 September 2017 at 06:41, Marek Olšák wrote: >> Can I get Rb for this series? >> > > For the series, > > Reviewed-by: Dave Airlie > > Alex, please merge the two drm core precursor

Re: [PATCH] drm/amdgpu: correct reference clock value on vega10

2017-09-29 Thread Alex Deucher
On Fri, Sep 29, 2017 at 3:42 AM, wrote: > From: Ken Wang > > Change-Id: I377029075af1e2e002f7cfd793ddd58d8610e474 > Signed-off-by: Ken Wang > --- > drivers/gpu/drm/amd/amdgpu/soc15.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH] drm/amdgpu: correct reference clock value on vega10

2017-09-29 Thread Ken.Wang
From: Ken Wang Change-Id: I377029075af1e2e002f7cfd793ddd58d8610e474 Signed-off-by: Ken Wang --- drivers/gpu/drm/amd/amdgpu/soc15.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c

[PATCH 2/2] drm/amdgpu: add header kgd_pp_interface.h

2017-09-29 Thread Rex Zhu
move powerplay and amdgpu shared structures and definitions to kgd_pp_interface.h Change-Id: I4272b7974edbff3395ba8a6efebb0decd0cdfa12 Signed-off-by: Rex Zhu --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 5 +- drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c| 1

[PATCH 1/2] drm/amdgpu: move struct amd_powerplay to amdgpu.h

2017-09-29 Thread Rex Zhu
Change-Id: Iea3b5ab620b536d1ab084ffc0859f44ffe7a Signed-off-by: Rex Zhu --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 7 +++ drivers/gpu/drm/amd/powerplay/inc/amd_powerplay.h | 7 --- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git

Re: [PATCH 2/2] drm/amdgpu: add option for force enable multipipe policy for compute

2017-09-29 Thread Michel Dänzer
On 26/09/17 06:22 PM, Andres Rodriguez wrote: > Useful for testing the effects of multipipe compute without recompiling. > > Signed-off-by: Andres Rodriguez I'm skeptical that it's a good idea to add a module parameter for this. See Daniel's rationale in

Fw: [PATCH] drm/amdgpu: correct reference clock value on vega10

2017-09-29 Thread Wang, Ken
Hi, I have to forwards the review request because git send email seems not work correctly on my machine. From: ken.w...@amd.com Sent: Friday, September 29, 2017 16:38 To: amd-gfx@lists.freedesktop.org Cc: Wang, Ken Subject: [PATCH]

[PATCH] drm/amdgpu: correct reference clock value on vega10

2017-09-29 Thread Ken.Wang
From: Ken Wang Change-Id: I377029075af1e2e002f7cfd793ddd58d8610e474 Signed-off-by: Ken Wang --- drivers/gpu/drm/amd/amdgpu/soc15.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c

[PATCH] drm/amdgpu: correct reference clock value on vega10

2017-09-29 Thread Ken.Wang
From: Ken Wang Change-Id: I377029075af1e2e002f7cfd793ddd58d8610e474 Signed-off-by: Ken Wang --- drivers/gpu/drm/amd/amdgpu/soc15.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c

[PATCH] drm/amdgpu: correct reference clock value on vega10

2017-09-29 Thread ken.wang
From: Ken Wang Change-Id: I377029075af1e2e002f7cfd793ddd58d8610e474 Signed-off-by: Ken Wang --- drivers/gpu/drm/amd/amdgpu/soc15.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c

[PATCH] drm/amdgpu: Reserve shared memory on VRAM for SR-IOV

2017-09-29 Thread Horace Chen
SR-IOV need to reserve a piece of shared VRAM at the exact place to exchange data betweem PF and VF. The start address and size of the shared mem are passed to guest through VBIOS structure VRAM_UsageByFirmware. VRAM_UsageByFirmware is a general feature in VBIOS, it indicates that VBIOS need to

RE: [PATCH 1/2] drm/amdgpu: add functions to create bo at the specified position

2017-09-29 Thread Chen, Horace
OK. I have tried, it worked without any failure. Thanks Christian. Regards, Horace. -Original Message- From: Christian König [mailto:ckoenig.leichtzumer...@gmail.com] Sent: Thursday, September 28, 2017 10:01 PM To: Chen, Horace ; amd-gfx@lists.freedesktop.org Cc:

[PATCH 07/10] amdgpu/dc: inline all the signal_types code.

2017-09-29 Thread Dave Airlie
From: Dave Airlie This is worth 300 bytes, and one less source file. Signed-off-by: Dave Airlie --- drivers/gpu/drm/amd/display/dc/basics/Makefile | 2 +- .../gpu/drm/amd/display/dc/basics/signal_types.c | 80 --

[PATCH 04/10] amdgpu/dc: allow inlining constant int to fixed a lot better.

2017-09-29 Thread Dave Airlie
From: Dave Airlie This uses two things that might be Linux specific, __builtin_constant_p (might be gcc) and BUILD_BUG_ON. (maybe other dm's can have something similiar). This saves 4k in the bw calcs code. Signed-off-by: Dave Airlie ---

[PATCH 09/10] amdgpu/dc: rename bios get_image symbol to something more searchable.

2017-09-29 Thread Dave Airlie
From: Dave Airlie This just makes it easier to find. Signed-off-by: Dave Airlie --- drivers/gpu/drm/amd/display/dc/bios/bios_parser.c| 6 +++--- drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c | 2 +-

[PATCH 10/10] amdgpu/dc: inline dml_round_to_multiple

2017-09-29 Thread Dave Airlie
From: Dave Airlie turns out to be a win to inline this. Signed-off-by: Dave Airlie --- drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.c | 19 --- drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.h | 2 --

[PATCH 03/10] amdgpu/dc: inline some of the bw_fixed code.

2017-09-29 Thread Dave Airlie
From: Dave Airlie This results in a ~4.5k code size reduction. Signed-off-by: Dave Airlie --- drivers/gpu/drm/amd/display/dc/calcs/bw_fixed.c | 93 drivers/gpu/drm/amd/display/dc/inc/bw_fixed.h | 111 2

[PATCH 06/10] amdgpu/dc: inline fixed31_32 div_int

2017-09-29 Thread Dave Airlie
From: Dave Airlie Signed-off-by: Dave Airlie --- drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c | 9 - drivers/gpu/drm/amd/display/include/fixed31_32.h | 9 ++--- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git

[PATCH 02/10] amdgpu/dc: move some one line dp functions to inlines.

2017-09-29 Thread Dave Airlie
From: Dave Airlie Signed-off-by: Dave Airlie --- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c

[PATCH 01/10] amdgpu/dc: hide some unused aux/i2c payload apis.

2017-09-29 Thread Dave Airlie
From: Dave Airlie I've no idea if these are used on other platforms, but they aren't used outside this file here, so make them static. Drops 300 bytes. Signed-off-by: Dave Airlie --- drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c | 16

[PATCH 05/10] amdgpu/dc: use the builtin constant p trick on the 31/32 fixed point.

2017-09-29 Thread Dave Airlie
From: Dave Airlie This only gets us 100 bytes, but may as well be consistent. Signed-off-by: Dave Airlie --- drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c | 22 ++ drivers/gpu/drm/amd/display/include/fixed31_32.h | 15

[PATCH 08/10] amdgpu/dc: set some of the link dp code to static.

2017-09-29 Thread Dave Airlie
From: Dave Airlie These aren't currently used outside this file. Signed-off-by: Dave Airlie --- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 18 +- drivers/gpu/drm/amd/display/dc/inc/dc_link_dp.h | 8 2 files changed, 13