Overlay sugar syntax (was: Re: [PATCH v6 3/4] drm: rcar-du: Fix legacy DT to create LVDS encoder nodes)

2018-02-23 Thread Geert Uytterhoeven
Hi Frank, On Fri, Feb 23, 2018 at 3:38 AM, Frank Rowand wrote: > I was hoping to be able to convert the .dts files to use sugar syntax > instead of hand coding the fragment nodes, but for this specific set > of files I failed, since the labels that would have been required do > not already exist

[Bug 105005] No image after downtime (RX460)

2018-02-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105005 --- Comment #13 from Dmitry --- In the case of option tearfree on came out of sleep. But there was a bug that flew in resolution 1366x768 and 1080p was not available. But it is possible problems xfce4, or I config the curve did. I have there Se

Re: [PATCH v1 2/2] drm/panel: otm8009a: Add support for the optional power-supply

2018-02-23 Thread Philippe CORNU
Hi Thierry & David, May I ask you please your feedback on this small patch? Many thanks, Philippe :-) On 02/05/2018 10:45 AM, Philippe Cornu wrote: > Add support for the optional power-supply. > > Note: A "dummy regulator" is returned by devm_regulator_get() > if the optional regulator is not p

Re: [PATCH v1 1/2] dt-bindings/display/panel: Add support for Raydium rm68200 dsi panel

2018-02-23 Thread Yannick FERTRE
Reviewed-by: Yannick Fertré On 02/08/2018 03:30 PM, Philippe Cornu wrote: > The Raydium Semiconductor Corporation RM68200 is a 5.5" 720x1280 > TFT LCD panel connected using a MIPI-DSI video interface. > > Signed-off-by: Philippe Cornu > --- > .../bindings/display/panel/raydium,rm68200.txt

Re: [PATCH v1 2/2] drm/panel: Add support for Raydium rm68200 panel driver

2018-02-23 Thread Yannick FERTRE
Reviewed-by: Yannick Fertré On 02/08/2018 03:30 PM, Philippe Cornu wrote: > This patch adds Raydium Semiconductor Corporation rm68200 > 5.5" 720x1280 TFT LCD panel driver (MIPI-DSI video mode). > > Signed-off-by: Philippe Cornu > --- > drivers/gpu/drm/panel/Kconfig | 8 + >

Re: [PATCH v2] drm/stm: check pitch and size calculations even if !CONFIG_MMU

2018-02-23 Thread Philippe CORNU
Hi Benjamin, On 01/31/2018 09:05 AM, Benjamin Gaignard wrote: > In all cases we have to check pitch and size calculations to speed up > data transfer. > > Fixes: 21f815bf773c ("drm/stm: drv: Improve data transfers") > > Signed-off-by: Benjamin Gaignard > --- > drivers/gpu/drm/stm/drv.c | 2 --

Re: [PATCH v6 3/4] drm: rcar-du: Fix legacy DT to create LVDS encoder nodes

2018-02-23 Thread Frank Rowand
On 02/22/18 14:10, Frank Rowand wrote: > Hi Laurent, Rob, > > Thanks for the prompt spin to address my concerns. There are some small > technical issues. > > I did not read the v3 patch until today. v3 through v6 are still using the > old overlay apply method which uses an expanded device tree

Re: [PATCH v4 00/16] R-Car DU: Convert LVDS code to bridge driver

2018-02-23 Thread Frank Rowand
Hi Laurent, On 02/22/18 02:25, Laurent Pinchart wrote: > Hi Frank, > > On Thursday, 22 February 2018 08:07:14 EET Frank Rowand wrote: >> On 02/20/18 15:10, Laurent Pinchart wrote: >>> Hello, >>> >>> This patch series addresses a design mistake that dates back from the >>> initial DU support. Supp

Re: [PATCH v6 2/4] dt-bindings: display: renesas: Deprecate LVDS support in the DU bindings

2018-02-23 Thread Niklas Söderlund
Hi Laurent, Thanks for your patch. On 2018-02-22 15:13:34 +0200, Laurent Pinchart wrote: > The internal LVDS encoders now have their own DT bindings, representing > them as part of the DU is deprecated. > > Signed-off-by: Laurent Pinchart > Reviewed-by: Rob Herring Reviewed-by: Niklas Söderlu

[PATCH v3 03/10] pwm: cros-ec: populate PWM mode in of_xlate function

2018-02-23 Thread Claudiu Beznea
Populate PWM mode in of_xlate function to avoid pwm_apply_state() failure. Signed-off-by: Claudiu Beznea --- drivers/pwm/pwm-cros-ec.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/pwm/pwm-cros-ec.c b/drivers/pwm/pwm-cros-ec.c index 9c13694eaa24..e54954c13323 100644 --- a/drive

[PATCH v3 05/10] pwm: add PWM mode to pwm_config()

2018-02-23 Thread Claudiu Beznea
Add PWM mode to pwm_config() function. The drivers which uses pwm_config() were adapted to this change. Signed-off-by: Claudiu Beznea --- arch/arm/mach-s3c24xx/mach-rx1950.c | 11 +-- drivers/bus/ts-nbus.c| 2 +- drivers/clk/clk-pwm.c| 3 ++- drivers/gp

Re: [PATCH v6 0/4] R-Car DU: Convert LVDS code to bridge driver

2018-02-23 Thread Frank Rowand
On 02/22/18 05:13, Laurent Pinchart wrote: > Hello, > > This patch series addresses a design mistake that dates back from the initial > DU support. Support for the LVDS encoders, which are IP cores separate from > the DU, was bundled in the DU driver. Worse, both the DU and LVDS were > described t

[PATCH v3 06/10] pwm: add PWM modes

2018-02-23 Thread Claudiu Beznea
Add PWM normal and complementary modes. Signed-off-by: Claudiu Beznea --- Documentation/devicetree/bindings/pwm/pwm.txt | 9 +++-- Documentation/pwm.txt | 26 +++--- include/dt-bindings/pwm/pwm.h | 1 + 3 files changed, 31 inserti

Re: [PATCH v6 3/4] drm: rcar-du: Fix legacy DT to create LVDS encoder nodes

2018-02-23 Thread Frank Rowand
Hi Laurent, Rob, Thanks for the prompt spin to address my concerns. There are some small technical issues. I did not read the v3 patch until today. v3 through v6 are still using the old overlay apply method which uses an expanded device tree as input. Rob, I don't see my overlay patches in you

Re: [PATCH v3 05/10] pwm: add PWM mode to pwm_config()

2018-02-23 Thread Claudiu Beznea
On 22.02.2018 14:33, Daniel Thompson wrote: > On Thu, Feb 22, 2018 at 02:01:16PM +0200, Claudiu Beznea wrote: >> Add PWM mode to pwm_config() function. The drivers which uses pwm_config() >> were adapted to this change. >> >> Signed-off-by: Claudiu Beznea >> --- >> arch/arm/mach-s3c24xx/mach-rx

[PATCH v3 04/10] pwm: pxa: populate PWM mode in of_xlate function

2018-02-23 Thread Claudiu Beznea
Populate PWM mode in of_xlate function to avoid pwm_apply_state() failure. Signed-off-by: Claudiu Beznea --- drivers/pwm/pwm-pxa.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/pwm/pwm-pxa.c b/drivers/pwm/pwm-pxa.c index 4143a46684d2..7a035716e054 100644 --- a/drivers/pwm/pwm-p

[PATCH v3 02/10] pwm: clps711x: populate PWM mode in of_xlate function

2018-02-23 Thread Claudiu Beznea
Populate PWM mode in of_xlate function to avoid pwm_apply_state() failure. Signed-off-by: Claudiu Beznea --- drivers/pwm/pwm-clps711x.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/pwm/pwm-clps711x.c b/drivers/pwm/pwm-clps711x.c index 26ec24e457b1..2a4

[PATCH v3 10/10] pwm: atmel: add push-pull mode support

2018-02-23 Thread Claudiu Beznea
Add support for PWM push-pull mode. This is only supported by SAMA5D2 SoCs. Signed-off-by: Claudiu Beznea --- drivers/pwm/pwm-atmel.c | 40 1 file changed, 36 insertions(+), 4 deletions(-) diff --git a/drivers/pwm/pwm-atmel.c b/drivers/pwm/pwm-atmel.c in

Re: [PATCH v3 06/10] pwm: add PWM modes

2018-02-23 Thread Claudiu Beznea
On 22.02.2018 19:28, Andy Shevchenko wrote: > On Thu, Feb 22, 2018 at 2:01 PM, Claudiu Beznea > wrote: >> Add PWM normal and complementary modes. > >> +- PWM_DTMODE_COMPLEMENTARY: PWM complementary working mode (for PWM >> +channels two outputs); if not specified, the default for PWM channel wi

[PATCH v3 01/10] pwm: extend PWM framework with PWM modes

2018-02-23 Thread Claudiu Beznea
Add basic PWM modes: normal and complementary. These modes should differentiate the single output PWM channels from two outputs PWM channels. These modes could be set as follow: 1. PWM channels with one output per channel: - normal mode 2. PWM channels with two outputs per channel: - normal mode -

Re: [PATCH v3 05/10] pwm: add PWM mode to pwm_config()

2018-02-23 Thread Sean Young
On Thu, Feb 22, 2018 at 02:01:16PM +0200, Claudiu Beznea wrote: > Add PWM mode to pwm_config() function. The drivers which uses pwm_config() > were adapted to this change. > > Signed-off-by: Claudiu Beznea > --- -snip- > diff --git a/drivers/media/rc/ir-rx51.c b/drivers/media/rc/ir-rx51.c > ind

[PATCH v3 07/10] pwm: atmel: add pwm capabilities

2018-02-23 Thread Claudiu Beznea
Add pwm capabilities for Atmel/Microchip PWM controllers. Signed-off-by: Claudiu Beznea --- drivers/pwm/pwm-atmel.c | 80 - 1 file changed, 52 insertions(+), 28 deletions(-) diff --git a/drivers/pwm/pwm-atmel.c b/drivers/pwm/pwm-atmel.c index 530d

Re: [PATCH 5/9] drm/xen-front: Implement handling of shared display buffers

