Re: [Intel-gfx] R31 dithering

2015-03-30 Thread Thomas Richter
Am 30.03.2015 um 13:55 schrieb Ville Syrjälä:
 On Fri, Mar 27, 2015 at 07:57:52PM +0100, Thomas Richter wrote:

 Thanks and have a nice weekend,
 
 BTW I think this bug is about failure to restore the ivch to proper
 state after suspend (on X30): 
 https://bugs.freedesktop.org/show_bug.cgi?id=49838
 Just in case you're looking for more stuff to do around the ivch ;)

Well, no x30 around here unfortunately, though I can possibly check for
helpers in a German Thinkpad forum. Maybe somebody with enough
Linux-awareness can remote-debug and provide a couple of register
listings to re-enable the DVO as required during wake-up. Or provides an
x30. (-:

I'll check and let you know.

Greetings,
Thomas

___
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx


Re: [Intel-gfx] R31 dithering

2015-03-30 Thread Ville Syrjälä
On Mon, Mar 30, 2015 at 03:54:29PM +0200, Thomas Richter wrote:
 Am 30.03.2015 um 13:55 schrieb Ville Syrjälä:
  On Fri, Mar 27, 2015 at 07:57:52PM +0100, Thomas Richter wrote:
 
  Thanks and have a nice weekend,
  
  BTW I think this bug is about failure to restore the ivch to proper
  state after suspend (on X30): 
  https://bugs.freedesktop.org/show_bug.cgi?id=49838
  Just in case you're looking for more stuff to do around the ivch ;)
 
 Well, no x30 around here unfortunately, though I can possibly check for
 helpers in a German Thinkpad forum. Maybe somebody with enough
 Linux-awareness can remote-debug and provide a couple of register
 listings to re-enable the DVO as required during wake-up. Or provides an
 x30. (-:
 
 I'll check and let you know.

I was assuming your R31 or whatever would have the same problems.

-- 
Ville Syrjälä
Intel OTC
___
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx


Re: [Intel-gfx] R31 dithering

2015-03-30 Thread Thomas Richter
Am 30.03.2015 um 15:59 schrieb Ville Syrjälä:
 On Mon, Mar 30, 2015 at 03:54:29PM +0200, Thomas Richter wrote:
 Am 30.03.2015 um 13:55 schrieb Ville Syrjälä:
 On Fri, Mar 27, 2015 at 07:57:52PM +0100, Thomas Richter wrote:

 Thanks and have a nice weekend,

 BTW I think this bug is about failure to restore the ivch to proper
 state after suspend (on X30): 
 https://bugs.freedesktop.org/show_bug.cgi?id=49838
 Just in case you're looking for more stuff to do around the ivch ;)

 Well, no x30 around here unfortunately, though I can possibly check for
 helpers in a German Thinkpad forum. Maybe somebody with enough
 Linux-awareness can remote-debug and provide a couple of register
 listings to re-enable the DVO as required during wake-up. Or provides an
 x30. (-:

 I'll check and let you know.
 
 I was assuming your R31 or whatever would have the same problems.

No, astonishingly, not. Suspend/resume and hibernate work fine. Well,
somewhat... Actually, the R31 only supports S1 (standby) correctly and
not S3 (suspend to RAM), even though ACPI (the DSDT) makes you believe
that S3 would work.

Problem is that the bios does not even enter the kernel anymore once you
wake it up from S3 - it's completely dead then and the user mode entry
point of the kernel is never reached. So the kernel can hardly do
anything about this in first place I personally solved the problem
by providing a custom DSDT which just disables S3, and it worked happily
ever after...

Greetings,
Thomas


___
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx


Re: [Intel-gfx] R31 dithering

2015-03-30 Thread Ville Syrjälä
On Fri, Mar 27, 2015 at 07:57:52PM +0100, Thomas Richter wrote:
 Hi Daniel, hi Ville,
 
 thanks for your help. I used now the debug output to research how to 
 enable dithering on the intel VCH. Apparently, it is bit #4 in register
 VR01 that enables dithering. This is cross-checked by enabling in the
 dvo_ivch.c file, which greatly improves image quality for 24bpp output. 
 The bit itself is documented as reserved in the intel documentation, 
 though it works quite nicely here.
 
 I will now cross-check a little bit which other side effects this bit
 has if combined with other DVO features (16bpp output, and scaler 
 enabled). As soon as I have more, I'll prepare a small kernel patch for
 it.
 
 Thanks and have a nice weekend,

BTW I think this bug is about failure to restore the ivch to proper
state after suspend (on X30): https://bugs.freedesktop.org/show_bug.cgi?id=49838
Just in case you're looking for more stuff to do around the ivch ;)

-- 
Ville Syrjälä
Intel OTC
___
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx


[Intel-gfx] R31 dithering

2015-03-27 Thread Thomas Richter

Hi Daniel, hi Ville,

thanks for your help. I used now the debug output to research how to 
enable dithering on the intel VCH. Apparently, it is bit #4 in register

VR01 that enables dithering. This is cross-checked by enabling in the
dvo_ivch.c file, which greatly improves image quality for 24bpp output. 
The bit itself is documented as reserved in the intel documentation, 
though it works quite nicely here.


I will now cross-check a little bit which other side effects this bit
has if combined with other DVO features (16bpp output, and scaler 
enabled). As soon as I have more, I'll prepare a small kernel patch for

it.

Thanks and have a nice weekend,

Thomas

___
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx