From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Andrey Grodzovsky <andrey2805@gmail.com>
Cc: "Jan Beulich" <JBeulich@suse.com>,
"Jürgen Walter • Quattru" <jw@quattru.com>,
xen-devel@lists.xen.org
Subject: Re: Atheros WiFi - memory paging failure on driver load
Date: Mon, 18 Jul 2016 19:22:30 +0100 [thread overview]
Message-ID: <0c92a378-5b11-034c-4ef6-ad619357d12e@citrix.com> (raw)
In-Reply-To: <CAJphD_oXS1czJbLsmLP8asfGrDomctpBRkCkpfvptUwqYo_i5g@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 2071 bytes --]
On 18/07/16 04:29, Andrey Grodzovsky wrote:
>
>
> On Fri, Jul 15, 2016 at 11:45 PM, Andrey Grodzovsky
> <andrey2805@gmail.com <mailto:andrey2805@gmail.com>> wrote:
>
>
>
> On Fri, Jul 15, 2016 at 6:04 AM, Andrew Cooper
> <andrew.cooper3@citrix.com <mailto:andrew.cooper3@citrix.com>> wrote:
>
> On 12/07/16 04:59, Andrey Grodzovsky wrote:
>> Hello
>>
>> Some background -
>>
>> We are trying to run Qualcomm Atheros AR928X Wireless Network
>> Adapter and have a crash right on driver load, following are
>> our observations and questions.
>>
>> Jurgen's observation -
>>
>> " The Atheros card "Qualcomm Atheros AR928X Wireless Network
>> Adapter (PCI-Express) (rev 01)" is plugged into the host
>> system (datatron).
>> When I attach it to the DomU - the module "ath9k" is
>> automatically loaded, but it gives an exception
>> "iowrite32+0x2b/0x30".
>> No idea what the issue is (tried also with another Atheros
>> Card (ath10k) - similar problem). When I try an Intel card,
>> it works.
>> (the card also works on the Dom0 - so the Linux driver and HW
>> is OK)."
>>
>> Debugging -
>>
>> After some investigation with kgdb and iommu trace on DomU it
>> seems the iomap of PCI BAR for the device returns a a mapping
>> f which first 0x1000 bytes are read only and that causes
>> access violation when trying to write registers mapped to
>> this area (all the regs with offset < 0x1000) - why this
>> happens i still don't know. Register writes with offsets >
>> 0x1000 are fine.
>
Your card is not PCI spec compliant.
The Spec mandates that nothing may exist in any 4k aligned block
covering part of the MSI-X table, precisely so read-only tricks like
this can be done trap&intercept MSI-X updates.
>>
>> Running same driver on Dom0 is totally fine
>
This is curious. Dom0 and DomU should be treated identically in this
regard.
~Andrew
[-- Attachment #1.2: Type: text/html, Size: 8985 bytes --]
[-- Attachment #2: Type: text/plain, Size: 127 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2016-07-18 18:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-12 3:59 Atheros WiFi - memory paging failure on driver load Andrey Grodzovsky
2016-07-15 10:04 ` Andrew Cooper
2016-07-15 10:16 ` Jürgen Walter • Quattru
2016-07-16 3:45 ` Andrey Grodzovsky
2016-07-18 3:29 ` Andrey Grodzovsky
2016-07-18 18:22 ` Andrew Cooper [this message]
2016-07-18 18:56 ` Andrey Grodzovsky
2016-07-18 19:16 ` Andrew Cooper
2016-08-01 11:41 ` 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=0c92a378-5b11-034c-4ef6-ad619357d12e@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=JBeulich@suse.com \
--cc=andrey2805@gmail.com \
--cc=jw@quattru.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).