All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 14597] New: randr12 failures on 12" powerbooks, and workarounds
@ 2008-02-21  7:33 bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
       [not found] ` <bug-14597-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
  0 siblings, 1 reply; 28+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2008-02-21  7:33 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

http://bugs.freedesktop.org/show_bug.cgi?id=14597

           Summary: randr12 failures on 12" powerbooks, and workarounds
           Product: xorg
           Version: git
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Driver/nouveau
        AssignedTo: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
        ReportedBy: obiwan-ajv+KCCKUOlAfugRpC6u6w@public.gmane.org
         QAContact: xorg-team-go0+a7rfsptAfugRpC6u6w@public.gmane.org


As has been reported several times on irc in the past (dating back to december
at least), randr12 is still not working on powerbooks. I decided to have a good
look at it and tried to find the issues by comparing registers in the randr and
non-randr state.

OpenFirmware posts the card and by default sets up a 1024x768 mode, only 8 bit
color however. For some reason, powerbooks have the internal LVDS on CRTC1.
When plugging an exernal analog TFT screen, it flashes white during OF init,
but stays black after that. randr2 was able to correctly recognize it. The
problem seemed only to happen with the internal LVDS.

Post of BIOS image, Xorg log, reg traces and initial patch follow.

Danny


-- 
Configure bugmail: http://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] 28+ messages in thread

* [Bug 14597] randr12 failures on 12" powerbooks, and workarounds
       [not found] ` <bug-14597-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
@ 2008-02-21  7:47   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2008-02-21  7:52   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
                     ` (25 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2008-02-21  7:47 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

http://bugs.freedesktop.org/show_bug.cgi?id=14597





--- Comment #1 from Danny <obiwan-ajv+KCCKUOlAfugRpC6u6w@public.gmane.org>  2008-02-20 23:47:12 PST ---
Created an attachment (id=14470)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=14470)
vbios image nv34 on powerbook

bios image. If i read it correctly data[lvdsofs]=0x65, and to get the offset we
should do recordlength * 1.

d.


-- 
Configure bugmail: http://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] 28+ messages in thread

* [Bug 14597] randr12 failures on 12" powerbooks, and workarounds
       [not found] ` <bug-14597-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
  2008-02-21  7:47   ` [Bug 14597] " bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2008-02-21  7:52   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2008-02-21  7:53   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
                     ` (24 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2008-02-21  7:52 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

http://bugs.freedesktop.org/show_bug.cgi?id=14597





--- Comment #2 from Danny <obiwan-ajv+KCCKUOlAfugRpC6u6w@public.gmane.org>  2008-02-20 23:52:01 PST ---
Created an attachment (id=14471)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=14471)
xorg log with randr enabled.

Xorg log with randr12 enabled.

Several observations:
-for some reason, X seems to thing 800x600 is a nice resolution. I have no clue
why. I think this has been fixed in later versions as I saw a 1.4.0 log without
this sillyness.
-all modes are rejected because VRefresh is out of range. Since DDC says they
are all 0. Why don't we calculate a sensible VRefresh instead of asking people
to remove the ranges from the xorg.conf (I may be ignorant here)
-the bitdepth of the console mode is incorrectly detected. However, from
multiple test i think it only does it wrong the first time on boot (not sure).
We do not seem to use this info currently.
-screen stays black. Even after fixing above problems and having it set the
default DDC mode.


-- 
Configure bugmail: http://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] 28+ messages in thread

* [Bug 14597] randr12 failures on 12" powerbooks, and workarounds
       [not found] ` <bug-14597-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
  2008-02-21  7:47   ` [Bug 14597] " bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2008-02-21  7:52   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2008-02-21  7:53   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2008-02-21  7:57   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
                     ` (23 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2008-02-21  7:53 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

http://bugs.freedesktop.org/show_bug.cgi?id=14597





--- Comment #3 from Danny <obiwan-ajv+KCCKUOlAfugRpC6u6w@public.gmane.org>  2008-02-20 23:53:07 PST ---
Created an attachment (id=14472)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=14472)
reg dump randr12 inactive

register dump without randr12 running, as intialized by OF.


-- 
Configure bugmail: http://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] 28+ messages in thread

* [Bug 14597] randr12 failures on 12" powerbooks, and workarounds
       [not found] ` <bug-14597-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
                     ` (2 preceding siblings ...)
  2008-02-21  7:53   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2008-02-21  7:57   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2008-02-21  8:08   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
                     ` (22 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2008-02-21  7:57 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

http://bugs.freedesktop.org/show_bug.cgi?id=14597





--- Comment #4 from Danny <obiwan-ajv+KCCKUOlAfugRpC6u6w@public.gmane.org>  2008-02-20 23:57:40 PST ---
Created an attachment (id=14473)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=14473)
reg dump randr12 active

