[PATCH 2/2] drm/radeon: init atpx at switcheroo register time

2016-07-27 Thread Alex Deucher
If we do it at enable time, it's too late for the feature checks. bug: https://bugzilla.kernel.org/show_bug.cgi?id=115321 Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> Cc: Peter Wu <pe...@lekensteyn.nl> --- drivers/gpu/drm/radeon/radeon_atpx_handler.c | 3 ++- 1 fil

[PATCH] drm/amdgpu/powerplay: enable powerplay by default on TOPAZ

2016-07-28 Thread Alex Deucher
Now that the implementation is complete. Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c b/drivers/gpu/drm/amd/

Re: [PATCH v2 2/2] drm/amdgpu: expose AMDGPU_GEM_CREATE_VRAM_CLEARED to user space

2016-08-01 Thread Alex Deucher
On Mon, Aug 1, 2016 at 1:27 AM, Flora Cui <flora@amd.com> wrote: > I'll push if no objection Reviewed-by: Alex Deucher <alexander.deuc...@amd.com> > On Fri, Jul 29, 2016 at 11:23:39AM +0800, Flora Cui wrote: >> ping... >> >> On Mon, Jul 25, 2016

Re: status of MST ?

2016-08-01 Thread Alex Deucher
On Fri, Jul 29, 2016 at 8:51 AM, Kenneth Johansson wrote: > I have a 30" Dell MST monitor and It only uses 30HZ refresh rate when I use > my R9 card. both the open source driver and amdgpu-pro driver. > > Is there some way to make it work properly ? > It's hard to say what the

Re: [PATCH] drm/amdgpu: Fix memory trashing if UVD ring test fails

2016-08-10 Thread Alex Deucher
On Wed, Aug 3, 2016 at 2:39 PM, Jay Cornwall wrote: > fence_put was called on an uninitialized variable. > > Signed-off-by: Jay Cornwall Can you commit this internally or do you need one of us to? Alex > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | 3

Re: [PATCH 2/2] drm/amdgpu: use the kernel zone memory size as the max remote memory in amdgpu

2016-08-02 Thread Alex Deucher
, > amdgpu_ttm_get_gtt_mem_size(adev)); Shouldn't this be: adev->mc.gtt_size = min(adev->mc.mc_mask - adev->mc.mc_vram_size, amdgpu_ttm_get_gtt_mem_size(adev)); Looking closer at the code, amdgpu_gtt_location() will automatically clamp the gtt size to the available address space t

Re: [PATCH 5/5] drm/amdgpu: update golden setting of stoney

2016-08-01 Thread Alex Deucher
On Mon, Aug 1, 2016 at 11:41 PM, Huang Rui <ray.hu...@amd.com> wrote: > Signed-off-by: Huang Rui <ray.hu...@amd.com> For the series: Reviewed-by: Alex Deucher <alexander.deuc...@amd.com> > --- > drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 8 > 1 file changed,

Re: [PATCH 13/14] drm/amdgpu: Define one variable for virtual display.

2016-08-05 Thread Alex Deucher
and crtc if have DCE engine. > > Signed-off-by: Emily Deng <emily.d...@amd.com> Reviewed-by: Alex Deucher <alexander.deuc...@amd.com> > --- > drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 + > drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 > 2 files changed, 5 insertio

Re: [PATCH 10/13] drm/amdgpu: Add DRM_MODE_CONNECTOR_VIRTUAL connector in amdgpu_connector_add.

2016-08-04 Thread Alex Deucher
On Wed, Aug 3, 2016 at 11:42 PM, Emily Deng wrote: > For virtual display feature, add one connector type in amdgpu_connector_add. > > Signed-off-by: Emily Deng > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c | 95 > ++ > 1

Re: [PATCH 07/13] drm/amdgpu: Disable VGA render and crtc when init GMC.

2016-08-04 Thread Alex Deucher
On Wed, Aug 3, 2016 at 11:42 PM, Emily Deng wrote: > For virtual display feature, when the GPU has DCE engine, need to disable > the VGA render and CRTC, or it will hang when initialize GMC. > > Signed-off-by: Emily Deng > --- >

[PATCH 2/3] drm/amdgpu/virtual_dce: add case for topaz for disable_dce

2016-08-08 Thread Alex Deucher
This asic has no DCE block. Also clarify the error message for unmatched chips. Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> --- drivers/gpu/drm/amd/amdgpu/dce_virtual.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/dce_vir

Re: Wrong shift in dce_v8_0_afmt_update_ACR() under dce_v8_0.c?

