All of lore.kernel.org
 help / color / mirror / Atom feed
From: rubisher <rubisher@scarlet.be>
To: Grant Grundler <grundler@parisc-linux.org>
Cc: dave <dave@hiauly1.hia.nrc.ca>,
	"James.Bottomley" <James.Bottomley@HansenPartnership.com>,
	"soete.joel" <soete.joel@scarlet.be>,
	linux-parisc <linux-parisc@vger.kernel.org>,
	kyle <kyle@parisc-linux.org>, matthew <matthew@wil.cx>
Subject: [Patch] ccio-dma.c [Was: Yet another ccio fix idea?]
Date: Sat, 15 Mar 2008 19:21:15 +0000	[thread overview]
Message-ID: <47DC21AB.9090005@scarlet.be> (raw)
In-Reply-To: <20080314060251.GJ24794@colo.lackof.org>

Grant Grundler wrote:
> On Wed, Mar 12, 2008 at 10:16:29AM +0100, rubisher wrote:
> ...
>> mmm follwing stuff shouldn't so be enough:
>> Index: b/drivers/parisc/ccio-dma.c
>> ===================================================================
>> --- a/drivers/parisc/ccio-dma.c 2008-03-12 08:49:20.000000000 +0000
>> +++ b/drivers/parisc/ccio-dma.c 2008-03-12 08:50:54.000000000 +0000
>> @@ -624,7 +624,8 @@
>>         ** the real mode coherence index generation of U2, the PDIR entry
>>         ** must be flushed to memory to retain coherence."
>>         */
>> -       asm volatile("fdc %%r0(%0)" : : "r" (pdir_ptr));
>> +       asm volatile("fdc %%r0(%0)" : : "r" (&pdir_ptr[1]));
>> +       asm volatile("fdc %%r0(%0)" : : "r" (&pdir_ptr[0]));
> 
> NACK
> 
>>         asm volatile("sync");
>>  }
>>
>> @@ -695,7 +696,7 @@
>>                 ** Hopefully someone figures out how to patch (NOP) the
>>                 ** FDC/SYNC out at boot time.
>>                 */
>> -               asm volatile("fdc %%r0(%0)" : : "r" (pdir_ptr[7]));
>> +               asm volatile("fdc %%r0(%0)" : : "r" (&pdir_ptr[7]));
> 
> NACK - keep it simple with the original proposed patch.
> 
Ok here it is:
Signed-off-by: Joel Soete <soete dot joel at scarlet dot be>
---
  drivers/parisc/ccio-dma.c |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

Index: b/drivers/parisc/ccio-dma.c
===================================================================
--- a/drivers/parisc/ccio-dma.c 2008-03-12 08:49:20.000000000 +0000
+++ b/drivers/parisc/ccio-dma.c 2008-03-15 19:19:52.000000000 +0000
@@ -695,7 +695,7 @@
                 ** Hopefully someone figures out how to patch (NOP) the
                 ** FDC/SYNC out at boot time.
                 */
-               asm volatile("fdc %%r0(%0)" : : "r" (pdir_ptr[7]));
+               asm volatile("fdc %%r0(%0)" : : "r" (pdir_ptr));

                 iovp     += IOVP_SIZE;
                 byte_cnt -= IOVP_SIZE;
=== <> ===

[snip]

Hth,
	r.

  reply	other threads:[~2008-03-15 19:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-12  9:16 Yet another ccio fix idea? rubisher
2008-03-12 11:47 ` James Bottomley
2008-03-12 12:51   ` John David Anglin
2008-03-12 19:52     ` John David Anglin
2008-03-14  3:57   ` Grant Grundler
2008-03-14  6:02 ` Grant Grundler
2008-03-15 19:21   ` rubisher [this message]
2008-03-19  6:19     ` [Patch] ccio-dma.c [Was: Yet another ccio fix idea?] Grant Grundler
2008-03-15 19:32   ` Yet another ccio fix idea? rubisher

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=47DC21AB.9090005@scarlet.be \
    --to=rubisher@scarlet.be \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=dave@hiauly1.hia.nrc.ca \
    --cc=grundler@parisc-linux.org \
    --cc=kyle@parisc-linux.org \
    --cc=linux-parisc@vger.kernel.org \
    --cc=matthew@wil.cx \
    --cc=soete.joel@scarlet.be \
    /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.