[PATCH v1 3/4] drm/mediatek: fix boot up for 720 and 480 but 1080

2019-04-17 Thread Frank Wunderlich
From: chunhui dai - 1080 plg in/out with ng/ok - support other resolutions like 1280x1024 Signed-off-by: chunhui dai Signed-off-by: Frank Wunderlich Tested-by: Frank Wunderlich --- drivers/gpu/drm/mediatek/mtk_hdmi_phy.c| 3 +++ drivers/gpu/drm/mediatek/mtk_hdmi_phy.h| 1 + d

[REBASE PATCH v5 8/9] xen/gntdev.c: Convert to use vm_map_pages()

2019-04-17 Thread Souptick Joarder
Convert to use vm_map_pages() to map range of kernel memory to user vma. map->count is passed to vm_map_pages() and internal API verify map->count against count ( count = vma_pages(vma)) for page array boundary overrun condition. Signed-off-by: Souptick Joarder Reviewed-by: Boris Ostrovsky ---

[PATCH v6 2/2] Input: add Apple SPI keyboard and trackpad driver.

2019-04-17 Thread Ronald Tschalär
The keyboard and trackpad on recent MacBook's (since 8,1) and MacBookPro's (13,* and 14,*) are attached to an SPI controller instead of USB, as previously. The higher level protocol is not publicly documented and hence has been reverse engineered. As a consequence there are still a number of unknow

[PATCH v6 1/2] drm/bridge: sil_sii8620: make remote control optional.

2019-04-17 Thread Ronald Tschalär
commit d6abe6df706c (drm/bridge: sil_sii8620: do not have a dependency of RC_CORE) changed the driver to select both RC_CORE and INPUT. However, this causes problems with other drivers, in particular an input driver that depends on MFD_INTEL_LPSS_PCI (to be added in a separate commit): drivers/c

[PATCH 1/2] dt-bindings: display: add EDT ET035012DM6 display description

2019-04-17 Thread Marco Felsch
Add support for the ET035012DM6 3.5" QVGA TFT LCD panel. The datasheet can be retrieved online: https://www.glynshop.com/erp/owweb/Daten/DSS/EDT/Products/ \ Specifications/Active%20Displays/ET035012DM6.pdf Signed-off-by: Marco Felsch --- .../devicetree/bindings/display/panel/edt,et-series.txt

Re: [PATCH v5 2/2] Input: add Apple SPI keyboard and trackpad driver.

2019-04-17 Thread Andy Shevchenko
On Mon, Apr 15, 2019 at 04:09:55PM -0700, Life is hard, and then you die wrote: > On Mon, Apr 15, 2019 at 12:03:46PM +0300, Andy Shevchenko wrote: > > On Mon, Apr 15, 2019 at 01:13:00AM -0700, Ronald Tschalär wrote: > > > +static void > > > +applespi_remap_fn_key(struct keyboard_protocol *keyboard

Re: [PATCH v5 1/2] drm/bridge: sil_sii8620: make remote control optional.

2019-04-17 Thread Life is hard, and then you die
Hi Andrzej, On Tue, Apr 16, 2019 at 07:56:31AM +0200, Andrzej Hajda wrote: > On 16.04.2019 01:24, Life is hard, and then you die wrote: > > Hi Andrzej, > > > > On Mon, Apr 15, 2019 at 10:58:09AM +0200, Andrzej Hajda wrote: > >> On 15.04.2019 10:12, Ronald Tschalär wrote: > >>> commit d6abe6df

[REBASE PATCH v5 0/9] mm: Use vm_map_pages() and vm_map_pages_zero() API

2019-04-17 Thread Souptick Joarder
Previouly drivers have their own way of mapping range of kernel pages/memory into user vma and this was done by invoking vm_insert_page() within a loop. As this pattern is common across different drivers, it can be generalized by creating new functions and use it across the drivers. vm_map_pages(

[REBASE PATCH v5 6/9] iommu/dma-iommu.c: Convert to use vm_map_pages()

2019-04-17 Thread Souptick Joarder
Convert to use vm_map_pages() to map range of kernel memory to user vma. Signed-off-by: Souptick Joarder --- drivers/iommu/dma-iommu.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/iommu/dma-iommu.c b/drivers/iommu/dma-iommu.c index d19f3d6..bacebff 100

[PATCH v2 3/3] drm/panel: simple: Add Evervision VGG804821 panel support

2019-04-17 Thread Marco Felsch
Add support the Evervision VGG804821 800x480 5.0" WVGA TFT panel. Signed-off-by: Marco Felsch --- v2: - pixel data should be driven on neg. edge since the panel applies the data on positiv edge. drivers/gpu/drm/panel/panel-simple.c | 30 1 file changed, 30 inserti

[REBASE PATCH v5 9/9] xen/privcmd-buf.c: Convert to use vm_map_pages_zero()

2019-04-17 Thread Souptick Joarder
Convert to use vm_map_pages_zero() to map range of kernel memory to user vma. This driver has ignored vm_pgoff. We could later "fix" these drivers to behave according to the normal vm_pgoff offsetting simply by removing the _zero suffix on the function name and if that causes regressions, it gives

[REBASE PATCH v5 1/9] mm: Introduce new vm_map_pages() and vm_map_pages_zero() API

2019-04-17 Thread Souptick Joarder
Previouly drivers have their own way of mapping range of kernel pages/memory into user vma and this was done by invoking vm_insert_page() within a loop. As this pattern is common across different drivers, it can be generalized by creating new functions and use it across the drivers. vm_map_pages(

Re: [PATCH v2 18/25] drm/mediatek: add RDMA fifo size error handle

2019-04-17 Thread Yongqiang Niu
On Tue, 2019-04-16 at 16:00 +0800, CK Hu wrote: > Hi, Yongqiang: > > On Wed, 2019-03-27 at 14:19 +0800, yongqiang@mediatek.com wrote: > > From: Yongqiang Niu > > > > This patch add RDMA fifo size error handle > > rdma fifo size will not always bigger than the calculated threshold > > if that

Re: [PATCH] etnaviv: allow building on MMP

2019-04-17 Thread Lubomir Rintel
On Tue, 2019-04-16 at 18:01 +0200, Lubomir Rintel wrote: > MMP2 has a GC860 core. > > Signed-off-by: Lubomir Rintel > --- > drivers/gpu/drm/etnaviv/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/etnaviv/Kconfig b/drivers/gpu/drm/etnaviv/Kconfig

[REBASE PATCH v5 5/9] drm/xen/xen_drm_front_gem.c: Convert to use vm_map_pages()

2019-04-17 Thread Souptick Joarder
Convert to use vm_map_pages() to map range of kernel memory to user vma. Signed-off-by: Souptick Joarder Reviewed-by: Oleksandr Andrushchenko --- drivers/gpu/drm/xen/xen_drm_front_gem.c | 18 +- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm/xen/x

[PATCH -next] drm/sun4i: Make some symbols static

2019-04-17 Thread Yue Haibing
From: YueHaibing Fix sparse warnings: drivers/gpu/drm/sun4i/sun8i_tcon_top.c:271:36: warning: symbol 'sun8i_r40_tcon_top_quirks' was not declared. Should it be static? drivers/gpu/drm/sun4i/sun8i_tcon_top.c:276:36: warning: symbol 'sun50i_h6_tcon_top_quirks' was not declared. Should it be stat

Re: [PATCH v2] drm/tegra: hdmi: Setup audio only if configured

2019-04-17 Thread Dmitry Osipenko
16.04.2019 18:16, Thierry Reding пишет: > From: Thierry Reding > > The audio configuration is only valid if the HDMI codec has been > properly set up. Do not attempt to set up audio before that happens > because it causes a division by zero. > > Note that this is only problematic on Tegra20 and

Re: [PATCH] drm/meson: add size and alignment requirements for dumb buffers

2019-04-17 Thread Sky Zhou
On 2019/4/8 17:01, Neil Armstrong wrote: > The Amlogic SoCs Canvas buffers stride must be aligned on 64bytes > and overall size should be aligned on PAGE width. > > Adds a custom dumb_create op to adds these requirements. > > Fixes: bbbe775ec5b5 ("drm: Add support for Amlogic Meson Graphic Contr

[PATCH v1 0/4] make hdmi work on bananapi-r2

2019-04-17 Thread Frank Wunderlich
This Patch-Series adds missing Patches/Bugfixes to get hdmi working on BPI-R2 first 2 Patches were already posted, but not yet merged into mainline i found no hint why - config component output by device node port https://patchwork.kernel.org/patch/10609007/ - add display subsystem related devic

[PATCH -next] drm/panfrost: Make panfrost_gem_free_object() static

2019-04-17 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/gpu/drm/panfrost/panfrost_gem.c:17:6: warning: symbol 'panfrost_gem_free_object' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/gpu/drm/panfrost/panfrost_gem.c | 2 +- 1 file changed, 1 inser

Re: [PATCH v8 2/2] phy: Add driver for mixel mipi dphy found on NXP's i.MX8 SoCs

2019-04-17 Thread Kishon Vijay Abraham I
Hi Maxime, On 01/04/19 3:43 PM, Guido Günther wrote: > This adds support for the Mixel DPHY as found on i.MX8 CPUs but since > this is an IP core it will likely be found on others in the future. So > instead of adding this to the nwl host driver make it a generic PHY > driver. > > The driver supp

[PATCH 2/2] drm/panel: simple: Add support for EDT ET035012DM6

2019-04-17 Thread Marco Felsch
From: Andreas Pretzsch Add support for the EDT ET035012DM6 3.5" 320x240 QVGA 24-bit RGB TFT. The datasheet with all specs can be retrieved online: https://www.glynshop.com/erp/owweb/Daten/DSS/EDT/Products/ \ Specifications/Active%20Displays/ET035012DM6.pdf Signed-off-by: Andreas Pretzsch [m.fe

Re: [PATCH v3 00/26] compat_ioctl: cleanups

2019-04-17 Thread Douglas Gilbert
On 2019-04-16 4:19 p.m., Arnd Bergmann wrote: Hi Al, It took me way longer than I had hoped to revisit this series, see https://lore.kernel.org/lkml/20180912150142.157913-1-a...@arndb.de/ for the previously posted version. I've come to the point where all conversion handlers and most COMPATIBLE

[REBASE PATCH v5 3/9] drivers/firewire/core-iso.c: Convert to use vm_map_pages_zero()

2019-04-17 Thread Souptick Joarder
Convert to use vm_map_pages_zero() to map range of kernel memory to user vma. This driver has ignored vm_pgoff and mapped the entire pages. We could later "fix" these drivers to behave according to the normal vm_pgoff offsetting simply by removing the _zero suffix on the function name and if that

[PATCH v1 1/4] drm/mediatek: config component output by device node port

2019-04-17 Thread Frank Wunderlich
From: Bibby Hsieh We can select output component by decive node port. Main path default output component is DSI. External path default output component is DPI. Signed-off-by: Bibby Hsieh --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 41 ++ drivers/gpu/drm/mediatek/mtk_dr

[PATCH v1 4/4] drm/mediatek: fix possible_crtcs

2019-04-17 Thread Frank Wunderlich
From: Ryder Lee without this patch there is purple stretched font on fbconsole source: http://forum.banana-pi.org/t/kernel-4-19-rc1-for-testers/6618/52 Signed-off-by: Ryder Lee Tested-by: Frank Wunderlich --- drivers/gpu/drm/mediatek/mtk_dpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deleti

[PATCH v2 1/3] dt-bindings: add vendor prefix for Evervision Electronics

2019-04-17 Thread Marco Felsch
Evervision Electronics is a panel manufacturer from Taipei. http://www.evervisionlcd.com/index.php?lang=en Signed-off-by: Marco Felsch Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/

[PATCH v4 0/3] backlight: lm3630a: bug fix and fwnode support

2019-04-17 Thread Brian Masney
Here is a patch series that fixes a single bug and adds fwnode support to the lm3630a driver. This work was tested on a LG Nexus 5 (hammerhead) phone. My status page at https://masneyb.github.io/nexus-5-upstream/ describes what is working so far with the upstream kernel. See the individual patches

[PATCH v2 0/3] drm/panel: simple: Add support for Evervision VGG804821

2019-04-17 Thread Marco Felsch
Hi, This small series adds the support for the Evervision VGG804821 panels. The patches are rebased ontop of the current drm_misc/drm-misc-next. Marco Felsch (3): dt-bindings: add vendor prefix for Evervision Electronics dt-bindings: drm/panel: simple: add Evervision VGG804821 drm/panel: s

[REBASE PATCH v5 4/9] drm/rockchip/rockchip_drm_gem.c: Convert to use vm_map_pages()

2019-04-17 Thread Souptick Joarder
Convert to use vm_map_pages() to map range of kernel memory to user vma. Tested on Rockchip hardware and display is working, including talking to Lima via prime. Signed-off-by: Souptick Joarder Tested-by: Heiko Stuebner --- drivers/gpu/drm/rockchip/rockchip_drm_gem.c | 17 ++--- 1

[PATCH v2 2/3] dt-bindings: drm/panel: simple: add Evervision VGG804821

2019-04-17 Thread Marco Felsch
Add support for the Evervision VG804821 800x480 5.0" LCD TFT parallel panel to DRM simple panel driver. Signed-off-by: Marco Felsch Reviewed-by: Rob Herring --- .../bindings/display/panel/evervision,vgg804821.txt | 12 1 file changed, 12 insertions(+) create mode 100644 Document

[PATCH v4 2/3] dt-bindings: backlight: add lm3630a bindings

2019-04-17 Thread Brian Masney
Add new backlight bindings for the TI LM3630A dual-string white LED. Signed-off-by: Brian Masney --- Rob: Since the common bindings aren't converted to the new JSON schema yet, I'm not sure how to do led-sources here. I would expect that we'd have the uint32-array on the common binding once it ex

[REBASE PATCH v5 7/9] videobuf2/videobuf2-dma-sg.c: Convert to use vm_map_pages()

2019-04-17 Thread Souptick Joarder
Convert to use vm_map_pages() to map range of kernel memory to user vma. vm_pgoff is treated in V4L2 API as a 'cookie' to select a buffer, not as a in-buffer offset by design and it always want to mmap a whole buffer from its beginning. Signed-off-by: Souptick Joarder Suggested-by: Marek Szyprow

Aw: Re: [PATCH v1 0/4] make hdmi work on bananapi-r2

2019-04-17 Thread Frank Wunderlich
Hi CK Hu, you mean the problematic patch is fix possible_crtcs (4/4) and the others are ok? can you push the first 3 while working on the last one? regards Frank ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/

[PATCH -next] drm/lima: Make lima_sched_ops static

2019-04-17 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/gpu/drm/lima/lima_sched.c:356:36: warning: symbol 'lima_sched_ops' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/gpu/drm/lima/lima_sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-

[REBASE PATCH v5 2/9] arm: mm: dma-mapping: Convert to use vm_map_pages()

2019-04-17 Thread Souptick Joarder
Convert to use vm_map_pages() to map range of kernel memory to user vma. Signed-off-by: Souptick Joarder --- arch/arm/mm/dma-mapping.c | 22 ++ 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c index f1e2922..

[PATCH] etnaviv: allow building on MMP

2019-04-17 Thread Lubomir Rintel
MMP2 has a GC860 core. Signed-off-by: Lubomir Rintel --- drivers/gpu/drm/etnaviv/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/etnaviv/Kconfig b/drivers/gpu/drm/etnaviv/Kconfig index 041a77e400d4..7616f695270f 100644 --- a/drivers/gpu/drm/etnaviv/Kco

[PATCH v4 3/3] backlight: lm3630a: add firmware node support

2019-04-17 Thread Brian Masney
Add fwnode support to the lm3630a driver and optionally allow configuring the label, default brightness level, and maximum brightness level. The two outputs can be controlled by bank A and B independently or bank A can control both outputs. If the platform data was not configured, then the driver

Re: [PATCH] drm/amdgpu: fix spelling mistake "gateing" -> "gating"

2019-04-17 Thread Mukesh Ojha
On 4/16/2019 5:29 PM, Colin King wrote: From: Colin Ian King There is a spelling mistake in a DRM_INFO message. Fix it. Signed-off-by: Colin Ian King Reviewed-by: Mukesh Ojha Cheers, -Mukesh --- drivers/gpu/drm/amd/amdgpu/vce_v2_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-

[PATCH v6 0/2] Add Apple SPI keyboard and trackpad driver

2019-04-17 Thread Ronald Tschalär
This changeset adds a driver for the SPI keyboard and trackpad on recent MacBook's and MacBook Pro's. The driver has seen a fair amount of use over the last 2 years (basically anybody running linux on these machines), with only relatively small changes in the last year or so. For those interested,

[PATCH v4 1/3] backlight: lm3630a: return 0 on success in update_status functions

2019-04-17 Thread Brian Masney
lm3630a_bank_a_update_status() and lm3630a_bank_b_update_status() both return the brightness value if the brightness was successfully updated. Writing to these attributes via sysfs would cause a 'Bad address' error to be returned. These functions should return 0 on success, so let's change it to co

[PATCH v1 2/4] arm: dts: mt7623: add display subsystem related device nodes

2019-04-17 Thread Frank Wunderlich
From: Ryder Lee Add display subsystem related device nodes for MT7623. Cc: CK Hu Signed-off-by: chunhui dai Signed-off-by: Bibby Hsieh Signed-off-by: Ryder Lee additional fixes: [hdmi,dts] fixed dts-warnings author: Bibby Hsieh [dtsi] fix dpi0-node author: Ryder Lee Signed-off-by: Fran

Re: [PATCH] drm: Expose "FB_DAMAGE_CLIPS" property to atomic aware user-space only

2019-04-17 Thread Daniel Vetter
On Wed, Apr 17, 2019 at 12:35 AM Deepak Singh Rawat wrote: > > > > > > > > If you mean ssh on annarchy.freedesktop.org, I already have one > > > with > > > username - drawat > > > > You're added. Please check out the dim toturial and pls ask any > > questions here or on irc or wherever - drm(-misc

Re: [PATCH] drm/amdgpu: fix drm leases being broken on radv

2019-04-17 Thread Christian König
Am 16.04.19 um 23:40 schrieb Andres Rodriguez: After a recent commit, access to the DRM_AUTH ioctls become more permissive. This resulted in a buggy check for drm_master capabilities inside radv stop working. This commit adds a backwards compatibility workaround so that the radv drm_master check

[Bug 110327] [exynos-drm] failed to presentate a dumb buffer format NV12 with modifier DRM_FORMAT_MOD_SAMSUNG_64_32_TILE

2019-04-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110327 --- Comment #4 from Jens Ziller --- No, the ioctl there https://github.com/zillevdr/v4l2-drm-test/blob/master/v4l2.c#L150 looks what format MFC can use. This I set in line 155. The output from fprintf line 174: FMT CAPTURE: width 1280 height 73

Re: [v3 0/7] Add Multi Segment Gamma Support

2019-04-17 Thread Daniel Vetter
On Fri, Apr 12, 2019 at 03:50:56PM +0530, Uma Shankar wrote: > This series adds support for programmable gamma modes and > exposes a property interface for the same. Also added, > support for multi segment gamma mode introduced in ICL+ > > It creates GAMMA_MODE property interface. This is an enum

Re: [PATCHv2 21/22] drm/bridge: tc358767: add IRQ and HPD support

2019-04-17 Thread Andrzej Hajda
On 15.04.2019 12:59, Tomi Valkeinen wrote: > On 15/04/2019 13:42, Andrzej Hajda wrote: > >> Ok we have here 4 combinations: >> >> 1. noHPD + eDP. >> >> 2. noHPD + DP. >> >> 3. HPD + eDP. >> >> 4. HPD + DP. >> >> >> Which ones do you want to support, disallow. It is not clear to me. > They all shoul

[GIT PULL] drm/tegra: Fixes for v5.1-rc6

2019-04-17 Thread Thierry Reding
Hi Dave, The following changes since commit e154592a1d25fa1f50ac1bd8d132d0e1103442ba: gpu: host1x: Fix compile error when IOMMU API is not available (2019-04-11 10:35:39 +0200) are available in the Git repository at: git://anongit.freedesktop.org/tegra/linux tags/drm/tegra/for-5.1-rc6 for

[PATCH 03/20] drm/fourcc: Pass the format_info pointer to drm_format_plane_cpp

2019-04-17 Thread Maxime Ripard
So far, the drm_format_plane_cpp function was operating on the format's fourcc and was doing a lookup to retrieve the drm_format_info structure and return the cpp. However, this is inefficient since in most cases, we will have the drm_format_info pointer already available so we shouldn't have to p

[PATCH 05/20] drm: Replace instances of drm_format_info by drm_get_format_info

2019-04-17 Thread Maxime Ripard
drm_get_format_info directly calls into drm_format_info, but takes directly a struct drm_mode_fb_cmd2 pointer, instead of the fourcc directly. It's shorter to not dereference it, and we can customise the behaviour at the driver level if we want to, so let's switch to it where it makes sense. Revie

[PATCH 00/20] drm: Split out the formats API and move it to a common place

2019-04-17 Thread Maxime Ripard
Hi, DRM comes with an extensive format support to retrieve the various parameters associated with a given format (such as the subsampling, or the bits per pixel), as well as some helpers and utilities to ease the driver development. v4l2, on the other side, doesn't provide such facilities, leavin

[PATCH 02/20] drm: Remove users of drm_format_(horz|vert)_chroma_subsampling

2019-04-17 Thread Maxime Ripard
drm_format_horz_chroma_subsampling and drm_format_vert_chroma_subsampling are basically a lookup in the drm_format_info table plus an access to the hsub and vsub fields of the appropriate entry. Most drivers are using this function while having access to the entry already, which means that we will

[PATCH 01/20] drm: Remove users of drm_format_num_planes

2019-04-17 Thread Maxime Ripard
drm_format_num_planes() is basically a lookup in the drm_format_info table plus an access to the num_planes field of the appropriate entry. Most drivers are using this function while having access to the entry already, which means that we will perform an unnecessary lookup. Removing the call to dr

[PATCH 17/20] drm/fourcc: Remove old DRM format API

2019-04-17 Thread Maxime Ripard
Now that all the clients of the old drm_format* API have been converted to the generic one, let's remove it. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/Kconfig | 1 +- drivers/gpu/drm/drm_fourcc.c| 219 +-- drivers/gpu/drm/selft

[PATCH 04/20] drm/fourcc: Pass the format_info pointer to drm_format_plane_width/height

2019-04-17 Thread Maxime Ripard
So far, the drm_format_plane_height/width functions were operating on the format's fourcc and was doing a lookup to retrieve the drm_format_info structure and return the cpp. However, this is inefficient since in most cases, we will have the drm_format_info pointer already available so we shouldn'

[PATCH 19/20] lib: image-formats: Add more functions

2019-04-17 Thread Maxime Ripard
V4L2 drivers typically need a few more helpers compared to DRM drivers, so let's add them. Signed-off-by: Maxime Ripard --- include/linux/image-formats.h | 42 - 1 file changed, 42 insertions(+) diff --git a/include/linux/image-formats.h b/include/linux/image

[PATCH 16/20] drm/tegra: Convert to generic image format library

2019-04-17 Thread Maxime Ripard
Now that we have a generic image format libary, let's convert drivers to use it so that we can deprecate the old DRM one. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/tegra/plane.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tegra/plane.c b/drivers/

[PATCH 18/20] lib: image-formats: Add v4l2 formats support

2019-04-17 Thread Maxime Ripard
V4L2 uses different fourcc's than DRM, and has a different set of formats. For now, let's add the v4l2 fourcc's for the already existing formats. Signed-off-by: Maxime Ripard --- include/linux/image-formats.h | 9 +- lib/image-formats.c | 62 -

[PATCH 11/20] drm/i915: Convert to generic image format library

2019-04-17 Thread Maxime Ripard
Now that we have a generic image format libary, let's convert drivers to use it so that we can deprecate the old DRM one. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/i915/intel_display.c | 4 ++-- drivers/gpu/drm/i915/intel_pm.c | 6 +++--- drivers/gpu/drm/i915/intel_sprite.c | 4 ++--

[PATCH 06/20] lib: Add video format information library

2019-04-17 Thread Maxime Ripard
Move the DRM formats API to turn this into a more generic image formats API to be able to leverage it into some other places of the kernel, such as v4l2 drivers. Signed-off-by: Maxime Ripard --- include/linux/image-formats.h | 387 +- lib/Kconfig | 7 +- l

[PATCH 15/20] drm/rockchip: Convert to generic image format library

2019-04-17 Thread Maxime Ripard
Now that we have a generic image format libary, let's convert drivers to use it so that we can deprecate the old DRM one. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/ro

[PATCH 10/20] drm/exynos: Convert to generic image format library

2019-04-17 Thread Maxime Ripard
Now that we have a generic image format libary, let's convert drivers to use it so that we can deprecate the old DRM one. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/exynos/exynos_drm_ipp.c| 2 +- drivers/gpu/drm/exynos/exynos_drm_ipp.h| 4 +++- drivers/gpu/drm/exynos/exynos_drm_sca

[PATCH 14/20] drm/omap: Convert to generic image format library

2019-04-17 Thread Maxime Ripard
Now that we have a generic image format libary, let's convert drivers to use it so that we can deprecate the old DRM one. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/omapdrm/dss/dispc.c | 9 + drivers/gpu/drm/omapdrm/omap_fb.c | 7 --- 2 files changed, 9 insertions(+), 7 del

[PATCH 09/20] drm/client: Convert to generic image format library

2019-04-17 Thread Maxime Ripard
Now that we have a generic image format libary, let's convert the rest of the DRM core to use it so that we can deprecate the old DRM one. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/drm_client.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/drm

[PATCH 12/20] drm/ipuv3: Convert to generic image format library

2019-04-17 Thread Maxime Ripard
Now that we have a generic image format libary, let's convert drivers to use it so that we can deprecate the old DRM one. Signed-off-by: Maxime Ripard --- drivers/gpu/ipu-v3/ipu-pre.c | 3 ++- drivers/gpu/ipu-v3/ipu-prg.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dr

[PATCH 20/20] media: sun6i: Convert to the image format API

2019-04-17 Thread Maxime Ripard
The image format API allows us to remove some of the computation we need to handle the various video formats. Signed-off-by: Maxime Ripard --- drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c | 89 ++- drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.h | 49 +-- drivers/med

[PATCH 07/20] drm/fb: Move from drm_format_info to image_format_info

2019-04-17 Thread Maxime Ripard
Start converting the DRM drivers by changing the struct drm_framebuffer structure to hold a pointer to image_format_info instead, and converting everyone that depends on it. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/Kconfig | 1 +- drivers/gpu/drm/amd/amdgpu/amdgp

[PATCH 08/20] drm/malidp: Convert to generic image format library

2019-04-17 Thread Maxime Ripard
Now that we have a generic image format libary, let's convert drivers to use it so that we can deprecate the old DRM one. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/arm/malidp_drv.c| 1 + drivers/gpu/drm/arm/malidp_hw.c | 4 ++-- drivers/gpu/drm/arm/malidp_planes.c | 6 +++--- 3 fi

[PATCH 13/20] drm/msm: Convert to generic image format library

2019-04-17 Thread Maxime Ripard
Now that we have a generic image format libary, let's convert drivers to use it so that we can deprecate the old DRM one. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c | 6 -- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 3 ++- drivers/gpu/drm/msm/disp/mdp5/

Re: [PATCH] drm/amdgpu: fix drm leases being broken on radv

2019-04-17 Thread Daniel Vetter
On Wed, Apr 17, 2019 at 09:09:27AM +0200, Christian König wrote: > Am 16.04.19 um 23:40 schrieb Andres Rodriguez: > > After a recent commit, access to the DRM_AUTH ioctls become more > > permissive. This resulted in a buggy check for drm_master capabilities > > inside radv stop working. > > > > Th

[Bug 104206] [drm:construct [amdgpu]] *ERROR* construct: Invalid Connector ObjectID from Adapter Service for connector index:2!

2019-04-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104206 --- Comment #22 from Luya Tshimbalanga --- I also confirm a similar issue running on mobile Raven Ridge Ryzen 2500u from a HP Envy x360 model. Kernel version: 5.0.7-300.fc30.x86_64 [drm:construct [amdgpu]] *ERROR* construct: Invalid Connector O

[Bug 104206] [drm:construct [amdgpu]] *ERROR* construct: Invalid Connector ObjectID from Adapter Service for connector index:2!

2019-04-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104206 --- Comment #23 from Luya Tshimbalanga --- Created attachment 144009 --> https://bugs.freedesktop.org/attachment.cgi?id=144009&action=edit Journal boot from hp envy x360 cp0xxx -- You are receiving this mail because: You are the assignee for

Re: [RFC] MAINTAINERS: Add Sam as reviewer for drm/panel

2019-04-17 Thread Sam Ravnborg
Hi Thierry. On Tue, Apr 16, 2019 at 09:59:10AM +0200, Thierry Reding wrote: > From: Thierry Reding > > Sam has been helping out a lot with reviewing DRM panel patches. Add him > as reviewer to help him do this important work. > > Signed-off-by: Thierry Reding > --- > MAINTAINERS | 1 + > 1 fi

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

2019-04-17 Thread Thomas Hellstrom
On Tue, 2019-04-16 at 10:46 -0400, Jerome Glisse wrote: > On Sat, Apr 13, 2019 at 08:34:02AM +, Thomas Hellstrom wrote: > > Hi, Jérôme > > > > On Fri, 2019-04-12 at 17:07 -0400, Jerome Glisse wrote: > > > On Fri, Apr 12, 2019 at 04:04:18PM +, Thomas Hellstrom wrote: > > > > This is basical

Re: [PATCH] drm/amdgpu: fix drm leases being broken on radv

2019-04-17 Thread Koenig, Christian
Am 17.04.19 um 10:10 schrieb Daniel Vetter: > On Wed, Apr 17, 2019 at 09:09:27AM +0200, Christian König wrote: >> Am 16.04.19 um 23:40 schrieb Andres Rodriguez: >>> After a recent commit, access to the DRM_AUTH ioctls become more >>> permissive. This resulted in a buggy check for drm_master capabil

Re: [PATCH v3 00/26] compat_ioctl: cleanups

2019-04-17 Thread Arnd Bergmann
On Wed, Apr 17, 2019 at 12:33 AM Douglas Gilbert wrote: > > On 2019-04-16 4:19 p.m., Arnd Bergmann wrote: > > Hi Al, > > > > It took me way longer than I had hoped to revisit this series, see > > https://lore.kernel.org/lkml/20180912150142.157913-1-a...@arndb.de/ > > for the previously posted vers

Re: [PATCH 3/3] virtio-gpu api: VIRTIO_GPU_F_RESSOURCE_V2

2019-04-17 Thread Gerd Hoffmann
On Fri, Apr 12, 2019 at 04:34:20PM -0700, Chia-I Wu wrote: > Hi, > > I am still new to virgl, and missed the last round of discussion about > resource_create_v2. > > From the discussion below, semantically resource_create_v2 creates a host > resource object _without_ any storage; memory_create cr

Re: [PATCH] drm/amdgpu: fix drm leases being broken on radv

2019-04-17 Thread Koenig, Christian
Hi guys, well going back to the beginning once more because something doesn't fit together here. I mean what exactly is the purpose of 8059add0478e "drm: allow render capable master with DRM_AUTH ioctls"? When I read the code correctly the effect is that we ignore the DRM_AUTH flag when also

[Bug 201539] AMDGPU R9 390 automatic fan speed control in Linux 4.19/4.20/5.0

2019-04-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=201539 Alex Smith (a...@alex-smith.me.uk) changed: What|Removed |Added CC||a...@alex-smith.me.uk

Re: [PATCH 04/20] drm/fourcc: Pass the format_info pointer to drm_format_plane_width/height

2019-04-17 Thread Maarten Lankhorst
Op 17-04-2019 om 09:54 schreef Maxime Ripard: > So far, the drm_format_plane_height/width functions were operating on the > format's fourcc and was doing a lookup to retrieve the drm_format_info > structure and return the cpp. > > However, this is inefficient since in most cases, we will have the >

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

2019-04-17 Thread Thomas Hellstrom
On Mon, 2019-04-15 at 08:34 +0200, Christian König wrote: > Am 12.04.19 um 18:04 schrieb 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 n

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

2019-04-17 Thread Thomas Hellstrom
Hi, Souptick, On Sat, 2019-04-13 at 20:41 +0530, Souptick Joarder wrote: > On Fri, Apr 12, 2019 at 9:34 PM Thomas Hellstrom < > thellst...@vmware.com> wrote: > > Driver fault callbacks are allowed to drop the mmap_sem when > > expecting > > long hardware waits to avoid blocking other mm users. All

Re: [PATCH 04/20] drm/fourcc: Pass the format_info pointer to drm_format_plane_width/height

2019-04-17 Thread Maxime Ripard
On Wed, Apr 17, 2019 at 12:47:48PM +0200, Maarten Lankhorst wrote: > > +/** > > + * drm_format_info_plane_width - width of the plane given the first plane > > + * @format: pixel format info > > + * @width: width of the first plane > > + * @plane: plane index > > + * > > + * Returns: > > + * The wid

Re: [PATCH] drm/amdgpu: fix drm leases being broken on radv

2019-04-17 Thread Daniel Vetter
On Wed, Apr 17, 2019 at 12:29 PM Koenig, Christian wrote: > > Hi guys, > > well going back to the beginning once more because something doesn't fit > together here. > > I mean what exactly is the purpose of 8059add0478e "drm: allow render > capable master with DRM_AUTH ioctls"? > > When I read the

Re: [PATCH 04/20] drm/fourcc: Pass the format_info pointer to drm_format_plane_width/height

2019-04-17 Thread Maarten Lankhorst
Op 17-04-2019 om 13:01 schreef Maxime Ripard: > On Wed, Apr 17, 2019 at 12:47:48PM +0200, Maarten Lankhorst wrote: >>> +/** >>> + * drm_format_info_plane_width - width of the plane given the first plane >>> + * @format: pixel format info >>> + * @width: width of the first plane >>> + * @plane: plan

Re: [PATCH] drm/amdgpu: fix drm leases being broken on radv

2019-04-17 Thread Koenig, Christian
Am 17.04.19 um 13:06 schrieb Daniel Vetter: > On Wed, Apr 17, 2019 at 12:29 PM Koenig, Christian > wrote: >> Hi guys, >> >> well going back to the beginning once more because something doesn't fit >> together here. >> >> I mean what exactly is the purpose of 8059add0478e "drm: allow render >> capa

[PATCH 2/2] drm: revert "allow render capable master with DRM_AUTH ioctls"

2019-04-17 Thread Christian König
This reverts commit 8059add0478e29cb641936011a8fcc9ce9fd80be. It's breaking radv and most likely old libdrm_amdgpu versions. Signed-off-by: Christian König --- drivers/gpu/drm/drm_ioctl.c | 20 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/drivers/gpu/drm/d

[PATCH 1/2] drm/i915: remove DRM_AUTH from IOCTLs which also have DRM_RENDER_ALLOW

2019-04-17 Thread Christian König
This is to work around problems with libva and vainfo. Signed-off-by: Christian König --- drivers/gpu/drm/i915/i915_drv.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index bbe1a5d56480..12615641a

Re: [RFC][PATCH] libdrm: tests: Add planetest test from AOSP sources

2019-04-17 Thread Benjamin Gaignard
Le mar. 16 avr. 2019 à 20:48, John Stultz a écrit : > > On Tue, Apr 16, 2019 at 11:29 AM Sean Paul wrote: > > On Tue, Apr 16, 2019 at 09:43:49AM -0700, John Stultz wrote: > > > In trying to further align the AOSP libdrm branch with upstream, > > > I wanted to submit the added test planetest that

Re: [Intel-gfx] [PATCH 1/2] drm/i915: remove DRM_AUTH from IOCTLs which also have DRM_RENDER_ALLOW

2019-04-17 Thread Chris Wilson
Quoting Christian König (2019-04-17 12:25:24) > This is to work around problems with libva and vainfo. > > Signed-off-by: Christian König Mediated HW access should not require additional DRM_AUTH, if you can already create buffers, execbuf itself should not be any more dangerous. Reviewed-by: C

Re: [v3 0/7] Add Multi Segment Gamma Support

2019-04-17 Thread Ville Syrjälä
On Wed, Apr 17, 2019 at 09:28:19AM +0200, Daniel Vetter wrote: > On Fri, Apr 12, 2019 at 03:50:56PM +0530, Uma Shankar wrote: > > This series adds support for programmable gamma modes and > > exposes a property interface for the same. Also added, > > support for multi segment gamma mode introduced

Re: [PATCH] drm/amdgpu: fix drm leases being broken on radv

2019-04-17 Thread Daniel Vetter
On Wed, Apr 17, 2019 at 11:18:35AM +, Koenig, Christian wrote: > Am 17.04.19 um 13:06 schrieb Daniel Vetter: > > On Wed, Apr 17, 2019 at 12:29 PM Koenig, Christian > > wrote: > >> Hi guys, > >> > >> well going back to the beginning once more because something doesn't fit > >> together here. >

Re: [PATCH] drm/amdgpu: fix drm leases being broken on radv

2019-04-17 Thread Koenig, Christian
Am 17.04.19 um 14:00 schrieb Daniel Vetter: > On Wed, Apr 17, 2019 at 11:18:35AM +, Koenig, Christian wrote: >> Am 17.04.19 um 13:06 schrieb Daniel Vetter: >>> On Wed, Apr 17, 2019 at 12:29 PM Koenig, Christian >>> wrote: >>> [SNIP] >> Well, what you guys did here is a serious no-go. > Not rea

[PATCH] drm/etnaviv: initialize idle mask before querying the HW db

2019-04-17 Thread Lucas Stach
If there is a match in the HW DB, the function is left early, before inititalizing the idle mask. Fix this by doing the init earlier, as only old GPUs, not present in the HW DB need a different idle mask. Signed-off-by: Lucas Stach --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 6 ++ 1 file cha

Re: [PATCH 00/20] drm: Split out the formats API and move it to a common place

2019-04-17 Thread Paul Kocialkowski
Hi, On Wed, 2019-04-17 at 09:54 +0200, Maxime Ripard wrote: > Hi, > > DRM comes with an extensive format support to retrieve the various > parameters associated with a given format (such as the subsampling, or the > bits per pixel), as well as some helpers and utilities to ease the driver > devel

Re: [PATCH 06/20] lib: Add video format information library

2019-04-17 Thread Paul Kocialkowski
Hi, On Wed, 2019-04-17 at 09:54 +0200, Maxime Ripard wrote: > Move the DRM formats API to turn this into a more generic image formats API > to be able to leverage it into some other places of the kernel, such as > v4l2 drivers. See a few comments below. > Signed-off-by: Maxime Ripard > --- > i

Re: [PATCH 2/2] drm/bridge: ti-tfp410: Set the bus_format

2019-04-17 Thread Peter Ujfalusi
Hi Andrzej, On 12/04/2019 10.40, Andrzej Hajda wrote: > On 12.04.2019 09:33, Andrzej Hajda wrote: >> On 01.04.2019 14:41, Peter Ujfalusi wrote: >>> The TFP410 supports 24 bit, single-edge and 12 bit, dual-edge modes. >>> Depending on how many wires are used (24/12) the driver can set the correct >

Re: [PATCH] drm/amdgpu: fix drm leases being broken on radv

2019-04-17 Thread Daniel Vetter
On Wed, Apr 17, 2019 at 12:06:32PM +, Koenig, Christian wrote: > Am 17.04.19 um 14:00 schrieb Daniel Vetter: > > On Wed, Apr 17, 2019 at 11:18:35AM +, Koenig, Christian wrote: > >> Am 17.04.19 um 13:06 schrieb Daniel Vetter: > >>> On Wed, Apr 17, 2019 at 12:29 PM Koenig, Christian > >>> wr

Re: [PATCH 00/20] drm: Split out the formats API and move it to a common place

2019-04-17 Thread Paul Kocialkowski
Hi, On Wed, 2019-04-17 at 09:54 +0200, Maxime Ripard wrote: > Hi, > > DRM comes with an extensive format support to retrieve the various > parameters associated with a given format (such as the subsampling, or the > bits per pixel), as well as some helpers and utilities to ease the driver > devel

Re: [PATCH 19/20] lib: image-formats: Add more functions

2019-04-17 Thread Paul Kocialkowski
Hi, On Wed, 2019-04-17 at 09:54 +0200, Maxime Ripard wrote: > V4L2 drivers typically need a few more helpers compared to DRM drivers, so > let's add them. > > Signed-off-by: Maxime Ripard > --- > include/linux/image-formats.h | 42 - > 1 file changed, 42 inse

  1   2   3   >