Re: [PATCH v2] gpu/drm: mediatek: call mtk_dsi_stop() after mtk_drm_crtc_atomic_disable()

2019-03-20 Thread CK Hu
Hi, Hsin-yi: On Wed, 2019-03-20 at 15:18 +0800, Hsin-Yi Wang wrote: > mtk_dsi_stop() should be called after mtk_drm_crtc_atomic_disable(), which > needs > ovl irq for drm_crtc_wait_one_vblank(), since after mtk_dsi_stop() is called, > ovl irq will be disabled. If drm_crtc_wait_one_vblank() is

Re: [PATCH v2] gpu/drm: mediatek: call mtk_dsi_stop() after mtk_drm_crtc_atomic_disable()

2019-03-20 Thread CK Hu
Hi, Hsin-yi: On Thu, 2019-03-21 at 09:28 +0800, CK Hu wrote: > Hi, Hsin-yi: > > On Wed, 2019-03-20 at 15:18 +0800, Hsin-Yi Wang wrote: > > mtk_dsi_stop() should be called after mtk_drm_crtc_atomic_disable(), which > > needs > > ovl irq for drm_crtc_wait_one_vblank(), since after mtk_dsi_stop()

[pull] amdgpu drm-fixes-5.1

2019-03-20 Thread Alex Deucher
Hi Dave, Daniel, Fixes for 5.1: - Parially revert a bulk move clean up change to fix a ref count bug - Fix invalid use of change_bit that caused a crash on PPC64 and ARM64 The following changes since commit 9e98c678c2d6ae3a17cb2de55d17f69dddaa231b: Linux 5.1-rc1 (2019-03-17 14:22:26 -0700)

Re: [PATCH v6 1/8] drm/mediatek: recalculate hdmi phy clock of MT2701 by querying hardware

2019-03-20 Thread CK Hu
Hi, Wangyan: On Wed, 2019-03-06 at 18:07 +0800, CK Hu wrote: > Hi, Wangyan: > > On Mon, 2019-02-25 at 10:09 +0800, wangyan wang wrote: > > From: chunhui dai > > > > Recalculate the rate of this clock, by querying hardware. > > > > Signed-off-by: chunhui dai > > Signed-off-by: wangyan wang >

Re: [PATCH 1/9] dma-buf: add new dma_fence_chain container v6

2019-03-20 Thread kbuild test robot
Hi Chunming, I love your patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.1-rc1 next-20190320] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci

Re: [PATCH libdrm] tests/amdgpu: minor fix for dispatch/draw test

2019-03-20 Thread Alex Deucher
On Tue, Mar 19, 2019 at 10:47 PM Cui, Flora wrote: > > 1. clear cmd buffer > 2. make amdgpu_memcpy_dispatch_test static > 3. tab/space fix > > Change-Id: Idf55f8881f66458b585092eccb55b6042520e4ad > Signed-off-by: Flora Cui Reviewed-by: Alex Deucher and pushed. Thanks! > --- >

Re: Aw: [PATCH v2] gpu/drm: mediatek: call mtk_dsi_stop() after mtk_drm_crtc_atomic_disable()

2019-03-20 Thread CK Hu
Hi, Frank: On Wed, 2019-03-20 at 19:01 +0100, Frank Wunderlich wrote: > Hi, > > i hoped this fixes my warning (maybe have similar cause) on bananapi-r2/mt7623 This patch fix the problem of dsi driver. Your case is hdmi output which does not go through dsi hardware. So your problem is another

Re: [PATCH V6 8/8] drm/mediatek: fix the rate of parent for hdmi phy in MT2701

2019-03-20 Thread CK Hu
Hi, Wangyan: On Wed, 2019-03-06 at 18:13 +0800, CK Hu wrote: > Hi, Wangyan: > > On Mon, 2019-02-25 at 10:09 +0800, wangyan wang wrote: > > From: chunhui dai > > > > We should not change the rate of parent for hdmi phy when > > doing round_rate for this clock. The parent clock of hdmi > > phy

[Bug 110213] Used pwm value is lesser than the requested value

2019-03-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110213 Alex Deucher changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug 110214] amdgpu: xterm scrollback buffer disappears while paging up/down

2019-03-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110214 Bug ID: 110214 Summary: amdgpu: xterm scrollback buffer disappears while paging up/down Product: DRI Version: XOrg git Hardware: Other OS: All

Re: Clang warning in drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c

2019-03-20 Thread Alex Deucher
On Wed, Mar 20, 2019 at 4:49 PM Nick Desaulniers wrote: > > On Wed, Mar 20, 2019 at 2:37 AM Koenig, Christian > wrote: > > > > Am 20.03.19 um 05:34 schrieb Nathan Chancellor: > > > On Wed, Mar 20, 2019 at 01:31:27AM +, Pan, Xinhui wrote: > > >> these two enumerated types are same for now.

Re: [21/21] drm/bridge: tc358767: implement naive HPD handling

