Re: drm/rcar-du: Adjust 14 checks for null pointers

2017-10-24 Thread SF Markus Elfring
>> The script “checkpatch.pl” pointed information out like the following. >> >> Comparison to NULL could be written !… >> >> Thus fix the affected source code places. >> > > This one is fine This kind of feedback is nice. > except for the commit message. Would you like to support Unicode chara

Re: [PATCH 1/2] dma-buf: keep only not signaled fence in reservation_object_add_shared_replace

2017-10-24 Thread Chunming Zhou
On 2017年10月24日 21:55, Christian König wrote: From: Christian König The amdgpu issue to also need signaled fences in the reservation objects should be fixed by now. Optimize the list by keeping only the not signaled yet fences around. Signed-off-by: Christian König --- drivers/dma-buf/res

Re: Clarification for approaches around exception handling

2017-10-24 Thread SF Markus Elfring
> But anyways I guess other people sometimes disagree with me. Am I one of them? ;-) > Unwinding is for when you allocate five things in a row. This is a general issue. I find that it is also needed in this function as usual. > You have to undo four if the last allocation fails. Concrete

[PATCH 2/3] drm/fb: add support for not enabling fbcon on non-desktop displays

2017-10-24 Thread Dave Airlie
From: Dave Airlie We don't want fbcon to get used on non-desktop dislays, don't pass them as enabled connectors to the fb helper setup. This prevents my HMD from getting disorted fbcon, and from affecting other displays console. Signed-off-by: Dave Airlie --- drivers/gpu/drm/drm_fb_helper.c |

[PATCH 3/3] drm/edid: quirk HTC vive headset as non-desktop.

2017-10-24 Thread Dave Airlie
From: Dave Airlie This uses the EDID info from my HTC Vive to mark it as non-desktop. Signed-off-by: Dave Airlie --- drivers/gpu/drm/drm_edid.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index 1e24d5d9..2e8fb51 100644 --- a/dr

[PATCH 1/3] drm: add connector info/property for non-desktop displays

2017-10-24 Thread Dave Airlie
From: Dave Airlie This adds the infrastructure needed to quirk displays using edid and to mark them as non-desktop to denote that userspace shouldn't display a standard desktop on them. A non-desktop display is one which doesn't work like a normal rectangular monitor or requires some transformat

Re: [PATCH 2/2] drm/rcar-du: Adjust 14 checks for null pointers

2017-10-24 Thread Dan Carpenter
On Tue, Oct 24, 2017 at 06:02:30PM +0200, SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 24 Oct 2017 17:47:37 +0200 > MIME-Version: 1.0 > Content-Type: text/plain; charset=UTF-8 > Content-Transfer-Encoding: 8bit > > The script “checkpatch.pl” pointed information out like the followi

Re: [PATCH 1/2] drm/rcar-du: Use common error handling code in rcar_du_encoders_init()

2017-10-24 Thread Dan Carpenter
This is a subtle thing but my preference on this type of thing is the way the original code is written. I'm still slightly annoyed that someone once made me rewrite a patch using the new style... But anyways I guess other people sometimes disagree with me. Unwinding is for when you allocate five

Re: [PATCH] drm/amd/display: assign fb_location only if bo is pinned

2017-10-24 Thread S, Shirish
On 10/25/2017 1:13 AM, Andrey Grodzovsky wrote: On 10/24/2017 12:06 PM, Michel Dänzer wrote: On 24/10/17 06:00 PM, Andrey Grodzovsky wrote: On 10/24/2017 11:43 AM, Michel Dänzer wrote: On 24/10/17 04:58 PM, Andrey Grodzovsky wrote: On 10/24/2017 10:36 AM, S, Shirish wrote: On 10/24/2017

[Bug 103370] `DRI_PRIME=1 glxgears -info` halts the system with Intel Graphics [8086:5917] + AMD Graphics [1002:6665].

2017-10-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103370 --- Comment #18 from Shih-Yuan Lee --- (In reply to Mike Lothian from comment #16) > Do you also see the issue with amdgpu rather than using the radeon kernel > driver? amdgpu doesn't support on this AMD graphics with the kernel parameters "amd

[Bug 103370] `DRI_PRIME=1 glxgears -info` halts the system with Intel Graphics [8086:5917] + AMD Graphics [1002:6665].

2017-10-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103370 --- Comment #17 from Shih-Yuan Lee --- Created attachment 135027 --> https://bugs.freedesktop.org/attachment.cgi?id=135027&action=edit Xorg.0.log (In reply to Mike Lothian from comment #15) > Are there any changes when you boot the system wit

[PATCH v3 6/6] arm64: dts: rockchip: add mipi_dsi1 support for rk3399

2017-10-24 Thread Nickey Yang
This patch adds the mipi_dsi1 related needed information. e.g.: interrupts, grf, clocks, ports and so on. Signed-off-by: Nickey Yang --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 39 1 file changed, 39 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3

[PATCH v3 4/6] drm/rockchip/dsi: add dual mipi channel support

2017-10-24 Thread Nickey Yang
This patch add dual mipi channel support: 1.add definition of dsi1 register and grf operation. 2.dsi0 and dsi1 will work in master and slave mode when driving dual mipi panel. Signed-off-by: Nickey Yang --- drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 377 drivers/g

[PATCH v3 5/6] dt-bindings: add the rockchip, dual-channel for dw-mipi-dsi