2016-08-08 Thread Alex Deucher
On Mon, Aug 8, 2016 at 5:43 PM, Alexandre Demers wrote: > Hi, > > While looking into dce_v8_0.c, I stumbled upon something that might be wrong > dce_v8_0_afmt_update_ACR(). We can read: > > WREG32(mmHDMI_ACR_32_0 + offset, (acr.cts_32khz << >

[PATCH] drm/amdgpu/gfx8: remove stale function declaration

2016-08-01 Thread Alex Deucher
This got leftover somehow when I cleaned this up. Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> --- drivers/gpu/drm/amd/amdgpu/gfx_v8_0.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.h b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.h index b

Re: Any chance of seeing a merge from drm-next-4.8-wip-si?

2016-08-01 Thread Alex Deucher
On Mon, Aug 1, 2016 at 2:29 AM, Alexandre Demers wrote: > Hi Alex, > > I'd like to know if there is any chance to see a merge / pull request for > the SI code from drm-next-4.8-wip-si into mainline kernel for 4.8? Nothing > seems to have been added to the branch

Re: GFX/UVD/VCE PG (v3)

2016-07-28 Thread Alex Deucher
gt; (set the clock last). > > Finally, this series adds VCE PG tested on both the Carrizo and Stoney > systems I have. For the series: Reviewed-by: Alex Deucher <alexander.deuc...@amd.com> ___ amd-gfx mailing list amd-gfx@lists.freedesktop.

Re: [PATCH 1/5] drm/radeon: fix radeon_move_blit on 32bit systems

2016-08-17 Thread Alex Deucher
On Wed, Aug 17, 2016 at 8:26 AM, Christian König <deathsim...@vodafone.de> wrote: > From: Christian König <christian.koe...@amd.com> > > This bug seems to be present for a very long time. > > Signed-off-by: Christian König <christian.koe...@amd.com> Patches 1,2

Re: drm/ttm: Fix unused variable warning

2017-02-03 Thread Alex Deucher
t upstream. Feel free to apply to the internal trees however. Reviewed-by: Alex Deucher <alexander.deuc...@amd.com> ___ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Re: [PATCH v5 0/3] Allow ASYNC flip with atomic helpers.

2017-02-03 Thread Alex Deucher
gt; Rename the flag, fix typo in header. Looks good. The series is: Reviewed-by: Alex Deucher <alexander.deuc...@amd.com> Unless there are any objections I'll push to drm-misc today. Thanks! Alex > > Andrey Grodzovsky (3): > drm/atomic: Save flip flags in drm_crtc_state

Re: PRT support for amdgpu

2017-01-31 Thread Alex Deucher
On Mon, Jan 30, 2017 at 7:57 AM, Christian König wrote: > Hi Dave and Bas, > > Hi Dave and Bas, > > the following set of patches is a proposal for adding support for partial > resident textures (PRT) to the amdgpu kernel module. > > The basic idea behind PRT support is

Re: [PATCH 4/4] drm/amdgpu: extend profiling mode.

2017-02-01 Thread Alex Deucher
On Tue, Jan 31, 2017 at 6:19 PM, Andy Furniss wrote: > Andy Furniss wrote: >> >> Rex Zhu wrote: >>> >>> in profiling mode, powerplay will fix power state >>> as stable as possible.and disable gfx cg and LBPW feature. >>> >>> profile_standard: as a prerequisite, ensure power

Re: [PATCH 4/4] drm/amdgpu: extend profiling mode.

2017-02-07 Thread Alex Deucher
On Tue, Feb 7, 2017 at 4:48 AM, Zhu, Rex <rex@amd.com> wrote: > > Not set max fan speed in high performance level because of the fan noise. Reviewed-by: Alex Deucher <alexander.deuc...@amd.com> > > Best Regards > Rex >

Re: [patch] drm/radeon: remove some dead code

2017-02-08 Thread Alex Deucher
On Tue, Feb 7, 2017 at 8:16 AM, Dan Carpenter wrote: > If "rdev->bios" is NULL then we don't need to free it. > > Signed-off-by: Dan Carpenter applied. thanks! > > diff --git a/drivers/gpu/drm/radeon/radeon_bios.c >

Re: [PATCH] drm/amdgpu/virt: fix double kfree on bo_va

2017-02-08 Thread Alex Deucher
On Fri, Feb 3, 2017 at 3:23 PM, Colin King wrote: > From: Colin Ian King > > bo_va is being kfree'd twice, once in the call to amdgpu_vm_bo_rmv > and then a short while later. Fix this double free by removing > the 2nd kfree. > > Detected by

Re: [PATCH] drm/amdgpu: shut up #warning for compile testing

2017-02-08 Thread Alex Deucher
On Fri, Feb 3, 2017 at 5:15 AM, Michel Dänzer wrote: > On 02/02/17 06:36 PM, Christian König wrote: >> Am 02.02.2017 um 07:09 schrieb Michel Dänzer: >>> [SNIP] >>> OTOH the people running the kernel aren't always the same people >>> building it, so the downside is that this

Re: [PATCH v4 1/3] drm/atomic: Save flip flags in drm_crtct_state

2017-02-02 Thread Alex Deucher
On Wed, Feb 1, 2017 at 12:03 PM, Andrey Grodzovsky wrote: > Allows using atomic flip helpers for drivers > using ASYNC flip. > Remove ASYNC_FLIP restriction in helpers and > caches the page flip flags in drm_crtc_state > to be used in the low level drivers. > > v2: >

[pull] radeon and amdgpu drm-fixes-4.10

2017-02-02 Thread Alex Deucher
) Alex Deucher (1): drm/amdgpu/si: fix crash on headless asics Michel Dänzer (1): drm/radeon: Fix vram_size/visible values in DRM_RADEON_GEM_INFO ioctl drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c | 4 +++- drivers/gpu/drm/radeon/radeon_drv.c | 3 ++- drivers/gpu/drm/radeon/radeon_gem.c

Re: [PATCH v4 0/3] Allow ASYNC flip with atomic helpers.

2017-02-02 Thread Alex Deucher
; Andrey Grodzovsky (3): > drm/atomic: Save flip flags in drm_crtct_state > drm/nouveau/kms/nv50: Switch to using atomic helper for flip. > drm/amd/display: Switch to using atomic_helper for flip. A few comments on patch 1. WIth those addressed the series is: Reviewed-by: Ale

Re: [Mesa-dev] [PATCH] drm/radeon: Fix vram_size/visible values in DRM_RADEON_GEM_INFO ioctl

2017-01-31 Thread Alex Deucher
.org] On Behalf >>> Of Dieter Nützel >>> Sent: Tuesday, January 31, 2017 6:25 AM >>> To: Michel Dänzer >>> Cc: Alex Deucher; mesa-...@lists.freedesktop.org; amd- >>> g...@lists.freedesktop.org >>> Subject: Re: [Mesa-dev] [PATCH] drm/