2019-03-20 Thread Tomi Valkeinen
On 19/03/2019 20:18, Andrey Smirnov wrote: > TC358767 has two GPIO pins that can be used for HPD signal. I think > instead of hardcoding GPIO0 here it would be more flexible to expose > boths gpios as a gpiochip and use gpiolib API to query the value of > HPD as well as use "hpd-gpios" binidng in

Re: [21/21] drm/bridge: tc358767: implement naive HPD handling

2019-03-20 Thread Tomi Valkeinen
On 20/03/2019 07:55, Andrey Smirnov wrote: > On Tue, Mar 19, 2019 at 11:18 AM Andrey Smirnov > wrote: >> >>> tc358767 driver doesn't have any HPD handling at the moment, as it was >>> originally developed to support only eDP. >> >>> This patch implements a naive, polling-based HPD handling, which

[PATCH v2] driver : staging : ion: optimization for decreasing memory fragmentaion

2019-03-20 Thread Zhaoyang Huang
From: Zhaoyang Huang Two action for this patch: 1. set a batch size for system heap's shrinker, which can have it buffer reasonable page blocks in pool for future allocation. 2. reverse the order sequence when free page blocks, the purpose is also to have system heap keep as more big blocks as

[Bug 110202] 33

2019-03-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110202 Andre Klapper changed: What|Removed |Added Product|DRI |Spam Status|NEW

[Bug 110205] 5

2019-03-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110205 Andre Klapper changed: What|Removed |Added Component|DRM/AMDgpu-pro |Two Resolution|---

Re: [PATCH 0/2] drm/meson: only allow using meson-canvas

2019-03-20 Thread Neil Armstrong
On 13/03/2019 13:50, Neil Armstrong wrote: > On 11/03/2019 11:51, Maxime Jourdan wrote: >> This patch series aims at removing access to the DMC register range from >> the meson DRM driver, and is the final step at fully migrating it to using >> the meson canvas provider module. >> >> Please see

Re: [PATCH] gpu/drm: mediatek: call mtk_dsi_stop() after mtk_drm_crtc_atomic_disable()

2019-03-20 Thread CK Hu
Hi, Hsin-yi: On Wed, 2019-03-20 at 13:39 +0800, Hsin-Yi Wang wrote: > On Wed, Mar 20, 2019 at 11:09 AM CK Hu wrote: > > > > Hi, Hsin-yi: > > > > On Mon, 2019-03-18 at 12:09 +0800, Hsin-Yi Wang wrote: > > > mtk_dsi_stop() should be called after mtk_drm_crtc_atomic_disable(), > > > which needs >

Re: [PATCH 3/4] drm/amd/display: In VRR mode, do DRM core vblank handling at end of vblank.

2019-03-20 Thread Mario Kleiner
Ok, fixed all the style issues and ran checkpatch over the patches. Thanks. On Tue, Mar 19, 2019 at 2:32 PM Kazlauskas, Nicholas wrote: > > On 3/19/19 9:23 AM, Kazlauskas, Nicholas wrote: > > On 3/18/19 1:19 PM, Mario Kleiner wrote: > >> In VRR mode, proper vblank/pageflip timestamps can only be

[PATCH] drm/meson: fix TMDS clock filtering for DMT monitors

2019-03-20 Thread Neil Armstrong
DMT monitors does not necessarely report a maximum TMDS clock in a VSDB EDID extension. In this case, all modes are wrongly rejected, including the DRM fallback EDID. This patch only rejects modes whith clock > max_tmds_clock if the max_tmds_clock is specified. This will only reject 4:2:0

RE: [v5 01/13] drm: Add HDR source metadata property

2019-03-20 Thread Shankar, Uma
>-Original Message- >From: Sharma, Shashank >Sent: Friday, March 15, 2019 12:39 PM >To: Shankar, Uma ; intel-...@lists.freedesktop.org; dri- >de...@lists.freedesktop.org >Cc: Lankhorst, Maarten ; Syrjala, Ville >; emil.l.veli...@gmail.com; brian.star...@arm.com; >liviu.du...@arm.com

[Bug 202043] amdgpu: Vega 56 SCLK drops to 700 Mhz when undervolting

2019-03-20 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=202043 Ivan Avdeev (li...@w23.ru) changed: What|Removed |Added CC||li...@w23.ru --- Comment #4

RE: [v5 04/13] drm/i915: Attach HDR metadata property to connector

2019-03-20 Thread Shankar, Uma
>-Original Message- >From: Sharma, Shashank >Sent: Friday, March 15, 2019 1:06 PM >To: Shankar, Uma ; intel-...@lists.freedesktop.org; dri- >de...@lists.freedesktop.org >Cc: Lankhorst, Maarten ; Syrjala, Ville >; emil.l.veli...@gmail.com; brian.star...@arm.com; >liviu.du...@arm.com

[Bug 110201] [ivb] mesa 19.0.0 breaks rendering in kitty

2019-03-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110201 Chris Wilson changed: What|Removed |Added Component|Drivers/DRI/i915|Drivers/DRI/i965

[PATCH 1/4] drm/amd/display: Prevent vblank irq disable while VRR is active. (v2)

