From: jerin.jacob@caviumnetworks.com (Jerin Jacob)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2] arm64: pci: add support for pci_mmap_page_range
Date: Mon, 18 Apr 2016 23:15:36 +0530 [thread overview]
Message-ID: <20160418174535.GA5664@localhost.localdomain> (raw)
In-Reply-To: <20160418154014.GN28645@arm.com>
On Mon, Apr 18, 2016 at 04:40:14PM +0100, Will Deacon wrote:
> On Mon, Apr 18, 2016 at 05:31:14PM +0200, Arnd Bergmann wrote:
> > On Monday 18 April 2016 20:51:27 Jerin Jacob wrote:
> > >
> > > Why only to disable mmap() serivce in proc/bus/pci/*/*. Why not
> > > other services offered though proc/bus/pci/ like config space read,
> > > /proc/bus/pci/devices etc
> > >
> > > if a given platform not interested in proc fs then disable through
> > > CONFIG_PROC_FS in defconfig. I don't understand the logic behind
> > > disabling partial services that proc fs exposes.
> >
> > Disabling CONFIG_PROC_FS is not really an option for anybody.
> >
> > The config space access may be something we should have disabled,
> > or it may not be, but I think it's too late to kill that off now,
> > as that would likely break something.
> >
> > The mmap() support on those files is way uglier than the config
> > access, so as long as nobody absolutely requires it, we should
> > not add it to the list of things we can't get rid of again.
>
> Completely agreed. IIRC, there's some unspeakable ioctl() magic to configure
> the memory type that the BARs are mapped with via the /proc interface and I
> *really* don't want that on arm64.
But do you think introducing a conditional compilation flag or weak
function or arch specific function to disable pci proc fs mmap support in
the generic code will be acceptable?
>
> Will
next prev parent reply other threads:[~2016-04-18 17:45 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-13 21:10 [PATCH v2] arm64: pci: add support for pci_mmap_page_range Jerin Jacob
2016-04-15 13:09 ` Will Deacon
2016-04-15 18:45 ` Arnd Bergmann
2016-04-18 14:01 ` Jerin Jacob
2016-04-18 14:15 ` Arnd Bergmann
2016-04-18 14:53 ` Jerin Jacob
2016-04-18 15:00 ` Arnd Bergmann
2016-04-18 15:21 ` Jerin Jacob
2016-04-18 15:31 ` Arnd Bergmann
2016-04-18 15:40 ` Will Deacon
2016-04-18 17:45 ` Jerin Jacob [this message]
2016-04-18 17:46 ` Arnd Bergmann
2017-03-15 21:01 ` David Woodhouse
2017-03-20 13:18 ` Will Deacon
2017-03-20 14:07 ` David Woodhouse
2016-04-18 13:43 ` Jerin Jacob
2017-03-16 12:17 ` David Woodhouse
2017-03-20 13:21 ` Will Deacon
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=20160418174535.GA5664@localhost.localdomain \
--to=jerin.jacob@caviumnetworks.com \
--cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).