[PATCH 01/10] drm/mxsfb: Update mxsfb to support a bridge

2019-06-26 Thread Robert Chiras
Currently, the MXSFB DRM driver only supports a panel. But, its output display signal can also be redirected to another encoder, like a DSI controller. In this case, that DSI controller may act like a drm_bridge. In order support this use-case too, this patch adds support for drm_bridge in mxsfb.

[PATCH 09/10] drm/mxsfb: Clear OUTSTANDING_REQS bits

2019-06-26 Thread Robert Chiras
Bit 21 can alter the CTRL2_OUTSTANDING_REQS value right after the eLCDIF is enabled, since it comes up with default value of 1 (this behaviour has been seen on some imx8 platforms). In order to fix this, clear CTRL2_OUTSTANDING_REQS bits before setting its value. Signed-off-by: Robert Chiras ---

Re: [PATCH][next[ drm/amd/display: fix a couple of spelling mistakes

2019-06-26 Thread Colin Ian King
On 26/06/2019 14:25, Daniel Stone wrote: > Hi Colin, > > On Wed, 26 Jun 2019 at 14:24, Colin King wrote: >> There are a couple of spelling mistakes in dm_error messages and >> a comment. Fix these. > > Whilst there, you might fix the '[next[' typo in the commit message. Ugh, fickle fingers. May

[PATCH 10/10] drm/mxsfb: Add support for horizontal stride

2019-06-26 Thread Robert Chiras
Besides the eLCDIF block, there is another IP block, used in the past for EPDC panels. Since the iMX.8mq doesn't have an EPDC connector, this block is not documented, but we can use it to do additional operations on the frame buffer. In this case, we can use the pigeon registers from this IP block

[PATCH 00/10] Improvements and fixes for mxsfb DRM driver

2019-06-26 Thread Robert Chiras
This patch-set improves the use of eLCDIF block on iMX 8 SoCs (like 8MQ, 8MM and 8QXP). Following, are the new features added and fixes from this patch-set: 1. Add support for drm_bridge On 8MQ and 8MM, the LCDIF block is not directly connected to a parallel display connector, where an LCD panel c

[PATCH 02/10] drm/mxsfb: Update mxsfb with additional pixel formats

2019-06-26 Thread Robert Chiras
Since version 4 of eLCDIF, there are some registers that can do transformations on the input data, like re-arranging the pixel components. By doing that, we can support more pixel formats. This patch adds support for X/ABGR and RGBX/A. Although, the local alpha is not supported by eLCDIF, the alpha

[PATCH 08/10] drm/mxsfb: Improve the axi clock usage

2019-06-26 Thread Robert Chiras
Currently, the enable of the axi clock return status is ignored, causing issues when the enable fails then we try to disable it. Therefore, it is better to check the return status and disable it only when enable succeeded. Also, remove the helper functions around clk_axi, since we can directly use

[PATCH 07/10] drm/mxsfb: Update mxsfb to support LCD reset

2019-06-26 Thread Robert Chiras
The eLCDIF controller has control pin for the external LCD reset pin. Add support for it and assert this pin in enable and de-assert it in disable. Signed-off-by: Robert Chiras --- drivers/gpu/drm/mxsfb/mxsfb_crtc.c | 10 -- drivers/gpu/drm/mxsfb/mxsfb_regs.h | 1 + 2 files changed, 9 i

[Bug 111002] helloooooooooo

2019-06-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111002 Andre Klapper changed: What|Removed |Added Version|DRI git |unspecified Component|General

[Bug 111000] gears width twisted

2019-06-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111000 Andre Klapper changed: What|Removed |Added Resolution|--- |INVALID Group|

[PATCH] docs: gpu: add msm-crash-dump.rst to the index.rst file

2019-06-26 Thread Mauro Carvalho Chehab
This file is currently orphaned. Signed-off-by: Mauro Carvalho Chehab --- Documentation/gpu/index.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/gpu/index.rst b/Documentation/gpu/index.rst index 1fcf8e851e15..55f3f4294686 100644 --- a/Documentation/gpu/index.rst +++ b/Docu

Re: [Intel-gfx] [PATCH V4] drm/drm_vblank: Change EINVAL by the correct errno

2019-06-26 Thread Rodrigo Siqueira
On Wed, Jun 26, 2019 at 4:53 AM Daniel Vetter wrote: > > On Wed, Jun 26, 2019 at 4:00 AM Rodrigo Siqueira > wrote: > > > > On 06/19, Daniel Vetter wrote: > > > On Wed, Jun 19, 2019 at 09:48:56AM +0200, Daniel Vetter wrote: > > > > On Tue, Jun 18, 2019 at 11:07:50PM -0300, Rodrigo Siqueira wrote:

Re: [PATCH] drm/connector: Allow max possible encoders to attach to a connector

2019-06-26 Thread Ville Syrjälä
On Tue, Jun 25, 2019 at 04:40:45PM -0700, Dhinakaran Pandiyan wrote: > Currently we restrict the number of encoders that can be linked to > a connector to 3, increase it to match the maximum number of encoders > that can be initialized - 32. The current limitation looks artificial. > Increasing the

Re: [PATCH 00/10] drm/vkms: rework crc worker

2019-06-26 Thread Rodrigo Siqueira
On Wed, Jun 26, 2019 at 4:55 AM Daniel Vetter wrote: > > On Wed, Jun 26, 2019 at 3:44 AM Rodrigo Siqueira > wrote: > > > > On 06/19, Daniel Vetter wrote: > > > On Tue, Jun 18, 2019 at 11:54 PM Rodrigo Siqueira > > > wrote: > > > > > > > > On Tue, Jun 18, 2019 at 5:56 AM Daniel Vetter wrote: > >

[Bug 109359] Flickering and artifacts on dual 4K displays from RX 570

2019-06-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109359 --- Comment #6 from Timur Kristóf --- I forgot about this bug. Looks like I misunderstood keziolio's last comment. Yes, I can confirm that the problem is not present when amdgpu.ppfeaturemask is not set on the kernel command line. -- You are r

Re: [PATCH] [v8, 1/2] dt-bindings: panel: Add Boe Himax8279d is 1200x1920, 4-lane MIPI-DSI LCD panel

2019-06-26 Thread Emil Velikov
On Wed, 26 Jun 2019 at 13:55, Sam Ravnborg wrote: > > On Thu, Apr 25, 2019 at 11:18:42AM +0800, Jerry Han wrote: > > The Boe Himax8279d is a 8.0" panel with a 1200x1920 resolution and > > connected to DSI using four lanes. > > > > V8: > > - Modify communication address > > > > V7: > > - Add the in

Re: [Intel-gfx] [PATCH V4] drm/drm_vblank: Change EINVAL by the correct errno

2019-06-26 Thread Daniel Vetter
On Wed, Jun 26, 2019 at 10:37:11AM -0300, Rodrigo Siqueira wrote: > On Wed, Jun 26, 2019 at 4:53 AM Daniel Vetter wrote: > > > > On Wed, Jun 26, 2019 at 4:00 AM Rodrigo Siqueira > > wrote: > > > > > > On 06/19, Daniel Vetter wrote: > > > > On Wed, Jun 19, 2019 at 09:48:56AM +0200, Daniel Vetter w

Re: [PATCH] docs: gpu: add msm-crash-dump.rst to the index.rst file

2019-06-26 Thread Daniel Vetter
On Wed, Jun 26, 2019 at 10:36:11AM -0300, Mauro Carvalho Chehab wrote: > This file is currently orphaned. > > Signed-off-by: Mauro Carvalho Chehab > --- > Documentation/gpu/index.rst | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentation/gpu/index.rst b/Documentation/gpu/index.r

Re: [PATCH] [v8, 1/2] dt-bindings: panel: Add Boe Himax8279d is 1200x1920, 4-lane MIPI-DSI LCD panel

2019-06-26 Thread Sam Ravnborg
Hi Emil. > > > > Thanks, > > patch applied to drm-misc-next and will be pushed out soon. > > > Isn't an ack/rb from a DT maintainer a requirement before being picked > via the DRM trees? > It used to be a thing, although it could have changed recently. I got OK via irc to take some simple panel bi

Re: [PATCH v3 3/4] drm/vblank: estimate vblank while disabling vblank if interrupt disabled

2019-06-26 Thread Daniel Vetter
On Wed, Jun 26, 2019 at 04:27:32PM +0300, Ville Syrjälä wrote: > On Tue, Jun 25, 2019 at 06:59:14PM +0100, Robert Beckett wrote: > > If interrupts are disabled (e.g. via vblank_disable_fn) and we come to > > disable vblank, update the vblank count to best guess as to what it > > would be had the in

Re: [Intel-gfx] [PATCH] drm/connector: Allow max possible encoders to attach to a connector

2019-06-26 Thread Daniel Vetter
On Wed, Jun 26, 2019 at 04:43:28PM +0300, Ville Syrjälä wrote: > On Tue, Jun 25, 2019 at 04:40:45PM -0700, Dhinakaran Pandiyan wrote: > > Currently we restrict the number of encoders that can be linked to > > a connector to 3, increase it to match the maximum number of encoders > > that can be init

Re: [PATCH 1/2] drm/vram: store dumb bo dimensions.

2019-06-26 Thread Sam Ravnborg
Hi Gerd. On Wed, Jun 26, 2019 at 08:55:50AM +0200, Gerd Hoffmann wrote: > Store width and height of the bo. Needed in case userspace > sets up a framebuffer with fb->width != bo->width.. > > Signed-off-by: Gerd Hoffmann > --- > include/drm/drm_gem_vram_helper.h | 1 + > drivers/gpu/drm/drm

Re: [PATCH v5 0/7] drm/panel: simple: Add mode support to devicetree

2019-06-26 Thread Doug Anderson
Hi, On Wed, Jun 26, 2019 at 6:00 AM Sam Ravnborg wrote: > > Hi Douglas. > > On Mon, Apr 01, 2019 at 10:17:17AM -0700, Douglas Anderson wrote: > > I'm reviving Sean Paul's old patchset to get mode support in device > > tree. The cover letter for his v3 is at: > > https://lists.freedesktop.org/arc

Re: [PATCH 1/2] dt-bindings: backlight: fix vendor prefix for ArcticSand arcxcnn driver bindings

2019-06-26 Thread Rob Herring
On Wed, Jun 26, 2019 at 4:56 AM Daniel Thompson wrote: > > On Tue, Jun 25, 2019 at 07:44:06AM -0400, Brian Dodge wrote: > > I would like to deprecate the old prefix in the future after communicating > > with all chip customers, which is why the old prefix is not documented in > > the new bindings.

Re: [PATCH] [v8, 1/2] dt-bindings: panel: Add Boe Himax8279d is 1200x1920, 4-lane MIPI-DSI LCD panel

2019-06-26 Thread Emil Velikov
On Wed, 26 Jun 2019 at 15:29, Sam Ravnborg wrote: > > Hi Emil. > > > > > > > Thanks, > > > patch applied to drm-misc-next and will be pushed out soon. > > > > > Isn't an ack/rb from a DT maintainer a requirement before being picked > > via the DRM trees? > > It used to be a thing, although it coul

Re: [PATCH v2 2/4] backlight: Expose brightness curve type through sysfs

2019-06-26 Thread Pavel Machek
Hi! > Export the type of the brightness curve via the new sysfs attribute > 'scale'. The value of the attribute may be a simple string like > 'linear' or 'non-linear', or a composite string similar to > 'compatible' strings of the device tree. A composite string consists > of different elements se

Re: [PATCH v2 4/4] backlight: pwm_bl: Set scale type for brightness curves specified in the DT

2019-06-26 Thread Pavel Machek
On Mon 2019-06-24 13:31:13, Matthias Kaehlcke wrote: > Check if a brightness curve specified in the device tree is linear or > not and set the corresponding property accordingly. This makes the > scale type available to userspace via the 'scale' sysfs attribute. > > To determine if a curve is line

Re: [PATCH 1/2] dt-bindings: backlight: fix vendor prefix for ArcticSand arcxcnn driver bindings

2019-06-26 Thread Pavel Machek
On Wed 2019-06-26 11:56:14, Daniel Thompson wrote: > On Tue, Jun 25, 2019 at 07:44:06AM -0400, Brian Dodge wrote: > > I would like to deprecate the old prefix in the future after communicating > > with all chip customers, which is why the old prefix is not documented in > > the new bindings. > > D

[RFC PATCH v3 03/11] drm/amdgpu: Register AMD devices for DRM cgroup

2019-06-26 Thread Kenny Ho
Change-Id: I3750fc657b956b52750a36cb303c54fa6a265b44 Signed-off-by: Kenny Ho --- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c index da7b4fe8ade3..2568fd730161 1006

[RFC PATCH v3 00/11] new cgroup controller for gpu/drm subsystem

2019-06-26 Thread Kenny Ho
This is a follow up to the RFC I made previously to introduce a cgroup controller for the GPU/DRM subsystem [v1,v2]. The goal is to be able to provide resource management to GPU resources using things like container. The cover letter from v1 is copied below for reference. [v1]: https://lists.free

[RFC PATCH v3 01/11] cgroup: Introduce cgroup for drm subsystem

2019-06-26 Thread Kenny Ho
Change-Id: I6830d3990f63f0c13abeba29b1d330cf28882831 Signed-off-by: Kenny Ho --- include/linux/cgroup_drm.h| 76 +++ include/linux/cgroup_subsys.h | 4 ++ init/Kconfig | 5 +++ kernel/cgroup/Makefile| 1 + kernel/cgroup/drm.c

[RFC PATCH v3 06/11] drm, cgroup: Add GEM buffer allocation count stats

2019-06-26 Thread Kenny Ho
drm.buffer.count.stats A read-only flat-keyed file which exists on all cgroups. Each entry is keyed by the drm device's major:minor. Total number of GEM buffer allocated. Change-Id: Id3e1809d5fee8562e47a7d2b961688956d844ec6 Signed-off-by: Kenny Ho --- include/linux/cgro

[RFC PATCH v3 04/11] drm, cgroup: Add total GEM buffer allocation limit

2019-06-26 Thread Kenny Ho
The drm resource being measured and limited here is the GEM buffer objects. User applications allocate and free these buffers. In addition, a process can allocate a buffer and share it with another process. The consumer of a shared buffer can also outlive the allocator of the buffer. For the pu

[RFC PATCH v3 05/11] drm, cgroup: Add peak GEM buffer allocation limit

2019-06-26 Thread Kenny Ho
drm.buffer.peak.stats A read-only flat-keyed file which exists on all cgroups. Each entry is keyed by the drm device's major:minor. Largest GEM buffer allocated in bytes. drm.buffer.peak.default A read-only flat-keyed file which exists on the root cgroup.

[RFC PATCH v3 09/11] drm, cgroup: Add per cgroup bw measure and control

2019-06-26 Thread Kenny Ho
The bandwidth is measured by keeping track of the amount of bytes moved by ttm within a time period. We defined two type of bandwidth: burst and average. Average bandwidth is calculated by dividing the total amount of bytes moved within a cgroup by the lifetime of the cgroup. Burst bandwidth is s

[RFC PATCH v3 07/11] drm, cgroup: Add TTM buffer allocation stats

2019-06-26 Thread Kenny Ho
The drm resource being measured is the TTM (Translation Table Manager) buffers. TTM manages different types of memory that a GPU might access. These memory types include dedicated Video RAM (VRAM) and host/system memory accessible through IOMMU (GART/GTT). TTM is currently used by multiple drm dr

[RFC PATCH v3 02/11] cgroup: Add mechanism to register DRM devices

2019-06-26 Thread Kenny Ho
Change-Id: I908ee6975ea0585e4c30eafde4599f87094d8c65 Signed-off-by: Kenny Ho --- include/drm/drm_cgroup.h | 24 include/linux/cgroup_drm.h | 10 kernel/cgroup/drm.c| 116 + 3 files changed, 150 insertions(+) create mode 100644 include

[RFC PATCH v3 08/11] drm, cgroup: Add TTM buffer peak usage stats

2019-06-26 Thread Kenny Ho
drm.memory.peak.stats A read-only nested-keyed file which exists on all cgroups. Each entry is keyed by the drm device's major:minor. The following nested keys are defined. == == system Pea

[RFC PATCH v3 11/11] drm, cgroup: Allow more aggressive memory reclaim

2019-06-26 Thread Kenny Ho
Allow DRM TTM memory manager to register a work_struct, such that, when a drmcgrp is under memory pressure, memory reclaiming can be triggered immediately. Change-Id: I25ac04e2db9c19ff12652b88ebff18b44b2706d8 Signed-off-by: Kenny Ho --- drivers/gpu/drm/ttm/ttm_bo.c| 47 ++

[RFC PATCH v3 10/11] drm, cgroup: Add soft VRAM limit

2019-06-26 Thread Kenny Ho
The drm resource being limited is the TTM (Translation Table Manager) buffers. TTM manages different types of memory that a GPU might access. These memory types include dedicated Video RAM (VRAM) and host/system memory accessible through IOMMU (GART/GTT). TTM is currently used by multiple drm dri

Re: [PATCH 0/2] Add DRM panel driver for Ilitek ILI9341 based panels in parallel RGB mode

2019-06-26 Thread Josef Luštický
Hello Sam, Rob, thank you both for comments. I've already prepared most of the code for v2 of this patchset. At the moment I am investigating, if it's possible to use mipi_dbi_* functions for the display initialization, as Rob suggested ("Can't you use existing mipi_dbi_* functions instead of rol

Re: [PATCH v5 06/12] drm/modes: Support modes names on the command line

2019-06-26 Thread Thierry Reding
On Mon, Jun 17, 2019 at 04:51:33PM +0200, Maxime Ripard wrote: > From: Maxime Ripard > > The drm subsystem also uses the video= kernel parameter, and in the > documentation refers to the fbdev documentation for that parameter. > > However, that documentation also says that instead of giving the

Re: [RFC PATCH v3 01/11] cgroup: Introduce cgroup for drm subsystem

2019-06-26 Thread Daniel Vetter
On Wed, Jun 26, 2019 at 11:05:12AM -0400, Kenny Ho wrote: Needs a bit more commit message here I htink. > Change-Id: I6830d3990f63f0c13abeba29b1d330cf28882831 > Signed-off-by: Kenny Ho Bunch of naming bikesheds > --- > include/linux/cgroup_drm.h| 76 +++ > in

Re: [RFC PATCH v3 02/11] cgroup: Add mechanism to register DRM devices

2019-06-26 Thread Daniel Vetter
On Wed, Jun 26, 2019 at 11:05:13AM -0400, Kenny Ho wrote: > Change-Id: I908ee6975ea0585e4c30eafde4599f87094d8c65 > Signed-off-by: Kenny Ho Why the separate, explicit registration step? I think a simpler design for drivers would be that we set up cgroups if there's anything to be controlled, and t

Re: [PATCH 04/25] mm: remove MEMORY_DEVICE_PUBLIC support

2019-06-26 Thread Dan Williams
[ add Ira ] On Wed, Jun 26, 2019 at 5:27 AM Christoph Hellwig wrote: > > The code hasn't been used since it was added to the tree, and doesn't > appear to actually be usable. > > Signed-off-by: Christoph Hellwig > Reviewed-by: Jason Gunthorpe > Acked-by: Michal Hocko [..] > diff --git a/mm/swa

Re: [PATCH 0/2] Add DRM panel driver for Ilitek ILI9341 based panels in parallel RGB mode

2019-06-26 Thread Sam Ravnborg
Hi Josef. On Wed, Jun 26, 2019 at 05:21:09PM +0200, Josef Luštický wrote: > Hello Sam, Rob, > thank you both for comments. > > I've already prepared most of the code for v2 of this patchset. > > At the moment I am investigating, if it's possible to use mipi_dbi_* > functions for the display init

Re: [RFC PATCH v3 04/11] drm, cgroup: Add total GEM buffer allocation limit

2019-06-26 Thread Daniel Vetter
On Wed, Jun 26, 2019 at 11:05:15AM -0400, Kenny Ho wrote: > The drm resource being measured and limited here is the GEM buffer > objects. User applications allocate and free these buffers. In > addition, a process can allocate a buffer and share it with another > process. The consumer of a share

[PATCH v2] docs: gpu: add msm-crash-dump.rst to the index.rst file

2019-06-26 Thread Mauro Carvalho Chehab
This file is currently orphaned. Signed-off-by: Mauro Carvalho Chehab --- Documentation/gpu/drivers.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/gpu/drivers.rst b/Documentation/gpu/drivers.rst index 4bfb7068e9f7..6c88c57b90cf 100644 --- a/Documentation/gpu/drivers.rst ++

Re: [RFC PATCH v3 07/11] drm, cgroup: Add TTM buffer allocation stats

2019-06-26 Thread Daniel Vetter
On Wed, Jun 26, 2019 at 11:05:18AM -0400, Kenny Ho wrote: > The drm resource being measured is the TTM (Translation Table Manager) > buffers. TTM manages different types of memory that a GPU might access. > These memory types include dedicated Video RAM (VRAM) and host/system > memory accessible t

[PATCH] drm: fix a reference for a renamed file: fb/modedb.rst

2019-06-26 Thread Mauro Carvalho Chehab
Due to two patches being applied about the same time, the reference for modedb.rst file got wrong: Documentation/fb/modedb.txt is now Documentation/fb/modedb.rst. Fixes: 1bf4e09227c3 ("drm/modes: Allow to specify rotation and reflection on the commandline") Fixes: ab42b818954c ("docs: fb

Re: [PATCH 05/22] mm: export alloc_pages_vma

2019-06-26 Thread Dan Williams
On Tue, Jun 25, 2019 at 10:46 PM Michal Hocko wrote: > > On Tue 25-06-19 12:52:18, Dan Williams wrote: > [...] > > > Documentation/process/stable-api-nonsense.rst > > > > That document has failed to preclude symbol export fights in the past > > and there is a reasonable argument to try not to retr

Re: [RFC PATCH v3 08/11] drm, cgroup: Add TTM buffer peak usage stats

2019-06-26 Thread Daniel Vetter
On Wed, Jun 26, 2019 at 11:05:19AM -0400, Kenny Ho wrote: > drm.memory.peak.stats > A read-only nested-keyed file which exists on all cgroups. > Each entry is keyed by the drm device's major:minor. The > following nested keys are defined. > > == =

Re: [RFC PATCH v3 09/11] drm, cgroup: Add per cgroup bw measure and control

2019-06-26 Thread Daniel Vetter
On Wed, Jun 26, 2019 at 11:05:20AM -0400, Kenny Ho wrote: > The bandwidth is measured by keeping track of the amount of bytes moved > by ttm within a time period. We defined two type of bandwidth: burst > and average. Average bandwidth is calculated by dividing the total > amount of bytes moved w

Re: [PATCH 1/2] drm/vram: store dumb bo dimensions.

2019-06-26 Thread Daniel Vetter
On Wed, Jun 26, 2019 at 04:40:13PM +0200, Sam Ravnborg wrote: > Hi Gerd. > > On Wed, Jun 26, 2019 at 08:55:50AM +0200, Gerd Hoffmann wrote: > > Store width and height of the bo. Needed in case userspace > > sets up a framebuffer with fb->width != bo->width.. > > > > Signed-off-by: Gerd Hoffmann

Re: [PATCH 2/2] drm/bochs: fix framebuffer setup.

2019-06-26 Thread Daniel Vetter
On Wed, Jun 26, 2019 at 08:55:51AM +0200, Gerd Hoffmann wrote: > If bo->width doesn't match fb->width the driver fails to configure > the display correctly, resulting in a scrambled display. Fix it. > > Signed-off-by: Gerd Hoffmann > --- > drivers/gpu/drm/bochs/bochs.h | 2 +- > drivers/gp

Re: [RFC PATCH v3 11/11] drm, cgroup: Allow more aggressive memory reclaim

2019-06-26 Thread Daniel Vetter
On Wed, Jun 26, 2019 at 11:05:22AM -0400, Kenny Ho wrote: > Allow DRM TTM memory manager to register a work_struct, such that, when > a drmcgrp is under memory pressure, memory reclaiming can be triggered > immediately. > > Change-Id: I25ac04e2db9c19ff12652b88ebff18b44b2706d8 > Signed-off-by: Kenn

Re: [PATCH 04/25] mm: remove MEMORY_DEVICE_PUBLIC support

2019-06-26 Thread Ira Weiny
On Wed, Jun 26, 2019 at 09:00:47AM -0700, Dan Williams wrote: > [ add Ira ] > > On Wed, Jun 26, 2019 at 5:27 AM Christoph Hellwig wrote: > > > > The code hasn't been used since it was added to the tree, and doesn't > > appear to actually be usable. > > > > Signed-off-by: Christoph Hellwig > > Re

Re: [PATCH] drm: Allow range of 0 for drm_mm_insert_node_in_range()

2019-06-26 Thread Daniele Ceraolo Spurio
On 6/26/19 2:43 AM, Chris Wilson wrote: We gracefully handle the caller specifying a zero range, so don't force them to special case that condition if it naturally falls out of their setup. What we don't check is if the end < start, so keep that as an assert for an illegal call. Signed-off-by:

[Bug 110783] Mesa 19.1 rc crashing MPV with VAAPI

2019-06-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110783 i...@yahoo.com changed: What|Removed |Added Severity|normal |major --- Comment #17 from i...@yahoo.c

[PATCH] drm: msm: Fix add_gpu_components

2019-06-26 Thread Jeffrey Hugo
add_gpu_components() adds found GPU nodes from the DT to the match list, regardless of the status of the nodes. This is a problem, because if the nodes are disabled, they should not be on the match list because they will not be matched. This prevents display from initing if a GPU node is defined,

Re: [PATCH 08/25] memremap: validate the pagemap type passed to devm_memremap_pages

2019-06-26 Thread Ira Weiny
On Wed, Jun 26, 2019 at 02:27:07PM +0200, Christoph Hellwig wrote: > Most pgmap types are only supported when certain config options are > enabled. Check for a type that is valid for the current configuration > before setting up the pagemap. For this the usage of the 0 type for > device dax gets

[PATCH] drm/nouveau: Enable i2c pads & busses during preinit

2019-06-26 Thread Lyude Paul
It turns out that while disabling i2c bus access from software when the GPU is suspended was a step in the right direction with: commit 342406e4fbba ("drm/nouveau/i2c: Disable i2c bus access after ->fini()") We also ended up accidentally breaking the vbios init scripts on some older Tesla GPUs, a

Re: [PATCH v2 2/3] drm/rockchip: Add optional support for CRTC gamma LUT

2019-06-26 Thread Ezequiel Garcia
On Tue, 2019-06-25 at 10:05 +0200, Jacopo Mondi wrote: > Hi Ezequiel, > > On Fri, Jun 21, 2019 at 06:13:45PM -0300, Ezequiel Garcia wrote: > > Add an optional CRTC gamma LUT support, and enable it on RK3288. > > This is currently enabled via a separate address resource, > > which needs to be speci

Re: [PATCH 04/25] mm: remove MEMORY_DEVICE_PUBLIC support

2019-06-26 Thread Ira Weiny
On Wed, Jun 26, 2019 at 10:14:45AM -0700, 'Ira Weiny' wrote: > On Wed, Jun 26, 2019 at 09:00:47AM -0700, Dan Williams wrote: > > [ add Ira ] > > > > On Wed, Jun 26, 2019 at 5:27 AM Christoph Hellwig wrote: > > > > > > The code hasn't been used since it was added to the tree, and doesn't > > > app

Re: [PATCH 11/25] memremap: lift the devmap_enable manipulation into devm_memremap_pages

2019-06-26 Thread Ira Weiny
On Wed, Jun 26, 2019 at 02:27:10PM +0200, Christoph Hellwig wrote: > Just check if there is a ->page_free operation set and take care of the > static key enable, as well as the put using device managed resources. > Also check that a ->page_free is provided for the pgmaps types that > require it, an

Re: [PATCH v2 1/2] drm/bridge/synopsys: dw-hdmi: Handle audio for more clock rates

2019-06-26 Thread Doug Anderson
Hi, On Wed, Jun 26, 2019 at 2:56 AM Andrzej Hajda wrote: > > > AKA: anyone using auto-CTS won't notice any change > > at all. I guess the question is: with Auto-CTS should you pick the > > "ideal" 6272 or a value that allows CTS to be the closest to integral > > as possible. By reading betwee

Re: [PATCH] drm/fourcc: Add Arm 16x16 block modifier

2019-06-26 Thread Daniel Vetter
On Mon, Jun 24, 2019 at 1:23 PM Brian Starkey wrote: > > On Mon, Jun 24, 2019 at 11:58:59AM +0200, Daniel Vetter wrote: > > On Mon, Jun 24, 2019 at 11:32 AM Brian Starkey > > wrote: > > > > > > Hi Daniel, > > > > > > On Fri, Jun 21, 2019 at 05:27:00PM +0200, Daniel Vetter wrote: > > > > On Fri,

Re: [RFC PATCH v3 01/11] cgroup: Introduce cgroup for drm subsystem

2019-06-26 Thread Kenny Ho
On Wed, Jun 26, 2019 at 11:49 AM Daniel Vetter wrote: > > Bunch of naming bikesheds I appreciate the suggestions, naming is hard :). > > +#include > > + > > +struct drmcgrp { > > drm_cgroup for more consistency how we usually call these things. I was hoping to keep the symbol short if possible

Re: [Intel-gfx] [PATCH] drm/connector: Allow max possible encoders to attach to a connector

2019-06-26 Thread Dhinakaran Pandiyan
On Wed, 2019-06-26 at 16:31 +0200, Daniel Vetter wrote: > On Wed, Jun 26, 2019 at 04:43:28PM +0300, Ville Syrjälä wrote: > > On Tue, Jun 25, 2019 at 04:40:45PM -0700, Dhinakaran Pandiyan wrote: > > > Currently we restrict the number of encoders that can be linked to > > > a connector to 3, increase

Re: [RFC PATCH v3 01/11] cgroup: Introduce cgroup for drm subsystem

2019-06-26 Thread Daniel Vetter
On Wed, Jun 26, 2019 at 9:35 PM Kenny Ho wrote: > > On Wed, Jun 26, 2019 at 11:49 AM Daniel Vetter wrote: > > > > Bunch of naming bikesheds > > I appreciate the suggestions, naming is hard :). > > > > +#include > > > + > > > +struct drmcgrp { > > > > drm_cgroup for more consistency how we usuall

Re: [RFC PATCH v3 02/11] cgroup: Add mechanism to register DRM devices

2019-06-26 Thread Kenny Ho
(sending again, I keep missing the reply-all in gmail.) On Wed, Jun 26, 2019 at 11:56 AM Daniel Vetter wrote: > > Why the separate, explicit registration step? I think a simpler design for > drivers would be that we set up cgroups if there's anything to be > controlled, and then for GEM drivers t

[PULL] drm-misc-fixes

2019-06-26 Thread Sean Paul
Hi maintainers, One patch this week, no magic. drm-misc-fixes-2019-06-26: virtio- Don't call drm_connector_update_edid_property() while holding spinlock Cc: Gerd Hoffmann Cheers, Sean The following changes since commit 5eab9cf87b6c261f4e2f6c7623171cc2f5ea1a9c: Merge tag 'imx-drm-fixes-20

Re: [RFC PATCH v3 02/11] cgroup: Add mechanism to register DRM devices

2019-06-26 Thread Daniel Vetter
On Wed, Jun 26, 2019 at 10:37 PM Kenny Ho wrote: > (sending again, I keep missing the reply-all in gmail.) You can make it the default somewhere in the gmail options. (also resending, I missed that you didn't group-replied). On Wed, Jun 26, 2019 at 10:25 PM Kenny Ho wrote: > > On Wed, Jun 26,

Re: [PATCH 14/25] memremap: replace the altmap_valid field with a PGMAP_ALTMAP_VALID flag

2019-06-26 Thread Ira Weiny
On Wed, Jun 26, 2019 at 02:27:13PM +0200, Christoph Hellwig wrote: > Add a flags field to struct dev_pagemap to replace the altmap_valid > boolean to be a little more extensible. Also add a pgmap_altmap() helper > to find the optional altmap and clean up the code using the altmap using > it. > >

Re: [PATCH] drm: fix a reference for a renamed file: fb/modedb.rst

2019-06-26 Thread Daniel Vetter
On Wed, Jun 26, 2019 at 01:14:13PM -0300, Mauro Carvalho Chehab wrote: > Due to two patches being applied about the same time, the > reference for modedb.rst file got wrong: > > Documentation/fb/modedb.txt is now Documentation/fb/modedb.rst. > > Fixes: 1bf4e09227c3 ("drm/modes: Allow to spe

Re: [RFC PATCH v3 04/11] drm, cgroup: Add total GEM buffer allocation limit

2019-06-26 Thread Kenny Ho
On Wed, Jun 26, 2019 at 12:05 PM Daniel Vetter wrote: > > > drm.buffer.default > > A read-only flat-keyed file which exists on the root cgroup. > > Each entry is keyed by the drm device's major:minor. > > > > Default limits on the total GEM buffer allocation in bytes. > > D

Re: [PATCH] drm: Allow range of 0 for drm_mm_insert_node_in_range()

2019-06-26 Thread Daniel Vetter
On Wed, Jun 26, 2019 at 10:43:30AM +0100, Chris Wilson wrote: > We gracefully handle the caller specifying a zero range, so don't force > them to special case that condition if it naturally falls out of their > setup. What we don't check is if the end < start, so keep that as an > assert for an ill

Re: [PATCH 23/25] mm: sort out the DEVICE_PRIVATE Kconfig mess

2019-06-26 Thread Ira Weiny
On Wed, Jun 26, 2019 at 02:27:22PM +0200, Christoph Hellwig wrote: > The ZONE_DEVICE support doesn't depend on anything HMM related, just on > various bits of arch support as indicated by the architecture. Also > don't select the option from nouveau as it isn't present in many setups, > and depend

Re: [PATCH 24/25] mm: remove the HMM config option

2019-06-26 Thread Ira Weiny
On Wed, Jun 26, 2019 at 02:27:23PM +0200, Christoph Hellwig wrote: > All the mm/hmm.c code is better keyed off HMM_MIRROR. Also let nouveau > depend on it instead of the mix of a dummy dependency symbol plus the > actually selected one. Drop various odd dependencies, as the code is > pretty porta

Re: [RFC PATCH v3 04/11] drm, cgroup: Add total GEM buffer allocation limit

2019-06-26 Thread Daniel Vetter
On Wed, Jun 26, 2019 at 05:27:48PM -0400, Kenny Ho wrote: > On Wed, Jun 26, 2019 at 12:05 PM Daniel Vetter wrote: > > > > > drm.buffer.default > > > A read-only flat-keyed file which exists on the root cgroup. > > > Each entry is keyed by the drm device's major:minor. > > > > > >

Re: [PATCH 15/25] memremap: provide an optional internal refcount in struct dev_pagemap

2019-06-26 Thread Ira Weiny
On Wed, Jun 26, 2019 at 02:27:14PM +0200, Christoph Hellwig wrote: > Provide an internal refcounting logic if no ->ref field is provided > in the pagemap passed into devm_memremap_pages so that callers don't > have to reinvent it poorly. > > Signed-off-by: Christoph Hellwig > --- > include/linux

Re: [PATCH 16/25] device-dax: use the dev_pagemap internal refcount

2019-06-26 Thread Ira Weiny
On Wed, Jun 26, 2019 at 02:27:15PM +0200, Christoph Hellwig wrote: > The functionality is identical to the one currently open coded in > device-dax. > > Signed-off-by: Christoph Hellwig Reviewed-by: Ira Weiny > --- > drivers/dax/dax-private.h | 4 > drivers/dax/device.c | 43 --

Re: [PATCH 17/25] PCI/P2PDMA: use the dev_pagemap internal refcount

2019-06-26 Thread Ira Weiny
On Wed, Jun 26, 2019 at 02:27:16PM +0200, Christoph Hellwig wrote: > The functionality is identical to the one currently open coded in > p2pdma.c. > > Signed-off-by: Christoph Hellwig Reviewed-by: Ira Weiny > --- > drivers/pci/p2pdma.c | 57 > 1 fi

Re: [RFC PATCH v3 02/11] cgroup: Add mechanism to register DRM devices

2019-06-26 Thread Kenny Ho
On Wed, Jun 26, 2019 at 5:04 PM Daniel Vetter wrote: > On Wed, Jun 26, 2019 at 10:37 PM Kenny Ho wrote: > > (sending again, I keep missing the reply-all in gmail.) > You can make it the default somewhere in the gmail options. Um... interesting, my option was actually not set (neither reply or rep

Re: [PATCH v5 01/18] kunit: test: add KUnit test runner core

2019-06-26 Thread Luis Chamberlain
On Tue, Jun 25, 2019 at 11:41:47PM -0700, Brendan Higgins wrote: > On Tue, Jun 25, 2019 at 4:02 PM Luis Chamberlain wrote: > > > > On Tue, Jun 25, 2019 at 03:14:45PM -0700, Brendan Higgins wrote: > > > On Tue, Jun 25, 2019 at 2:44 PM Luis Chamberlain > > > wrote: > > > > Since its a new architec

Re: [PATCH v5 13/18] kunit: tool: add Python wrappers for running KUnit tests

2019-06-26 Thread Luis Chamberlain
On Wed, Jun 26, 2019 at 01:02:55AM -0700, Brendan Higgins wrote: > On Tue, Jun 25, 2019 at 5:01 PM Luis Chamberlain wrote: > > > > On Mon, Jun 17, 2019 at 01:26:08AM -0700, Brendan Higgins wrote: > > > create mode 100644 > > > tools/testing/kunit/test_data/test_is_test_passed-all_passed.log > >

Re: [PATCH] drm: msm: Fix add_gpu_components

2019-06-26 Thread Rob Clark
On Wed, Jun 26, 2019 at 11:00 AM Jeffrey Hugo wrote: > > add_gpu_components() adds found GPU nodes from the DT to the match list, > regardless of the status of the nodes. This is a problem, because if the > nodes are disabled, they should not be on the match list because they will > not be matche

Re: [PATCH v5 01/18] kunit: test: add KUnit test runner core

2019-06-26 Thread Brendan Higgins
On Tue, Jun 25, 2019 at 8:36 PM Luis Chamberlain wrote: > > On Tue, Jun 25, 2019 at 05:07:32PM -0700, Brendan Higgins wrote: > > On Tue, Jun 25, 2019 at 3:33 PM Luis Chamberlain wrote: > > > > > > On Mon, Jun 17, 2019 at 01:25:56AM -0700, Brendan Higgins wrote: > > > > +/** > > > > + * module_tes

Re: [RFC PATCH v3 04/11] drm, cgroup: Add total GEM buffer allocation limit

2019-06-26 Thread Kenny Ho
On Wed, Jun 26, 2019 at 5:41 PM Daniel Vetter wrote: > On Wed, Jun 26, 2019 at 05:27:48PM -0400, Kenny Ho wrote: > > On Wed, Jun 26, 2019 at 12:05 PM Daniel Vetter wrote: > > > So what happens when you start a lot of threads all at the same time, > > > allocating gem bo? Also would be nice if we

Re: [RFC PATCH v3 11/11] drm, cgroup: Allow more aggressive memory reclaim

2019-06-26 Thread Kenny Ho
Ok. I am not too familiar with shrinker but I will dig into it. Just so that I am looking into the right things, you are referring to things like struct shrinker and struct shrink_control? Regards, Kenny On Wed, Jun 26, 2019 at 12:44 PM Daniel Vetter wrote: > > On Wed, Jun 26, 2019 at 11:05:22

Re: [PATCH v5 01/18] kunit: test: add KUnit test runner core

2019-06-26 Thread Brendan Higgins
On Tue, Jun 25, 2019 at 8:41 PM Stephen Boyd wrote: > > Quoting Brendan Higgins (2019-06-25 13:28:25) > > On Wed, Jun 19, 2019 at 5:15 PM Stephen Boyd wrote: > > > > > > Quoting Brendan Higgins (2019-06-17 01:25:56) > > > > diff --git a/kunit/test.c b/kunit/test.c > > > > new file mode 100644 > >

Re: [PATCH v4 02/12] drm/virtio: switch virtio_gpu_wait_ioctl() to gem helper.

2019-06-26 Thread Chia-I Wu
On Wed, Jun 19, 2019 at 11:07 PM Gerd Hoffmann wrote: > > Use drm_gem_reservation_object_wait() in virtio_gpu_wait_ioctl(). > This also makes the ioctl run lockless. The userspace has a BO cache to avoid freeing BOs immediately but to reuse them on next allocations. The BO cache checks if a BO is

Re: [PATCH v5 01/18] kunit: test: add KUnit test runner core

2019-06-26 Thread Brendan Higgins
On Wed, Jun 26, 2019 at 3:02 PM Luis Chamberlain wrote: > > On Tue, Jun 25, 2019 at 11:41:47PM -0700, Brendan Higgins wrote: > > On Tue, Jun 25, 2019 at 4:02 PM Luis Chamberlain wrote: > > > > > > On Tue, Jun 25, 2019 at 03:14:45PM -0700, Brendan Higgins wrote: > > > > On Tue, Jun 25, 2019 at 2:4

Re: [PATCH v5 13/18] kunit: tool: add Python wrappers for running KUnit tests

2019-06-26 Thread Brendan Higgins
On Wed, Jun 26, 2019 at 3:03 PM Luis Chamberlain wrote: > > On Wed, Jun 26, 2019 at 01:02:55AM -0700, Brendan Higgins wrote: > > On Tue, Jun 25, 2019 at 5:01 PM Luis Chamberlain wrote: > > > > > > On Mon, Jun 17, 2019 at 01:26:08AM -0700, Brendan Higgins wrote: > > > > create mode 100644 > > >

[PATCH AUTOSEL 5.1 61/95] gpu: ipu-v3: image-convert: Fix input bytesperline width/height align

2019-06-26 Thread Sasha Levin
From: Steve Longerbeam [ Upstream commit ff391ecd65a1b8324c49046c3db98d9c8ab29af9 ] The output width and height alignment values were being used in the input bytesperline calculation. Fix by separating local vars w_align and h_align into w_align_in, h_align_in, w_align_out, and h_align_out. Fix

[PATCH AUTOSEL 5.1 85/95] drm: return -EFAULT if copy_to_user() fails

2019-06-26 Thread Sasha Levin
From: Dan Carpenter [ Upstream commit 74b67efa8d7b4f90137f0ab9a80dd319da050350 ] The copy_from_user() function returns the number of bytes remaining to be copied but we want to return a negative error code. Otherwise the callers treat it as a successful copy. Signed-off-by: Dan Carpenter Sign

[PATCH AUTOSEL 4.19 33/60] drm/vmwgfx: fix a warning due to missing dma_parms

2019-06-26 Thread Sasha Levin
From: Qian Cai [ Upstream commit 39916897cd815a0ee07ba1f6820cf88a63e459fc ] Booting up with DMA_API_DEBUG_SG=y generates a warning due to the driver forgot to set dma_parms appropriately. Set it just after vmw_dma_masks() in vmw_driver_load(). DMA-API: vmwgfx :00:0f.0: mapping sg segment lo

[PATCH AUTOSEL 4.14 30/35] drm: return -EFAULT if copy_to_user() fails

2019-06-26 Thread Sasha Levin
From: Dan Carpenter [ Upstream commit 74b67efa8d7b4f90137f0ab9a80dd319da050350 ] The copy_from_user() function returns the number of bytes remaining to be copied but we want to return a negative error code. Otherwise the callers treat it as a successful copy. Signed-off-by: Dan Carpenter Sign

[PATCH AUTOSEL 5.1 50/95] drm/vmwgfx: Honor the sg list segment size limitation

2019-06-26 Thread Sasha Levin
From: Thomas Hellstrom [ Upstream commit bde1ba61c7f664f40fd3c6fdbdb63f784c9b ] When building sg tables, honor the device sg list segment size limitation. Signed-off-by: Thomas Hellstrom Reviewed-by: Deepak Rawat Signed-off-by: Sasha Levin --- drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c

[PATCH AUTOSEL 5.1 63/95] gpu: ipu-v3: image-convert: Fix image downsize coefficients

2019-06-26 Thread Sasha Levin
From: Steve Longerbeam [ Upstream commit 912bbf7e9ca422099935dd69d3ff0fd62db24882 ] The output of the IC downsizer unit in both dimensions must be <= 1024 before being passed to the IC resizer unit. This was causing corrupted images when: input_dim > 1024, and input_dim / 2 < output_dim < input

<    1   2   3   >