Re: [PATCH 00/33] fbcon notifier begone v3!

2019-06-12 Thread Lee Jones
On Tue, 11 Jun 2019, Daniel Thompson wrote: > On Fri, Jun 07, 2019 at 12:07:55PM +0200, Bartlomiej Zolnierkiewicz wrote: > > On 6/6/19 9:38 AM, Daniel Vetter wrote: > > > > >> - Hash out actual merge plan. > > > > > > I'd like to stuff this into drm.git somehow, I guess topic branch works > > >

[PATCH v4 1/9] mm: Allow the [page|pfn]_mkwrite callbacks to drop the mmap_sem

2019-06-12 Thread VMware
From: Thomas Hellstrom Driver fault callbacks are allowed to drop the mmap_sem when expecting long hardware waits to avoid blocking other mm users. Allow the mkwrite callbacks to do the same by returning early on VM_FAULT_RETRY. In particular we want to be able to drop the mmap_sem when waiting

Re: [PATCH v16 04/16] mm: untag user pointers in do_pages_move

2019-06-12 Thread Khalid Aziz
On 6/3/19 10:55 AM, Andrey Konovalov wrote: > This patch is a part of a series that extends arm64 kernel ABI to allow to > pass tagged user pointers (with the top byte set to something else other > than 0x00) as syscall arguments. > > do_pages_move() is used in the implementation of the

[PATCH 04/13] drm/i2c: tda998x: derive CTS_N value from aclk sample rate ratio

2019-06-12 Thread Russell King
The TDA998x derives the CTS value using the supplied I2S bit clock (ACLK, in TDA998x parlence) rather than 128·fs. TDA998x uses two constants named m and k in the CTS generator such that we have this relationship between the I2S source ACLK and the sink fs: 128·fs_sink = ACLK·m / k

[PATCH 07/13] drm/i2c: tda998x: configure both fields of AIP_CLKSEL together

2019-06-12 Thread Russell King
We can configure both fields of the AIP_CLKSEL register with a single write, there is no need to delay the setting of the CTS reference. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git

[PATCH 11/13] drm/i2c: tda998x: add support for pixel repeated modes

2019-06-12 Thread Russell King
TDA998x has no support for pixel repeated modes, and the code notes this as a "TODO" item. The implementation appears to be relatively simple, so lets add it. We need to calculate the serializer clock divisor based on the TMDS clock rate, set the repeat control, and set the serializer pixel

Re: [PATCH v16 02/16] arm64: untag user pointers in access_ok and __uaccess_mask_ptr

2019-06-12 Thread Andrey Konovalov
On Tue, Jun 11, 2019 at 4:57 PM Catalin Marinas wrote: > > On Mon, Jun 10, 2019 at 06:53:27PM +0100, Catalin Marinas wrote: > > On Mon, Jun 03, 2019 at 06:55:04PM +0200, Andrey Konovalov wrote: > > > diff --git a/arch/arm64/include/asm/uaccess.h > > > b/arch/arm64/include/asm/uaccess.h > > >

Re: [PATCH v16 02/16] arm64: untag user pointers in access_ok and __uaccess_mask_ptr

2019-06-12 Thread Vincenzo Frascino
Hi Catalin, ... > -8< > From 7c624777a4e545522dec1b34e60f0229cb2bd59f Mon Sep 17 00:00:00 2001 > From: Catalin Marinas > Date: Tue, 11 Jun 2019 13:03:38 +0100 > Subject: [PATCH] arm64: Introduce prctl() options to control the tagged user > addresses ABI > > It is not

[PATCH 06/13] drm/i2c: tda998x: index audio port enable config by route type

2019-06-12 Thread Russell King
Rather than searching an array for the audio format (which we control) implement indexing by route type. This avoids iterating over the array in several locations. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 57 --- 1 file changed, 29

Re: [PATCH v2] drm: add fallback override/firmware EDID modes workaround

2019-06-12 Thread Paul Wise
On Mon, 2019-06-10 at 12:30 +0300, Jani Nikula wrote: > We've moved the override and firmware EDID (simply "override EDID" from > now on) handling to the low level drm_do_get_edid() function in order to > transparently use the override throughout the stack. The idea is that > you get the override

Re: [PATCH v16 05/16] arm64: untag user pointers passed to memory syscalls

2019-06-12 Thread Andrey Konovalov
On Mon, Jun 10, 2019 at 4:28 PM Catalin Marinas wrote: > > On Mon, Jun 03, 2019 at 06:55:07PM +0200, Andrey Konovalov wrote: > > This patch is a part of a series that extends arm64 kernel ABI to allow to > > pass tagged user pointers (with the top byte set to something else other > > than 0x00)

Re: [PATCH v16 03/16] lib, arm64: untag user pointers in strn*_user

2019-06-12 Thread Khalid Aziz
On 6/3/19 10:55 AM, Andrey Konovalov wrote: > This patch is a part of a series that extends arm64 kernel ABI to allow to > pass tagged user pointers (with the top byte set to something else other > than 0x00) as syscall arguments. > > strncpy_from_user and strnlen_user accept user addresses as

[PATCH v4 2/9] mm: Add an apply_to_pfn_range interface

