public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Arjan van de Ven <arjanv@redhat.com>
To: Eitan Ben-Nun <eitan@sangate.com>
Cc: Arjan van de Ven <arjanv@redhat.com>,
	linux-kernel@vger.kernel.org, Uri Lublin <uri@sangate.com>,
	Marcus Barrow <mbarrow@sangate.com>
Subject: Re: Adpter card read old memory value
Date: Tue, 1 Oct 2002 10:45:52 -0400	[thread overview]
Message-ID: <20021001104552.A5475@devserv.devel.redhat.com> (raw)
In-Reply-To: <B71796881E0DF7409F066FE6656BDF2906F78B@beasley>; from eitan@sangate.com on Tue, Oct 01, 2002 at 05:44:07PM +0300


On Tue, Oct 01, 2002 at 05:44:07PM +0300, Eitan Ben-Nun wrote:
> ok thanks,
> An adapter card on the pci bus send a message to pc i386 Linux to update a memory address. 
> Then it reads the address and sees an old value, even though the pc cpu have performed an update to this memory address. Here is referance to my driver code:
> int update_cluster_operation_mode(unsigned long new_mode, 
> 					    unsigned long phys_addr);
> {
>    unsigned long* vir_addr = 0;
>    vir_addr = __ioremap(phys_addr, PAGE_SIZE, _PAGE_PWT | _PAGE_PCD);
>    *vir_addr = new_mode;
>    return 0;
> }
> phys_addr - is always on page bonderies and the address is between 512M-640M.

this is only a part of the source, is there a full source available?

also your code is already buggy; you should use writel(); and also read up
on PCI posting....

Greetings,
   Arjan van de Ven

       reply	other threads:[~2002-10-01 14:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <B71796881E0DF7409F066FE6656BDF2906F78B@beasley>
2002-10-01 14:45 ` Arjan van de Ven [this message]
2002-10-01 12:43 Adpter card read old memory value Eitan Ben-Nun
2002-10-01 12:56 ` Arjan van de Ven

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=20021001104552.A5475@devserv.devel.redhat.com \
    --to=arjanv@redhat.com \
    --cc=eitan@sangate.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mbarrow@sangate.com \
    --cc=uri@sangate.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