Re: amdgpu: Manual Card Configuration Change

2020-10-19 Thread Josh Fuhs
Thanks. I tried 5.9.1 and I think there's still a problem, or at least something different. Using the same configuration script, I noticed that my cards are running a lot hotter. For example, here's total power consumption of a two-card system with two different kernels: 5.8.14: 460W

[PATCH] [RFC/HACK] drm/ttm: avoid multihop moves in drivers.

2020-10-19 Thread Dave Airlie
From: Dave Airlie --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 128 +++- drivers/gpu/drm/nouveau/nouveau_bo.c| 106 ++-- drivers/gpu/drm/radeon/radeon_ttm.c | 110 ++-- drivers/gpu/drm/ttm/ttm_bo.c| 44 +++- 4 files

[RFC HACKY] ttm don't allow multihop moves

2020-10-19 Thread Dave Airlie
This is an RFC for a hacky idea I had to at least move the converation forward. The branch with this in it is: https://github.com/airlied/linux/tree/ttm-bounce it won't apply to any other tree as it's based on all those patches I posted and some other refactorings. The basic idea is if the

Re: [PATCH 3/5] drm/ttm: drop bo->num_pages.

2020-10-19 Thread Dave Airlie
On Tue, 20 Oct 2020 at 08:23, Dave Airlie wrote: > > From: Dave Airlie > > This is stored in the mem field, everywhere that a new mem is > created, the bo->mem is either copied or this field is copied > explicitly. This has a problem with the pipeline gutting path, since it memset (bo->mem to

Re: [PATCH] drm: document that user-space should avoid parsing EDIDs

2020-10-19 Thread Vitaly Prosyak
On 2020-10-19 3:49 a.m., Pekka Paalanen wrote: On Fri, 16 Oct 2020 16:50:16 +0300 Ville Syrjälä wrote: On Mon, Oct 12, 2020 at 10:11:01AM +0300, Pekka Paalanen wrote: On Fri, 9 Oct 2020 17:20:18 +0300 Ville Syrjälä wrote: On Fri, Oct 09, 2020 at 04:56:51PM +0300, Pekka Paalanen wrote:

[PATCH 1/7] drm/ttm: move some move binds into the drivers

2020-10-19 Thread Dave Airlie
From: Dave Airlie This just gives the driver control over some of the bind paths. Signed-off-by: Dave Airlie --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 7 ++- drivers/gpu/drm/nouveau/nouveau_bo.c| 10 +++--- drivers/gpu/drm/radeon/radeon_ttm.c | 11 ---

[PATCH 3/7] drm/ttm: add move to system into drivers

2020-10-19 Thread Dave Airlie
From: Dave Airlie This moves the to system move into the drivers, and moves all the unbinds in the move path under driver control Note: radeon/nouveau already wait so don't duplicate it. Signed-off-by: Dave Airlie --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c| 12 +---

[PATCH 6/7] drm/ttm: drop move notify around move.

2020-10-19 Thread Dave Airlie
From: Dave Airlie The drivers now do this in the move callback. move_notify is still needed in the destroy path. Signed-off-by: Dave Airlie --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c| 13 +-- drivers/gpu/drm/drm_gem_vram_helper.c | 11 +-

[PATCH 7/7] drm/ttm: move last binding into the drivers.

2020-10-19 Thread Dave Airlie
From: Dave Airlie This moves the call to tt binding into the driver move, and drops the driver callback. Signed-off-by: Dave Airlie --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c| 7 ++- drivers/gpu/drm/nouveau/nouveau_bo.c | 7 ++- drivers/gpu/drm/qxl/qxl_ttm.c

[PATCH 2/7] drm/ttm: minor cleanup to move to system

2020-10-19 Thread Dave Airlie
From: Dave Airlie resource free already sets the domain to system, and old_mem isn't really needed. Signed-off-by: Dave Airlie --- drivers/gpu/drm/ttm/ttm_bo_util.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_bo_util.c

[PATCH 4/7] drm/ttm: drop unbind callback.

2020-10-19 Thread Dave Airlie
From: Dave Airlie The drivers now control this, so drop unbinding. Signed-off-by: Dave Airlie --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c| 1 - drivers/gpu/drm/nouveau/nouveau_bo.c | 1 - drivers/gpu/drm/qxl/qxl_ttm.c | 7 --- drivers/gpu/drm/radeon/radeon_ttm.c

[PATCH 5/7] drm/ttm: remove move to new and inline into remainging place.

2020-10-19 Thread Dave Airlie
From: Dave Airlie This show the remaining bind callback, which my next series of patches will aim to remove. Signed-off-by: Dave Airlie --- drivers/gpu/drm/ttm/ttm_bo.c | 16 +--- drivers/gpu/drm/ttm/ttm_bo_util.c | 20 include/drm/ttm/ttm_bo_driver.h |

[PATCH 0/7] drm/ttm: get rid of bind/unbind

2020-10-19 Thread Dave Airlie
This series is a rebase/cleanup of previous patches. The goal is to drop the bind/unbind callbacks from the ttm and have the driver handle it all in it's move function. This also has the driver do it's own move notifys from within move as well (move notify is still used for cleanup_memtype_use0.

[PATCH 0/5] ttm fix range checks + drop some fields

2020-10-19 Thread Dave Airlie
This fixes some range checks first. Then drops bo->num_pages in favour of bo->mem.num_pages, and drops bo->mem.size in favour of bo->mem.num_pages. Dave. ___ dri-devel mailing list dri-devel@lists.freedesktop.org

[PATCH 1/5] drm/ttm: fix eviction valuable range check.

2020-10-19 Thread Dave Airlie
From: Dave Airlie This was adding size to start, but pfn and start are in pages, so it should be using num_pages. Not sure this fixes anything in the real world, just noticed it during refactoring. Signed-off-by: Dave Airlie --- drivers/gpu/drm/ttm/ttm_bo.c | 2 +- 1 file changed, 1

[PATCH 4/5] drm/ttm: add bo size in bytes wrapper.

2020-10-19 Thread Dave Airlie
From: Dave Airlie We store size and num pages, wrap size so it can be removed. Signed-off-by: Dave Airlie --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 8 drivers/gpu/drm/amd/amdgpu/mes_v10_1.c | 2 +- drivers/gpu/drm/nouveau/nouveau_bo.c | 8

[PATCH 3/5] drm/ttm: drop bo->num_pages.

2020-10-19 Thread Dave Airlie
From: Dave Airlie This is stored in the mem field, everywhere that a new mem is created, the bo->mem is either copied or this field is copied explicitly. Signed-off-by: Dave Airlie --- drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c | 4 ++-- drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 2 +-

[PATCH 2/5] drm/ttm: fix memcpy move bo size comparison

2020-10-19 Thread Dave Airlie
From: Dave Airlie start is in page units, so compare with pages. Signed-off-by: Dave Airlie --- drivers/gpu/drm/ttm/ttm_bo_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/ttm/ttm_bo_util.c b/drivers/gpu/drm/ttm/ttm_bo_util.c index

[PATCH 5/5] drm/ttm: get rid of storing size in ttm_resource

2020-10-19 Thread Dave Airlie
From: Dave Airlie Just use num_pages and a shift directly. Signed-off-by: Dave Airlie --- drivers/gpu/drm/nouveau/nouveau_bo.c | 2 +- drivers/gpu/drm/nouveau/nv17_fence.c | 2 +- drivers/gpu/drm/nouveau/nv50_fence.c | 2 +- drivers/gpu/drm/ttm/ttm_bo.c | 2 --

ttm_bo_eviction_valuable wrong units?

2020-10-19 Thread Dave Airlie
if (place->fpfn >= (bo->mem.start + bo->mem.size) || (place->lpfn && place->lpfn <= bo->mem.start)) return false; Should the bo->mem.size there be bo->mem.num_pages? I was just writing patches to get rid of size and noticed this. Dave.

[PATCH 3/3] drm/msm/atomic: Convert to per-CRTC kthread_work

2020-10-19 Thread Rob Clark
From: Rob Clark Use a SCHED_FIFO kthread_worker for async atomic commits. We have a hard deadline if we don't want to miss a frame. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/msm_atomic.c | 25 - drivers/gpu/drm/msm/msm_drv.h| 3 ++-

[PATCH 2/3] drm/msm/kms: Update msm_kms_init/destroy

2020-10-19 Thread Rob Clark
From: Rob Clark Add msm_kms_destroy() and add err return from msm_kms_init(). Prep work for next patch. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 8 +++- drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c | 8 +++- drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c | 11

[PATCH 1/3] drm/msm/gpu: Convert retire/recover work to kthread_worker

2020-10-19 Thread Rob Clark
From: Rob Clark Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/adreno/a5xx_gpu.c | 3 +-- drivers/gpu/drm/msm/adreno/a5xx_preempt.c | 6 ++--- drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 4 +-- drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 4 +-- drivers/gpu/drm/msm/msm_gpu.c

[PATCH 0/3] drm/msm: kthread_worker conversion

2020-10-19 Thread Rob Clark
From: Rob Clark In particular, converting the async atomic commit (for cursor updates, etc) to SCHED_FIFO kthread_worker helps with some cases where we wouldn't manage to flush the updates within the 1ms-before-vblank deadline resulting in fps drops when there is cursor movement. Rob Clark (3):

[PATCH v3 17/23] drm/msm: Remove obj->gpu

2020-10-19 Thread Rob Clark
From: Rob Clark It cannot be atomically updated with obj->active_count, and the only purpose is a useless WARN_ON() (which becomes a buggy WARN_ON() once retire_submits() is not serialized with incoming submits via struct_mutex) Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/msm_gem.c | 2

[PATCH v3 22/23] drm/msm: Drop struct_mutex in shrinker path

2020-10-19 Thread Rob Clark
From: Rob Clark Now that the inactive_list is protected by mm_lock, and everything else on per-obj basis is protected by obj->lock, we no longer depend on struct_mutex. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/msm_gem.c | 1 - drivers/gpu/drm/msm/msm_gem_shrinker.c | 54

[PATCH v3 23/23] drm/msm: Don't implicit-sync if only a single ring

2020-10-19 Thread Rob Clark
From: Rob Clark If there is only a single ring (no-preemption), everything is FIFO order and there is no need to implicit-sync. Mesa should probably just always use MSM_SUBMIT_NO_IMPLICIT, as behavior is undefined when fences are not used to synchronize buffer usage across contexts (which is

[PATCH v3 19/23] drm/msm: Drop struct_mutex in free_object() path

2020-10-19 Thread Rob Clark
From: Rob Clark Now that active_list/inactive_list is protected by mm_lock, we no longer need dev->struct_mutex in the free_object() path. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/msm_gem.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/gpu/drm/msm/msm_gem.c

[PATCH v3 15/23] drm/msm: Protect ring->submits with it's own lock

2020-10-19 Thread Rob Clark
From: Rob Clark One less place to rely on dev->struct_mutex. Signed-off-by: Rob Clark Reviewed-by: Jordan Crouse --- drivers/gpu/drm/msm/msm_gem_submit.c | 2 ++ drivers/gpu/drm/msm/msm_gpu.c| 37 ++-- drivers/gpu/drm/msm/msm_ringbuffer.c | 1 +

[PATCH v3 14/23] drm/msm: Document and rename preempt_lock

2020-10-19 Thread Rob Clark
From: Rob Clark Before adding another lock, give ring->lock a more descriptive name. Signed-off-by: Rob Clark Reviewed-by: Jordan Crouse --- drivers/gpu/drm/msm/adreno/a5xx_gpu.c | 4 ++-- drivers/gpu/drm/msm/adreno/a5xx_preempt.c | 12 ++-- drivers/gpu/drm/msm/adreno/a6xx_gpu.c

[PATCH v3 21/23] drm/msm: Drop struct_mutex in madvise path

2020-10-19 Thread Rob Clark
From: Rob Clark The obj->lock is sufficient for what we need. This *does* have the implication that userspace can try to shoot themselves in the foot by racing madvise(DONTNEED) with submit. But the result will be about the same if they did madvise(DONTNEED) before the submit ioctl, ie. they

[PATCH v3 12/23] drm/msm: Move update_fences()

2020-10-19 Thread Rob Clark
From: Rob Clark Small cleanup, update_fences() is used in the hangcheck path, but also in the normal retire path. Signed-off-by: Rob Clark Reviewed-by: Jordan Crouse --- drivers/gpu/drm/msm/msm_gpu.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff

[PATCH v3 18/23] drm/msm: Drop struct_mutex from the retire path

2020-10-19 Thread Rob Clark
From: Rob Clark Now that we are not relying on dev->struct_mutex to protect the ring->submits lists, drop the struct_mutex lock. Signed-off-by: Rob Clark Reviewed-by: Jordan Crouse --- drivers/gpu/drm/msm/msm_gpu.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git

[PATCH v3 20/23] drm/msm: Remove msm_gem_free_work

2020-10-19 Thread Rob Clark
From: Rob Clark Now that we don't need struct_mutex in the free path, we can get rid of the asynchronous free altogether. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/msm_drv.c | 3 --- drivers/gpu/drm/msm/msm_drv.h | 5 - drivers/gpu/drm/msm/msm_gem.c | 27

[PATCH v3 16/23] drm/msm: Refcount submits

2020-10-19 Thread Rob Clark
From: Rob Clark Before we remove dev->struct_mutex from the retire path, we have to deal with the situation of a submit retiring before the submit ioctl returns. To deal with this, ring->submits will hold a reference to the submit, which is dropped when the submit is retired. And the submit

[PATCH v3 13/23] drm/msm: Add priv->mm_lock to protect active/inactive lists

2020-10-19 Thread Rob Clark
From: Rob Clark Rather than relying on the big dev->struct_mutex hammer, introduce a more specific lock for protecting the bo lists. Signed-off-by: Rob Clark Reviewed-by: Jordan Crouse --- drivers/gpu/drm/msm/msm_debugfs.c | 7 +++ drivers/gpu/drm/msm/msm_drv.c | 7

[PATCH v3 02/23] drm/msm/gem: Add obj->lock wrappers

2020-10-19 Thread Rob Clark
From: Rob Clark This will make it easier to transition over to obj->resv locking for everything that is per-bo locking. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/msm_gem.c | 99 --- drivers/gpu/drm/msm/msm_gem.h | 28 ++ 2 files changed, 74

[PATCH v3 03/23] drm/msm/gem: Rename internal get_iova_locked helper

2020-10-19 Thread Rob Clark
From: Rob Clark We'll need to introduce a _locked() version of msm_gem_get_iova(), so we need to make that name available. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/msm_gem.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/msm/msm_gem.c

[PATCH v3 11/23] drm/msm: Drop chatty trace

2020-10-19 Thread Rob Clark
From: Rob Clark It is somewhat redundant with the gpu tracepoints, and anyways not too useful to justify spamming the log when debug traces are enabled. Signed-off-by: Rob Clark Reviewed-by: Jordan Crouse --- drivers/gpu/drm/msm/msm_gpu.c | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCH v3 00/23] drm/msm: de-struct_mutex-ification

2020-10-19 Thread Rob Clark
From: Rob Clark This doesn't remove *all* the struct_mutex, but it covers the worst of it, ie. shrinker/madvise/free/retire. The submit path still uses struct_mutex, but it still needs *something* serialize a portion of the submit path, and lock_stat mostly just shows the lock contention there

[PATCH v3 07/23] drm/msm/submit: Move copy_from_user ahead of locking bos

2020-10-19 Thread Rob Clark
From: Rob Clark We cannot switch to using obj->resv for locking without first moving all the copy_from_user() ahead of submit_lock_objects(). Otherwise in the mm fault path we aquire mm->mmap_sem before obj lock, but in the submit path the order is reversed. Signed-off-by: Rob Clark ---

[PATCH v3 10/23] drm/msm: Use correct drm_gem_object_put() in fail case

2020-10-19 Thread Rob Clark
From: Rob Clark We only want to use the _unlocked() variant in the unlocked case. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/msm_gem.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/msm_gem.c b/drivers/gpu/drm/msm/msm_gem.c index

[PATCH v3 04/23] drm/msm/gem: Move prototypes to msm_gem.h

2020-10-19 Thread Rob Clark
From: Rob Clark Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/disp/mdp4/mdp4_crtc.c | 1 + drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c | 1 + drivers/gpu/drm/msm/dsi/dsi_host.c| 1 + drivers/gpu/drm/msm/msm_drv.h | 54 --

[PATCH v3 09/23] drm/msm/gem: Switch over to obj->resv for locking

2020-10-19 Thread Rob Clark
From: Rob Clark This also converts the special msm_gem_get_vaddr_active() to expect the lock to already be held. There are two call-sites for this, one already has the lock held, so it is more straightforward to just open-code the locking for the other caller. Signed-off-by: Rob Clark ---

[PATCH v3 08/23] drm/msm: Do rpm get sooner in the submit path

2020-10-19 Thread Rob Clark
From: Rob Clark Unfortunately, due to an dev_pm_opp locking interaction with mm->mmap_sem, we need to do pm get before aquiring obj locks, otherwise we can have anger lockdep with the chain: opp_table_lock --> >mmap_sem --> reservation_ww_class_mutex For an explicit fencing userspace, the

[PATCH v3 05/23] drm/msm/gem: Add some _locked() helpers

2020-10-19 Thread Rob Clark
From: Rob Clark When we cut-over to using dma_resv_lock/etc instead of msm_obj->lock, we'll need these for the submit path (where resv->lock is already held). Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/msm_gem.c | 89 +++ drivers/gpu/drm/msm/msm_gem.h |

[PATCH v3 06/23] drm/msm/gem: Move locking in shrinker path

2020-10-19 Thread Rob Clark
From: Rob Clark Move grabbing the bo lock into shrinker, with a msm_gem_trylock() to skip over bo's that are already locked. This gets rid of the nested lock classes. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/msm_gem.c | 24 + drivers/gpu/drm/msm/msm_gem.h

[PATCH v3 01/23] drm/msm: Fix a couple incorrect usages of get_vaddr_active()

2020-10-19 Thread Rob Clark
From: Rob Clark The microcode bo's should never be madvise(WONTNEED), so these should not be using msm_gem_get_vaddr_active(). Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/adreno/a5xx_gpu.c | 2 +- drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 2 +- 2 files changed, 2 insertions(+), 2

Re: It appears drm-next TTM cleanup broke something . . .

2020-10-19 Thread Sam Ravnborg
Hi Kevin. On Mon, Oct 19, 2020 at 09:43:08PM +0200, Kevin Brace wrote: > Hi Sam, > > Thanks for asking the question. > The current OpenChrome DRM code has these two major issues. > > 1) It does not support atomic modesetting > > I do internally have working code to support atomic modesetting,

Re: It appears drm-next TTM cleanup broke something . . .

2020-10-19 Thread Kevin Brace
Hi Sam, Thanks for asking the question. The current OpenChrome DRM code has these two major issues. 1) It does not support atomic modesetting I do internally have working code to support atomic modesetting, but it is not ready for committing into the upstream OpenChrome DRM repository. In

