Re: [PATCH 4/5] drm/vblank: Restoring vblank counts after device PM events.

2018-01-19 Thread Rodrigo Vivi
On Fri, Jan 12, 2018 at 09:57:06PM +, Dhinakaran Pandiyan wrote: > The HW frame counter can get reset if device enters a low power state after > vblank interrupts were disabled. This messes up any following vblank count > update as a negative diff (huge unsigned diff) is calculated from the HW

Re: [Intel-gfx] [PATCH 1/5] drm/vblank: Fix return type for drm_vblank_count()

2018-01-19 Thread Rodrigo Vivi
On Fri, Jan 19, 2018 at 04:53:34AM +, Pandiyan, Dhinakaran wrote: > ping for review. sorry for not getting back sooner here. But yey \o/ I finally have dmc and psr working well on my own laptop! so far so good! :) > > Let me know if there's anything that needs to be done, thanks! > > > On

[Bug 104696] line_smooth in the endpoints is not take effect

2018-01-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104696 Bug ID: 104696 Summary: line_smooth in the endpoints is not take effect Product: Mesa Version: unspecified Hardware: x86 (IA32) OS: Linux (All) Status: NEW

[PATCH] drm/ttm: add the missed global memory count update

2018-01-19 Thread Roger He
when ttm_mem_global_alloc_page fails, we should call ttm_mem_global_free_page to update memory count for the ttm pages which already run ttm_mem_global_alloc_page successfully Signed-off-by: Roger He --- drivers/gpu/drm/ttm/ttm_page_alloc.c | 41 ++-- 1 file chang

Re: [RFC] Per file OOM badness

2018-01-19 Thread Christian König
Am 19.01.2018 um 06:39 schrieb He, Roger: Basically the idea is right to me. 1. But we need smaller granularity to control the contribution to OOM badness. Because when the TTM buffer resides in VRAM rather than evict to system memory, we should not take this account into badness. B

Re: [RFC] Per file OOM badness

2018-01-19 Thread Christian König
Am 18.01.2018 um 21:01 schrieb Eric Anholt: Michal Hocko writes: [SNIP] But files are not killable, they can be shared... In other words this doesn't help the oom killer to make an educated guess at all. Maybe some more context would help the discussion? Thanks for doing this. Wanted to rep

Re: [RFC] Per file OOM badness

2018-01-19 Thread Christian König
Am 19.01.2018 um 09:20 schrieb Michal Hocko: On Thu 18-01-18 12:01:32, Eric Anholt wrote: Michal Hocko writes: On Thu 18-01-18 18:00:06, Michal Hocko wrote: On Thu 18-01-18 11:47:48, Andrey Grodzovsky wrote: Hi, this series is a revised version of an RFC sent by Christian König a few years

[Bug 104001] GPU driver hung when start steam client while playback video on Youtube (it occurs on latest staging kernel)

2018-01-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104001 --- Comment #18 from Christian König --- Please stop attaching more and more dmesg with unrelated information to the bug report. The initial one is perfectly sufficient. -- You are receiving this mail because: You are the assignee for the bug.

Re: [PATCH] drm/ttm: fix missing parameter change for ttm_bo_cleanup_refs

2018-01-19 Thread Christian König
Am 19.01.2018 um 07:42 schrieb Roger He: Missed in the patche: dc94777 drm/ttm: enable swapout for reserved BOs during allocation. don't unreserve the BO if it is not reserved by itself. Signed-off-by: Roger He Reviewed-by: Christian König . I already wondered if we shouldn't use "locked" so

Re: [PATCH] drm/ttm: add the missed global memory count update

2018-01-19 Thread Christian König
Am 19.01.2018 um 09:11 schrieb Roger He: when ttm_mem_global_alloc_page fails, we should call ttm_mem_global_free_page to update memory count for the ttm pages which already run ttm_mem_global_alloc_page successfully Signed-off-by: Roger He Reviewed-by: Christian König --- drivers/gpu/dr

Re: [PATCH v2 1/1] drm: add kernel doc for exported gem dmabuf_ops

2018-01-19 Thread Christian König
Am 18.01.2018 um 22:44 schrieb Samuel Li: Signed-off-by: Samuel Li Reviewed-by: Daniel Vetter Reviewed-by: Christian König --- drivers/gpu/drm/drm_prime.c | 88 + 1 file changed, 88 insertions(+) diff --git a/drivers/gpu/drm/drm_prime.c b/dri

Re: [PATCH v3 02/12] clk: sunxi-ng: Change formula for NKMP PLLs

2018-01-19 Thread Jernej Škrabec
Hi, Dne četrtek, 18. januar 2018 ob 11:58:41 CET je Maxime Ripard napisal(a): > Hi, > > On Wed, Jan 17, 2018 at 09:14:11PM +0100, Jernej Skrabec wrote: > > This commit changes formula from this: > > > > Freq = (parent_freq * N * K) / (M * P) > > > > to this: > > > > Freq = (parent_freq / M) *

Re: [RFC] Per file OOM badness