register dump with randr12 active and when experiencing a "black" screen. The
backlight is on in such case but the panel seems completely off (no slight
flickering, which i can sometimes observe when a mode is set but the screen is
black).


-- 
Configure bugmail: http://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] 28+ messages in thread

* [Bug 14597] randr12 failures on 12" powerbooks, and workarounds
       [not found] ` <bug-14597-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
                     ` (3 preceding siblings ...)
  2008-02-21  7:57   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2008-02-21  8:08   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2008-02-21  8:09   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
                     ` (21 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2008-02-21  8:08 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

http://bugs.freedesktop.org/show_bug.cgi?id=14597





--- Comment #5 from Danny <obiwan-ajv+KCCKUOlAfugRpC6u6w@public.gmane.org>  2008-02-21 00:08:17 PST ---
Created an attachment (id=14474)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=14474)
patch to provisionally work around the randr12 problems

I tried to have the registers match the values provided by OF better. Although
for some reason, the calculated ppls are very different from OF (and also
different from the kernel rivafb framebuffer driver) they do seem to work.

It would be nice if there be some was as to at least set some sensible virtualX
value (ie matching the native size?). But perhaps it is just my old X server
being broken.

The other thing is I wonder if once could not calculate a Vrefresh from DDC as
to prevent the need to remove the ranges from xorg.conf.

The rest of the patch:
1) sets the manufacturerindex to 1 to get to the correct offset
2) prevents the setting of a high bit of fp_control[1] which makes my screen
black if set
3) prevents running of the LVDS_RESET script. This changes the content of many
registers leading again to a black screen. Perhaps we do not run the script
correctly (some code there use again values got from the bios, which may be
incorrect and leading to problems in both 2 and 3)

With the patch i can resize and rotate modes. Switch to console works most of
the time, with the exception that the screen is slightly shifted to the left
(ie, in text mode, login: appears somewhere (ca 6 chars from) the right of the
display.

I have not tested the analog output yet with this patch (will do soon).

d.


-- 
Configure bugmail: http://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] 28+ messages in thread

* [Bug 14597] randr12 failures on 12" powerbooks, and workarounds
       [not found] ` <bug-14597-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
                     ` (4 preceding siblings ...)
  2008-02-21  8:08   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2008-02-21  8:09   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2008-02-21  8:11   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
                     ` (20 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2008-02-21  8:09 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

http://bugs.freedesktop.org/show_bug.cgi?id=14597





--- Comment #6 from Danny <obiwan-ajv+KCCKUOlAfugRpC6u6w@public.gmane.org>  2008-02-21 00:09:28 PST ---
Created an attachment (id=14475)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=14475)
reg dump with randr12 active

register dump with patch and randr12 working.


-- 
Configure bugmail: http://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] 28+ messages in thread

