From: Pete Popov <ppopov@embeddedalley.com>
To: Alexey Shinkin <alexshinkin@hotmail.com>
Cc: linux-mips@linux-mips.org
Subject: Re: Au1550 - Problem access Shared memory from PCI card
Date: Thu, 16 Sep 2004 00:50:22 -0700 [thread overview]
Message-ID: <414945BE.8010306@embeddedalley.com> (raw)
In-Reply-To: <BAY15-F40hAOylhgnFZ0009083e@hotmail.com>
>
> After I recompiled the driver and the application for MIPS platform I
> got the following:
> 1. The driver on the MIPS board (host) finds the PCI card (target)
> 2. I download an executable code into target and start target
> application (application starts, debug info is written to target memory).
> 3. Target starts to communicate with host using shared
> memory,allocated on host, (target accesses the memory through PCI).
>
> After that I get the following problem:
>
> 4. Target writes some values into Host's shared memory and generates
> interrupt on Host.
> 5. Host catches the interrupt and in interrupt handler reads the
> values, written by target.
So the host at this point reads the correct values written by the target?
> 6. Host writes some replay to the shared memory, generates PCI
> interrupt on Target.
When you say "host", is this the user application that is writing to the
shared memory after remmaping it, or is the host driver itself writing
to the shared memory from kernel space?
> 7. Target gets interrupt but can not see the latest values, written by
> Host. Reading the shared memory several times doesn' t help.
>
> Looks like target reads values that are cached somewhere . I tried to
> insert au_sync(), au_sync_delay(), flush_cache_all() on Host side
> after writting values - nothing helps.
>
> On x86 this approach works fine.
>
> What could be the reason? Could this be hardware problem or can be
> fixed by fine-tuning
> of caching parameters or PCI controller ?
There's no reason why this shouldn't work and it doesn't smell like a
hardware problem.
Pete
next prev parent reply other threads:[~2004-09-16 7:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-16 5:55 Au1550 - Problem access Shared memory from PCI card Alexey Shinkin
2004-09-16 7:50 ` Pete Popov [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-09-16 11:38 Alexey Shinkin
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=414945BE.8010306@embeddedalley.com \
--to=ppopov@embeddedalley.com \
--cc=alexshinkin@hotmail.com \
--cc=linux-mips@linux-mips.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