2019-03-20 Thread Mario Kleiner
During VRR mode we can not allow vblank irq dis-/enable transitions, as an enable after a disable can happen at an arbitrary time during the video refresh cycle, e.g., with a high likelyhood inside vblank front-porch. An enable during front-porch would cause vblank timestamp updates/calculations

[PATCH] drm/virtio: add virtio-gpu-features debugfs file.

2019-03-20 Thread Gerd Hoffmann
This file prints which features the virtio-gpu device has. Also add "virtio-gpu-" prefix to the existing fence file, to make clear this is a driver-specific debugfs file. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/virtio/virtgpu_debugfs.c | 27 +++- 1 file changed, 26

Re: [RFC][PATCH 0/5 v2] DMA-BUF Heaps (destaging ION)

2019-03-20 Thread Benjamin Gaignard
Le mar. 19 mars 2019 à 23:36, John Stultz a écrit : > > On Tue, Mar 19, 2019 at 2:58 PM Rob Clark wrote: > > > > On Tue, Mar 19, 2019 at 1:00 PM Andrew F. Davis wrote: > > > > > > On 3/19/19 11:54 AM, Benjamin Gaignard wrote: > > > > Le mer. 13 mars 2019 à 23:31, John Stultz a > > > > écrit :

[Bug 110142] "Oops: Kernel access of bad area sig 7" on Kernel 5.0.0 PPC64LE when loading amdgpu, xorg hangs after being unable to load after OS boots.

2019-03-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110142 --- Comment #10 from Michel Dänzer --- It's on its way already, but it might take a while for it to land in a 5.0.y release. -- You are receiving this mail because: You are the assignee for the

RE: [v5 07/13] drm/i915: Write HDR infoframe and send to panel

2019-03-20 Thread Shankar, Uma
>-Original Message- >From: Sharma, Shashank >Sent: Friday, March 15, 2019 4:38 PM >To: Shankar, Uma ; intel-...@lists.freedesktop.org; dri- >de...@lists.freedesktop.org >Cc: Lankhorst, Maarten ; Syrjala, Ville >; emil.l.veli...@gmail.com; brian.star...@arm.com; >liviu.du...@arm.com

[v6 05/13] drm: Implement HDR output metadata set and get property handling

2019-03-20 Thread Uma Shankar
This patch implements get() and set() functions for HDR output metadata property.The blob data is received from userspace and saved in connector state, the same is returned as blob in get property call to userspace. v2: Rebase and added Ville's POC changes v3: No Change v4: Addressed Shashank's

[v6 09/13] drm/i915: Add HLG EOTF

2019-03-20 Thread Uma Shankar
From: Ville Syrjälä ADD HLG EOTF to the list of EOTF transfer functions supported. Hybrid Log-Gamma (HLG) is a high dynamic range (HDR) standard. HLG defines a nonlinear transfer function in which the lower half of the signal values use a gamma curve and the upper half of the signal values use a

[v6 07/13] drm/i915: Write HDR infoframe and send to panel

2019-03-20 Thread Uma Shankar
Enable writing of HDR metadata infoframe to panel. The data will be provid by usersapace compositors, based on blending policies and passsed to driver through a blob property. v2: Rebase v3: Fixed a warning message v4: Addressed Shashank's review comments v5: Rebase. Added infoframe

[v6 13/13] video/hdmi: Add const variants for drm infoframe

2019-03-20 Thread Uma Shankar
Added the const version of infoframe for DRM metadata for HDR. Signed-off-by: Uma Shankar --- drivers/video/hdmi.c | 63 ++-- include/linux/hdmi.h | 5 + 2 files changed, 66 insertions(+), 2 deletions(-) diff --git a/drivers/video/hdmi.c

[v6 03/13] drm: Parse Colorimetry data block from EDID

2019-03-20 Thread Uma Shankar
CEA 861.3 spec adds colorimetry data block for HDMI. Parsing the block to get the colorimetry data from panel. v2: Rebase v3: No Change v4: Addressed Shashank's review comments. Updated colorimetry field to 16 bit as DCI-P3 got added in CEA 861-G spec, as pointed out by Shashank. v5: Fixed

[v6 00/13] Add HDR Metadata Parsing and handling in DRM layer

2019-03-20 Thread Uma Shankar
This patch series enables HDR support in drm. It basically defines HDR metadata structures, property to pass content (after blending) metadata from user space compositors to driver. Dynamic Range and Mastering infoframe creation and sending. ToDo: 1. We need to get the color framework in place

[v6 02/13] drm: Parse HDR metadata info from EDID

2019-03-20 Thread Uma Shankar
HDR metadata block is introduced in CEA-861.3 spec. Parsing the same to get the panel's HDR metadata. v2: Rebase and added Ville's POC changes to the patch. v3: No Change v4: Addressed Shashank's review comments Signed-off-by: Uma Shankar --- drivers/gpu/drm/drm_edid.c | 49

[v6 01/13] drm: Add HDR source metadata property

2019-03-20 Thread Uma Shankar
This patch adds a blob property to get HDR metadata information from userspace. This will be send as part of AVI Infoframe to panel. v2: Rebase and modified the metadata structure elements as per Ville's POC changes. v3: No Change v4: Addressed Shashank's review comments v5: Rebase.

Re: [PATCH v1 4/6] reset: hi6220: Add support for AO reset controller

2019-03-20 Thread Philipp Zabel
Hi Peter, On Mon, 2019-03-18 at 19:38 +, Peter Griffin wrote: > This is required to bring Mali450 gpu out of reset. > > Signed-off-by: Peter Griffin > --- > drivers/reset/hisilicon/hi6220_reset.c | 51 > +- > 1 file changed, 50 insertions(+), 1 deletion(-)

[Bug 101473] (SI) latest stable & cant boot

2019-03-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101473 famo changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

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

2019-03-20 Thread Paul Kocialkowski
Hi, Le mardi 19 mars 2019 à 22:57 +0100, Maxime Ripard a écrit : > 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

Re: [PATCH] driver : staging : ion: optimization for decreasing memory fragmentaion

2019-03-20 Thread Vlastimil Babka
You should have CC'd the ION maintainers/lists per ./scripts/get_maintainer.pl - CCing now. On 3/14/19 12:06 PM, Zhaoyang Huang wrote: > From: Zhaoyang Huang > > Two action for this patch: > 1. set a batch size for system heap's shrinker, which can have it buffer > reasonable page blocks in

[Bug 102646] Screen flickering under amdgpu-experimental [buggy auto power profile]

2019-03-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102646 George Scorer changed: What|Removed |Added Priority|high|low Severity|major

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

2019-03-20 Thread Thomas Hellstrom
Driver fault callbacks are allowed to drop the mmap_sem when expecting long hardware waits to avoid blocking other mm users. Allow the mkwrite callbacks to do the same by returning early on VM_FAULT_RETRY. In particular we want to be able to drop the mmap_sem when waiting for a reservation object

[RFC PATCH 2/3] mm: Add an apply_to_pfn_range interface

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

[RFC PATCH 0/3] mm modifications / helpers for emulated GPU coherent memory

2019-03-20 Thread Thomas Hellstrom
Cc: Andrew Morton Cc: Matthew Wilcox Cc: Will Deacon Cc: Peter Zijlstra Cc: Rik van Riel Cc: Minchan Kim Cc: Michal Hocko Cc: Huang Ying Cc: Souptick Joarder Cc: "Jérôme Glisse" Cc: linux...@kvack.org Cc: linux-ker...@vger.kernel.org Hi, This is an early RFC to make sure I don't go too

[PATCH -fixes 2/2] drm/vmwgfx: Don't double-free the mode stored in par->set_mode

2019-03-20 Thread Thomas Hellstrom
From: Thomas Zimmermann When calling vmw_fb_set_par(), the mode stored in par->set_mode gets free'd twice. The first free is in vmw_fb_kms_detach(), the second is near the end of vmw_fb_set_par() under the name of 'old_mode'. The mode-setting code only works correctly if the mode doesn't

[PATCH -fixes 1/2] drm/vmwgfx: Return 0 when gmrid::get_node runs out of ID's

2019-03-20 Thread Thomas Hellstrom
From: Deepak Rawat If it's not a system error and get_node implementation accommodate the buffer object then it should return 0 with memm::mm_node set to NULL. v2: Test for id != -ENOMEM instead of id == -ENOSPC. Cc: Fixes: 4eb085e42fde ("drm/vmwgfx: Convert to new IDA API") Signed-off-by:

Clang warning in drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c

2019-03-20 Thread Nathan Chancellor
Hi all, The introduction of this file in commit dbd249c24427 ("drm/amdgpu: add amdgpu_ras.c to support ras (v2)") introduces the following Clang warnings: drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:544:23: warning: implicit conversion from enumeration type 'enum amdgpu_ras_block' to different

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

2019-03-20 Thread Nicolas Dufresne
Le mardi 19 mars 2019 à 22:57 +0100, Maxime Ripard a écrit : > 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 +- >

[RFC PATCH Xilinx Alveo 0/6] Xilinx PCIe accelerator driver

2019-03-20 Thread sonal.santan
From: Sonal Santan Hello, This patch series adds drivers for Xilinx Alveo PCIe accelerator cards. These drivers are part of Xilinx Runtime (XRT) open source stack and have been deployed by leading FaaS vendors and many enterprise customers. PLATFORM ARCHITECTURE Alveo PCIe platforms have a

[RFC PATCH Xilinx Alveo 2/6] Global data structures shared between xocl and xmgmt drivers

2019-03-20 Thread sonal.santan
From: Sonal Santan Signed-off-by: Sonal Santan --- drivers/gpu/drm/xocl/devices.h | 954 + drivers/gpu/drm/xocl/ert.h | 385 drivers/gpu/drm/xocl/version.h | 22 + drivers/gpu/drm/xocl/xclbin.h | 314 ++

[PATCH -next] drm/vboxvideo: Remove unused including

