From: Paul Mackerras <paulus@samba.org>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: "Mark M. Hoffman" <mhoffman@lightlink.com>,
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 20:03:59 +1100 [thread overview]
Message-ID: <17313.12671.661715.211100@cargo.ozlabs.ibm.com> (raw)
In-Reply-To: <1134623748.16880.32.camel@gaston>
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.
Paul.
diff --git a/drivers/char/drm/radeon_cp.c b/drivers/char/drm/radeon_cp.c
index 9f2b4ef..465fdc2 100644
--- a/drivers/char/drm/radeon_cp.c
+++ b/drivers/char/drm/radeon_cp.c
@@ -1522,7 +1522,7 @@ 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);
#if __OS_HAS_AGP
if (!dev_priv->is_pci)
diff --git a/drivers/char/drm/radeon_drv.h b/drivers/char/drm/radeon_drv.h
index 7bda7e3..d92ccee 100644
--- a/drivers/char/drm/radeon_drv.h
+++ b/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)
next prev parent reply other threads:[~2005-12-15 9:04 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-15 4:32 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 [this message]
2005-12-16 3:50 ` Mark M. Hoffman
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=17313.12671.661715.211100@cargo.ozlabs.ibm.com \
--to=paulus@samba.org \
--cc=airlied@linux.ie \
--cc=benh@kernel.crashing.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mhoffman@lightlink.com \
--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
all inboxes | Powered by JetHome®