LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Dave Jones <davej@redhat.com>
To: Pavel Machek <pavel@ucw.cz>
Cc: Andreas Mohr <andi@rhlx01.fht-esslingen.de>,
Andrew Morton <akpm@osdl.org>,
linux-acpi@vger.kernel.org, Matthew Garrett <mjg59@srcf.ucam.org>,
kernel list <linux-kernel@vger.kernel.org>,
andi@lisas.de
Subject: Re: [PATCH -mm] working 3D/DRI intel-agp.ko resume for i815 chip; Intel chipset testers wanted! (was: Re: intel-agp PM experiences ...)
Date: Thu, 3 May 2007 11:47:36 -0400 [thread overview]
Message-ID: <20070503154736.GA23922@redhat.com> (raw)
In-Reply-To: <20070502101718.GC10245@elf.ucw.cz>
On Wed, May 02, 2007 at 12:17:18PM +0200, Pavel Machek wrote:
> > #define INTEL_I820_RDCR 0x51
> > @@ -664,7 +671,7 @@
> > if ((pg_start + mem->page_count) > num_entries)
> > goto out_err;
> >
> > - /* The i830 can't check the GTT for entries since its read only,
> > + /* The i830 can't check the GTT for entries since it's read-only,
> > * depend on the caller to make the correct offset decisions.
> > */
> >
> > @@ -787,7 +794,7 @@
> > if ((pg_start + mem->page_count) > num_entries)
> > goto out_err;
> >
> > - /* The i915 can't check the GTT for entries since its read only,
> > + /* The i915 can't check the GTT for entries since it's read-only,
> > * depend on the caller to make the correct offset decisions.
> > */
>
> You should not do cleanups at the same time as code changes.
Indeed.
> > @@ -1103,8 +1110,8 @@
> > /* attbase - aperture base */
> > /* the Intel 815 chipset spec. says that bits 29-31 in the
> > * ATTBASE register are reserved -> try not to write them */
> > - if (agp_bridge->gatt_bus_addr & INTEL_815_ATTBASE_MASK) {
> > - printk (KERN_EMERG PFX "gatt bus addr too high");
> > + if (agp_bridge->gatt_bus_addr & I815_ATTBASE_MASK) {
> > + printk (KERN_EMERG PFX "gatt bus addr too high\n");
> > return -EINVAL;
> > }
> >
> > @@ -1119,7 +1126,7 @@
> > agp_bridge->gart_bus_addr = (temp & PCI_BASE_ADDRESS_MEM_MASK);
> >
> > pci_read_config_dword(agp_bridge->dev, INTEL_ATTBASE, &addr);
> > - addr &= INTEL_815_ATTBASE_MASK;
> > + addr &= I815_ATTBASE_MASK;
> > addr |= agp_bridge->gatt_bus_addr;
> > pci_write_config_dword(agp_bridge->dev, INTEL_ATTBASE, addr);
>
> And I guess macro search&replace counts as cleanup, too. It would be
> nice to submit them separately and first.
I'm not a big fan of the s/INTEL_/I_/ change to be honest.
I'd prefer we didn't change this, as a) there may be additional
patches in flight which touch intel-agp.c depending on those defines,
b) it'll make future changes to intel-agp.c harder to backport to
-stable releases, and c) it doesn't really add any value.
> > @@ -1355,7 +1362,7 @@
> > pci_write_config_dword(agp_bridge->dev, INTEL_ATTBASE, agp_bridge->gatt_bus_addr);
> >
> > /* agpctrl */
> > - pci_write_config_dword(agp_bridge->dev, INTEL_AGPCTRL, 0x0000);
> > + pci_write_config_dword(agp_bridge->dev, INTEL_AGPCTRL, 0x00000000);
>
> Huh?
harmless, but ok.
> > + pci_read_config_dword(pdev, p->reg, &p->value);
> > + }
> > + return 1;
> > +}
>
> Should this betwo functions, one for save, one for restore, with "to
> save" array being global?
yes.
> > +/*
> > + * set DEBUG_AGP_PM to 1 if your AGP chipset has issues resuming
> > + * (machine lockups due to non-restored hardware registered values),
> > + * then figure out from the log which registers have to be restored manually,
> > + * then add specific support for your chipset, similar to what already exists
>
> Can we get debugging stuff separately?
ACK.
> > @@ -2106,6 +2282,12 @@
> > {
> > if (agp_off)
> > return -EINVAL;
> > + /* let people know that this is an important place to investigate at in case of resume lockups */
> > + printk(KERN_INFO PFX
> > + "suspend/resume of intel-agp.ko is NOT always stable for all Intel AGP\n"
> > + "chipset/BIOS combos, may cause resume lockups when DRI (3D accel) active,\n"
> > + "in AGP (non-PCI) mode! (see DEBUG_AGP_PM in intel-agp.c source to investigate)\n"
> > + );
>
> I'm not sure if we want such big/ugly warnings. Can you get it to one
> line, at least?
I'd drop this completely. The majority of users will never see it anyway,
and the boot process already spews so much stuff that it'll just get lost
in the noise.
Thanks,
Dave
--
http://www.codemonkey.org.uk
next prev parent reply other threads:[~2007-05-03 15:47 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-16 13:57 2.6.20-rc5: usb mouse breaks suspend to ram Pavel Machek
2007-01-16 14:08 ` Dmitry Torokhov
2007-01-16 14:24 ` Pavel Machek
2007-01-16 21:25 ` Dmitry Torokhov
2007-01-16 21:47 ` Pavel Machek
2007-01-17 15:44 ` [linux-usb-devel] " Alan Stern
2007-01-17 0:40 ` Andreas Mohr
2007-01-17 0:57 ` Pavel Machek
2007-01-18 11:51 ` intel-agp PM experiences (was: 2.6.20-rc5: usb mouse breaks suspend to ram) Andreas Mohr
2007-01-18 22:05 ` Nigel Cunningham
2007-01-18 23:16 ` Pavel Machek
2007-01-22 4:45 ` Wang Zhenyu
2007-01-23 9:44 ` i965 testers wanted (Re: intel-agp PM experiences) Pavel Machek
2007-01-23 14:46 ` Sunil Naidu
2007-01-29 22:05 ` Frédéric Riss
2007-01-29 22:10 ` Pavel Machek
2007-01-29 22:21 ` Frédéric Riss
2007-01-29 22:34 ` Dave Jones
2007-01-29 21:30 ` intel-agp PM experiences (was: 2.6.20-rc5: usb mouse breaks suspend to ram) Andreas Mohr
2007-01-30 12:36 ` Wang Zhenyu
2007-01-30 13:05 ` Andreas Mohr
2007-01-30 23:39 ` Andreas Mohr
2007-05-01 14:59 ` [PATCH -mm] working 3D/DRI intel-agp.ko resume for i815 chip; Intel chipset testers wanted! (was: Re: intel-agp PM experiences ...) Andreas Mohr
2007-05-02 10:17 ` Pavel Machek
2007-05-03 15:47 ` Dave Jones [this message]
2007-05-05 17:56 ` Andreas Mohr
2007-05-10 6:44 ` Andreas Mohr
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=20070503154736.GA23922@redhat.com \
--to=davej@redhat.com \
--cc=akpm@osdl.org \
--cc=andi@lisas.de \
--cc=andi@rhlx01.fht-esslingen.de \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mjg59@srcf.ucam.org \
--cc=pavel@ucw.cz \
--subject='Re: [PATCH -mm] working 3D/DRI intel-agp.ko resume for i815 chip; Intel chipset testers wanted'\!' (was: Re: intel-agp PM experiences ...)' \
/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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).