From: "Ville Syrjälä" <syrjala@sci.fi>
To: glisse@freedesktop.org
Cc: Jerome Glisse <jglisse@redhat.com>, stable <stable@kernel.org>,
dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] agp: use scratch page on memory remove and at GATT creation V2
Date: Tue, 20 Apr 2010 16:44:54 +0300 [thread overview]
Message-ID: <20100420134454.GA6861@sci.fi> (raw)
In-Reply-To: <1271766712-2032-1-git-send-email-glisse@freedesktop.org>
On Tue, Apr 20, 2010 at 02:31:52PM +0200, glisse@freedesktop.org wrote:
> From: Jerome Glisse <jglisse@redhat.com>
>
> Convert most AGP chipset to use scratch page as default entries.
> This help avoiding GPU querying 0 address and trigger computer
> fault. With KMS and memory manager we bind/unbind AGP memory
> constantly and it seems that some GPU are still doing AGP
> traffic even after GPU report being idle with the memory segment.
>
> Tested (radeon GPU KMS + Xorg + compiz + glxgears + quake3) on :
> - SIS 1039:0001 & 1039:0003
> - Intel 865 8086:2571
>
> Compile tested for other bridges
>
> V2 enable scratch page on uninorth
>
> Signed-off-by: Jerome Glisse <jglisse@redhat.com>
<snip>
> diff --git a/drivers/char/agp/amd-k7-agp.c b/drivers/char/agp/amd-k7-agp.c
> index 73dbf40..cf4dc4c 100644
> --- a/drivers/char/agp/amd-k7-agp.c
> +++ b/drivers/char/agp/amd-k7-agp.c
> @@ -178,6 +179,13 @@ static int amd_create_gatt_table(struct agp_bridge_data *bridge)
> readl(page_dir.remapped+GET_PAGE_DIR_OFF(addr)); /* PCI Posting. */
> }
>
> + for (i = 0; i < value->num_entries; i++) {
> + addr = (i * PAGE_SIZE) + agp_bridge->gart_bus_addr;
> + cur_gatt = GET_GATT(addr);
> + writel(agp_bridge->scratch_page, cur_gatt+GET_GATT_OFF(addr));
> + readl(cur_gatt+GET_GATT_OFF(addr)); /* PCI Posting. */
> + }
Isn't it enough to do a single PCI posting flush after writing all the
entries?
--
Ville Syrjälä
syrjala@sci.fi
http://www.sci.fi/~syrjala/
next prev parent reply other threads:[~2010-04-20 13:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-20 12:31 [PATCH] agp: use scratch page on memory remove and at GATT creation V2 glisse
2010-04-20 13:44 ` Ville Syrjälä [this message]
2010-04-20 14:40 ` Jerome Glisse
2010-04-20 14:57 ` Michel Dänzer
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=20100420134454.GA6861@sci.fi \
--to=syrjala@sci.fi \
--cc=dri-devel@lists.freedesktop.org \
--cc=glisse@freedesktop.org \
--cc=jglisse@redhat.com \
--cc=stable@kernel.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 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.