From: Boris Ostrovsky <boris.ostrovsky@oracle.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>, Jan Beulich <JBeulich@suse.com>
Cc: wei.liu2@citrix.com, xen-devel@lists.xen.org
Subject: Re: [PATCH qemu-traditional] ioreq: Support 32-bit default_ioport_* accesses
Date: Wed, 25 May 2016 12:51:08 -0400 [thread overview]
Message-ID: <5745D7FC.9000009@oracle.com> (raw)
In-Reply-To: <22341.52772.119755.318181@mariner.uk.xensource.com>
On 05/25/2016 12:09 PM, Ian Jackson wrote:
> Jan Beulich writes ("Re: [Xen-devel] [PATCH qemu-traditional] ioreq: Support 32-bit default_ioport_* accesses"):
>> On 25.05.16 at 17:36, <boris.ostrovsky@oracle.com> wrote:
>>> AccesSize parameter is optional when invoking the Register macro. If the
>>> AccessSize parameter is
>>> not supplied then the AccessSize field will be set to zero. In this
>>> case, OSPM will assume the access
>>> size.
>>>
>>> I don't think I understand what the last sentence means. Does it imply
>>> that SW can do whatever it thinks is appropriate?
>> I think so, yes.
> I think this question can only be resolved de jure by looking at what
> previous ACPI specifications (before this AccessSize field) said.
It's been around since 3.0 (which is 2004). Prior to that --- my cursory
read of 2.0 suggests that accesses were 8-bit.
>
> But, I think: de facto, what is going on here is that ACPICA and hence
> Linux have changed their behaviour in a way that is not compatible
> with at least some existing "hardware". Is this not arguably a
> compatibility defect Linux ?
>
> It would surely be better to make Linux do whatever it did before,
> when AccessSize is not supplied. That will avoid breaking any other
> things (whether or not those other things are de jure broken according
> to previous specs). It will also avoid us having to make changes our
> ACPI tables which themselves come with a risk of compatibility
> problems.
ACPICA will use 32-bit accesses for access_size=0:
https://github.com/acpica/acpica/commit/c49a751b
However, Linux appears to have some sort of workaround for FreeBSD,
which *appears* as it should be applicable to hvmloader's tables as
well. But it clearly does not as we are failing on Linux.
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/acpi/acpica/hwregs.c?id=b314a172ee968d45f72dffea68ab8af38aa80ded
Let me see whether which path we take.
-boris
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2016-05-25 16:51 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-20 13:52 [PATCH qemu-traditional] ioreq: Support 32-bit default_ioport_* accesses Boris Ostrovsky
2016-05-23 12:02 ` Wei Liu
2016-05-23 13:02 ` Boris Ostrovsky
2016-05-23 13:05 ` Wei Liu
2016-05-23 13:42 ` Wei Liu
2016-05-25 14:26 ` Ian Jackson
2016-05-25 14:35 ` Ian Jackson
2016-05-25 15:08 ` Boris Ostrovsky
2016-05-25 15:22 ` Ian Jackson
2016-05-25 15:36 ` Boris Ostrovsky
2016-05-25 16:03 ` Jan Beulich
2016-05-25 16:09 ` Ian Jackson
2016-05-25 16:51 ` Boris Ostrovsky [this message]
2016-05-25 16:57 ` Boris Ostrovsky
2016-05-26 14:00 ` Ian Jackson
2016-05-25 16:02 ` Jan Beulich
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=5745D7FC.9000009@oracle.com \
--to=boris.ostrovsky@oracle.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xen.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).