[PATCH] drm/amd/display: Remove set but used 'temp'

2020-09-15 Thread Ye Bin
Addresses the following gcc warning with "make W=1": In file included from drivers/gpu/drm/amd/amdgpu/../display/dmub/src/../dmub_srv.h:67:0, from drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn21.c:26: drivers/gpu/drm/amd/amdgpu/../display/dmub/src/../inc/dmub_cmd.h: In function

[PATCH] drm/amd/display: Make some function static

2020-09-15 Thread Ye Bin
This addresses the following gcc warning with "make W=1": drivers/gpu/drm/amd/amdgpu/../display/dc/dce100/dce100_resource.c:621:22: warning: no previous prototype for ‘dce100_link_encoder_create’ [-Wmissing-prototypes] struct link_encoder *dce100_link_encoder_create( ^

RE: [PATCH 2/3] drm/amdgpu: add per device user friendly xgmi events for vega20

2020-09-15 Thread Kim, Jonathan
> -Original Message- > From: Kasiviswanathan, Harish > Sent: Tuesday, September 15, 2020 10:08 PM > To: Kim, Jonathan ; amd- > g...@lists.freedesktop.org > Subject: RE: [PATCH 2/3] drm/amdgpu: add per device user friendly xgmi > events for vega20 > > [AMD Official Use Only - Internal

RE: [PATCH 3/3] drm/amdgpu: add xgmi perfmons for arcturus

2020-09-15 Thread Kasiviswanathan, Harish
[AMD Official Use Only - Internal Distribution Only] Reviewed-by: Harish Kasiviswanathan -Original Message- From: Kim, Jonathan Sent: Tuesday, September 15, 2020 6:00 PM To: amd-gfx@lists.freedesktop.org Cc: Kasiviswanathan, Harish ; Kim, Jonathan ; Kim, Jonathan Subject: [PATCH

RE: [PATCH 2/3] drm/amdgpu: add per device user friendly xgmi events for vega20

2020-09-15 Thread Kasiviswanathan, Harish
[AMD Official Use Only - Internal Distribution Only] Some comments and a question -Original Message- From: Kim, Jonathan Sent: Tuesday, September 15, 2020 6:00 PM To: amd-gfx@lists.freedesktop.org Cc: Kasiviswanathan, Harish ; Kim, Jonathan ; Kim, Jonathan Subject: [PATCH 2/3]

Re: [PATCH] drm/amdgpu: prevent double kfree ttm->sg

2020-09-15 Thread Felix Kuehling
Am 2020-09-15 um 5:52 p.m. schrieb Philip Yang: > Set ttm->sg to NULL after kfree, to avoid memory corruption backtrace: > > [ 420.932812] kernel BUG at > /build/linux-do9eLF/linux-4.15.0/mm/slub.c:295! > [ 420.934182] invalid opcode: [#1] SMP NOPTI > [ 420.935445] Modules linked in:

Re: [PATCH] drm/amd/display: Don't log hdcp module warnings in dmesg

2020-09-15 Thread Rodrigo Siqueira
On 09/15, Bhawanpreet Lakha wrote: > [Why] > DTM topology updates happens by default now. This results in DTM > warnings when hdcp is not even being enabled. This spams the dmesg > and doesn't effect normal display functionality so it is better to log it > using DRM_DEBUG_KMS() > > [How] > Change

Re: [PATCH] drm/amd/display: Don't log hdcp module warnings in dmesg

2020-09-15 Thread Deucher, Alexander
[AMD Official Use Only - Internal Distribution Only] Acked-by: Alex Deucher From: Bhawanpreet Lakha Sent: Tuesday, September 15, 2020 5:38 PM To: Deucher, Alexander Cc: Siqueira, Rodrigo ; Kazlauskas, Nicholas ; amd-gfx@lists.freedesktop.org ; Lakha,

[PATCH 1/3] drm/amdgpu: fix xgmi perfmon a-b-a problem

2020-09-15 Thread Jonathan Kim
Mapping hw counters per event config will cause ABA problems so map per event instead. v2: Discontinue starting perf counters if add fails. Make it clear what's happening with pmc_start. Signed-off-by: Jonathan Kim --- drivers/gpu/drm/amd/amdgpu/amdgpu_df.h | 6 +-

[PATCH 3/3] drm/amdgpu: add xgmi perfmons for arcturus

2020-09-15 Thread Jonathan Kim
Add xgmi perfmons for Arcturus. Signed-off-by: Jonathan Kim --- drivers/gpu/drm/amd/amdgpu/amdgpu_pmu.c | 55 + drivers/gpu/drm/amd/amdgpu/df_v3_6.c| 3 ++ 2 files changed, 58 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pmu.c

[PATCH 2/3] drm/amdgpu: add per device user friendly xgmi events for vega20

2020-09-15 Thread Jonathan Kim
Non-outbound data metrics are non useful so mark them as legacy. Bucket new perf counters into device and not device ip. Bind events to chip instead of IP. Report available event counters and not number of hw counter banks. Move DF public macros to private since not needed outside of IP version.

[PATCH 1/3] drm/amdgpu: fix xgmi perfmon a-b-a problem

2020-09-15 Thread Kim, Jonathan
[AMD Official Use Only - Internal Distribution Only] > -Original Message- > From: Kim, Jonathan > Sent: Tuesday, September 15, 2020 5:51 PM > To: amd-...@lists.ffreedesktop.org > Cc: Kasiviswanathan, Harish ; Kim, > Jonathan ; Kim, Jonathan > > Subject: [PATCH 1/3] drm/amdgpu: fix xgmi

[PATCH] drm/amdgpu: prevent double kfree ttm->sg

2020-09-15 Thread Philip Yang
Set ttm->sg to NULL after kfree, to avoid memory corruption backtrace: [ 420.932812] kernel BUG at /build/linux-do9eLF/linux-4.15.0/mm/slub.c:295! [ 420.934182] invalid opcode: [#1] SMP NOPTI [ 420.935445] Modules linked in: xt_conntrack ipt_MASQUERADE [ 420.951332] Hardware name: Dell

Re: General protection fault: RIP: 0010:free_block+0xdc/0x1f0

2020-09-15 Thread Dave Airlie
cc'ing some more people. On Tue, 15 Sep 2020 at 23:07, Paul Menzel wrote: > > Dear Andrew folks, dear Linux folks, > > > With Linux 5.9-rc4 on a Dell OptiPlex 5080 with Intel Core i7-10700 CPU > @ 2.90GHz, and external > > 01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, >

[PATCH] drm/amd/display: Don't log hdcp module warnings in dmesg

2020-09-15 Thread Bhawanpreet Lakha
[Why] DTM topology updates happens by default now. This results in DTM warnings when hdcp is not even being enabled. This spams the dmesg and doesn't effect normal display functionality so it is better to log it using DRM_DEBUG_KMS() [How] Change the DRM_WARN() to DRM_DEBUG_KMS() Signed-off-by:

Re: [PATCH v2] drm/amdgpu/dc: Require primary plane to be enabled whenever the CRTC is

2020-09-15 Thread Alex Deucher
Applied. Thanks! Alex On Mon, Sep 14, 2020 at 10:37 AM Kazlauskas, Nicholas wrote: > > On 2020-09-14 3:52 a.m., Michel Dänzer wrote: > > On 2020-09-07 9:57 a.m., Daniel Vetter wrote: > >> On Fri, Sep 04, 2020 at 12:43:04PM +0200, Michel Dänzer wrote: > >>> From: Michel Dänzer > >>> > >>>

Re: [PATCH v2 20/21] drm/xlnx: Initialize DRM driver instance with CMA helper macro

2020-09-15 Thread Hyun Kwon
Hi Tomas, Thanks for the patch. On Tue, Sep 15, 2020 at 08:53:46AM -0700, Laurent Pinchart wrote: > Hi Thomas, > > Thank you for the patch. > > On Tue, Sep 15, 2020 at 04:59:57PM +0200, Thomas Zimmermann wrote: > > The xlnx driver uses CMA helpers with default callback functions. > >

Re: [PATCH -next] drm/amd/display: Create trigger_hotplug entry

2020-09-15 Thread Alex Deucher
Applied. Thanks! Alex On Thu, Sep 10, 2020 at 11:35 AM Harry Wentland wrote: > > On 2020-09-09 11:13 p.m., YueHaibing wrote: > > Add trigger_hotplug debugfs entry. > > > > Fixes: 6f77b2ac6280 ("drm/amd/display: Add connector HPD trigger debugfs > > entry") > > Signed-off-by: YueHaibing > >

Re: [PATCH -next] drm/amd/display: Fix possible memleak in dp_trigger_hotplug()

2020-09-15 Thread Alex Deucher
Applied. Thanks, Alex On Thu, Sep 10, 2020 at 11:34 AM Harry Wentland wrote: > > On 2020-09-09 11:26 p.m., YueHaibing wrote: > > If parse_write_buffer_into_params() fails, we should free > > wr_buf before return. > > > > Fixes: 6f77b2ac6280 ("drm/amd/display: Add connector HPD trigger debugfs

Re: [PATCH -next 0/8] drm/amd/amdgpu: fix comparison pointer to bool warning

2020-09-15 Thread Ville Syrjälä
On Tue, Sep 15, 2020 at 03:16:32PM -0400, Alex Deucher wrote: > I question the value of these warnings. Why even have a boolean type > if you are going to get warnings when you use them... > That said, applied to avoid getting these patches again and again > every time someone sees this. if

Re: [PATCH -next] drm/ttm/agp: Fix Wunused-variable warning

2020-09-15 Thread Alex Deucher
This function no longer exists. Alex On Thu, Sep 10, 2020 at 4:56 AM Christian König wrote: > > Am 10.09.20 um 04:33 schrieb YueHaibing: > > If CONFIG_AGP is not set, gcc warns: > > > > drivers/gpu/drm/radeon/radeon_ttm.c: In function ‘radeon_ttm_tt_bind’: > >

Re: [PATCH] drm/amd/display: optimize code runtime a bit

2020-09-15 Thread Alex Deucher
Applied. Thanks! Alex On Thu, Sep 10, 2020 at 3:23 AM Bernard Zhao wrote: > > In fnction is_cr_done & is_ch_eq_done, when done = false > happened once, no need to circle left ln_count. > This change is to make the code run a bit fast. > > Signed-off-by: Bernard Zhao > --- >

Re: [PATCH -next 0/8] drm/amd/amdgpu: fix comparison pointer to bool warning

2020-09-15 Thread Alex Deucher
I question the value of these warnings. Why even have a boolean type if you are going to get warnings when you use them... That said, applied to avoid getting these patches again and again every time someone sees this. Alex On Wed, Sep 9, 2020 at 9:21 AM Christian König wrote: > > Acked-by:

Re: [PATCH] drm: amd/display: fix spelling of "function"

2020-09-15 Thread Alex Deucher
Applied. Thanks! Alex On Wed, Sep 9, 2020 at 3:05 AM Randy Dunlap wrote: > > From: Randy Dunlap > > Fix spellos of "function" in drivers/gpu/drm/amd/display/. > > Signed-off-by: Randy Dunlap > Cc: Harry Wentland > Cc: Leo Li > Cc: amd-gfx@lists.freedesktop.org > Cc:

Re: [PATCH -next] drm/amd/display: Remove duplicate include

2020-09-15 Thread Alex Deucher
Applied. Thanks! Alex On Wed, Sep 9, 2020 at 3:05 AM Chen Zhou wrote: > > Remove duplicate header which is included twice. > > Signed-off-by: Chen Zhou > --- > drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git

Re: [PATCH] drm/amdgpu/pm: Account for extra separator characters in sysfs interface

2020-09-15 Thread Alex Deucher
Applied. Thanks! Alex On Tue, Sep 8, 2020 at 9:54 PM Quan, Evan wrote: > > [AMD Official Use Only - Internal Distribution Only] > > Thanks. Reviewed-by: Evan Quan > > -Original Message- > From: amd-gfx On Behalf Of Matt Coffin > Sent: Friday, September 4, 2020 5:06 AM > To:

[PATCH] Revert "drm/radeon: handle PCIe root ports with addressing limitations"

2020-09-15 Thread Alex Deucher
This change breaks tons of systems. This reverts commit 33b3ad3788aba846fc8b9a065fe2685a0b64f713. Bug: https://bugzilla.kernel.org/show_bug.cgi?id=206973 Bug: https://bugzilla.kernel.org/show_bug.cgi?id=206697 Bug: https://bugzilla.kernel.org/show_bug.cgi?id=207763 Bug:

Re: [PATCH 4/4] drm/amd/pm: add Raven2 watermak WmType setting

2020-09-15 Thread Alex Deucher
On Mon, Sep 7, 2020 at 5:02 AM Evan Quan wrote: > > Which tells it's a nomral pstate change or memory retraining. Same typos as patch 3. With those fixed: Acked-by: Alex Deucher > > Change-Id: If55d6c3f1dfc28005c6d767154664feddcda6f5b > Signed-off-by: Evan Quan > Tested-by: Changfeng Zhu >

Re: [PATCH 1/4] drm/amd/pm: drop dead code

2020-09-15 Thread Alex Deucher
On Mon, Sep 7, 2020 at 5:01 AM Evan Quan wrote: > > Raven never goes to swsmu path. So "adev->smu.ppt_funcs" will be > always false. > > Change-Id: Ia55ad97bcf9ecf135a9bd795f36a5b521d718b20 > Signed-off-by: Evan Quan > Tested-by: Changfeng Zhu Patches 1, 2: Acked-by: Alex Deucher > --- >

Re: [PATCH 3/4] drm/amd/pm: add Renoir watermak WmType setting

2020-09-15 Thread Alex Deucher
On Mon, Sep 7, 2020 at 5:02 AM Evan Quan wrote: > Typo in the subject: watermak -> watermark > Which tells it's a nomral pstate change or memory retraining. Typo: nomral -> normal with those fixed: Acked-by: Alex Deucher > > Change-Id: I8619115486021537b52c067c4d0b9bfc1417fc35 >

[PATCH 4/4] drm/amdgpu: add device ID for sienna_cichlid (v2)

2020-09-15 Thread Alex Deucher
From: Likun Gao Add device ID for sienna_cichlid. v2: squash in additional device ids. Signed-off-by: Likun Gao Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 8 1 file changed, 8 insertions(+) diff --git

[PATCH 3/4] drm/amdgpu: use the AV1 defines for VCN 3.0

2020-09-15 Thread Alex Deucher
Switch from magic numbers to defines for AV1 clockgating. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c

[PATCH 1/4] drm/amdgpu: add the GC 10.3 VRS registers

2020-09-15 Thread Alex Deucher
Add the VRS registers. Signed-off-by: Alex Deucher --- .../include/asic_reg/gc/gc_10_3_0_default.h | 2 + .../include/asic_reg/gc/gc_10_3_0_offset.h| 4 ++ .../include/asic_reg/gc/gc_10_3_0_sh_mask.h | 50 +++ 3 files changed, 56 insertions(+) diff --git

[PATCH 2/4] drm/amdgpu: add VCN 3.0 AV1 registers

2020-09-15 Thread Alex Deucher
This adds the AV1 registers. Signed-off-by: Alex Deucher --- .../include/asic_reg/vcn/vcn_3_0_0_sh_mask.h | 34 +++ 1 file changed, 34 insertions(+) diff --git a/drivers/gpu/drm/amd/include/asic_reg/vcn/vcn_3_0_0_sh_mask.h

[PATCH] drm/amdgpu: remove experimental flag from navi12

2020-09-15 Thread Alex Deucher
Navi12 has worked fine for a while now. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index

Re: [PATCH v2 06/21] drm/i915: Introduce GEM object functions

2020-09-15 Thread Tvrtko Ursulin
On 15/09/2020 15:59, Thomas Zimmermann wrote: GEM object functions deprecate several similar callback interfaces in struct drm_driver. This patch replaces the per-driver callbacks with per-instance callbacks in i915. v2: * move object-function instance to i915_gem_object.c (Jani)

Re: [PATCH v2 20/21] drm/xlnx: Initialize DRM driver instance with CMA helper macro

2020-09-15 Thread Laurent Pinchart
Hi Thomas, Thank you for the patch. On Tue, Sep 15, 2020 at 04:59:57PM +0200, Thomas Zimmermann wrote: > The xlnx driver uses CMA helpers with default callback functions. > Initialize the driver structure with the rsp CMA helper macro. The > driver is being converted to use GEM object functions

Re: [PATCH v2 00/21] Convert all remaining drivers to GEM object functions

2020-09-15 Thread Christian König
Added my rb to the amdgpu and radeon patches. Should we pick those up through the amd branches or do you want to push everything to drm-misc-next? I think the later since this should result in much merge clash. Christian. Am 15.09.20 um 16:59 schrieb Thomas Zimmermann: The GEM and PRIME

Re: [PATCH v2 02/21] drm/armada: Introduce GEM object functions

2020-09-15 Thread Russell King - ARM Linux admin
On Tue, Sep 15, 2020 at 04:59:39PM +0200, Thomas Zimmermann wrote: > GEM object functions deprecate several similar callback interfaces in > struct drm_driver. This patch replaces the per-driver callbacks with > per-instance callbacks in armada. > > Signed-off-by: Thomas Zimmermann Acked-by:

Re: [PATCH v2 12/21] drm/radeon: Introduce GEM object functions

2020-09-15 Thread Christian König
Am 15.09.20 um 16:59 schrieb Thomas Zimmermann: GEM object functions deprecate several similar callback interfaces in struct drm_driver. This patch replaces the per-driver callbacks with per-instance callbacks in radeon. v2: * move object-function instance to radeon_gem.c (Christian)

Re: [PATCH v2 01/21] drm/amdgpu: Introduce GEM object functions

2020-09-15 Thread Christian König
Am 15.09.20 um 16:59 schrieb Thomas Zimmermann: GEM object functions deprecate several similar callback interfaces in struct drm_driver. This patch replaces the per-driver callbacks with per-instance callbacks in amdgpu. The only exception is gem_prime_mmap, which is non-trivial to convert. v2:

[PATCH v2 16/21] drm/vgem: Introduce GEM object functions

2020-09-15 Thread Thomas Zimmermann
GEM object functions deprecate several similar callback interfaces in struct drm_driver. This patch replaces the per-driver callbacks with per-instance callbacks in vgem. The only exception is gem_prime_mmap, which is non-trivial to convert. Signed-off-by: Thomas Zimmermann ---

[PATCH v2 21/21] drm: Remove obsolete GEM and PRIME callbacks from struct drm_driver

2020-09-15 Thread Thomas Zimmermann
Several GEM and PRIME callbacks have been deprecated in favor of per-instance GEM object functions. Remove the callbacks as they are now unused. The only exception is .gem_prime_mmap, which is still in use by several drivers. What is also gone is gem_vm_ops in struct drm_driver. All drivers now

[PATCH v2 17/21] drm/virtgpu: Set PRIME export function in struct drm_gem_object_funcs

2020-09-15 Thread Thomas Zimmermann
GEM object functions deprecate several similar callback interfaces in struct drm_driver. This patch replaces virtgpu's per-driver PRIME export function with a per-object function. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/virtio/virtgpu_drv.c| 1 -

[PATCH v2 19/21] drm/xen: Introduce GEM object functions

2020-09-15 Thread Thomas Zimmermann
GEM object functions deprecate several similar callback interfaces in struct drm_driver. This patch replaces the per-driver callbacks with per-instance callbacks in xen. The only exception is gem_prime_mmap, which is non-trivial to convert. v2: * convert xen_drm_drv_free_object_unlocked()

[PATCH v2 05/21] drm/gma500: Introduce GEM object functions

2020-09-15 Thread Thomas Zimmermann
GEM object functions deprecate several similar callback interfaces in struct drm_driver. This patch replaces the per-driver callbacks with per-instance callbacks in gma500. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/gma500/framebuffer.c | 2 ++ drivers/gpu/drm/gma500/gem.c |

[PATCH v2 20/21] drm/xlnx: Initialize DRM driver instance with CMA helper macro

2020-09-15 Thread Thomas Zimmermann
The xlnx driver uses CMA helpers with default callback functions. Initialize the driver structure with the rsp CMA helper macro. The driver is being converted to use GEM object functions as part of this change. Two callbacks, .dumb_destroy and .gem_prime_import, were initialized to their default

[PATCH v2 14/21] drm/tegra: Introduce GEM object functions

2020-09-15 Thread Thomas Zimmermann
GEM object functions deprecate several similar callback interfaces in struct drm_driver. This patch replaces the per-driver callbacks with per-instance callbacks in tegra. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/tegra/drm.c | 4 drivers/gpu/drm/tegra/gem.c | 8 2

[PATCH v2 18/21] drm/vkms: Introduce GEM object functions

2020-09-15 Thread Thomas Zimmermann
GEM object functions deprecate several similar callback interfaces in struct drm_driver. This patch replaces the per-driver callbacks with per-instance callbacks in vkms. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/vkms/vkms_drv.c | 8 drivers/gpu/drm/vkms/vkms_gem.c | 13

[PATCH v2 11/21] drm/pl111: Introduce GEM object functions

2020-09-15 Thread Thomas Zimmermann
GEM object functions deprecate several similar callback interfaces in struct drm_driver. This patch replaces the per-driver callbacks with per-instance callbacks in pl111. The only exception is gem_prime_mmap, which is non-trivial to convert. v2: * use

[PATCH v2 09/21] drm/nouveau: Introduce GEM object functions

2020-09-15 Thread Thomas Zimmermann
GEM object functions deprecate several similar callback interfaces in struct drm_driver. This patch replaces the per-driver callbacks with per-instance callbacks in nouveau. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/nouveau/nouveau_drm.c | 9 -

[PATCH v2 03/21] drm/etnaviv: Introduce GEM object functions

2020-09-15 Thread Thomas Zimmermann
GEM object functions deprecate several similar callback interfaces in struct drm_driver. This patch replaces the per-driver callbacks with per-instance callbacks in etnaviv. The only exception is gem_prime_mmap, which is non-trivial to convert. Signed-off-by: Thomas Zimmermann ---

[PATCH v2 12/21] drm/radeon: Introduce GEM object functions

2020-09-15 Thread Thomas Zimmermann
GEM object functions deprecate several similar callback interfaces in struct drm_driver. This patch replaces the per-driver callbacks with per-instance callbacks in radeon. v2: * move object-function instance to radeon_gem.c (Christian) * set callbacks in

[PATCH v2 06/21] drm/i915: Introduce GEM object functions

2020-09-15 Thread Thomas Zimmermann
GEM object functions deprecate several similar callback interfaces in struct drm_driver. This patch replaces the per-driver callbacks with per-instance callbacks in i915. v2: * move object-function instance to i915_gem_object.c (Jani) Signed-off-by: Thomas Zimmermann ---

[PATCH v2 01/21] drm/amdgpu: Introduce GEM object functions

2020-09-15 Thread Thomas Zimmermann
GEM object functions deprecate several similar callback interfaces in struct drm_driver. This patch replaces the per-driver callbacks with per-instance callbacks in amdgpu. The only exception is gem_prime_mmap, which is non-trivial to convert. v2: * move object-function instance to

[PATCH v2 08/21] drm/msm: Introduce GEM object funcs

2020-09-15 Thread Thomas Zimmermann
GEM object functions deprecate several similar callback interfaces in struct drm_driver. This patch replaces the per-driver callbacks with per-instance callbacks in msm. The only exception is gem_prime_mmap, which is non-trivial to convert. Signed-off-by: Thomas Zimmermann ---

[PATCH v2 15/21] drm/vc4: Introduce GEM object functions

2020-09-15 Thread Thomas Zimmermann
GEM object functions deprecate several similar callback interfaces in struct drm_driver. This patch replaces the per-driver callbacks with per-instance callbacks in vc4. The only exception is gem_prime_mmap, which is non-trivial to convert. Signed-off-by: Thomas Zimmermann Reviewed-by: Eric

[PATCH v2 07/21] drm/mediatek: Introduce GEM object functions

2020-09-15 Thread Thomas Zimmermann
GEM object functions deprecate several similar callback interfaces in struct drm_driver. This patch replaces the per-driver callbacks with per-instance callbacks in mediatek. The only exception is gem_prime_mmap, which is non-trivial to convert. Signed-off-by: Thomas Zimmermann ---

[PATCH v2 10/21] drm/omapdrm: Introduce GEM object functions

2020-09-15 Thread Thomas Zimmermann
GEM object functions deprecate several similar callback interfaces in struct drm_driver. This patch replaces the per-driver callbacks with per-instance callbacks in omapdrm. v2: * make omap_gem_free_object() static (Tomi) Signed-off-by: Thomas Zimmermann Reviewed-by: Laurent Pinchart

[PATCH v2 02/21] drm/armada: Introduce GEM object functions

2020-09-15 Thread Thomas Zimmermann
GEM object functions deprecate several similar callback interfaces in struct drm_driver. This patch replaces the per-driver callbacks with per-instance callbacks in armada. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/armada/armada_drv.c | 3 --- drivers/gpu/drm/armada/armada_gem.c |

[PATCH v2 13/21] drm/rockchip: Convert to drm_gem_object_funcs

2020-09-15 Thread Thomas Zimmermann
GEM object functions deprecate several similar callback interfaces in struct drm_driver. This patch replaces the per-driver callbacks with per-instance callbacks in rockchip. The only exception is gem_prime_mmap, which is non-trivial to convert. Signed-off-by: Thomas Zimmermann ---

[PATCH v2 04/21] drm/exynos: Introduce GEM object functions

2020-09-15 Thread Thomas Zimmermann
GEM object functions deprecate several similar callback interfaces in struct drm_driver. This patch replaces the per-driver callbacks with per-instance callbacks in exynos. The only exception is gem_prime_mmap, which is non-trivial to convert. Signed-off-by: Thomas Zimmermann ---

[PATCH v2 00/21] Convert all remaining drivers to GEM object functions

2020-09-15 Thread Thomas Zimmermann
The GEM and PRIME related callbacks in struct drm_driver are deprecated in favor of GEM object functions in struct drm_gem_object_funcs. This patchset converts the remaining drivers to object functions and removes most of the obsolete interfaces. Patches #1 to #16 and #18 to #19 convert DRM

Re: [PATCH] amdgpu/gmc_v9: Warn if SDPIF_MMIO_CNTRL_0 is not set

2020-09-15 Thread Alex Deucher
On Mon, Sep 14, 2020 at 12:55 AM Shirish S wrote: > > With IOMMU enabled, if SDPIF_MMIO_CNTRL_0 is not set > appropriately the system hangs without any trace > during S3. > > To ease debug and to ensure that the failure, if any, > was caused by a race conditions that disabled write access to >

Re: [PATCH 18/20] drm/xen: Introduce GEM object functions

2020-09-15 Thread Thomas Zimmermann
Hi Am 13.08.20 um 13:19 schrieb Oleksandr Andrushchenko: > Hi, > > On 8/13/20 11:36 AM, Thomas Zimmermann wrote: >> GEM object functions deprecate several similar callback interfaces in >> struct drm_driver. This patch replaces the per-driver callbacks with >> per-instance callbacks in xen. The

Re: [PATCH v1 ] drm/amd/pm: Removed fixed clock in auto mode DPM

2020-09-15 Thread Christian König
Am 15.09.20 um 09:18 schrieb Sudheesh Mavila: SMU10_UMD_PSTATE_PEAK_FCLK value should not be used to set the DPM. Change suggested by evan.q...@amd.com Can't say much about the change itself, but the Commit message is indented and the indentation in the code doesn't look

[PATCH v1 ] drm/amd/pm: Removed fixed clock in auto mode DPM

2020-09-15 Thread Sudheesh Mavila
SMU10_UMD_PSTATE_PEAK_FCLK value should not be used to set the DPM. Change suggested by evan.q...@amd.com Signed-off-by: Sudheesh Mavila --- drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git