From: "David S. Miller" <davem@redhat.com>
To: groudier@club-internet.fr
Cc: mj@suse.cz, lk@tantalophile.demon.co.uk, davej@suse.de,
linux-kernel@vger.kernel.org
Subject: Re: pdev_enable_device no longer used ?
Date: Tue, 12 Dec 2000 12:14:57 -0800 [thread overview]
Message-ID: <200012122014.MAA05129@pizda.ninka.net> (raw)
In-Reply-To: <Pine.LNX.4.10.10012121958390.1389-100000@linux.local> (message from Gérard Roudier on Tue, 12 Dec 2000 20:17:21 +0100 (CET))
In-Reply-To: <Pine.LNX.4.10.10012121958390.1389-100000@linux.local>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2146 bytes --]
Date: Tue, 12 Dec 2000 20:17:21 +0100 (CET)
From: Gérard Roudier <groudier@club-internet.fr>
On Mon, 11 Dec 2000, David S. Miller wrote:
> Tell me one valid use of this information first :-)
SCRIPTS. Have a look into my kind :-) response to Martin.
Ok, this I understand.
> b) If you wish to interpret the BAR values and use them from a BUS
> perspective somehow, you still need to go through some interface
> because you cannot assume what even the hw BAR values mean.
> This is precisely the kind of interface I am suggesting.
The BAR values make FULL sense on the BUS.
I am saying there may be systems where it does not make any sense,
f.e. actually used bits of BAR depend upon whether CPU, or DEVICE on
that bus, or DEVICE on some other bus make the access.
Forget all the PCI specifications, it is irrelevant here. All your
PCI expertiece means nothing, nor mine. People build dumb machines
with "PCI implementations" and we need to handle them.
I will wait for your .txt file that describes your idea. Your
documentation about the new DMA mapping had been extremally useful.
Let me thank you again for it.
It requires no .txt file :-), it will just be formalization of
existing bus_to_dvma_whatever hack :-) Specify PDEV (device) and
RESNUM (which I/O or MEM resource for that device), returns either
error or address as seen by BUS that PDEV is on. You may offset
this return value as desired, up to the size of that resource.
I could make a more elaborate interface (add new parameter,
PDEV_MASTER which is device which wishes to access area described by
PDEV+RESNUM), allowing full PCI peer-to-peer setup, as described by
someone else in another email of this thread. This version would have
an error return, since there will be peer2peer situations on some
systems which cannot be made. But I feel this is inappropriate until
2.5.x, others can disagree.
Later,
David S. Miller
davem@redhat.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2000-12-12 21:01 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-09 11:30 pdev_enable_device no longer used ? davej
2000-12-09 11:38 ` Russell King
2000-12-09 12:15 ` Ivan Kokshaysky
2000-12-09 12:36 ` davej
2000-12-09 12:53 ` Alan Cox
2000-12-09 13:08 ` davej
2000-12-09 13:44 ` Ivan Kokshaysky
2000-12-09 14:26 ` Gérard Roudier
2000-12-09 17:48 ` Russell King
2000-12-09 20:57 ` Alan Cox
2000-12-09 15:04 ` Martin Mares
2000-12-09 18:11 ` davej
2000-12-10 23:28 ` Jamie Lokier
2000-12-11 0:34 ` davej
2000-12-11 19:40 ` Gérard Roudier
2000-12-12 2:43 ` Jes Sorensen
2000-12-11 19:20 ` Gérard Roudier
2000-12-11 20:55 ` Martin Mares
2000-12-11 20:49 ` Gérard Roudier
2000-12-11 21:48 ` David S. Miller
2000-12-11 21:30 ` Gérard Roudier
2000-12-11 22:21 ` David S. Miller
2000-12-11 22:07 ` Gérard Roudier
2000-12-11 23:03 ` David S. Miller
2000-12-12 19:17 ` Gérard Roudier
2000-12-12 20:14 ` David S. Miller [this message]
2000-12-12 20:28 ` Gérard Roudier
2000-12-12 22:39 ` David S. Miller
2000-12-11 23:16 ` Martin Mares
2000-12-12 18:56 ` Gérard Roudier
2000-12-12 12:21 ` Adrian Cox
2000-12-12 2:39 ` Jes Sorensen
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=200012122014.MAA05129@pizda.ninka.net \
--to=davem@redhat.com \
--cc=davej@suse.de \
--cc=groudier@club-internet.fr \
--cc=linux-kernel@vger.kernel.org \
--cc=lk@tantalophile.demon.co.uk \
--cc=mj@suse.cz \
/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