2019-03-20 Thread YueHaibing
Remove including that don't need it. Signed-off-by: YueHaibing --- drivers/gpu/drm/vboxvideo/vbox_drv.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/vboxvideo/vbox_drv.h b/drivers/gpu/drm/vboxvideo/vbox_drv.h index 6dea8bf5f045..ece31f395540 100644 ---

Re: [21/21] drm/bridge: tc358767: implement naive HPD handling

2019-03-20 Thread Andrey Smirnov
> tc358767 driver doesn't have any HPD handling at the moment, as it was > originally developed to support only eDP. > This patch implements a naive, polling-based HPD handling, which is used > when the driver is in DP mode. > Signed-off-by: Tomi Valkeinen > --- >

[RFC PATCH Xilinx Alveo 6/6] Add user physical function driver

2019-03-20 Thread sonal.santan
From: Sonal Santan Signed-off-by: Sonal Santan --- drivers/gpu/drm/xocl/userpf/common.h | 157 +++ drivers/gpu/drm/xocl/userpf/xocl_bo.c| 1255 ++ drivers/gpu/drm/xocl/userpf/xocl_bo.h| 119 ++ drivers/gpu/drm/xocl/userpf/xocl_drm.c | 640 +++

Re: [21/21] drm/bridge: tc358767: implement naive HPD handling

2019-03-20 Thread Andrey Smirnov
On Tue, Mar 19, 2019 at 11:18 AM Andrey Smirnov wrote: > > > tc358767 driver doesn't have any HPD handling at the moment, as it was > > originally developed to support only eDP. > > > This patch implements a naive, polling-based HPD handling, which is used > > when the driver is in DP mode. > > >

Re: Clang warning in drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c

2019-03-20 Thread Nathan Chancellor
On Wed, Mar 20, 2019 at 01:31:27AM +, Pan, Xinhui wrote: > these two enumerated types are same for now. both of them might change in the > future. > > I have not used clang, but would .block_id = (int)head->block fix your > warning? If such change is acceptable, I can make one then. > >

[RFC PATCH Xilinx Alveo 5/6] Add management driver

2019-03-20 Thread sonal.santan
From: Sonal Santan Signed-off-by: Sonal Santan --- drivers/gpu/drm/xocl/mgmtpf/mgmt-core.c | 960 +++ drivers/gpu/drm/xocl/mgmtpf/mgmt-core.h | 147 drivers/gpu/drm/xocl/mgmtpf/mgmt-cw.c| 30 + drivers/gpu/drm/xocl/mgmtpf/mgmt-ioctl.c | 148

[PATCH -next] drm/ttm: remove set but not used variable 'vgdev'

2019-03-20 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/virtio/virtgpu_ttm.c: In function 'virtio_gpu_init_mem_type': drivers/gpu/drm/virtio/virtgpu_ttm.c:117:28: warning: variable 'vgdev' set but not used [-Wunused-but-set-variable] drivers/gpu/drm/virtio/virtgpu_ttm.c: In function

[RFC PATCH Xilinx Alveo 1/6] Add skeleton code: ioctl definitions and build hooks

2019-03-20 Thread sonal.santan
From: Sonal Santan Signed-off-by: Sonal Santan --- drivers/gpu/drm/Kconfig | 2 + drivers/gpu/drm/Makefile | 1 + drivers/gpu/drm/xocl/Kconfig | 22 ++ drivers/gpu/drm/xocl/Makefile| 3 + drivers/gpu/drm/xocl/mgmtpf/Makefile | 29 ++

Re: [PATCH] gpu/drm: mediatek: call mtk_dsi_stop() after mtk_drm_crtc_atomic_disable()

2019-03-20 Thread Hsin-Yi Wang
On Wed, Mar 20, 2019 at 11:09 AM CK Hu wrote: > > Hi, Hsin-yi: > > On Mon, 2019-03-18 at 12:09 +0800, Hsin-Yi Wang wrote: > > mtk_dsi_stop() should be called after mtk_drm_crtc_atomic_disable(), which > > needs > > ovl irq for drm_crtc_wait_one_vblank(), since after mtk_dsi_stop() is > >

[PATCH] drm/amd/powerplay: Zero initialize num_of_levels in vega20_set_single_dpm_table

2019-03-20 Thread Nathan Chancellor
When building with -Wsometimes-uninitialized, Clang warns: drivers/gpu/drm/amd/amdgpu/../powerplay/vega20_ppt.c:456:2: warning: variable 'num_of_levels' is used uninitialized whenever '?:' condition is false [-Wsometimes-uninitialized] smu_read_smc_arg(smu, _of_levels);

[PATCH v2] gpu/drm: mediatek: call mtk_dsi_stop() after mtk_drm_crtc_atomic_disable()

2019-03-20 Thread Hsin-Yi Wang
mtk_dsi_stop() should be called after mtk_drm_crtc_atomic_disable(), which needs ovl irq for drm_crtc_wait_one_vblank(), since after mtk_dsi_stop() is called, ovl irq will be disabled. If drm_crtc_wait_one_vblank() is called after last irq, it will timeout with this message: "vblank wait timed out

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

2019-03-20 Thread Paul Kocialkowski
Hi, Le mardi 19 mars 2019 à 22:57 +0100, Maxime Ripard a écrit : > 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

Re: [PATCH 5/5] media: tvp5150: add support to limit tv norms on connector

2019-03-20 Thread Mauro Carvalho Chehab
Em Sat, 2 Feb 2019 13:10:04 +0100 Marco Felsch escreveu: > The tvp5150 accepts NTSC(M,J,4.43), PAL (B,D,G,H,I,M,N) and SECAM video > data and is able to auto-detect the input signal. Hmm... I'm afraid of this change. As far as I remember, I tested some weird format variants like

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

2019-03-20 Thread Paul Kocialkowski
Hi, Le mardi 19 mars 2019 à 22:57 +0100, Maxime Ripard a écrit : > 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

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

2019-03-20 Thread Ville Syrjälä
On Tue, Mar 19, 2019 at 07:29:18PM -0400, Nicolas Dufresne wrote: > Le mardi 19 mars 2019 à 22:57 +0100, Maxime Ripard a écrit : > > 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. > > > >

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

2019-03-20 Thread Paul Kocialkowski
Hi, Le mardi 19 mars 2019 à 22:57 +0100, Maxime Ripard a écrit : > 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 >

Re: [PATCH] driver : staging : ion: optimization for decreasing memory fragmentaion

2019-03-20 Thread Laura Abbott
On 3/20/19 7:23 AM, Vlastimil Babka wrote: You should have CC'd the ION maintainers/lists per ./scripts/get_maintainer.pl - CCing now. On 3/14/19 12:06 PM, Zhaoyang Huang wrote: From: Zhaoyang Huang Two action for this patch: 1. set a batch size for system heap's shrinker, which can have it

Re: [RFC][PATCH 0/5 v2] DMA-BUF Heaps (destaging ION)

2019-03-20 Thread Andrew F. Davis
On 3/20/19 4:16 AM, Benjamin Gaignard wrote: > Le mar. 19 mars 2019 à 23:36, John Stultz a écrit : >> >> On Tue, Mar 19, 2019 at 2:58 PM Rob Clark wrote: >>> >>> On Tue, Mar 19, 2019 at 1:00 PM Andrew F. Davis wrote: On 3/19/19 11:54 AM, Benjamin Gaignard wrote: > Le mer. 13 mars

[Bug 102646] Screen flickering under amdgpu-experimental [buggy auto power profile]

2019-03-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102646 George Scorer changed: What|Removed |Added Priority|low |high Severity|minor

Re: [PATCH 3/3] drm/vc4: Don't liberate the binner BO at runtime suspend

2019-03-20 Thread Paul Kocialkowski
Hi, Le samedi 16 mars 2019 à 11:58 -0700, Eric Anholt a écrit : > Paul Kocialkowski writes: > > > The binner BO is a pre-requisite to GPU operations, so we must ensure > > that it is always allocated when the GPU is in use. > > > > Because the buffer is allocated from the same pool as other

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

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

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

2019-03-20 Thread Paul Kocialkowski
Hi, On Tue, 2019-03-19 at 22:57 +0100, Maxime Ripard wrote: > 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

RE: [v5 02/13] drm: Parse HDR metadata info from EDID

2019-03-20 Thread Shankar, Uma
>-Original Message- >From: Sharma, Shashank >Sent: Friday, March 15, 2019 12:56 PM >To: Shankar, Uma ; intel-...@lists.freedesktop.org; dri- >de...@lists.freedesktop.org >Cc: Lankhorst, Maarten ; Syrjala, Ville >; emil.l.veli...@gmail.com; brian.star...@arm.com; >liviu.du...@arm.com

RE: [v5 03/13] drm: Parse Colorimetry data block from EDID

2019-03-20 Thread Shankar, Uma
>-Original Message- >From: Sharma, Shashank >Sent: Friday, March 15, 2019 1:01 PM >To: Shankar, Uma ; intel-...@lists.freedesktop.org; dri- >de...@lists.freedesktop.org >Cc: Lankhorst, Maarten ; Syrjala, Ville >; emil.l.veli...@gmail.com; brian.star...@arm.com; >liviu.du...@arm.com

[Bug 202043] amdgpu: Vega 56 SCLK drops to 700 Mhz when undervolting

2019-03-20 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=202043 --- Comment #5 from Ivan Avdeev (li...@w23.ru) --- Created attachment 281917 --> https://bugzilla.kernel.org/attachment.cgi?id=281917=edit Example of undervolting effect Example of what happens when undervolting is attempted. Notice how: -

Re: [v5 03/13] drm: Parse Colorimetry data block from EDID

2019-03-20 Thread Sharma, Shashank
On 3/20/2019 12:47 PM, Shankar, Uma wrote: -Original Message- From: Sharma, Shashank Sent: Friday, March 15, 2019 1:01 PM To: Shankar, Uma ; intel-...@lists.freedesktop.org; dri- de...@lists.freedesktop.org Cc: Lankhorst, Maarten ; Syrjala, Ville ; emil.l.veli...@gmail.com;

