[PATCH] Update arm,smmu.yaml bindings doc

2020-02-20 Thread Sharat Masetty
Patch [1] adds a "mem_iface_clock" in the clocks list for smmu device. This patch updates the yaml doc file for smmu by adding the definition for this new clock. 1: https://patchwork.freedesktop.org/patch/352718/ Sharat Masetty (1): dt-bindings: arm-smmu: update clocks and bindings for sc7180 S

[PATCH] dt-bindings: arm-smmu: update the list of clocks

2020-02-20 Thread Sharat Masetty
This patch adds a clock definition needed for powering on the GPU TBUs and the GPU TCU. Signed-off-by: Sharat Masetty --- Documentation/devicetree/bindings/iommu/arm,smmu.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/iommu/arm,smmu.yaml b/Document

Re: [PATCH v6] arm64: dts: qcom: sc7180: Add A618 gpu dt blob

2020-02-20 Thread Sharat Masetty
On 2/11/2020 2:51 AM, Doug Anderson wrote: Hi, On Sun, Feb 9, 2020 at 11:41 PM Sharat Masetty wrote: This patch adds the required dt nodes and properties to enabled A618 GPU. Signed-off-by: Sharat Masetty In v4 I added my tags [1]. Please keep them for future patches unless something maj

Re: [PATCH] backlight: add led-backlight driver

2020-02-20 Thread Guido Günther
Hi, On Wed, Feb 19, 2020 at 08:14:12PM +0100, Pavel Machek wrote: > From: Tomi Valkeinen > > This patch adds a led-backlight driver (led_bl), which is similar to > pwm_bl except the driver uses a LED class driver to adjust the > brightness in the HW. Multiple LEDs can be used for a single backlig

[PATCH 4/6] dt-bindings: display: simple: Add NewEast Optoelectronics WJFH116008A compatible

2020-02-20 Thread Vasily Khoruzhick
This commit adds compatible for NewEast Optoelectronics WJFH116008A panel to panel-simple binding Signed-off-by: Vasily Khoruzhick --- .../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/display/p

[PATCH 1/6] drm/bridge: anx6345: Fix getting anx6345 regulators

2020-02-20 Thread Vasily Khoruzhick
From: Samuel Holland We don't need to pass '-supply' suffix to devm_get_regulator() Fixes: 6aa192698089 ("drm/bridge: Add Analogix anx6345 support") Signed-off-by: Samuel Holland Signed-off-by: Vasily Khoruzhick --- drivers/gpu/drm/bridge/analogix/analogix-anx6345.c | 4 ++-- 1 file changed,

[PATCH 6/6] arm64: allwinner: a64: enable LCD-related hardware for Pinebook

2020-02-20 Thread Vasily Khoruzhick
From: Icenowy Zheng Pinebook has an ANX6345 bridge connected to the RGB666 LCD output and eDP panel input. The bridge is controlled via I2C that's connected to R_I2C bus. Enable all this hardware in device tree. Signed-off-by: Icenowy Zheng Signed-off-by: Vasily Khoruzhick --- .../dts/allwin

[PATCH 3/6] dt-bindings: Add Guangdong Neweast Optoelectronics CO. LTD vendor prefix

2020-02-20 Thread Vasily Khoruzhick
Add vendor prefix for Guangdong Neweast Optoelectronics CO. LTD Signed-off-by: Vasily Khoruzhick --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bin

[PATCH 0/6] Add LCD support for Pine64 Pinebook 1080p

2020-02-20 Thread Vasily Khoruzhick
Since ANX6345 driver has been merged we can add support for Pinebook LCD This is a follow up on [1] which attempted to add support for all the A64-based Pinebooks. Since patches for 768p were dropped we don't need edp-connector binding discussed in [1] and its earlier versions and we can use pane

[PATCH 2/6] drm/bridge: anx6345: Clean up error handling in probe()

2020-02-20 Thread Vasily Khoruzhick
devm_regulator_get() returns either a dummy regulator or -EPROBE_DEFER, we don't need to print scary message in either case. Signed-off-by: Vasily Khoruzhick --- drivers/gpu/drm/bridge/analogix/analogix-anx6345.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers

[PATCH 5/6] drm/panel: simple: Add NewEast Optoelectronics CO., LTD WJFH116008A panel support

2020-02-20 Thread Vasily Khoruzhick
This commit adds support for the NewEast Optoelectronics CO., LTD WJFH116008A 11.6" 1920x1080 TFT LCD panel. Signed-off-by: Vasily Khoruzhick --- drivers/gpu/drm/panel/panel-simple.c | 47 1 file changed, 47 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-sim

PATCH v4

2020-02-20 Thread Andrey Lebedev
Address all outstanding review comments. Maxime, please confirm I've got "document the new compatibles" part right. ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

[PATCH 4/5] dt-bindings: display: sun4i: New compatibles for A20 tcons

2020-02-20 Thread Andrey Lebedev
From: Andrey Lebedev Document new compatibles used to differentiate between timing controllers on A20 (sun7i) Signed-off-by: Andrey Lebedev --- .../bindings/display/allwinner,sun4i-a10-tcon.yaml | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindin

Re: [PATCH 09/11] drm, cgroup: Introduce lgpu as DRM cgroup resource

2020-02-20 Thread Johannes Weiner
On Fri, Feb 14, 2020 at 02:17:54PM -0500, Tejun Heo wrote: > Hello, Kenny, Daniel. > > (cc'ing Johannes) > > On Fri, Feb 14, 2020 at 01:51:32PM -0500, Kenny Ho wrote: > > On Fri, Feb 14, 2020 at 1:34 PM Daniel Vetter wrote: > > > > > > I think guidance from Tejun in previos discussions was prett

Re: [PATCH] backlight: add led-backlight driver

2020-02-20 Thread Tony Lindgren
* Pavel Machek [200219 20:54]: > Hi! > > > > This patch adds a led-backlight driver (led_bl), which is similar to > > > pwm_bl except the driver uses a LED class driver to adjust the > > > brightness in the HW. Multiple LEDs can be used for a single backlight. > > > > > > Signed-off-by: Tomi Val

[PATCH] drm/virtio: fix virtio-gpu resource id creation race

2020-02-20 Thread John Bates
The previous code was not thread safe and caused undefined behavior from spurious duplicate resource IDs. In this patch, an atomic_t is used instead. We no longer see any duplicate IDs in tests with this change. Signed-off-by: John Bates --- drivers/gpu/drm/virtio/virtgpu_object.c | 4 ++-- 1 f

[PATCH 2/5] drm/sun4i: tcon: Separate quirks for tcon0 and tcon1 on A20

2020-02-20 Thread Andrey Lebedev
From: Andrey Lebedev Timing controllers on A20 are not equivalent: tcon0 on A20 supports LVDS output and tcon1 does not. Separate the capabilities by introducing independent set of quirks for each of the tcons. Signed-off-by: Andrey Lebedev --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 2 ++ 1 file

[PATCH 5/5] drm/sun4i: tcon: Support LVDS output on Allwinner A20

2020-02-20 Thread Andrey Lebedev
From: Andrey Lebedev A20 SoC (found in Cubieboard 2 among others) requires different LVDS set up procedure than A33. Timing controller (tcon) driver only implements sun6i-style procedure, that doesn't work on A20 (sun7i). Signed-off-by: Andrey Lebedev --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 3

Re: LED backlight on Droid 4 and others

2020-02-20 Thread Tony Lindgren
* Lee Jones [200219 07:47]: > On Wed, 19 Feb 2020, Pavel Machek wrote: > > > Hi! > > > > > > > > > > It would be good to get LED backlight to work in clean way for > > > > > > > > 5.6 > > > > > > > > kernel. > > > > > > ... > > > > > > > > [If you have an idea what else is needed, it would be w

Open Source Hackathon Mentorship Invitation

2020-02-20 Thread Misha Patel
Hello, My name is Misha Patel and I’m reaching out on behalf of the HackIllinois Outreach team. HackIllinois is a 36-hour collegiate Open Source hackathon that takes place annually at the University of Illinois Urbana-Champaign. This year, it will be from February 28th-March 1st, 2020. Our mission

[PATCH 1/5] drm/sun4i: tcon: Introduce LVDS setup routine setting

2020-02-20 Thread Andrey Lebedev
From: Andrey Lebedev Different sunxi flavors require slightly different sequence for enabling LVDS output. This allows to differentiate between them. Signed-off-by: Andrey Lebedev --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 68 -- drivers/gpu/drm/sun4i/sun4i_tcon.h |

[PATCH 3/5] ARM: dts: sun7i: Add LVDS panel support on A20

2020-02-20 Thread Andrey Lebedev
From: Andrey Lebedev Define pins for LVDS channels 0 and 1, configure reset line for tcon0 and provide sample LVDS panel, connected to tcon0. Signed-off-by: Andrey Lebedev --- arch/arm/boot/dts/sun7i-a20.dtsi | 30 ++ 1 file changed, 26 insertions(+), 4 deletions(-)

Re: [PATCH 09/11] drm, cgroup: Introduce lgpu as DRM cgroup resource

2020-02-20 Thread Johannes Weiner
On Fri, Feb 14, 2020 at 03:28:40PM -0500, Kenny Ho wrote: > On Fri, Feb 14, 2020 at 2:17 PM Tejun Heo wrote: > > Also, a rather trivial high level question. Is drm a good controller > > name given that other controller names are like cpu, memory, io? > > There was a discussion about naming early

Re: [PATCH 09/11] drm, cgroup: Introduce lgpu as DRM cgroup resource

2020-02-20 Thread Johannes Weiner
On Wed, Feb 19, 2020 at 11:28:48AM -0500, Kenny Ho wrote: > On Wed, Feb 19, 2020 at 11:18 AM Johannes Weiner wrote: > > > > Yes, I'd go with absolute units when it comes to memory, because it's > > not a renewable resource like CPU and IO, and so we do have cliff > > behavior around the edge where

Re: [PATCH] backlight: add led-backlight driver

2020-02-20 Thread Tony Lindgren
* Pavel Machek [200219 19:15]: > From: Tomi Valkeinen > > This patch adds a led-backlight driver (led_bl), which is similar to > pwm_bl except the driver uses a LED class driver to adjust the > brightness in the HW. Multiple LEDs can be used for a single backlight. > > Signed-off-by: Tomi Valke

[PATCH v3] backlight: corgi: Convert to use GPIO descriptors

2020-02-20 Thread Linus Walleij
The code in the Corgi backlight driver can be considerably simplified by moving to GPIO descriptors and lookup tables from the board files instead of passing GPIO numbers using the old API. Make sure to encode inversion semantics for the Akita and Spitz platforms inside the GPIO lookup table and d

Re: [PATCHv5 01/34] drm/core: Add afbc helper functions

2020-02-20 Thread Boris Brezillon
On Tue, 17 Dec 2019 15:49:47 +0100 Andrzej Pietrasiewicz wrote: > Add checking if a modifier is afbc and getting afbc block size. > > Signed-off-by: Andrzej Pietrasiewicz > --- > drivers/gpu/drm/drm_fourcc.c | 53 > include/drm/drm_fourcc.h | 4 +++ >

Re: [PATCH 3/6] dt-bindings: Add Guangdong Neweast Optoelectronics CO. LTD vendor prefix

2020-02-20 Thread Sam Ravnborg
Hi Vasily On Thu, Feb 20, 2020 at 12:35:05AM -0800, Vasily Khoruzhick wrote: > Add vendor prefix for Guangdong Neweast Optoelectronics CO. LTD > > Signed-off-by: Vasily Khoruzhick > --- > Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ > 1 file changed, 2 insertions(+) > > diff

Re: [PATCH 5/5] drm/amdgpu: implement amdgpu_gem_prime_move_notify v2

2020-02-20 Thread VMware
On 2/19/20 7:42 AM, Thomas Hellström (VMware) wrote: On 2/18/20 10:01 PM, Daniel Vetter wrote: On Tue, Feb 18, 2020 at 9:17 PM Thomas Hellström (VMware) wrote: On 2/17/20 6:55 PM, Daniel Vetter wrote: On Mon, Feb 17, 2020 at 04:45:09PM +0100, Christian König wrote: Implement the importer sid

Re: [PATCHv5 02/34] drm/gem-fb-helper: Allow drivers to allocate struct drm_framebuffer on their own

2020-02-20 Thread Boris Brezillon
On Tue, 17 Dec 2019 15:49:48 +0100 Andrzej Pietrasiewicz wrote: > +/** > + * drm_gem_fb_size_check() - Helper function for use in > + *&drm_mode_config_funcs.fb_create implementations > + * @dev: DRM device > + * @mode_cmd: Metadata from the userspace framebuffer creation

Re: [RESEND PATCH v2 9/9] ath5k: Constify ioreadX() iomem argument (as in generic implementation)

2020-02-20 Thread Jiri Slaby
On 19. 02. 20, 18:50, Krzysztof Kozlowski wrote: > The ioreadX() helpers have inconsistent interface. On some architectures > void *__iomem address argument is a pointer to const, on some not. > > Implementations of ioreadX() do not modify the memory under the address > so they can be converted t

Re: [PATCHv5 03/34] drm/gem-fb-helper: Add special version of drm_gem_fb_size_check

2020-02-20 Thread Boris Brezillon
On Tue, 17 Dec 2019 15:49:49 +0100 Andrzej Pietrasiewicz wrote: > > static const struct drm_framebuffer_funcs drm_gem_fb_funcs_dirtyfb = { > diff --git a/include/drm/drm_gem_framebuffer_helper.h > b/include/drm/drm_gem_framebuffer_helper.h > index c85d4b152e91..4955af96d6c3 100644 > --- a/inc

[PULL] drm-misc-fixes

2020-02-20 Thread Maarten Lankhorst
I see I missed some commits in the actual tag, but I fixed this below. drm-misc-fixes-2020-02-20: drm-misc-fixes for v5.6-rc3: - Fix dt binding for sunxi. - Allow only 1 rotation argument, and allow 0 rotation in video cmdline. - Small compiler warning fix for panfrost. - Fix when using performan

Re: [PATCH v3] backlight: corgi: Convert to use GPIO descriptors

2020-02-20 Thread Daniel Thompson
On Thu, Feb 20, 2020 at 10:00:32AM +0100, Linus Walleij wrote: > The code in the Corgi backlight driver can be considerably > simplified by moving to GPIO descriptors and lookup tables > from the board files instead of passing GPIO numbers using > the old API. > > Make sure to encode inversion sem

Re: [PATCHv5 01/34] drm/core: Add afbc helper functions

2020-02-20 Thread Boris Brezillon
On Tue, 17 Dec 2019 15:49:47 +0100 Andrzej Pietrasiewicz wrote: > +/** > + * drm_afbc_get_superblock_wh - extract afbc block width/height from modifier > + * @modifier: the modifier to be looked at > + * @w: address of a place to store the block width > + * @h: address of a place to store the blo

Re: [PATCH] thinkpad_acpi: Add sysfs entry for lcdshadow feature

2020-02-20 Thread Andy Shevchenko
On Thu, Feb 20, 2020 at 9:48 AM Nitin Joshi wrote: > > This feature is supported on some Thinkpad products like T490s, Thinkpad > X1 yoga 4th Gen etc . The lcdshadow feature can be enabled and disabled > when user press "Fn" + "D" key. Currently, no user feedback is given for > this action

Re: [Intel-gfx] [PATCH 01/12] drm: Nuke mode->hsync

2020-02-20 Thread Emil Velikov
On Wed, 19 Feb 2020 at 20:35, Ville Syrjala wrote: > > From: Ville Syrjälä > > Let's just calculate the hsync rate on demand. No point in wasting > space storing it and risking the cached value getting out of sync > with reality. > > Signed-off-by: Ville Syrjälä > --- > drivers/gpu/drm/drm_mode

Re: [PATCH 02/12] drm/exynos: Use mode->clock instead of reverse calculating it from the vrefresh

2020-02-20 Thread Emil Velikov
On Wed, 19 Feb 2020 at 20:36, Ville Syrjala wrote: > > From: Ville Syrjälä > > htotal*vtotal*vrefresh ~= clock. So just use say "clock" when we mean it. > > Cc: Inki Dae > Cc: Joonyoung Shim > Cc: Seung-Woo Kim > Cc: Kyungmin Park > Signed-off-by: Ville Syrjälä Reviewed-by: Emil Velikov -

Re: [Intel-gfx] [PATCH 03/12] drm/i915: Introduce some local intel_dp variables

2020-02-20 Thread Emil Velikov
On Wed, 19 Feb 2020 at 20:36, Ville Syrjala wrote: > > From: Ville Syrjälä > > The drrs code dereferences mode->vrefresh via some really long chain > of structures/pointers. Couldn't get coccinelle to see through all > that so let's add some local variables to help it. > There's a limit to the ma

[PULL] drm-intel-fixes

2020-02-20 Thread Jani Nikula
Hi Dave & Daniel - Due to issues in s2idle in v5.6-rc2, I've gotten CI results on these with two hack reverts on top, and I threw them out just before making the pull request. I had to revert: fdde0ff8590b ("ACPI: PM: s2idle: Prevent spurious SCIs from waking up the system") e3728b50cd9b ("ACP

Re: [Intel-gfx] [PATCH 04/12] drm/i915: Add i9xx_lut_8()

2020-02-20 Thread Emil Velikov
On Thu, 7 Nov 2019 at 15:17, Ville Syrjala wrote: > > From: Ville Syrjälä > > We have a nice little helper to compute a single LUT entry > for everything except the 8bpc legacy gamma mode. Let's > complete the set. > At a later stage one could rename this & the 10bit one, moving them to include/d

Re: [PATCHv5 34/34] drm/rockchip: Add support for afbc

2020-02-20 Thread Boris Brezillon
On Tue, 17 Dec 2019 15:50:20 +0100 Andrzej Pietrasiewicz wrote: > static const struct drm_mode_config_funcs rockchip_drm_mode_config_funcs = { > - .fb_create = drm_gem_fb_create_with_dirty, > + .fb_create = rockchip_fb_create, > .output_poll_changed = drm_fb_helper_output_poll_chan

Re: [PATCHv5 33/34] drm/rockchip: Use helper for common task

2020-02-20 Thread Boris Brezillon
On Tue, 17 Dec 2019 15:50:19 +0100 Andrzej Pietrasiewicz wrote: > Use generic helper code. > > Signed-off-by: Andrzej Pietrasiewicz > --- > drivers/gpu/drm/rockchip/rockchip_drm_fb.c | 12 ++-- > 1 file changed, 2 insertions(+), 10 deletions(-) > > diff --git a/drivers/gpu/drm/rockchi

Re: [PATCH 05/12] drm/msm/dpu: Stop copying around mode->private_flags

2020-02-20 Thread Emil Velikov
On Wed, 19 Feb 2020 at 20:36, Ville Syrjala wrote: > > From: Ville Syrjälä > > The driver never sets mode->private_flags so copying > it back and forth is entirely pointless. Stop doing it. > > Also drop private_flags from the tracepoint. > > Cc: Rob Clark > Cc: Sean Paul > Cc: linux-arm-...@vg

Re: [PATCHv5 29/34] drm/arm/malidp: Make verify funcitons invocations independent

2020-02-20 Thread Boris Brezillon
In the subject: s/funcitons/functions/ On Tue, 17 Dec 2019 15:50:15 +0100 Andrzej Pietrasiewicz wrote: > This will make it easier to transition to generic afbc-aware helpers. > > Signed-off-by: Andrzej Pietrasiewicz Reviewed-by: Boris Brezillon > --- > drivers/gpu/drm/arm/malidp_drv.c | 6

Re: [PATCHv5 29/34] drm/arm/malidp: Make verify funcitons invocations independent

2020-02-20 Thread Boris Brezillon
On Thu, 20 Feb 2020 12:26:01 +0100 Boris Brezillon wrote: > In the subject: s/funcitons/functions/ > > On Tue, 17 Dec 2019 15:50:15 +0100 > Andrzej Pietrasiewicz wrote: > > > This will make it easier to transition to generic afbc-aware helpers. > > > > Signed-off-by: Andrzej Pietrasiewicz

Re: [PATCHv5 29/34] drm/arm/malidp: Make verify funcitons invocations independent

2020-02-20 Thread Boris Brezillon
On Thu, 20 Feb 2020 12:29:13 +0100 Boris Brezillon wrote: > On Thu, 20 Feb 2020 12:26:01 +0100 > Boris Brezillon wrote: > > > In the subject: s/funcitons/functions/ > > > > On Tue, 17 Dec 2019 15:50:15 +0100 > > Andrzej Pietrasiewicz wrote: > > > > > This will make it easier to transition

Re: [PATCH 04/12] drm: Nuke mode->vrefresh

2020-02-20 Thread Emil Velikov
On Wed, 19 Feb 2020 at 20:36, Ville Syrjala wrote: > > From: Ville Syrjälä > > Get rid of mode->vrefresh and just calculate it on demand. Saves > a bit of space and avoids the cached value getting out of sync > with reality. > > Mostly done with cocci, with the following manual fixups: > - Remove

Re: drm_dp_mst_topology.c and old compilers

2020-02-20 Thread Joe Perches
On Wed, 2020-02-19 at 16:42 -0800, Paul E. McKenney wrote: > Hello! > > A box with GCC 4.8.3 compiler didn't like drm_dp_mst_topology.c. The > following (lightly tested) patch makes it happy and seems OK for newer > compilers as well. > > Is this of interest? [] > diff --git a/drivers/gpu/drm/dr

[PATCH] drm/panel: ld9040: add MODULE_DEVICE_TABLE with SPI IDs

2020-02-20 Thread Marek Szyprowski
Add proper MODULE_DEVICE_TABLE structure with SPI IDs to allow proper creation of SPI modalias string and fix autoloading module for this driver. Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/panel/panel-samsung-ld9040.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu

[PATCH v4 2/9] mm: Introduce vma_is_special_huge

2020-02-20 Thread VMware
From: Thomas Hellstrom For VM_PFNMAP and VM_MIXEDMAP vmas that want to support transhuge pages and -page table entries, introduce vma_is_special_huge() that takes the same codepaths as vma_is_dax(). The use of "special" follows the definition in memory.c, vm_normal_page(): "Special" mappings do

[PATCH v4 6/9] drm/vmwgfx: Support huge page faults

2020-02-20 Thread VMware
From: Thomas Hellstrom With vmwgfx dirty-tracking we need a specialized huge_fault callback. Implement and hook it up. Cc: Andrew Morton Cc: Michal Hocko Cc: "Matthew Wilcox (Oracle)" Cc: "Kirill A. Shutemov" Cc: Ralph Campbell Cc: "Jérôme Glisse" Cc: "Christian König" Cc: Dan Williams S

[PATCH v4 1/9] fs: Constify vma argument to vma_is_dax

2020-02-20 Thread VMware
From: Thomas Hellstrom The vma argument is only dereferenced for reading. Cc: Andrew Morton Cc: Michal Hocko Cc: "Matthew Wilcox (Oracle)" Cc: "Kirill A. Shutemov" Cc: Ralph Campbell Cc: "Jérôme Glisse" Cc: "Christian König" Cc: Dan Williams Signed-off-by: Thomas Hellstrom Reviewed-by:

[PATCH v4 7/9] drm: Add a drm_get_unmapped_area() helper

2020-02-20 Thread VMware
From: Thomas Hellstrom Unaligned virtual addresses makes it unlikely that huge page-table entries can be used. So align virtual buffer object address huge page boundaries to the underlying physical address huge page boundaries taking buffer object sizes into account to determine when it might be

[PATCH v4 9/9] drm/vmwgfx: Hook up the helpers to align buffer objects

2020-02-20 Thread VMware
From: Thomas Hellstrom Start using the helpers that align buffer object user-space addresses and buffer object vram addresses to huge page boundaries. This is to improve the chances of allowing huge page-table entries. Cc: Andrew Morton Cc: Michal Hocko Cc: "Matthew Wilcox (Oracle)" Cc: "Kiri

[PATCH v4 8/9] drm/vmwgfx: Introduce a huge page aligning TTM range manager

2020-02-20 Thread VMware
From: Thomas Hellstrom Using huge page-table entries requires that the physical address of the start of a buffer object is huge page size aligned. Make a special version of the TTM range manager that accomplishes this, but falls back to a smaller page size alignment (PUD->PMD, PMD->NORMAL) to avo

[PATCH v4 3/9] mm: Split huge pages on write-notify or COW

2020-02-20 Thread VMware
From: Thomas Hellstrom We currently only do COW and write-notify on the PTE level, so if the huge_fault() handler returns VM_FAULT_FALLBACK on wp faults, split the huge pages and page-table entries. Also do this for huge PUDs if there is no huge_fault() handler and the vma is not anonymous, simil

[PATCH v4 4/9] mm: Add vmf_insert_pfn_xxx_prot() for huge page-table entries

2020-02-20 Thread VMware
From: Thomas Hellstrom For graphics drivers needing to modify the page-protection, add huge page-table entries counterparts to vmf_insert_pfn_prot(). Cc: Andrew Morton Cc: Michal Hocko Cc: "Matthew Wilcox (Oracle)" Cc: "Kirill A. Shutemov" Cc: Ralph Campbell Cc: "Jérôme Glisse" Cc: "Christ

[PATCH v4 0/9] Huge page-table entries for TTM

2020-02-20 Thread VMware
In order to reduce TLB misses and CPU usage this patchset enables huge- and giant page-table entries for TTM and TTM-enabled graphics drivers. Patch 1 and 2 introduce a vma_is_special_huge() function to make the mm code take the same path as DAX when splitting huge- and giant page table entries, (

[PATCH v4 5/9] drm/ttm, drm/vmwgfx: Support huge TTM pagefaults

2020-02-20 Thread VMware
From: Thomas Hellstrom Support huge (PMD-size and PUD-size) page-table entries by providing a huge_fault() callback. We still support private mappings and write-notify by splitting the huge page-table entries on write-access. Note that for huge page-faults to occur, either the kernel needs to be

[PATCH] drm/exynos: dsi: fix workaround for the legacy clock name

2020-02-20 Thread Marek Szyprowski
Writing to the built-in strings arrays doesn't work if driver is loaded as kernel module. This is also considered as a bad pattern. Fix this by adding a call to clk_get() with legacy clock name. This fixes following kernel oops if driver is loaded as module: Unable to handle kernel paging request

Re: [Intel-gfx] [PATCH 06/12] drm: Shrink {width,height}_mm to u16

2020-02-20 Thread Emil Velikov
On Wed, 19 Feb 2020 at 20:36, Ville Syrjala wrote: > > From: Ville Syrjälä > > Instead of supporting ~2000km wide displayes let's limit ourselves > to ~65m. That seems plenty big enough to me. > > Even with EDID_QUIRK_DETAILED_IN_CM EDIDs seem to be limited to > 10*0xfff which fits into the 16 bi

Re: [PATCH v4 01/14] drm/i915: Fix sha_text population code

2020-02-20 Thread Sasha Levin
Hi, [This is an automated email] This commit has been processed because it contains a "Fixes:" tag, fixing commit: ee5e5e7a5e0f ("drm/i915: Add HDCP framework + base implementation"). The bot has tested the following trees: v5.5.4, v5.4.20, v4.19.104. v5.5.4: Failed to apply! Possible dependen

Re: [PATCH 12/12] drm: pahole struct drm_display_mode

2020-02-20 Thread Emil Velikov
On Wed, 19 Feb 2020 at 20:36, Ville Syrjala wrote: > > From: Ville Syrjälä > > Reorganize drm_display_mode to eliminate all the holes. > We'll put all the actual timings to the start of the > struct and all the extra junk to the end. > > Gets the size down to 136 bytes on 64bit and 120 bytes on >

[PATCH] drm/exynos: hdmi: don't leak enable HDMI_EN regulator if probe fails

2020-02-20 Thread Marek Szyprowski
Move enabling and disabling HDMI_EN optional regulator to probe() function to keep track on the regulator status. This fixes following warning if probe() fails (for example when I2C DDC adapter cannot be yet gathered due to the missing driver). This fixes following warning observed on Arndale5250 b

Re: [PATCH 00/12] drm: Put drm_display_mode on diet

2020-02-20 Thread Emil Velikov
On Wed, 19 Feb 2020 at 20:35, Ville Syrjala wrote: > > From: Ville Syrjälä > > struct drm_display_mode is extremely fat. Put it on diet. > > Some stats for the whole series: > > 64bit sizeof(struct drm_display_mode): > 200 -> 136 bytes (-32%) > > 64bit bloat-o-meter -c drm.ko: > add/remove: 1/0 g

Re: [PATCH] drm/virtio: fix virtio-gpu resource id creation race

2020-02-20 Thread Emil Velikov
Hi John, On Thu, 20 Feb 2020 at 08:45, John Bates wrote: > > The previous code was not thread safe and caused > undefined behavior from spurious duplicate resource IDs. > In this patch, an atomic_t is used instead. We no longer > see any duplicate IDs in tests with this change. > > Signed-off-by:

Re: [PATCH 1/6] drm/bridge: anx6345: Fix getting anx6345 regulators

2020-02-20 Thread Laurent Pinchart
Hi Vasily, Thank you for the patch. On Thu, Feb 20, 2020 at 12:35:03AM -0800, Vasily Khoruzhick wrote: > From: Samuel Holland > > We don't need to pass '-supply' suffix to devm_get_regulator() > > Fixes: 6aa192698089 ("drm/bridge: Add Analogix anx6345 support") > Signed-off-by: Samuel Holland

Re: [PATCH 2/6] drm/bridge: anx6345: Clean up error handling in probe()

2020-02-20 Thread Laurent Pinchart
Hi Vasily, Thank you for the patch. On Thu, Feb 20, 2020 at 12:35:04AM -0800, Vasily Khoruzhick wrote: > devm_regulator_get() returns either a dummy regulator or -EPROBE_DEFER, > we don't need to print scary message in either case. > > Signed-off-by: Vasily Khoruzhick > --- > drivers/gpu/drm/b

Re: [PATCH 4/6] dt-bindings: display: simple: Add NewEast Optoelectronics WJFH116008A compatible

2020-02-20 Thread Laurent Pinchart
On Thu, Feb 20, 2020 at 12:35:06AM -0800, Vasily Khoruzhick wrote: > This commit adds compatible for NewEast Optoelectronics WJFH116008A panel > to panel-simple binding > > Signed-off-by: Vasily Khoruzhick > --- > .../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++ > 1 file c

Re: [PATCH 3/6] dt-bindings: Add Guangdong Neweast Optoelectronics CO. LTD vendor prefix

2020-02-20 Thread Laurent Pinchart
Hi Vasily, Thank you for the patch. On Thu, Feb 20, 2020 at 12:35:05AM -0800, Vasily Khoruzhick wrote: > Add vendor prefix for Guangdong Neweast Optoelectronics CO. LTD > > Signed-off-by: Vasily Khoruzhick > --- > Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ > 1 file changed,

Re: [Intel-gfx] [PATCH 04/12] drm/i915: Add i9xx_lut_8()

2020-02-20 Thread Ville Syrjälä
On Thu, Feb 20, 2020 at 11:20:05AM +, Emil Velikov wrote: > On Thu, 7 Nov 2019 at 15:17, Ville Syrjala > wrote: > > > > From: Ville Syrjälä > > > > We have a nice little helper to compute a single LUT entry > > for everything except the 8bpc legacy gamma mode. Let's > > complete the set. > >

Re: [PATCH 5/6] drm/panel: simple: Add NewEast Optoelectronics CO., LTD WJFH116008A panel support

2020-02-20 Thread Laurent Pinchart
Hi Vasily, Thank you for the patch. On Thu, Feb 20, 2020 at 12:35:07AM -0800, Vasily Khoruzhick wrote: > This commit adds support for the NewEast Optoelectronics CO., LTD > WJFH116008A 11.6" 1920x1080 TFT LCD panel. > > Signed-off-by: Vasily Khoruzhick > --- > drivers/gpu/drm/panel/panel-simpl

Re: [PATCH 6/6] arm64: allwinner: a64: enable LCD-related hardware for Pinebook

2020-02-20 Thread Laurent Pinchart
Hi Vasily, Thank you for the patch. On Thu, Feb 20, 2020 at 12:35:08AM -0800, Vasily Khoruzhick wrote: > From: Icenowy Zheng > > Pinebook has an ANX6345 bridge connected to the RGB666 LCD output and > eDP panel input. The bridge is controlled via I2C that's connected to > R_I2C bus. > > Enable

Re: [PATCH 39/52] drm/stm: Drop explicit drm_mode_config_cleanup call

2020-02-20 Thread Philippe CORNU
Hi Daniel, On 2/19/20 11:21 AM, Daniel Vetter wrote: > It's right above the drm_dev_put(). > > Aside: Another driver with a bit much devm_kzalloc, which should > probably use drmm_kzalloc instead ... > > Signed-off-by: Daniel Vetter > Cc: Yannick Fertre > Cc: Philippe Cornu > Cc: Benjamin Gai

Re: [PATCH 00/12] drm: Put drm_display_mode on diet

2020-02-20 Thread Ville Syrjälä
On Thu, Feb 20, 2020 at 01:21:03PM +, Emil Velikov wrote: > On Wed, 19 Feb 2020 at 20:35, Ville Syrjala > wrote: > > > > From: Ville Syrjälä > > > > struct drm_display_mode is extremely fat. Put it on diet. > > > > Some stats for the whole series: > > > > 64bit sizeof(struct drm_display_mode)

Re: [PATCH 03/52] drm: add managed resources tied to drm_device

2020-02-20 Thread Laurent Pinchart
Hi Greg, On Wed, Feb 19, 2020 at 07:19:32PM +0100, Greg Kroah-Hartman wrote: > On Wed, Feb 19, 2020 at 07:36:52PM +0200, Laurent Pinchart wrote: > > On Wed, Feb 19, 2020 at 06:00:46PM +0100, Greg Kroah-Hartman wrote: > >> On Wed, Feb 19, 2020 at 03:22:49PM +0100, Daniel Vetter wrote: > >>> On Wed,

Re: [PATCH 05/12] drm/msm/dpu: Stop copying around mode->private_flags

2020-02-20 Thread Ville Syrjälä
On Thu, Feb 20, 2020 at 11:24:20AM +, Emil Velikov wrote: > On Wed, 19 Feb 2020 at 20:36, Ville Syrjala > wrote: > > > > From: Ville Syrjälä > > > > The driver never sets mode->private_flags so copying > > it back and forth is entirely pointless. Stop doing it. > > > > Also drop private_flags

Re: [Intel-gfx] [PATCH 00/12] drm: Put drm_display_mode on diet

2020-02-20 Thread Ville Syrjälä
On Thu, Feb 20, 2020 at 04:27:59PM +0200, Ville Syrjälä wrote: > On Thu, Feb 20, 2020 at 01:21:03PM +, Emil Velikov wrote: > > On Wed, 19 Feb 2020 at 20:35, Ville Syrjala > > wrote: > > > > > > From: Ville Syrjälä > > > > > > struct drm_display_mode is extremely fat. Put it on diet. > > > > >

Re: [PATCH 39/52] drm/stm: Drop explicit drm_mode_config_cleanup call

2020-02-20 Thread Daniel Vetter
On Thu, Feb 20, 2020 at 3:19 PM Philippe CORNU wrote: > > Hi Daniel, > > On 2/19/20 11:21 AM, Daniel Vetter wrote: > > It's right above the drm_dev_put(). > > > > Aside: Another driver with a bit much devm_kzalloc, which should > > probably use drmm_kzalloc instead ... > > > > Signed-off-by: Danie

Re: [PATCH 16/52] drm/repaper: Use drmm_add_final_kfree

2020-02-20 Thread Noralf Trønnes
Den 19.02.2020 11.20, skrev Daniel Vetter: > With this we can drop the final kfree from the release function. > > Signed-off-by: Daniel Vetter > Cc: "Noralf Trønnes" > --- Reviewed-by: Noralf Trønnes ___ dri-devel mailing list dri-devel@lists.freed

Re: [PATCH 05/52] drm/mipi_dbi: Use drmm_add_final_kfree in all drivers

2020-02-20 Thread Noralf Trønnes
Den 19.02.2020 11.20, skrev Daniel Vetter: > They all share mipi_dbi_release so we need to switch them all > together. With this we can drop the final kfree from the release > function. > > Aside, I think we could perhaps have a tiny additional helper for > these mipi_dbi drivers, the first few

Re: [Freedreno] [PATCH v6] arm64: dts: qcom: sc7180: Add A618 gpu dt blob

2020-02-20 Thread Rob Clark
On Sun, Feb 9, 2020 at 11:41 PM Sharat Masetty wrote: > > This patch adds the required dt nodes and properties > to enabled A618 GPU. > > Signed-off-by: Sharat Masetty > --- > arch/arm64/boot/dts/qcom/sc7180.dtsi | 102 > +++ > 1 file changed, 102 insertions(+) >

Re: [PATCH 47/52] drm/repaper: Drop explicit drm_mode_config_cleanup call

2020-02-20 Thread Noralf Trønnes
Den 19.02.2020 11.21, skrev Daniel Vetter: > Allows us to drop the drm_driver.release callback. > > Signed-off-by: Daniel Vetter > Cc: "Noralf Trønnes" > --- Reviewed-by: Noralf Trønnes ___ dri-devel mailing list dri-devel@lists.freedesktop.org htt

Re: [PATCH 49/52] drm/mipi-dbi: Drop explicit drm_mode_config_cleanup call

2020-02-20 Thread Noralf Trønnes
Den 19.02.2020 11.21, skrev Daniel Vetter: > Allows us to drop the drm_driver.release callback from all > drivers, and remove the mipi_dbi_release() function. > > Signed-off-by: Daniel Vetter > Cc: Maarten Lankhorst > Cc: Maxime Ripard > Cc: Thomas Zimmermann > Cc: David Airlie > Cc: Daniel

Re: [PATCH 48/52] drm/mipi-dbi: Move drm_mode_config_init into mipi library

2020-02-20 Thread Noralf Trønnes
Den 19.02.2020 11.21, skrev Daniel Vetter: > 7/7 drivers agree that's the right choice, let's do this. > > This avoids duplicating the same old error checking code over all 7 > drivers, which is the motivation here. > > Signed-off-by: Daniel Vetter > --- Reviewed-by: Noralf Trønnes __

[PATCH 0/4] drm/meson: add support for Amlogic Video FBC

2020-02-20 Thread Neil Armstrong
Amlogic uses a proprietary lossless image compression protocol and format for their hardware video codec accelerators, either video decoders or video input encoders. It considerably reduces memory bandwidth while writing and reading frames in memory. The underlying storage is considered to be 3 c

[PATCH 2/4] drm/meson: add Amlogic Video FBC registers

2020-02-20 Thread Neil Armstrong
Add the registers of the VPU VD1 Amlogic FBC decoder module, and routing register. Signed-off-by: Neil Armstrong --- drivers/gpu/drm/meson/meson_registers.h | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/gpu/drm/meson/meson_registers.h b/drivers/gpu/drm/meso

[PATCH 1/4] drm/fourcc: Add modifier definitions for describing Amlogic Video Framebuffer Compression

2020-02-20 Thread Neil Armstrong
Amlogic uses a proprietary lossless image compression protocol and format for their hardware video codec accelerators, either video decoders or video input encoders. It considerably reduces memory bandwidth while writing and reading frames in memory. The underlying storage is considered to be 3 c

[PATCH 3/4] drm/meson: overlay: setup overlay for Amlogic FBC

2020-02-20 Thread Neil Armstrong
Setup the Amlogic FBC decoder for the VD1 video overlay plane. The VD1 Amlogic FBC decoder is integrated in the pipeline like the YUV pixel reading/formatter but used a direct memory address instead. The default mode needs to calculate the content body size since the header is allocated after. T

[PATCH 4/4] drm/meson: crtc: handle commit of Amlogic FBC frames

2020-02-20 Thread Neil Armstrong
Since the VD1 Amlogic FBC decoder is now configured by the overlay driver, commit the right registers to decode the Amlogic FBC frame. Signed-off-by: Neil Armstrong --- drivers/gpu/drm/meson/meson_crtc.c | 118 + 1 file changed, 88 insertions(+), 30 deletions(-) diff

Re: [PATCHv5 00/34] Add AFBC support for Rockchip

2020-02-20 Thread Daniel Vetter
On Tue, Dec 17, 2019 at 03:49:46PM +0100, Andrzej Pietrasiewicz wrote: > This series adds AFBC support for Rockchip. It is inspired by: > > https://chromium.googlesource.com/chromiumos/third_party/kernel/+/refs/heads/factory-gru-9017.B-chromeos-4.4/drivers/gpu/drm/rockchip/rockchip_drm_vop.c > >

Re: [PATCH 00/12] drm: Put drm_display_mode on diet

2020-02-20 Thread Emil Velikov
On Thu, 20 Feb 2020 at 14:28, Ville Syrjälä wrote: > > On Thu, Feb 20, 2020 at 01:21:03PM +, Emil Velikov wrote: > > On Wed, 19 Feb 2020 at 20:35, Ville Syrjala > > wrote: > > > > > > From: Ville Syrjälä > > > > > > struct drm_display_mode is extremely fat. Put it on diet. > > > > > > Some s

[Intel-gfx] [PATCH v7 1/8] drm/i915/display/cdclk: Make WARN* drm specific where drm_priv ptr is available

2020-02-20 Thread Pankaj Bharadiya
drm specific WARN* calls include device information in the backtrace, so we know what device the warnings originate from. Covert all the calls of WARN* with device specific drm_WARN* variants in functions where drm_i915_private struct pointer is readily available. The conversion was done automati

[Intel-gfx] [PATCH v7 2/8] drm/i915/display/ddi: Make WARN* drm specific where drm_device ptr is available

2020-02-20 Thread Pankaj Bharadiya
drm specific WARN* calls include device information in the backtrace, so we know what device the warnings originate from. Covert all the calls of WARN* with device specific drm_WARN* variants in functions where drm_device or drm_i915_private struct pointer is readily available. The conversion was

[Intel-gfx] [PATCH v7 3/8] drm/i915/display/display: Make WARN* drm specific where drm_device ptr is available

2020-02-20 Thread Pankaj Bharadiya
drm specific WARN* calls include device information in the backtrace, so we know what device the warnings originate from. Covert all the calls of WARN* with device specific drm_WARN* variants in functions where drm_device or drm_i915_private struct pointer is readily available. The conversion was

[Intel-gfx] [PATCH v7 0/8] drm: Introduce struct drm_device based WARN* and use them in i915

2020-02-20 Thread Pankaj Bharadiya
Device specific dev_WARN and dev_WARN_ONCE macros available in kernel include device information in the backtrace, so we know what device the warnings originate from. Similar to this, add new struct drm_device based drm_WARN* macros. These macros include device information in the backtrace, so we

[Intel-gfx] [PATCH v7 5/8] drm/i915/display/dp: Make WARN* drm specific where drm_device ptr is available

2020-02-20 Thread Pankaj Bharadiya
drm specific WARN* calls include device information in the backtrace, so we know what device the warnings originate from. Covert all the calls of WARN* with device specific drm_WARN* variants in functions where drm_device or drm_i915_private struct pointer is readily available. The conversion was

[Intel-gfx] [PATCH v7 4/8] drm/i915/display/power: Make WARN* drm specific where drm_priv ptr is available

2020-02-20 Thread Pankaj Bharadiya
drm specific WARN* calls include device information in the backtrace, so we know what device the warnings originate from. Covert all the calls of WARN* with device specific drm_WARN* variants in functions where drm_i915_private struct pointer is readily available. The conversion was done automati

[Intel-gfx] [PATCH v7 6/8] drm/i915/display/hdcp: Make WARN* drm specific where drm_priv ptr is available

2020-02-20 Thread Pankaj Bharadiya
drm specific WARN* calls include device information in the backtrace, so we know what device the warnings originate from. Covert all the calls of WARN* with device specific drm_WARN* variants in functions where drm_i915_private struct pointer is readily available. The conversion was done automati

  1   2   >