Re: [PATCH 3/4] drm/amd/amdgpu: Add GFX and UVD PG for Stoney

2016-07-27 Thread Alex Deucher
On Wed, Jul 27, 2016 at 12:21 PM, Tom St Denis wrote: > Enables GFX PG and UVD static PG on Stoney class > asics. > > Signed-off-by: Tom St Denis > --- > drivers/gpu/drm/amd/amdgpu/vi.c | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git

Re: [PATCH 2/4] drm/amd/amdgpu: Add GFX and UVD PG for Carrizo

2016-07-27 Thread Alex Deucher
in retail? > > > Tom > > > ------ > *From:* Alex Deucher <alexdeuc...@gmail.com> > *Sent:* Tuesday, July 26, 2016 14:47 > *To:* Tom St Denis > *Cc:* amd-gfx list; StDenis, Tom > *Subject:* Re: [PATCH 2/4] drm/amd/amdgpu: Add GFX and UVD PG for Carrizo

[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 1/2] drm/amdgpu: 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. Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> Cc: Peter Wu <pe...@lekensteyn.nl> --- drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dri

[PATCH 2/2] drm/amdgpu: fix firmware info version checks

2016-07-27 Thread Alex Deucher
Some of the checks didn't handle frev 2 tables properly. amdgpu doesn't support any tables pre-frev 2, so drop the checks. Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> Cc: sta...@vger.kernel.org --- drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c | 25 -

Re: [PATCH] drm/amdgpu: comment out unused defaults_staturn_pro static const structure to fix the build

2016-07-27 Thread Alex Deucher
On Wed, Jul 27, 2016 at 2:36 PM, Slava Grigorev <slava.grigo...@amd.com> wrote: > Signed-off-by: Slava Grigorev <slava.grigo...@amd.com> Reviewed-by: Alex Deucher <alexander.deuc...@amd.com> > --- > drivers/gpu/drm/amd/amdgpu/ci_dpm.c | 2 ++ > 1 file changed,

[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: status of MST ?

2016-08-01 Thread Alex Deucher
On Mon, Aug 1, 2016 at 12:17 PM, Kenneth Johansson <k...@kenjo.org> wrote: > On 2016-08-01 17:12, Alex Deucher wrote: >> >> On Fri, Jul 29, 2016 at 8:51 AM, Kenneth Johansson <k...@kenjo.org> wrote: >>> >>> I have a 30" Dell MST monitor and It on

[PATCH] drm/radeon: drop confusing message about backlight control

2016-07-27 Thread Alex Deucher
The message is harmless and confusing. On PX systems, there is one ATIF method, but potentially multiple GPUs leading to an error on the GPU with no backlight control. Bug: https://bugzilla.kernel.org/show_bug.cgi?id=115011 Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> Cc: H

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 2/2] drm/amdgpu: use the kernel zone memory size as the max remote memory in amdgpu

2016-08-01 Thread Alex Deucher
On Wed, Jul 27, 2016 at 7:21 AM, Ken Wang wrote: > Change-Id: Ibf193cc2d9e20c3aefa1ce8ff24241dfbb6768ff > Signed-off-by: Ken Wang > --- > drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 ++ > drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 12 +++- >

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

2016-08-04 Thread Alex Deucher
Adding dri-devel. This patch set basically adds a driver option to enable virtual display hw if the user needs it (e.g., virtualization environments, headless cards, pre-silicon environments, etc.). It looks like a regular KMS crtc/encoder/connector and works with existing userspace unchanged.

Re: [PATCH 0/6] drm: Explicit target vblank seqno for page flips

2016-08-04 Thread Alex Deucher
/6] drm/radeon: Set MASTER_UPDATE_MODE to 0 again > [PATCH 6/6] drm: Add DRM_MODE_PAGE_FLIP_TARGET_ABSOLUTE/RELATIVE Small comment on patch 1. The rest are: Reviewed-by: Alex Deucher <alexander.deuc...@amd.com> > ___ > amd-gfx mailing list &

Re: [PATCH xf86-video-ati] Wait for pending flips to complete before turning off an output or CRTC

2016-08-04 Thread Alex Deucher
> https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-ati/+bug/1577170 > Signed-off-by: Michel Dänzer <michel.daen...@amd.com> Reviewed-by: Alex Deucher <alexander.deuc...@amd.com> > --- > src/drmmode_display.c | 54 > ++

Re: status of MST ?

2016-08-04 Thread Alex Deucher
On Tue, Aug 2, 2016 at 11:15 AM, Kenneth Johansson <k...@kenjo.org> wrote: > On 2016-08-01 18:25, Alex Deucher wrote: >> >> On Mon, Aug 1, 2016 at 12:17 PM, Kenneth Johansson <k...@kenjo.org> wrote: >>> >>> On 2016-08-01 17:12, Alex Deucher wrote: >&

Re: [PATCH 1/6] drm: Add page_flip_target CRTC hook

2016-08-04 Thread Alex Deucher
> + target_vblank = drm_crtc_vblank_count(crtc) + > + !(page_flip->flags & DRM_MODE_PAGE_FLIP_ASYNC); > + } else if (crtc->funcs->page_flip == NULL) > + return -EINVAL; > + According to kernel coding style, this l

Re: [PATCH 3/4] drm/amd/amdgpu: VCE v2 register cleanup

2016-08-12 Thread Alex Deucher
On Fri, Aug 12, 2016 at 10:01 AM, Deucher, Alexander <alexander.deuc...@amd.com> wrote: > In that case: For the series: > > Reviewed-by: Alex Deucher <alexander.deuc...@amd.com> > > > > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf Of &

Re: [PATCH 1/6] drm/amdgpu: write PTEs directly into the IB.

2016-08-12 Thread Alex Deucher
On Fri, Aug 12, 2016 at 9:52 AM, Christian König wrote: > From: Christian König > > Write the PTEs at the end of the IB instead of directly into the SDMA > commands. > This can save quite some CPU cycles building the entries. > > Signed-off-by:

Re: [PATCH drm/amdgpu] Fixing copy-paste errors and removing unneeded newlines

2016-08-10 Thread Alex Deucher
On Wed, Aug 10, 2016 at 3:17 AM, Christian König wrote: > Am 10.08.2016 um 09:02 schrieb Alexandre Demers: >> >> Signed-off-by: Alexandre Demers > > > Reviewed-by: Christian König Applied. Thanks! Alex > > >>

[pull] amdgpu drm-next-4.8

2016-08-05 Thread Alex Deucher
unbinding it from GTT (2016-08-05 13:37:02 -0400) Alex Deucher (2): drm/amdgpu/gmc7: add missing mullins case drm/amdgpu/ci: add mullins to default case for smc ucode Eric Huang (1): drm/amd/amdgpu: change pptable

Re: [PATCH 07/14] drm/amdgpu: To define whether the GPU has DCE engine.

2016-08-05 Thread Alex Deucher
ed-off-by: Emily Deng <emily.d...@amd.com> Reviewed-by: Alex Deucher <alexander.deuc...@amd.com> > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c | 27 +++ > drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.h | 2 ++ > 2 files changed, 29 insertions(+

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 12/13] drm/amdgpu: Define one variable for virtual display.

2016-08-04 Thread Alex Deucher
On Wed, Aug 3, 2016 at 11:42 PM, Emily Deng wrote: > For virtual display feature, define on variable in amdgpu.ko. When want to > enable virtual display feature, need set the option > "amdgpu.virtual_display=1". > And then disable vga render and crtc if have DCE engine. > >

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 > --- >

Re: [PATCH 0/7] Minor DP aux transaction fixes

2016-08-08 Thread Alex Deucher
On Fri, Aug 5, 2016 at 8:30 PM, Lyude wrote: > While I was investigating an unrelated bug on the radeon driver, I noticed > that > it's become rather difficult to actually read through dmesg with drm.debug > turned on, on account of the huge number of messages we end up

[PATCH 3/3] drm/amdgpu: add virtual dce support for iceland