2019-06-12 Thread VMware
From: Thomas Hellstrom This is basically apply_to_page_range with added functionality: Allocating missing parts of the page table becomes optional, which means that the function can be guaranteed not to error if allocation is disabled. Also passing of the closure struct and callback function

Re: [PATCH v16 05/16] arm64: untag user pointers passed to memory syscalls

2019-06-12 Thread Catalin Marinas
On Tue, Jun 11, 2019 at 05:35:31PM +0200, Andrey Konovalov wrote: > On Mon, Jun 10, 2019 at 4:28 PM Catalin Marinas > wrote: > > On Mon, Jun 03, 2019 at 06:55:07PM +0200, Andrey Konovalov wrote: > > > This patch is a part of a series that extends arm64 kernel ABI to allow to > > > pass tagged

[PATCH 12/13] drm/i2c: tda998x: add bridge timing information

2019-06-12 Thread Russell King
Add bridge timing information so that bridge users can figure out the timing parameters that are necessary for TDA998x. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 23 +++ 1 file changed, 23 insertions(+) diff --git

[PATCH 05/13] drm/i2c: tda998x: store audio port enable in settings

2019-06-12 Thread Russell King
Store the audio port enable register in the audio settings structure, which can never be zero for a valid audio configuration. Use this to signal whether we have audio configured, rather than AFMT_UNUSED. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 18 +++---

Re: [PATCH 2/2] drm: add fallback override/firmware EDID modes workaround

2019-06-12 Thread Paul Wise
On Mon, 2019-06-10 at 12:32 +0300, Jani Nikula wrote: > Right, I've added a call to drm_connector_update_edid_property() in v2 > to address this issue. Confirmed this fixed the EDID override data. > Can't think of why this would happen; the backtrace might offer clues. Unfortunately I wasn't

[Bug 110898] [Patch] to compile amdgpu-dkms 9.10 on debian stretch & buster

2019-06-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110898 Fab Stz changed: What|Removed |Added Component|DRM/AMDgpu |DRM/AMDgpu-pro -- You are receiving this

[PATCH v3 2/2] dt/bindings: drm/komeda: Adds SMMU support for D71 devicetree

2019-06-12 Thread Lowry Li (Arm Technology China)
From: "Lowry Li (Arm Technology China)" Updates the device-tree doc about how to enable SMMU by devicetree. Signed-off-by: Lowry Li (Arm Technology China) Reviewed-by: Liviu Dudau Reviewed-by: James Qian Wang (Arm Technology China) ---

Re: [PATCH v2 5/9] drm/ast: Pin framebuffer BO during dirty update

2019-06-12 Thread Sam Ravnborg
Hi Thomas. > > > > While touching this code, anyway we could get rid of drm_can_sleep()? > > I only ask because Daniel V. said that we should not use it. > > This was some months ago during some ehader file clean-up, so nothing > > in particular related to the ast driver. > > I'm aware of what

[Bug 110795] Unable to install on latest Ubuntu (19.04)

2019-06-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110795 Christian König changed: What|Removed |Added Resolution|--- |INVALID Status|NEW

[PATCH v5 08/15] drm/bridge: tc358767: Increase AUX transfer length limit