Re: [PATCH 1/4] drm/amd/display: Prevent vblank irq disable while VRR is active.

2019-03-20 Thread Mario Kleiner
On Mon, Mar 18, 2019 at 6:29 PM Kazlauskas, Nicholas wrote: > > On 3/18/19 1:19 PM, Mario Kleiner wrote: > > During VRR mode we can not allow vblank irq dis-/enable > > transitions, as an enable after a disable can happen at > > an arbitrary time during the video refresh cycle, e.g., > > with a

Re: Indirect call in vesafb driver

2019-03-20 Thread Gerd Hoffmann
On Tue, Mar 19, 2019 at 04:46:51PM +, Alan Cox wrote: > On Wed, 13 Mar 2019 17:54:18 +0300 > Alexander Pateenok wrote: > > > Hi, > > > > There're several indirect calls in inline assembly in vesafb driver > > (drivers/video/fbdev/vesafb.c), and these calls cannot be automatically > >

[PATCH] drm/virtio: make resource id workaround runtime switchable.

2019-03-20 Thread Gerd Hoffmann
Also update the comment with a reference to the virglrenderer fix. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/virtio/virtgpu_object.c | 44 ++--- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/drivers/gpu/drm/virtio/virtgpu_object.c

RE: [v5 06/13] drm: Enable HDR infoframe support

2019-03-20 Thread Shankar, Uma
>-Original Message- >From: Sharma, Shashank >Sent: Friday, March 15, 2019 1:54 PM >To: Shankar, Uma ; intel-...@lists.freedesktop.org; dri- >de...@lists.freedesktop.org >Cc: Lankhorst, Maarten ; Syrjala, Ville >; emil.l.veli...@gmail.com; brian.star...@arm.com; >liviu.du...@arm.com;

Re: Clang warning in drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c

2019-03-20 Thread Koenig, Christian
Am 20.03.19 um 05:34 schrieb Nathan Chancellor: > On Wed, Mar 20, 2019 at 01:31:27AM +, Pan, Xinhui wrote: >> these two enumerated types are same for now. both of them might change in >> the future. >> >> I have not used clang, but would .block_id = (int)head->block fix your >> warning? If

Re: [PATCH v2 1/2] video: lcd: Remove useless BACKLIGHT_LCD_SUPPORT kernel symbol

2019-03-20 Thread Lee Jones
> >> On 02/12/2019 09:42 AM, Lee Jones wrote: > >>> On Fri, 08 Feb 2019, Bartlomiej Zolnierkiewicz wrote: > >>> > > On 01/17/2019 05:19 PM, Daniel Thompson wrote: > > On Thu, Jan 17, 2019 at 04:33:35PM +0300, Alexander Shiyan wrote: > >> We have two *_CLASS_DEVICE kernel config

[Bug 110208] New GPU sysfs Power State Interface for custom pp_od_clk_voltage

2019-03-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110208 --- Comment #1 from famo --- Link to documentation: https://dri.freedesktop.org/docs/drm/gpu/amdgpu.html#power-dpm-force-performance-level Quote: pp_od_clk_voltage The amdgpu driver provides a sysfs API for adjusting the clocks and voltages

Re: [PATCH 8/9] drm/syncobj: add timeline signal ioctl for syncobj v3

2019-03-20 Thread Lionel Landwerlin
On 20/03/2019 03:53, zhoucm1 wrote: On 2019年03月19日 19:54, Lionel Landwerlin wrote: On 15/03/2019 12:09, Chunming Zhou wrote: v2: individually allocate chain array, since chain node is free independently. v3: all existing points must be already signaled before cpu perform signal operation,  

Re: [PATCH -next] drm/vboxvideo: Remove unused including

2019-03-20 Thread Hans de Goede
Hi, On 20-03-19 02:54, YueHaibing wrote: Remove including that don't need it. Signed-off-by: YueHaibing Thank you for the patch, it looks good to me: Reviewed-by: Hans de Goede I will pick this up and push it to drm-misc-next Regards, Hans --- drivers/gpu/drm/vboxvideo/vbox_drv.h

[RFC v2 09/11] drm/msm/dpu: Use OPP API to set clk/perf state

2019-03-20 Thread Rajendra Nayak
On some qualcomm platforms DPU needs to express a perforamnce state requirement on a power domain depennding on the clock rates. Use OPP table from DT to register with OPP framework and use dev_pm_opp_set_rate() to set the clk/perf state. Signed-off-by: Rajendra Nayak ---

[RFC v2 11/11] arm64: dts: sdm845: Add DSI and MDP OPP tables and power-domains

2019-03-20 Thread Rajendra Nayak
Add the OPP tables for DSI and MDP based on the perf state/clk requirements, and add the power-domains property to specify the scalable power domain. Signed-off-by: Rajendra Nayak --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 59 1 file changed, 59 insertions(+) diff

RE: [v5 03/13] drm: Parse Colorimetry data block from EDID

