Re: drm/radeon/kms: fix up LVDS handling on macs (v2)

From: Michel Dänzer
Date: Thu Jan 14 2010 - 05:16:45 EST


On Thu, 2010-01-14 at 13:45 +1100, Benjamin Herrenschmidt wrote:
> On Thu, 2010-01-14 at 00:59 +0000, Linux Kernel Mailing List wrote:
> > Gitweb: http://git.kernel.org/linus/3890ddf56dbc0f804953198e65a7e406ed654576
> > Commit: 3890ddf56dbc0f804953198e65a7e406ed654576
> > Parent: 804c7559e9376c3ba78ae15a30337b1e24f8ae80
> > Author: Alex Deucher <alexdeucher@xxxxxxxxx>
> > AuthorDate: Tue Jan 12 11:16:57 2010 -0500
> > Committer: Dave Airlie <airlied@xxxxxxxxxx>
> > CommitDate: Wed Jan 13 13:25:08 2010 +1000
> >
> > drm/radeon/kms: fix up LVDS handling on macs (v2)
> >
> > Based on radeonfb code and recent ddx fix.
> >
> > v2: minor formatting fix from Michel DÃnzer
> >
> > Signed-off-by: Alex Deucher <alexdeucher@xxxxxxxxx>
> > Reviewed-by: Michel DÃnzer <michel@xxxxxxxxxxx>
> > Tested-by: Michel DÃnzer <michel@xxxxxxxxxxx>
> > Signed-off-by: Dave Airlie <airlied@xxxxxxxxxx>
>
> I have to dbl check that ... but I think the "Real" issue is that some
> panel have inverted polarity on the PWM signal. Thus if BLON is turned
> off the panels goes full backlight instead among other things :-)
>
> However, not all macs are the same. If you look at the radeonfb code,
> we do things differently depending on the mac model...

I have looked at radeonfb for a patch I posted a while ago to expose a
backlight class device with KMS, and I can only see what you describe
above affecting the LVDS_GEN_CNTL backlight level, not BLON or
BL_MOD_EN. Am I missing something?

Without my patch, KMS doesn't change the backlight level at all, so
assuming the firmware manages to enable the backlight, it should stay
like that.


--
Earthling Michel DÃnzer | http://www.vmware.com
Libre software enthusiast | Debian, X and DRI developer
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/