2019-06-12 Thread Andrey Smirnov
According to the datasheet tc358767 can transfer up to 16 bytes via its AUX channel, so the artificial limit of 8 appears to be too low. However only up to 15-bytes seem to be actually supported and trying to use 16-byte transfers results in transfers failing sporadically (with bogus status in

[PATCH v5 05/15] drm/bridge: tc358767: Drop custom tc_write()/tc_read() accessors

2019-06-12 Thread Andrey Smirnov
A very unfortunate aspect of tc_write()/tc_read() macro helpers is that they capture quite a bit of context around them and thus require the caller to have magic variables 'ret' and 'tc' as well as label 'err'. That makes a number of code paths rather counter-intuitive and somewhat clunky, for

[PATCH v5 09/15] drm/bridge: tc358767: Use reported AUX transfer size

2019-06-12 Thread Andrey Smirnov
Don't assume that requested data transfer size is the same as amount of data that was transferred. Change the code to get that information from DP0_AUXSTATUS instead. Since the check for AUX_BUSY in tc_aux_get_status() is pointless (it will always called after tc_aux_wait_busy()) and there's only

[PATCH v5 07/15] drm/bridge: tc358767: Simplify AUX data write

2019-06-12 Thread Andrey Smirnov
Simplify AUX data write by dropping index arithmetic and shifting and replacing it with a call to a helper function that does two things: 1. Copies user-provided data into a write buffer 2. Transfers contents of the write buffer to up to 4 32-bit registers on the chip Note that

[PATCH v5 02/15] drm/bridge: tc358767: Simplify polling in tc_main_link_setup()

2019-06-12 Thread Andrey Smirnov
Replace explicit polling loop with equivalent call to tc_poll_timeout() for brevity. No functional change intended. Signed-off-by: Andrey Smirnov Reviewed-by: Andrzej Hajda Cc: Andrzej Hajda Cc: Laurent Pinchart Cc: Tomi Valkeinen Cc: Andrey Gusakov Cc: Philipp Zabel Cc: Cory Tusar Cc:

[PATCH v5 10/15] drm/bridge: tc358767: Add support for address-only I2C transfers

2019-06-12 Thread Andrey Smirnov
Transfer size of zero means a request to do an address-only transfer. Since the HW support this, we probably shouldn't be just ignoring such requests. While at it allow DP_AUX_I2C_MOT flag to pass through, since it is supported by the HW as well. Signed-off-by: Andrey Smirnov Reviewed-by:

[PATCH v5 03/15] drm/bridge: tc358767: Simplify polling in tc_link_training()

2019-06-12 Thread Andrey Smirnov
Replace explicit polling in tc_link_training() with equivalent call to tc_poll_timeout() for simplicity. No functional change intended (not including slightly altered debug output). Signed-off-by: Andrey Smirnov Reviewed-by: Andrzej Hajda Cc: Andrzej Hajda Cc: Laurent Pinchart Cc: Tomi

[PATCH v5 12/15] drm/bridge: tc358767: Introduce tc_pllupdate()

2019-06-12 Thread Andrey Smirnov
tc_wait_pll_lock() is always called as a follow-up for updating PLLUPDATE and PLLEN bit of a given PLL control register. To simplify things, merge the two operation into a single helper function tc_pllupdate() and convert the rest of the code to use it. No functional change intended.

[PATCH v5 14/15] drm/bridge: tc358767: Drop unnecessary 8 byte buffer

2019-06-12 Thread Andrey Smirnov
tc_get_display_props() never reads more than a byte via AUX, so there's no need to reserve 8 for that purpose. No function change intended. Signed-off-by: Andrey Smirnov Reviewed-by: Andrzej Hajda Cc: Andrzej Hajda Cc: Laurent Pinchart Cc: Tomi Valkeinen Cc: Andrey Gusakov Cc: Philipp Zabel

[PATCH v5 04/15] drm/bridge: tc358767: Simplify tc_set_video_mode()

2019-06-12 Thread Andrey Smirnov
Simplify tc_set_video_mode() by replacing explicit shifting using macros from . No functional change intended. Signed-off-by: Andrey Smirnov Reviewed-by: Andrzej Hajda Cc: Andrzej Hajda Cc: Laurent Pinchart Cc: Tomi Valkeinen Cc: Andrey Gusakov Cc: Philipp Zabel Cc: Cory Tusar Cc: Chris

[Bug 110898] [Patch] to compile amdgpu-dkms 9.10 on debian stretch & buster

2019-06-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110898 Bug ID: 110898 Summary: [Patch] to compile amdgpu-dkms 9.10 on debian stretch & buster Product: DRI Version: DRI git Hardware: x86-64 (AMD64) OS: Linux

[PATCH v3 0/2] drm/komeda: Add SMMU support on Komeda driver

2019-06-12 Thread Lowry Li (Arm Technology China)
Hi, This serie aims at adding the support for SMMU on Komeda driver. Also updates the device-tree doc about how to enable SMMU by devicetree. This patch series depends on: - https://patchwork.freedesktop.org/series/58710/ - https://patchwork.freedesktop.org/series/59000/ -

[PATCH v3 2/2] dt/bindings: drm/komeda: Adds SMMU support for D71 devicetree

2019-06-12 Thread Lowry Li (Arm Technology China)
From: "Lowry Li (Arm Technology China)" Updates the device-tree doc about how to enable SMMU by devicetree. Signed-off-by: Lowry Li (Arm Technology China) Reviewed-by: Liviu Dudau Reviewed-by: James Qian Wang (Arm Technology China) ---

[PATCH 1/2] drm/vmwgfx: Use the backdoor port if the HB port is not available

2019-06-12 Thread VMware
From: Thomas Hellstrom The HB port may not be available for various reasons. Either it has been disabled by a config option or by the hypervisor for other reasons. In that case, make sure we have a backup plan and use the backdoor port instead with a performance penalty. Cc:

[PATCH 2/2] drm/vmwgfx: Honor the sg list segment size limitation

2019-06-12 Thread VMware
From: Thomas Hellstrom When building sg tables, honor the device sg list segment size limitation. Signed-off-by: Thomas Hellstrom Reviewed-by: Deepak Rawat --- drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

[Bug 203865] New: Crash in nouveau when loading game Big Pharma.

2019-06-12 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=203865 Bug ID: 203865 Summary: Crash in nouveau when loading game Big Pharma. Product: Drivers Version: 2.5 Kernel Version: 5.0.2 Hardware: All OS: Linux Tree:

Re: [PATCH v1 1/2] drm/bridge/synopsys: dsi: add power on/off optional phy ops

2019-06-12 Thread Andrzej Hajda
On 27.05.2019 12:21, Yannick Fertré wrote: > Add power on & off optional physical operation functions, helpful to > program specific registers of the DSI physical part. > > Signed-off-by: Yannick Fertré Reviewed-by: Andrzej Hajda  -- Regards Andrzej > --- >

Re: [PATCH 07/20] clk: renesas: r8a77990: Add CMM clocks

2019-06-12 Thread Geert Uytterhoeven
On Thu, Jun 6, 2019 at 4:25 PM Jacopo Mondi wrote: > Add clock definitions for CMM units on Renesas R-Car Gen3 E3. > > Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven i.e. will queue in clk-renesas-for-v5.3. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven

Re: [PATCH 08/20] clk: renesas: r8a77995: Add CMM clocks

2019-06-12 Thread Geert Uytterhoeven
On Thu, Jun 6, 2019 at 4:22 PM Jacopo Mondi wrote: > Add clock definitions for CMM units on Renesas R-Car Gen3 D3. > > Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven i.e. will queue in clk-renesas-for-v5.3. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven

Re: [PATCH v2 4/7] drm/bridge: Prepare Analogix anx6345 support

2019-06-12 Thread Andrzej Hajda
On 04.06.2019 14:22, Torsten Duwe wrote: > Add bit definitions required for the anx6345 and add a > sanity check in anx_dp_aux_transfer. > > Signed-off-by: Icenowy Zheng > Signed-off-by: Vasily Khoruzhick > Signed-off-by: Torsten Duwe Reviewed-by: Andrzej Hajda  -- Regards Andrzej > ---

Re: [PATCH v2 1/9] drm/gem-vram: Support pinning buffers to current location

2019-06-12 Thread Gerd Hoffmann
On Tue, Jun 11, 2019 at 03:03:36PM +0200, Thomas Zimmermann wrote: > Pinning a buffer prevents it from being moved to a different memory > location. For some operations, such as buffer updates, it is not > important where the buffer is located. Setting the pin function's > pl_flag argument to 0

Re: [PATCH v2 4/9] drm/ast: Pin and map cursor source BO during update

2019-06-12 Thread Gerd Hoffmann
On Tue, Jun 11, 2019 at 03:03:39PM +0200, Thomas Zimmermann wrote: > The ast driver used to lock the cursor source BO during updates. Locking > should be done internally by the BO's implementation, so we pin it instead > to system memory. The mapping information is also stored in the BO. No > need

Re: [PATCH v2 1/9] drm/gem-vram: Support pinning buffers to current location

2019-06-12 Thread Thomas Zimmermann
Hi Am 12.06.19 um 10:13 schrieb Gerd Hoffmann: > On Tue, Jun 11, 2019 at 03:03:36PM +0200, Thomas Zimmermann wrote: >> Pinning a buffer prevents it from being moved to a different memory >> location. For some operations, such as buffer updates, it is not >> important where the buffer is located.

[Bug 110862] Dual-monitors invalid state after turning on

2019-06-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110862 Michel Dänzer changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[GIT,PULL] mediatek drm fixes for 5.2

2019-06-12 Thread CK Hu
Hi Dave, Daniel: This include unbind error fix, clock control flow refinement, and PRIME mmap with page offset. Regards, CK The following changes since commit a188339ca5a396acc588e5851ed7e19f66b0ebd9: Linux 5.2-rc1 (2019-05-19 15:47:09 -0700) are available in the Git repository at:

Re: [PATCH] dma-buf: refcount the attachment for cache_sgt_mapping

2019-06-12 Thread Koenig, Christian
Am 12.06.19 um 10:02 schrieb Nicolin Chen: > Hi Christian, > > Thanks for the quick reply. > > On Wed, Jun 12, 2019 at 07:45:38AM +, Koenig, Christian wrote: >> Am 12.06.19 um 03:22 schrieb Nicolin Chen: >>> Commit f13e143e7444 ("dma-buf: start caching of sg_table objects v2") >>> added a

[PATCH] drm/bridge: dw-hdmi: Use automatic CTS generation mode when using non-AHB audio

2019-06-12 Thread Neil Armstrong
When using an I2S source using a different clock source (usually the I2S audio HW uses dedicated PLLs, different from the HDMI PHY PLL), fixed CTS values will cause some frequent audio drop-out and glitches as reported on Amlogic, Allwinner and Rockchip SoCs setups. Setting the CTS in automatic

Re: [PATCH 1/2] drm/omapdrm: drop fb_debug_enter/leave

2019-06-12 Thread Tomi Valkeinen
On 12/06/2019 12:12, Daniel Vetter wrote: This is a no-op on atomic drivers because with atomic it's simply too complicated to get all the locking and workers and nonblocking synchronization correct, from essentially an NMI context. Well, too complicated = impossible. Also, omapdrm never

[PATCH v5 6/9] drm/vmwgfx: Implement an infrastructure for write-coherent resources

2019-06-12 Thread VMware
From: Thomas Hellstrom This infrastructure will, for coherent resources, make sure that from the user-space point of view, data written by the CPU is immediately automatically available to the GPU at resource validation time. Signed-off-by: Thomas Hellstrom Reviewed-by: Deepak Rawat ---

[PATCH v5 8/9] drm/vmwgfx: Implement an infrastructure for read-coherent resources

2019-06-12 Thread VMware
From: Thomas Hellstrom Similar to write-coherent resources, make sure that from the user-space point of view, GPU rendered contents is automatically available for reading by the CPU. Signed-off-by: Thomas Hellstrom Reviewed-by: Deepak Rawat --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.h |

[PATCH v5 9/9] drm/vmwgfx: Add surface dirty-tracking callbacks

2019-06-12 Thread VMware
From: Thomas Hellstrom Add the callbacks necessary to implement emulated coherent memory for surfaces. Add a flag to the gb_surface_create ioctl to indicate that surface memory should be coherent. Also bump the drm minor version to signal the availability of coherent surfaces. Signed-off-by:

[PATCH v5 7/9] drm/vmwgfx: Use an RBtree instead of linked list for MOB resources

2019-06-12 Thread VMware
From: Thomas Hellstrom With emulated coherent memory we need to be able to quickly look up a resource from the MOB offset. Instead of traversing a linked list with O(n) worst case, use an RBtree with O(log n) worst case complexity. Signed-off-by: Thomas Hellstrom Reviewed-by: Deepak Rawat ---

[PATCH v5 2/9] mm: Add an apply_to_pfn_range interface

2019-06-12 Thread VMware
From: Thomas Hellstrom This is basically apply_to_page_range with added functionality: Allocating missing parts of the page table becomes optional, which means that the function can be guaranteed not to error if allocation is disabled. Also passing of the closure struct and callback function

[PATCH v5 3/9] mm: Add write-protect and clean utilities for address space ranges

2019-06-12 Thread VMware
From: Thomas Hellstrom Add two utilities to a) write-protect and b) clean all ptes pointing into a range of an address space. The utilities are intended to aid in tracking dirty pages (either driver-allocated system memory or pci device memory). The write-protect utility should be used in

[PATCH v5 5/9] drm/ttm: TTM fault handler helpers

2019-06-12 Thread VMware
From: Thomas Hellstrom With the vmwgfx dirty tracking, the default TTM fault handler is not completely sufficient (vmwgfx need to modify the vma->vm_flags member, and also needs to restrict the number of prefaults). We also want to replicate the new ttm_bo_vm_reserve() functionality So start

[PATCH v5 0/9] Emulated coherent graphics memory

2019-06-12 Thread VMware
Planning to merge this through the drm/vmwgfx tree soon, so if there are any objections, please speak up. Graphics APIs like OpenGL 4.4 and Vulkan require the graphics driver to provide coherent graphics memory, meaning that the GPU sees any content written to the coherent memory on the next GPU

[PATCH v5 1/9] mm: Allow the [page|pfn]_mkwrite callbacks to drop the mmap_sem

2019-06-12 Thread VMware
From: Thomas Hellstrom Driver fault callbacks are allowed to drop the mmap_sem when expecting long hardware waits to avoid blocking other mm users. Allow the mkwrite callbacks to do the same by returning early on VM_FAULT_RETRY. In particular we want to be able to drop the mmap_sem when waiting

[PATCH v5 4/9] drm/ttm: Allow the driver to provide the ttm struct vm_operations_struct

2019-06-12 Thread VMware
From: Thomas Hellstrom Add a pointer to the struct vm_operations_struct in the bo_device, and assign that pointer to the default value currently used. The driver can then optionally modify that pointer and the new value can be used for each new vma created. Cc: "Christian König"

[PATCH v3 1/2] drm/komeda: Adds SMMU support

2019-06-12 Thread Lowry Li (Arm Technology China)
From: "Lowry Li (Arm Technology China)" Adds iommu_connect and disconnect for SMMU support, and configures TBU translation once SMMU has been attached to the display device. Signed-off-by: Lowry Li (Arm Technology China) --- .../gpu/drm/arm/display/komeda/d71/d71_component.c | 5 +++

Re: [PATCH v1 0/2] dw-mipi-dsi: add power on & off optional phy ops and update stm

2019-06-12 Thread Andrzej Hajda
On 27.05.2019 12:21, Yannick Fertré wrote: > These patches fix a bug concerning an access issue to display controler (ltdc) > registers. > If the physical layer of the DSI is started too early then the fifo DSI are > full > very quickly which implies ltdc register's access hang up. To avoid this

Re: [PATCH] dma-buf: refcount the attachment for cache_sgt_mapping

2019-06-12 Thread Koenig, Christian
Am 12.06.19 um 03:22 schrieb Nicolin Chen: > Commit f13e143e7444 ("dma-buf: start caching of sg_table objects v2") > added a support of caching the sgt pointer into an attach pointer to > let users reuse the sgt pointer without another mapping. However, it > might not totally work as most of

Re: [PATCH v2 6/7] dt-bindings: Add ANX6345 DP/eDP transmitter binding

2019-06-12 Thread Andrzej Hajda
On 04.06.2019 14:23, Torsten Duwe wrote: > The anx6345 is an ultra-low power DisplayPort/eDP transmitter designed > for portable devices. > > Add a binding document for it. > > Signed-off-by: Icenowy Zheng > Signed-off-by: Vasily Khoruzhick > Reviewed-by: Rob Herring > Signed-off-by: Torsten

[Bug 110888] 5.0.21 kernel crash when many GPU app run concurrently , error msg: amdgpu_vm_validate_pt_bos() failed. , Not enough memory for command submission!

2019-06-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110888 --- Comment #2 from Christian König --- Looks like a NULL pointer check is missing somewhere in amdgpu_vm_init() to me. But in general you are running out of system memory, not video memory. So whatever you try to do here won't work in general

Re: [PATCH] dma-buf: refcount the attachment for cache_sgt_mapping

2019-06-12 Thread Nicolin Chen
Hi Christian, On Wed, Jun 12, 2019 at 08:05:53AM +, Koenig, Christian wrote: > Am 12.06.19 um 10:02 schrieb Nicolin Chen: > > Hi Christian, > > > > Thanks for the quick reply. > > > > On Wed, Jun 12, 2019 at 07:45:38AM +, Koenig, Christian wrote: > >> Am 12.06.19 um 03:22 schrieb Nicolin

