Re: [PATCH] phy: mediatek: Add missing MODULE_DEVICE_TABLE()

2021-02-04 Thread Vinod Koul
On 03-02-21, 12:06, Enric Balletbo i Serra wrote: > From: Boris Brezillon > > This patch adds the missing MODULE_DEVICE_TABLE definitions on different > Mediatek phy drivers which generates correct modalias for automatic loading > when these drivers are compiled as an external module. Applied, t

Re: [Linaro-mm-sig] [PATCH v3] dmabuf: Add the capability to expose DMA-BUF stats in sysfs

2021-02-04 Thread Christian König
Am 03.02.21 um 21:14 schrieb Hridya Valsaraju: On Wed, Feb 3, 2021 at 2:25 AM Daniel Vetter wrote: On Mon, Feb 01, 2021 at 01:02:30PM -0800, Hridya Valsaraju wrote: On Mon, Feb 1, 2021 at 10:37 AM Daniel Vetter wrote: On Thu, Jan 28, 2021 at 1:03 PM Sumit Semwal wrote: On Thu, 28 Jan 2021

Re: [Linaro-mm-sig] [PATCH 1/2] mm: replace BUG_ON in vm_insert_page with a return of an error

2021-02-04 Thread Christian König
Am 03.02.21 um 22:41 schrieb Suren Baghdasaryan: [SNIP] How many semi-unrelated buffer accounting schemes does google come up with? We're at three with this one. And also we _cannot_ required that all dma-bufs are backed by struct page, so requiring struct page to make this work is a no-go. S

[PATCH] phy: mediatek: Add missing MODULE_DEVICE_TABLE()

2021-02-04 Thread Enric Balletbo i Serra
From: Boris Brezillon This patch adds the missing MODULE_DEVICE_TABLE definitions on different Mediatek phy drivers which generates correct modalias for automatic loading when these drivers are compiled as an external module. Signed-off-by: Boris Brezillon Signed-off-by: Enric Balletbo i Serra

Re: [PATCH] drm/fourcc: introduce DRM_FOURCC_STANDALONE guard

2021-02-04 Thread James Park
Apologies for anything I've said so far that has been harsh. I'd like this discussion to be civil. I'm not sure if Simon is still on board with a patch given his thumbs up to Erik's comment on the Mesa merge request (which I responded to), but I would also like to know why adding another header fi

Re: [PATCH] drm/msm/dp/dp_ctrl: Remove unneeded semicolon

2021-02-04 Thread Stephen Boyd
Quoting Xu Wang (2021-01-29 01:44:16) > fix semicolon.cocci warnings: > drivers/gpu/drm/msm/dp/dp_ctrl.c:1161:2-3: Unneeded semicolon > > Signed-off-by: Xu Wang > --- Reviewed-by: Stephen Boyd ___ dri-devel mailing list dri-devel@lists.freedesktop.org

[PATCH RFC v1 6/6] xen-swiotlb: enable 64-bit xen-swiotlb

2021-02-04 Thread Dongli Zhang
This patch is to enable the 64-bit xen-swiotlb buffer. For Xen PVM DMA address, the 64-bit device will be able to allocate from 64-bit swiotlb buffer. Cc: Joe Jin Signed-off-by: Dongli Zhang --- drivers/xen/swiotlb-xen.c | 117 -- 1 file changed, 74 insertio

Re: [PATCH] drm/fourcc: introduce DRM_FOURCC_STANDALONE guard