2017-10-24 Thread Nickey Yang
Configure dsi slave channel when driving a panel which needs 2 DSI links. Signed-off-by: Nickey Yang --- .../devicetree/bindings/display/rockchip/dw_mipi_dsi_rockchip.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/display/rockchip/dw_mipi_dsi_r

[PATCH v3 3/6] drm/rockchip/dsi: correct Feedback divider setting

2017-10-24 Thread Nickey Yang
This patch correct Feedback divider setting: 1、Set Feedback divider [8:5] when HIGH_PROGRAM_EN 2、Due to the use of a "by 2 pre-scaler," the range of the feedback multiplication Feedback divider is limited to even division numbers, and Feedback divider must be greater than 12, less than 1000. 3、Make

[PATCH v3 2/6] drm/rockchip/dsi: correct phy parameter setting

2017-10-24 Thread Nickey Yang
As MIPI PHY document show, icpctrl<3..0> and lpfctrl<5..0> should depend on frequency,so fix it. Reviewed-by: Sean Paul Reviewed-by: Matthias Kaehlcke Signed-off-by: Nickey Yang --- drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 98 -- 1 file changed, 70 insertions(+)

[PATCH v3 1/6] drm/rockchip/dsi: Define and use macros for PHY register addresses

2017-10-24 Thread Nickey Yang
Replace the hardcoded register address numerical values with macros to clarify the code. Signed-off-by: Nickey Yang --- drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 129 ++--- 1 file changed, 85 insertions(+), 44 deletions(-) diff --git a/drivers/gpu/drm/rockchip/dw-mipi

Re: [RFC PATCH hwc] drm_hwcomposer: provide a common gralloc handle definition

2017-10-24 Thread Chih-Wei Huang
2017-10-25 7:40 GMT+08:00 Rob Herring : > EGL, gralloc, and HWC must all have a common definition of fd's and int's > in native_handle_t to share the fd and width, height, format, etc. > of a dmabuf. > > Move the definition into HWC so we aren't dependent on a specific gralloc > implementation and

Re: [PATCH] drm_hwcomposer: remove unnecessary external includes

2017-10-24 Thread Chih-Wei Huang
2017-10-25 8:06 GMT+08:00 Rob Herring : > Linking to libraries will add necessary include paths, so we don't need to > list them explicitly. > > Still need libsync for sw_sync.h until this dependency is removed. > > Signed-off-by: Rob Herring > --- > Android.mk | 6 +- > 1 file changed, 1 ins

[Bug 91375] [radeonsi] [drm:si_dpm_set_power_state [radeon]] *ERROR* si_restrict_performance_levels_before_switch failed

2017-10-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=91375 --- Comment #12 from hkian...@gmail.com --- Also experiencing this bug on a fresh install of Ubuntu 17.10. I'm using a Radeon HD 7850. harry@harry-ubuntu:~$ uname -a Linux harry-ubuntu 4.13.0-16-generic #19-Ubuntu SMP Wed Oct 11 18:35:14 UTC 2017

[PATCH] drm_hwcomposer: remove unnecessary external includes

2017-10-24 Thread Rob Herring
Linking to libraries will add necessary include paths, so we don't need to list them explicitly. Still need libsync for sw_sync.h until this dependency is removed. Signed-off-by: Rob Herring --- Android.mk | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Android.mk b/And

[RFC PATCH hwc] drm_hwcomposer: provide a common gralloc handle definition

2017-10-24 Thread Rob Herring
EGL, gralloc, and HWC must all have a common definition of fd's and int's in native_handle_t to share the fd and width, height, format, etc. of a dmabuf. Move the definition into HWC so we aren't dependent on a specific gralloc implementation and so we don't have to create an importer just for dif

Re: [PATCH] drm/framebuffer: Add framebuffer debugfs file

2017-10-24 Thread Kristian Høgsberg
On Tue, Oct 24, 2017 at 9:39 AM, Noralf Trønnes wrote: > > Den 23.10.2017 23.32, skrev Kristian Høgsberg: >> >> On Mon, Oct 23, 2017 at 9:47 AM, Noralf Trønnes >> wrote: >>> >>> Add debugfs file that dumps info about the framebuffers and its planes. >>> Also dump info about any connected gem obje

Re: [PATCH] drm/amd/display: assign fb_location only if bo is pinned

2017-10-24 Thread Andrey Grodzovsky
On 10/24/2017 12:06 PM, Michel Dänzer wrote: On 24/10/17 06:00 PM, Andrey Grodzovsky wrote: On 10/24/2017 11:43 AM, Michel Dänzer wrote: On 24/10/17 04:58 PM, Andrey Grodzovsky wrote: On 10/24/2017 10:36 AM, S, Shirish wrote: On 10/24/2017 7:48 PM, Andrey Grodzovsky wrote: On 10/24/2017 09

RE: [PATCH] drm/i915/gvt: Use common error handling code in shadow_workload_ring_buffer()

2017-10-24 Thread Wang, Zhi A
Thanks for the patch! Actually I would prefer that we can have different error messages here. E.g. like copy_gma_to_hva fail in which part of ring buffer. Or we can directly remove the error message since usually if it fails it means a bug of MPT module when GVT-g is accessing the guest memory b

[PATCH 2/2] drm/tegra: Use an error code directly in tegra_output_probe()