[PATCH v5 00/15] tc358767 driver improvements

2019-06-12 Thread Andrey Smirnov
Everyone: This series contains various improvements (at least in my mind) and fixes that I made to tc358767 while working with the code of the driver. Hopefuly each patch is self explanatory. Feedback is welcome! Thanks, Andrey Smirnov Changes since [v4]: - tc_pllupdate_pllen() renamed to

Re: [PATCH v2 3/7] drm/bridge: extract some Analogix I2C DP common code

2019-06-12 Thread Andrzej Hajda
On 04.06.2019 14:22, Torsten Duwe wrote: > From: Icenowy Zheng > > Some code can be shared within different DP bridges by Analogix. > Extract them to analogix_dp. > > Signed-off-by: Icenowy Zheng > Signed-off-by: Vasily Khoruzhick > Signed-off-by: Torsten Duwe > --- >

Re: [PATCH 05/20] clk: renesas: r8a7795: Add CMM clocks

2019-06-12 Thread Geert Uytterhoeven
On Thu, Jun 6, 2019 at 4:22 PM Jacopo Mondi wrote: > Add clock definitions for CMM units on Renesas R-Car Gen3 H3. > > Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven i.e. will queue in clk-renesas-for-v5.3. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven

Re: [PATCH 06/20] clk: renesas: r8a77965: Add CMM clocks

2019-06-12 Thread Geert Uytterhoeven
On Thu, Jun 6, 2019 at 4:22 PM Jacopo Mondi wrote: > Add clock definitions for CMM units on Renesas R-Car Gen3 M3-N. > > Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven i.e. will queue in clk-renesas-for-v5.3. Gr{oetje,eeting}s, Geert -- Geert

Re: [RFC v2 01/11] OPP: Don't overwrite rounded clk rate

2019-06-12 Thread Rajendra Nayak
On 6/11/2019 4:24 PM, Viresh Kumar wrote: On 20-03-19, 15:19, Rajendra Nayak wrote: From: Stephen Boyd Doing this allows us to call this API with any rate requested and have it not need to match in the OPP table. Instead, we'll round the rate up to the nearest OPP that we see so that we can

Re: [PATCH v2 7/9] drm/mgag200: Rewrite cursor handling

2019-06-12 Thread Gerd Hoffmann
On Tue, Jun 11, 2019 at 03:03:42PM +0200, Thomas Zimmermann wrote: > The cursor handling in mgag200 is complicated to understand. It touches a > number of different BOs, but doesn't really use all of them. > > Rewriting the cursor update reduces the amount of cursor state. There are > two BOs for

Re: [PATCH v1 2/2] drm/stm: dsi: add power on/off phy ops

2019-06-12 Thread Andrzej Hajda
On 27.05.2019 12:21, Yannick Fertré wrote: > These new physical operations are helpful to power_on/off the dsi > wrapper. If the dsi wrapper is powered in video mode, the display > controller (ltdc) register access will hang when DSI fifos are full. > > Signed-off-by: Yannick Fertré

Re: [PATCH 6/8] drm/mgag200: Rewrite cursor handling

2019-06-12 Thread Thomas Zimmermann
Hi Am 11.06.19 um 17:33 schrieb Daniel Vetter: > On Tue, Jun 11, 2019 at 2:32 PM Thomas Zimmermann wrote: >> >> Hi >> >> Am 05.06.19 um 11:58 schrieb Gerd Hoffmann: >>> On Tue, Jun 04, 2019 at 05:41:59PM +0200, Thomas Zimmermann wrote: The cursor handling in mgag200 is complicated to

Re: [PATCH v2 2/7] drm/bridge: split some definitions of ANX78xx to dedicated headers

2019-06-12 Thread Andrzej Hajda
On 04.06.2019 14:22, Torsten Duwe wrote: > From: Icenowy Zheng > > Some definitions currently in analogix-anx78xx.h are not restricted to > the ANX78xx series, but also applicable to other DisplayPort > transmitters by Analogix. > > Split out them to dedicated headers, and make analogix-anx78xx.h

Re: [PATCH v3 3/6] drm/modes: Allow to specify rotation and reflection on the commandline

2019-06-12 Thread Jani Nikula
On Tue, 11 Jun 2019, Maxime Ripard wrote: > Hi Noralf, > > On Fri, Apr 19, 2019 at 10:53:28AM +0200, Noralf Trønnes wrote: >> Den 18.04.2019 18.40, skrev Noralf Trønnes: >> > >> > >> > Den 18.04.2019 14.41, skrev Maxime Ripard: >> >> Rotations and reflections setup are needed in some scenarios to

Re: [RFC v2 01/11] OPP: Don't overwrite rounded clk rate

2019-06-12 Thread Viresh Kumar
On 12-06-19, 13:12, Rajendra Nayak wrote: > so the 'fmax' tables basically say what the max frequency the device can > operate at for a given performance state/voltage level. > > so in your example it would be for instance > > 500M, Perf state = 2 > 1G, Perf state = 3 > 1.2G, Perf state = 4 > >

Re: [PATCH] dma-buf: refcount the attachment for cache_sgt_mapping