2018-02-23 Thread Boris Ostrovsky
On 02/21/2018 03:03 AM, Oleksandr Andrushchenko wrote: > > static int __init xen_drv_init(void) > { > + /* At the moment we only support case with XEN_PAGE_SIZE == PAGE_SIZE */ > + BUILD_BUG_ON(XEN_PAGE_SIZE != PAGE_SIZE); Why BUILD_BUG_ON? This should simply not load if page sizes ar

[PATCH v3 09/10] pwm: add documentation for pwm push-pull mode

2018-02-23 Thread Claudiu Beznea
Add documentation for PWM push-pull mode. Signed-off-by: Claudiu Beznea Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/pwm/pwm.txt | 2 ++ Documentation/pwm.txt | 16 include/dt-bindings/pwm/pwm.h | 1 + 3 files changed,

[PATCH v3 08/10] pwm: add push-pull mode support

2018-02-23 Thread Claudiu Beznea
Add push-pull mode support. In push-pull mode the channels' outputs have same polarities and the edges are complementary delayed for one period. Signed-off-by: Claudiu Beznea --- include/linux/pwm.h | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/linux/pwm.h b

Re: [PATCH v6 4/4] drm: rcar-du: Convert LVDS encoder code to bridge driver

2018-02-23 Thread Niklas Söderlund
Hi Laurent, Thanks for your patch. On 2018-02-22 15:13:36 +0200, Laurent Pinchart wrote: > The LVDS encoders used to be described in DT as part of the DU. They now > have their own DT node, linked to the DU using the OF graph bindings. > This allows moving internal LVDS encoder support to a separ

Re: [PATCH v3 05/10] pwm: add PWM mode to pwm_config()

2018-02-23 Thread Claudiu Beznea
On 22.02.2018 15:01, Sean Young wrote: > On Thu, Feb 22, 2018 at 02:01:16PM +0200, Claudiu Beznea wrote: >> Add PWM mode to pwm_config() function. The drivers which uses pwm_config() >> were adapted to this change. >> >> Signed-off-by: Claudiu Beznea >> --- > > -snip- > >> diff --git a/drivers

Re: [PATCH 3/9] drm/xen-front: Read driver configuration from Xen store

2018-02-23 Thread Boris Ostrovsky
On 02/21/2018 03:03 AM, Oleksandr Andrushchenko wrote: > + > +static int cfg_connector(struct xen_drm_front_info *front_info, > + struct xen_drm_front_cfg_connector *connector, > + const char *path, int index) > +{ > + char *connector_path; > + > + connector_path = d

Re: [PATCH v7 6/6] drm/msm: iommu: Replace runtime calls with runtime suppliers

2018-02-23 Thread Vivek Gautam
Hi, On Thu, Feb 22, 2018 at 7:42 PM, Tomasz Figa wrote: > On Thu, Feb 22, 2018 at 10:45 PM, Robin Murphy wrote: >> [sorry, I had intended to reply sooner but clearly forgot] >> >> >> On 16/02/18 00:13, Tomasz Figa wrote: >>> >>> On Fri, Feb 16, 2018 at 2:14 AM, Robin Murphy >>> wrote:

[PATCH] drm: of: simplify component probe code

2018-02-23 Thread Baruch Siach
Use positive logic for better readability. This also eliminates one of_node_put() call, making the code shorter. Signed-off-by: Baruch Siach --- drivers/gpu/drm/drm_of.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/drm_of.c b/drivers/gpu/drm/drm_of.

[PATCH v3 00/10] extend PWM framework to support PWM modes

2018-02-23 Thread Claudiu Beznea
Hi all, Please give feedback on these patches which extends the PWM framework in order to support multiple PWM modes of operations. This series is a rework of [1] and [2]. The current patch series add the following PWM modes: - PWM mode normal - PWM mode complementary - PWM mode push-pull Normal

Re: [PATCH v6 1/4] dt-bindings: display: renesas: Add R-Car LVDS encoder DT bindings

2018-02-23 Thread Niklas Söderlund
Hi Laurent, Thanks for your patch. On 2018-02-22 15:13:33 +0200, Laurent Pinchart wrote: > The Renesas R-Car Gen2 and Gen3 SoCs have internal LVDS encoders. Add > corresponding device tree bindings. > > Signed-off-by: Laurent Pinchart > Reviewed-by: Rob Herring > --- > Changes since v1: > > -

Re: [PATCH 4/9] drm/xen-front: Implement Xen event channel handling

2018-02-23 Thread Boris Ostrovsky
On 02/21/2018 03:03 AM, Oleksandr Andrushchenko wrote: > + > +static irqreturn_t evtchnl_interrupt_ctrl(int irq, void *dev_id) > +{ > + struct xen_drm_front_evtchnl *evtchnl = dev_id; > + struct xen_drm_front_info *front_info = evtchnl->front_info; > + struct xendispl_resp *resp; > +

[PATCH RFC] drm/sun4i: Enable the output on the pins (tcon0)

2018-02-23 Thread megous
From: Ondrej Jirman I noticed that with 4.16-rc1 LVDS output on A83T based TBS A711 tablet doesn't work (there's output but it's garbled). I compared some older patches for LVDS support with the mainlined ones and this change is missing from mainline Linux. I don't know what the register does ex

Re: [PATCH 1/9] drm/xen-front: Introduce Xen para-virtualized frontend driver

2018-02-23 Thread Boris Ostrovsky
On 02/21/2018 03:03 AM, Oleksandr Andrushchenko wrote: > +static struct xenbus_driver xen_driver = { > + .ids = xen_drv_ids, > + .probe = xen_drv_probe, > + .remove = xen_drv_remove, > + .otherend_changed = backend_on_changed, What does "_on_" stand for? -boris ___

Re: [PATCH] drm/ttm: check if free mem space is under the lower limit

2018-02-23 Thread kbuild test robot
Hi Roger, I love your patch! Perhaps something to improve: [auto build test WARNING on drm/drm-next] [also build test WARNING on v4.16-rc2 next-20180223] [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/linux

Re: [PATCH v6 3/4] drm: rcar-du: Fix legacy DT to create LVDS encoder nodes

2018-02-23 Thread Laurent Pinchart
Hi Frank, On Friday, 23 February 2018 04:38:06 EET Frank Rowand wrote: > On 02/22/18 14:10, Frank Rowand wrote: > > Hi Laurent, Rob, > > > > Thanks for the prompt spin to address my concerns. There are some small > > technical issues. > > > > I did not read the v3 patch until today. v3 through

Re: [PATCH v2] drm/stm: check pitch and size calculations even if !CONFIG_MMU

2018-02-23 Thread Benjamin Gaignard
2018-02-23 9:33 GMT+01:00 Philippe CORNU : > Hi Benjamin, > > On 01/31/2018 09:05 AM, Benjamin Gaignard wrote: >> In all cases we have to check pitch and size calculations to speed up >> data transfer. >> >> Fixes: 21f815bf773c ("drm/stm: drv: Improve data transfers") >> >> Signed-off-by: Benjamin

[Bug 105213] [SUMO][TURKS] Alien: Isolation rendering artifacts

2018-02-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105213 --- Comment #2 from Gert Wollny --- On BARTS this looks fine with 4562a7b0e82bf664b30 (2018-02-23). Do you have any output from logs? On my Cedar based card I get "CS shader rejected" - and then the GPU to lock up (In any case, on that card even

Re: [PATCH] drm/bridge: analogix_dp: Keep PHY powered from between driver bind/unbind

2018-02-23 Thread Laurent Pinchart
Hi Marek, On Friday, 23 February 2018 09:35:32 EET Marek Szyprowski wrote: > On 2018-02-21 13:49, Laurent Pinchart wrote: > > On Wednesday, 21 February 2018 12:04:43 EET Marek Szyprowski wrote: > >> Patch f0a8b49c03d2 ("drm/bridge: analogix dp: Fix runtime PM state on > >> driver bind") fixed unba

[Bug 103371] glxinfo -l shows GL_INVALID_ENUM

2018-02-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103371 Marc Dietrich changed: What|Removed |Added Resolution|NOTABUG |--- Status|RESOLVED

[Bug 105213] [SUMO][TURKS] Alien: Isolation rendering artifacts

2018-02-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105213 --- Comment #3 from Gert Wollny --- I might have been wrong, it is certain that eb96ba722ee7 worked, but checking out above commit after following Darius Spitznagel hint [1] Disable it in the prefereces file in ~/.local/share/feral-interactive/

Re: [PATCH v4 00/16] R-Car DU: Convert LVDS code to bridge driver

2018-02-23 Thread Laurent Pinchart
Hi Frank, On Friday, 23 February 2018 05:20:43 EET Frank Rowand wrote: > On 02/22/18 02:25, Laurent Pinchart wrote: > > On Thursday, 22 February 2018 08:07:14 EET Frank Rowand wrote: > >> On 02/20/18 15:10, Laurent Pinchart wrote: > >>> Hello, > >>> > >>> This patch series addresses a design mist

RE: [PATCH 4/4] drm/ttm: keep BOs reserved until end of eviction

2018-02-23 Thread He, Roger
looks good to me. Reviewed-by: Roger He -Original Message- From: dri-devel [mailto:dri-devel-boun...@lists.freedesktop.org] On Behalf Of Christian K?nig Sent: Tuesday, February 20, 2018 8:58 PM To: amd-...@lists.freedesktop.org; dri-devel@lists.freedesktop.org; linux-ker...@vger.kernel

Re: [PATCH v4 11/16] ARM: dts: r8a7791: Convert to new LVDS DT bindings

2018-02-23 Thread Sergei Shtylyov
Hello! On 2/21/2018 2:10 AM, Laurent Pinchart wrote: The internal LVDS encoder now has DT bindings separate from the DU. Port the device tree over to the new model. Signed-off-by: Laurent Pinchart --- Changes since v3: - Added power-domains and resets properties to LVDS nodes Changes since

Re: [PATCH v4 11/16] ARM: dts: r8a7791: Convert to new LVDS DT bindings

2018-02-23 Thread Laurent Pinchart
Hi Sergei, On Friday, 23 February 2018 11:32:54 EET Sergei Shtylyov wrote: > On 2/21/2018 2:10 AM, Laurent Pinchart wrote: > > The internal LVDS encoder now has DT bindings separate from the DU. Port > > the device tree over to the new model. > > > > Signed-off-by: Laurent Pinchart > > > > --- >

RE: [PATCH 3/4] drm/ttm: handle already locked BOs during eviction and swapout.

2018-02-23 Thread He, Roger
-Original Message- From: dri-devel [mailto:dri-devel-boun...@lists.freedesktop.org] On Behalf Of Christian K?nig Sent: Tuesday, February 20, 2018 8:58 PM To: amd-...@lists.freedesktop.org; dri-devel@lists.freedesktop.org; linux-ker...@vger.kernel.org Subject: [PATCH 3/4] drm/ttm: handle

RE: [PATCH 2/4] drm/amdgpu: use new ww_mutex_is_owned_by function

2018-02-23 Thread He, Roger
Reviewed-by: Roger He -Original Message- From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf Of Christian K?nig Sent: Tuesday, February 20, 2018 8:58 PM To: amd-...@lists.freedesktop.org; dri-devel@lists.freedesktop.org; linux-ker...@vger.kernel.org Subject: [PATCH 2

Re: [PATCH 5/7] vga_switcheroo: Use device link for HDA controller

2018-02-23 Thread Lukas Wunner
On Tue, Feb 20, 2018 at 04:20:59PM -0600, Bjorn Helgaas wrote: > On Sun, Feb 18, 2018 at 09:38:32AM +0100, Lukas Wunner wrote: > > The device link is added in a PCI quirk rather than in hda_intel.c. > > It is therefore legal for the GPU to runtime suspend to D3cold even if > > the HDA controller is

Re: [PATCH v4 11/16] ARM: dts: r8a7791: Convert to new LVDS DT bindings

2018-02-23 Thread Sergei Shtylyov
On 2/21/2018 2:10 AM, Laurent Pinchart wrote: The internal LVDS encoder now has DT bindings separate from the DU. Port the device tree over to the new model. Signed-off-by: Laurent Pinchart [...] diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index 008a260f86a5

[Bug 105179] DiRT Rally: wrong frames appear during camera transition

2018-02-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105179 --- Comment #5 from Marc Di Luzio --- Cheers for the CC, I'll get this tracked internally. -- You are receiving this mail because: You are the assignee for the bug.___ dri-devel mailing list dri-deve

Re: [PATCH 1/8] drm/ttm: add default implementations for ttm_tt_(un)populate

2018-02-23 Thread Michel Dänzer
On 2018-02-23 08:39 AM, Christian König wrote: > Am 22.02.2018 um 16:55 schrieb Michel Dänzer: >> On 2018-02-22 12:15 PM, Christian König wrote: >>> Use ttm_pool_populate/ttm_pool_unpopulate if the driver doesn't provide >>> a function. >>> >>> Signed-off-by: Christian König >>> --- >>>   drivers/

[PATCH] drm: mali-dp: Log internal errors v2

2018-02-23 Thread Alexandru Gheorghe
Status register contains a lot of bits for reporting internal errors inside Mali DP. Currently, we just silently ignore all of the erorrs, that doesn't help when we are investigating different bugs, especially on the FPGA models which have a lot of constrains, so we could easily end up in AXI or un

[Bug 105213] [SUMO][TURKS] Alien: Isolation rendering artifacts

2018-02-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105213 --- Comment #4 from Gert Wollny --- Well, after a clean reboot 4562a7b0e82bf664 works fine on BART. I guess the crash with the CEDAR card somehow triggered an instability that was responsible for the problems starting AI later (I use both cards

[PATCH] drm/ttm: check if free mem space is under the lower limit

2018-02-23 Thread Roger He
the free mem space and the lower limit both include two parts: system memory and swap space. For the OOM triggered by TTM, that is the case as below: first swap space is full of swapped out pages and soon system memory also is filled up with ttm pages. and then any memory allocation request will r

Re: [PATCH] drm/ttm: check if free mem space is under the lower limit

2018-02-23 Thread Christian König
Am 23.02.2018 um 11:19 schrieb Roger He: the free mem space and the lower limit both include two parts: system memory and swap space. For the OOM triggered by TTM, that is the case as below: first swap space is full of swapped out pages and soon system memory also is filled up with ttm pages. an

Re: [PATCH v1 2/2] drm/panel: Add support for Raydium rm68200 panel driver

2018-02-23 Thread Philippe CORNU
Hi Thierry & David, Do you have any comments on this new 720p panel patch? Note: I plan to add 2 new patchs on top on this patch in the future linked to the recent backlight updates (of_find_backlight() & backlight_enable/disable helpers). Thank you, Philippe :-) On 02/23/2018 09:31 AM, Yann

Re: [PATCH 2/2] drm/panel: Add device_link from panel device to drm device

2018-02-23 Thread Jyri Sarha
Sorry Lukas, for forgetting these comments. I'll take these comments to this thread as the other thread is a dead end. I think the drm_panel_attach() (in this patch) is a better place to add the device link than panel_bridge_attach() (the other patch). On 21/02/18 09:52, Lukas Wunner wrote: > On

[PATCH] drm: bridge: dw-hdmi: Fix overflow workaround for Amlogic Meson GX SoCs

2018-02-23 Thread Neil Armstrong
The Amlogic Meson GX SoCs, embedded the v2.01a controller, has been also identified needing this workaround. This patch adds the corresponding version to enable a single iteration for this specific version. Fixes: be41fc55f1aa ("drm: bridge: dw-hdmi: Handle overflow workaround based on device ver

Re: [PATCH] staging: vboxvideo: remove ttm_pool_* wrappers

2018-02-23 Thread Christian König
Am 22.02.2018 um 17:03 schrieb Daniel Vetter: On Thu, Feb 22, 2018 at 02:54:27PM +0100, Christian König wrote: TTM calls the default implementation now. Signed-off-by: Christian König Reviewed-by: Daniel Vetter Is there some sync requirement with drm trees? Yeah, that depends on some TTM

Re: [PATCH 3/4] drm/ttm: handle already locked BOs during eviction and swapout.

2018-02-23 Thread Christian König
Am 23.02.2018 um 10:46 schrieb He, Roger: -Original Message- From: dri-devel [mailto:dri-devel-boun...@lists.freedesktop.org] On Behalf Of Christian K?nig Sent: Tuesday, February 20, 2018 8:58 PM To: amd-...@lists.freedesktop.org; dri-devel@lists.freedesktop.org; linux-ker...@vger.kern

[PATCH 1/2] drm/ttm: move ttm_tt_create into ttm_tt.c v2

2018-02-23 Thread Christian König
Rename ttm_bo_add_ttm to ttm_tt_create and move it into ttm_tt.c. v2: separate the cleanup. Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_bo.c| 50 ++--- drivers/gpu/drm/ttm/ttm_tt.c| 46 + include/drm/

[PATCH 2/2] drm/ttm: cleanup ttm_tt_create

2018-02-23 Thread Christian König
Cleanup ttm_tt_create a bit. Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_tt.c | 29 + 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_tt.c b/drivers/gpu/drm/ttm/ttm_tt.c index 917942d03047..0ee3b8f11605 100644 ---

RE: [PATCH 1/4] drm/uapi: The ctm matrix uses sign-magnitude representation

2018-02-23 Thread Shankar, Uma
>-Original Message- >From: Ville Syrjala [mailto:ville.syrj...@linux.intel.com] >Sent: Friday, February 23, 2018 3:12 AM >To: intel-...@lists.freedesktop.org >Cc: dri-devel@lists.freedesktop.org; Mihail Atanassov >; Liviu Dudau ; Brian >Starkey ; Mali DP Maintainers >; Lin, Johnson ; Shan

[Bug 198745] Blank screen on RX 580 with AMDGPU Display Core enabled

2018-02-23 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=198745 --- Comment #11 from Kyle De'Vir (kyle.de...@mykolab.com) --- Any progress on this issue? Are there any other logs or debugging output that I might be able to supply to help with this issue? If so, how do I acquire them? -- You are receiving thi

[Bug 198883] amdgpu: carrizo: Screen stalls after starting X

2018-02-23 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=198883 Andrey Grodzovsky (andrey.grodzov...@amd.com) changed: What|Removed |Added CC||andrey.gro

Re: [PATCH 2/2] drm/panel: Add device_link from panel device to drm device

2018-02-23 Thread Jyri Sarha
On 23/02/18 12:43, Jyri Sarha wrote: > Sorry Lukas, for forgetting these comments. > > I'll take these comments to this thread as the other thread is a dead > end. I think the drm_panel_attach() (in this patch) is a better place to > add the device link than panel_bridge_attach() (the other patch)

[Bug 101475] Max Core Profile for OpenGL showing 0.0

2018-02-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101475 vinf...@gmail.com changed: What|Removed |Added Severity|minor |major Priority|medium

[PATCH] drm/sun4i: link in front-end code if needed

2018-02-23 Thread Arnd Bergmann
When the base sun4i DRM driver is built-in but the back-end is a loadable module, we run into a link error: drivers/gpu/drm/sun4i/sun4i_drv.o: In function `sun4i_drv_probe': sun4i_drv.c:(.text+0x60c): undefined reference to `sun4i_frontend_of_table' The dependency is a bit tricky, the best workar

[RFC 0/4] drm/msm/mdp5: writeback connector support

2018-02-23 Thread Rob Clark
(Sorry, meant to send this earlier, but got distracted on other things) The first two patches are Brian Starkey's earlier writeback-connector patches, with very minor rebasing to drm-next/v4.16-rc1, plus one small addition to add atomic_commit() vfunc to the connector helpers, so that writeback jo

[RFC 2/4] drm: writeback: Add out-fences for writeback connectors

2018-02-23 Thread Rob Clark
From: Brian Starkey Add the WRITEBACK_OUT_FENCE_PTR property to writeback connectors, to enable userspace to get a fence which will signal once the writeback is complete. It is not allowed to request an out-fence without a framebuffer attached to the connector. A timeline is added to drm_writeba

[RFC 1/4] drm: Add writeback connector type

2018-02-23 Thread Rob Clark
From: Brian Starkey Writeback connectors represent writeback engines which can write the CRTC output to a memory framebuffer. Add a writeback connector type and related support functions. Drivers should initialize a writeback connector with drm_writeback_connector_init() which takes care of sett

[RFC 3/4] drm/msm/mdp5: add config for writeback pipes

2018-02-23 Thread Rob Clark
Note there seems to be a slight disagreement between public 8x16 HRD (which claims WB2 has offset of 0x65000, relative to start of MDP), and reality (which claims WB2 has offset of 0x64800). I sided with reality. There should also be a WB0 attached to LM0 (which routes to DSI interface). It isn'

[RFC 4/4] drm/msm/mdp5: writeback support

2018-02-23 Thread Rob Clark
In a way, based on the original writeback patch from Jilai Wang, but a lot has shifted around since then. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/Makefile | 1 + drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c | 23 +- drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c | 38 +++- driv

Re: [PATCH 1/4] drm/uapi: The ctm matrix uses sign-magnitude representation

2018-02-23 Thread Brian Starkey
Hi Ville, On Thu, Feb 22, 2018 at 11:42:29PM +0200, Ville Syrjala wrote: From: Ville Syrjälä The documentation for the ctm matrix suggests a two's complement format, but at least the i915 implementation is using sign-magnitude instead. And looks like malidp is doing the same. Change the docs t

Re: [RFC 1/4] drm: Add writeback connector type

2018-02-23 Thread Liviu Dudau
Hi Rob, On Fri, Feb 23, 2018 at 08:17:51AM -0500, Rob Clark wrote: > From: Brian Starkey > > Writeback connectors represent writeback engines which can write the > CRTC output to a memory framebuffer. Add a writeback connector type and > related support functions. > > Drivers should initialize

Re: [PATCH 1/4] drm/uapi: The ctm matrix uses sign-magnitude representation

2018-02-23 Thread Ville Syrjälä
On Fri, Feb 23, 2018 at 01:52:22PM +, Brian Starkey wrote: > Hi Ville, > > On Thu, Feb 22, 2018 at 11:42:29PM +0200, Ville Syrjala wrote: > >From: Ville Syrjälä > > > >The documentation for the ctm matrix suggests a two's complement > >format, but at least the i915 implementation is using sig

Re: [v2,03/10] drm/sun4i: Protect the TCON pixel clocks

2018-02-23 Thread Giulio Benetti
From: Maxime Ripard Both TCON clocks are very sensitive to clock changes, since any change might lead to improper timings. Make sure our rate is never changed. Tested-by: Giulio Benetti Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 4 ++-- 1 file changed, 2 insertion

Re: [PATCH] drm/rockchip: vop: Init vskiplines in scl_vop_cal_scale()

2018-02-23 Thread Sean Paul
On Fri, Feb 23, 2018 at 02:22:50PM +0800, Jeffy Chen wrote: > Currently we are calling scl_vop_cal_scale() to get vskiplines for yrgb > and cbcr. So the cbcr's vskiplines might be an unexpected value if the > second scl_vop_cal_scale() didn't update it. > > Init vskiplines in scl_vop_cal_scale() t

Re: [PATCH v5 5/9] drm: Handle aspect-ratio info in getblob

2018-02-23 Thread Ville Syrjälä
On Thu, Feb 15, 2018 at 05:50:58PM +0530, Nautiyal, Ankit K wrote: > From: Ankit Nautiyal > > If the user space does not support aspect-ratio, then getblob called > with the blob id of a user mode, should clear the aspect ratio > information in the blob data. > > Currently for a given blob id,

Re: [PATCH 5/7] vga_switcheroo: Use device link for HDA controller

2018-02-23 Thread Bjorn Helgaas
[+cc George] On Fri, Feb 23, 2018 at 10:51:47AM +0100, Lukas Wunner wrote: > On Tue, Feb 20, 2018 at 04:20:59PM -0600, Bjorn Helgaas wrote: > > On Sun, Feb 18, 2018 at 09:38:32AM +0100, Lukas Wunner wrote: > > > The device link is added in a PCI quirk rather than in hda_intel.c. > > > It is theref

Re: [RFC 1/4] drm: Add writeback connector type

2018-02-23 Thread Rob Clark
On Fri, Feb 23, 2018 at 9:00 AM, Liviu Dudau wrote: > Hi Rob, > > On Fri, Feb 23, 2018 at 08:17:51AM -0500, Rob Clark wrote: >> From: Brian Starkey >> >> Writeback connectors represent writeback engines which can write the >> CRTC output to a memory framebuffer. Add a writeback connector type and

[Bug 198885] amdgpu.dc=1 on CIK (R4 Mullins APU) brightness impossible to change. by Fn or "echo".

2018-02-23 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=198885 --- Comment #4 from Harry Wentland (harry.wentl...@amd.com) --- Thanks for reporting this. It's currently not hooked up for ASICs older than Carrizo. We'll take a look. You're right that it clashes with the kernel's 'no regressions' policy shoul

Re: [RFC 1/4] drm: Add writeback connector type

2018-02-23 Thread Liviu Dudau
On Fri, Feb 23, 2018 at 09:24:10AM -0500, Rob Clark wrote: > On Fri, Feb 23, 2018 at 9:00 AM, Liviu Dudau wrote: > > Hi Rob, > > > > On Fri, Feb 23, 2018 at 08:17:51AM -0500, Rob Clark wrote: > >> From: Brian Starkey > >> > >> Writeback connectors represent writeback engines which can write the >

Re: [PATCH v5 6/9] drm: Handle aspect ratio info in legacy and atomic modeset paths

2018-02-23 Thread Ville Syrjälä
On Thu, Feb 15, 2018 at 05:50:59PM +0530, Nautiyal, Ankit K wrote: > From: Ankit Nautiyal > > If the user-space does not support aspect-ratio, and requests for a > modeset with mode having aspect ratio bits set, then the given > user-mode must be rejected. Secondly, while preparing a user-mode fr

[Bug 105227] [SUMO][TURKS] observer game cause GPU lockup

2018-02-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105227 Bug ID: 105227 Summary: [SUMO][TURKS] observer game cause GPU lockup Product: Mesa Version: git Hardware: Other OS: All Status: NEW Severity: critical

[Bug 105227] [SUMO][TURKS] observer game cause GPU lockup

2018-02-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105227 --- Comment #1 from russianneuroman...@ya.ru --- Created attachment 137558 --> https://bugs.freedesktop.org/attachment.cgi?id=137558&action=edit dmesg from launch on Radeon HD 6620G -- You are receiving this mail because: You are the assignee

Re: [RFC PATCH hwc] drm_hwcomposer: set CRTC background color when available

2018-02-23 Thread Stefan Schake
Hey Eric, On Thu, Feb 22, 2018 at 9:47 PM, Eric Anholt wrote: > Stefan Schake writes: > >> Android assumes an implicit black background layer is always present >> behind all layers it specifies for composition. drm_hwcomposer currently >> punts responsibility for this to the kernel/DRM platform

Re: [PATCH v5 7/9] drm: Expose modes with aspect ratio, only if requested

2018-02-23 Thread Ville Syrjälä
On Thu, Feb 15, 2018 at 05:51:00PM +0530, Nautiyal, Ankit K wrote: > From: Ankit Nautiyal > > We parse the EDID and add all the modes in the connector's modelist. > This adds CEA modes with aspect ratio information too, regadless of > whether user space requested this information or not. > > Thi

[Bug 198745] Blank screen on RX 580 with AMDGPU Display Core enabled

2018-02-23 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=198745 --- Comment #12 from Harry Wentland (harry.wentl...@amd.com) --- It looks like we detect no display. We haven't yet had a chance to repro the problem. I'll see if I can find this display in the office. It'd be difficult debugging this remotely bu

Re: [PATCH 5/9] drm/xen-front: Implement handling of shared display buffers

2018-02-23 Thread Oleksandr Andrushchenko
On 02/23/2018 04:36 PM, Boris Ostrovsky wrote: On 02/23/2018 02:53 AM, Oleksandr Andrushchenko wrote: On 02/23/2018 02:25 AM, Boris Ostrovsky wrote: On 02/21/2018 03:03 AM, Oleksandr Andrushchenko wrote: static int __init xen_drv_init(void) { +/* At the moment we only support case

[PATCH] drm/amdgpu: replace iova debugfs file with iomem (v3)

2018-02-23 Thread Tom St Denis
This allows access to pages allocated through the driver with optional IOMMU mapping. v2: Fix number of bytes copied and add write method v3: drop check for kmap return Original-by: Christian König Signed-off-by: Tom St Denis --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 102 ++

Re: [PATCH 4/9] drm/xen-front: Implement Xen event channel handling

2018-02-23 Thread Oleksandr Andrushchenko
On 02/23/2018 04:44 PM, Boris Ostrovsky wrote: On 02/23/2018 02:00 AM, Oleksandr Andrushchenko wrote: On 02/23/2018 01:50 AM, Boris Ostrovsky wrote: On 02/21/2018 03:03 AM, Oleksandr Andrushchenko wrote: + +static irqreturn_t evtchnl_interrupt_ctrl(int irq, void *dev_id) +{ +struct xen_drm

Re: [PATCH 1/9] drm/xen-front: Introduce Xen para-virtualized frontend driver

2018-02-23 Thread Oleksandr Andrushchenko
On 02/23/2018 04:39 PM, Boris Ostrovsky wrote: On 02/23/2018 01:37 AM, Oleksandr Andrushchenko wrote: On 02/23/2018 12:23 AM, Boris Ostrovsky wrote: On 02/21/2018 03:03 AM, Oleksandr Andrushchenko wrote: +static struct xenbus_driver xen_driver = { +.ids = xen_drv_ids, +.probe = xen_drv

Re: [PATCH v5 8/9] drm: Add aspect ratio parsing in DRM layer

2018-02-23 Thread Ville Syrjälä
On Thu, Feb 15, 2018 at 05:51:01PM +0530, Nautiyal, Ankit K wrote: > From: "Sharma, Shashank" > > Current DRM layer functions don't parse aspect ratio information > while converting a user mode->kernel mode or vice versa. This > causes modeset to pick mode with wrong aspect ratio, eventually > ca

[Bug 198883] amdgpu: carrizo: Screen stalls after starting X

2018-02-23 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=198883 --- Comment #5 from Ricardo Ribalda (ricardo.riba...@gmail.com) --- Created attachment 274397 --> https://bugzilla.kernel.org/attachment.cgi?id=274397&action=edit trace.dat -- You are receiving this mail because: You are watching the assignee

[Bug 198883] amdgpu: carrizo: Screen stalls after starting X

2018-02-23 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=198883 --- Comment #6 from Ricardo Ribalda (ricardo.riba...@gmail.com) --- Created attachment 274399 --> https://bugzilla.kernel.org/attachment.cgi?id=274399&action=edit trace.txt -- You are receiving this mail because: You are watching the assignee

Re: [PATCH libdrm v2] *-symbol-check: Don't hard-code nm executable

2018-02-23 Thread Eric Engestrom
On Friday, 2018-02-23 00:25:27 +, Emil Velikov wrote: > On 19 February 2018 at 16:35, Eric Engestrom > wrote: > > From: Heiko Becker > > > > Helpful if your nm executable has a prefix based on the > > architecture, for example. > > > > > +env_test = environment() > > +env_test.set('NM', fin

[Bug 198883] amdgpu: carrizo: Screen stalls after starting X

2018-02-23 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=198883 --- Comment #7 from Ricardo Ribalda (ricardo.riba...@gmail.com) --- Traces obtained with trace-cmd record -e dma_fence:* -e amdgpu:* -e gpu_sched:* -- You are receiving this mail because: You are watching the assignee of the bug. ___

Re: [PATCH libdrm v2] *-symbol-check: Don't hard-code nm executable

2018-02-23 Thread Eric Engestrom
On Friday, 2018-02-23 15:02:44 +, Eric Engestrom wrote: > On Friday, 2018-02-23 00:25:27 +, Emil Velikov wrote: > > On 19 February 2018 at 16:35, Eric Engestrom > > wrote: > > > From: Heiko Becker > > > > > > Helpful if your nm executable has a prefix based on the > > > architecture, for

  1   2   >