Re: [Intel-gfx] [PATCH 2/6] drm/i915: Cleaning up intel_dp_hpd_pulse

2015-11-16 Thread Shubhangi Shrivastava
On Monday 16 November 2015 08:16 PM, Ander Conselvan De Oliveira wrote: On Mon, 2015-11-16 at 16:33 +0200, Ander Conselvan De Oliveira wrote: On Fri, 2015-11-06 at 17:58 +0530, Shubhangi Shrivastava wrote: Current DP detection has DPCD operations split across intel_dp_hpd_pulse and intel_dp_d

[Intel-gfx] [PATCH] drm/i915: Cleaning up intel_dp_hpd_pulse

2015-11-16 Thread Shubhangi Shrivastava
Current DP detection has DPCD operations split across intel_dp_hpd_pulse and intel_dp_detect which contains duplicates as well. Also intel_dp_detect is called during modes enumeration as well which will result in multiple dpcd operations. So this patch tries to solve both these by bringing all DPCD

Re: [Intel-gfx] [PATCH 2/6] drm/i915: Cleaning up intel_dp_hpd_pulse

2015-11-16 Thread Shubhangi Shrivastava
On Monday 16 November 2015 08:03 PM, Ander Conselvan De Oliveira wrote: On Fri, 2015-11-06 at 17:58 +0530, Shubhangi Shrivastava wrote: Current DP detection has DPCD operations split across intel_dp_hpd_pulse and intel_dp_detect which contains duplicates as well. Also intel_dp_detect is called

[Intel-gfx] [PATCH] drm/i915: Splitting intel_dp_detect

2015-11-16 Thread Shubhangi Shrivastava
This patch moves probing for panel, DPCD read etc to another function intel_dp_long_pulse, while intel_dp_detect returns the status as connected or disconnected depending on whether the edid is available or not. This change will be required by further patches in the series to avoid performing multi

Re: [Intel-gfx] [PATCH 1/6] drm/i915: Splitting intel_dp_detect

2015-11-16 Thread Shubhangi Shrivastava
On Monday 16 November 2015 07:10 PM, Ander Conselvan De Oliveira wrote: On Fri, 2015-11-06 at 17:58 +0530, Shubhangi Shrivastava wrote: This patch moves probing for panel, DPCD read etc to another function intel_dp_long_pulse, while intel_dp_detect returns the status as connected or disconnect

Re: [Intel-gfx] intel_display.c:3916 intel_crtc_wait_for_pending_flips+0xe9/0x1cd() intel_check_page_flip+0xb3/0xd2()

2015-11-16 Thread Marc MERLIN
So, this is probably the 3rd time I send such a report with different kernels and get 0 response. Is this a write only list and no one is really seeing any of them, or is this an unknown/known problem that no one can work on? Thanks, Marc On Sat, Nov 14, 2015 at 07:25:15AM -0800, Marc MERLIN wrot

[Intel-gfx] [PATCH] drm/i915: Don't warn if the workaround list is empty part 2.

2015-11-16 Thread Wayne Boyer
Extend the same reasoning as in the patch listed below. It's not an error for the workaround list to be empty if no workarounds are needed. commit 02235808b61cd9382d224b0df263193006dd9913 Author: Francisco Jerez Date: Wed Oct 7 14:44:01 2015 +0300 drm/i915: Don't warn if th

Re: [Intel-gfx] [PATCH] drm/i915: PSR: Let's rely more on frontbuffer tracking.

2015-11-16 Thread Vivi, Rodrigo
On Mon, 2015-11-16 at 16:57 -0200, Paulo Zanoni wrote: > 2015-11-13 22:56 GMT-02:00 Rodrigo Vivi : > > The ultimate goal here is to remove the dependency we > > currently have on audio driver power to get PSR working. > > > > With audio driver runtime PM disabled the Hardware tracking > > believes

Re: [Intel-gfx] [PATCH v3 10/12] drm/i915/gen9: Turn DC handling into a power well