2019-03-20 Thread Shankar, Uma
>On 3/20/2019 12:47 PM, Shankar, Uma wrote: >> >>> -Original Message- >>> From: Sharma, Shashank >>> Sent: Friday, March 15, 2019 1:01 PM >>> To: Shankar, Uma ; >>> intel-...@lists.freedesktop.org; dri- de...@lists.freedesktop.org >>> Cc: Lankhorst, Maarten ; Syrjala, Ville >>> ;

[RFC v2 04/11] spi: spi-geni-qcom: Use OPP API to set clk/perf state

2019-03-20 Thread Rajendra Nayak
geni spi needs to express a perforamnce state requirement on CX depending on the frequency of the clock rates. Use OPP table from DT to register with OPP framework and use dev_pm_opp_set_rate() to set the clk/perf state. Signed-off-by: Rajendra Nayak Signed-off-by: Stephen Boyd ---

[RFC v2 06/11] scsi: ufs: Add support to manage multiple power domains in ufshcd-pltfrm

2019-03-20 Thread Rajendra Nayak
Some UFS devices need to manage multiple powerdomains. Add support for it as part of the ufshcd-pltfrm driver. Signed-off-by: Rajendra Nayak --- drivers/scsi/ufs/ufshcd-pltfrm.c | 52 +++- drivers/scsi/ufs/ufshcd.h| 3 ++ 2 files changed, 54 insertions(+), 1

[RFC v2 05/11] arm64: dts: sdm845: Add OPP table for all qup devices

2019-03-20 Thread Rajendra Nayak
qup has a requirement to vote on the performance state of the CX domain in sdm845 devices. Add OPP tables for these and also add power-domains property for all qup instances. Signed-off-by: Rajendra Nayak Signed-off-by: Stephen Boyd --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 115

[RFC v2 10/11] drm/msm: dsi: Use OPP API to set clk/perf state

2019-03-20 Thread Rajendra Nayak
On SDM845 DSI needs to express a perforamnce state requirement on a power domain depending on the clock rates. Use OPP table from DT to register with OPP framework and use dev_pm_opp_set_rate() to set the clk/perf state. Signed-off-by: Rajendra Nayak --- drivers/gpu/drm/msm/dsi/dsi.h | 2

[RFC v2 07/11] scsi: ufs: Add support for specifying OPP tables in DT

2019-03-20 Thread Rajendra Nayak
Some platforms like qualcomms sdm845 SoC have a need to set a performance state of a power domain for UFS along with setting the clock rate. Add support for passing this freq/perf state tuple from DT as an OPP table. Modify the driver to read the OPP table and register with OPP layer.

[RFC v2 08/11] arm64: dts: sdm845: Add ufs opps and power-domains

2019-03-20 Thread Rajendra Nayak
Add the additional power domain and the OPP table for ufs on sdm845 so the driver can set the appropriate performance state of the power domain while setting the clock rate. Signed-off-by: Rajendra Nayak --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 20 +++- 1 file changed, 19

[RFC v2 03/11] tty: serial: qcom_geni_serial: Use OPP API to set clk/perf state

2019-03-20 Thread Rajendra Nayak
geni serial needs to express a perforamnce state requirement on CX depending on the frequency of the clock rates. Use OPP table from DT to register with OPP framework and use dev_pm_opp_set_rate() to set the clk/perf state. Signed-off-by: Rajendra Nayak Signed-off-by: Stephen Boyd ---

[RFC v2 02/11] OPP: Make dev_pm_opp_set_rate() with freq=0 as valid

2019-03-20 Thread Rajendra Nayak
For devices with performance state, we use dev_pm_opp_set_rate() to set the appropriate clk rate and the performance state. We do need a way to *remove* the performance state vote when we idle the device and turn the clocks off. Use dev_pm_opp_set_rate() with freq=0 to achieve this.

[RFC v2 00/11] DVFS in the OPP core

2019-03-20 Thread Rajendra Nayak
This is a v2 of the RFC posted earlier by Stephen Boyd [1] As part of v2 I still follow the same approach of dev_pm_opp_set_rate() API using clk framework to round the frequency passed and making it accept 0 as a valid frequency indicating the frequency isn't required anymore. It just has a few

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

2019-03-20 Thread Rajendra Nayak
From: Stephen Boyd Doing this allows us to call this API with any rate requested and have it not need to match in the OPP table. Instead, we'll round the rate up to the nearest OPP that we see so that we can get the voltage or level that's required for that OPP. This supports users of OPP that

Re: [PATCH] drm/fourcc: Fix conflicting Y41x definitions

2019-03-20 Thread Maarten Lankhorst
Op 19-03-2019 om 17:18 schreef Ville Syrjälä: > On Tue, Mar 19, 2019 at 05:06:36PM +0100, Maarten Lankhorst wrote: >> Op 19-03-2019 om 14:02 schreef Ville Syrjälä: >>> On Tue, Mar 19, 2019 at 01:17:02PM +0100, Maarten Lankhorst wrote: There has unfortunately been a conflict with the following

  1   2   >