Re: [PATCH 1/1] drm/amd/powerplay: fix misspelling in header guard

2017-01-23 Thread Alex Deucher
On Sun, Jan 22, 2017 at 8:47 AM, Nicolas Iooss wrote: > In smu7_clockpowergating.h, the #ifndef statement which prevents > multiple inclusions of the header file uses _SMU7_CLOCK_POWER_GATING_H_ > but the following #define statement uses _SMU7_CLOCK__POWER_GATING_H_.

Re: [PATCH] drm/amdgpu: Bring bo creation in line with radeon driver

2017-01-23 Thread Alex Deucher
On Mon, Jan 23, 2017 at 5:29 AM, Christian König wrote: > Am 23.01.2017 um 03:46 schrieb Michel Dänzer: >> >> On 23/01/17 04:15 AM, Nils Holland wrote: >>> >>> From d44ac1157fdb86e67822b6538ae6113c8d620412 Mon Sep 17 00:00:00 2001 >>> From: Nils Holland

Re: [PATCH xf86-video-ati] Enable tiling by default with glamor on PALM

2017-01-26 Thread Alex Deucher
n tearing. > > Bugzilla: https://bugs.freedesktop.org/99491 > Signed-off-by: Michel Dänzer <michel.daen...@amd.com> Reviewed-by: Alex Deucher <alexander.deuc...@amd.com> > --- > src/radeon_kms.c | 10 ++ > 1 file changed, 6 insertions(+), 4 deletions(-) > > diff --git

Re: [PATCH] drm/amd/powerplay: header should be defining _SMU7_CLOCK_POWER_GATING_H_

2017-01-25 Thread Alex Deucher
On Wed, Jan 25, 2017 at 7:07 AM, Colin King wrote: > From: Colin Ian King > > _SMU7_CLOCK_POWER_GATING_H_ is being used as a header guard, followed by > a #define of a different macro. Define _SMU7_CLOCK_POWER_GATING_H_ instead > to fix this.

[PATCH] drm/amdgpu/si: fix crash on headless asics

2017-01-27 Thread Alex Deucher
Missing check for crtcs present. Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=193341 https://bugs.freedesktop.org/show_bug.cgi?id=99387 Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> Cc: sta...@vger.kernel.org --- drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c | 4 +++- 1 file chan

[pull] radeon and amdgpu drm-next-4.11

2017-01-27 Thread Alex Deucher
://people.freedesktop.org/~agd5f/linux drm-next-4.11 for you to fetch changes up to 268c3001842cb179b54a2825dad9b70151bf4de6: drm/amdgpu: fix amdgpu_bo_va_mapping flags (2017-01-27 12:20:45 -0500) Alex Deucher (7): drm/amdgpu

[PATCH 1/2] drm/amdgpu: remove unused header si_reg.h

2017-01-24 Thread Alex Deucher
All of these are available elsewhere. Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> --- drivers/gpu/drm/amd/include/asic_reg/si/si_reg.h | 105 --- 1 file changed, 105 deletions(-) delete mode 100644 drivers/gpu/drm/amd/include/asic_reg/si/si_reg.h diff

[PATCH] drm/radeon: drop pitcairn dpm quirks

2017-01-24 Thread Alex Deucher
No longer necessary with the new 58 mc ucode. bug: https://bugs.freedesktop.org/show_bug.cgi?id=76490 Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> --- drivers/gpu/drm/radeon/si_dpm.c | 47 + 1 file changed, 1 insertion(+), 46 deletions(-)

