From: Greg KH <greg@kroah.com>
To: Adam Jackson <ajax@redhat.com>
Cc: linux-kernel@vger.kernel.org, arnd@arndb.de
Subject: Re: [PATCH] char/mem: Make /dev/port less obviously broken (v0)
Date: Mon, 6 Feb 2012 16:15:58 -0800 [thread overview]
Message-ID: <20120207001558.GA30840@kroah.com> (raw)
In-Reply-To: <1328569322-19165-1-git-send-email-ajax@redhat.com>
On Mon, Feb 06, 2012 at 06:02:02PM -0500, Adam Jackson wrote:
> Did you know /dev/port turns all reads and writes into a stream of inb
> and outb? Turns out hardware really does care about I/O cycle size
> though, and if you're trying to do an outl four outb's is very much not
> the same thing.
>
> However, someone somewhere probably built some code and hardware that
> relies on that behaviour. Plus, userspace needs to be able to tell
> whether the kernel will do the right thing, and fall back to raw port
> access if not. So add an ioctl to request new 'strict' semantics, which
> allows only exactly 1/2/4 byte cycles and translates them into the
> corresponding I/O cycle size. This matches the behaviour of sysfs's
> resourceN files for I/O BARs.
Who would use this new ioctl? And if it's been working ok until now,
why is it needed?
If you want something "new" like this, why not just create /dev/ioport
or something like that to always use the proper alignment and not need
an ioctl at all?
thanks,
greg k-h
next prev parent reply other threads:[~2012-02-07 0:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-06 23:02 [PATCH] char/mem: Make /dev/port less obviously broken (v0) Adam Jackson
2012-02-07 0:15 ` Greg KH [this message]
2012-02-07 3:57 ` Adam Jackson
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=20120207001558.GA30840@kroah.com \
--to=greg@kroah.com \
--cc=ajax@redhat.com \
--cc=arnd@arndb.de \
--cc=linux-kernel@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.