2015-11-16 Thread Patrik Jakobsson
On Mon, Nov 16, 2015 at 8:28 PM, Imre Deak wrote: > On ma, 2015-11-16 at 15:01 +0100, Patrik Jakobsson wrote: >> Handle DC off as a power well where enabling the power well will prevent >> the DMC to enter selected DC states (required around modesets and Aux >> A). Disabling the power well will al

Re: [Intel-gfx] [PATCH v3 10/12] drm/i915/gen9: Turn DC handling into a power well

2015-11-16 Thread Imre Deak
On ma, 2015-11-16 at 15:01 +0100, Patrik Jakobsson wrote: > Handle DC off as a power well where enabling the power well will prevent > the DMC to enter selected DC states (required around modesets and Aux > A). Disabling the power well will allow DC states again. For now the > highest DC state is D

Re: [Intel-gfx] [PATCH 4/4] drm/i915: PSR: Mask LPSP hw tracking back again.

2015-11-16 Thread Paulo Zanoni
2015-11-11 19:20 GMT-02:00 Rodrigo Vivi : > At the beginning it was masked to allow PSR at all. > Than it got removed later by my > commit 09108b90f040 ("drm/i915: PSR: Remove Low Power HW tracking mask.") > in order to trying fixing one case reported at intel-gfx mailing list > where we were missi

Re: [Intel-gfx] [PATCH v3 11/12] drm/i915/gen9: Add boot parameter for disabling DC6

2015-11-16 Thread Imre Deak
On ma, 2015-11-16 at 15:01 +0100, Patrik Jakobsson wrote: > v2: Use _unsafe (Jani) > v3: Allow specifying specific DC-states instead of just DC6 (Imre) > > Signed-off-by: Patrik Jakobsson > --- >  drivers/gpu/drm/i915/i915_drv.h |  1 + >  drivers/gpu/drm/i915/i915_params.c  |  6 +

Re: [Intel-gfx] [PATCH] drm/i915: PSR: Let's rely more on frontbuffer tracking.

2015-11-16 Thread Paulo Zanoni
2015-11-13 22:56 GMT-02:00 Rodrigo Vivi : > The ultimate goal here is to remove the dependency we > currently have on audio driver power to get PSR working. > > With audio driver runtime PM disabled the Hardware tracking > believes graphics is fully active and prevent PSR Entry, or > in other words

[Intel-gfx] [PATCH] drm/i915: Add Backlight Control using DPCD for eDP connectors (v3)

2015-11-16 Thread Yetunde Adebisi
This patch adds support for eDP backlight control using DPCD registers to backlight hooks in intel_panel. It checks for backlight control over AUX channel capability and sets up function pointers to get and set the backlight brightness level if supported. v2: Moved backlight functions from intel_

Re: [Intel-gfx] [PATCH 1/4] drm/i915: Force PSR exit when IRQ_HPD is detected on eDP.

2015-11-16 Thread Ville Syrjälä
On Wed, Nov 11, 2015 at 01:19:58PM -0800, Rodrigo Vivi wrote: > According to VESA spec: "If a Source device receives and IRQ_HPD > while in a PSR active state, and cannot identify what caused the > IRQ_HPD to be generated, based on Sink device status registers, > the Source device can take implemen

Re: [Intel-gfx] [PATCH] drm/i915: Remove duplicated dpcd write on hsw_psr_enable_sink.

2015-11-16 Thread Paulo Zanoni
2015-11-12 20:46 GMT-02:00 Rodrigo Vivi : > Commit (89251b17) intended to remove this line and let only one > DP_PSR_EN_CFG set, but it was wrong and this call is now duplicated > at the code. > > Also "& ~DP_PSR_MAIN_LINK_ACTIVE" doesn't do anything at all. It > was like that since I introduced th

Re: [Intel-gfx] [PATCH v2] drm: Describe the Rotation property bits.

