All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 29985] New: KMS TV Issue + Possible fix
@ 2010-09-02 22:54 bugzilla-daemon
  2010-09-03 16:39 ` [Bug 29985] " bugzilla-daemon
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: bugzilla-daemon @ 2010-09-02 22:54 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=29985

           Summary: KMS TV Issue + Possible fix
           Product: Mesa
           Version: git
          Platform: x86 (IA32)
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/DRI/R600
        AssignedTo: dri-devel@lists.freedesktop.org
        ReportedBy: lists@andyfurniss.entadsl.com


Running an rv790 I haven't used s-vid TV for a while so am a month late
noticing it had regressed on d-r-t.

Booting old kernels and then using git reset I found the guilty commit to be -

commit 5b1714d386a2f0c0d270e3abe1ac39ad1b0ba010
Author: Alex Deucher <alexdeucher@gmail.com>
Date:   Tue Aug 3 19:59:20 2010 -0400

    drm/radeon/kms: enable underscan option for digital connectors

As it won't revert from d-r-t head I took a closer look and thought this bit to
be suspicious -

@@ -1176,10 +1170,8 @@ int atombios_crtc_mode_set(struct drm_crtc *crtc,
        atombios_crtc_set_pll(crtc, adjusted_mode);
        atombios_enable_ss(crtc);

-       if (ASIC_IS_DCE4(rdev))
+       if (ASIC_IS_AVIVO(rdev))
                atombios_set_crtc_dtd_timing(crtc, adjusted_mode);
-       else if (ASIC_IS_AVIVO(rdev))
-               atombios_crtc_set_timing(crtc, adjusted_mode);
        else {
                atombios_crtc_set_timing(crtc, adjusted_mode);
                if (radeon_crtc->crtc_id == 0)


So I edited by hand to swap back the atombios_crtc_set_timing for AVIVO and the
other one for the rest -

diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c
b/drivers/gpu/drm/radeon/atombios_crtc.c
index 577239a..40ca121 100644
--- a/drivers/gpu/drm/radeon/atombios_crtc.c
+++ b/drivers/gpu/drm/radeon/atombios_crtc.c
@@ -1208,9 +1208,9 @@ int atombios_crtc_mode_set(struct drm_crtc *crtc,
        atombios_enable_ss(crtc);

        if (ASIC_IS_AVIVO(rdev))
-               atombios_set_crtc_dtd_timing(crtc, adjusted_mode);
-       else {
                atombios_crtc_set_timing(crtc, adjusted_mode);
+       else {
+               atombios_set_crtc_dtd_timing(crtc, adjusted_mode);
                if (radeon_crtc->crtc_id == 0)
                        atombios_set_crtc_dtd_timing(crtc, adjusted_mode);
                radeon_legacy_atom_fixup(crtc);


and now have working TV again. I also tested turning on underscan on my DVI
monitor and it still works.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Bug 29985] KMS TV Issue + Possible fix
  2010-09-02 22:54 [Bug 29985] New: KMS TV Issue + Possible fix bugzilla-daemon
@ 2010-09-03 16:39 ` bugzilla-daemon
  2010-09-03 17:06 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: bugzilla-daemon @ 2010-09-03 16:39 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=29985

--- Comment #1 from Andy Furniss <lists@andyfurniss.entadsl.com> 2010-09-03 09:39:04 PDT ---
(In reply to comment #0)

> So I edited by hand to swap back the atombios_crtc_set_timing for AVIVO and the

Of course this may well mess up non AVIVO who were getting
atombios_crtc_set_timing.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 29985] KMS TV Issue + Possible fix
  2010-09-02 22:54 [Bug 29985] New: KMS TV Issue + Possible fix bugzilla-daemon
  2010-09-03 16:39 ` [Bug 29985] " bugzilla-daemon
@ 2010-09-03 17:06 ` bugzilla-daemon
  2010-09-03 18:48 ` bugzilla-daemon
  2010-09-24 21:46 ` bugzilla-daemon
  3 siblings, 0 replies; 5+ messages in thread
From: bugzilla-daemon @ 2010-09-03 17:06 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=29985

--- Comment #2 from Alex Deucher <agd5f@yahoo.com> 2010-09-03 10:06:06 PDT ---
Created an attachment (id=38406)
 View: https://bugs.freedesktop.org/attachment.cgi?id=38406
 Review: https://bugs.freedesktop.org/review?bug=29985&attachment=38406

possible fix

Does this patch fix it?

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 29985] KMS TV Issue + Possible fix
  2010-09-02 22:54 [Bug 29985] New: KMS TV Issue + Possible fix bugzilla-daemon
  2010-09-03 16:39 ` [Bug 29985] " bugzilla-daemon
  2010-09-03 17:06 ` bugzilla-daemon
@ 2010-09-03 18:48 ` bugzilla-daemon
  2010-09-24 21:46 ` bugzilla-daemon
  3 siblings, 0 replies; 5+ messages in thread
From: bugzilla-daemon @ 2010-09-03 18:48 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=29985

--- Comment #3 from Andy Furniss <lists@andyfurniss.entadsl.com> 2010-09-03 11:48:27 PDT ---
(In reply to comment #2)
> Created an attachment (id=38406)
 View: https://bugs.freedesktop.org/attachment.cgi?id=38406
 Review: https://bugs.freedesktop.org/review?bug=29985&attachment=38406

> possible fix
> 
> Does this patch fix it?

Yes that fixes it, thanks.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 29985] KMS TV Issue + Possible fix
  2010-09-02 22:54 [Bug 29985] New: KMS TV Issue + Possible fix bugzilla-daemon
                   ` (2 preceding siblings ...)
  2010-09-03 18:48 ` bugzilla-daemon
@ 2010-09-24 21:46 ` bugzilla-daemon
  3 siblings, 0 replies; 5+ messages in thread
From: bugzilla-daemon @ 2010-09-24 21:46 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=29985

Andy Furniss <lists@andyfurniss.entadsl.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-09-24 21:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-02 22:54 [Bug 29985] New: KMS TV Issue + Possible fix bugzilla-daemon
2010-09-03 16:39 ` [Bug 29985] " bugzilla-daemon
2010-09-03 17:06 ` bugzilla-daemon
2010-09-03 18:48 ` bugzilla-daemon
2010-09-24 21:46 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.