[PATCH V9 2/6] backlight: qcom-wled: Rename PM8941* to WLED3

2019-10-23 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 V9 1/6] backlight: qcom-wled: Add new properties for PMI8998.

2019-10-23 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 | 74 ++ 1 file changed, 63 insertions(+), 11 del

[PATCH V9 3/6] backlight: qcom-wled: Restructure the driver for WLED3.

2019-10-23 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 | 373 ++-- 1 file changed, 234 insertions(+), 139 deletions(-) diff --git a/drivers/video/backlight/

[PATCH V9 5/6] backlight: qcom-wled: add support for short circuit handling.

2019-10-23 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. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson Reviewed-by: Daniel Thompson --- drive

[PATCH V9 0/6] backlight: qcom-wled: Support for QCOM wled driver

2019-10-23 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)

[PATCH V9 4/6] backlight: qcom-wled: Add support for WLED4 peripheral.

2019-10-23 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 Reviewed-by: Daniel Thompson --- drivers/video/backlight/qcom-wled.c | 255 +

[Bug 111763] ring_gfx hangs/freezes on Navi gpus

2019-10-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111763 sambolinux changed: What|Removed |Added Priority|not set |medium -- You are receiving this mail bec

Re: [PATCH 4/5] drm/dsi: rename MIPI_DCS_SET_PARTIAL_AREA to MIPI_DCS_SET_PARTIAL_ROWS

2019-10-23 Thread Jani Nikula
On Tue, 22 Oct 2019, David Lechner wrote: > On 10/22/19 5:09 AM, Jani Nikula wrote: >> The DCS command has been named SET_PARTIAL_ROWS in the DCS spec since >> v1.02, for more than a decade. Rename the enumeration to match the spec. >> >> Cc: David Lechner >> Cc: Vandita Kulkarni >> Signed-off-

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

2019-10-23 Thread Neil Armstrong
On 22/10/2019 17:56, John Stultz wrote: > On Tue, Oct 22, 2019 at 1:21 AM Neil Armstrong > wrote: >> >> Hi John, >> >> On 21/10/2019 21:03, John Stultz wrote: >>> Lucky number 13! :) >>> >>> Last week in v12 I had re-added some symbol exports to support >>> later patches I have pending to enable

Re: [PATCH 1/3] drm: Introduce scaling filter mode property

2019-10-23 Thread Pekka Paalanen
On Tue, 22 Oct 2019 20:48:02 +0530 "Sharma, Shashank" wrote: > Hello Ville, > > Thanks for the comments, mine inline. > > > On 10/22/2019 5:50 PM, Ville Syrjälä wrote: > > On Tue, Oct 22, 2019 at 03:29:44PM +0530, Shashank Sharma wrote: > >> This patch adds a scaling filter mode porperty > >

Re: [PATCH v2 1/3] dt-bindings: power: Convert Generic Power Domain bindings to json-schema

2019-10-23 Thread Krzysztof Kozlowski
On Fri, Oct 11, 2019 at 10:03:39AM -0500, Rob Herring wrote: > On Wed, Oct 02, 2019 at 06:06:30PM +0200, Krzysztof Kozlowski wrote: > > Convert Generic Power Domain bindings to DT schema format using > > json-schema. The consumer bindings are split to separate file. > > > > Signed-off-by: Krzyszt

Re: UDL device cannot get its own screen

2019-10-23 Thread Pekka Paalanen
On Tue, 22 Oct 2019 17:50:21 +0200 Böszörményi Zoltán wrote: > Hi, > > I have the below configuration for an Intel based POS system that, > while advertises 3 outputs (DP1, VGA1 and HDMI1 with xf86-video-intel), > only two are usable. DP1 for the built-in touchscreen and VGA1 for > the external

[PATCH v7 3/9] backlight: gpio: explicitly set the direction of the GPIO

2019-10-23 Thread Bartosz Golaszewski
From: Bartosz Golaszewski The GPIO backlight driver currently requests the line 'as is', without acively setting its direction. This can lead to problems: if the line is in input mode by default, we won't be able to drive it later when updating the status and also reading its initial value doesn'

Re: [PATCH] drm/v3d: Fix memory leak in v3d_submit_cl_ioctl