2015-11-16 Thread Daniel Vetter
On Mon, Nov 02, 2015 at 05:18:36PM +0200, Ville Syrjälä wrote: > On Mon, Nov 02, 2015 at 04:14:08PM +0100, Robert Fekete wrote: > > Adds clarification of the rotation property bits. I.e. rotation is > > counter clockwise and that reflects are applied before any rotation. > > > > v2: Re

Re: [Intel-gfx] [PATCH 2/4] drm: Keep coordinates in the typical x, y, w, h order instead of x, y, h, w

2015-11-16 Thread Alex Deucher
On Mon, Nov 16, 2015 at 10:02 AM, wrote: > From: Ville Syrjälä > > Signed-off-by: Ville Syrjälä Reviewed-by: Alex Deucher > --- > drivers/gpu/drm/drm_atomic_helper.c | 14 +++--- > 1 file changed, 7 insertions(+), 7 deletions(-) > > diff --git a/drivers/gpu/drm/drm_atomic_helper.c

Re: [Intel-gfx] [PATCH] drm/i915: Use dpcd read wake for sink crc calls.

2015-11-16 Thread Rodrigo Vivi
Ok, so after trying it we saw that we really cannot trust on aux mutex.At least not on all SKL/KBL It worked in a KBL but failed on a SKL that I have here... So without aux mutex option we still need to get sink_crc more reliable and I see only 2 quick ways here: - This read wake - Return -EBUSY t

Re: [Intel-gfx] [PATCH 0/5] Sink CRC stabilization

2015-11-16 Thread Rodrigo Vivi
Hi Daniel, could you please ignore patch 5 in this series and merge the 4 first patches. The aux mutex is really unreliable and doesn't help on all SKLs so better to just ignore that. Thanks, Rodrigo. On Thu, Nov 12, 2015 at 11:03 AM Rodrigo Vivi wrote: > On Thu, Nov 12, 2015 at 10:56 AM Vivi

Re: [Intel-gfx] [PATCH 0/4] PSR Critical fixes

2015-11-16 Thread Rodrigo Vivi
Hi Daniel, All 4 patches in this series are reviewed and ready to merge, could you please merge them? Thanks, Rodrigo. On Fri, Nov 13, 2015 at 10:42 AM Vivi, Rodrigo wrote: > On Fri, 2015-11-13 at 17:08 +0200, Ville Syrjälä wrote: > > On Wed, Nov 11, 2015 at 11:37:06AM -0800, Rodrigo Vivi wrot

Re: [Intel-gfx] [PATCH] drm/i915: Consider SPLL as another shared pll, v2.

2015-11-16 Thread Jani Nikula
On Mon, 16 Nov 2015, Maarten Lankhorst wrote: > When diagnosing a unrelated bug for someone on irc, it would seem the > hardware can > be brought up by the BIOS with the embedded displayport using the SPLL for > spread spectrum. > > Right now this is not handled well in i915, and it calculates

Re: [Intel-gfx] [PATCH 2/2] drm: Pass the user drm_mode_fb_cmd2 as const to .fb_create()

2015-11-16 Thread Tvrtko Ursulin
Hi, On 11/11/15 17:11, ville.syrj...@linux.intel.com wrote: From: Ville Syrjälä Drivers shouldn't clobber the passed in addfb ioctl parameters. i915 was doing just that. To prevent it from happening again, pass the struct around as const, starting all the way from internal_framebuffer_create(

[Intel-gfx] [PATCH v4 10/12] drm/i915/gen9: Turn DC handling into a power well

2015-11-16 Thread Patrik Jakobsson
Handle DC off as a power well where enabling the power well will prevent the DMC to enter selected DC states (required around modesets and Aux A). Disabling the power well will allow DC states again. For now the highest DC state is DC6 for Skylake and DC5 for Broxton but will be configurable for Sk

Re: [Intel-gfx] [PATCH] drm: Remove unused fbdev_list members