2021-02-04 Thread James Park
On Wed, Feb 3, 2021 at 8:24 PM James Park wrote: > > Apologies for anything I've said so far that has been harsh. I'd like > this discussion to be civil. > > I'm not sure if Simon is still on board with a patch given his thumbs > up to Erik's comment on the Mesa merge request (which I responded to

[PATCH RFC v1 0/6] swiotlb: 64-bit DMA buffer

2021-02-04 Thread Dongli Zhang
This RFC is to introduce the 2nd swiotlb buffer for 64-bit DMA access. The prototype is based on v5.11-rc6. The state of the art swiotlb pre-allocates <=32-bit memory in order to meet the DMA mask requirement for some 32-bit legacy device. Considering most devices nowadays support 64-bit DMA and

Re: [PATCH 3/3] dt-bindings: Fix errors in 'if' schemas

2021-02-04 Thread Maxime Ripard
On Tue, Feb 02, 2021 at 02:55:44PM -0600, Rob Herring wrote: > Properties in if/then schemas weren't getting checked by the meta-schemas. > Enabling meta-schema checks finds several errors. > > The use of an 'items' schema (as opposed to the list form) is wrong in > some cases as it applies to all

[PATCH RFC v1 4/6] swiotlb: enable 64-bit swiotlb

2021-02-04 Thread Dongli Zhang
This patch is to enable the 64-bit swiotlb buffer. The state of the art swiotlb pre-allocates <=32-bit memory in order to meet the DMA mask requirement for some 32-bit legacy device. Considering most devices nowadays support 64-bit DMA and IOMMU is available, the swiotlb is not used for most of th

[PATCH] drm/msm/disp/mdp5: mdp5_cfg: Fix msm8974v2 max_clk

2021-02-04 Thread Konrad Dybcio
The maximum mdp clock rate on msm8974v2 is 320MHz. Fix it. Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c b/drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c index dfff

[PATCH RFC v1 5/6] xen-swiotlb: convert variables to arrays

2021-02-04 Thread Dongli Zhang
This patch converts several xen-swiotlb related variables to arrays, in order to maintain stat/status for different swiotlb buffers. Here are variables involved: - xen_io_tlb_start and xen_io_tlb_end - xen_io_tlb_nslabs - MAX_DMA_BITS There is no functional change and this is to prepare to enable

Re: [PATCH rdma-core v7 4/6] pyverbs: Add dma-buf based MR support

2021-02-04 Thread Jason Gunthorpe
On Wed, Feb 03, 2021 at 06:53:19PM +0100, Daniel Vetter wrote: > > > rdma-core uses cmake build system and in our case cmake > > > find_library() is preferable over pkgconfig. > > > > Only the headers are needed, and they could be installed via > > either the libdrm-devel package or the kernel-head

[PATCH] drm/rockchip: remove atomic helper dirtyfb

2021-02-04 Thread Toni Spets
The blocking implementation of the dirtyfb ioctl is extremely slow when used for damage tracking on RK3399. If this implementation is in place Xorg will default to using it and will slow down considerably when doing a lot of small draws. This is most apparent with the fvwm window manager on startup

[PATCH RFC v1 1/6] swiotlb: define new enumerated type

2021-02-04 Thread Dongli Zhang
This is just to define new enumerated type without functional change. The 'SWIOTLB_LO' is to index legacy 32-bit swiotlb buffer, while the 'SWIOTLB_HI' is to index the 64-bit buffer. This is to prepare to enable 64-bit swiotlb. Cc: Joe Jin Signed-off-by: Dongli Zhang --- include/linux/swiotlb

[PATCH RFC v1 2/6] swiotlb: convert variables to arrays

2021-02-04 Thread Dongli Zhang
This patch converts several swiotlb related variables to arrays, in order to maintain stat/status for different swiotlb buffers. Here are variables involved: - io_tlb_start and io_tlb_end - io_tlb_nslabs and io_tlb_used - io_tlb_list - io_tlb_index - max_segment - io_tlb_orig_addr - no_iotlb_memor

[PATCH] scsi: lpfc: Remove unneeded return variable

2021-02-04 Thread Yang Li
This patch removes unneeded return variables, using only '1' instead. It fixes the following warning detected by coccinelle: Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/scsi/lpfc/lpfc_sli.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/lpfc/l

[PATCH] drm/komeda: convert sysfs sprintf/snprintf family to sysfs_emit

2021-02-04 Thread Jiapeng Chong
Fix the following coccicheck warning: ./drivers/gpu/drm/arm/display/komeda/komeda_dev.c:97:8-16: WARNING: use scnprintf or sprintf. ./drivers/gpu/drm/arm/display/komeda/komeda_dev.c:88:8-16: WARNING: use scnprintf or sprintf. ./drivers/gpu/drm/arm/display/komeda/komeda_dev.c:65:8-16: WARNING: us

Re: [PATCH 10/13] module: pass struct find_symbol_args to find_symbol

2021-02-04 Thread Miroslav Benes
On Wed, 3 Feb 2021, Christoph Hellwig wrote: > FYI, this is the updated version: > > --- > >From 664ca3378deac7530fe8fc15fe73d583ddf2 Mon Sep 17 00:00:00 2001 > From: Christoph Hellwig > Date: Wed, 20 Jan 2021 14:58:27 +0100 > Subject: module: pass struct find_symbol_args to find_symbol > >

Re: [PATCH] drm/msm/kms: Make a lock_class_key for each crtc mutex

2021-02-04 Thread Stephen Boyd
Quoting Rob Clark (2021-02-03 09:29:09) > On Wed, Feb 3, 2021 at 2:10 AM Daniel Vetter wrote: > > > > On Tue, Feb 02, 2021 at 08:51:25AM -0800, Rob Clark wrote: > > > On Tue, Feb 2, 2021 at 7:46 AM Daniel Vetter wrote: > > > > > > > > On Mon, Jan 25, 2021 at 03:49:01PM -0800, Stephen Boyd wrote:

Re: [PATCH 0/6] Support second Image Signal Processor on rk3399

2021-02-04 Thread Sebastian Fricke
Hey Heiko, I have tested your patch set on my nanoPC-T4, here is a complete log with: - relevant kernel log entries - system information - media ctl output - sysfs entry information https://paste.debian.net/1183874/ Additionally, to your patchset I have applied the following patches: https://gi

[PATCH RFC v1 3/6] swiotlb: introduce swiotlb_get_type() to calculate swiotlb buffer type

2021-02-04 Thread Dongli Zhang
This patch introduces swiotlb_get_type() in order to calculate which swiotlb buffer the given DMA address is belong to. This is to prepare to enable 64-bit swiotlb. Cc: Joe Jin Signed-off-by: Dongli Zhang --- include/linux/swiotlb.h | 14 ++ kernel/dma/swiotlb.c| 2 ++ 2 files

Re: [PATCH 3/3] dt-bindings: Fix errors in 'if' schemas

2021-02-04 Thread Nicolas Saenz Julienne
On Tue, 2021-02-02 at 14:55 -0600, Rob Herring wrote: > Properties in if/then schemas weren't getting checked by the meta-schemas. > Enabling meta-schema checks finds several errors. > > The use of an 'items' schema (as opposed to the list form) is wrong in > some cases as it applies to all entrie

Re: [PATCH v2 2/2] drm: bridge: Add SN65DSI84 DSI to LVDS bridge

2021-02-04 Thread Michael Nazzareno Trimarchi
Hi On Wed, Feb 3, 2021 at 8:13 AM Jagan Teki wrote: > > SN65DSI84 is a Single Channel DSI to Dual-link LVDS bridge from > Texas Instruments. > > SN65DSI83, SN65DSI85 are variants of the same family of bridge > controllers. > > Right now the bridge driver is supporting a single link, dual-link > s

[PATCH] drm/mediatek: Add missing MODULE_DEVICE_TABLE()

2021-02-04 Thread Enric Balletbo i Serra
From: Boris Brezillon This patch adds the missing MODULE_DEVICE_TABLE definitions on different Mediatek drivers which generates correct modalias for automatic loading when these drivers are compiled as an external module. Signed-off-by: Boris Brezillon Signed-off-by: Enric Balletbo i Serra ---

Re: linux-next: manual merge of the drivers-x86 tree with the drm-misc tree

2021-02-04 Thread Andy Shevchenko
On Thursday, February 4, 2021, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the drivers-x86 tree got a conflict in: > > Thanks. I already asked Patrick yesterday day if DRM missed to pull an immutable tag I provided. I think they can pull and resolve conflicts themselves. Al

Re: [Linaro-mm-sig] [PATCH v3] dmabuf: Add the capability to expose DMA-BUF stats in sysfs

2021-02-04 Thread Daniel Vetter
On Thu, Feb 4, 2021 at 9:13 AM Christian König wrote: > > Am 03.02.21 um 21:14 schrieb Hridya Valsaraju: > > On Wed, Feb 3, 2021 at 2:25 AM Daniel Vetter wrote: > >> On Mon, Feb 01, 2021 at 01:02:30PM -0800, Hridya Valsaraju wrote: > >>> On Mon, Feb 1, 2021 at 10:37 AM Daniel Vetter wrote: > >>>

Re: [PATCH v3 1/4] dp/dp_mst: Add support for sink event notify messages

2021-02-04 Thread Sam McNally
I can for this patch; I'm not really sure of the right approach for the other two though. On Wed, 3 Feb 2021 at 20:57, Hans Verkuil wrote: > Hi Sam, > > Are you able to work on a v4? > > I haven't heard from you for some time now. I would be willing to take over > this series if it wasn't for th

Re: [PATCH] scsi: lpfc: Remove unneeded return variable

2021-02-04 Thread Johannes Thumshirn
On 04/02/2021 08:37, Yang Li wrote: > This patch removes unneeded return variables, using only > '1' instead. > It fixes the following warning detected by coccinelle: > > Reported-by: Abaci Robot > Signed-off-by: Yang Li > --- > drivers/scsi/lpfc/lpfc_sli.c | 3 +-- > 1 file changed, 1 insertio

Re: [PATCH v2 10/16] drm/exynos: implement a drm bridge

2021-02-04 Thread Daniel Vetter
On Wed, Feb 3, 2021 at 9:32 PM Michael Tretter wrote: > > On Mon, 01 Feb 2021 17:33:14 +0100, Michael Tretter wrote: > > On Tue, 15 Sep 2020 21:40:40 +0200, Andrzej Hajda wrote: > > > W dniu 14.09.2020 o 23:19, Andrzej Hajda pisze: > > > > On 14.09.2020 22:01, Michael Tretter wrote: > > > >> On Mo

Re: [GIT PULL] ib-drm-gpio-pdx86-rtc-wdt-v5.12-1

2021-02-04 Thread Patrik Jakobsson
On Wed, Feb 3, 2021 at 1:00 PM Andy Shevchenko wrote: > > On Tue, Jan 26, 2021 at 5:25 PM Patrik Jakobsson > wrote: > > On Tue, Jan 26, 2021 at 1:37 PM Andy Shevchenko > > wrote: > > > > > > Hi guys, > > > > > > This is first part of Intel MID outdated platforms removal. It's > > > collected in

Re: [PATCH v3 2/4] drm_dp_mst_topology: use correct AUX channel

2021-02-04 Thread Hans Verkuil
On 01/02/2021 23:13, Ville Syrjälä wrote: > On Wed, Sep 23, 2020 at 12:13:53PM +1000, Sam McNally wrote: >> From: Hans Verkuil >> >> For adapters behind an MST hub use the correct AUX channel. >> >> Signed-off-by: Hans Verkuil >> [sa...@chromium.org: rebased, removing redundant changes] >> Signed

Re: [PATCH v7 12/17] PCI: Revoke mappings like devmem

2021-02-04 Thread Daniel Vetter
On Wed, Feb 3, 2021 at 5:14 PM Daniel Vetter wrote: > > On Tue, Jan 19, 2021 at 5:03 PM Daniel Vetter wrote: > > > > On Tue, Jan 19, 2021 at 4:20 PM Greg Kroah-Hartman > > wrote: > > > > > > On Tue, Jan 19, 2021 at 03:34:47PM +0100, Daniel Vetter wrote: > > > > On Tue, Jan 19, 2021 at 3:32 PM Gr

Re: [GIT PULL] ib-drm-gpio-pdx86-rtc-wdt-v5.12-1

2021-02-04 Thread Daniel Vetter
On Thu, Feb 4, 2021 at 11:19 AM Patrik Jakobsson wrote: > > On Wed, Feb 3, 2021 at 1:00 PM Andy Shevchenko > wrote: > > > > On Tue, Jan 26, 2021 at 5:25 PM Patrik Jakobsson > > wrote: > > > On Tue, Jan 26, 2021 at 1:37 PM Andy Shevchenko > > > wrote: > > > > > > > > Hi guys, > > > > > > > > Thi

Re: [PATCH v3 4/4] drm_dp_cec: add MST support

2021-02-04 Thread Hans Verkuil
On 23/09/2020 04:13, Sam McNally wrote: > With DP v2.0 errata E5, CEC tunneling can be supported through an MST > topology. > > There are some minor differences for CEC tunneling through an MST > topology compared to CEC tunneling to an SST port: > - CEC IRQs are delivered via a sink event notify

Re: [PATCH v3 1/4] dp/dp_mst: Add support for sink event notify messages

2021-02-04 Thread Hans Verkuil
Hi Sam, I replied to several of the patches: it looks like the drm code has changed since some of this patches were written, and I think it can be simplified quite a bit. Regards, Hans On 04/02/2021 10:54, Sam McNally wrote: > I can for this patch; I'm not really sure of the right appr

Re: [PATCH][next] drm/i915/display: fix spelling mistake "Couldnt" -> "Couldn't"

2021-02-04 Thread Jani Nikula
On Wed, 03 Feb 2021, Colin King wrote: > From: Colin Ian King > > There is a spelling mistake in a drm_dbg message. Fix it. > > Signed-off-by: Colin Ian King Thanks, pushed to drm-intel-next. BR, Jani. > --- > drivers/gpu/drm/i915/display/intel_dp.c | 2 +- > 1 file changed, 1 insertion(+),

Re: [GIT PULL] ib-drm-gpio-pdx86-rtc-wdt-v5.12-1

2021-02-04 Thread Hans de Goede
Hi, On 2/4/21 11:36 AM, Daniel Vetter wrote: > On Thu, Feb 4, 2021 at 11:19 AM Patrik Jakobsson > wrote: >> >> On Wed, Feb 3, 2021 at 1:00 PM Andy Shevchenko >> wrote: >>> >>> On Tue, Jan 26, 2021 at 5:25 PM Patrik Jakobsson >>> wrote: On Tue, Jan 26, 2021 at 1:37 PM Andy Shevchenko

Re: [PATCH v2 10/16] drm/exynos: implement a drm bridge

2021-02-04 Thread Michael Tretter
On Thu, 04 Feb 2021 11:17:49 +0100, Daniel Vetter wrote: > On Wed, Feb 3, 2021 at 9:32 PM Michael Tretter > wrote: > > > > On Mon, 01 Feb 2021 17:33:14 +0100, Michael Tretter wrote: > > > On Tue, 15 Sep 2020 21:40:40 +0200, Andrzej Hajda wrote: > > > > W dniu 14.09.2020 o 23:19, Andrzej Hajda pis

Re: [GIT PULL] ib-drm-gpio-pdx86-rtc-wdt-v5.12-1

2021-02-04 Thread Alexandre Belloni
On 04/02/2021 11:50:03+0100, Hans de Goede wrote: > Hi, > > On 2/4/21 11:36 AM, Daniel Vetter wrote: > > On Thu, Feb 4, 2021 at 11:19 AM Patrik Jakobsson > > wrote: > >> > >> On Wed, Feb 3, 2021 at 1:00 PM Andy Shevchenko > >> wrote: > >>> > >>> On Tue, Jan 26, 2021 at 5:25 PM Patrik Jakobsson >

Re: [PATCH 01/13] powerpc/powernv: remove get_cxl_module

2021-02-04 Thread Michael Ellerman
Christoph Hellwig writes: > The static inline get_cxl_module function is entirely unused since commit > 8bf6b91a5125a ("Revert "powerpc/powernv: Add support for the cxl kernel > api on the real phb"), so remove it. > > Signed-off-by: Christoph Hellwig > Reviewed-by: Andrew Donnellan > --- > arc

[PATCH v2] drm/fourcc: introduce DRM_FOURCC_STANDALONE guard

2021-02-04 Thread Emil Velikov
Currently, the drm_fourcc.h header depends on drm.h for __u32 and __u64. At the same time drm.h pulls a lot of unneeded symbols. Add new guard DRM_FOURCC_STANDALONE, which when set will use local declaration of said symbols. When used on linux - we pull linux/types.h which is used either way. On

Re: [PATCH RFC v1 2/6] swiotlb: convert variables to arrays

2021-02-04 Thread Robin Murphy
On 2021-02-04 07:29, Christoph Hellwig wrote: On Wed, Feb 03, 2021 at 03:37:05PM -0800, Dongli Zhang wrote: This patch converts several swiotlb related variables to arrays, in order to maintain stat/status for different swiotlb buffers. Here are variables involved: - io_tlb_start and io_tlb_end

Re: [PATCH] drm/fourcc: introduce DRM_FOURCC_STANDALONE guard

2021-02-04 Thread Emil Velikov
On Wed, 3 Feb 2021 at 14:21, Simon Ser wrote: > > On Wednesday, February 3rd, 2021 at 3:13 PM, Emil Velikov > wrote: > > > As said before, there are multiple ways to handle this without > > introducing yet another UAPI header. I don't see why you're dismissing > > all of them, can you elaborate?

[PULL] drm-intel-fixes

2021-02-04 Thread Jani Nikula
Hi Dave & Daniel - There's a bit more here than I'd generally like at this stage, however many of them are cc: stable anyway, and I've opted to include a couple of extra backports to allow the actual fixes to apply without conflicts instead of modifying the fixes. Hopefully things will calm down

[RFC 1/3] proc: Show GPU runtimes

2021-02-04 Thread Chris Wilson
Present an interface for system monitors to watch the GPU usage as a whole and by individual applications. By consolidating the information into a canonical location, we have a single interface that can track the utilisation of all GPU devices and sub-devices. This is preferrable to asking the syst

[RFC 2/3] drm/i915: Look up clients by pid

2021-02-04 Thread Chris Wilson
Use the pid to find associated clients, and report their runtime. This will be used to provide the information via procfs. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i915_drm_client.c | 70 +++--- drivers/gpu/drm/i915/i915_drm_client.h | 12 +++-- 2 files changed, 7

[RFC 3/3] drm/i915/gt: Export device and per-process runtimes via procfs

2021-02-04 Thread Chris Wilson
Register with /proc/gpu to provide the client runtimes for generic top-like overview, e.g. gnome-system-monitor can use this information to show the per-process multi-GPU usage. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/Makefile| 1 + drivers/gpu/drm/i915/gt/intel_gt.c

Re: [PATCH 1/3] printk: use CONFIG_CONSOLE_LOGLEVEL_* directly

2021-02-04 Thread Petr Mladek
On Tue 2021-02-02 09:44:22, John Ogness wrote: > On 2021-02-02, Masahiro Yamada wrote: > > CONSOLE_LOGLEVEL_DEFAULT is nothing more than a shorthand of > > CONFIG_CONSOLE_LOGLEVEL_DEFAULT. > > > > When you change CONFIG_CONSOLE_LOGLEVEL_DEFAULT from Kconfig, almost > > all objects are rebuilt beca

Re: [PATCH v2 2/2] dma-buf: heaps: Map system heap pages as managed by linux vm

2021-02-04 Thread Suren Baghdasaryan
On Wed, Feb 3, 2021 at 12:06 AM Christian König wrote: > > Am 03.02.21 um 03:02 schrieb Suren Baghdasaryan: > > On Tue, Feb 2, 2021 at 5:39 PM Minchan Kim wrote: > >> On Tue, Feb 02, 2021 at 04:31:34PM -0800, Suren Baghdasaryan wrote: > >>> Currently system heap maps its buffers with VM_PFNMAP fl

Re: [PATCH 05/13] kallsyms: refactor {,module_}kallsyms_on_each_symbol

2021-02-04 Thread Petr Mladek
On Tue 2021-02-02 13:13:26, Christoph Hellwig wrote: > Require an explicit call to module_kallsyms_on_each_symbol to look > for symbols in modules instead of the call from kallsyms_on_each_symbol, > and acquire module_mutex inside of module_kallsyms_on_each_symbol instead > of leaving that up to th

Re: [PATCH 0/2] Allow reading process DMA buf stats from fdinfo

2021-02-04 Thread Kalesh Singh
On Thu, Jan 28, 2021 at 1:24 PM Kalesh Singh wrote: > > Android captures per-process system memory state when certain low memory > events (e.g a foreground app kill) occur, to identify potential memory > hoggers. In order to measure how much memory a process actually consumes, > it is necessary to

Re: [Linaro-mm-sig] [PATCH v3] dmabuf: Add the capability to expose DMA-BUF stats in sysfs

2021-02-04 Thread Hridya Valsaraju
On Wed, Feb 3, 2021 at 2:25 AM Daniel Vetter wrote: > > On Mon, Feb 01, 2021 at 01:02:30PM -0800, Hridya Valsaraju wrote: > > On Mon, Feb 1, 2021 at 10:37 AM Daniel Vetter wrote: > > > > > > On Thu, Jan 28, 2021 at 1:03 PM Sumit Semwal > > > wrote: > > > > > > > > On Thu, 28 Jan 2021 at 17:23,

Re: [PATCH] drm/bridge: anx7625: enable DSI EOTP

2021-02-04 Thread Nicolas Boichat
On Thu, Feb 4, 2021 at 8:07 PM Robert Foss wrote: > > Hi Xin, > > Thanks for the patch. > > On Thu, 28 Jan 2021 at 12:17, Xin Ji wrote: > > > > Enable DSI EOTP feature for fixing some panel screen constance > > shift issue. > > Removing MIPI flag MIPI_DSI_MODE_EOT_PACKET to enable DSI EOTP. > > I

Re: [PATCH] drm/bridge: anx7625: enable DSI EOTP

2021-02-04 Thread Andrzej Hajda
W dniu 04.02.2021 o 13:34, Nicolas Boichat pisze: > On Thu, Feb 4, 2021 at 8:07 PM Robert Foss wrote: >> Hi Xin, >> >> Thanks for the patch. >> >> On Thu, 28 Jan 2021 at 12:17, Xin Ji wrote: >>> Enable DSI EOTP feature for fixing some panel screen constance >>> shift issue. >>> Removing MIPI fla

[PATCH] drm/komeda: Fix bit check to import to value of proper type

2021-02-04 Thread carsten . haitzler
From: Carsten Haitzler Another issue found by KASAN. The bit finding is buried inside the dp_for_each_set_bit() macro (that passes on to for_each_set_bit() that calls the bit stuff. These bit functions want an unsigned long pointer as input and just dumbly casting leads to out-of-bounds accesses.

Re: [PATCH] drm/lima: Use delayed timer as default in devfreq profile

2021-02-04 Thread Robin Murphy
On 2021-02-03 02:01, Qiang Yu wrote: On Tue, Feb 2, 2021 at 10:02 PM Lukasz Luba wrote: On 2/2/21 1:01 AM, Qiang Yu wrote: Hi Lukasz, Thanks for the explanation. So the deferred timer option makes a mistake that when GPU goes from idle to busy for only one poll periodic, in this case 50ms,

Re: [PATCH v16 0/4] RDMA: Add dma-buf support

2021-02-04 Thread Alex Deucher
On Thu, Feb 4, 2021 at 2:48 AM John Hubbard wrote: > > On 12/15/20 1:27 PM, Jianxin Xiong wrote: > > This patch series adds dma-buf importer role to the RDMA driver in > > attempt to support RDMA using device memory such as GPU VRAM. Dma-buf is > > chosen for a few reasons: first, the API is relat

Re: [PATCH 1/3] drm/v3d: Don't resubmit guilty CSD jobs

2021-02-04 Thread Chema Casanova
I've tested the patch and confirmed that applies correctly over drm-next. I've also confirmed that the timeout happens with the described test case by the developer. https://github.com/raspberrypi/linux/pull/3816#issuecomment-682251862 Considering this is my first review of a patch in v3d ker

Re: [GIT PULL] ib-drm-gpio-pdx86-rtc-wdt-v5.12-1

2021-02-04 Thread Andy Shevchenko
On Thu, Feb 04, 2021 at 11:57:52AM +0100, Alexandre Belloni wrote: > On 04/02/2021 11:50:03+0100, Hans de Goede wrote: > > On 2/4/21 11:36 AM, Daniel Vetter wrote: > > > On Thu, Feb 4, 2021 at 11:19 AM Patrik Jakobsson > > > wrote: > > >> On Wed, Feb 3, 2021 at 1:00 PM Andy Shevchenko > > >> wrot

[PATCH 01/14] drm/amdkfd: Get unique_id dynamically v2

2021-02-04 Thread Christian König
From: Kent Russell Instead of caching the value during amdgpu_device_init, just call the function directly. This avoids issues where the unique_id hasn't been saved by the time that KFD's topology snapshot is done (e.g. Arcturus). KFD's topology information from the amdgpu_device was initially c

[PATCH 1/3] drm/scheduler: provide scheduler score externally

2021-02-04 Thread Christian König
Allow multiple schedulers to share the load balancing score. This is useful when one engine has different hw rings. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c | 2 +- drivers/gpu/drm/etnaviv/etnaviv_sched.c | 2 +- drivers/gpu/drm/lima/lima_sched.c

[PATCH 3/3] drm/amdgpu: share scheduler score on VCN3 instances

2021-02-04 Thread Christian König
The VCN3 instances can do both decode as well as encode. Share the scheduler load balancing score and remove fixing encode to only the second instance. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h | 1 + drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c | 11 +++ 2

[PATCH 2/3] drm/amdgpu: add the sched_score to amdgpu_ring_init

2021-02-04 Thread Christian König
Allow separate ring to share the same scheduler score. No functional change. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c | 50 --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 5 +-- drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | 6 ++- drivers

[PATCH v6 04/10] drm/qxl: unpin release objects

2021-02-04 Thread Gerd Hoffmann
Balances the qxl_create_bo(..., pinned=true, ...); call in qxl_release_bo_alloc(). Signed-off-by: Gerd Hoffmann Acked-by: Thomas Zimmermann --- drivers/gpu/drm/qxl/qxl_release.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/qxl/qxl_release.c b/drivers/gpu/drm/qxl/qxl_rele

[PATCH v6 00/10] drm/qxl: fix driver shutdown issues.

2021-02-04 Thread Gerd Hoffmann
v5: - add release_event wait queue. - also cleanup qxl_fence_wait(). v6: - add shadow pinning fix (Thomas). - use ram for dumb allocation. Gerd Hoffmann (10): [hack] silence ttm fini WARNING Revert "drm/qxl: do not run release if qxl failed to init" drm/qxl: use drmm_mode_config_init d

[PATCH v6 03/10] drm/qxl: use drmm_mode_config_init

2021-02-04 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann Reviewed-by: Daniel Vetter Acked-by: Thomas Zimmermann --- drivers/gpu/drm/qxl/qxl_display.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/qxl_display.c index 012bce0cdb65..38d6b5960

[PATCH v6 01/10] [hack] silence ttm fini WARNING

2021-02-04 Thread Gerd Hoffmann
kobject: '(null)' ((ptrval)): is not initialized, yet kobject_put() is being called. WARNING: CPU: 0 PID: 209 at lib/kobject.c:750 kobject_put+0x3a/0x60 [ ... ] Call Trace: ttm_device_fini+0x133/0x1b0 [ttm] qxl_ttm_fini+0x2f/0x40 [qxl] --- drivers/gpu/drm/ttm/ttm_device.c | 2 +- 1 file

[PATCH v6 10/10] drm/qxl: allocate dumb buffers in ram

2021-02-04 Thread Gerd Hoffmann
dumb buffers are shadowed anyway, so there is no need to store them in device memory. Use QXL_GEM_DOMAIN_CPU (TTM_PL_SYSTEM) instead. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_dumb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/qxl/qxl_dumb.

[PATCH v6 02/10] Revert "drm/qxl: do not run release if qxl failed to init"

2021-02-04 Thread Gerd Hoffmann
This reverts commit b91907a6241193465ca92e357adf16822242296d. Patch is broken, it effectively makes qxl_drm_release() a nop because on normal driver shutdown qxl_drm_release() is called *after* drm_dev_unregister(). Cc: Tong Zhang Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_drv.c

[PATCH v6 09/10] drm/qxl: simplify qxl_fence_wait

2021-02-04 Thread Gerd Hoffmann
Now that we have the new release_event wait queue we can just use that in qxl_fence_wait() and simplify the code alot. Signed-off-by: Gerd Hoffmann Acked-by: Thomas Zimmermann --- drivers/gpu/drm/qxl/qxl_release.c | 44 +++ 1 file changed, 4 insertions(+), 40 deletio

[PATCH v6 06/10] drm/qxl: properly pin/unpin shadow

2021-02-04 Thread Gerd Hoffmann
Suggested-by: Thomas Zimmermann Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_display.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/qxl_display.c index 60331e31861a..d25fd3acc891 100644 --- a/drivers/gpu/drm/qxl/qxl_

[PATCH v6 05/10] drm/qxl: release shadow on shutdown

2021-02-04 Thread Gerd Hoffmann
In case we have a shadow surface on shutdown release it so it doesn't leak. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_display.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/qxl_display.c index 38d6b596094d..60331e

[PATCH v6 07/10] drm/qxl: handle shadow in primary destroy

2021-02-04 Thread Gerd Hoffmann
qxl_primary_atomic_disable must check whenever the framebuffer bo has a shadow surface and in case it has check the shadow primary status. Signed-off-by: Gerd Hoffmann Acked-by: Thomas Zimmermann --- drivers/gpu/drm/qxl/qxl_display.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers

[PATCH v6 08/10] drm/qxl: properly free qxl releases

2021-02-04 Thread Gerd Hoffmann
Reorganize qxl_device_fini() a bit. Add missing unpin() calls. Count releases. Add wait queue for releases. That way qxl_device_fini() can easily wait until everything is ready for proper shutdown. Signed-off-by: Gerd Hoffmann Acked-by: Thomas Zimmermann --- drivers/gpu/drm/qxl/qxl_drv.h

Re: [PATCH v6 01/10] [hack] silence ttm fini WARNING

2021-02-04 Thread Christian König
? What's the background here? Christian. Am 04.02.21 um 15:57 schrieb Gerd Hoffmann: kobject: '(null)' ((ptrval)): is not initialized, yet kobject_put() is being called. WARNING: CPU: 0 PID: 209 at lib/kobject.c:750 kobject_put+0x3a/0x60 [ ... ] Call Trace: ttm_device_fini+0x133/0x1

[GIT PULL v2] mediatek drm next for 5.12

2021-02-04 Thread Chun-Kuang Hu
Hi, Dave & Daniel: This version fix fixes tag quotation missing. This includes: 1. Decouple Mediatek DRM sub driver 2. Share mtk mutex driver for both DRM and MDP 3. Add support for SoC MT8183 Regards, Chun-Kuang. The following changes since commit 5c8fe583cce542aa0b84adc939ce85293de36e5e: L

Re: [PATCH] drm/msm/kms: Make a lock_class_key for each crtc mutex

2021-02-04 Thread Daniel Vetter
On Wed, Feb 03, 2021 at 02:11:09PM -0800, Rob Clark wrote: > On Wed, Feb 3, 2021 at 1:58 PM Stephen Boyd wrote: > > > > Quoting Rob Clark (2021-02-03 09:29:09) > > > On Wed, Feb 3, 2021 at 2:10 AM Daniel Vetter wrote: > > > > > > > > On Tue, Feb 02, 2021 at 08:51:25AM -0800, Rob Clark wrote: > >

Re: [GIT PULL] mediatek drm next for 5.12

2021-02-04 Thread Chun-Kuang Hu
Hi, Dave: Dave Airlie 於 2021年2月4日 週四 上午10:56寫道: > > On Thu, 4 Feb 2021 at 09:22, Chun-Kuang Hu wrote: > > > > Hi, Dave & Daniel: > > > > This includes: > > > > 1. Decouple Mediatek DRM sub driver > > 2. Share mtk mutex driver for both DRM and MDP > > 3. Add support for SoC MT8183 > > Hi Chun-Kua

Re: [PATCH] drm/rockchip: remove atomic helper dirtyfb

2021-02-04 Thread Daniel Vetter
On Wed, Feb 03, 2021 at 09:53:40PM +0200, Toni Spets wrote: > The blocking implementation of the dirtyfb ioctl is extremely slow when > used for damage tracking on RK3399. If this implementation is in place Xorg > will default to using it and will slow down considerably when doing a lot > of small

Re: [PATCH 1/3] printk: use CONFIG_CONSOLE_LOGLEVEL_* directly

2021-02-04 Thread Petr Mladek
On Thu 2021-02-04 06:51:09, Masahiro Yamada wrote: > On Thu, Feb 4, 2021 at 12:23 AM Petr Mladek wrote: > > > > On Tue 2021-02-02 09:44:22, John Ogness wrote: > > > On 2021-02-02, Masahiro Yamada wrote: > > > > CONSOLE_LOGLEVEL_DEFAULT is nothing more than a shorthand of > > > > CONFIG_CONSOLE_LO

Re: [Linaro-mm-sig] [PATCH 1/2] mm: replace BUG_ON in vm_insert_page with a return of an error

2021-02-04 Thread Daniel Vetter
On Thu, Feb 04, 2021 at 09:16:32AM +0100, Christian König wrote: > Am 03.02.21 um 22:41 schrieb Suren Baghdasaryan: > > [SNIP] > > > > How many semi-unrelated buffer accounting schemes does google come up > > > > with? > > > > > > > > We're at three with this one. > > > > > > > > And also we _ca

Re: [PATCH] drm/vblank: Avoid storing a timestamp for the same frame twice

2021-02-04 Thread Daniel Vetter
On Thu, Feb 04, 2021 at 04:04:00AM +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > drm_vblank_restore() exists because certain power saving states > can clobber the hardware frame counter. The way it does this is > by guesstimating how many frames were missed purely based on > the differenc

Re: [PATCH v4 1/3] dt-bindings:drm/bridge:anx7625:add vendor define flags

2021-02-04 Thread Robert Foss
Hey Xin, On Thu, 28 Jan 2021 at 04:10, Xin Ji wrote: > > Add 'bus-type' and 'data-lanes' define for port0, add HDCP support > flag and DP tx lane0 and lane1 swing register array define. > > Signed-off-by: Xin Ji > --- > .../bindings/display/bridge/analogix,anx7625.yaml | 54 >

Re: [PATCH] drm/bridge/analogix: remove redundant when devm_kzalloc failed

2021-02-04 Thread Robert Foss
Hey Bernard, Thanks for the patch. With the below fixed, feel free to add my r-b. Reviewed-by: Robert Foss On Tue, 2 Feb 2021 at 13:09, Bernard Zhao wrote: > > Line 1590 DRM_ERROR is redundant because devm_kzalloc() already > prints an error. The line number will not be so helpful for reading

Re: [PATCH] drm/bridge: anx7625: enable DSI EOTP

2021-02-04 Thread Robert Foss
Hi Xin, Thanks for the patch. On Thu, 28 Jan 2021 at 12:17, Xin Ji wrote: > > Enable DSI EOTP feature for fixing some panel screen constance > shift issue. > Removing MIPI flag MIPI_DSI_MODE_EOT_PACKET to enable DSI EOTP. I don't think I quite understand how removing the MIPI_DSI_MODE_EOT_PACKE

Re: [PATCH v4 2/3] drm/bridge: anx7625: fix not correct return value

2021-02-04 Thread Robert Foss
Hi Xin, On Thu, 28 Jan 2021 at 04:12, Xin Ji wrote: > > At some time, the original code may return non zero value, force return 0 > if operation finished Missing "." at end of line. Other than that, this patch looks fine. Feel free to add my r-b. Reviewed-by: Robert Foss > > Signed-off-by: Xi

Re: [PATCH] drm/lima: Use delayed timer as default in devfreq profile

2021-02-04 Thread Lukasz Luba
On 2/4/21 1:39 PM, Robin Murphy wrote: On 2021-02-03 02:01, Qiang Yu wrote: On Tue, Feb 2, 2021 at 10:02 PM Lukasz Luba wrote: On 2/2/21 1:01 AM, Qiang Yu wrote: Hi Lukasz, Thanks for the explanation. So the deferred timer option makes a mistake that when GPU goes from idle to busy f

[PATCH v14] staging: fbtft: add tearing signal detect

2021-02-04 Thread Carlis
From: Carlis For st7789v IC, when we need continuous full screen refresh, it is best to wait for the tearing effect line signal to arrive to avoid screen tearing. Signed-off-by: Carlis --- v14: change to define TE completion and TE irq only in st7789v. v13: change TE completion to par data stru

Re: [Linaro-mm-sig] [PATCH 1/2] mm: replace BUG_ON in vm_insert_page with a return of an error

2021-02-04 Thread Alex Deucher
On Thu, Feb 4, 2021 at 3:16 AM Christian König wrote: > > Am 03.02.21 um 22:41 schrieb Suren Baghdasaryan: > > [SNIP] > >>> How many semi-unrelated buffer accounting schemes does google come up > >>> with? > >>> > >>> We're at three with this one. > >>> > >>> And also we _cannot_ required that al

Re: [PATCH] drm/vblank: Avoid storing a timestamp for the same frame twice

2021-02-04 Thread Ville Syrjälä
On Thu, Feb 04, 2021 at 04:32:16PM +0100, Daniel Vetter wrote: > On Thu, Feb 04, 2021 at 04:04:00AM +0200, Ville Syrjala wrote: > > From: Ville Syrjälä > > > > drm_vblank_restore() exists because certain power saving states > > can clobber the hardware frame counter. The way it does this is > > b

Re: [PATCH v2 10/16] drm/exynos: implement a drm bridge

2021-02-04 Thread Daniel Vetter
On Thu, Feb 04, 2021 at 11:56:32AM +0100, Michael Tretter wrote: > On Thu, 04 Feb 2021 11:17:49 +0100, Daniel Vetter wrote: > > On Wed, Feb 3, 2021 at 9:32 PM Michael Tretter > > wrote: > > > > > > On Mon, 01 Feb 2021 17:33:14 +0100, Michael Tretter wrote: > > > > On Tue, 15 Sep 2020 21:40:40 +02

Re: [PATCH] drm/rockchip: remove atomic helper dirtyfb

2021-02-04 Thread Daniel Vetter
On Thu, Feb 4, 2021 at 5:03 PM Toni Spets wrote: > > > > On Thu, Feb 4, 2021, 17:20 Daniel Vetter wrote: >> >> On Wed, Feb 03, 2021 at 09:53:40PM +0200, Toni Spets wrote: >> > The blocking implementation of the dirtyfb ioctl is extremely slow when >> > used for damage tracking on RK3399. If this

Re: [PATCH v2 10/16] drm/exynos: implement a drm bridge

2021-02-04 Thread Andrzej Hajda
W dniu 04.02.2021 o 17:05, Daniel Vetter pisze: > On Thu, Feb 04, 2021 at 11:56:32AM +0100, Michael Tretter wrote: >> On Thu, 04 Feb 2021 11:17:49 +0100, Daniel Vetter wrote: >>> On Wed, Feb 3, 2021 at 9:32 PM Michael Tretter >>> wrote: On Mon, 01 Feb 2021 17:33:14 +0100, Michael Tretter wr

Re: [GIT PULL] immutable branch for amba changes targeting v5.12-rc1

2021-02-04 Thread Russell King - ARM Linux admin
On Tue, Feb 02, 2021 at 03:06:05PM +0100, Greg Kroah-Hartman wrote: > I'm glad to take this through my char/misc tree, as that's where the > other coresight changes flow through. So if no one else objects, I will > do so... Greg, did you end up pulling this after all? If not, Uwe produced a v2. I

Re: [GIT PULL] immutable branch for amba changes targeting v5.12-rc1

2021-02-04 Thread Greg Kroah-Hartman
On Thu, Feb 04, 2021 at 04:52:24PM +, Russell King - ARM Linux admin wrote: > On Tue, Feb 02, 2021 at 03:06:05PM +0100, Greg Kroah-Hartman wrote: > > I'm glad to take this through my char/misc tree, as that's where the > > other coresight changes flow through. So if no one else objects, I will

[PATCH 0/2] pci sysfs file iomem revoke support

2021-02-04 Thread Daniel Vetter
Hi all, This is a revised version of patch 12 from my series to lock down some follow_pfn vs VM_SPECIAL races: https://lore.kernel.org/dri-devel/cakwvodnsrsntgpeuqjyaotsktp2dr9208y66hqg_h1e2lkf...@mail.gmail.com/ Stephen reported an issue on HAVE_PCI_LEGACY platforms which this patch set tries t

[PATCH 1/2] PCI: also set up legacy files only after sysfs init

2021-02-04 Thread Daniel Vetter
We are already doing this for all the regular sysfs files on PCI devices, but not yet on the legacy io files on the PCI buses. Thus far now problem, but in the next patch I want to wire up iomem revoke support. That needs the vfs up an running already to make so that iomem_get_mapping() works. Wir

[PATCH 2/2] PCI: Revoke mappings like devmem

2021-02-04 Thread Daniel Vetter
Since 3234ac664a87 ("/dev/mem: Revoke mappings when a driver claims the region") /dev/kmem zaps ptes when the kernel requests exclusive acccess to an iomem region. And with CONFIG_IO_STRICT_DEVMEM, this is the default for all driver uses. Except there's two more ways to access PCI BARs: sysfs and

  1   2   3   >