2019-10-23 Thread Markus Elfring
> … >> +++ b/drivers/gpu/drm/v3d/v3d_gem.c >> @@ -557,13 +557,16 @@ v3d_submit_cl_ioctl(struct drm_device *dev, void *data, > … >> if (ret) { >> v3d_job_put(&render->base); >> +kfree(bin); > … > > Can it be helpful to move the added function cal

[PATCH 3/6] ASoC: dt-bindings: mt8183: add a property "mediatek, hdmi-codec"

2019-10-23 Thread Tzung-Bi Shih
Add an optional property "mediatek,hdmi-codec". Signed-off-by: Tzung-Bi Shih --- .../bindings/sound/mt8183-mt6358-ts3a227-max98357.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/mt8183-mt6358-ts3a227-max98357.txt b/Documentation/devi

[PATCH 5/6] drm: bridge: it6505: report connector status

2019-10-23 Thread Tzung-Bi Shih
When a connector connected or disconnected, report the jack status. Signed-off-by: Tzung-Bi Shih --- drivers/gpu/drm/bridge/ite-it6505.c | 39 +++-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/bridge/ite-it6505.c b/drivers/gpu/drm/bridg

Re: [PATCH hmm 00/15] Consolidate the mmu notifier interval_tree and locking

2019-10-23 Thread Jason Gunthorpe
On Tue, Oct 22, 2019 at 07:56:12AM -0400, Dennis Dalessandro wrote: > On 10/21/2019 12:58 PM, Jason Gunthorpe wrote: > > On Mon, Oct 21, 2019 at 11:55:51AM -0400, Dennis Dalessandro wrote: > > > On 10/15/2019 2:12 PM, Jason Gunthorpe wrote: > > > > This is still being tested, but I figured to send

[PATCH v7 2/9] backlight: gpio: remove stray newline

2019-10-23 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Remove a double newline from the driver. Signed-off-by: Bartosz Golaszewski Reviewed-by: Andy Shevchenko Reviewed-by: Daniel Thompson --- drivers/video/backlight/gpio_backlight.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/video/backlight/gpio_backlig

[PATCH v2] drm/bridge: ti-sn65dsi86: Decouple DP output lanes from DSI input lanes

2019-10-23 Thread Jeffrey Hugo
Based on work by Bjorn Andersson The bridge can be configured to use 1, 2, or 4 DP lanes. This configuration is independent of the input DSI lanes. Right now, the driver assumes that there is 1:1 mapping of input lanes to output lanes which is not correct and does not work for manu devices such

[PATCH v7 7/9] backlight: gpio: remove unused fields from platform data

2019-10-23 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Remove the platform data fields that nobody uses. Signed-off-by: Bartosz Golaszewski Reviewed-by: Andy Shevchenko Reviewed-by: Linus Walleij Reviewed-by: Daniel Thompson --- include/linux/platform_data/gpio_backlight.h | 3 --- 1 file changed, 3 deletions(-) diff

[PATCH V9 6/6] backlight: qcom-wled: Add auto string detection logic

2019-10-23 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 4/6] ASoC: mediatek: mt8183: use hdmi-codec

2019-10-23 Thread Tzung-Bi Shih
Add DAI link to use hdmi-codec. Signed-off-by: Tzung-Bi Shih --- .../mt8183/mt8183-mt6358-ts3a227-max98357.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c b/sound/soc/mediatek/mt8183/mt8183-m

[PATCH v7 9/9] backlight: gpio: pull gpio_backlight_initial_power_state() into probe

2019-10-23 Thread Bartosz Golaszewski
From: Bartosz Golaszewski The probe function in the gpio-backlight driver is quite short. If we pull gpio_backlight_initial_power_state() into probe we can drop two more fields from struct gpio_backlight and shrink the driver code. Signed-off-by: Bartosz Golaszewski Acked-by: Daniel Thompson -

Re: New sysfs interface for privacy screens

2019-10-23 Thread Rajat Jain
Hi Folks, On Mon, Oct 7, 2019 at 11:13 PM Jani Nikula wrote: > On Mon, 07 Oct 2019, Mat King wrote: > > That makes sense; just to confirm can a property be added or removed > > after the connector is registered? > > You need to create the property before registering the drm device. You > can at

[PATCH -next] drm/amdgpu: remove set but not used variable 'adev'

2019-10-23 Thread YueHaibing
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:1221:24: warning: variable adev set but not used [-Wunused-but-set-variable] drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:488:24: warning: variable adev set but not used [-Wunused-but-set-variable] drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:547:24: warning: variabl

dri-devel@lists.freedesktop.org

2019-10-23 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Instead of dereferencing pdev each time, use a helper variable for the associated device pointer. Signed-off-by: Bartosz Golaszewski Reviewed-by: Linus Walleij Reviewed-by: Daniel Thompson Reviewed-by: Andy Shevchenko --- drivers/video/backlight/gpio_backlight.c |

[PATCH] drm/gpu: Add comment for memory barrier

2019-10-23 Thread Bhanusree
-Add comment for memory barrier -Issue found using checkpatch.pl Signed-off-by: Bhanusree --- drivers/gpu/drm/drm_cache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_cache.c b/drivers/gpu/drm/drm_cache.c index 3bd76e9..39910f2 100644 --- a/drivers/

[PATCH] Cleanup: replace prefered with preferred

2019-10-23 Thread Mark Salyzyn
Replace all occurrences of prefered with preferred to make future checkpatch.pl's happy. A few places the incorrect spelling is matched with the correct spelling to preserve existing user space API. Signed-off-by: Mark Salyzyn --- Documentation/networking/ip-sysctl.txt| 2 +- .../firm

Re: [PATCH hmm 00/15] Consolidate the mmu notifier interval_tree and locking

2019-10-23 Thread Jason Gunthorpe
On Tue, Oct 22, 2019 at 09:57:35AM +0200, Daniel Vetter wrote: > > The unusual bit in all of this is using a lock's critical region to > > 'protect' data for read, but updating that same data before the lock's > > critical secion. ie relying on the unlock barrier to 'release' program > > ordered s

[PATCH 1/6] ASoC: hdmi-codec: add PCM trigger operator

2019-10-23 Thread Tzung-Bi Shih
HDMI codec may be also interested in PCM triggers. Add PCM trigger operator. Signed-off-by: Tzung-Bi Shih --- include/sound/hdmi-codec.h| 13 + sound/soc/codecs/hdmi-codec.c | 31 +++ 2 files changed, 44 insertions(+) diff --git a/include/sound/hdmi-

[PATCH 2/6] drm: bridge: it6505: bridge to hdmi-codec

2019-10-23 Thread Tzung-Bi Shih
From: Allen Chen Bridge to hdmi-codec to support audio feature. It is observed that some DP-to-HDMI dongles will get into bad states if sending InfoFrame without audio data. Defer to enable it6505's audio feature when PCM triggers START or RESUME. Signed-off-by: Allen Chen Signed-off-by: Tzun

Re: [PATCH 1/7] dt-bindings: gpu: pvrsgx: add initial bindings

2019-10-23 Thread H. Nikolaus Schaller
> Am 22.10.2019 um 17:36 schrieb Tony Lindgren : > > * H. Nikolaus Schaller [191022 15:12]: >> Hm. How should that work? Some SoC have the sgx544 as single >> core and others as dual core. This imho does not fit into >> the "img,sgx544-$revision" scheme which could be matched to. > > Well don't

[PATCH 6/6] ASoC: mediatek: mt8183: support HDMI jack reporting

2019-10-23 Thread Tzung-Bi Shih
Support HDMI jack reporting. Signed-off-by: Tzung-Bi Shih --- sound/soc/mediatek/Kconfig| 3 ++- .../mt8183/mt8183-mt6358-ts3a227-max98357.c | 20 ++- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/sound/soc/mediatek/Kconfig b/sound/soc/med

[PATCH 0/6] ASoC: mediatek: mt8183: support DP audio

2019-10-23 Thread Tzung-Bi Shih
(This series depends on https://lore.kernel.org/patchwork/patch/1126819/ which has not applied to the maintainer's tree yet.) This series makes mt8183-mt6358-ts3a227-max98357 support DP (display port) audio output. ASoC: hdmi-codec: add PCM trigger operator - add a PCM trigger callback if codec

Re: [PATCH] drm/gpu: Add comment for memory barrier

2019-10-23 Thread Daniel Vetter
On Wed, Oct 23, 2019 at 7:00 AM Bhanusree wrote: > > -Add comment for memory barrier > -Issue found using checkpatch.pl > > Signed-off-by: Bhanusree > --- > drivers/gpu/drm/drm_cache.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/drm_cache.c b/driv

Re: New sysfs interface for privacy screens

2019-10-23 Thread Daniel Vetter
On Tue, Oct 08, 2019 at 09:13:51AM +0300, Jani Nikula wrote: > On Mon, 07 Oct 2019, Mat King wrote: > > That makes sense; just to confirm can a property be added or removed > > after the connector is registered? > > You need to create the property before registering the drm device. You > can atta

[Bug 109955] amdgpu [RX Vega 64] system freeze while gaming

2019-10-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109955 --- Comment #119 from har...@gmx.de --- bellow is a simple script, i use to record dpm data in the background: ## #!/bin/bash # adapt this sample inverval (seconds) SLEEP_INTERVAL=0.05 # adap

Re: [PATCH] drm/simple-kms: Standardize arguments for callbacks

2019-10-23 Thread Daniel Vetter
On Wed, Oct 23, 2019 at 08:47:57AM +0200, Thomas Zimmermann wrote: > Hi > > Am 22.10.19 um 21:03 schrieb Daniel Vetter: > > On Tue, Oct 22, 2019 at 7:16 PM Thomas Zimmermann > > wrote: > >> > >> Hi, > >> > >> there are two types of callbacks in struct > >> drm_simple_display_pipe_funcs: function

Re: [PATCH v3] pci: prevent putting nvidia GPUs into lower device states on certain intel bridges

2019-10-23 Thread Mika Westerberg
On Tue, Oct 22, 2019 at 02:51:53PM +0200, Karol Herbst wrote: > On Tue, Oct 22, 2019 at 2:45 PM Mika Westerberg > wrote: > > > > On Tue, Oct 22, 2019 at 11:16:14AM +0200, Karol Herbst wrote: > > > I think there is something I totally forgot about: > > > > > > When there was never a driver bound to

Re: [PATCH 1/2] drm/todo: Remove i915 device_link task

2019-10-23 Thread Daniel Vetter
On Tue, Oct 22, 2019 at 01:03:01PM -0400, Sean Paul wrote: > On Tue, Oct 22, 2019 at 05:25:29PM +0200, Daniel Vetter wrote: > > Done with > > > > commit aef9f33b7658a7489f71df5d6e6ecb47f2521e8a > > Author: Imre Deak > > Date: Tue Oct 23 17:43:10 2018 +0300 > > > > drm/i915: Ensure proper H

Re: [PATCH] drm/doc: Drop misleading comment on drm_mode_config_cleanup

2019-10-23 Thread Daniel Vetter
On Tue, Oct 22, 2019 at 05:02:40PM +, Mihail Atanassov wrote: > On Tuesday, 22 October 2019 17:37:17 BST Daniel Vetter wrote: > > This is not something we'll fix, because failing to clean up stuff (or > > doing it in the wrong order) is a driver bug. The offending FIXME goes > > all the way bac

Re: [PATCH v2] drm/panfrost: fix -Wmissing-prototypes warnings

2019-10-23 Thread Steven Price
On 22/10/2019 04:02, Yi Wang wrote: > We get these warnings when build kernel W=1: > drivers/gpu/drm/panfrost/panfrost_perfcnt.c:35:6: warning: no previous > prototype for ‘panfrost_perfcnt_clean_cache_done’ [-Wmissing-prototypes] > drivers/gpu/drm/panfrost/panfrost_perfcnt.c:40:6: warning: no pre

Re: [PATCH hmm 00/15] Consolidate the mmu notifier interval_tree and locking

2019-10-23 Thread Daniel Vetter
On Tue, Oct 22, 2019 at 03:01:13PM +, Jason Gunthorpe wrote: > On Tue, Oct 22, 2019 at 09:57:35AM +0200, Daniel Vetter wrote: > > > > The unusual bit in all of this is using a lock's critical region to > > > 'protect' data for read, but updating that same data before the lock's > > > critical

Re: [PATCH] drm/v3d: Fix memory leak in v3d_submit_cl_ioctl

2019-10-23 Thread Daniel Vetter
On Tue, Oct 22, 2019 at 10:53:57PM -0500, Navid Emamdoost wrote: > On Tue, Oct 22, 2019 at 4:36 AM Daniel Vetter wrote: > > > > On Mon, Oct 21, 2019 at 01:52:49PM -0500, Navid Emamdoost wrote: > > > In the impelementation of v3d_submit_cl_ioctl() there are two memory > > > leaks. One is when alloc

Re: [PATCH v4] drm/bridge: analogix-anx78xx: Avoid drm_dp_link helpers

2019-10-23 Thread Daniel Vetter
On Tue, Oct 22, 2019 at 04:52:11PM +0200, Thierry Reding wrote: > From: Thierry Reding > > During the discussion of patches that enhance the drm_dp_link helpers it > was concluded that these helpers aren't very useful to begin with. Start > pushing the equivalent code into individual drivers to u

Re: [PATCH hmm 00/15] Consolidate the mmu notifier interval_tree and locking

2019-10-23 Thread Christian König
Am 23.10.19 um 11:08 schrieb Daniel Vetter: On Tue, Oct 22, 2019 at 03:01:13PM +, Jason Gunthorpe wrote: On Tue, Oct 22, 2019 at 09:57:35AM +0200, Daniel Vetter wrote: The unusual bit in all of this is using a lock's critical region to 'protect' data for read, but updating that same data b

[PATCH] drm/simple-kms: Standardize arguments for callbacks

2019-10-23 Thread Daniel Vetter
Passing the wrong type feels icky, everywhere else we use the pipe as the first parameter. Spotted while discussing patches with Thomas Zimmermann. v2: Make xen compile correctly Acked-By: Thomas Zimmermann (v1) Cc: Thomas Zimmermann Cc: Noralf Trønnes Cc: Gerd Hoffmann Cc: Eric Anholt Cc: E

Re: [PATCH] Cleanup: replace prefered with preferred

2019-10-23 Thread Laurent Pinchart
Hi Mark, Thank you for the patch. On Tue, Oct 22, 2019 at 02:41:45PM -0700, Mark Salyzyn wrote: > Replace all occurrences of prefered with preferred to make future > checkpatch.pl's happy. A few places the incorrect spelling is > matched with the correct spelling to preserve existing user space

[Outreachy][PATCH] drm/mediatek: remove cast to pointers passed to kfree

2019-10-23 Thread Wambui Karuga
Remove unnecessary casts to pointer types passed to kfree. Issue detected by coccinelle: @@ type t1; expression *e; @@ -kfree((t1 *)e); +kfree(e); Signed-off-by: Wambui Karuga --- drivers/gpu/drm/mediatek/mtk_drm_gem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driv

[PULL] drm-misc-fixes

2019-10-23 Thread Maxime Ripard
Hi Daniel, Dave, Here is this week's drm-misc-fixes PR. Thanks! Maxime drm-misc-fixes-2019-10-23: Two fixes for komeda, one for typos and one to prevent an hardware issue when flushing inactive pipes The following changes since commit 5b3ec8134f5f9fa1ed0a538441a495521078bbee: drm/panfrost: Ha

Re: [PATCH] Cleanup: replace prefered with preferred

2019-10-23 Thread Jarkko Sakkinen
On Tue, Oct 22, 2019 at 02:41:45PM -0700, Mark Salyzyn wrote: > Replace all occurrences of prefered with preferred to make future > checkpatch.pl's happy. A few places the incorrect spelling is > matched with the correct spelling to preserve existing user space API. > > Signed-off-by: Mark Salyzy

[PATCH] panfrost: Properly undo pm_runtime_enable when deferring a probe

2019-10-23 Thread Tomeu Vizoso
When deferring the probe because of a missing regulator, we were calling pm_runtime_disable even if pm_runtime_enable wasn't called. Move the call to pm_runtime_disable to the right place. Signed-off-by: Tomeu Vizoso Fixes: f4a3c6a44b35 ("drm/panfrost: Disable PM on probe failure") Cc: Robin Mur

Re: UDL device cannot get its own screen

2019-10-23 Thread Böszörményi Zoltán
2019. 10. 23. 9:42 keltezéssel, Pekka Paalanen írta: On Tue, 22 Oct 2019 17:50:21 +0200 Böszörményi Zoltán wrote: Hi, I have the below configuration for an Intel based POS system that, while advertises 3 outputs (DP1, VGA1 and HDMI1 with xf86-video-intel), only two are usable. DP1 for the bui

[PATCH v2] panfrost: Properly undo pm_runtime_enable when deferring a probe

2019-10-23 Thread Tomeu Vizoso
When deferring the probe because of a missing regulator, we were calling pm_runtime_disable even if pm_runtime_enable wasn't called. Move the call to pm_runtime_disable to the right place. Signed-off-by: Tomeu Vizoso Reported-by: Chen-Yu Tsai Cc: Robin Murphy Fixes: f4a3c6a44b35 ("drm/panfrost

Re: [PATCH 1/3] drm: Introduce scaling filter mode property

2019-10-23 Thread Ville Syrjälä
On Wed, Oct 23, 2019 at 10:34:05AM +0300, Pekka Paalanen wrote: > On Tue, 22 Oct 2019 20:48:02 +0530 > "Sharma, Shashank" wrote: > > > Hello Ville, > > > > Thanks for the comments, mine inline. > > > > > > On 10/22/2019 5:50 PM, Ville Syrjälä wrote: > > > On Tue, Oct 22, 2019 at 03:29:44PM +05

Re: UDL device cannot get its own screen

2019-10-23 Thread Pekka Paalanen
On Wed, 23 Oct 2019 14:12:03 +0200 Böszörményi Zoltán wrote: > 2019. 10. 23. 9:42 keltezéssel, Pekka Paalanen írta: > > On Tue, 22 Oct 2019 17:50:21 +0200 > > Böszörményi Zoltán wrote: > > > >> Hi, > >> > >> I have the below configuration for an Intel based POS system that, > >> while adverti

Re: [Intel-gfx] [PATCH 1/3] drm: Introduce scaling filter mode property

2019-10-23 Thread Jani Nikula
On Tue, 22 Oct 2019, Daniel Vetter wrote: > On Tue, Oct 22, 2019 at 03:29:44PM +0530, Shashank Sharma wrote: >> This patch adds a scaling filter mode porperty >> to allow: >> - A driver/HW to showcase it's scaling filter capabilities. >> - A userspace to pick a desired effect while scaling. >> >>

[Bug 111481] AMD Navi GPU frequent freezes on both Manjaro/Ubuntu with kernel 5.3 and mesa 19.2 -git/llvm9

2019-10-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111481 Benjamin Neff changed: What|Removed |Added CC||mail+freedesktop@benjaminne

Re: [PATCH v2] panfrost: Properly undo pm_runtime_enable when deferring a probe

2019-10-23 Thread Robin Murphy
On 2019-10-23 1:21 pm, Tomeu Vizoso wrote: When deferring the probe because of a missing regulator, we were calling pm_runtime_disable even if pm_runtime_enable wasn't called. Move the call to pm_runtime_disable to the right place. Signed-off-by: Tomeu Vizoso Reported-by: Chen-Yu Tsai Cc: Rob

Re: [PATCH 28/36] fbdev: s3c2410fb: remove mach header dependency

2019-10-23 Thread Krzysztof Kozlowski
On Thu, Oct 10, 2019 at 10:30:12PM +0200, Arnd Bergmann wrote: > The s3c2410fb driver is too deeply intertwined with the s3c24xx > platform code. Change it in a way that avoids the use of platform > header files but having all interface data in a platform_data > header, and the private register def

[PATCH V5 1/6] mdev: class id support

2019-10-23 Thread Jason Wang
Mdev bus only supports vfio driver right now, so it doesn't implement match method. But in the future, we may add drivers other than vfio, the first driver could be virtio-mdev. This means we need to add device class id support in bus match method to pair the mdev device and mdev driver correctly.

[PATCH V5 2/6] modpost: add support for mdev class id

2019-10-23 Thread Jason Wang
Add support to parse mdev class id table. Reviewed-by: Parav Pandit Signed-off-by: Jason Wang --- drivers/vfio/mdev/vfio_mdev.c | 2 ++ scripts/mod/devicetable-offsets.c | 3 +++ scripts/mod/file2alias.c | 10 ++ 3 files changed, 15 insertions(+) diff --git a/drivers/vfi

[PATCH V5 3/6] mdev: introduce device specific ops

2019-10-23 Thread Jason Wang
Currently, except for the create and remove, the rest of mdev_parent_ops is designed for vfio-mdev driver only and may not help for kernel mdev driver. With the help of class id, this patch introduces device specific callbacks inside mdev_device structure. This allows different set of callback to b

Re: [PATCH 00/36] ARM: samsung platform cleanup

2019-10-23 Thread Krzysztof Kozlowski
On Thu, Oct 10, 2019 at 10:28:02PM +0200, Arnd Bergmann wrote: > I've spent some time looking at the remaining ARMv4/ARMv5 platforms > that are not part of ARCH_MULTIPLATFORM, and tried to get them closer > to that. Here is what came out of that for the samsung platforms: > > * Exynos and s5pv210

[PATCH V5 0/6] mdev based hardware virtio offloading support

2019-10-23 Thread Jason Wang
Hi all: There are hardwares that can do virtio datapath offloading while having its own control path. This path tries to implement a mdev based unified API to support using kernel virtio driver to drive those devices. This is done by introducing a new mdev transport for virtio (virtio_mdev) and re

[PATCH V5 4/6] mdev: introduce virtio device and its device ops

2019-10-23 Thread Jason Wang
This patch implements basic support for mdev driver that supports virtio transport for kernel virtio driver. Signed-off-by: Jason Wang --- drivers/vfio/mdev/mdev_core.c| 20 drivers/vfio/mdev/mdev_private.h | 2 + include/linux/mdev.h | 6 ++ include/linux/virtio_mdev_o

[PATCH V5 5/6] virtio: introduce a mdev based transport

2019-10-23 Thread Jason Wang
This patch introduces a new mdev transport for virtio. This is used to use kernel virtio driver to drive the mediated device that is capable of populating virtqueue directly. A new virtio-mdev driver will be registered to the mdev bus, when a new virtio-mdev device is probed, it will register the

[PATCH V5 6/6] docs: sample driver to demonstrate how to implement virtio-mdev framework

2019-10-23 Thread Jason Wang
This sample driver creates mdev device that simulate virtio net device over virtio mdev transport. The device is implemented through vringh and workqueue. A device specific dma ops is to make sure HVA is used directly as the IOVA. This should be sufficient for kernel virtio driver to work. Only 'v

Re: UDL device cannot get its own screen

2019-10-23 Thread Ilia Mirkin
On Wed, Oct 23, 2019 at 2:41 AM Böszörményi Zoltán wrote: > > 2019. 10. 22. 22:57 keltezéssel, Ilia Mirkin írta: > > On Tue, Oct 22, 2019 at 11:50 AM Böszörményi Zoltán wrote: > >> Section "Device" > >> Identifier "UDL" > >> Driver "modesetting" > >> Optio

Re: [PATCH] drm/virtio: print a single line with device features

2019-10-23 Thread Jani Nikula
On Tue, 22 Oct 2019, Daniel Vetter wrote: > On Fri, Oct 18, 2019 at 01:38:32PM +0200, Gerd Hoffmann wrote: >> Signed-off-by: Gerd Hoffmann >> --- >> drivers/gpu/drm/virtio/virtgpu_kms.c | 9 - >> 1 file changed, 4 insertions(+), 5 deletions(-) >> >> diff --git a/drivers/gpu/drm/virtio/v

Re: [PATCH] drm/virtio: print a single line with device features

2019-10-23 Thread Daniel Vetter
On Wed, Oct 23, 2019 at 3:18 PM Jani Nikula wrote: > > On Tue, 22 Oct 2019, Daniel Vetter wrote: > > On Fri, Oct 18, 2019 at 01:38:32PM +0200, Gerd Hoffmann wrote: > >> Signed-off-by: Gerd Hoffmann > >> --- > >> drivers/gpu/drm/virtio/virtgpu_kms.c | 9 - > >> 1 file changed, 4 insertio

Re: [PATCH 28/36] fbdev: s3c2410fb: remove mach header dependency

2019-10-23 Thread Arnd Bergmann
On Wed, Oct 23, 2019 at 3:13 PM Krzysztof Kozlowski wrote: > On Thu, Oct 10, 2019 at 10:30:12PM +0200, Arnd Bergmann wrote: > > @@ -321,6 +320,7 @@ static struct s3c2410fb_mach_info jive_lcd_config = { > >* data. */ > > > > .gpcup = (0xf << 1) | (0x3f << 10), > > + .gpc

Re: [PATCH] dc.c:use kzalloc without test

2019-10-23 Thread Harry Wentland
On 2019-10-23 4:32 a.m., zhongshiqi wrote: > dc.c:583:null check is needed after using kzalloc function > > Signed-off-by: zhongshiqi Reviewed-by: Harry Wentland Harry > --- > drivers/gpu/drm/amd/display/dc/core/dc.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/drivers/gpu/d

Re: [PATCH 00/36] ARM: samsung platform cleanup

2019-10-23 Thread Arnd Bergmann
On Wed, Oct 23, 2019 at 3:11 PM Krzysztof Kozlowski wrote: > On Thu, Oct 10, 2019 at 10:28:02PM +0200, Arnd Bergmann wrote: > > The contents are available for testing in > > > > git://kernel.org:/pub/scm/linux/kernel/git/arnd/playground.git > > s3c-multiplatform > > When sending v2, can you Cc: >

[Bug 111481] AMD Navi GPU frequent freezes on both Manjaro/Ubuntu with kernel 5.3 and mesa 19.2 -git/llvm9

2019-10-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111481 --- Comment #127 from Shmerl --- powerplay is a different bug from the sdma one, but it was listed as part of this report before, that's why I mentioned it above. -- You are receiving this mail because: You are the assignee for the bug.___

Re: [PATCH v1] drm/tegra: plane: Remove format-modifier checking

2019-10-23 Thread Thierry Reding
On Sun, Feb 24, 2019 at 06:34:05PM +0300, Dmitry Osipenko wrote: > Tiling modifier can't be applied to YV12 video overlay because all tiling > modifiers are filtered out for multi-plane formats. AFAIK, all modifiers > should work with all of formats, hence the checking is incorrect and > simply not

Re: [PATCH] backlight: pwm_bl: configure pwm only once per backlight toggle

2019-10-23 Thread Adam Ford
On Fri, Oct 18, 2019 at 4:36 AM Michal Vokáč wrote: > > On 17. 10. 19 19:44, Adam Ford wrote: > > On Thu, Oct 17, 2019 at 12:13 PM Thierry Reding > > wrote: > >> > >> On Thu, Oct 17, 2019 at 12:07:21PM -0500, Adam Ford wrote: > >>> On Thu, Oct 17, 2019 at 10:14 AM Thierry Reding > >>> wrote: > >

Re: [PATCH v2] drm/amdgpu: Add DC feature mask to disable fractional pwm

2019-10-23 Thread Lukáš Krejčí
On Mon, 2019-10-21 at 15:44 -0400, sunpeng...@amd.com wrote: > From: Leo Li > > [Why] > > Some LED panel drivers might not like fractional PWM. In such cases, > backlight flickering may be observed. > > [How] > > Add a DC feature mask to disable fractional PWM, and associate it with > the pree

Re: [PATCH] backlight: pwm_bl: configure pwm only once per backlight toggle

2019-10-23 Thread Fabio Estevam
On Wed, Oct 23, 2019 at 11:16 AM Adam Ford wrote: > What is the plan to address the regression for 5.4? I wasn't sure if > we're going to apply the i.mx fixes or temporarily revert the > offending patch, or something else. (or maybe nothing at all) Yes, I do see the regression on a imx53 board

Re: [PATCH 4/6] drm/cma-helper: Support DRM_MODE_DUMB_KERNEL_MAP flag

2019-10-23 Thread Laurent Pinchart
Hi Rob, On Tue, Oct 22, 2019 at 03:02:06PM -0500, Rob Herring wrote: > On Tue, Oct 22, 2019 at 6:30 AM Laurent Pinchart wrote: > > On Mon, Oct 21, 2019 at 04:45:48PM -0500, Rob Herring wrote: > >> Add support in CMA helpers to handle callers specifying > >> DRM_MODE_DUMB_KERNEL_MAP flag. Existing

Re: [PATCH 2/6] drm: Introduce DRM_MODE_DUMB_KERNEL_MAP flag

2019-10-23 Thread Laurent Pinchart
Hi Rob, On Tue, Oct 22, 2019 at 07:42:06AM -0500, Rob Herring wrote: > On Tue, Oct 22, 2019 at 6:14 AM Laurent Pinchart wrote: > > On Mon, Oct 21, 2019 at 04:45:46PM -0500, Rob Herring wrote: > > > Introduce a new flag, DRM_MODE_DUMB_KERNEL_MAP, for struct > > > drm_mode_create_dumb. This flag is

[Bug 110113] AMD Vega64 issue setting custom voltages

2019-10-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110113 Stefan Springer changed: What|Removed |Added Resolution|--- |DUPLICATE Status|NEW

[Bug 109887] vega56 undervolting/overclocking voltage issues

2019-10-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109887 Stefan Springer changed: What|Removed |Added CC||wsla...@gmail.com --- Comment #13 fro

[Bug 109887] vega56 undervolting/overclocking voltage issues

2019-10-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109887 --- Comment #14 from Stefan Springer --- *** Bug 110347 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are the assignee for the bug.___ dri-devel mailing

[PATCH 2/2] drm/todo: Add entry to remove load/unload hooks

2019-10-23 Thread Daniel Vetter
They're midlayer, broken, and because of the old gunk, we can't fix them. For examples see the various checks in drm_mode_object.c against dev->registered, which cannot be enforced if the driver still uses the load hook. Unfortunately our biggest driver still uses load/unload, so this would be rea

[PATCH 1/2] drm/property: Enforce more lifetime rules

2019-10-23 Thread Daniel Vetter
Properties can't be attached after registering, userspace would get confused (no one bothers to reprobe really). - Add kerneldoc - Enforce this with some checks. This needs a somewhat ugly check since connectors can be added later on, but we still need to attach all properties before they go p

[Bug 110347] pp_od_clk_voltage mV cap ignored

2019-10-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110347 Stefan Springer changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug 109887] [Vega10][powerplay] P7 gets reset to max_vddc (1.2V/1.25V) after applying any custom settings via pp_od_clk_voltage and/or pp_table

2019-10-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109887 Stefan Springer changed: What|Removed |Added Summary|vega56 |[Vega10][powerplay] P7 gets

Re: [PATCH] backlight: pwm_bl: configure pwm only once per backlight toggle

2019-10-23 Thread Uwe Kleine-König
On Wed, Oct 23, 2019 at 11:23:11AM -0300, Fabio Estevam wrote: > On Wed, Oct 23, 2019 at 11:16 AM Adam Ford wrote: > > > What is the plan to address the regression for 5.4? I wasn't sure if > > we're going to apply the i.mx fixes or temporarily revert the > > offending patch, or something else.

Re: [PATCH] drm/amd/amdgpu: correct length misspelling

2019-10-23 Thread Harry Wentland
On 2019-10-19 3:34 a.m., Wambui Karuga wrote: > Correct the "_LENTH" mispelling in the AMDGPU_MAX_TIMEOUT_PARAM_LENGTH > constant. > > Signed-off-by: Wambui Karuga This patch would be better sent in a patch set with the "make undeclared variables static" patch. You can do that by providing a ran

Re: [PATCH] drm/radeon: remove assignment for return value

2019-10-23 Thread Harry Wentland
On 2019-10-19 3:32 a.m., Wambui Karuga wrote: > Remove unnecessary assignment for return value and have the > function return the required value directly. > Issue found by coccinelle: > @@ > local idexpression ret; > expression e; > @@ > > -ret = > +return > e; > -return ret; > > Signed-off-

Re: [PATCH] drm/amd/amdgpu: make undeclared variables static

2019-10-23 Thread Harry Wentland
On 2019-10-19 3:24 a.m., Wambui Karuga wrote: > Make the `amdgpu_lockup_timeout` and `amdgpu_exp_hw_support` variables > static to remove the following sparse warnings: > drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c:103:19: warning: symbol > 'amdgpu_lockup_timeout' was not declared. Should it be static

Re: [PATCH] drm/simple-kms: Standardize arguments for callbacks

2019-10-23 Thread Linus Walleij
On Wed, Oct 23, 2019 at 12:13 PM Daniel Vetter wrote: > Passing the wrong type feels icky, everywhere else we use the pipe as > the first parameter. Spotted while discussing patches with Thomas > Zimmermann. > > v2: Make xen compile correctly > > Acked-By: Thomas Zimmermann (v1) > Cc: Thomas Zim

Re: [PATCH V9 6/6] backlight: qcom-wled: Add auto string detection logic

2019-10-23 Thread Daniel Thompson
On Wed, Oct 23, 2019 at 12:37:03PM +0530, Kiran Gunda wrote: > 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 conf

[PATCH v3 02/21] drm/exynos: Don't reset bridge->next

2019-10-23 Thread Boris Brezillon
bridge->next is only points to the new bridge if drm_bridge_attach() succeeds. No need to reset it manually here. Note that this change is part of the attempt to make the bridge chain a double-linked list. In order to do that we must patch all drivers manipulating the bridge->next field. Signed-o

[PATCH v3 08/21] drm/bridge: Add the drm_for_each_bridge_in_chain() helper

2019-10-23 Thread Boris Brezillon
To iterate over all bridges attached to a specific encoder. Suggested-by: Laurent Pinchart Signed-off-by: Boris Brezillon --- Changes in v3: * None Changes in v2: * New patch --- include/drm/drm_bridge.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/drm/drm_bridge.h

[PATCH v3 07/21] drm/bridge: Make the bridge chain a double-linked list

2019-10-23 Thread Boris Brezillon
So that each element in the chain can easily access its predecessor. This will be needed to support bus format negotiation between elements of the bridge chain. Signed-off-by: Boris Brezillon --- Changes in v3: * None Changes in v2: * Adjust things to the "dummy encoder bridge" change (patch 2 i

[PATCH v3 00/21] drm: Add support for bus-format negotiation

2019-10-23 Thread Boris Brezillon
This patch series aims at adding support for runtime bus-format negotiation between all elements of the 'encoder -> bridges -> connector/display' section of the pipeline. In order to support that, we need drm bridges to fully take part in the atomic state validation process, which requires adding

[PATCH v3 09/21] drm/bridge: Add a drm_bridge_state object

2019-10-23 Thread Boris Brezillon
One of the last remaining objects to not have its atomic state. This is being motivated by our attempt to support runtime bus-format negotiation between elements of the bridge chain. This patch just paves the road for such a feature by adding a new drm_bridge_state object inheriting from drm_priva

[PATCH v3 06/21] drm: Stop accessing encoder->bridge directly

2019-10-23 Thread Boris Brezillon
We are about to replace the single-linked bridge list by a double-linked one based on list.h, leading to the suppression of the encoder->bridge field. But before we can do that we must provide a drm_bridge_chain_get_first_bridge() bridge helper and patch all drivers and core helpers to use it inste

  1   2   >