From: John Garry <john.garry@huawei.com>
To: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: "xuwei (O)" <xuwei5@huawei.com>, bhelgaas <bhelgaas@google.com>,
andyshevchenko <andy.shevchenko@gmail.com>,
Arnd Bergmann <arnd@arndb.de>,
linux-kernel <linux-kernel@vger.kernel.org>,
Linux Mips <linux-mips@vger.kernel.org>
Subject: Re: Questions about logic_pio
Date: Fri, 21 Feb 2020 11:49:45 +0000 [thread overview]
Message-ID: <65fffffa-2c74-aa09-7fdb-29a7200d7ac4@huawei.com> (raw)
In-Reply-To: <1706531b3a8.108e582396993.7792774458896054798@flygoat.com>
On 21/02/2020 00:42, Jiaxun Yang wrote:
> >
> > I will add this may not cover your need, as you probably cannot deal
> > with any logical PIO <-> ISA translation without modifying the device
> > driver. For this, we may need to reserve the first 0x4000 in logical PIO
> > space for this sort of legacy host.
>
> Hi,
>
> After thinking twice, I realized that the most convenient way for me is
> adding an option to get rid of the mess of logic PIO. MIPS system is emulating
> x86's behavior, while logic PIO isn't designed for such platform.
It was designed for archs which define PCI_IOBASE for PCI MMIO-based or
IndirectIO-based IO port access.
>
> Or probably I need a variation of Logic PIO, which leave MMIO space AS-IS
> (not try to reallocate it)
That does not work if add a PCI host with MMIO-based IO port regions
into the mix.
It only so happens today that for mips you have a single MMIO-based IO
port region, and you have IO port base for that region conveniently @
0x0. Then your drivers can have fixed IO port addresses.
For dealing with multiple MMIO-based IO ports regions - which is the
case for PCI host bridges - then you need to map those MMIO-based IO
port regions to different regions in IO port space.
> but still preserving higher 0x4000 for indirect access.
Then there is no space for PCI MMIO-based IO ports.
>
> Thanks a lot!
> >
> > That would not be a bad thing - see
> >https://lore.kernel.org/linux-pci/1560262374-67875-1-git-send-email-john.garry@huawei.com/
> >
> >
> > >
> > > This driver deals with legacy IO ports where we need to bitbang
next prev parent reply other threads:[~2020-02-21 11:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-19 13:58 Jiaxun Yang
2020-02-20 9:48 ` Wei Xu
2020-02-20 10:52 ` John Garry
2020-02-20 11:55 ` Jiaxun Yang
2020-02-20 14:23 ` John Garry
2020-02-20 15:12 ` Jiaxun Yang
2020-02-20 17:39 ` John Garry
2020-02-20 18:32 ` John Garry
2020-02-21 0:42 ` Jiaxun Yang
2020-02-21 11:49 ` John Garry [this message]
2020-02-21 16:47 ` Jiaxun Yang
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=65fffffa-2c74-aa09-7fdb-29a7200d7ac4@huawei.com \
--to=john.garry@huawei.com \
--cc=andy.shevchenko@gmail.com \
--cc=arnd@arndb.de \
--cc=bhelgaas@google.com \
--cc=jiaxun.yang@flygoat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=xuwei5@huawei.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
all inboxes | Powered by JetHome®