2018-01-19 Thread Michal Hocko
On Thu 18-01-18 12:01:32, Eric Anholt wrote: > Michal Hocko writes: > > > On Thu 18-01-18 18:00:06, Michal Hocko wrote: > >> On Thu 18-01-18 11:47:48, Andrey Grodzovsky wrote: > >> > Hi, this series is a revised version of an RFC sent by Christian König > >> > a few years ago. The original RFC ca

[PATCH] drm/nouveau/mmu: Fix trailing semicolon

2018-01-19 Thread Luis de Bethencourt
The trailing semicolon is an empty statement that does no operation. Removing it since it doesn't do anything. Signed-off-by: Luis de Bethencourt --- Hi, After fixing the same thing in drivers/staging/rtl8723bs/, Joe Perches suggested I fix it treewide [0]. Best regards Luis [0] http://dri

[PATCH v3 09/12] drm/sun4i: Add support for A83T second DE2 mixer

2018-01-19 Thread Jernej Skrabec
It supports 1 VI and 1 UI plane and HW scaling on both planes. Acked-by: Maxime Ripard Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun8i_mixer.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/sun4i/sun8i_mixer.c b/drivers/gpu/drm/sun4i/sun8i_mixer.

[PATCH] drm/msm/mdp5: Fix trailing semicolon

2018-01-19 Thread Luis de Bethencourt
The trailing semicolon is an empty statement that does no operation. Removing it since it doesn't do anything. Signed-off-by: Luis de Bethencourt --- Hi, After fixing the same thing in drivers/staging/rtl8723bs/, Joe Perches suggested I fix it treewide [0]. Best regards Luis [0] http://dri

Re: [RFC] Per file OOM badness

2018-01-19 Thread Michal Hocko
On Thu 18-01-18 11:47:48, Andrey Grodzovsky wrote: > Hi, this series is a revised version of an RFC sent by Christian König > a few years ago. The original RFC can be found at > https://lists.freedesktop.org/archives/dri-devel/2015-September/089778.html > > This is the same idea and I've just adr

Re: [PATCH v1 08/15] drm/i2c: tda998x: Remove duplicate NULL check

2018-01-19 Thread Andy Shevchenko
On Thu, 2018-01-18 at 17:21 +0200, Ville Syrjälä wrote: > On Tue, Oct 31, 2017 at 05:03:43PM +, Russell King - ARM Linux > wrote: > > On Tue, Oct 31, 2017 at 04:21:42PM +0200, Andy Shevchenko wrote: > > > Since i2c_unregister_device() became NULL-aware we may remove > > > duplicate > > > NULL c

[PATCH v3 07/12] drm/sun4i: Add has_channel_0 TCON quirk

2018-01-19 Thread Jernej Skrabec
Some TCONs on newer SoCs doesn't support channel 0, since they are meant to be used only with TV or HDMI encoder. Prepare support for them with adding has_channel_0 quirk. Acked-by: Maxime Ripard Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 41

[PATCH v3 08/12] drm/sun4i: Add support for A83T second TCON

2018-01-19 Thread Jernej Skrabec
This TCON is connected to HDMI encoder. Acked-by: Maxime Ripard Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.c b/drivers/gpu/drm/sun4i/sun4i_tcon.c index 0815c528d08e..adfa39f372cf

[PATCH] drm: amd: Fix trailing semicolons

2018-01-19 Thread Luis de Bethencourt
The trailing semicolon is an empty statement that does no operation. Removing the two instances of them since they don't do anything. Signed-off-by: Luis de Bethencourt --- Hi, After fixing the same thing in drivers/staging/rtl8723bs/, Joe Perches suggested I fix it treewide [0]. Best regards

Re: [RFC] Per file OOM badness