[PATCH] drm/amd/display: fix a possible NULL pointer dereference in bios_parser_get_src_obj()

2020-10-19 Thread estherbdf
[Why] the func bios_parser_get_src_obj () is similar to bios_parser_get_dst_obj () which is fixed by the commit("drm/amd/display: Banch of smatch error and warning fixes in DC"). the symbol 'id' is uninitialized and it is not checked before dereference it,may lead to null pointer

Re: [PATCH v3 19/20] drm/tegra: Implement new UAPI

2020-10-19 Thread Dmitry Osipenko
07.10.2020 20:12, Mikko Perttunen пишет: > +int tegra_drm_ioctl_channel_map(struct drm_device *drm, void *data, > + struct drm_file *file) > +{ Hello, Mikko! Could you please tell what are the host1x clients that are going to be upstreamed and will need this IOCTL?

Re: [PATCH v3 19/20] drm/tegra: Implement new UAPI

2020-10-19 Thread Dmitry Osipenko
19.10.2020 11:13, Mikko Perttunen пишет: > On 10/19/20 5:21 AM, Dmitry Osipenko wrote: >> 07.10.2020 20:12, Mikko Perttunen пишет: >>> +int tegra_drm_ioctl_channel_map(struct drm_device *drm, void *data, >>> +    struct drm_file *file) >>> +{ >> >> Hello, Mikko! >> >> Could you please

[PATCH] drm/amd/display: Fix missing declaration of enable_kernel_vsx()

2020-10-19 Thread Christophe Leroy
Include in order to avoid following build failure because of missing declaration of enable_kernel_vsx() CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.o In file included from ./drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:29, from

Re: [PATCH v2] drm/of: Consider the state in which the ep is disabled

2020-10-19 Thread Kever Yang
Hi Daniel, On 2020/10/15 下午11:23, Daniel Vetter wrote: On Wed, Oct 14, 2020 at 09:48:43AM +0800, Kever Yang wrote: Hi Maintainers,     Does this patch ready to merge? Would maybe be good to get some acks from other drivers using this, then Sandy can push to drm-misc-next. Thanks for your

[PATCH] drm/nouveau: fix memory leak in iccsense/base.c

2020-10-19 Thread Vamshi K Sthambamkadi
kmemleak report: unreferenced object 0x9071c65644e0 (size 96): comm "systemd-udevd", pid 347, jiffies 4294898424 (age 810.828s) hex dump (first 32 bytes): 02 01 00 00 00 00 00 00 00 00 10 00 02 04 00 00 00 00 00 00 00 00 a0 86 00 00 00 00 00 00 00 00

Re: [PATCH 1/4] drm/vc4: kms: Split the HVS muxing check in a separate function

2020-10-19 Thread Maxime Ripard
Hi Hoegeun, On Mon, Oct 12, 2020 at 09:25:05PM +0900, Hoegeun Kwon wrote: > Hi Maxime, > > On 10/8/20 8:25 PM, Maxime Ripard wrote: > > The code that assigns HVS channels during atomic_check is starting to grow > > a bit big, let's move it into a separate function. > > > > Signed-off-by: Maxime

Re: [PATCH 2/5] dt-bindings: panel: add documentation for oneplus6 panel

2020-10-19 Thread Caleb Connolly
On 2020-10-09 15:05, Rob Herring wrote: > On Wed, Oct 07, 2020 at 05:49:14PM +, Caleb Connolly wrote: >> Document the OnePlus 6/T common panel driver, example from >> arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi >> >> Signed-off-by: Caleb Connolly >> --- >>

Re: [PATCH] drm/amd/display: Fix missing declaration of enable_kernel_vsx()

2020-10-19 Thread Christophe Leroy
patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Christophe-Leroy/drm-amd-display-Fix-missing-declaration-of-enable_kernel_vsx/20201019-174155 base: https://git.kernel.org/pub/scm/linux/kernel/git

[PATCH] gpu: ipu-v3: replace spin_lock_irqsave by spin_lock in hard IRQ

2020-10-19 Thread Tian Tao
The code has been in a irq-disabled context since it is hard IRQ. There is no necessity to do it again. Signed-off-by: Tian Tao --- drivers/gpu/ipu-v3/ipu-image-convert.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/ipu-v3/ipu-image-convert.c

Re: [PATCH 1/5] drm/panel/oneplus6: Add panel-oneplus6

2020-10-19 Thread Caleb Connolly
Hi Sam, Thanks a lot for the feedback! I'll get those issues resolved for the next revision. Caleb On 2020-10-18 14:35, Sam Ravnborg wrote: > Hi Caleb. > > I have missed to provice review feedback so here goes. > There is some improvements that can be made as the infrastructure has > evolved

[PATCH] drm/msm: Remove redundant null check

2020-10-19 Thread Tian Tao
clk_prepare_enable() and clk_disable_unprepare() will check NULL clock parameter, so It is not necessary to add additional checks. Signed-off-by: Tian Tao --- drivers/gpu/drm/msm/msm_gpu.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/msm/msm_gpu.c

Re: [Intel-gfx] [PATCH] drm/i915/ehl: Remove require_force_probe protection

2020-10-19 Thread Chris Wilson
Quoting Rodrigo Vivi (2020-10-19 19:29:36) > > I just checked the CI picture and it looks much better indeed. > > Only bad case being the gt_pm, which is also failing on other platforms. Not nearly in the same manner. CI is indicating that there is no RC6 entry and no power saving at all;

Re: [Intel-gfx] [PATCH] drm/i915/ehl: Remove require_force_probe protection

2020-10-19 Thread Rodrigo Vivi
I just checked the CI picture and it looks much better indeed. Only bad case being the gt_pm, which is also failing on other platforms. So, Acked-by: Rodrigo Vivi On Thu, Oct 15, 2020 at 08:41:32AM +, K, SrinivasX wrote: > Hi Hariom, > > With Sunil's help was able to see EHL

Re: [Intel-gfx] [PATCH] drm/i915/jsl: Remove require_force_probe protection

2020-10-19 Thread Rodrigo Vivi
On Thu, Oct 15, 2020 at 08:53:08AM +, Kamati Srinivas wrote: > Removing force probe protection from JSL platform. Did > not observe warnings, errors, flickering or any visual > defects while doing ordinary tasks like browsing and > editing documents in a two monitor setup. I'm afraid we first

Re: amdgpu: Manual Card Configuration Change

2020-10-19 Thread Alex Deucher
On Sun, Oct 18, 2020 at 4:32 PM Josh Fuhs wrote: > > Hello all, > > Regarding amdgpu, I've been using some Radeon 5700XTs for compute work with > kernels through 5.8.14. I recently tried kernel 5.9.0, and found that the > following is no longer allowed: > > echo "m 1 200" | sudo tee

Re: [PATCH] drm: remove unneeded break

2020-10-19 Thread Sam Ravnborg
Hi Tom On Mon, Oct 19, 2020 at 09:31:15AM -0700, t...@redhat.com wrote: > From: Tom Rix > > A break is not needed if it is preceded by a return or break > > Signed-off-by: Tom Rix Looks good and builds with no warnings. One of the diffs made me - "oh this looks wrong". But after I looked

[PATCH v3 0/2] drm: add DisplayPort connector

2020-10-19 Thread Tomi Valkeinen
Hi, This series adds the DT bindings and a driver for DisplayPort connector. I have previously sent v1 and v2 with only the bindings. The bindings are unchanged, but I updated the patch description slightly for eDP and DP++. Tomi Tomi Valkeinen (2): dt-bindings: dp-connector: add binding

[PATCH v3 2/2] drm/bridge: display-connector: add DP support

2020-10-19 Thread Tomi Valkeinen
Add DP support to display-connector driver. The driver will support HPD via a GPIO and DP PWR. DP PWR will be enabled at probe, which is not optimal, but I'm not sure what would be a good place to enable and disable DP PWR. Perhaps attach/detach, but I don't know if enabling HW is something that

[PATCH v3 1/2] dt-bindings: dp-connector: add binding for DisplayPort connector

2020-10-19 Thread Tomi Valkeinen
Add binding for DisplayPort connector. A few notes: * Similar to hdmi-connector, it has hpd-gpios as an optional property, as the HPD could also be handled by, e.g., the DP bridge. * dp-pwr-supply, which provides 3.3V on DP_PWR pin, is optional, as it is not strictly required: standard DP

Re: It appears drm-next TTM cleanup broke something . . .

2020-10-19 Thread Christian König
Hi Kevin, OpenChrome DDX was sending TTM_PL_FLAG_* based flags to OpenChrome DRM. Ugh, that would be an absolute no-go for upstreaming. Is it too much to ask for using more BUG_ON null pointer assertions for TTM callbacks? I don't think that this is useful at all. See a BUG_ON() has the

[PATCH] drm: remove unneeded break

2020-10-19 Thread trix
From: Tom Rix A break is not needed if it is preceded by a return or break Signed-off-by: Tom Rix --- drivers/gpu/drm/mgag200/mgag200_mode.c | 5 - drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c | 1 - drivers/gpu/drm/nouveau/nvkm/subdev/clk/mcp77.c | 3 ---

Re: It appears drm-next TTM cleanup broke something . . .

2020-10-19 Thread Kevin Brace
Hi Christian, I looked into a few more things, and figured out why OpenChrome DRM was not booting X Server. Now the situation is under control in my side of the world (OpenChrome development world), and I got X Server working again with drm-next 5.10 code and OpenChrome DRM. Code will be

Re: [PATCH 0/5] drm/tidss: Use new connector model for tidss

2020-10-19 Thread Tomi Valkeinen
Hi Nikhil, On 16/10/2020 13:39, Nikhil Devshatwar wrote: > This series moves the tidss to using new connectoe model, where the > SoC driver (tidss) creates the connector and all the bridges are > attached with the flag DRM_BRIDGE_ATTACH_NO_CONNECTOR > > Since the bridges do not create the

Re: [PATCH 2/2 RESEND] docs: fb: Add font_6x8 to available built-in fonts

2020-10-19 Thread Daniel Vetter
On Sun, Oct 18, 2020 at 04:54:01PM -0400, Peilin Ye wrote: > Recently we added a new 6x8 font in commit e2028c8e6bf9 ("lib/fonts: add > font 6x8 for OLED display"). Add its name to the "compiled-in fonts" > list. > > Signed-off-by: Peilin Ye > --- > Resending +Cc: dri-devel, sorry if I spammed.

Re: [PATCH] drm/drm_vblank: use drm_warn_once() to warn undefined mode timing

2020-10-19 Thread Daniel Vetter
On Fri, Oct 16, 2020 at 07:46:41PM +0800, Shawn Guo wrote: > On Fri, Oct 16, 2020 at 11:30:04AM +0200, Daniel Vetter wrote: > > On Fri, Oct 16, 2020 at 10:54 AM Shawn Guo wrote: > > > > > > On Fri, Oct 16, 2020 at 09:58:46AM +0200, Daniel Vetter wrote: > > > > On Fri, Oct 16, 2020 at 9:13 AM

Re: [PATCH v4 05/10] drm/ttm: Add vmap/vunmap to TTM and TTM GEM helpers

2020-10-19 Thread Daniel Vetter
On Mon, Oct 19, 2020 at 11:45:05AM +0200, Christian König wrote: > Hi Thomas, > > [SNIP] > > > >   +int ttm_bo_vmap(struct ttm_buffer_object *bo, struct dma_buf_map > > > > *map) > > > > +{ > > > > +    struct ttm_resource *mem = >mem; > > > > +    int ret; > > > > + > > > > +    ret =

Re: [PATCH v2 0/3] drm/panel: mantix panel reset fixes

2020-10-19 Thread Daniel Vetter
On Sat, Oct 17, 2020 at 12:47:36PM +0200, Sam Ravnborg wrote: > Hi Guido. > > On Sat, Oct 17, 2020 at 11:13:07AM +0200, Guido Günther wrote: > > Hi Sam, > > On Fri, Oct 16, 2020 at 04:29:16PM +0200, Sam Ravnborg wrote: > > > Hi Guido. > > > On Tue, Oct 13, 2020 at 12:32:45PM +0200, Guido Günther

Re: [PATCH] drm/amdgpu: remove unneeded break

2020-10-19 Thread Harry Wentland
On 2020-10-19 10:55 a.m., Christian König wrote: Am 19.10.20 um 16:43 schrieb t...@redhat.com: From: Tom Rix A break is not needed if it is preceded by a return or break Signed-off-by: Tom Rix Acked-by: Christian König Reviewed-by: Harry Wentland Harry ---  

Re: [PATCH 2/2] drm/msm: Fix duplicate gpu node in icc summary

2020-10-19 Thread Jordan Crouse
On Mon, Oct 19, 2020 at 06:49:18PM +0530, Akhil P Oommen wrote: > On targets with a6xx gpu, there is a duplicate gpu icc node listed in > the interconnect summary. On these targets, calling This first sentence is confusing to me. I think the following few sentences do a better job of explaining

Re: [PATCH] drm/amdgpu: remove unneeded break

2020-10-19 Thread Christian König
Am 19.10.20 um 16:43 schrieb t...@redhat.com: From: Tom Rix A break is not needed if it is preceded by a return or break Signed-off-by: Tom Rix Acked-by: Christian König --- drivers/gpu/drm/amd/display/dc/dce/dce_transform.c | 1 -

Re: [Freedreno] [PATCH] drm/msm: Remove redundant null check

2020-10-19 Thread Jordan Crouse
On Mon, Oct 19, 2020 at 02:04:22PM +0800, Tian Tao wrote: > clk_prepare_enable() and clk_disable_unprepare() will check > NULL clock parameter, so It is not necessary to add additional checks. Reviewed-by: Jordan Crouse > Signed-off-by: Tian Tao > --- > drivers/gpu/drm/msm/msm_gpu.c | 7

[PATCH] drm/amdgpu: remove unneeded break

2020-10-19 Thread trix
From: Tom Rix A break is not needed if it is preceded by a return or break Signed-off-by: Tom Rix --- drivers/gpu/drm/amd/display/dc/dce/dce_transform.c | 1 - drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c | 7 --- drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c | 7

Re: [PATCH v2 0/3] drm/panel: mantix panel reset fixes

2020-10-19 Thread Guido Günther
Hi, On Sun, Oct 18, 2020 at 03:38:45PM +0200, Sam Ravnborg wrote: > Hi Guido > > On Sun, Oct 18, 2020 at 03:01:22PM +0200, Guido Günther wrote: > > Hi Sam, > > On Sat, Oct 17, 2020 at 12:47:36PM +0200, Sam Ravnborg wrote: > > > Hi Guido. > > > > > > On Sat, Oct 17, 2020 at 11:13:07AM +0200,

Re: [PATCH] drm/amd/display: Fix missing declaration of enable_kernel_vsx()

2020-10-19 Thread kernel test robot
://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Christophe-Leroy/drm-amd-display-Fix-missing-declaration-of-enable_kernel_vsx/20201019-174155 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 7cf726a59435301046250c42131554d9ccc566b8

[PATCH 2/2] drm/msm: Fix duplicate gpu node in icc summary

2020-10-19 Thread Akhil P Oommen
On targets with a6xx gpu, there is a duplicate gpu icc node listed in the interconnect summary. On these targets, calling dev_pm_opp_of_add_table() api initializes the icc nodes for gpu indirectly. So we should avoid using of_icc_get() api in the common probe path. To fix this, we can move

[PATCH 1/2] drm/msm: Implement shutdown callback for adreno

2020-10-19 Thread Akhil P Oommen
Implement the shutdown callback for adreno gpu platform device to safely shutdown it before a system reboot. This helps to avoid futher transactions from gpu after the smmu is moved to bypass mode. Signed-off-by: Akhil P Oommen --- drivers/gpu/drm/msm/adreno/adreno_device.c | 6 ++ 1 file

[PATCH v2 3/3] dt-bindings: drm/msm/gpu: Add cooling device support

2020-10-19 Thread Akhil P Oommen
Add cooling device support to gpu. A cooling device is bound to a thermal zone to allow thermal mitigation. Signed-off-by: Akhil P Oommen --- Documentation/devicetree/bindings/display/msm/gpu.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git

[PATCH v2 2/3] arm64: dts: qcom: sc7180: Add gpu cooling support

2020-10-19 Thread Akhil P Oommen
Add cooling-cells property and the cooling maps for the gpu tzones to support GPU cooling. Signed-off-by: Akhil P Oommen --- The thermal policy should be set as 'step_wise' for gpu tzones from the userspace during boot up. arch/arm64/boot/dts/qcom/sc7180.dtsi | 30

[PATCH v2 1/3] drm/msm: Add support for GPU cooling

2020-10-19 Thread Akhil P Oommen
Register GPU as a devfreq cooling device so that it can be passively cooled by the thermal framework. Signed-off-by: Akhil P Oommen --- Changes in v2: 1. Update the dt bindings documentation drivers/gpu/drm/msm/msm_gpu.c | 12 drivers/gpu/drm/msm/msm_gpu.h | 2 ++ 2 files

Re: [PATCH] drm/amd/display: Fix missing declaration of enable_kernel_vsx()

2020-10-19 Thread kernel test robot
://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Christophe-Leroy/drm-amd-display-Fix-missing-declaration-of-enable_kernel_vsx/20201019-174155 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 7cf726a59435301046250c42131554d9ccc566b8

Re: [PATCH AUTOSEL 5.9 090/111] drm/amd/display: Fix a list corruption

2020-10-19 Thread Alex Deucher
On Sun, Oct 18, 2020 at 3:19 PM Sasha Levin wrote: > > From: xinhui pan > > [ Upstream commit 1545fbf97eafc1dbdc2923e58b4186b16a834784 ] > > Remove the private obj from the internal list before we free aconnector. > > [ 56.925828] BUG: unable to handle page fault for address: 8f84a870a560

[Bug 209673] divide_error in amdgpu freezes screen

2020-10-19 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=209673 --- Comment #10 from cornelius.riemenschnei...@googlemail.com --- Created attachment 293057 --> https://bugzilla.kernel.org/attachment.cgi?id=293057=edit crashing dmesg #7 -- You are receiving this mail because: You are watching the assignee

Re: It appears drm-next TTM cleanup broke something . . .

2020-10-19 Thread Christian König
Hi Kevin, the basic problem you are facing is that ttm_tt_create/destroy is mandatory (It always was). You need an implementation or otherwise you won't be able to use the system domain (additional to the optional GTT domain). My best guess is that the difference is that we now force to

Re: [PATCH 4/5] drm/ttm: add move old to system to drivers.

2020-10-19 Thread Christian König
Am 19.10.20 um 09:13 schrieb Dave Airlie: From: Dave Airlie Uninline ttm_bo_move_ttm. Eventually want to unhook the unbind out. Reviewed-by: Ben Skeggs Signed-off-by: Dave Airlie Reviewed-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c| 15 ---

Re: [PATCH 5/5] drm/ttm: drop ttm_bo_move_ttm wrapper

2020-10-19 Thread Christian König
Am 19.10.20 um 09:13 schrieb Dave Airlie: From: Dave Airlie The apis to move old/new are in place everywhere so this is no longer needed. Reviewed-by: Christian König --- drivers/gpu/drm/ttm/ttm_bo_util.c | 20 include/drm/ttm/ttm_bo_driver.h | 22

Re: [PATCH 3/5] drm/ttm: use new move interface for known system->ttm moves

2020-10-19 Thread Christian König
Am 19.10.20 um 09:13 schrieb Dave Airlie: From: Dave Airlie In all 3 drivers there is a case where the driver knows the bo is in SYSTEM so don't call the api that checks that. Reviewed-by: Ben Skeggs Signed-off-by: Dave Airlie Reviewed-by: Christian König ---

Re: [PATCH 2/5] drm/ttm: split out the move to system from move ttm code

2020-10-19 Thread Christian König
Am 19.10.20 um 09:13 schrieb Dave Airlie: From: Dave Airlie Reviewed-by: Ben Skeggs Signed-off-by: Dave Airlie Maybe just call it ...move_to_system(), but either way Reviewed-by: Christian König --- drivers/gpu/drm/ttm/ttm_bo_util.c | 38 --- 1 file

Re: [PATCH 1/2] Fonts: Support FONT_EXTRA_WORDS macros for font_6x8

2020-10-19 Thread Peilin Ye
On Sun, Oct 18, 2020 at 11:51:19PM +0200, Daniel Vetter wrote: > On Sun, Oct 18, 2020 at 10:45 PM Peilin Ye wrote: > > I'm confused, I see it on LKML in the link above. Sure I'll resend soon. > > My brain didn't work, sorry about the confusion. > > I'll pick up the patches tomorrow, probably

Re: [PATCH 1/5] drm/ttm: refactor out common code to setup a new tt backed resource

2020-10-19 Thread Christian König
Am 19.10.20 um 09:13 schrieb Dave Airlie: From: Dave Airlie This factors out the code to setup non-system tt. The same code was used twice in the move paths. Reviewed-by: Ben Skeggs Signed-off-by: Dave Airlie Reviewed-by: Christian König --- drivers/gpu/drm/ttm/ttm_bo.c | 12

  1   2   >