Re: [PATCH] drm/tegra: Fix ordering of cleanup code

2019-09-29 Thread Dmitry Osipenko
25.09.2019 14:26, Thierry Reding пишет: > From: Thierry Reding > > Commit Fixes: b9f8b09ce256 ("drm/tegra: Setup shared IOMMU domain after > initialization") changed the initialization order of the IOMMU related > bits but didn't update the cleanup path accordingly. This asymmetry can > cause fai

Re: [RESEND][PATCH v8 1/5] dma-buf: Add dma-buf heaps framework

2019-09-29 Thread Hillf Danton
On Fri, 6 Sep 2019 18:47:08 + John Stultz wrote: > +/** > + * dma_heap_get_data() - get per-heap driver data > + * @heap: DMA-Heap to retrieve private data for > + * > + * Returns: > + * The per-heap data for the heap. > + */ > +void *dma_heap_get_data(struct dma_heap *heap); > + It will hel

[Bug 111858] [ICL] IGT tests kms_ccs and kms_frontbuffer_tracking fail on latest drm-tip kernel

2019-09-29 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111858 HeYue changed: What|Removed |Added i915 platform||ICL CC|

[Bug 111858] [ICL] IGT tests kms_ccs and kms_frontbuffer_tracking fail on latest drm-tip kernel

2019-09-29 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111858 --- Comment #1 from HeYue --- Created attachment 145586 --> https://bugs.freedesktop.org/attachment.cgi?id=145586&action=edit kms_ccs -- You are receiving this mail because: You are the assignee for the bug.__

[Bug 111803] Annoying GPU stucks are continued on Vega 20 with Kernel 5.4 + mesa 9.3.0 + llvm 9.0.0 [drm:amdgpu_dm_atomic_commit_tail [amdgpu]] *ERROR* Waiting for fences timed out!

2019-09-29 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111803 --- Comment #23 from mikhail.v.gavri...@gmail.com --- Created attachment 145588 --> https://bugs.freedesktop.org/attachment.cgi?id=145588&action=edit dmesg -- You are receiving this mail because: You are the assignee for the bug._

[Bug 111858] [ICL] IGT tests kms_ccs and kms_frontbuffer_tracking fail on latest drm-tip kernel

2019-09-29 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111858 --- Comment #2 from HeYue --- Created attachment 145587 --> https://bugs.freedesktop.org/attachment.cgi?id=145587&action=edit gem_basic -- You are receiving this mail because: You are the assignee for the bug.

[Bug 111858] [ICL] IGT tests kms_ccs and kms_frontbuffer_tracking fail on latest drm-tip kernel

2019-09-29 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111858 --- Comment #3 from HeYue --- ICL D0 is Gen 11. -- You are receiving this mail because: You are the assignee for the bug.___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freed

[Bug 111803] Annoying GPU stucks are continued on Vega 20 with Kernel 5.4 + mesa 9.3.0 + llvm 9.0.0 [drm:amdgpu_dm_atomic_commit_tail [amdgpu]] *ERROR* Waiting for fences timed out!

2019-09-29 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111803 --- Comment #25 from Zheng Luo --- Created attachment 145589 --> https://bugs.freedesktop.org/attachment.cgi?id=145589&action=edit dmesg of AMD 2500U w/ Vega 8 -- You are receiving this mail because: You are the assignee for the bug.

[Bug 111803] Annoying GPU stucks are continued on Vega 20 with Kernel 5.4 + mesa 9.3.0 + llvm 9.0.0 [drm:amdgpu_dm_atomic_commit_tail [amdgpu]] *ERROR* Waiting for fences timed out!

2019-09-29 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111803 Zheng Luo changed: What|Removed |Added CC||viclu...@gmail.com --- Comment #24 from Zhe

[PATCH V6 8/8] backlight: qcom-wled: Add auto string detection logic

2019-09-29 Thread Kiran Gunda
The auto string detection algorithm checks if the current WLED sink configuration is valid. It tries enabling every sink and checks if the OVP fault is observed. Based on this information it detects and enables the valid sink configuration. Auto calibration will be triggered when the OVP fault inte

[PATCH V6 5/8] backlight: qcom-wled: Restructure the driver for WLED3

2019-09-29 Thread Kiran Gunda
Restructure the driver to add the support for new WLED peripherals. Signed-off-by: Kiran Gunda Acked-by: Daniel Thompson --- drivers/video/backlight/qcom-wled.c | 395 ++-- 1 file changed, 245 insertions(+), 150 deletions(-) diff --git a/drivers/video/backlight/

[PATCH V6 6/8] backlight: qcom-wled: Add support for WLED4 peripheral

2019-09-29 Thread Kiran Gunda
WLED4 peripheral is present on some PMICs like pmi8998 and pm660l. It has a different register map and configurations are also different. Add support for it. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson --- drivers/video/backlight/qcom-wled.c | 263 +++