[PATCH] drm/amdgpu: drop pitcairn dpm quirks

2017-01-24 Thread Alex Deucher
No longer necessary with the new 58 mc ucode. Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> --- drivers/gpu/drm/amd/amdgpu/si_dpm.c | 47 + 1 file changed, 1 insertion(+), 46 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si_dpm.c b/d

[PATCH 2/2] drm/amdgpu: handle vfct with multiple vbios images

2017-01-25 Thread Alex Deucher
The vfct table can contain multiple vbios images if the platform contains multiple GPUs. Noticed by netkas on phoronix forums. This patch fixes those platforms. Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> Cc: sta...@vger.kernel.org --- drivers/gpu/drm/amd/amdgpu/amdgpu_bios.

Re: [PATCH] drm/amdgpu: add DP audio support for si dce6

2017-02-21 Thread Alex Deucher
gt; + if (sad->format == eld_reg_to_type[i][1]) { >> + if (sad->channels > max_channels) { >> + tmp = REG_SET_FIELD(tmp, >> AZALIA_F0_CODEC_PIN_CONTROL_AUDIO_DESCRIPTOR0, >> +

Re: [PATCH 00/11] remove fb_location programming

2017-02-21 Thread Alex Deucher
0 since it was programmed properly from the beginning as far as I understand it. Alex > > Regards, > Jerry (Junwei Zhang) > > Linux Base Graphics > SRDC Software Development > _ > > >> -Original Message- >> From: am

[PATCH] drm/amdgpu/powerplay: enable LEDs on Fiji boards

2017-02-22 Thread Alex Deucher
This enables the LEDs that light up based on DPM states on some Fiji boards. bug: https://bugs.freedesktop.org/show_bug.cgi?id=97590 Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> --- drivers/gpu/drm/amd/powerplay/inc/smu7_ppsmc.h | 1 + drivers/gpu/drm/amd/powerplay/

[PATCH 10/11] drm/amdgpu: remove *_mc_access from display funcs (v2)

2017-02-17 Thread Alex Deucher
These are no longer needed now that we use the fb_location programmed by the vbios. v2: update DC as well Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 3 - drivers/gpu/drm/amd/amdgpu/amdgpu_device.c| 6 - drive

[PATCH 03/11] drm/amdgpu/gmc8: use the vram location programmed by the vbios

2017-02-17 Thread Alex Deucher
This makes mc programming much simpler in future patches. Since evergreen, the vbios has been programming the fb location to the proper vram size. The only reason to reprogram it would be to change the location. Reviewed-by: Christian König <christian.koe...@amd.com> Signed-off-by: Alex D

[PATCH 11/11] drm/amd/dc/dm: remove redundant display structs

2017-02-17 Thread Alex Deucher
Now that the mc_access functions are gone, we no longer need separate structs for all the different dce families in dm. Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 60 ++- 1 file changed, 4 insertions(

[PATCH 05/11] drm/amdgpu/gmc6: use the vram location programmed by the vbios

2017-02-17 Thread Alex Deucher
This makes mc programming much simpler in future patches. Since evergreen, the vbios has been programming the fb location to the proper vram size. The only reason to reprogram it would be to change the location. Reviewed-by: Christian König <christian.koe...@amd.com> Signed-off-by: Alex D

[PATCH 08/11] drm/amdgpu/gmc6: drop fb location programming

2017-02-17 Thread Alex Deucher
No need to do this as the vbios does this for us. As such we no longer need to stop the mc during init. Reviewed-by: Christian König <christian.koe...@amd.com> Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> --- drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c | 15 --- 1

[PATCH 06/11] drm/amdgpu/gmc8: drop fb location programming

2017-02-17 Thread Alex Deucher
No need to do this as the vbios does this for us. As such we no longer need to stop the mc during init. Reviewed-by: Christian König <christian.koe...@amd.com> Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> --- drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 13 - 1

[PATCH 02/11] drm/amdgpu: put gtt at 0 in the internal address space

2017-02-17 Thread Alex Deucher
There still seem to be some blocks that make accesses in the lower part of the address space. This works around this. Reviewed-by: Christian König <christian.koe...@amd.com> Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c |

[PATCH 01/11] drm/amdgpu/vce2: fix vce bar programming

2017-02-17 Thread Alex Deucher
Program the VCE BAR and offsets properly. The current code was carried over from a limitation from older VCE versions. Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> --- drivers/gpu/drm/amd/amdgpu/vce_v2_0.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-)

[PATCH 00/11] remove fb_location programming

2017-02-17 Thread Alex Deucher
Since evergreen, the vbios has programmed the FB_LOCATION to the proper size during asic_init, so there is no need to reprogram them in the driver. We can safely leave the location as set by the vbios. This simplifies the driver significantly. Alex Deucher (11): drm/amdgpu/vce2: fix vce bar

[PATCH 04/11] drm/amdgpu/gmc7: use the vram location programmed by the vbios

2017-02-17 Thread Alex Deucher
This makes mc programming much simpler in future patches. Since evergreen, the vbios has been programming the fb location to the proper vram size. The only reason to reprogram it would be to change the location. Reviewed-by: Christian König <christian.koe...@amd.com> Signed-off-by: Alex D

[PATCH 09/11] drm/amdgpu: drop set_vga_render_state from display funcs (v2)

2017-02-17 Thread Alex Deucher
Not used. v2: include DC as well Reviewed-by: Christian König <christian.koe...@amd.com> Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 - drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 2 -- drivers/gpu/dr

[PATCH 07/11] drm/amdgpu/gmc7: drop fb location programming

2017-02-17 Thread Alex Deucher
No need to do this as the vbios does this for us. As such we no longer need to stop the mc during init. Reviewed-by: Christian König <christian.koe...@amd.com> Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> --- drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c | 13 - 1

Re: [PATCH 00/11] remove fb_location programming

2017-02-17 Thread Alex Deucher
On Fri, Feb 17, 2017 at 3:38 PM, Alex Deucher <alexdeuc...@gmail.com> wrote: > Since evergreen, the vbios has programmed the FB_LOCATION to the proper size > during asic_init, so there is no need to reprogram them in the driver. > We can safely leave the location as s

Re: [PATCH] drm/radeon/dp_auxch: Ratelimit aux transfer debug messages

2017-02-23 Thread Alex Deucher
On Wed, Feb 22, 2017 at 4:34 PM, Lyude wrote: > Aux transfers always fail with non-zero status flags when there's > nothing connected on the port, so we don't usually need to see all of > the debugging information from it. Also, we try reprobing a -lot-, so > without

Re: [PATCH 17/35] drivers/gpu: Convert remaining uses of pr_warning to pr_warn

2017-02-23 Thread Alex Deucher
On Sat, Feb 18, 2017 at 12:03 AM, Edward O'Callaghan wrote: > > > On 02/18/2017 01:22 AM, Christian König wrote: >> Am 17.02.2017 um 08:11 schrieb Joe Perches: >>> To enable eventual removal of pr_warning >>> >>> This makes pr_warn use consistent for drivers/gpu >>>

[pull] amdgpu and ttm drm-next-4.11

2017-02-23 Thread Alex Deucher
Hi Dave, Just a few fixes for 4.11. The following changes since commit 9ca70356a9260403c1bda40d942935e55d00c11c: Revert "drm: Resurrect atomic rmfb code, v3" (2017-02-17 12:39:04 +1000) are available in the git repository at: git://people.freedesktop.org/~agd5f/linux drm-next-4.11 for

[PATCH] drm/amdgpu: bump driver version for new lds buffer query

2017-02-21 Thread Alex Deucher
Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index 72c33b9..0dd0e2d 100644 --- a/d

Re: [PATCH v2 xf86-video-ati 3/3] Allow toggling TearFree at runtime via output property

2017-02-21 Thread Alex Deucher
ed by default for outputs using rotation or other > RandR transforms, and for RandR 1.4 slave outputs. > > Signed-off-by: Michel Dänzer <michel.daen...@amd.com> Series is: Reviewed-by: Alex Deucher <alexander.deuc...@amd.com> > --- > > v2: Fix build against xserve

Re: [PATCH xf86-video-ati 3/3] present: Wait for screen pixmap BO idle before setting modes for unflip

2017-02-21 Thread Alex Deucher
...@amd.com> Series is: Reviewed-by: Alex Deucher <alexander.deuc...@amd.com> > --- > src/radeon_present.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/src/radeon_present.c b/src/radeon_present.c > index b36e29b19..1b0ddcb82 100644 > --- a/src/radeon_prese

Re: [PATCH] drm/amdgpu: fix double_offchip_lds_buf for gfx v6

2017-02-22 Thread Alex Deucher
On Wed, Feb 22, 2017 at 10:04 PM, Junwei Zhang <jerry.zh...@amd.com> wrote: > Signed-off-by: Junwei Zhang <jerry.zh...@amd.com> Reviewed-by: Alex Deucher <alexander.deuc...@amd.com> > --- > drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 2 +- > 1 file changed, 1 insert

[pull] radeon and amdgpu drm-next-4.11

2017-02-09 Thread Alex Deucher
to fad061270ac43ff9eed315f0eae7c40b694592de: drm/amdgpu: report the number of bytes moved at buffer creation (2017-02-09 11:29:44 -0500) Alex Deucher (1): drm/amdgpu: add support for new smc firmware on polaris Arnd Bergmann (1): drm/amdgpu: shut up

Re: [PATCH 2/2] drm/amdgpu: use amdgpu_gem_va_check() in amdgpu_gem_va_update_vm()

2017-02-10 Thread Alex Deucher
On Thu, Feb 9, 2017 at 5:28 PM, Samuel Pitoiset wrote: > This removes code duplication. > > Signed-off-by: Samuel Pitoiset Applied. thanks! Alex > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 8 +--- > 1 file changed, 1

[PATCH] drm/amdgpu/pm: check for headless before calling compute_clocks

2017-02-10 Thread Alex Deucher
Don't update display bandwidth on headless asics. bug: https://bugs.freedesktop.org/show_bug.cgi?id=99387 Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> Cc: sta...@vger.kernel.org --- drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

Re: [PATCH v2 1/2] drm/amdgpu: fix a potential deadlock in amdgpu_bo_create_restricted()

2017-02-14 Thread Alex Deucher
On Mon, Feb 13, 2017 at 9:56 PM, zhoucm1 wrote: > > > On 2017年02月14日 03:03, Nicolai Hähnle wrote: >> >> On 13.02.2017 19:58, Nicolai Hähnle wrote: >>> >>> On 13.02.2017 19:38, Samuel Pitoiset wrote: On 02/13/2017 07:09 PM, Nicolai Hähnle wrote: > >

Re: [PATCH] drm/radeon: Use mode h/vdisplay fields to hide out of bounds HW cursor

2017-02-14 Thread Alex Deucher
g <sonny.ji...@amd.com> > Signed-off-by: Michel Dänzer <michel.daen...@amd.com> Reviewed-by: Alex Deucher <alexander.deuc...@amd.com> > --- > drivers/gpu/drm/radeon/radeon_cursor.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/

Re: [PATCH] drm/amdgpu: Initialize pipe priority order on graphic initialization

2017-02-13 Thread Alex Deucher
> Signed-off-by: Oak Zeng <oak.z...@amd.com> Reviewed-by: Alex Deucher <alexander.deuc...@amd.com> > --- > drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c | 8 > drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 8 > 2 files changed, 16 insertions(+) > > diff --gi

[PATCH] drm/amdgpu: Add to initialization of mmVCE_VCPU_CNTL register

2017-02-13 Thread Alex Deucher
u <leo@amd.com> Signed-off-by: Alan Harrison <alan.harri...@amd.com> Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> --- drivers/gpu/drm/amd/amdgpu/vce_v3_0.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c b/drivers/gpu/drm/amd

[pull] radeon drm-fixes-4.10

2017-02-16 Thread Alex Deucher
Hi Dave, Just one regression fix interlaced modes on radeon. The following changes since commit 697d3a21615672b2bf7724a65755799260325dda: Merge tag 'drm-intel-fixes-2017-02-09' of git://anongit.freedesktop.org/git/drm-intel into drm-fixes (2017-02-10 10:14:24 +1000) are available in the

[pull] amdgpu drm-next-4.11

2017-02-16 Thread Alex Deucher
12:19:52 -0500) Alan Harrison (1): drm/amdgpu: Add to initialization of mmVCE_VCPU_CNTL register Alex Deucher (2): drm/amdgpu: add more cases to DCE11 possible crtc mask setup drm/amdgpu/pm: check for headless bef

Re: [PATCH] drm/amdgpu: fix warning on older gcc releases

2017-02-16 Thread Alex Deucher
On Fri, Feb 3, 2017 at 11:47 AM, Arnd Bergmann wrote: > gcc-4.8 warns about '{0}' being used an an initializer for nested structures: > > drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c: In function > ‘gfx_v8_0_ring_emit_ce_meta_init’: > drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c:7263:2:

Re: [PATCH 22/25] drm/amd/display: Add interrupt entries for VBLANK isr.

2017-01-23 Thread Alex Deucher
On Mon, Jan 23, 2017 at 9:36 AM, Harry Wentland wrote: > From: Andrey Grodzovsky > > Change-Id: Ia59c22ea5a78d5eecca6c62c7f50e651f29ef5f7 > Signed-off-by: Andrey Grodzovsky > Acked-by: Harry Wentland

Re: [PATCH] drm/amdgpu: refuse to reserve io mem for split VRAM buffers

2017-02-16 Thread Alex Deucher
On Thu, Feb 16, 2017 at 5:55 PM, Nicolai Hähnle wrote: > From: Nicolai Hähnle > > When the fast blit path fails while attempting to move a buffer from RAM > to VRAM, we fall back to a CPU-based memcpy that cannot handle split VRAM > buffers. Instead

Re: [PATCH 1/1] drm/amdgpu: fix unload driver issue for virtual display

2017-01-19 Thread Alex Deucher
ng...@amd.com> Reviewed-by: Alex Deucher <alexander.deuc...@amd.com> > --- > drivers/gpu/drm/amd/amdgpu/dce_virtual.c | 5 + > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/dce_virtual.c > b/drivers/gpu/drm/amd/a

[PATCH 1/2] drm/radeon: add support for new hainan variants

2017-01-17 Thread Alex Deucher
New hainan parts require updated smc firmware. Cc: Sonny Jiang <sonny.ji...@amd.com> Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> --- drivers/gpu/drm/radeon/si.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/radeon/si.c b

Re: [PATCH] drm/amd/amdgpu: Add PCI info to gca_config debugfs

2017-01-18 Thread Alex Deucher
>revision; > + config[no_regs++] = adev->pdev->subsystem_device; > + config[no_regs++] = adev->pdev->subsystem_vendor; For completeness, please add pdev->revision as well. With that: Reviewed-by: Alex Deucher <alexander.deuc...@amd.com> > + > whil

[pull] radeon and amdgpu drm-fixes-4.10

2017-01-19 Thread Alex Deucher
at: git://people.freedesktop.org/~agd5f/linux drm-fixes-4.10 for you to fetch changes up to 17324b6add82d6c0bf119f1d1944baef392a4e39: drm/amdgpu: add support for new hainan variants (2017-01-17 15:25:41 -0500) Alex Deucher (8

Re: [PATCH 5/5] drm/amdgpu: add AMDGPU_GEM_CREATE_LINEAR flag

2016-08-18 Thread Alex Deucher
On Thu, Aug 18, 2016 at 5:59 AM, Christian König wrote: > From: Christian König > > Add a flag noting that a BO must be created using linear VRAM > and set this flag on all in kernel users where appropriate. > > Hopefully I haven't missed

Re: DCE wait for idle

2016-08-16 Thread Alex Deucher
On Tue, Aug 16, 2016 at 7:53 AM, StDenis, Tom wrote: > In these functions > > > static bool dce_v11_0_is_idle(void *handle) > { > return true; > } > > static int dce_v11_0_wait_for_idle(void *handle) > { > return 0; > } > > Shouldn't they wait on the GUI bit of the

Re: Reverted another change to fix buffer move hangs (was Re: [PATCH] drm/ttm: partial revert "cleanup ttm_tt_(unbind|destroy)" v2)

2016-08-15 Thread Alex Deucher
On Mon, Aug 15, 2016 at 3:06 PM, Felix Kuehling <felix.kuehl...@amd.com> wrote: > Patch against current amd-staging-4.6 is attached. Reviewed-by: Alex Deucher <alexander.deuc...@amd.com> > > Regards, > Felix > > > On 16-08-13 05:25 AM, Christian König wrote:

Re: [PATCH] drm/amdgpu: fix SI display support

2016-08-19 Thread Alex Deucher
I've squashed this patch into my si tree and also fixed the cursor. Updated tree: https://cgit.freedesktop.org/~agd5f/linux/log/?h=drm-next-4.9-si Alex On Fri, Aug 19, 2016 at 5:01 AM, Marek Olšák wrote: > From: Marek Olšák > > The tiling flags use the

[PATCH 1/2] drm/amdgpu: reset the asic when hibernating

2016-08-22 Thread Alex Deucher
Some blocks require a reset to properly resume if there is no power down of the asic like during various hibernation steps. Port of: 274ad65c9d02bdcbee9bae045517864c3521d530 (drm/radeon: hard reset r600 and newer GPU when hibernating.) from radeon. Signed-off-by: Alex Deucher <alexander.d

[pull] amdgpu drm-fixes-4.8

2016-08-17 Thread Alex Deucher
Hi Dave, Just one small fix for amdgpu this week for systems with a gart aperture > 4 GB. The following changes since commit 93b1f14553a5f48104b639d28e41c2bb73c0dc37: Merge tag 'mediatek-drm-fixes-2016-08-12' of git://git.pengutronix.de/git/pza/linux into drm-fixes (2016-08-15 16:07:14

Re: [PATCH 00/13] drm/amdgpu: Add virtual display feature.

2016-08-04 Thread Alex Deucher
On Thu, Aug 4, 2016 at 12:24 PM, Daniel Vetter <dan...@ffwll.ch> wrote: > On Thu, Aug 04, 2016 at 10:59:38AM -0400, Alex Deucher wrote: >> Adding dri-devel. >> >> This patch set basically adds a driver option to enable virtual >> display hw if the user needs it (

Re: rx480 error messages with 4.8rc2

2016-08-22 Thread Alex Deucher
On Sun, Aug 21, 2016 at 8:59 AM, Jarkko Korpi wrote: > I quess these are rather harmless. > > > [1.533109] amdgpu :01:00.0: Invalid PCI ROM header signature: > expecting 0xaa55, got 0x This is an error from the pci rom code, not the driver. > 1.532641]

Re: [PATCH xf86-video-ati 3/3] present: Flush before flipping

2017-02-28 Thread Alex Deucher
gt; > Signed-off-by: Michel Dänzer <michel.daen...@amd.com> Series is: Reviewed-by: Alex Deucher <alexander.deuc...@amd.com> > --- > src/radeon_present.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/src/radeon_present.c b/src/radeon_present.c > in

Re: [PATCH xf86-video-ati 3/3] Handle rotation in the driver also with Xorg 1.12-1.18

2017-02-28 Thread Alex Deucher
by: Michel Dänzer <michel.daen...@amd.com> Series is: Reviewed-by: Alex Deucher <alexander.deuc...@amd.com> > --- > src/drmmode_display.c | 13 + > 1 file changed, 5 insertions(+), 8 deletions(-) > > diff --git a/src/drmmode_display.c b/src/drmmode_

Re: [PATCH] drm/amdgpu: Added more hqd debug messages v2

2017-03-01 Thread Alex Deucher
60dd072dd43b1c > Signed-off-by: Oak Zeng <oak.z...@amd.com> Acked-by: Alex Deucher <alexander.deuc...@amd.com> > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c | 4 +++- > drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c | 4 +++- > 2 files changed, 6 insertions(+

Re: [PATCH xf86-video-amdgpu 3/3] Handle rotation in the driver also with Xorg 1.12-1.18

2017-03-02 Thread Alex Deucher
gt; (Ported from radeon commit f2bc882f1c1082bed9f496cfab6c8f07a76bc122) > > Signed-off-by: Michel Dänzer <michel.daen...@amd.com> Series is: Reviewed-by: Alex Deucher <alexander.deuc...@amd.com> > --- > src/drmmode_display.c | 12 +--- > 1 file changed, 5 insertions(+), 7

Re: [PATCH xf86-video-amdgpu 6/6] Allow toggling TearFree at runtime via output property

2017-03-02 Thread Alex Deucher
ed by default for outputs using rotation or other > RandR transforms, and for RandR 1.4 slave outputs. > > (Ported from radeon commit 58cd1600057e41aade0106d4acf78e23eac6e44f) > > Signed-off-by: Michel Dänzer <michel.daen...@amd.com> Series is: Reviewed-by: Alex Deucher <

Re: [PATCH xf86-video-ati] Don't call radeon_cs_flush_indirect & radeon_bo_wait in drmmode_copy_fb

2017-03-02 Thread Alex Deucher
On Thu, Mar 2, 2017 at 2:23 AM, Michel Dänzer <mic...@daenzer.net> wrote: > From: Michel Dänzer <michel.daen...@amd.com> > > RADEONWindowExposures_oneshot takes care of it. > > Signed-off-by: Michel Dänzer <michel.daen...@amd.com> Reviewed-by: Alex D

[PATCH] drm/amdgpu: fix IB alignment for UVD

2016-08-23 Thread Alex Deucher
According to the hw team, it should be 16, not 8. Cc: Peter Fang <peter.f...@amd.com> Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> Cc: sta...@vger.kernel.org --- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dri

[PATCH 2/2] drm/amdgpu/vce3: add support for third vce ring

2016-08-24 Thread Alex Deucher
Not of much use at the moment (we don't really use the second ring either), but may be useful later. Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | 4 ++-- drivers/gpu/drm/amd/amdgpu/vc

[PATCH 1/2] drm/amdgpu: track the number of vce rings

2016-08-24 Thread Alex Deucher
Rather than using a hardcoded value. This allows different versions to expose more or less rings. No functional change. Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 2 +- drivers/g

[pull] radeon and amdgpu drm-next-4.9

2016-08-24 Thread Alex Deucher
) Alex Deucher (14): drm/amdgpu/powerplay: enable powerplay by default on TOPAZ drm/amdgpu/gmc7: add missing mullins case drm/amdgpu/ci: add mullins to default case for smc ucode drm/amdgpu/gfx8: remove stale function declaration drm/amdgpu: move all

[PATCH 04/10] drm/amdgpu: skip suspend/resume on DRM_SWITCH_POWER_DYNAMIC_OFF

2016-08-31 Thread Alex Deucher
Missed this case previously. No need to do anything if the device is already off. runtime pm will handle it. Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/d

[PATCH 08/10] drm/radeon: handle runtime pm in fbcon

2016-08-31 Thread Alex Deucher
Ported from nouveau. Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> --- drivers/gpu/drm/radeon/radeon_fb.c | 25 + 1 file changed, 25 insertions(+) diff --git a/drivers/gpu/drm/radeon/radeon_fb.c b/drivers/gpu/drm/radeon/radeon_fb.c index 0e3143a..1

[PATCH 07/10] drm/radeon: handle runtime pm correctly in amdgpu_driver_open_kms

2016-08-31 Thread Alex Deucher
Need to fix the error paths. Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> --- drivers/gpu/drm/radeon/radeon_kms.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_kms.c b/drivers/gpu/drm/radeon/radeon_kms.c index 0

[PATCH 09/10] drm/radeon: skip suspend/resume on DRM_SWITCH_POWER_DYNAMIC_OFF

2016-08-31 Thread Alex Deucher
Missed this case previously. No need to do anything if the device is already off. runtime pm will handle it. Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> --- drivers/gpu/drm/radeon/radeon_device.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drive

[PATCH 02/10] drm/amdgpu: handle runtime pm correctly in amdgpu_driver_open_kms

2016-08-31 Thread Alex Deucher
Need to fix the error pathes. Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/

  1   2   3   4   5   6   7   8   9   10   >