Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1240610 > unrolled thread
| Started by | Nick Bowler <nbowler@draconx.ca> |
|---|---|
| First post | 2015-10-06 17:50 +0200 |
| Last post | 2015-10-07 21:10 +0200 |
| Articles | 8 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: PROBLEM: Intel VGA output busticated on 4.3-rc2 (regression) Nick Bowler <nbowler@draconx.ca> - 2015-10-06 17:50 +0200
Re: PROBLEM: Intel VGA output busticated on 4.3-rc2 (regression) Ville Syrjälä <ville.syrjala@linux.intel.com> - 2015-10-07 14:00 +0200
Re: PROBLEM: Intel VGA output busticated on 4.3-rc2 (regression) Nick Bowler <nbowler@draconx.ca> - 2015-10-07 16:30 +0200
Re: PROBLEM: Intel VGA output busticated on 4.3-rc2 (regression) Ville Syrjälä <ville.syrjala@linux.intel.com> - 2015-10-07 17:40 +0200
Re: PROBLEM: Intel VGA output busticated on 4.3-rc2 (regression) Nick Bowler <nbowler@draconx.ca> - 2015-10-07 17:50 +0200
Re: PROBLEM: Intel VGA output busticated on 4.3-rc2 (regression) Nick Bowler <nbowler@draconx.ca> - 2015-10-07 17:50 +0200
Re: PROBLEM: Intel VGA output busticated on 4.3-rc2 (regression) Nick Bowler <nbowler@draconx.ca> - 2015-10-07 21:00 +0200
Re: PROBLEM: Intel VGA output busticated on 4.3-rc2 (regression) Ville Syrjälä <ville.syrjala@linux.intel.com> - 2015-10-07 21:10 +0200
| From | Nick Bowler <nbowler@draconx.ca> |
|---|---|
| Date | 2015-10-06 17:50 +0200 |
| Subject | Re: PROBLEM: Intel VGA output busticated on 4.3-rc2 (regression) |
| Message-ID | <qgCF4-20n-21@gated-at.bofh.it> |
Hi,
This issue is still present in 4.3-rc4.
On 9/24/15, Nick Bowler <nbowler@draconx.ca> wrote:
> Testing out 4.3-rc2, first thing I notice is that the VGA output is
> not working. Specifically, the display is continuously powering on
> and off -- at no point is any image visible on the screen (I am expecting
> to see the console output). The display connected to the HDMI output is
> working fine.
>
> Linux 4.2 did not suffer from this problem.
>
> In dmesg I see the following messages, which I do not see on a working
> kernel. Full dmesg from 4.3-rc2 is attached (gzipped).
>
> [ 0.115339] [drm:drm_calc_timestamping_constants] *ERROR* crtc
> 21: Can't calculate constants, dotclock = 0!
> [ 0.117582] [drm:intel_opregion_init] *ERROR* No ACPI video bus found
>
> This is an older machine with Intel G45 graphics.
I was able to identify the commit which fixed my boot crashes, so I
cherry-picked 80aa93128653 ("drm/i915: disable_shared_pll doesn't
work on pre-gen5") on top of all otherwise untestable commits. This
allowed bisection to proceed:
b8afb9113c519a8bd742f7df8c424b0af69a75cd is the first bad commit
commit b8afb9113c519a8bd742f7df8c424b0af69a75cd
Author: Ville Syrjälä <ville.syrjala@linux.intel.com>
Date: Mon Jun 29 15:25:48 2015 +0300
drm/i915: Keep GMCH DPLL VGA mode always disabled
We disable the DPLL VGA mode when enabling the DPLL, but we enaable it
again when disabling the DPLL. Having VGA mode enabled even in unused
DPLLs can cause problems for CHV, so it seems wiser to always keep it
disabled. And let's just do that on all GMCH platforms to keep things
as similar as possible between them.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Sivakumar Thulasimani <sivakumar.thulasimani@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
:040000 040000 7797d596e73ecf75723375028decd25fbe332ee0
9f90a92eec483919853d68563bbb09a71a305532 M drivers
Unfortunately it does not revert cleanly on master.
Regards,
Nick
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Ville Syrjälä <ville.syrjala@linux.intel.com> |
|---|---|
| Date | 2015-10-07 14:00 +0200 |
| Message-ID | <qgVy2-3SB-19@gated-at.bofh.it> |
| In reply to | #1240610 |
On Tue, Oct 06, 2015 at 11:42:33AM -0400, Nick Bowler wrote:
> Hi,
>
> This issue is still present in 4.3-rc4.
>
> On 9/24/15, Nick Bowler <nbowler@draconx.ca> wrote:
> > Testing out 4.3-rc2, first thing I notice is that the VGA output is
> > not working. Specifically, the display is continuously powering on
> > and off -- at no point is any image visible on the screen (I am expecting
> > to see the console output). The display connected to the HDMI output is
> > working fine.
> >
> > Linux 4.2 did not suffer from this problem.
> >
> > In dmesg I see the following messages, which I do not see on a working
> > kernel. Full dmesg from 4.3-rc2 is attached (gzipped).
> >
> > [ 0.115339] [drm:drm_calc_timestamping_constants] *ERROR* crtc
> > 21: Can't calculate constants, dotclock = 0!
> > [ 0.117582] [drm:intel_opregion_init] *ERROR* No ACPI video bus found
> >
> > This is an older machine with Intel G45 graphics.
>
> I was able to identify the commit which fixed my boot crashes, so I
> cherry-picked 80aa93128653 ("drm/i915: disable_shared_pll doesn't
> work on pre-gen5") on top of all otherwise untestable commits. This
> allowed bisection to proceed:
>
> b8afb9113c519a8bd742f7df8c424b0af69a75cd is the first bad commit
> commit b8afb9113c519a8bd742f7df8c424b0af69a75cd
> Author: Ville Syrjälä <ville.syrjala@linux.intel.com>
> Date: Mon Jun 29 15:25:48 2015 +0300
>
> drm/i915: Keep GMCH DPLL VGA mode always disabled
>
> We disable the DPLL VGA mode when enabling the DPLL, but we enaable it
> again when disabling the DPLL. Having VGA mode enabled even in unused
> DPLLs can cause problems for CHV, so it seems wiser to always keep it
> disabled. And let's just do that on all GMCH platforms to keep things
> as similar as possible between them.
>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> Reviewed-by: Sivakumar Thulasimani <sivakumar.thulasimani@intel.com>
> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
>
> :040000 040000 7797d596e73ecf75723375028decd25fbe332ee0
> 9f90a92eec483919853d68563bbb09a71a305532 M drivers
>
> Unfortunately it does not revert cleanly on master.
@@ -1790,13 +1790,13 @@ static void i9xx_disable_pll(struct intel_crtc *crtc)
/* Make sure the pipe isn't still relying on us */
assert_pipe_disabled(dev_priv, pipe);
- I915_WRITE(DPLL(pipe), 0);
+ I915_WRITE(DPLL(pipe), DPLL_VGA_MODE_DIS);
POSTING_READ(DPLL(pipe));
}
That hunk is the only relevant part for your machine. Can you try to revert
just that manually?
But I'm really surprised that would have any effect since we only used
to enable "VGA mode" when the DPLL is off. And when the DPLL is off,
there's nothing on the screen anyway.
--
Ville Syrjälä
Intel OTC
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Nick Bowler <nbowler@draconx.ca> |
|---|---|
| Date | 2015-10-07 16:30 +0200 |
| Message-ID | <qgXTc-7qA-15@gated-at.bofh.it> |
| In reply to | #1241409 |
On 10/7/15, Ville Syrjälä <ville.syrjala@linux.intel.com> wrote: > On Tue, Oct 06, 2015 at 11:42:33AM -0400, Nick Bowler wrote: >> On 9/24/15, Nick Bowler <nbowler@draconx.ca> wrote: >> > Testing out 4.3-rc2, first thing I notice is that the VGA output is >> > not working. Specifically, the display is continuously powering on >> > and off -- at no point is any image visible on the screen (I am >> > expecting to see the console output). The display connected to the >> > HDMI output is working fine. [...] >> b8afb9113c519a8bd742f7df8c424b0af69a75cd is the first bad commit >> commit b8afb9113c519a8bd742f7df8c424b0af69a75cd >> Author: Ville Syrjälä <ville.syrjala@linux.intel.com> >> Date: Mon Jun 29 15:25:48 2015 +0300 >> >> drm/i915: Keep GMCH DPLL VGA mode always disabled [...] > @@ -1790,13 +1790,13 @@ static void i9xx_disable_pll(struct intel_crtc > *crtc) > /* Make sure the pipe isn't still relying on us */ > assert_pipe_disabled(dev_priv, pipe); > > - I915_WRITE(DPLL(pipe), 0); > + I915_WRITE(DPLL(pipe), DPLL_VGA_MODE_DIS); > POSTING_READ(DPLL(pipe)); > } > > > That hunk is the only relevant part for your machine. Can you try to revert > just that manually? > > But I'm really surprised that would have any effect since we only used > to enable "VGA mode" when the DPLL is off. And when the DPLL is off, > there's nothing on the screen anyway. Nevertheless, manually reverting just that hunk seems to fix it. Thanks, Nick -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Ville Syrjälä <ville.syrjala@linux.intel.com> |
|---|---|
| Date | 2015-10-07 17:40 +0200 |
| Message-ID | <qgYYW-wa-15@gated-at.bofh.it> |
| In reply to | #1241550 |
[Multipart message — attachments visible in raw view] — view raw
On Wed, Oct 07, 2015 at 10:29:22AM -0400, Nick Bowler wrote: > On 10/7/15, Ville Syrjälä <ville.syrjala@linux.intel.com> wrote: > > On Tue, Oct 06, 2015 at 11:42:33AM -0400, Nick Bowler wrote: > >> On 9/24/15, Nick Bowler <nbowler@draconx.ca> wrote: > >> > Testing out 4.3-rc2, first thing I notice is that the VGA output is > >> > not working. Specifically, the display is continuously powering on > >> > and off -- at no point is any image visible on the screen (I am > >> > expecting to see the console output). The display connected to the > >> > HDMI output is working fine. > [...] > >> b8afb9113c519a8bd742f7df8c424b0af69a75cd is the first bad commit > >> commit b8afb9113c519a8bd742f7df8c424b0af69a75cd > >> Author: Ville Syrjälä <ville.syrjala@linux.intel.com> > >> Date: Mon Jun 29 15:25:48 2015 +0300 > >> > >> drm/i915: Keep GMCH DPLL VGA mode always disabled > [...] > > @@ -1790,13 +1790,13 @@ static void i9xx_disable_pll(struct intel_crtc > > *crtc) > > /* Make sure the pipe isn't still relying on us */ > > assert_pipe_disabled(dev_priv, pipe); > > > > - I915_WRITE(DPLL(pipe), 0); > > + I915_WRITE(DPLL(pipe), DPLL_VGA_MODE_DIS); > > POSTING_READ(DPLL(pipe)); > > } > > > > > > That hunk is the only relevant part for your machine. Can you try to revert > > just that manually? > > > > But I'm really surprised that would have any effect since we only used > > to enable "VGA mode" when the DPLL is off. And when the DPLL is off, > > there's nothing on the screen anyway. > > Nevertheless, manually reverting just that hunk seems to fix it. Hmm. You said VGA has the problem, but HDMI does not. Was the problem happening even when you have both displays enabled at the same time, or just when VGA was enabled alone? I've attached two potential patches that might help. Can you give a try to just patch 1, and if that alone doesn't help then both patches together? -- Ville Syrjälä Intel OTC
[toc] | [prev] | [next] | [standalone]
| From | Nick Bowler <nbowler@draconx.ca> |
|---|---|
| Date | 2015-10-07 17:50 +0200 |
| Message-ID | <qgZ8C-Hx-17@gated-at.bofh.it> |
| In reply to | #1241604 |
On 10/7/15, Nick Bowler <nbowler@draconx.ca> wrote: > On 10/7/15, Ville Syrjälä <ville.syrjala@linux.intel.com> wrote: >> On Wed, Oct 07, 2015 at 10:29:22AM -0400, Nick Bowler wrote: >>> On 10/7/15, Ville Syrjälä <ville.syrjala@linux.intel.com> wrote: >>> > On Tue, Oct 06, 2015 at 11:42:33AM -0400, Nick Bowler wrote: >>> >> On 9/24/15, Nick Bowler <nbowler@draconx.ca> wrote: >>> >> > Testing out 4.3-rc2, first thing I notice is that the VGA output is >>> >> > not working. Specifically, the display is continuously powering on >>> >> > and off -- at no point is any image visible on the screen (I am >>> >> > expecting to see the console output). The display connected to the >>> >> > HDMI output is working fine. >>> [...] >> Hmm. You said VGA has the problem, but HDMI does not. Was the problem >> happening even when you have both displays enabled at the same time, or >> just when VGA was enabled alone? > > When I boot with HDMI cable disconnected, there is no change in behaviour > for the VGA output. Clarification: normally both displays are connected. So the original issue is that only one of two displays are working. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Nick Bowler <nbowler@draconx.ca> |
|---|---|
| Date | 2015-10-07 17:50 +0200 |
| Message-ID | <qgZ8C-Hx-19@gated-at.bofh.it> |
| In reply to | #1241604 |
On 10/7/15, Ville Syrjälä <ville.syrjala@linux.intel.com> wrote: > On Wed, Oct 07, 2015 at 10:29:22AM -0400, Nick Bowler wrote: >> On 10/7/15, Ville Syrjälä <ville.syrjala@linux.intel.com> wrote: >> > On Tue, Oct 06, 2015 at 11:42:33AM -0400, Nick Bowler wrote: >> >> On 9/24/15, Nick Bowler <nbowler@draconx.ca> wrote: >> >> > Testing out 4.3-rc2, first thing I notice is that the VGA output is >> >> > not working. Specifically, the display is continuously powering on >> >> > and off -- at no point is any image visible on the screen (I am >> >> > expecting to see the console output). The display connected to the >> >> > HDMI output is working fine. >> [...] > Hmm. You said VGA has the problem, but HDMI does not. Was the problem > happening even when you have both displays enabled at the same time, or > just when VGA was enabled alone? When I boot with HDMI cable disconnected, there is no change in behaviour for the VGA output. > I've attached two potential patches that might help. Can you give a try > to just patch 1, and if that alone doesn't help then both patches > together? I will try. Cheers, Nick -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Nick Bowler <nbowler@draconx.ca> |
|---|---|
| Date | 2015-10-07 21:00 +0200 |
| Message-ID | <qh26t-4Xj-11@gated-at.bofh.it> |
| In reply to | #1241604 |
On 10/7/15, Ville Syrjälä <ville.syrjala@linux.intel.com> wrote: > On Wed, Oct 07, 2015 at 10:29:22AM -0400, Nick Bowler wrote: >> On 10/7/15, Ville Syrjälä <ville.syrjala@linux.intel.com> wrote: >> > On Tue, Oct 06, 2015 at 11:42:33AM -0400, Nick Bowler wrote: >> >> On 9/24/15, Nick Bowler <nbowler@draconx.ca> wrote: >> >> > Testing out 4.3-rc2, first thing I notice is that the VGA output is >> >> > not working. Specifically, the display is continuously powering on >> >> > and off -- at no point is any image visible on the screen (I am >> >> > expecting to see the console output). The display connected to the >> >> > HDMI output is working fine. >> [...] > I've attached two potential patches that might help. Can you give a try > to just patch 1, and if that alone doesn't help then both patches > together? Patch #1: no change. Patch #1+#2: this works. Regards, Nick -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Ville Syrjälä <ville.syrjala@linux.intel.com> |
|---|---|
| Date | 2015-10-07 21:10 +0200 |
| Message-ID | <qh2ga-5nJ-17@gated-at.bofh.it> |
| In reply to | #1241732 |
On Wed, Oct 07, 2015 at 02:50:34PM -0400, Nick Bowler wrote: > On 10/7/15, Ville Syrjälä <ville.syrjala@linux.intel.com> wrote: > > On Wed, Oct 07, 2015 at 10:29:22AM -0400, Nick Bowler wrote: > >> On 10/7/15, Ville Syrjälä <ville.syrjala@linux.intel.com> wrote: > >> > On Tue, Oct 06, 2015 at 11:42:33AM -0400, Nick Bowler wrote: > >> >> On 9/24/15, Nick Bowler <nbowler@draconx.ca> wrote: > >> >> > Testing out 4.3-rc2, first thing I notice is that the VGA output is > >> >> > not working. Specifically, the display is continuously powering on > >> >> > and off -- at no point is any image visible on the screen (I am > >> >> > expecting to see the console output). The display connected to the > >> >> > HDMI output is working fine. > >> [...] > > I've attached two potential patches that might help. Can you give a try > > to just patch 1, and if that alone doesn't help then both patches > > together? > > Patch #1: no change. > Patch #1+#2: this works. Cool. I can see similar effects when manually frobbing the register on my 946GZ, except somehow it still manages to work without these patches. Not quite sure why that is. But anyway, I'll polish the patches a bit and send them out. -- Ville Syrjälä Intel OTC -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web