2016-08-08 Thread Alex Deucher
Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> --- drivers/gpu/drm/amd/amdgpu/vi.c | 58 +++-- 1 file changed, 56 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/vi.c b/drivers/gpu/drm/amd/amdgpu/vi.c index 2d3e3ed..6

[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

[PATCH 1/3] drm/amdgpu: move vsync_timer_enabled setup to dce virtual early_init

2016-08-08 Thread Alex Deucher
Put it in one place. Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> --- drivers/gpu/drm/amd/amdgpu/cik.c | 1 - drivers/gpu/drm/amd/amdgpu/dce_virtual.c | 1 + drivers/gpu/drm/amd/amdgpu/vi.c | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/d

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 << >

Re: [PATCH 6/6] drm/amdgpu: use more than 64KB fragment size if possible

2016-08-09 Thread Alex Deucher
oe...@amd.com> For the series: Reviewed-by: Alex Deucher <alexander.deuc...@amd.com> > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 12 > 1 file changed, 8 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c > b/drivers/gpu/d

Re: [PATCH] drm/amdgpu: print more accurate error messages on IB submission failure

2016-08-01 Thread Alex Deucher
On Mon, Aug 1, 2016 at 1:42 PM, Marek Olšák <mar...@gmail.com> wrote: > From: Marek Olšák <marek.ol...@amd.com> > > It's useful for debugging. > > Signed-off-by: Marek Olšák <marek.ol...@amd.com> Reviewed-by: Alex Deucher <alexander.deuc...@amd.com&g

[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.

[pull] radeon and amdgpu drm-next-4.8

2016-07-29 Thread Alex Deucher
/powerplay: remove enable_clock_power_gatings_tasks from initialize and resume events (2016-07-29 14:37:13 -0400) Alex Deucher (6): drm/radeon: fix firmware info version checks drm/amdgpu: fix firmware info version checks

Re: [PATCH xf86-video-amdgpu] Remove unused lut_r/g/b arrays from drmmode_crtc_private_rec

2016-08-17 Thread Alex Deucher
On Wed, Aug 17, 2016 at 5:58 AM, Michel Dänzer <mic...@daenzer.net> wrote: > From: Michel Dänzer <michel.daen...@amd.com> > > Fixes: 1091f28e1fa2 ("Remove drmmode_load_palette") > Signed-off-by: Michel Dänzer <michel.daen...@amd.com> Reviewed-by:

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: PRT support for amdgpu v2

2017-02-02 Thread Alex Deucher
On Thu, Feb 2, 2017 at 4:05 PM, Bas Nieuwenhuizen wrote: > What branch is this based on? It fails to apply for me on > drm-next-4.11-wip of Alex' git repo. Probably amd-staging-4.9 Alex > > On Thu, Feb 2, 2017, at 11:25, Christian König wrote: >> Hi guys, >> >> a

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.

[pull] radeon and amdgpu drm-fixes-4.10

2017-01-25 Thread Alex Deucher
/linux drm-fixes-4.10 for you to fetch changes up to b9b487e494712c8e5905b724e12f5ef17e9ae6f9: Revert "drm/radeon: always apply pci shutdown callbacks" (2017-01-25 16:54:50 -0500) ---- Alex Deucher (1): Revert &

[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

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

2017-02-22 Thread Alex Deucher
On Wed, Feb 22, 2017 at 2:58 AM, Xiaojie Yuan <xiaojie.y...@amd.com> wrote: > Signed-off-by: Xiaojie Yuan <xiaojie.y...@amd.com> Reviewed-by: Alex Deucher <alexander.deuc...@amd.com> > --- > drivers/gpu/drm/amd/amdgpu/dce_v6_0.c | 130 > +++

[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 0/8] Refactor DC atomic commit and gamma

2017-02-10 Thread Alex Deucher
On Thu, Feb 9, 2017 at 4:41 PM, Harry Wentland wrote: > These patches are first steps of addressing some of the problems > in DC's atomic implementation. Please take a look and provide > feedback if possible. Our hope is that we can start setting a > direction on fixing up

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

  1   2   3   4   5   6   7   8   9   10   >