2015-11-16 Thread Daniel Vetter
On Sun, Nov 01, 2015 at 02:22:00PM +0100, Lukas Wunner wrote: > I noticed that intel_fbdev->our_mode is unused. Introduced by > 79e539453b34 ("DRM: i915: add mode setting support"). > > Then I noticed that intel_fbdev->fbdev_list is unused as well. > Introduced by 386516744ba4 ("drm/fb: fix fbdev

[Intel-gfx] [PATCH 1/4] drm: Fix primary plane size for stereo doubled modes for legacy setcrtc

2015-11-16 Thread ville . syrjala
From: Ville Syrjälä Properly double the hdisplay/vdisplay timings that we use as the primary plane size with stereo doubled modes. Otherwise the modeset gets rejected on machines where the primary plane must be fullscreen, and on the rest only the first eye would get a visible plane. Cc: Daniel

[Intel-gfx] [PATCH 4/4] drm: Print the src/dst/clip rectangles in error in drm_plane_helper

2015-11-16 Thread ville . syrjala
From: Ville Syrjälä To aid in debugging failures, print the src,dst,clip rectangles when drm_plane_helper_check_update() fails. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/drm_plane_helper.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/drm_plane_helper.c b/driv

[Intel-gfx] [PATCH 3/4] drm: Add "prefix" parameter to drm_rect_debug_print()

2015-11-16 Thread ville . syrjala
From: Ville Syrjälä Allow the caller to specify a "prefix" string to drm_rect_debug_print() to make it easier to see which drm_rect is being printed. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/drm_rect.c | 7 --- drivers/gpu/drm/i915/intel_sprite.c | 8 include/drm/

[Intel-gfx] [PATCH 2/4] drm: Keep coordinates in the typical x, y, w, h order instead of x, y, h, w

2015-11-16 Thread ville . syrjala
From: Ville Syrjälä Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/drm_atomic_helper.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/drm_atomic_helper.c b/drivers/gpu/drm/drm_atomic_helper.c index 7857163..d5693b7 100644 --- a/drivers/gpu/

[Intel-gfx] [PATCH i-g-t 2/2] tests/kms_3d: Use XRGB8888 instead of ARGB8888

2015-11-16 Thread ville . syrjala
From: Ville Syrjälä We don't allow ARGB anymore on primary planes on most platforms, so use XRGB instead as the format. Signed-off-by: Ville Syrjälä --- tests/kms_3d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/kms_3d.c b/tests/kms_3d.c index de923ed..4cf

[Intel-gfx] [PATCH i-g-t 1/2] tests/kms_3d: Use igt_assert_eq()

2015-11-16 Thread ville . syrjala
From: Ville Syrjälä Would be nice to see how many stereo modes we managed to extract from the EDID if it doesn't match the expected 13. So use igt_assert_eq() which prints the real count on failure. Signed-off-by: Ville Syrjälä --- tests/kms_3d.c | 2 +- 1 file changed, 1 insertion(+), 1 delet

Re: [Intel-gfx] [PATCH 2/6] drm/i915: Cleaning up intel_dp_hpd_pulse

2015-11-16 Thread Ander Conselvan De Oliveira
On Mon, 2015-11-16 at 16:33 +0200, Ander Conselvan De Oliveira wrote: > On Fri, 2015-11-06 at 17:58 +0530, Shubhangi Shrivastava wrote: > > Current DP detection has DPCD operations split across > > intel_dp_hpd_pulse and intel_dp_detect which contains > > duplicates as well. Also intel_dp_detect is

[Intel-gfx] [MIPI CABC 0/2] CABC patch list

2015-11-16 Thread Deepak M
CABC stands for the Content Adaptive Backlight Control. In the normal display the backlight which we see is due to the backlight which is being modulated by the filter, which is inturn dependent on the image. In brief the CABC does the histogram analysis of the image and then controls the filter an

[Intel-gfx] [MIPI CABC 2/2] drm/i915: CABC support for backlight control

2015-11-16 Thread Deepak M
In CABC (Content Adaptive Brightness Control) content grey level scale can be increased while simultaneously decreasing brightness of the backlight to achieve same perceived brightness. The CABC is not standardized and panel vendors are free to follow their implementation. The CABC implementaion h

[Intel-gfx] [MIPI CABC 1/2] drm/i915: Parsing the PWM cntrl and CABC ON/OFF fileds in VBT

2015-11-16 Thread Deepak M
For dual link panel scenarios there are new fileds added in the VBT which indicate on which port the PWM cntrl and CABC ON/OFF commands needs to be sent. Cc: Jani Nikula Cc: Daniel Vetter Cc: Yetunde Adebisi Signed-off-by: Deepak M --- drivers/gpu/drm/i915/intel_bios.c | 13 + dri

Re: [Intel-gfx] [PATCH v3 10/12] drm/i915/gen9: Turn DC handling into a power well

2015-11-16 Thread Patrik Jakobsson
On Mon, Nov 16, 2015 at 03:01:07PM +0100, Patrik Jakobsson wrote: > Handle DC off as a power well where enabling the power well will prevent > the DMC to enter selected DC states (required around modesets and Aux > A). Disabling the power well will allow DC states again. For now the > highest DC st

Re: [Intel-gfx] [PATCH 2/6] drm/i915: Cleaning up intel_dp_hpd_pulse

2015-11-16 Thread Ander Conselvan De Oliveira
On Fri, 2015-11-06 at 17:58 +0530, Shubhangi Shrivastava wrote: > Current DP detection has DPCD operations split across > intel_dp_hpd_pulse and intel_dp_detect which contains > duplicates as well. Also intel_dp_detect is called > during modes enumeration as well which will result > in multiple dpc

Re: [Intel-gfx] [PATCH 0/7] drm/i915: Reordered AUX patches from type safety series

2015-11-16 Thread Ville Syrjälä
On Thu, Nov 12, 2015 at 11:37:11AM +0200, Jani Nikula wrote: > On Wed, 11 Nov 2015, ville.syrj...@linux.intel.com wrote: > > From: Ville Syrjälä > > > > Chris requested that I try to reorder the DP AUX patches in the last > > register type safety series [1] to form a better story. Here is the > >

[Intel-gfx] [PATCH v3 11/12] drm/i915/gen9: Add boot parameter for disabling DC6

2015-11-16 Thread Patrik Jakobsson
v2: Use _unsafe (Jani) v3: Allow specifying specific DC-states instead of just DC6 (Imre) Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/i915_params.c | 6 ++ drivers/gpu/drm/i915/intel_runtime_pm.c | 14 +++--- 3 files

[Intel-gfx] [PATCH v3 10/12] drm/i915/gen9: Turn DC handling into a power well

2015-11-16 Thread Patrik Jakobsson
Handle DC off as a power well where enabling the power well will prevent the DMC to enter selected DC states (required around modesets and Aux A). Disabling the power well will allow DC states again. For now the highest DC state is DC6 for Skylake and DC5 for Broxton but will be configurable for Sk

Re: [Intel-gfx] [PATCH i-g-t] Add dmesg capture and dumping to tests and a test for it.

2015-11-16 Thread Chris Wilson
On Mon, Nov 16, 2015 at 03:22:23PM +0200, Joonas Lahtinen wrote: > Cc: Thomas Wood > Cc: Chris Wilson > Cc: Damien Lespiau > Signed-off-by: Joonas Lahtinen > --- > lib/igt_core.c | 113 > ++--- > tests/Makefile.sources | 1 + > tests/igt_c

[Intel-gfx] [PATCH v2 09/12] drm/i915: Explain usage of power well IDs vs bit groups

2015-11-16 Thread Patrik Jakobsson
v2: Add explanation of the fixed power well bits (Imre) Signed-off-by: Patrik Jakobsson Reviewed-by: Imre Deak --- drivers/gpu/drm/i915/i915_reg.h | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index e6d88f5..0f3849f 100

[Intel-gfx] [PATCH v2 03/12] drm/i915: Clean up AUX power domain handling

2015-11-16 Thread Patrik Jakobsson
From: Ville Syrjälä Introduce intel_display_port_aux_power_domain() which simply returns the appropriate AUX power domain for a specific port, and then replace the intel_display_port_power_domain() with calls to the new function in the DP code. As long as we're not actually enabling the port we d

[Intel-gfx] [PATCH] drm/i915: Consider SPLL as another shared pll, v2.

2015-11-16 Thread Maarten Lankhorst
When diagnosing a unrelated bug for someone on irc, it would seem the hardware can be brought up by the BIOS with the embedded displayport using the SPLL for spread spectrum. Right now this is not handled well in i915, and it calculates the crtc needs to be reprogrammed on the first modeset with

Re: [Intel-gfx] [PATCH 1/6] drm/i915: Splitting intel_dp_detect

2015-11-16 Thread Ander Conselvan De Oliveira
On Fri, 2015-11-06 at 17:58 +0530, Shubhangi Shrivastava wrote: > This patch moves probing for panel, DPCD read etc to another > function intel_dp_long_pulse, while intel_dp_detect returns > the status as connected or disconnected depending on > whether the edid is available or not. Why is the cha

Re: [Intel-gfx] [PATCH] igt/igt_kms: Introduce get_first_connected_output (v2)

2015-11-16 Thread Thomas Wood
On 14 November 2015 at 03:08, Vivek Kasireddy wrote: > On Fri, 13 Nov 2015 15:59:21 + > Thomas Wood wrote: > >> On 5 November 2015 at 01:34, Vivek Kasireddy >> wrote: >> > In some cases, we just need one valid (connected) output to perform >> > a test. This macro can help in these situations

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Limit the busy wait on requests to 2us not 10ms!

2015-11-16 Thread Ville Syrjälä
On Mon, Nov 16, 2015 at 12:55:37PM +, Chris Wilson wrote: > On Mon, Nov 16, 2015 at 12:08:08PM +, Tvrtko Ursulin wrote: > > > > On 16/11/15 11:12, Chris Wilson wrote: > > >On Mon, Nov 16, 2015 at 10:24:45AM +, Tvrtko Ursulin wrote: > > >>On 15/11/15 13:32, Chris Wilson wrote: > > >>>+s

Re: [Intel-gfx] [PATCH] drm/i915: get runtime PM reference around GEM set_caching IOCTL

2015-11-16 Thread Jani Nikula
On Wed, 04 Nov 2015, Paulo Zanoni wrote: > 2015-11-04 17:25 GMT-02:00 Imre Deak : >> After Damien's D3 fix I started to get runtime suspend residency for the >> first time and that revealed a breakage on the set_caching IOCTL path >> that accesses the HW but doesn't take an RPM ref. Fix this up. >

Re: [Intel-gfx] [PATCH] drm/i915: Fix GT frequency rounding

2015-11-16 Thread Jani Nikula
On Fri, 13 Nov 2015, Bob Paauwe wrote: > On Fri, 13 Nov 2015 19:29:41 +0200 > Mika Kuoppala wrote: > >> When we set and later readback a frequency value through >> sysfs interface, igt/pm_rpm assumes that we get same value back >> if it matches hw granularity. >> >> On bxt we have found out that

[Intel-gfx] [PATCH i-g-t] Add dmesg capture and dumping to tests and a test for it.

2015-11-16 Thread Joonas Lahtinen
Cc: Thomas Wood Cc: Chris Wilson Cc: Damien Lespiau Signed-off-by: Joonas Lahtinen --- lib/igt_core.c | 113 ++--- tests/Makefile.sources | 1 + tests/igt_capture.c| 93 3 files changed, 200 ins

Re: [Intel-gfx] [PATCH] drm/i915: Clear intel_crtc->atomic before updating it.

2015-11-16 Thread Ville Syrjälä
On Mon, Nov 16, 2015 at 01:41:54PM +0100, Maarten Lankhorst wrote: > Op 16-11-15 om 13:35 schreef Jani Nikula: > > On Mon, 16 Nov 2015, Maarten Lankhorst wrote: > >> If an atomic update fails intel_crtc->atomic may have have some values left > >> from the last atomic check. One example is atomic->

Re: [Intel-gfx] [PATCH] drm/i915: Clear intel_crtc->atomic before updating it.

2015-11-16 Thread Ville Syrjälä
On Mon, Nov 16, 2015 at 12:50:13PM +0100, Maarten Lankhorst wrote: > If an atomic update fails intel_crtc->atomic may have have some values left > from the last atomic check. One example is atomic->wait_for_vblank, > which results in spurious errors in kms_flip. > > Testcase: kms_flip > Reported-b

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Limit the busy wait on requests to 2us not 10ms!

2015-11-16 Thread Tvrtko Ursulin
On 16/11/15 12:55, Chris Wilson wrote: On Mon, Nov 16, 2015 at 12:08:08PM +, Tvrtko Ursulin wrote: On 16/11/15 11:12, Chris Wilson wrote: On Mon, Nov 16, 2015 at 10:24:45AM +, Tvrtko Ursulin wrote: On 15/11/15 13:32, Chris Wilson wrote: +static u64 local_clock_us(unsigned *cpu) +{ +

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Limit the busy wait on requests to 2us not 10ms!

2015-11-16 Thread Chris Wilson
On Mon, Nov 16, 2015 at 12:08:08PM +, Tvrtko Ursulin wrote: > > On 16/11/15 11:12, Chris Wilson wrote: > >On Mon, Nov 16, 2015 at 10:24:45AM +, Tvrtko Ursulin wrote: > >>On 15/11/15 13:32, Chris Wilson wrote: > >>>+static u64 local_clock_us(unsigned *cpu) > >>>+{ > >>>+ u64 t; > >>>+ > >>

Re: [Intel-gfx] [PATCH] drm/i915: quirk backlight present on Macbook 4, 1

2015-11-16 Thread Jani Nikula
On Mon, 09 Nov 2015, Ander Conselvan De Oliveira wrote: > Reviewed-by: Ander Conselvan de Oliveira Pushed to drm-intel-fixes, thanks for the review. BR, Jani. > > On Thu, 2015-11-05 at 11:49 +0200, Jani Nikula wrote: >> Unsurprisingly macbooks have backlights, just the VBT doesn't seem to >>

Re: [Intel-gfx] [PATCH] drm/i915: Fix crtc_y assignment in intel_find_initial_plane_obj()

2015-11-16 Thread Jani Nikula
On Mon, 16 Nov 2015, Maarten Lankhorst wrote: > Op 13-11-15 om 18:16 schreef ville.syrj...@linux.intel.com: >> From: Ville Syrjälä >> >> Let's set crtc_y to 0 instead of setting src_y twice. >> >> Multiple assignments in one statement is a good way to hide bugs. >> Please don't do that. >> >> Cc

Re: [Intel-gfx] [PATCH] drm/i915: Clear intel_crtc->atomic before updating it.

2015-11-16 Thread Maarten Lankhorst
Op 16-11-15 om 13:35 schreef Jani Nikula: > On Mon, 16 Nov 2015, Maarten Lankhorst wrote: >> If an atomic update fails intel_crtc->atomic may have have some values left >> from the last atomic check. One example is atomic->wait_for_vblank, >> which results in spurious errors in kms_flip. > Please

Re: [Intel-gfx] [PATCH] drm/i915: Clear intel_crtc->atomic before updating it.

2015-11-16 Thread Jani Nikula
On Mon, 16 Nov 2015, Maarten Lankhorst wrote: > If an atomic update fails intel_crtc->atomic may have have some values left > from the last atomic check. One example is atomic->wait_for_vblank, > which results in spurious errors in kms_flip. Please add the "spurious errors" you see in the commit

Re: [Intel-gfx] [PATCH] drm/i915: Fix crtc_y assignment in intel_find_initial_plane_obj()

2015-11-16 Thread Maarten Lankhorst
Op 13-11-15 om 18:16 schreef ville.syrj...@linux.intel.com: > From: Ville Syrjälä > > Let's set crtc_y to 0 instead of setting src_y twice. > > Multiple assignments in one statement is a good way to hide bugs. > Please don't do that. > > Cc: Maarten Lankhorst > Fixes: be5651f2d581 ("drm/i915: Upd

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Limit the busy wait on requests to 2us not 10ms!

2015-11-16 Thread Tvrtko Ursulin
On 16/11/15 11:12, Chris Wilson wrote: On Mon, Nov 16, 2015 at 10:24:45AM +, Tvrtko Ursulin wrote: Hi, On 15/11/15 13:32, Chris Wilson wrote: When waiting for high frequency requests, the finite amount of time required to set up the irq and wait upon it limits the response rate. By busyw

Re: [Intel-gfx] [PATCH] drm/i915: Clear intel_crtc->atomic before updating it.

2015-11-16 Thread Daniel Stone
Hi, On 16 November 2015 at 11:49, Maarten Lankhorst wrote: > If an atomic update fails intel_crtc->atomic may have have some values left > from the last atomic check. One example is atomic->wait_for_vblank, > which results in spurious errors in kms_flip. > > Testcase: kms_flip > Reported-by: Vill

[Intel-gfx] [PATCH] drm/i915: Clear intel_crtc->atomic before updating it.

2015-11-16 Thread Maarten Lankhorst
If an atomic update fails intel_crtc->atomic may have have some values left from the last atomic check. One example is atomic->wait_for_vblank, which results in spurious errors in kms_flip. Testcase: kms_flip Reported-by: Ville Syrjälä Cc: sta...@vger.kernel.org #v4.3 Signed-off-by: Maarten Lankh

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Break busywaiting for requests on pending signals

2015-11-16 Thread Tvrtko Ursulin
On 16/11/15 11:22, Chris Wilson wrote: On Mon, Nov 16, 2015 at 09:54:10AM +, Tvrtko Ursulin wrote: Hi, On 15/11/15 13:32, Chris Wilson wrote: The busywait in __i915_spin_request() does not respect pending signals and so may consume the entire timeslice for the task instead of returning t

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Break busywaiting for requests on pending signals

2015-11-16 Thread Chris Wilson
On Mon, Nov 16, 2015 at 09:54:10AM +, Tvrtko Ursulin wrote: > > Hi, > > On 15/11/15 13:32, Chris Wilson wrote: > >The busywait in __i915_spin_request() does not respect pending signals > >and so may consume the entire timeslice for the task instead of > >returning to userspace to handle the s

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Limit the busy wait on requests to 2us not 10ms!

2015-11-16 Thread Chris Wilson
On Mon, Nov 16, 2015 at 10:24:45AM +, Tvrtko Ursulin wrote: > > Hi, > > On 15/11/15 13:32, Chris Wilson wrote: > >When waiting for high frequency requests, the finite amount of time > >required to set up the irq and wait upon it limits the response rate. By > >busywaiting on the request compl

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Limit the busy wait on requests to 2us not 10ms!

2015-11-16 Thread Tvrtko Ursulin
Hi, On 15/11/15 13:32, Chris Wilson wrote: When waiting for high frequency requests, the finite amount of time required to set up the irq and wait upon it limits the response rate. By busywaiting on the request completion for a short while we can service the high frequency waits as quick as pos

[Intel-gfx] [PATCH v2 maintainer-tools] dim: Replace git commit --amend from dim_apply with dimrc option

2015-11-16 Thread Ander Conselvan de Oliveira
Introduce DIM_POST_APPLY_ACTION to dimrc that allows the user to specify a command to be run after a patch is applied. Use eval so enviroment variables can be overriden with the option. For example: DIM_POST_APPLY_ACTION="EDITOR=\"gedit -w\" git commit --amend" v2: Initialize variable with defaul

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Break busywaiting for requests on pending signals

2015-11-16 Thread Tvrtko Ursulin
Hi, On 15/11/15 13:32, Chris Wilson wrote: The busywait in __i915_spin_request() does not respect pending signals and so may consume the entire timeslice for the task instead of returning to userspace to handle the signal. Obviously correct to break the spin, but if spending a jiffie to react