2017-10-24 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 24 Oct 2017 19:21:24 +0200 Return the code "-EPROBE_DEFER" directly in one if branch without assigning it to the local variable "err" before. Signed-off-by: Markus Elfring --- drivers/gpu/drm/tegra/output.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)

[PATCH 1/2] drm/tegra: Use common error handling code in tegra_output_probe()

2017-10-24 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 24 Oct 2017 19:12:09 +0200 Add a jump target so that a bit of exception handling can be better reused at the end of this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/gpu/drm/tegra/output.c | 10 ++

[PATCH 0/2] GPU-DRM-Tegra: Fine-tuning for tegra_output_probe()

2017-10-24 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 24 Oct 2017 19:29:39 +0200 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Use common error handling code Use an error code directly drivers/gpu/drm/tegra/output.c | 13 +++-- 1 file changed, 7 ins

[Bug 193651] Amdgpu error messages at boot with Amd RX460

2017-10-24 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=193651 --- Comment #27 from Milo (milo...@gmail.com) --- i have added it /etc/default/grub as follows: GRUB_CMDLINE_LINUX_DEFAULT="nointremap quiet amdgpu.audio=0" and then ran update-grub however it still takes more than 5 minutes to boot On Mon, Oct

[PATCH v2 1/2] drm: drm_vblank_cleanup: WARN when refcount > 0

2017-10-24 Thread PrasannaKumar Muralidharan
Warn when refcount > 0 in drm_vblank_cleanup. Signed-off-by: PrasannaKumar Muralidharan --- No change in v2. drivers/gpu/drm/drm_vblank.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/drm_vblank.c b/drivers/gpu/drm/drm_vblank.c index 70f2b95..3e61aeb 100644 --- a/drivers

[PATCH v2 2/2] Test case for drm_vblank_cleanup refcount validation patch

2017-10-24 Thread PrasannaKumar Muralidharan
In i915 driver unload drm_vblank_get is added to test whether drm_vblank_cleanup refcount validation patch is working. Signed-off-by: PrasannaKumar Muralidharan --- Changes in v2: Use drm_crtc_vblank_get instead of _put. In previous patch _put was wrongly used. drivers/gpu/drm/i915/i915_drv.c |

Re: [Outreachy kernel] [PATCH v14 2/3] drm/tinydrm: Move tinydrm_of_find_backlight to backlight.c

2017-10-24 Thread Noralf Trønnes
Den 24.10.2017 17.42, skrev Sean Paul: On Sat, Oct 21, 2017 at 05:27:33PM +0530, Meghana Madhyastha wrote: Rename tinydrm_of_find_backlight to of_find_backlight and move it to linux/backlight.c so that it can be used by other drivers. Signed-off-by: Meghana Madhyastha --- Changes in v14: -s

Re: [PATCH] drm/framebuffer: Add framebuffer debugfs file

2017-10-24 Thread Noralf Trønnes
Den 23.10.2017 23.32, skrev Kristian Høgsberg: On Mon, Oct 23, 2017 at 9:47 AM, Noralf Trønnes wrote: Add debugfs file that dumps info about the framebuffers and its planes. Also dump info about any connected gem object(s). Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_debugfs.c

Re: [PATCH 06/10] clk: sunxi-ng: sun4i: Export video PLLs

2017-10-24 Thread Rob Herring
On Tue, Oct 17, 2017 at 08:18:03PM +0800, Chen-Yu Tsai wrote: > From: Jonathan Liu > > The video PLLs are used directly by the HDMI controller. Export them so > that we can use them in our DT node. > > Signed-off-by: Jonathan Liu > Signed-off-by: Chen-Yu Tsai > --- > drivers/clk/sunxi-ng/ccu-

Re: [PATCH 05/10] drm/sun4i: Add support for A20 display pipeline components