2019-06-12 Thread Nicolin Chen
On Wed, Jun 12, 2019 at 08:20:41AM +, Koenig, Christian wrote: > Am 12.06.19 um 10:15 schrieb Nicolin Chen: > > Hi Christian, > > > > On Wed, Jun 12, 2019 at 08:05:53AM +, Koenig, Christian wrote: > >> Am 12.06.19 um 10:02 schrieb Nicolin Chen: > >> [SNIP] > >>> We haven't used

[PATCH 1/2] drm/omapdrm: drop fb_debug_enter/leave

2019-06-12 Thread Daniel Vetter
This is a no-op on atomic drivers because with atomic it's simply too complicated to get all the locking and workers and nonblocking synchronization correct, from essentially an NMI context. Well, too complicated = impossible. Also, omapdrm never implemented the mode_set_base_atomic hook, so I

[PATCH 02/13] drm/i2c: tda998x: implement different I2S flavours

2019-06-12 Thread Russell King
Add support for the left and right justified I2S formats as well as the more tranditional "Philips" I2S format. Tested-by: Peter Ujfalusi Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 53 +-- 1 file changed, 34 insertions(+), 19

[PATCH 01/13] drm/i2c: tda998x: introduce tda998x_audio_settings

2019-06-12 Thread Russell King
Introduce a structure to hold the register values to be programmed while programming the TDA998x audio settings. This is currently a stub structure, which will be populated in subsequent commits. When we initialise this from the platform data, only do so if there is a valid audio format

Re: [PATCH v4 3/9] mm: Add write-protect and clean utilities for address space ranges