2018-01-19 Thread Michal Hocko
[removed the broken quoting - please try to use an email client which doesn't mess up the qouted text] On Fri 19-01-18 06:01:26, He, Roger wrote: [...] > I think you are misunderstanding here. > Actually for now, the memory in TTM Pools already has mm_shrink which is > implemented in ttm_pool_mm_

[PATCH v3 03/12] drm/bridge/synopsys: dw-hdmi: Enable workaround for v1.32a

2018-01-19 Thread Jernej Skrabec
Allwinner SoCs have dw hdmi controller v1.32a which exhibits same magenta line issue as i.MX6Q and i.MX6DL. Enable workaround for it. Tests show that one iteration is enough. Acked-by: Laurent Pinchart Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 8 +--- 1

[PATCH v3 02/12] clk: sunxi-ng: Change formula for NKMP PLLs

2018-01-19 Thread Jernej Skrabec
This commit changes formula from this: Freq = (parent_freq * N * K) / (M * P) to this: Freq = (parent_freq / M) * N * K / P This improves situation when N is in the range 1-255. PLL parent clock is almost always 24 MHz, which means that for N >= 180 original formula overflows and result becomes

[PATCH v3 10/12] drm/sun4i: Implement A83T HDMI driver

2018-01-19 Thread Jernej Skrabec
A83T has DW HDMI IP block with a custom PHY similar to Synopsys gen2 HDMI PHY. Only video output was tested, while HW also supports audio and CEC. Support for them will be added later. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/Kconfig | 9 + drivers/gpu/drm/sun4i/Makefi

[PATCH v3 01/12] clk: sunxi-ng: Mask nkmp factors when setting register

2018-01-19 Thread Jernej Skrabec
Currently, if one of the factors isn't present, bit 0 gets always set to 1. For example, A83T has NMP PLLs modelled as NKMP PLL without K. Since K is not specified, it's offset, width and shift is 0. Driver assumes that lowest value possible is 1, otherwise we would get division by 0. That situatio

[PATCH] drm/amdkfd: Use ARRAY_SIZE macro in kfd_build_sysfs_node_entry

2018-01-19 Thread Gustavo A. R. Silva
Use ARRAY_SIZE instead of dividing sizeof array with sizeof an element. This issue was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- drivers/gpu/drm/amd/amdkfd/kfd_topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/a

[PATCH v3 11/12] ARM: dts: sun8i: a83t: Add HDMI display pipeline

2018-01-19 Thread Jernej Skrabec
This commit adds all bits necessary for HDMI on A83T - mixer1, tcon1, hdmi, hdmi phy and hdmi pinctrl entries. Signed-off-by: Jernej Skrabec --- arch/arm/boot/dts/sun8i-a83t.dtsi | 119 +- 1 file changed, 118 insertions(+), 1 deletion(-) diff --git a/arch/arm

OLED Display -- Framebuffer driver to DRM driver conversion required???

2018-01-19 Thread B Mithran
Hi, In my project (Arm processor based), we are using 2 displays. Primary display is for Ubuntu 16.04 OS Gui display and secondary display is for status messages, some small OLED display (128x64). This OLED display is framebuffer driver based. My doubt is: 1. Whether I need to convert this frame

Re: [Nouveau] [RFC 0/4] Implement full clockgating for Kepler1 and 2

2018-01-19 Thread Mikko Perttunen
On 01/16/2018 12:06 AM, Lyude Paul wrote: It's here! After a lot of investigation, rewrites, and traces, I present the patch series to implement all known levels of clockgating for Kepler1 and Kepler2 GPUs. Starting with Fermi GPUs (this is probably present on earlier GPUs as well, but with a fa

Re: [GIT PULL] drm/tegra: Changes for v4.16-rc1

2018-01-19 Thread Dmitry Osipenko
On 08.01.2018 18:49, Thierry Reding wrote: > On Mon, Jan 08, 2018 at 04:47:42PM +0300, Dmitry Osipenko wrote: >> On 08.01.2018 15:39, Thierry Reding wrote: >>> On Mon, Jan 08, 2018 at 08:42:50AM +0100, Thierry Reding wrote: On Fri, Jan 05, 2018 at 05:58:17PM +0300, Dmitry Osipenko wrote: >

Re: [PATCH 00/12] Cargo cult cleanup in atomic drivers

2018-01-19 Thread Alexey Brodkin
Hi Laurent, On Wed, 2018-01-17 at 23:55 +0200, Laurent Pinchart wrote: > Hello, > > This patch series removes a few cargo-cult constructs from a set of atomic > drivers. > > Patches 01/12 and 02/12 remove the unneeded .mode_set() and .mode_set_base() > CRTC handlers from the arc and atmel-hlcdc

[PATCH v3 00/12] drm/sun4i: Add A83T HDMI support

2018-01-19 Thread Jernej Skrabec
This patch series implements support for A83T DW HDMI and PHY. Contrary to v1 series, this one is based on latest linux-next, since all needed patches were merged. While exactly this combination of HDMI controller and PHY is not common in Allwinner SoCs, this patch series nevertheless makes ground

[PATCH v3 06/12] dt-bindings: display: sun4i-drm: Add A83T HDMI pipeline

2018-01-19 Thread Jernej Skrabec
This commit adds all necessary compatibles and descriptions needed to implement A83T HDMI pipeline. Mixer is already properly described, so only compatible is added. However, A83T TV TCON, which is connected to HDMI, doesn't have channel 0, contrary to all TCONs currently described. Because of th

[PATCH v3 05/12] drm/bridge/synopsys: dw-hdmi: don't clobber drvdata

2018-01-19 Thread Jernej Skrabec
dw_hdmi shouldn't set drvdata since some drivers might need to store it's own data there. Rework dw_hdmi in a way to return struct dw_hdmi instead to store it in drvdata. This way drivers are responsible to store and pass structure when needed. Idea was taken from the following commit: 8242ecbd597

[PATCH] drm/vmwgfx: Return boolean instead of integer in vmw_fence_obj_signaled

2018-01-19 Thread Gustavo A. R. Silva
Return statements in functions returning bool should use true/false instead of 1/0. This issue was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- drivers/gpu/drm/vmwgfx/vmwgfx_fence.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/d

[PATCH v3 12/12] ARM: dts: sun8i: a83t: Enable HDMI on BananaPi M3

2018-01-19 Thread Jernej Skrabec
BananaPi M3 includes HDMI connector, so add support for it. Signed-off-by: Jernej Skrabec --- arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts | 25 + 1 file changed, 25 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts b/arch/arm/boot/dts/sun8i-a83t-b

Re: [RFC] Per file OOM badness

2018-01-19 Thread Michal Hocko
On Thu 18-01-18 18:00:06, Michal Hocko wrote: > On Thu 18-01-18 11:47:48, Andrey Grodzovsky wrote: > > Hi, this series is a revised version of an RFC sent by Christian König > > a few years ago. The original RFC can be found at > > https://lists.freedesktop.org/archives/dri-devel/2015-September/08

[Bug 103370] `vblank_mode=0 DRI_PRIME=1 glxgears` will introduce GPU lock up on Intel Graphics [8086:5917] + AMD Graphics [1002:6665] (rev c3)

2018-01-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103370 --- Comment #43 from Shih-Yuan Lee --- I can still reduplicate the issue after setting max_sclk to 6 and max_mclk to 8. -- You are receiving this mail because: You are the assignee for the bug.__

[PATCH v3 04/12] drm/bridge/synopsys: dw-hdmi: Export some PHY related functions

2018-01-19 Thread Jernej Skrabec
Parts of PHY code could be useful also for custom PHYs. For example, Allwinner A83T has custom PHY which is probably Synopsys gen2 PHY with few additional memory mapped registers, so most of the Synopsys PHY related code could be reused. Functions exported here are actually not specific to Synopsy

Re: [RFC] Per file OOM badness

2018-01-19 Thread Michel Dänzer
On 2018-01-19 09:39 AM, Christian König wrote: > Am 19.01.2018 um 09:20 schrieb Michal Hocko: >> On Thu 18-01-18 12:01:32, Eric Anholt wrote: >>> Michal Hocko writes: >>> On Thu 18-01-18 18:00:06, Michal Hocko wrote: > On Thu 18-01-18 11:47:48, Andrey Grodzovsky wrote: >> Hi, this ser

[Bug 104683] WebGL crashes the kernel driver and Xorg

2018-01-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104683 --- Comment #3 from Michel Dänzer --- (In reply to Dieter Nützel from comment #2) > If this is unrelated I'll open my own bug. Please do. -- You are receiving this mail because: You are the assignee for the bug.___

Re: vga_switcheroo: MIS-using the DIS command on a muxless system

2018-01-19 Thread Lukas Wunner
On Fri, Jan 19, 2018 at 08:38:20AM +0100, Enrico Mioso wrote: > I forgot one last question. Is there any way I can force the system > to switch to the ATI card without installing a graphical environment, > just out of curiosity? As you've observed correctly, your particular machine isn't capable o

Re: [RFC] Per file OOM badness

2018-01-19 Thread Christian König
Am 19.01.2018 um 10:32 schrieb Michel Dänzer: On 2018-01-19 09:39 AM, Christian König wrote: Am 19.01.2018 um 09:20 schrieb Michal Hocko: On Thu 18-01-18 12:01:32, Eric Anholt wrote: Michal Hocko writes: On Thu 18-01-18 18:00:06, Michal Hocko wrote: On Thu 18-01-18 11:47:48, Andrey Grodzov

Re: [RFC] Per file OOM badness

2018-01-19 Thread roger
On 2018年01月19日 16:25, Michal Hocko wrote: [removed the broken quoting - please try to use an email client which doesn't mess up the qouted text] On Fri 19-01-18 06:01:26, He, Roger wrote: [...] I think you are misunderstanding here. Actually for now, the memory in TTM Pools already has mm_shr

Re: [RFC] Per file OOM badness

2018-01-19 Thread Michel Dänzer
On 2018-01-19 10:58 AM, Christian König wrote: > Am 19.01.2018 um 10:32 schrieb Michel Dänzer: >> On 2018-01-19 09:39 AM, Christian König wrote: >>> Am 19.01.2018 um 09:20 schrieb Michal Hocko: On Thu 18-01-18 12:01:32, Eric Anholt wrote: > Michal Hocko writes: > >> On Thu 18-01-1

[Bug 103443] [CI] igt@ - success - WARN - no modes for connector 76

2018-01-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103443 Marta Löfstedt changed: What|Removed |Added Status|RESOLVED|CLOSED -- You are receiving this mail

[Bug 103443] [CI] igt@ - success - WARN - no modes for connector 76

2018-01-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103443 Marta Löfstedt changed: What|Removed |Added Resolution|--- |WORKSFORME Status|NEW

Re: [RFC v2 1/2] dt-bindings: mipi-dsi: Add info about peripherals with non-DSI control bus

2018-01-19 Thread Philippe CORNU
Hi Archit, Many thanks for this documentation update. Reviewed-by: Philippe Cornu Philippe :-) On 01/18/2018 05:53 AM, Archit Taneja wrote: > Add a section that describes dt-bindings for peripherals that support > MIPI DSI, but have a different bus as the primary control bus, or no > control b

[PATCH v17 00/10] Add backlight helper functions

2018-01-19 Thread Meghana Madhyastha
Move drm helper functions from tinydrm-helpers to linux/backlight for ease of use by callers in other drivers. changes in v17: -set fb_blank along with clearing the BL_CORE_FBBLANK bit -rebase with drm-misc-next -fix checkpath errors/warnings -Make the gpio_backlight issue appear as a comment in

[PATCH v17 01/10] video: backlight: Add helpers to enable and disable backlight

2018-01-19 Thread Meghana Madhyastha
Add helper functions backlight_enable and backlight_disable to enable/disable a backlight device. These helper functions can then be used by different drm and tinydrm drivers to avoid repetition of code and also to enforce a uniform and consistent way to enable/disable a backlight device. Signed-o

[PATCH v17 02/10] drm/tinydrm: Convert tinydrm_enable/disable_backlight to backlight_enable/disable

2018-01-19 Thread Meghana Madhyastha
Remove tinydrm_enable/disable_backlight and let the callers call the more generic backlight_enable/disable helpers Signed-off-by: Meghana Madhyastha --- changes in v17: -rebase with drm-misc-next drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c | 55 -- drivers/gpu/drm/tin

[PATCH v17 03/10] video: backlight: Add of_find_backlight helper in backlight.c

2018-01-19 Thread Meghana Madhyastha
Add of_find_backlight, a helper function which is a generic version of tinydrm_of_find_backlight that can be used by other drivers to avoid repetition of code and simplify things. Signed-off-by: Meghana Madhyastha --- changes in v17: -rebase with drm-misc-next -convert st7735r callers from tinydr

Re: [RFC v2 2/2] dt-bindings: mipi-dsi: Add dual-channel DSI related info

2018-01-19 Thread Philippe CORNU
Hi Archit, Many thanks for this documentation add-on. I wonder if an extra example of "2 DSI hosts driving a dual-channel DSI peripheral controlled by the mipi bus" could be useful? well, I am not really convinced it is necessary and maybe this extra example could be added later when someone w

[PATCH v17 04/10] drm/tinydrm: Replace tinydrm_of_find_backlight with of_find_backlight

2018-01-19 Thread Meghana Madhyastha
Remove tinydrm_of_find_backlight from tinydrm-helpers.c. We now have a generic of_find_backlight defined in backlight.c. Let the callers of tinydrm_of_find_backlight call of_find_backlight. Also, remove select BACKLIGHT_LCD_SUPPORT and select BACKLIGHT_CLASS_DEVICE from tinydrm/Kconfig as it is a h

[PATCH v17 05/10] video: backlight: Add devres versions of of_find_backlight

2018-01-19 Thread Meghana Madhyastha
Add devm_of_find_backlight and the corresponding release function because some drivers use devres versions of functions for acquiring device resources. Signed-off-by: Meghana Madhyastha --- changes in v17: -fix checkpath errors/warnings -rename devm_backlight_put to devm_backlight_release dri

[PATCH v17 06/10] drm/tinydrm: Call devres version of of_find_backlight

2018-01-19 Thread Meghana Madhyastha
Call devm_of_find_backlight (the devres version) instead of of_find_backlight. Signed-off-by: Meghana Madhyastha --- changes in v17: -convert st7735r callers from tinydrm specific helpers to new generic backlight helpers drivers/gpu/drm/tinydrm/mi0283qt.c | 2 +- drivers/gpu/drm/tinydrm/st7735

[PATCH v17 07/10] drm/panel: Use backlight_enable/disable helpers

2018-01-19 Thread Meghana Madhyastha
Use backlight_enable/disable helpers instead of changing the property and calling backlight_update_status for cleaner and simpler code and also to avoid repetitions. Signed-off-by: Meghana Madhyastha --- changes in v17: -remove redundant NULL check drivers/gpu/drm/panel/panel-innolux-p079zca.c

[PATCH v17 08/10] drm/omapdrm: Use backlight_enable/disable helpers

2018-01-19 Thread Meghana Madhyastha
Use backlight_enable/disable helpers instead of changing the property and calling backlight_update_status for cleaner and simpler code and also to avoid repetitions. Signed-off-by: Meghana Madhyastha --- changes in v17: -remove redundant NULL check drivers/gpu/drm/omapdrm/displays/panel-dpi.c |

[PATCH v17 09/10] drm/panel: Use of_find_backlight helper

2018-01-19 Thread Meghana Madhyastha
Replace of_find_backlight_by_node and of the code around it with of_find_backlight helper to avoid repetition of code. Signed-off-by: Meghana Madhyastha --- changes in v17: -remove put_device() to avoid double put as we are using the devm version drivers/gpu/drm/panel/panel-innolux-p079zca.c

[PATCH v17 10/10] drm/omapdrm: Use of_find_backlight helper

2018-01-19 Thread Meghana Madhyastha
Replace of_find_backlight_by_node and of the code around it with of_find_backlight helper to avoid repetition of code. Signed-off-by: Meghana Madhyastha --- changes in v17: -remove put_device() to avoid double put as we are using the devm version drivers/gpu/drm/omapdrm/displays/panel-dpi.c |

Re: [PATCH v17 01/10] video: backlight: Add helpers to enable and disable backlight

2018-01-19 Thread Daniel Thompson
On Fri, Jan 19, 2018 at 10:39:16AM +, Meghana Madhyastha wrote: > Add helper functions backlight_enable and backlight_disable to > enable/disable a backlight device. These helper functions can > then be used by different drm and tinydrm drivers to avoid > repetition of code and also to enforce

[PATCH] drm/panel: otm8009a: Adopt SPDX identifiers

2018-01-19 Thread Philippe Cornu
Add SPDX identifiers to OriseTech OTM8009a panel driver. Signed-off-by: Philippe Cornu --- drivers/gpu/drm/panel/panel-orisetech-otm8009a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c b/drivers/gpu/drm/panel/panel-oris

Re: [PATCH v17 03/10] video: backlight: Add of_find_backlight helper in backlight.c

2018-01-19 Thread Daniel Thompson
On Fri, Jan 19, 2018 at 10:42:15AM +, Meghana Madhyastha wrote: > Add of_find_backlight, a helper function which is a generic version > of tinydrm_of_find_backlight that can be used by other drivers to avoid > repetition of code and simplify things. > > Signed-off-by: Meghana Madhyastha Didn

Re: [PATCH v17 05/10] video: backlight: Add devres versions of of_find_backlight

2018-01-19 Thread Daniel Thompson
On Fri, Jan 19, 2018 at 10:44:33AM +, Meghana Madhyastha wrote: > Add devm_of_find_backlight and the corresponding release > function because some drivers use devres versions of functions > for acquiring device resources. > > Signed-off-by: Meghana Madhyastha Acked-by: Daniel Thompson > -

Re: [PATCH v17 00/10] Add backlight helper functions

2018-01-19 Thread Daniel Thompson
On Fri, Jan 19, 2018 at 10:37:58AM +, Meghana Madhyastha wrote: > Move drm helper functions from tinydrm-helpers to linux/backlight for > ease of use by callers in other drivers. > > changes in v17: > -set fb_blank along with clearing the BL_CORE_FBBLANK bit > -rebase with drm-misc-next > -fi

[Bug 198513] [DRM] amdgpu fails to load firmware on boot

2018-01-19 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=198513 Matt (m.mcn...@gmail.com) changed: What|Removed |Added Status|NEW |RESOLVED Resolution|-

[Bug 198513] [DRM] amdgpu fails to load firmware on boot

2018-01-19 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=198513 Matt (m.mcn...@gmail.com) changed: What|Removed |Added Resolution|CODE_FIX|INVALID -- You are receiving

Re: [RFC] Per file OOM badness

2018-01-19 Thread Christian König
Am 19.01.2018 um 11:40 schrieb Michal Hocko: On Fri 19-01-18 09:39:03, Christian König wrote: Am 19.01.2018 um 09:20 schrieb Michal Hocko: [...] OK, in that case I would propose a different approach. We already have rss_stat. So why do not we simply add a new counter there MM_KERNELPAGES and c

[PATCH 2/3] dt-bindings: etnaviv: change clocks to be optional

2018-01-19 Thread Lucas Stach
While the clocks were documented as required, the driver always treated them as optional and there are existing Marvell Dove DTs, which would break if changed to required. Accept reality and document the clocks as optional. Signed-off-by: Lucas Stach --- .../devicetree/bindings/display/etnaviv/e

[PATCH 1/3] drm/etnaviv: add generic compatible for the GPU subsystem node

2018-01-19 Thread Lucas Stach
With different SoCs gaining support for etnaviv it doesn't make much sense to add specific compatibles for the generic GPU subsystem node, which is only used to find all GPU core nodes. Add a generic compatible, that can be used by all new implementations. Signed-off-by: Lucas Stach --- Documen

[Bug 98520] System randomly crashes / freezes while playing certain games

2018-01-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98520 --- Comment #40 from wbr...@gmail.com --- Does it still occur with recent distros like Ubuntu 17.10? -- You are receiving this mail because: You are the assignee for the bug.___ dri-devel mailing list

Re: [PATCH] drm/vmwgfx: Return boolean instead of integer in vmw_fence_obj_signaled

2018-01-19 Thread Thomas Hellstrom
On 01/19/2018 01:02 AM, Gustavo A. R. Silva wrote: Return statements in functions returning bool should use true/false instead of 1/0. This issue was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva Reviewed-by: Thomas Hellström I'll queue this for 4.17. Thanks, Tho

[PATCH 3/3] dt-bindings: etnaviv: add slave interface clock

2018-01-19 Thread Lucas Stach
Newer GPU cores added a new clock input, which allows to gate the slave (AHB) interface independently from other parts of the GPU. Add it to the supported clocks. Signed-off-by: Lucas Stach --- Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt | 3 ++- 1 file changed, 2 insertion

Re: [PATCH v17 01/10] video: backlight: Add helpers to enable and disable backlight

2018-01-19 Thread Lee Jones
On Fri, 19 Jan 2018, Daniel Thompson wrote: > On Fri, Jan 19, 2018 at 10:39:16AM +, Meghana Madhyastha wrote: > > Add helper functions backlight_enable and backlight_disable to > > enable/disable a backlight device. These helper functions can > > then be used by different drm and tinydrm drive

[Bug 98520] System randomly crashes / freezes while playing certain games

2018-01-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98520 --- Comment #41 from MirceaKitsune --- (In reply to wbrana from comment #40) Hi. I do not run Ubuntu, just openSUSE Tumbleweed. However they finally upgraded to Mesa 17.3.2 recently, so I may test more games soon and see if there are any crashes

[Bug 104216] Firefox quirks (black and/or white squares)

2018-01-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104216 --- Comment #9 from Germano Massullo --- Created attachment 136846 --> https://bugs.freedesktop.org/attachment.cgi?id=136846&action=edit LIBGL_DEBUG=verbose firefox -- You are receiving this mail because: You are the assignee for the bug.___

[Bug 104216] Firefox quirks (black and/or white squares)

2018-01-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104216 --- Comment #10 from Germano Massullo --- Created attachment 136847 --> https://bugs.freedesktop.org/attachment.cgi?id=136847&action=edit Xorg.0.log -- You are receiving this mail because: You are the assignee for the bug.___

Re: [PATCH 00/12] Cargo cult cleanup in atomic drivers

2018-01-19 Thread Benjamin Gaignard
2018-01-17 22:55 GMT+01:00 Laurent Pinchart : > Hello, > > This patch series removes a few cargo-cult constructs from a set of atomic > drivers. > > Patches 01/12 and 02/12 remove the unneeded .mode_set() and .mode_set_base() > CRTC handlers from the arc and atmel-hlcdc drivers. > > Patches 03/12 t

Re: [RFC] Per file OOM badness

2018-01-19 Thread Michel Dänzer
On 2018-01-19 11:02 AM, Michel Dänzer wrote: > On 2018-01-19 10:58 AM, Christian König wrote: >> Am 19.01.2018 um 10:32 schrieb Michel Dänzer: >>> On 2018-01-19 09:39 AM, Christian König wrote: Am 19.01.2018 um 09:20 schrieb Michal Hocko: > OK, in that case I would propose a different appr

[PATCH v6 2/6] iommu/arm-smmu: Add pm_runtime/sleep ops

2018-01-19 Thread Vivek Gautam
From: Sricharan R The smmu needs to be functional only when the respective master's using it are active. The device_link feature helps to track such functional dependencies, so that the iommu gets powered when the master device enables itself using pm_runtime. So by adapting the smmu driver for r

Re: [RFC] Per file OOM badness

2018-01-19 Thread Michal Hocko
On Fri 19-01-18 09:39:03, Christian König wrote: > Am 19.01.2018 um 09:20 schrieb Michal Hocko: [...] > > OK, in that case I would propose a different approach. We already > > have rss_stat. So why do not we simply add a new counter there > > MM_KERNELPAGES and consider those in oom_badness? The ru

[PATCH v6 5/6] iommu/arm-smmu: Add support for qcom,smmu-v2 variant

2018-01-19 Thread Vivek Gautam
qcom,smmu-v2 is an arm,smmu-v2 implementation with specific clock and power requirements. This smmu core is used with multiple masters on msm8996, viz. mdss, video, etc. Add bindings for the same. Signed-off-by: Vivek Gautam --- .../devicetree/bindings/iommu/arm,smmu.txt | 43 +++

Re: vga_switcheroo: MIS-using the DIS command on a muxless system

2018-01-19 Thread Enrico Mioso
Thank you very very much. Sorry for the disturbance, to all. Enrico ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [RFC] Per file OOM badness

2018-01-19 Thread Michal Hocko
On Fri 19-01-18 13:13:51, Michal Hocko wrote: > On Fri 19-01-18 12:37:51, Christian König wrote: > [...] > > The per file descriptor badness is/was just the much easier approach to > > solve the issue, because the drivers already knew which client is currently > > using which buffer objects. > > >

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

2018-01-19 Thread Vivek Gautam
While handling the concerned iommu, there should not be a need to power control the drm devices from iommu interface. If these drm devices need to be powered around this time, the respective drivers should take care of this. Replace the pm_runtime_get/put_sync() with pm_runtime_get/put_suppliers()

[PATCH v6 1/6] base: power: runtime: Export pm_runtime_get/put_suppliers

2018-01-19 Thread Vivek Gautam
The device link allows the pm framework to tie the supplier and consumer. So, whenever the consumer is powered-on the supplier is powered-on first. There are however cases in which the consumer wants to power-on the supplier, but not itself. E.g., A Graphics or multimedia driver wants to power-on

Re: [RFC] Per file OOM badness

2018-01-19 Thread Michal Hocko
On Fri 19-01-18 12:37:51, Christian König wrote: [...] > The per file descriptor badness is/was just the much easier approach to > solve the issue, because the drivers already knew which client is currently > using which buffer objects. > > I of course agree that file descriptors can be shared bet

[PATCH v6 0/6] iommu/arm-smmu: Add runtime pm/sleep support

2018-01-19 Thread Vivek Gautam
This series provides the support for turning on the arm-smmu's clocks/power domains using runtime pm. This is done using the recently introduced device links patches, which lets the smmu's runtime to follow the master's runtime pm, so the smmu remains powered only when the masters use it. It also

[PATCH v6 3/6] iommu/arm-smmu: Invoke pm_runtime during probe, add/remove device

2018-01-19 Thread Vivek Gautam
From: Sricharan R The smmu device probe/remove and add/remove master device callbacks gets called when the smmu is not linked to its master, that is without the context of the master device. So calling runtime apis in those places separately. Signed-off-by: Sricharan R [vivek: Cleanup pm runtim

[PATCH v6 4/6] iommu/arm-smmu: Add the device_link between masters and smmu

2018-01-19 Thread Vivek Gautam
From: Sricharan R Finally add the device link between the master device and smmu, so that the smmu gets runtime enabled/disabled only when the master needs it. This is done from add_device callback which gets called once when the master is added to the smmu. Signed-off-by: Sricharan R --- driv

[Bug 104216] Firefox quirks (black and/or white squares)

2018-01-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104216 --- Comment #11 from Germano Massullo --- Disabling Firefox hardware acceleration seems to work as bug workaround https://support.mozilla.org/en-US/kb/upgrade-graphics-drivers-use-hardware-acceleration#w_turning-off-hardware-acceleration -- Yo

Re: [PATCH 07/12] drm: arm: malidp: Use drm_atomic_helper_shutdown() to disable planes on removal

2018-01-19 Thread Liviu Dudau
Hi Laurent, On Wed, Jan 17, 2018 at 11:55:30PM +0200, Laurent Pinchart wrote: > The plane cleanup handler currently calls drm_plane_helper_disable(), > which is a legacy helper function. Replace it with a call to > drm_atomic_helper_shutdown() at removal time. > > Signed-off-by: Laurent Pinchart

[Bug 104412] RX 460 HDMI 4k 60fps not working, DisplayPort is.

2018-01-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104412 --- Comment #10 from S.H. --- (In reply to Peter Weber from comment #8) > Hello! > > I'm using a LG 27UD88-W, which featurese 1 x DP, 1 x USB-C (DP) and 2 x > HDMI. In my desktop is a Radeon RX 560 which offers DP "1.4" and HDMI "2.0b" > and I

Re: [RFC] Per file OOM badness

2018-01-19 Thread Michel Dänzer
On 2018-01-19 12:37 PM, Christian König wrote: > Am 19.01.2018 um 11:40 schrieb Michal Hocko: >> On Fri 19-01-18 09:39:03, Christian König wrote: >>> Am 19.01.2018 um 09:20 schrieb Michal Hocko: >> [...] OK, in that case I would propose a different approach. We already have rss_stat. So w

Re: [RFC] Per file OOM badness

2018-01-19 Thread Christian König
Am 19.01.2018 um 13:20 schrieb Michal Hocko: On Fri 19-01-18 13:13:51, Michal Hocko wrote: On Fri 19-01-18 12:37:51, Christian König wrote: [...] The per file descriptor badness is/was just the much easier approach to solve the issue, because the drivers already knew which client is currently u

[Bug 104001] GPU driver hung when start steam client while playback video on Youtube (it occurs on latest staging kernel)

2018-01-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104001 --- Comment #19 from mikhail.v.gavri...@gmail.com --- I am sorry for misunderstanding. Every time when I see new commits in branch I hope that this issue may be fixed. And every time I rebuild kernel for testing. And after it I every time I repro

[PATCH 0/3] Add R-Car V3M (R8A77970) support to the R-Car LVDS driver

2018-01-19 Thread Sergei Shtylyov
Hello! Here's the set of 3 patches against the 'drm-next' branch of David Airlie's 'linux.git' repo plus the patch fixing LVDS startup for R-Car gen2/3 and Laurent Picnahrt's patches creating the R-Car LVDS bridge driver posted recently. The main purpose of these patches is to add the R-Car V3M (R

[PATCH 1/3] drm: rcar-du: lvds: refactor LVDS startup

2018-01-19 Thread Sergei Shtylyov
After the recent corrections to the R-Car gen2/3 LVDS startup code, already similar enough at their ends rcar_lvds_enable_gen{2|3}() started asking for a merge and it's becoming actually necessary with the addition of the R-Car V3M (R8A77970) support -- this gen3 SoC has gen2-like LVDPLLCR layout.

[PATCH 2/3] DT: display: renesas,lvds: document R8A77970 bindings

2018-01-19 Thread Sergei Shtylyov
Document the R-Car V3M (R8A77970) SoC in the R-Car LVDS bindings. Signed-off-by: Sergei Shtylyov --- Documentation/devicetree/bindings/display/bridge/renesas,lvds.txt |1 + 1 file changed, 1 insertion(+) Index: linux/Documentation/devicetree/bindings/display/bridge/renesas,lvds.txt ===

  1   2   >