[PATCH V6 7/8] backlight: qcom-wled: add support for short circuit handling.

2019-09-29 Thread Kiran Gunda
Handle the short circuit interrupt and check if the short circuit interrupt is valid. Re-enable the module to check if it goes away. Disable the module altogether if the short circuit event persists. Change-Id: Ia3f5272e1a50927467611bef4a0d2218dbeb95e6 Signed-off-by: Kiran Gunda Reviewed-by: Bjor

[PATCH V6 3/8] backlight: qcom-wled: Add new properties for PMI8998

2019-09-29 Thread Kiran Gunda
Update the bindings with the new properties used for PMI8998. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson Reviewed-by: Rob Herring Acked-by: Daniel Thompson --- .../bindings/leds/backlight/qcom-wled.txt | 76 ++ 1 file changed, 62 insertions(+), 14 del

[PATCH V6 4/8] backlight: qcom-wled: Rename PM8941* to WLED3

2019-09-29 Thread Kiran Gunda
Rename the PM8941* references as WLED3 to make the driver generic and have WLED support for other PMICs. Also rename "i_boost_limit" and "i_limit" variables to "boost_i_limit" and "string_i_limit" respectively to resemble the corresponding register names. Signed-off-by: Kiran Gunda Reviewed-by: D

[PATCH V6 2/8] backlight: qcom-wled: restructure the qcom-wled bindings

2019-09-29 Thread Kiran Gunda
Restructure the qcom-wled bindings for the better readability. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson Reviewed-by: Rob Herring Acked-by: Daniel Thompson Acked-by: Pavel Machek --- .../bindings/leds/backlight/qcom-wled.txt | 110 - 1 file changed,

[PATCH V6 1/8] backlight: qcom-wled: Rename pm8941-wled.c to qcom-wled.c

2019-09-29 Thread Kiran Gunda
pm8941-wled.c driver is supporting the WLED peripheral on pm8941. Rename it to qcom-wled.c so that it can support WLED on multiple PMICs. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson Acked-by: Rob Herring Acked-by: Daniel Thompson Acked-by: Pavel Machek --- .../bindings/leds/backl

[PATCH V6 0/8] backlight: qcom-wled: Support for QCOM wled driver

2019-09-29 Thread Kiran Gunda
This patch series renames the pm8941-wled.c driver to qcom-wled.c to add the support for multiple PMICs supported by qualcomm. This patch series supports both PM8941 and PMI8998 WLED. The PMI8998 WLED has the support to handle the OVP (over voltage protection) and the SC (short circuit protection)

Re: [PATCH 2/2] drm/ttm: stop exporting ttm_mem_io_* functions

2019-09-29 Thread Gerd Hoffmann
On Fri, Sep 27, 2019 at 03:24:58PM +0200, Christian König wrote: > Those are not supposed to be used by drivers. > > Signed-off-by: Christian König Acked-by: Gerd Hoffmann ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freed

Re: [PATCH 1/2] drm/qxl: stop abusing TTM to call driver internal functions

2019-09-29 Thread Gerd Hoffmann
On Fri, Sep 27, 2019 at 03:24:57PM +0200, Christian König wrote: > The ttm_mem_io_* functions are actually internal to TTM and shouldn't be > used in a driver. > > Instead call the qxl_ttm_io_mem_reserve() function directly. Reviewed-by: Gerd Hoffmann ___

[PATCH 1/3] drm/komeda: Add drm_lut_to_fgamma_coeffs()

2019-09-29 Thread james qian wang (Arm Technology China)
This function is used to convert drm 3dlut to komeda HW required 1d curve coeffs values. Signed-off-by: james qian wang (Arm Technology China) --- .../arm/display/komeda/komeda_color_mgmt.c| 52 +++ .../arm/display/komeda/komeda_color_mgmt.h| 9 +++- 2 files changed, 60

[PATCH 2/3] drm/komeda: Add drm_ctm_to_coeffs()

2019-09-29 Thread james qian wang (Arm Technology China)
This function is used to convert drm_color_ctm S31.32 sign-magnitude value to komeda required Q2.12 2's complement Signed-off-by: james qian wang (Arm Technology China) --- .../arm/display/komeda/komeda_color_mgmt.c| 27 +++ .../arm/display/komeda/komeda_color_mgmt.h| 1

[PATCH 3/3] drm/komeda: Adds gamma and color-transform support for DOU-IPS

2019-09-29 Thread james qian wang (Arm Technology China)
From: "Lowry Li (Arm Technology China)" Adds gamma and color-transform support for DOU-IPS. Adds two caps members fgamma_coeffs and ctm_coeffs to komeda_improc_state. If color management changed, set gamma and color-transform accordingly. Signed-off-by: Lowry Li (Arm Technology China) --- .../