2019-06-12 Thread Nadav Amit
> On Jun 11, 2019, at 5:24 AM, Thomas Hellström (VMware) > wrote: > > From: Thomas Hellstrom > [ snip ] > +/** > + * apply_pt_wrprotect - Leaf pte callback to write-protect a pte > + * @pte: Pointer to the pte > + * @token: Page table token, see apply_to_pfn_range() > + * @addr: The virtual

Re: [PATCH v2 hmm 02/11] mm/hmm: Use hmm_mirror not mm as an argument for hmm_range_register

2019-06-12 Thread Jason Gunthorpe
On Sat, Jun 08, 2019 at 01:54:25AM -0700, Christoph Hellwig wrote: > FYI, I very much disagree with the direction this is moving. > > struct hmm_mirror literally is a trivial duplication of the > mmu_notifiers. All these drivers should just use the mmu_notifiers > directly for the mirroring part

Re: [PATCH v16 02/16] arm64: untag user pointers in access_ok and __uaccess_mask_ptr

2019-06-12 Thread Catalin Marinas
On Tue, Jun 11, 2019 at 07:09:46PM +0200, Andrey Konovalov wrote: > On Tue, Jun 11, 2019 at 4:57 PM Catalin Marinas > wrote: > > > > On Mon, Jun 10, 2019 at 06:53:27PM +0100, Catalin Marinas wrote: > > > On Mon, Jun 03, 2019 at 06:55:04PM +0200, Andrey Konovalov wrote: > > > > diff --git

[PATCH 03/13] drm/i2c: tda998x: improve programming of audio divisor

2019-06-12 Thread Russell King
Improve the selection of the audio clock divisor so that more modes and sample rates work. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 44 +-- 1 file changed, 28 insertions(+), 16 deletions(-) diff --git

Re: [PATCH v16 02/16] arm64: untag user pointers in access_ok and __uaccess_mask_ptr

2019-06-12 Thread Catalin Marinas
On Mon, Jun 10, 2019 at 06:53:27PM +0100, Catalin Marinas wrote: > On Mon, Jun 03, 2019 at 06:55:04PM +0200, Andrey Konovalov wrote: > > diff --git a/arch/arm64/include/asm/uaccess.h > > b/arch/arm64/include/asm/uaccess.h > > index e5d5f31c6d36..9164ecb5feca 100644 > > ---

[PATCH 10/13] drm/i2c: tda998x: get rid of params in audio settings

2019-06-12 Thread Russell King
Get rid of the tda998x_audio_params structure in audio_settings, which is now just used for platform data. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 43 +++ 1 file changed, 26 insertions(+), 17 deletions(-) diff --git

Re: [PATCH v16 08/16] fs, arm64: untag user pointers in copy_mount_options

2019-06-12 Thread Andrey Konovalov
On Sat, Jun 8, 2019 at 6:02 AM Kees Cook wrote: > > On Mon, Jun 03, 2019 at 06:55:10PM +0200, Andrey Konovalov wrote: > > This patch is a part of a series that extends arm64 kernel ABI to allow to > > pass tagged user pointers (with the top byte set to something else other > > than 0x00) as

[PATCH v4 3/9] mm: Add write-protect and clean utilities for address space ranges

2019-06-12 Thread VMware
From: Thomas Hellstrom Add two utilities to a) write-protect and b) clean all ptes pointing into a range of an address space. The utilities are intended to aid in tracking dirty pages (either driver-allocated system memory or pci device memory). The write-protect utility should be used in

[PATCH i-g-t 1/2] lib/panfrost: Add support for SFBD to igt_panfrost_trivial_job

2019-06-12 Thread Tomeu Vizoso
T720 GPUs and older don't have support for MFBD, so use the SFBD structs instead. We don't know yet how to hang the GPU with SFBD descriptors, so for now skip that test. Signed-off-by: Tomeu Vizoso --- lib/igt_panfrost.c | 71 +- lib/igt_panfrost.h |

Re: [PATCH v16 16/16] selftests, arm64: add a selftest for passing tagged pointers to kernel

2019-06-12 Thread Andrey Konovalov
On Tue, Jun 11, 2019 at 5:01 PM Catalin Marinas wrote: > > On Mon, Jun 03, 2019 at 06:55:18PM +0200, Andrey Konovalov wrote: > > This patch is a part of a series that extends arm64 kernel ABI to allow to > > pass tagged user pointers (with the top byte set to something else other > > than 0x00)

Re: [PATCH v16 16/16] selftests, arm64: add a selftest for passing tagged pointers to kernel

2019-06-12 Thread Catalin Marinas
On Mon, Jun 03, 2019 at 06:55:18PM +0200, Andrey Konovalov wrote: > This patch is a part of a series that extends arm64 kernel ABI to allow to > pass tagged user pointers (with the top byte set to something else other > than 0x00) as syscall arguments. > > This patch adds a simple test, that

Re: [PATCH v2 hmm 00/11] Various revisions from a locking/code review

2019-06-12 Thread Jason Gunthorpe
On Thu, Jun 06, 2019 at 03:44:27PM -0300, Jason Gunthorpe wrote: > From: Jason Gunthorpe > > For hmm.git: > > This patch series arised out of discussions with Jerome when looking at the > ODP changes, particularly informed by use after free races we have already > found and fixed in the ODP

Re: [PATCH v2 5/9] drm/ast: Pin framebuffer BO during dirty update

2019-06-12 Thread Thomas Zimmermann
Hi Am 11.06.19 um 22:29 schrieb Sam Ravnborg: > Hi Thomas. > > On Tue, Jun 11, 2019 at 03:03:40PM +0200, Thomas Zimmermann wrote: >> Another explicit lock operation of a GEM VRAM BO is located in AST's >> framebuffer update code. Instead of locking the BO, we pin it to wherever >> it is. >> >>

Re: [GIT PULL] omapdrm changes for 5.3

2019-06-12 Thread Tomi Valkeinen
On 11/06/2019 20:36, Daniel Vetter wrote: omapdrm changes for 5.3 - Add support for DSI command mode displays Thanks, pulled. Finally :) Hm why? Pull is less than a day old, and I didn't see an older one that Dave or me missed ... That was directed at me =). I've been reluctant to

Re: [PATCH] dma-buf: refcount the attachment for cache_sgt_mapping

2019-06-12 Thread Koenig, Christian
Am 12.06.19 um 10:15 schrieb Nicolin Chen: > Hi Christian, > > On Wed, Jun 12, 2019 at 08:05:53AM +, Koenig, Christian wrote: >> Am 12.06.19 um 10:02 schrieb Nicolin Chen: >> [SNIP] >>> We haven't used DRM/GRM_PRIME yet but I am also curious would it >>> benefit DRM also if we reduce this

[Bug 110862] Dual-monitors invalid state after turning on

2019-06-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110862 Michel Dänzer changed: What|Removed |Added Attachment #144506|text/x-log |text/plain mime type|

Re: [PATCH v2 7/7] arm64: dts: allwinner: a64: enable ANX6345 bridge on Teres-I

2019-06-12 Thread Andrzej Hajda
On 07.06.2019 11:40, Torsten Duwe wrote: > On Fri, Jun 07, 2019 at 08:28:02AM +0200, Maxime Ripard wrote: >> On Thu, Jun 06, 2019 at 03:59:27PM +0200, Harald Geyer wrote: >>> If think valid compatible properties would be: >>> compatible = "innolux,n116bge", "simple-panel"; >>> compatible =

Re: [PATCH v2 1/7] drm/bridge: move ANA78xx driver to analogix subdirectory

2019-06-12 Thread Andrzej Hajda
On 04.06.2019 14:22, Torsten Duwe wrote: > From: Icenowy Zheng > > As ANA78xx chips are designed and produced by Analogix Semiconductor, > Inc, move their driver codes into analogix subdirectory. > > Signed-off-by: Icenowy Zheng > Signed-off-by: Vasily Khoruzhick > Reviewed-by: Laurent Pinchart

Re: [PATCH] video: backlight: Replace old GPIO APIs with GPIO Consumer APIs for sky81542-backlight driver

2019-06-12 Thread Daniel Thompson
Hi Shobhit Thanks for the patch. Feedback below... On Tue, Jun 11, 2019 at 09:32:32PM -0700, Shobhit Kukreti wrote: > Port the sky81452-backlight driver to adhere to new gpio descriptor based > APIs. Modified the file sky81452-backlight.c and sky81452-backlight.h. > The gpio descriptor property

Re: [PATCH v2] drm: add fallback override/firmware EDID modes workaround

2019-06-12 Thread Jani Nikula
On Tue, 11 Jun 2019, Paul Wise wrote: > On Mon, 2019-06-10 at 12:30 +0300, Jani Nikula wrote: >> We've moved the override and firmware EDID (simply "override EDID" from >> now on) handling to the low level drm_do_get_edid() function in order to >> transparently use the override throughout the

  1   2   3   >