From: Matt Turner <mattst88@gmail.com>
To: David Miller <davem@davemloft.net>
Cc: airlied@redhat.com, dri-devel@lists.freedesktop.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drm/radeon: Fix sparc regression in r300_scratch()
Date: Mon, 26 Apr 2010 10:36:01 -0400 [thread overview]
Message-ID: <w2pb4198de61004260736sdc815942z1ea3d650c33e5890@mail.gmail.com> (raw)
In-Reply-To: <20100426.025542.193706542.davem@davemloft.net>
On Mon, Apr 26, 2010 at 5:55 AM, David Miller <davem@davemloft.net> wrote:
>
> Commit b4fe945405e477cded91772b4fec854705443dd5 ("drm/radeon: Fix
> memory allocation failures in the preKMS command stream checking.")
> added a regression in that it completely tossed the get_unaligned()
> done by r300_scratch() which we added in commit
> 958a6f8ccb1964adc3eec84cf401c5baeb4fbca0 ("drm: radeon: Fix unaligned
> access in r300_scratch().").
>
> Put it back.
>
> Signed-off-by: David S. Miller <davem@davemloft.net>
>
> diff --git a/drivers/gpu/drm/radeon/r300_cmdbuf.c b/drivers/gpu/drm/radeon/r300_cmdbuf.c
> index ea46d55..c5c2742 100644
> --- a/drivers/gpu/drm/radeon/r300_cmdbuf.c
> +++ b/drivers/gpu/drm/radeon/r300_cmdbuf.c
> @@ -921,7 +921,7 @@ static int r300_scratch(drm_radeon_private_t *dev_priv,
>
> ptr_addr = drm_buffer_read_object(cmdbuf->buffer,
> sizeof(stack_ptr_addr), &stack_ptr_addr);
> - ref_age_base = (u32 *)(unsigned long)*ptr_addr;
> + ref_age_base = (u32 *)(unsigned long)get_unaligned(ptr_addr);
>
> for (i=0; i < header.scratch.n_bufs; i++) {
> buf_idx = drm_buffer_pointer_to_dword(cmdbuf->buffer, 0);
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
>
Should help Alpha as well.
Acked-by: Matt Turner <mattst88@gmail.com>
prev parent reply other threads:[~2010-04-26 14:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-26 9:55 David Miller
2010-04-26 14:36 ` Matt Turner [this message]
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=w2pb4198de61004260736sdc815942z1ea3d650c33e5890@mail.gmail.com \
--to=mattst88@gmail.com \
--cc=airlied@redhat.com \
--cc=davem@davemloft.net \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.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 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®