From: David Miller <davem@davemloft.net>
To: james@albanarts.com
Cc: sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-fbdev@vger.kernel.org, airlied@redhat.com,
akpm@linux-foundation.org, marcin.slusarz@gmail.com,
FlorianSchandinat@gmx.de, vda.linux@googlemail.com,
jbarnes@virtuousgeek.org, jsimmons@infradead.org
Subject: Re: [PATCH] fbmem: Fix fb_read, fb_write unaligned accesses.
Date: Sat, 18 Sep 2010 03:17:04 +0000 [thread overview]
Message-ID: <20100917.201704.181464273.davem@davemloft.net> (raw)
In-Reply-To: <201009180123.48303.james@albanarts.com>
From: James Hogan <james@albanarts.com>
Date: Sat, 18 Sep 2010 01:23:47 +0100
> Apologies for corrupted patch. I'll try again.
> Comments? I'd also appreciate if somebody familiar with sbus on sparc
> could check this patch is sane since I know virtually nothing about sbus
> and am not in a position to compile for sparc, let alone test on it:
>
> fb_{read,write} access the framebuffer using lots of fb_{read,write}l's
> but don't check that the file position is aligned which can cause
> problems on some architectures which do not support unaligned accesses.
>
> Since the operations are essentially memcpy_{from,to}io, new
> fb_memcpy_{from,to}fb macros have been defined and these are used
> instead.
>
> For Sparc, fb_{read,write} macros use sbus_{read,write}, so this defines
> new sbus_memcpy_{from,to}io functions the same as memcpy_{from,to}io but
> using sbus_{read,write}b instead of {read,write}b.
>
> Signed-off-by: James Hogan <james@albanarts.com>
Compiles cleanly on sparc and looks correct to me:
Acked-by: David S. Miller <davem@davemloft.net>
next prev parent reply other threads:[~2010-09-18 3:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-09 22:38 fb_write unaligned writes James Hogan
2010-09-17 18:11 ` Florian Tobias Schandinat
2010-09-17 23:57 ` [PATCH] fbmem: Fix fb_read, fb_write unaligned accesses James Hogan
2010-09-18 0:15 ` David Miller
2010-09-18 0:23 ` James Hogan
2010-09-18 3:17 ` David Miller [this message]
2010-09-20 19:27 ` Florian Tobias Schandinat
2010-09-21 23:19 ` Andrew Morton
2010-09-22 0:00 ` James Hogan
2010-09-18 0:11 ` fb_write unaligned writes James Hogan
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=20100917.201704.181464273.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=FlorianSchandinat@gmx.de \
--cc=airlied@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=james@albanarts.com \
--cc=jbarnes@virtuousgeek.org \
--cc=jsimmons@infradead.org \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marcin.slusarz@gmail.com \
--cc=sparclinux@vger.kernel.org \
--cc=vda.linux@googlemail.com \
/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;
as well as URLs for NNTP newsgroup(s).