* [Bug 14597] randr12 failures on 12" powerbooks, and workarounds
       [not found] ` <bug-14597-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
                     ` (5 preceding siblings ...)
  2008-02-21  8:09   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2008-02-21  8:11   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2008-02-27 10:06   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
                     ` (19 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2008-02-21  8:11 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

http://bugs.freedesktop.org/show_bug.cgi?id=14597





--- Comment #7 from Danny <obiwan-ajv+KCCKUOlAfugRpC6u6w@public.gmane.org>  2008-02-21 00:11:12 PST ---
Created an attachment (id=14476)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=14476)
xorg log with randr12 enabled and working

finally the xorg.log of the working configuration.


-- 
Configure bugmail: http://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] 28+ messages in thread

* [Bug 14597] randr12 failures on 12" powerbooks, and workarounds
       [not found] ` <bug-14597-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
                     ` (6 preceding siblings ...)
  2008-02-21  8:11   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2008-02-27 10:06   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2008-02-27 12:58   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
                     ` (18 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2008-02-27 10:06 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

http://bugs.freedesktop.org/show_bug.cgi?id=14597





--- Comment #8 from Danny <obiwan-ajv+KCCKUOlAfugRpC6u6w@public.gmane.org>  2008-02-27 02:06:11 PST ---
update: with latest git, only the fp_control part of my patch is still needed.

d.


-- 
Configure bugmail: http://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] 28+ messages in thread

* [Bug 14597] randr12 failures on 12" powerbooks, and workarounds
       [not found] ` <bug-14597-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
                     ` (7 preceding siblings ...)
  2008-02-27 10:06   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2008-02-27 12:58   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2008-02-28  5:17   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
                     ` (17 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2008-02-27 12:58 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

http://bugs.freedesktop.org/show_bug.cgi?id=14597





--- Comment #9 from Stuart Bennett <sb476-KWPb1pKIrIJaa/9Udqfwiw@public.gmane.org>  2008-02-27 04:58:02 PST ---
Fixed?


-- 
Configure bugmail: http://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] 28+ messages in thread

* [Bug 14597] randr12 failures on 12" powerbooks, and workarounds
       [not found] ` <bug-14597-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
                     ` (8 preceding siblings ...)
  2008-02-27 12:58   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2008-02-28  5:17   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2008-02-28 14:34   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
                     ` (16 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2008-02-28  5:17 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

http://bugs.freedesktop.org/show_bug.cgi?id=14597





--- Comment #10 from Danny <obiwan-ajv+KCCKUOlAfugRpC6u6w@public.gmane.org>  2008-02-27 21:17:19 PST ---
nope. Setting a transition frequency fixes fp_control, but causes the wrong
LVDS_RESET scripts to run again.

d.


-- 
Configure bugmail: http://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] 28+ messages in thread

* [Bug 14597] randr12 failures on 12" powerbooks, and workarounds
       [not found] ` <bug-14597-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
                     ` (9 preceding siblings ...)
  2008-02-28  5:17   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2008-02-28 14:34   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2008-02-29  4:18   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
                     ` (15 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2008-02-28 14:34 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

http://bugs.freedesktop.org/show_bug.cgi?id=14597





--- Comment #11 from Stuart Bennett <sb476-KWPb1pKIrIJaa/9Udqfwiw@public.gmane.org>  2008-02-28 06:34:30 PST ---
Please attach xorg logs for both before and after the default transition clock
addition. Also, using the "before" case + the fp.dual_link patch (i.e. a
working state), please get nv_output_save to print out all the members of
regp->TMDS after they have been read in the loop, and attach that too.


-- 
Configure bugmail: http://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] 28+ messages in thread

* [Bug 14597] randr12 failures on 12" powerbooks, and workarounds
       [not found] ` <bug-14597-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
                     ` (10 preceding siblings ...)
  2008-02-28 14:34   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2008-02-29  4:18   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2008-02-29  4:51   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
                     ` (14 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2008-02-29  4:18 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

http://bugs.freedesktop.org/show_bug.cgi?id=14597





--- Comment #12 from Danny <obiwan-ajv+KCCKUOlAfugRpC6u6w@public.gmane.org>  2008-02-28 20:17:59 PST ---
Created an attachment (id=14678)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=14678)
xorg.log working state

Xorg.log of a working configuration, with transition clock change commented and
with regp->fp_control[nv_crtc->head] |= (8 << 28); commented.

TMDS registers printed out below "Printing TMDS registers:" string.

d.


-- 
Configure bugmail: http://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] 28+ messages in thread

* [Bug 14597] randr12 failures on 12" powerbooks, and workarounds
       [not found] ` <bug-14597-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
                     ` (11 preceding siblings ...)
  2008-02-29  4:18   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2008-02-29  4:51   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2008-02-29  4:56   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
                     ` (13 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2008-02-29  4:51 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

http://bugs.freedesktop.org/show_bug.cgi?id=14597





--- Comment #13 from Danny <obiwan-ajv+KCCKUOlAfugRpC6u6w@public.gmane.org>  2008-02-28 20:51:30 PST ---
Created an attachment (id=14680)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=14680)
Xorg log transition clock change applied

This is pristine git head, with the transition clock change applied.

Note that several LVDS scripts are run which cause the screen to be black (even
when switching to text mode). The TMDS regs seem to be the same as in previous
log.

d.


-- 
Configure bugmail: http://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] 28+ messages in thread

* [Bug 14597] randr12 failures on 12" powerbooks, and workarounds
       [not found] ` <bug-14597-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
                     ` (12 preceding siblings ...)
  2008-02-29  4:51   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2008-02-29  4:56   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2008-02-29 10:37   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
                     ` (12 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2008-02-29  4:56 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

http://bugs.freedesktop.org/show_bug.cgi?id=14597





--- Comment #14 from Danny <obiwan-ajv+KCCKUOlAfugRpC6u6w@public.gmane.org>  2008-02-28 20:56:22 PST ---
Created an attachment (id=14681)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=14681)
xorg.log without transition clock change

Xorg.log with default transition clock setting commented, but it now sets
regp->fp_control[nv_crtc->head] |= (8 << 28); which will cause a black screen.
Text mode restore still works fine in this configuration. And it is fixable "on
the fly" by using radeontool to manually correct fp_control for crtc 1.

Again the outputted TMDS regs seem to be the same to me.

I hope I understood your requests correctly and this helps.



d.


-- 
Configure bugmail: http://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] 28+ messages in thread

* [Bug 14597] randr12 failures on 12" powerbooks, and workarounds
       [not found] ` <bug-14597-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
                     ` (13 preceding siblings ...)
  2008-02-29  4:56   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2008-02-29 10:37   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2008-02-29 12:50   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
                     ` (11 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2008-02-29 10:37 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

http://bugs.freedesktop.org/show_bug.cgi?id=14597


Stuart Bennett <sb476-KWPb1pKIrIJaa/9Udqfwiw@public.gmane.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sb476-KWPb1pKIrIJaa/9Udqfwiw@public.gmane.org




--- Comment #15 from Stuart Bennett <sb476-KWPb1pKIrIJaa/9Udqfwiw@public.gmane.org>  2008-02-29 02:37:17 PST ---
Try this:

diff --git a/src/nv_bios.c b/src/nv_bios.c
index 08e4ad8..c62cfac 100644
--- a/src/nv_bios.c
+++ b/src/nv_bios.c
@@ -2828,8 +2828,15 @@ static void call_lvds_manufacturer_script(ScrnInfoPtr
pScrn, int head, int dcb_e

        if (script == LVDS_PANEL_OFF)
                usleep(off_on_delay * 1000);
-       if (script == LVDS_RESET)
+       if (script == LVDS_RESET) {
+               nv32_wr(pScrn, 0x006828b4, 0x72);
+               nv32_wr(pScrn, 0x006828b0, 0x02);
+               nv32_wr(pScrn, 0x006828b4, 0x01);
+               nv32_wr(pScrn, 0x006828b0, 0x2f);
+               nv32_wr(pScrn, 0x00001588, 0);
+
                link_head_and_output(pScrn, head, dcb_entry, false);
+       }
 }

 static uint16_t clkcmptable(bios_t *bios, uint16_t clktable, int pxclk)


-- 
Configure bugmail: http://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] 28+ messages in thread

* [Bug 14597] randr12 failures on 12" powerbooks, and workarounds
       [not found] ` <bug-14597-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
                     ` (14 preceding siblings ...)
  2008-02-29 10:37   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2008-02-29 12:50   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2008-03-01  0:33   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
                     ` (10 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2008-02-29 12:50 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

http://bugs.freedesktop.org/show_bug.cgi?id=14597





--- Comment #16 from Stuart Bennett <sb476-KWPb1pKIrIJaa/9Udqfwiw@public.gmane.org>  2008-02-29 04:50:23 PST ---
Ok, so afaics the problem here is something the output scripts are doing (the
intention of the below patch was to put some regs back to the state they were
in before running the script).

The scripts that are called are LVDS_PANEL_OFF, LVDS_RESET, and LVDS_PANEL_ON.

To confirm that the scripts are the problem, *first test that "return;"ing at
the very start of call_lvds_manufacturer_script works*. If not, attach the xorg
log here.

After that, do:
if (script == LVDS_PANEL_OFF || script == LVDS_PANEL_RESET)
        return;
to check if the LVDS_PANEL_ON script is broken.
If that works, do:
if (script == LVDS_PANEL_RESET)
        return;
to ensure LVDS_PANEL_OFF is ok.
If we get this far, we'll start doing the LVDS_RESET script by hand, to see
what is broken in that...


-- 
Configure bugmail: http://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] 28+ messages in thread

* [Bug 14597] randr12 failures on 12" powerbooks, and workarounds
       [not found] ` <bug-14597-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
                     ` (15 preceding siblings ...)
  2008-02-29 12:50   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2008-03-01  0:33   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2008-03-01 15:29   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
                     ` (9 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2008-03-01  0:33 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

http://bugs.freedesktop.org/show_bug.cgi?id=14597





--- Comment #17 from Stuart Bennett <sb476-KWPb1pKIrIJaa/9Udqfwiw@public.gmane.org>  2008-02-29 16:33:28 PST ---
So, to add some notes from IRC conversation:
LVDS_RESET is the problem causer.
It seems that even with the script disabled, link_head_and_output causes
problems.

So:
Can you find what in link_head_and_output causes the problem? I'd advise
something like the following (on a clean git copy):

1) double check that it works with just link_head... and the script disabled:

@@ -2838,12 +2838,13 @@ static void call_lvds_manufacturer_script(ScrnInfoPtr
pScrn, int head, int dcb_e
        xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Calling LVDS script %d:\n",
script);
        nv_idx_port_wr(pScrn, CRTC_INDEX_COLOR, NV_VGA_CRTCX_OWNER,
                   head ? NV_VGA_CRTCX_OWNER_HEADB : NV_VGA_CRTCX_OWNER_HEADA);
-       parse_init_table(pScrn, bios, scriptofs, &iexec);
+       if (script != LVDS_RESET)
+               parse_init_table(pScrn, bios, scriptofs, &iexec);

        if (script == LVDS_PANEL_OFF)
                usleep(off_on_delay * 1000);
-       if (script == LVDS_RESET)
-               link_head_and_output(pScrn, head, dcb_entry);
+//     if (script == LVDS_RESET)
+//             link_head_and_output(pScrn, head, dcb_entry);
 }

2) re-enable call to link_head_and_output(), comment all five calls to nv32_wr
in link_head_and_output(), and progressively re-enable, until it breaks. I'm
hoping the first two are ok, and the last 3 are the problem here, but the
hardware likes to defy me.

Note that changing preferred_output (p-o) is not a valid solution here, as it
dictates the register set written: p-o of 0 causes the writes to go to 0x6808bX
(which only affects the unused encoder on the unused output), and p-o of 1
causes them to go to 0x6828bX (the correct encoder) -- see the addition of
NV_PRAMDAC0_SIZE to tmds_ctrlN.


-- 
Configure bugmail: http://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] 28+ messages in thread

* [Bug 14597] randr12 failures on 12" powerbooks, and workarounds
       [not found] ` <bug-14597-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
                     ` (16 preceding siblings ...)
  2008-03-01  0:33   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2008-03-01 15:29   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2008-03-02 15:21   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
                     ` (8 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2008-03-01 15:29 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

http://bugs.freedesktop.org/show_bug.cgi?id=14597


Stuart Bennett <sb476-KWPb1pKIrIJaa/9Udqfwiw@public.gmane.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #14474|0                           |1
        is obsolete|                            |




--- Comment #18 from Stuart Bennett <sb476-KWPb1pKIrIJaa/9Udqfwiw@public.gmane.org>  2008-03-01 07:29:23 PST ---
Created an attachment (id=14733)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=14733)
Unrolled Apple nv34 lvds reset script

The recent commit affecting link_head_and_output() should have fixed that
function (hopefully), leaving the remaining problems in something the
LVDS_RESET script does.

This patch has a hand coded version of the script (taken from moondrake's xlog,
but I think it's the same as sbriglie's), which will get executed instead of
the script. Someone with the relevant hardware (ppc nv34 laptop) and problem
needs to progressively enable the commented-out blocks and see what causes it
to break.

The comment blocks are numbered in a suggested order to re-enable. Bonus points
for subdividing the blocks to find the relevant line(s) causing failure.


-- 
Configure bugmail: http://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] 28+ messages in thread

* [Bug 14597] randr12 failures on 12" powerbooks, and workarounds
       [not found] ` <bug-14597-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
                     ` (17 preceding siblings ...)
  2008-03-01 15:29   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2008-03-02 15:21   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2008-03-02 17:40   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
                     ` (7 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2008-03-02 15:21 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

http://bugs.freedesktop.org/show_bug.cgi?id=14597





--- Comment #19 from Stuart Bennett <sb476-KWPb1pKIrIJaa/9Udqfwiw@public.gmane.org>  2008-03-02 07:21:34 PST ---
Following some work by sbriglie, it now looks like the change in comment 15
might be sufficient (with or without the change to reg 0x1588). Testing of this
idea welcome :)


-- 
Configure bugmail: http://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] 28+ messages in thread

* [Bug 14597] randr12 failures on 12" powerbooks, and workarounds
       [not found] ` <bug-14597-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
                     ` (18 preceding siblings ...)
  2008-03-02 15:21   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2008-03-02 17:40   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2008-03-02 18:01   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
                     ` (6 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2008-03-02 17:40 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

http://bugs.freedesktop.org/show_bug.cgi?id=14597





--- Comment #20 from Jacopo <sbriglie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>  2008-03-02 09:40:22 PST ---
(In reply to comment #19)
> Following some work by sbriglie, it now looks like the change in comment 15
> might be sufficient (with or without the change to reg 0x1588). Testing of this
> idea welcome :)
> 

After some testing I can say that the working code is this

@@ -2824,11 +2824,17 @@ static void call_lvds_manufacturer_script(ScrnInfoPtr
pS
        xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Calling LVDS script %d:\n",
script
        nv_idx_port_wr(pScrn, CRTC_INDEX_COLOR, NV_VGA_CRTCX_OWNER,
                   head ? NV_VGA_CRTCX_OWNER_HEADB : NV_VGA_CRTCX_OWNER_HEADA);
-       parse_init_table(pScrn, bios, scriptofs, &iexec);
+       //parse_init_table(pScrn, bios, scriptofs, &iexec);

        if (script == LVDS_PANEL_OFF)
                usleep(off_on_delay * 1000);
        if (script == LVDS_RESET)
+               nv32_wr(pScrn, 0x006828b4, 0x72);
+               //nv32_wr(pScrn, 0x006828b0, 0x02);
+               nv32_wr(pScrn, 0x006828b4, 0x01);
+               nv32_wr(pScrn, 0x006828b0, 0x2f);
+               nv32_wr(pScrn, 0x00001588, 0);  
+               
                link_head_and_output(pScrn, head, dcb_entry);
 }

Enabling the second nv32_wr and/or the call to parse_init_table causes the
usual badness


-- 
Configure bugmail: http://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] 28+ messages in thread

* [Bug 14597] randr12 failures on 12" powerbooks, and workarounds
       [not found] ` <bug-14597-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
                     ` (19 preceding siblings ...)
  2008-03-02 17:40   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2008-03-02 18:01   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2008-03-03  5:42   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
                     ` (5 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2008-03-02 18:01 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

http://bugs.freedesktop.org/show_bug.cgi?id=14597





--- Comment #21 from Jacopo <sbriglie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>  2008-03-02 10:01:43 PST ---
(In reply to comment #20)
> (In reply to comment #19)
> > Following some work by sbriglie, it now looks like the change in comment 15
> > might be sufficient (with or without the change to reg 0x1588). Testing of this
> > idea welcome :)
> > 
> 
> After some testing I can say that the working code is this
> 
> @@ -2824,11 +2824,17 @@ static void call_lvds_manufacturer_script(ScrnInfoPtr
> pS
>         xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Calling LVDS script %d:\n",
> script
>         nv_idx_port_wr(pScrn, CRTC_INDEX_COLOR, NV_VGA_CRTCX_OWNER,
>                    head ? NV_VGA_CRTCX_OWNER_HEADB : NV_VGA_CRTCX_OWNER_HEADA);
> -       parse_init_table(pScrn, bios, scriptofs, &iexec);
> +       //parse_init_table(pScrn, bios, scriptofs, &iexec);
> 
>         if (script == LVDS_PANEL_OFF)
>                 usleep(off_on_delay * 1000);
>         if (script == LVDS_RESET)
> +               nv32_wr(pScrn, 0x006828b4, 0x72);
> +               //nv32_wr(pScrn, 0x006828b0, 0x02);
> +               nv32_wr(pScrn, 0x006828b4, 0x01);
> +               nv32_wr(pScrn, 0x006828b0, 0x2f);
> +               nv32_wr(pScrn, 0x00001588, 0);  
> +               
>                 link_head_and_output(pScrn, head, dcb_entry);
>  }
> 
> Enabling the second nv32_wr and/or the call to parse_init_table causes the
> usual badness
> 

Of course I forgot the brackets. The correct code is
if (script == LVDS_RESET){
               nv32_wr(pScrn, 0x006828b4, 0x72);
               //nv32_wr(pScrn, 0x006828b0, 0x02);
               nv32_wr(pScrn, 0x006828b4, 0x01);
               nv32_wr(pScrn, 0x006828b0, 0x2f);
               nv32_wr(pScrn, 0x00001588, 0);  

                 link_head_and_output(pScrn, head, dcb_entry);
 }


-- 
Configure bugmail: http://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] 28+ messages in thread

* [Bug 14597] randr12 failures on 12" powerbooks, and workarounds
       [not found] ` <bug-14597-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
                     ` (20 preceding siblings ...)
  2008-03-02 18:01   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2008-03-03  5:42   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2008-03-03 23:53   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
                     ` (4 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2008-03-03  5:42 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

http://bugs.freedesktop.org/show_bug.cgi?id=14597





--- Comment #22 from Danny <obiwan-ajv+KCCKUOlAfugRpC6u6w@public.gmane.org>  2008-03-02 21:42:33 PST ---
Yeah I realized that changing the preferred output wasn't making sense much.

I'll update to head and try the patch from comment 21 to see if it works like
that for me to. I do not have the pbook with me now so it will take me a day or
so to check.

d.


-- 
Configure bugmail: http://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] 28+ messages in thread

* [Bug 14597] randr12 failures on 12" powerbooks, and workarounds
       [not found] ` <bug-14597-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
                     ` (21 preceding siblings ...)
  2008-03-03  5:42   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2008-03-03 23:53   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2008-03-04  2:44   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
                     ` (3 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2008-03-03 23:53 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

http://bugs.freedesktop.org/show_bug.cgi?id=14597





--- Comment #23 from Stuart Bennett <sb476-KWPb1pKIrIJaa/9Udqfwiw@public.gmane.org>  2008-03-03 15:53:06 PST ---
I'm afraid comments 20 & 21 miss the point; that I want parse_init_table to
run, and any bad reg writes to be fixed up afterwards. If running
parse_init_table is causing problems, then we need to go back to the code of
comment 18, and try and figure out what breaks.

From sbriglie's comments on IRC, the code in comment 18 worked when the data
writen at index 0x02 was changed from 0x32 to 0x72, and the suggestion of using
comment 15's code was that it would be a patch run *after* the script, to fix
up the contents of index 0x02 (much like link_head_and_output fixes index 0x04
currently).

I guess the step-by-step way forward here is to verify that the unrolled
version in comment 18 works, when all the code is allowed to execute (no
comments) and 0x32 is changed to 0x72. THEN, to change that 0x72 back to 0x32,
and add 

nv32_wr(pScrn, 0x006828b4, 0x72);
nv32_wr(pScrn, 0x006828b0, 0x02);

on the end of the unrolled script as a fix-up, and check that works.

Assuming that's ok, calling parse_init_table, then calling that same fix-up
code ought be have exactly the same result, and these two writes can be added
as a ppc specific quirk.

Hopefully this all makes sense to you ppc people, but if I'm being incoherent
please say and I'll code up a set of numbered patches of what I want testing :)


-- 
Configure bugmail: http://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] 28+ messages in thread

* [Bug 14597] randr12 failures on 12" powerbooks, and workarounds
       [not found] ` <bug-14597-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
                     ` (22 preceding siblings ...)
  2008-03-03 23:53   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2008-03-04  2:44   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2008-03-04 14:23   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
                     ` (2 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2008-03-04  2:44 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

http://bugs.freedesktop.org/show_bug.cgi?id=14597





--- Comment #24 from Danny <obiwan-ajv+KCCKUOlAfugRpC6u6w@public.gmane.org>  2008-03-03 18:44:35 PST ---
Actually you make very much sense. I didn't realize yesterday but Jacopo's
comments seem inconsistent with mine and sbriglies reports on irc.

Your commit indeed fixed link_head_and_output. So it should work anyway when
parse_init_table is commented, and there would be nothing to "fixup". So to me,
comment 20 does not make sense. Yesterday evening i tried running with
parse_init_table and indeed it does not work, but adding the lines from comment
15 fixes it. Actually only fixing reg 2 fixes it, ie:
               nv32_wr(pScrn, 0x006828b4, 0x72);
               nv32_wr(pScrn, 0x006828b0, 0x02);
               nv32_wr(pScrn, 0x00001588, 0); 
is enough for me.

Since this wonderfully matches your last comment I think we've solved it. Apart
from how do you want to check _when_ to apply this fix and when not. It so far
was only reported on powerbooks, but the hw components are usually not only
specific to apple and could be used elsewhere. In addition, some types of
powerbooks have different hw.

d.


-- 
Configure bugmail: http://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] 28+ messages in thread

* [Bug 14597] randr12 failures on 12" powerbooks, and workarounds
       [not found] ` <bug-14597-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
                     ` (23 preceding siblings ...)
  2008-03-04  2:44   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2008-03-04 14:23   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2008-03-04 20:13   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2008-03-05  4:58   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  26 siblings, 0 replies; 28+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2008-03-04 14:23 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

http://bugs.freedesktop.org/show_bug.cgi?id=14597





--- Comment #25 from Stuart Bennett <sb476-KWPb1pKIrIJaa/9Udqfwiw@public.gmane.org>  2008-03-04 06:23:27 PST ---
Powerbook specific quirk applied to git. Let me know how it works for you


-- 
Configure bugmail: http://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] 28+ messages in thread

* [Bug 14597] randr12 failures on 12" powerbooks, and workarounds
       [not found] ` <bug-14597-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
                     ` (24 preceding siblings ...)
  2008-03-04 14:23   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2008-03-04 20:13   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2008-03-05  4:58   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  26 siblings, 0 replies; 28+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2008-03-04 20:13 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

http://bugs.freedesktop.org/show_bug.cgi?id=14597





--- Comment #26 from Jacopo <sbriglie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>  2008-03-04 12:13:08 PST ---
(In reply to comment #25)
> Powerbook specific quirk applied to git. Let me know how it works for you
> 

As I wrote in IRC too it works by changing
-if (pNv->Chipset & 0xffff == 0x0329) {
+if ((pNv->Chipset & 0xffff) == 0x0329) {

otherwise the if condition is always false and the fix never gets executed.

Btw moondrake, I am sbriglie :) On sunday (comments #20 and #21) I was probably
doing something very dumb with the brackets, that's almost certainly why things
didn't work for me back then. 

So hopefully this is fixed :) 


-- 
Configure bugmail: http://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] 28+ messages in thread

* [Bug 14597] randr12 failures on 12" powerbooks, and workarounds
       [not found] ` <bug-14597-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
                     ` (25 preceding siblings ...)
  2008-03-04 20:13   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2008-03-05  4:58   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  26 siblings, 0 replies; 28+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2008-03-05  4:58 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

http://bugs.freedesktop.org/show_bug.cgi?id=14597


Danny <obiwan-ajv+KCCKUOlAfugRpC6u6w@public.gmane.org> changed:

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




--- Comment #27 from Danny <obiwan-ajv+KCCKUOlAfugRpC6u6w@public.gmane.org>  2008-03-04 20:58:15 PST ---
Also works fine for me. I close it then.

btw, 0x72 is just one bit different from 0x32, so I think it probably "means"
something. What that is exactly, I do not know, but to me it seems unlikely to
be powerpc or chip specific. However, for now, i am happy with this as a
powerbook quirk.

danny


-- 
Configure bugmail: http://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] 28+ messages in thread

end of thread, other threads:[~2008-03-05  4:58 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-21  7:33 [Bug 14597] New: randr12 failures on 12" powerbooks, and workarounds bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
     [not found] ` <bug-14597-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
2008-02-21  7:47   ` [Bug 14597] " bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2008-02-21  7:52   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2008-02-21  7:53   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2008-02-21  7:57   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2008-02-21  8:08   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2008-02-21  8:09   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2008-02-21  8:11   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2008-02-27 10:06   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2008-02-27 12:58   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2008-02-28  5:17   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2008-02-28 14:34   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2008-02-29  4:18   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2008-02-29  4:51   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2008-02-29  4:56   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2008-02-29 10:37   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2008-02-29 12:50   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2008-03-01  0:33   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2008-03-01 15:29   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2008-03-02 15:21   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2008-03-02 17:40   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2008-03-02 18:01   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2008-03-03  5:42   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2008-03-03 23:53   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2008-03-04  2:44   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2008-03-04 14:23   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2008-03-04 20:13   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2008-03-05  4:58   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ

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.