[PATCH 0/3] drm/komeda: Enable CRTC color-mgmt

2019-09-29 Thread james qian wang (Arm Technology China)
This series enable CRTC color-mgmt for komeda driver, for current komeda HW which only supports color conversion and forward gamma for CRTC. This series actually are regrouped from: - drm/komeda: Enable layer/plane color-mgmt: https://patchwork.freedesktop.org/series/60893/ - drm/komeda: Enable

[PATCH] drm/bridge: sii902x: Variable status in sii902x_connector_detect() could be uninitialized if regmap_read() fails

2019-09-29 Thread Yizhuo
In function sii902x_connector_detect(), variable "status" could be initialized if regmap_read() fails. However, "status" is used to decide the return value, which is potentially unsafe. Signed-off-by: Yizhuo --- drivers/gpu/drm/bridge/sii902x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(

[PATCH] Staging: fbtft: fix memory leak in fbtft_framebuffer_alloc

2019-09-29 Thread Navid Emamdoost
In fbtft_framebuffer_alloc the error handling path should take care of releasing frame buffer after it is allocated via framebuffer_alloc, too. Therefore, in two failure cases the goto destination is changed to address this issue. Fixes: c296d5f9957c ("staging: fbtft: core support") Signed-off-by:

[Bug 204181] NULL pointer dereference regression in amdgpu

2019-09-29 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204181 --- Comment #61 from jamespharve...@gmail.com --- It might look like I'm just ranting. That's not the reason I posted my comment. I'm trying to give feedback to AMD about how bad so many customer experiences are right now, and have been for quit

[Bug 204181] NULL pointer dereference regression in amdgpu

2019-09-29 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204181 --- Comment #60 from jamespharve...@gmail.com --- (In reply to Sergey Kondakov from comment #59) > > And how about instead of knowingly pushing untested code with known fatal > errors you stop taking QA notes from FGLRX in the first place and do

[Bug 204181] NULL pointer dereference regression in amdgpu

2019-09-29 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204181 --- Comment #59 from Sergey Kondakov (virtuous...@gmail.com) --- (In reply to Andrey Grodzovsky from comment #57) > Sergey, instead of throwing tantrums why can't you just do what you are > asked ? You present an extremely convoluted set of driver

Re: X11 + console switch - how does it actually work ?

2019-09-29 Thread Dave Airlie
> Hello folks, > > > could anybody please give me some more insight, how switching > from X to console (ctrl+alt+f*) actually works ? > > Who catches the keypress event and initiates the VT switch ? > The Xserver ? Could this be done in the kernel (eg. when Xserver > is hanging) ? The X server is

Re: [PATCH] ion_system_heap: support X86 archtecture

2019-09-29 Thread Laura Abbott
On 9/29/19 3:28 AM, jun.zh...@intel.com wrote: From: zhang jun we see tons of warning like: [ 45.846872] x86/PAT: NDK MediaCodec_:3753 map pfn RAM range req write-combining for [mem 0x1e7a8-0x1e7a87fff], got write-back [ 45.848827] x86/PAT: .vorbis.decoder:4088 map pfn RAM range req wri

Re: [v4] drm: two planes with the same zpos have undefined ordering

2019-09-29 Thread Simon Ser
Hi, > On Mon, Sep 23, 2019 at 12:39:20PM +, Simon Ser wrote: > > Currently the property docs don't specify whether it's okay for two planes > > to > > have the same zpos value and what user-space should expect in this case. > > > > The rule mentionned in the past was to disambiguate with obje

Re: [PATCH v2] drm/amdgpu: fix multiple memory leaks

2019-09-29 Thread Markus Elfring
> v2: moved the released into goto error handlings A better version comment should be moved below the triple dashes. Will the tag “Fixes” be added? > @@ -393,6 +395,16 @@ static int acp_hw_init(void *handle) > val &= ~ACP_SOFT_RESET__SoftResetAud_MASK; > cgs_write_register(adev->ac

RE: [PATCH V2 6/8] mdev: introduce virtio device and its device ops

2019-09-29 Thread Parav Pandit
Hi Alex, > -Original Message- > From: Alex Williamson > Sent: Tuesday, September 24, 2019 6:07 PM > To: Jason Wang > Cc: k...@vger.kernel.org; linux-s...@vger.kernel.org; linux- > ker...@vger.kernel.org; dri-devel@lists.freedesktop.org; intel- > g...@lists.freedesktop.org; intel-gvt-...

[PATCH V2] drm/amdgpu: remove set but not used variable 'pipe'

2019-09-29 Thread yu kuai
Fixes gcc '-Wunused-but-set-variable' warning: rivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c: In function ‘amdgpu_gfx_graphics_queue_acquire’: drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c:234:16: warning: variable ‘pipe’ set but not used [-Wunused-but-set-variable] It is never used, so can be removed. Repor

[PATCH] gpu: drm: amd: amdgpu: Remove call to memset after dma_alloc_coherent

2019-09-29 Thread Saurav Girepunje
dma_alloc_coherent has already zeroed the memory. So memset is not needed. Signed-off-by: Saurav Girepunje --- drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c index 6d8f0551

X11 + console switch - how does it actually work ?

2019-09-29 Thread Enrico Weigelt, metux IT consult
Hello folks, could anybody please give me some more insight, how switching from X to console (ctrl+alt+f*) actually works ? Who catches the keypress event and initiates the VT switch ? The Xserver ? Could this be done in the kernel (eg. when Xserver is hanging) ? --mtx -- Enrico Weigelt, met

[Bug 110674] Crashes / Resets From AMDGPU / Radeon VII

2019-09-29 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110674 --- Comment #151 from line...@xcpp.org --- Created attachment 145583 --> https://bugs.freedesktop.org/attachment.cgi?id=145583&action=edit 5.3.1 patched, xorg crash And here is a dmesg of just an X session crashing -- You are receiving this

[Bug 110674] Crashes / Resets From AMDGPU / Radeon VII

2019-09-29 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110674 line...@xcpp.org changed: What|Removed |Added Attachment #145581|0 |1 is obsolete|

[Bug 110674] Crashes / Resets From AMDGPU / Radeon VII

2019-09-29 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110674 line...@xcpp.org changed: What|Removed |Added CC||line...@xcpp.org --- Comment #149 fro

[Bug 111747] [CI][DRMTIP] igt@ - incomplete - Jenkins gives up

2019-09-29 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111747 --- Comment #13 from CI Bug Log --- A CI Bug Log filter associated to this bug has been updated: {- TGL: igt@* -incomplete - Abort requested by .* terminating children -} {+ TGL: igt@* -incomplete - Abort requested by .* terminating children +}

[Bug 204181] NULL pointer dereference regression in amdgpu

2019-09-29 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204181 Damian Nowak (s...@nowaker.net) changed: What|Removed |Added CC||s...@nowaker.net --- Co

[Bug 111747] [CI][DRMTIP] igt@ - incomplete - Jenkins gives up

2019-09-29 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111747 --- Comment #12 from CI Bug Log --- A CI Bug Log filter associated to this bug has been updated: {- TGL: igt@* -incomplete - Abort requested by .* terminating children -} {+ TGL: igt@* -incomplete - Abort requested by .* terminating children +}

Re: imx6: hdmi black screen issue after resume

2019-09-29 Thread Pintu Agarwal
> > On Mon, Sep 23, 2019 at 1:28 PM Pintu Agarwal wrote: > > > > Dear Philipp, > > > > I have a iMX6dl custom board with custom Linux Kernel 4.8. > > I have both LCD and HDMI connected to the board. > > And we are using weston/wayland as the display interface. > > In normal boot, both LCD and HDMI

kernel warning related to i915 code

2019-09-29 Thread Norbert Preining
Dear all, (please Cc) linux 5.3.1 Debian/sid Lenovo X260 [2.472152] i915 :00:02.0: vgaarb: deactivate vga console [2.473035] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [2.473037] [drm] Driver supports precise vblank timestamp query. [2.473431] i915 :00:02.

Re: [PATCH] ion_system_heap: support X86 archtecture

2019-09-29 Thread Greg KH
On Sun, Sep 29, 2019 at 03:28:41PM +0800, jun.zh...@intel.com wrote: > From: zhang jun > > we see tons of warning like: > [ 45.846872] x86/PAT: NDK MediaCodec_:3753 map pfn RAM range req > write-combining for [mem 0x1e7a8-0x1e7a87fff], got write-back > [ 45.848827] x86/PAT: .vorbis.decode

[PATCH] ion_system_heap: support X86 archtecture

2019-09-29 Thread jun . zhang
From: zhang jun we see tons of warning like: [ 45.846872] x86/PAT: NDK MediaCodec_:3753 map pfn RAM range req write-combining for [mem 0x1e7a8-0x1e7a87fff], got write-back [ 45.848827] x86/PAT: .vorbis.decoder:4088 map pfn RAM range req write-combining for [mem 0x1e7a58000-0x1e7a58fff], g

[PATCH v4 10/11] drm/amdgpu: job is secure iff CS is secure (v5)

2019-09-29 Thread Huang, Ray
Mark a job as secure, if and only if the command submission flag has the secure flag set. v2: fix the null job pointer while in vmid 0 submission. v3: Context --> Command submission. v4: filling cs parser with cs->in.flags v5: move the job secure flag setting out of amdgpu_cs_submit() Signed-off-