2017-10-24 Thread Rob Herring
On Tue, Oct 17, 2017 at 08:18:02PM +0800, Chen-Yu Tsai wrote: > From: Jonathan Liu > > The A20 display pipeline has 2 frontends, 2 backends, and 2 TCONs. > This patch adds support (or a compatible string in the frontend's > case) for these components. > > The TCONs support directly outputting to

Re: [PATCH 05/10] drm/sun4i: Add support for A20 display pipeline components

2017-10-24 Thread Rob Herring
On Tue, Oct 17, 2017 at 08:18:02PM +0800, Chen-Yu Tsai wrote: > From: Jonathan Liu > > The A20 display pipeline has 2 frontends, 2 backends, and 2 TCONs. > This patch adds support (or a compatible string in the frontend's > case) for these components. > > The TCONs support directly outputting to

Re: [PATCH 04/10] drm/sun4i: Add support for A10 display pipeline components

2017-10-24 Thread Rob Herring
On Tue, Oct 17, 2017 at 08:18:01PM +0800, Chen-Yu Tsai wrote: > The A10 display pipeline has 2 frontends, 2 backends, and 2 TCONs. > This patch adds support (or a compatible string in the frontend's > case) for these components. > > The TCONs support directly outputting to CPU/RGB/LVDS LCD panels,

Re: [PATCH 03/10] drm/sun4i: hdmi: Support HDMI controller on A10

2017-10-24 Thread Rob Herring
On Tue, Oct 17, 2017 at 08:18:00PM +0800, Chen-Yu Tsai wrote: > The HDMI controller in the A10 SoC is the same as the one currently > supported in the A10s. It has slightly different setup parameters. > Since these parameters are not thoroughly understood, we add support > for this variant by copyi

Re: [PATCH] drm/i915/selftests: Convert timers to use timer_setup()

2017-10-24 Thread Chris Wilson
Quoting Kees Cook (2017-10-24 16:13:44) > In preparation for unconditionally passing the struct timer_list pointer to > all timer callbacks, switch to using the new timer_setup() and from_timer() > to pass the timer pointer explicitly. > > Cc: Jani Nikula > Cc: Joonas Lahtinen > Cc: Rodrigo Vivi

Re: [PATCH] drm/amd/display: assign fb_location only if bo is pinned

2017-10-24 Thread Andrey Grodzovsky
On 10/24/2017 11:43 AM, Michel Dänzer wrote: [ Adding the dri-devel list ] On 24/10/17 04:58 PM, Andrey Grodzovsky wrote: On 10/24/2017 10:36 AM, S, Shirish wrote: On 10/24/2017 7:48 PM, Andrey Grodzovsky wrote: On 10/24/2017 09:51 AM, S, Shirish wrote: From: Shirish S On some systems am

Re: [PATCH v6 2/2] staging: ion: create one device entry per heap

2017-10-24 Thread Jordan Crouse
On Mon, Oct 23, 2017 at 05:55:37PM +0200, Benjamin Gaignard wrote: > Instead a getting only one common device "/dev/ion" for > all the heaps this patch allow to create one device > entry ("/dev/ionX") per heap. > Getting an entry per heap could allow to set security rules > per heap and global ones

Re: [PATCH 2/2] drm/i915/dp: Use common error handling code in intel_dp_sink_crc_stop()

2017-10-24 Thread Jani Nikula
On Tue, 24 Oct 2017, SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 24 Oct 2017 15:40:47 +0200 > > Adjust jump targets so that a specific error code assignment > will be in the implementation only at the end of this function. This is not an issue that needs to be "fixed". > > This

Re: [PATCH] drm/amd/display: assign fb_location only if bo is pinned

2017-10-24 Thread Michel Dänzer
On 24/10/17 06:00 PM, Andrey Grodzovsky wrote: > On 10/24/2017 11:43 AM, Michel Dänzer wrote: >> On 24/10/17 04:58 PM, Andrey Grodzovsky wrote: >>> On 10/24/2017 10:36 AM, S, Shirish wrote: On 10/24/2017 7:48 PM, Andrey Grodzovsky wrote: > On 10/24/2017 09:51 AM, S, Shirish wrote: >> F

[PATCH 2/2] drm/rcar-du: Adjust 14 checks for null pointers

2017-10-24 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 24 Oct 2017 17:47:37 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script “checkpatch.pl” pointed information out like the following. Comparison to NULL could be written !… Thus fix the affected source code pl

[PATCH 1/2] drm/rcar-du: Use common error handling code in rcar_du_encoders_init()

2017-10-24 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 24 Oct 2017 17:16:09 +0200 Add a jump target so that a bit of exception handling can be better reused at the end of this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/gpu/drm/rcar-du/rcar_du_kms.c

Re: [PATCH 02/10] drm/sun4i: tcon: Add support for A10 TCON

2017-10-24 Thread Rob Herring
On Tue, Oct 17, 2017 at 08:17:59PM +0800, Chen-Yu Tsai wrote: > From: Jonathan Liu > > The A10 has two TCONs that are similar to the ones found on other SoCs. > Like the A31, TCON0 has a register used to mux the TCON outputs to the > downstream encoders. The bit fields are slightly different. >

[PATCH 0/2] R-Car Display Unit: Fine-tuning for some function implementations

2017-10-24 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 24 Oct 2017 17:55:43 +0200 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Use common error handling code in rcar_du_encoders_init() Adjust 14 checks for null pointers drivers/gpu/drm/rcar-du/rcar_du_crtc.

Re: [Outreachy kernel] [PATCH v14 2/3] drm/tinydrm: Move tinydrm_of_find_backlight to backlight.c

2017-10-24 Thread Daniel Thompson
On 24/10/17 16:38, Sean Paul wrote: On Sat, Oct 21, 2017 at 05:27:33PM +0530, Meghana Madhyastha wrote: Rename tinydrm_of_find_backlight to of_find_backlight and move it to linux/backlight.c so that it can be used by other drivers. Signed-off-by: Meghana Madhyastha --- Changes in v14: -s/bac

Re: [PATCH 2/4] dt-bindings: display: amlogic, meson-dw-hdmi: Add optional HDMI 5V regulator

2017-10-24 Thread Rob Herring
On Tue, Oct 24, 2017 at 10:09:15AM +0200, Neil Armstrong wrote: > On 24/10/2017 00:46, Rob Herring wrote: > > On Tue, Oct 17, 2017 at 10:07:42AM +0200, Neil Armstrong wrote: > >> On reference boards and derivatives, the HDMI Logic is powered by an > >> external > >> 5V regulator. > >> This regulat

Re: [PATCH] drm/amd/display: assign fb_location only if bo is pinned

2017-10-24 Thread Michel Dänzer
[ Adding the dri-devel list ] On 24/10/17 04:58 PM, Andrey Grodzovsky wrote: > On 10/24/2017 10:36 AM, S, Shirish wrote: >> On 10/24/2017 7:48 PM, Andrey Grodzovsky wrote: >>> On 10/24/2017 09:51 AM, S, Shirish wrote: From: Shirish S On some systems amdgpu_bo_gpu_offset seems to b

Re: [Outreachy kernel] [PATCH v14 2/3] drm/tinydrm: Move tinydrm_of_find_backlight to backlight.c

2017-10-24 Thread Sean Paul
On Sat, Oct 21, 2017 at 05:27:33PM +0530, Meghana Madhyastha wrote: > Rename tinydrm_of_find_backlight to of_find_backlight and move > it to linux/backlight.c so that it can be used by other drivers. > > Signed-off-by: Meghana Madhyastha > --- > Changes in v14: > -s/backlight_get/of_find_backlig

Re: [Outreachy kernel] [PATCH v14 2/3] drm/tinydrm: Move tinydrm_of_find_backlight to backlight.c

2017-10-24 Thread Sean Paul
On Sat, Oct 21, 2017 at 05:27:33PM +0530, Meghana Madhyastha wrote: > Rename tinydrm_of_find_backlight to of_find_backlight and move > it to linux/backlight.c so that it can be used by other drivers. > > Signed-off-by: Meghana Madhyastha > --- > Changes in v14: > -s/backlight_get/of_find_backlig

Re: [Outreachy kernel] [PATCH v14 1/3] drm/tinydrm: Move helper functions from tinydrm-helpers to backlight.h

2017-10-24 Thread Sean Paul
On Sat, Oct 21, 2017 at 05:26:33PM +0530, Meghana Madhyastha wrote: > Move the helper functions enable_backlight and disable_backlight > from tinydrm-helpers.c to backlight.h as static inline functions so > that they can be used by other drivers. > > Signed-off-by: Meghana Madhyastha Reviewed-by

Re: [Outreachy kernel] [PATCH v13 2/3] drm/tinydrm: Move tinydrm_of_find_backlight to backlight.c

2017-10-24 Thread Sean Paul
On Tue, Oct 24, 2017 at 01:51:45PM +0100, Daniel Thompson wrote: > On 24/10/17 13:16, Sean Paul wrote: > > On Mon, Oct 23, 2017 at 11:35:42AM +0100, Daniel Thompson wrote: > > > On 20/10/17 18:20, Sean Paul wrote: > > > > On Wed, Oct 18, 2017 at 1:11 PM, Meghana Madhyastha > > > > wrote: > > > > >

Re: drm/i915/gvt: Use common error handling code in shadow_workload_ring_buffer()

2017-10-24 Thread SF Markus Elfring
>> Do you prefer to delegate the proposed software refactoring >> only to a corresponding optimiser? > > yes. Will any applications around the semantic patch language (Coccinelle software) fit also in the preferred tool category? Regards, Markus ___ dr

Re: drm/i915/gvt: Use common error handling code in shadow_workload_ring_buffer()

2017-10-24 Thread Joe Perches
On Tue, 2017-10-24 at 16:51 +0200, SF Markus Elfring wrote: > Do you prefer to delegate the proposed software refactoring > only to a corresponding optimiser? yes. ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/m

Re: drm/i915/gvt: Use common error handling code in shadow_workload_ring_buffer()

2017-10-24 Thread SF Markus Elfring
>> … It's just that two out of three error >> messages happened to be the same and Markus wants to save a bit of >> memory by using the same string. The memory savings is not so big that >> it's worth making the code less readable. > > I agree with Dan. > > It doesn't save any real memory eithe

Re: drm/i915/gvt: Use common error handling code in shadow_workload_ring_buffer()

2017-10-24 Thread Joe Perches
On Tue, 2017-10-24 at 17:26 +0300, Dan Carpenter wrote: > The point of unwind code is to undo what was done earlier. If a > function allocates a list of things, using standard unwind style makes > it simpler, safer and more readable. > > This isn't the case here. Instead of making the code more

Re: drm/i915/gvt: Use common error handling code in shadow_workload_ring_buffer()

2017-10-24 Thread SF Markus Elfring
> This isn't the case here. I find your view interesting for further clarification somehow. > Instead of making the code more readable, we're making it more convoluted. Can the shown software refactoring usually help here? > It's just that two out of three error messages happened to be the sa

[Bug 103384] [UBUNTU 16.04] Poor performance after update video-driver (HD7790, radeonsi)

2017-10-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103384 --- Comment #4 from Max --- Created attachment 135021 --> https://bugs.freedesktop.org/attachment.cgi?id=135021&action=edit X.Org log file req -- You are receiving this mail because: You are the assignee for the bug._

Re: drm/i915/gvt: Use common error handling code in shadow_workload_ring_buffer()

2017-10-24 Thread Dan Carpenter
The point of unwind code is to undo what was done earlier. If a function allocates a list of things, using standard unwind style makes it simpler, safer and more readable. This isn't the case here. Instead of making the code more readable, we're making it more convoluted. It's just that two out

[PATCH 2/2] drm/i915/dp: Use common error handling code in intel_dp_sink_crc_stop()

2017-10-24 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 24 Oct 2017 15:40:47 +0200 Adjust jump targets so that a specific error code assignment will be in the implementation only at the end of this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/gpu/drm/i

[PATCH 1/2] drm/i915/dp: Delete an unnecessary goto statement in intel_dp_sink_crc()

2017-10-24 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 24 Oct 2017 15:15:20 +0200 A jump was specified for a location which was directly behind. Thus remove such an unnecessary goto statement. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/gpu/drm/i915/intel_dp.c

[PATCH 0/2] GPU-DRM-i915-DP: Fine-tuning for two function implementations

2017-10-24 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 24 Oct 2017 15:54:32 +0200 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Delete an unnecessary goto statement in intel_dp_sink_crc() Use common error handling code in intel_dp_sink_crc_stop() drivers/gpu

[PATCH 2/2] dma-buf: try to replace a signaled fence in reservation_object_add_shared_inplace

2017-10-24 Thread Christian König
From: Christian König The amdgpu issue to also need signaled fences in the reservation objects should be fixed by now. Optimize the handling by replacing a signaled fence when adding a new shared one. Signed-off-by: Christian König --- drivers/dma-buf/reservation.c | 18 +++--- 1

[PATCH 1/2] dma-buf: keep only not signaled fence in reservation_object_add_shared_replace

2017-10-24 Thread Christian König
From: Christian König The amdgpu issue to also need signaled fences in the reservation objects should be fixed by now. Optimize the list by keeping only the not signaled yet fences around. Signed-off-by: Christian König --- drivers/dma-buf/reservation.c | 31 +-- 1

Re: drm/i915/gvt: Use common error handling code in shadow_workload_ring_buffer()

2017-10-24 Thread Garry Hurley
Markus, I normally keep quiet on threads like this. I half agree with you. Yes, perhaps a reportError function would be a good idea, but it seems that what you are suggesting is trading an inline subroutine call for a spaghetti-code vondition. The goto is used only if you do not have any code

[PATCH 6/6] drm/msm: dump submits which triggered gpu hang

2017-10-24 Thread Rob Clark
Note we need to move update_fences() to after msm_rd_dump_submit(), otherwise the bo's referenced by the submit may no longer be valid. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/msm_gpu.c | 52 +-- 1 file changed, 30 insertions(+), 22 deletions(-)

[PATCH 5/6] drm/msm: preserve IOVAs in submit's bo table

2017-10-24 Thread Rob Clark
We need this if we want to dump the submit after cleanup (ie. from hang or fault). But in the backoff/unpin case we want to clear them. So add a flag so we can skip clearing the IOVAs in at cleanup. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/msm_gem_submit.c | 11 ++- 1 file chan

[PATCH 4/6] drm/msm/rd: allow adding addition msg to top of dump

2017-10-24 Thread Rob Clark
For faults or hangs, it is nice to be able to include a bit more information. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/msm_drv.h | 3 ++- drivers/gpu/drm/msm/msm_gpu.c | 2 +- drivers/gpu/drm/msm/msm_rd.c | 15 +-- 3 files changed, 16 insertions(+), 4 deletions(-) diff --

[PATCH 1/6] drm/msm: show task cmdline in gpu recovery messages

2017-10-24 Thread Rob Clark
Now that freedreno gallium driver defaults to using submit_queue task (render reordering), just showing task->comm is not so useful (ie. it is always "flush_queue:0"), so also dump the cmdline. This should also be more useful for piglit/shader_runner. Signed-off-by: Rob Clark --- drivers/gpu/dr

[PATCH 2/6] drm/msm: add special _get_vaddr_active() for cmdstream dumps

2017-10-24 Thread Rob Clark
Prep work for adding a debugfs file that dumps just submits which trigger hangs/faults. In this case the bo may already be in the MADV_DONTNEED state, but will be still on the active list (since the submit hasn't completed yet). So the normal check that the bo is in the WILLNEED state does not ap

[PATCH 3/6] drm/msm: split rd debugfs file

2017-10-24 Thread Rob Clark
Split into two instances, the existing $debugfs/rd which continues to dump all submits, and $debugfs/hangrd which will be used to dump just submits that cause gpu hangs (and eventually faults, but that will require some iommu framework enhancements). Signed-off-by: Rob Clark --- drivers/gpu/drm/

[PATCH 0/6] drm/msm: GPU debugging enhancements

2017-10-24 Thread Rob Clark
Something that I've been using locally for a while, and found quite helpful for debugging gallium driver issues: 1) Better messages about what process triggered a crash, which is in particular particularly useful for piglit 2) Mechanism to dump just submits which triggered GPU hangs. Eventu

Re: drm/i915/gvt: Use common error handling code in shadow_workload_ring_buffer()

2017-10-24 Thread SF Markus Elfring
>> Add a jump target so that a call of the function "gvt_vgpu_err" is stored >> only once at the end of this function implementation. >> Replace two calls by goto statements. >> >> This issue was detected by using the Coccinelle software. > > I don't think this is an issue or an improvement. Do y

Re: [Outreachy kernel] [PATCH v13 2/3] drm/tinydrm: Move tinydrm_of_find_backlight to backlight.c

2017-10-24 Thread Daniel Thompson
On 24/10/17 13:16, Sean Paul wrote: On Mon, Oct 23, 2017 at 11:35:42AM +0100, Daniel Thompson wrote: On 20/10/17 18:20, Sean Paul wrote: On Wed, Oct 18, 2017 at 1:11 PM, Meghana Madhyastha wrote: On Mon, Oct 16, 2017 at 02:26:00PM -0400, Sean Paul wrote: On Fri, Oct 13, 2017 at 6:42 PM, Nora

Re: [PATCH] drm/i915/gvt: Use common error handling code in shadow_workload_ring_buffer()

2017-10-24 Thread Jani Nikula
On Tue, 24 Oct 2017, SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 24 Oct 2017 14:20:06 +0200 > > Add a jump target so that a call of the function "gvt_vgpu_err" is stored > only once at the end of this function implementation. > Replace two calls by goto statements. > > This issue

[PATCH] drm/i915/gvt: Use common error handling code in shadow_workload_ring_buffer()

2017-10-24 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 24 Oct 2017 14:20:06 +0200 Add a jump target so that a call of the function "gvt_vgpu_err" is stored only once at the end of this function implementation. Replace two calls by goto statements. This issue was detected by using the Coccinelle software. Signed-off-b

Re: [Outreachy kernel] [PATCH v13 2/3] drm/tinydrm: Move tinydrm_of_find_backlight to backlight.c

2017-10-24 Thread Sean Paul
On Mon, Oct 23, 2017 at 11:35:42AM +0100, Daniel Thompson wrote: > On 20/10/17 18:20, Sean Paul wrote: > > On Wed, Oct 18, 2017 at 1:11 PM, Meghana Madhyastha > > wrote: > > > On Mon, Oct 16, 2017 at 02:26:00PM -0400, Sean Paul wrote: > > > > On Fri, Oct 13, 2017 at 6:42 PM, Noralf Trønnes > > >

Re: [PATCH 3/4] drm/msm/hdmi: convert to msm_clk_get()

2017-10-24 Thread Sean Paul
On Tue, Oct 17, 2017 at 06:49:57AM -0400, Rob Clark wrote: > We already have, as a result of upstreaming the gpu bindings, > msm_clk_get() which will try to get the clock both without and with a > "_clk" suffix. Use this in HDMI code so we can drop the "_clk" suffix > in bindings while maintaing b

Re: [PATCH 2/4] drm/msm/edp: convert to msm_clk_get()

2017-10-24 Thread Sean Paul
On Tue, Oct 17, 2017 at 06:49:56AM -0400, Rob Clark wrote: > We already have, as a result of upstreaming the gpu bindings, > msm_clk_get() which will try to get the clock both without and with a > "_clk" suffix. Use this in eDP code so we can drop the "_clk" suffix > in bindings while maintaing ba

Re: [PATCH 1/4] drm/msm/dsi: convert to msm_clk_get()

2017-10-24 Thread Sean Paul
On Tue, Oct 17, 2017 at 06:49:55AM -0400, Rob Clark wrote: > We already have, as a result of upstreaming the gpu bindings, > msm_clk_get() which will try to get the clock both without and with a > "_clk" suffix. Use this in DSI code so we can drop the "_clk" suffix > in bindings while maintaing ba

[Bug 103370] `DRI_PRIME=1 glxgears -info` halts the system with Intel Graphics [8086:5917] + AMD Graphics [1002:6665].

2017-10-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103370 --- Comment #16 from Mike Lothian --- Do you also see the issue with amdgpu rather than using the radeon kernel driver? -- You are receiving this mail because: You are the assignee for the bug.___ dr

[Bug 103370] `DRI_PRIME=1 glxgears -info` halts the system with Intel Graphics [8086:5917] + AMD Graphics [1002:6665].

2017-10-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103370 --- Comment #15 from Mike Lothian --- Are there any changes when you boot the system with radeon.runpm=0, this will mean the card never powers down What distro are you running? You mention trying older kernel version, did you try older mesa ve

[Bug 103370] `DRI_PRIME=1 glxgears -info` halts the system with Intel Graphics [8086:5917] + AMD Graphics [1002:6665].

2017-10-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103370 --- Comment #14 from Shih-Yuan Lee --- Yup, this is a new system. `DRI_PRIME=1 glxgears` never worked properly before. -- You are receiving this mail because: You are the assignee for the bug.___ dri

[Bug 103370] `DRI_PRIME=1 glxgears -info` halts the system with Intel Graphics [8086:5917] + AMD Graphics [1002:6665].

2017-10-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103370 --- Comment #13 from Mike Lothian --- I was meaning, is this a regression, as in it used to work with an older kernel or mesa. If it's a new system perhaps not. -- You are receiving this mail because: You are the assignee for the bug._

[Bug 103370] `DRI_PRIME=1 glxgears -info` halts the system with Intel Graphics [8086:5917] + AMD Graphics [1002:6665].

2017-10-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103370 --- Comment #12 from Shih-Yuan Lee --- BTW, this is a new Dell laptop in the development. -- You are receiving this mail because: You are the assignee for the bug.___ dri-devel mailing list dri-devel

Re: [PATCH] drm/amd/powerplay: fix amd_powerplay_reset()

2017-10-24 Thread Dan Carpenter
On Tue, Oct 24, 2017 at 01:11:07PM +0300, Jani Nikula wrote: > On Tue, 24 Oct 2017, Dan Carpenter wrote: > > We accidentally inverted an if statement and turned amd_powerplay_reset() > > into a no-op. > > > > Fixes: ae97988fc89e ("drm/amd/powerplay: tidy up ret checks in > > amd_powerplay.c (v3)"

[Bug 103370] `DRI_PRIME=1 glxgears -info` halts the system with Intel Graphics [8086:5917] + AMD Graphics [1002:6665].

2017-10-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103370 --- Comment #11 from Shih-Yuan Lee --- (In reply to Mike Lothian from comment #10) > Did this ever work for you? What do you mean by this? -- You are receiving this mail because: You are the assignee for the bug.__

[Bug 103370] `DRI_PRIME=1 glxgears -info` halts the system with Intel Graphics [8086:5917] + AMD Graphics [1002:6665].

2017-10-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103370 --- Comment #10 from Mike Lothian --- Did this ever work for you? -- You are receiving this mail because: You are the assignee for the bug.___ dri-devel mailing list dri-devel@lists.freedesktop.org h

[Bug 103370] `DRI_PRIME=1 glxgears -info` halts the system with Intel Graphics [8086:5917] + AMD Graphics [1002:6665].

2017-10-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103370 --- Comment #9 from Shih-Yuan Lee --- I have tried acpi_osi="Windows 2009", "Windows 2012", "Windows 2013" and "Windows 2015" on the latest mainline kernel 4.14rc6, and they all have the same errors and halt the system. The BIOS is also up to da

Re: [RESEND PATCH] drm: panel: replace dev_info/dev_err/dev_warn with DRM_DEV_* equivalent

2017-10-24 Thread Sean Paul
On Mon, Oct 23, 2017 at 12:47 PM, Aastha Gupta wrote: > For drivers which could have multiple instances, it is necessary to > differentiate between which is which in the logs. Since > DRM_INFO/WARN/ERROR don’t do this, drivers used dev_info/warn/err to > make this differentiation. We now have DRM_

Re: [PATCH] drm/amd/powerplay: fix amd_powerplay_reset()

2017-10-24 Thread Jani Nikula
On Tue, 24 Oct 2017, Dan Carpenter wrote: > We accidentally inverted an if statement and turned amd_powerplay_reset() > into a no-op. > > Fixes: ae97988fc89e ("drm/amd/powerplay: tidy up ret checks in > amd_powerplay.c (v3)") For some reason I looked up that commit, and it has *two* cases where

Re: drivers/gpu/drm/gma500/mdfld_intel_display.c:102:37: warning: bitwise comparison always evaluates to false [-Wtautological-compare]

2017-10-24 Thread Jani Nikula
On Tue, 24 Oct 2017, David Binderman wrote: > Hello there, > > > Code I looked at is in linux-4.14-rc6, released 20171023, so reasonably > > up to date. > > > I did a further check on github.com/torvalds/linux and the code > > looks wrong there, too. > > > So I don't see the fix you mentioned in e

[PATCH] drm/amd/powerplay: fix amd_powerplay_reset()

2017-10-24 Thread Dan Carpenter
We accidentally inverted an if statement and turned amd_powerplay_reset() into a no-op. Fixes: ae97988fc89e ("drm/amd/powerplay: tidy up ret checks in amd_powerplay.c (v3)") Signed-off-by: Dan Carpenter --- IMHO, tidying unreadable double negatives is tricky and error prone but still worth it in

[Bug 103393] glDispatchComputeGroupSizeARB : gl_GlobalInvocationID.x != gl_WorkGroupID.x * gl_LocalGroupSizeARB.x + gl_LocalInvocationID.x

2017-10-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103393 Samuel Pitoiset changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

Re: [PATCH 1/3] drm/exynos/dsi: Use common error handling code in exynos_dsi_enable()

2017-10-24 Thread SF Markus Elfring
>> @@ -1401,11 +1400,14 @@ static void exynos_dsi_enable(struct drm_encoder >> *encoder) >> dsi->state &= ~DSIM_STATE_ENABLED; >> exynos_dsi_set_display_enable(dsi, false); >> drm_panel_unprepare(dsi->panel); >> - pm_runtime_put_sync(ds

Re: [PATCH] drm/vblank: Tune drm_crtc_accurate_vblank_count() WARN down to a debug

2017-10-24 Thread Benjamin Gaignard
2017-10-23 17:25 GMT+02:00 Ville Syrjala : > From: Ville Syrjälä > > Since commit 632c6e4edef1 ("drm/vblank: Fix flip event vblank count") > even drivers that don't implement accurate vblank timestamps will end > up using drm_crtc_accurate_vblank_count(). That leads to a WARN every > time drm_crtc

Re: drivers/gpu/drm/gma500/mdfld_intel_display.c:102:37: warning: bitwise comparison always evaluates to false [-Wtautological-compare]

2017-10-24 Thread Jani Nikula
On Mon, 23 Oct 2017, David Binderman wrote: > Hello there, > > Source code is > > if ((temp & PIPEACONF_PIPE_STATE) == 1) > break; > > but > > $ fgrep PIPEACONF_PIPE_STATE `find drivers/gpu/drm/gma500 -name \*.h -print` > drivers/gpu/drm/gma500/psb_intel_reg.h:#define PIPEACONF

[PATCH 3/3] drm/exynos: Fix typos in five comment lines

2017-10-24 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 24 Oct 2017 10:20:20 +0200 The script "checkpatch.pl" pointed misspelled words out. Thus fix the affected places. Signed-off-by: Markus Elfring --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 2 +- drivers/gpu/drm/exynos/exynos_drm_fimc.c | 2 +- drivers/gpu/drm/

  1   2   >