From: "Mark M. Hoffman" <mhoffman@lightlink.com>
To: Paul Mackerras <paulus@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>,
LKML <linux-kernel@vger.kernel.org>,
Dave Airlie <airlied@linux.ie>,
Linus Torvalds <torvalds@osdl.org>
Subject: Re: [BUG] Xserver startup locks system... git bisect results
Date: Thu, 15 Dec 2005 22:50:32 -0500 [thread overview]
Message-ID: <20051216035032.GA4026@jupiter.solarsys.private> (raw)
In-Reply-To: <17313.12671.661715.211100@cargo.ozlabs.ibm.com>
Hi Paul, Benjamin:
* Paul Mackerras <paulus@samba.org> [2005-12-15 20:03:59 +1100]:
> Benjamin Herrenschmidt writes:
>
> > On Thu, 2005-12-15 at 16:07 +1100, Benjamin Herrenschmidt wrote:
> > > Ah, also, something else you can try, is replace
> > >
> > > dev_priv->gart_vm_start = dev_priv->fb_location
> > > + RADEON_READ(RADEON_CONFIG_APER_SIZE);
> >
> > Actually, the above should read
> >
> > + RADEON_READ(RADEON_CONFIG_APER_SIZE) * 2;
>
> With the patch below, my powerbook will sleep and wake up
> successfully.
I added the printk's you (BH) asked for to Paul's patch, resulting in the
patch below. It works fine so far. Here's the relevant kernel log:
Dec 15 22:39:47 jupiter kernel: dev_priv->fb_location is 0xe8000000
Dec 15 22:39:47 jupiter kernel: RADEON_READ(RADEON_CONFIG_APER_SIZE) is 0x08000000
Dec 15 22:39:47 jupiter kernel: [drm] Loading R200 Microcode
Let me know if you need any more info. Thanks.
--- linux-2.6.15-rc5-radeon-test.orig/drivers/char/drm/radeon_cp.c
+++ linux-2.6.15-rc5-radeon-test/drivers/char/drm/radeon_cp.c
@@ -1522,7 +1522,12 @@ static int radeon_do_init_cp(drm_device_
dev_priv->gart_size = init->gart_size;
dev_priv->gart_vm_start = dev_priv->fb_location
- + RADEON_READ(RADEON_CONFIG_APER_SIZE) * 2;
+ + RADEON_READ(RADEON_CONFIG_MEMSIZE);
+
+printk(KERN_INFO "dev_priv->fb_location is 0x%08x\n",
+ dev_priv->fb_location);
+printk(KERN_INFO "RADEON_READ(RADEON_CONFIG_APER_SIZE) is 0x%08x\n",
+ RADEON_READ(RADEON_CONFIG_APER_SIZE));
#if __OS_HAS_AGP
if (!dev_priv->is_pci)
--- linux-2.6.15-rc5-radeon-test.orig/drivers/char/drm/radeon_drv.h
+++ linux-2.6.15-rc5-radeon-test/drivers/char/drm/radeon_drv.h
@@ -379,6 +379,7 @@ extern int r300_do_cp_cmdbuf(drm_device_
# define RADEON_PLL_WR_EN (1 << 7)
#define RADEON_CLOCK_CNTL_INDEX 0x0008
#define RADEON_CONFIG_APER_SIZE 0x0108
+#define RADEON_CONFIG_MEMSIZE 0x00f8
#define RADEON_CRTC_OFFSET 0x0224
#define RADEON_CRTC_OFFSET_CNTL 0x0228
# define RADEON_CRTC_TILE_EN (1 << 15)
--
Mark M. Hoffman
mhoffman@lightlink.com
next prev parent reply other threads:[~2005-12-16 3:50 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-15 4:32 [BUG] Xserver startup locks system... git bisect results Mark M. Hoffman
2005-12-15 4:53 ` Benjamin Herrenschmidt
2005-12-15 5:07 ` Benjamin Herrenschmidt
2005-12-15 5:15 ` Benjamin Herrenschmidt
2005-12-15 9:03 ` Paul Mackerras
2005-12-16 3:50 ` Mark M. Hoffman [this message]
2005-12-16 4:43 ` Benjamin Herrenschmidt
2005-12-16 5:52 ` Benjamin Herrenschmidt
2005-12-16 6:59 ` Dave Airlie
2005-12-27 7:48 ` Will Dyson
2005-12-27 9:09 ` Benjamin Herrenschmidt
2005-12-15 13:45 ` Mark M. Hoffman
2005-12-15 7:55 ` Dave Airlie
2005-12-15 13:40 ` Mark M. Hoffman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051216035032.GA4026@jupiter.solarsys.private \
--to=mhoffman@lightlink.com \
--cc=airlied@linux.ie \
--cc=benh@kernel.crashing.org \
--cc=linux-kernel@vger.kernel.org \
--cc=paulus@samba.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox