From: Julien Grall <julien.grall@arm.com>
To: shankerd@codeaurora.org,
xen-devel <xen-devel@lists.xensource.com>,
Stefano Stabellini <sstabellini@kernel.org>
Cc: Vikram Sethi <vikrams@codeaurora.org>,
Campbell Sean <scampbel@codeaurora.org>
Subject: Re: [PATCH] arm/acpi: hide watchdog timer in GTDT table for dom0
Date: Wed, 30 Nov 2016 15:00:30 +0000 [thread overview]
Message-ID: <2c3ae482-c2b7-461f-d0a3-f158c4f74ba9@arm.com> (raw)
In-Reply-To: <e216b4b2-0c6a-386d-d20a-8e06708cdd02@codeaurora.org>
On 30/11/16 14:43, Shanker Donthineni wrote:
> Hi Julien,
Hi Shanker,
> On 11/30/2016 08:31 AM, Shanker Donthineni wrote:
>> On 11/30/2016 04:29 AM, Julien Grall wrote:
>>> Hi Shanker,
>>>
>>> On 29/11/2016 02:59, Shanker Donthineni wrote:
>>>> Either we have to hide the watchdog timer section in GTDT or emulate
>>>> watchdog timer block for dom0. Otherwise, system gets panic when
>>>> dom0 accesses its MMIO registers. The current XEN doesn't support
>>>> virtualization of watchdog timer, so hide the watchdog timer section
>>>> for dom0.
>>>
>>> IHMO, the patch description is not really accurate. You are removing
>>> the platform timer array that contains watchdog but also Block Timer.
>>>
>>> Whilst you mention watchdog, you don't have a word on the Block Timer.
>>>
>>
>> Sure, I'll include detailed description that has word 'Block Timer'
>> in v2 patch.
>>
>>> Taking a step back, DOM0 is not able to use it because it does not
>>> request to map the memory region (this is the behavior expected for
>>> PCI and AMBA devices). So this is a bug in the kernel for me.
>>>
>> Not all the drivers/modules in the Linux kernel are bounded to a device
>> object 'struct device'. The watchdog timer driver is one of this
>> category, neither a PCIe nor a AMBA device.
>>
>> You can find GTDT watchdog timer code at
>> https://lkml.org/lkml/2016/7/25/34.
>>
>
> Sorry, right link is https://lkml.org/lkml/2016/7/25/345
Thank you. Looking at patch #9 [1] that add the watchdog driver. A new
platform device is created (see the call to
platform_device_register_simple).
We already have a platform bus notifier for Xen in linux (see
drivers/xen/arm-device.c). So I am not sure to understand what is the
problem here as the region should be mapped by the notifier. Could you
give a bit more details?
Regards,
[1] https://lkml.org/lkml/2016/7/25/353
--
Julien Grall
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2016-11-30 15:00 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-29 2:59 [PATCH] arm/acpi: hide watchdog timer in GTDT table for dom0 Shanker Donthineni
2016-11-29 10:40 ` Jan Beulich
2016-11-29 11:38 ` Roger Pau Monne
2016-11-29 11:44 ` Jan Beulich
2016-11-29 12:09 ` Roger Pau Monne
2016-11-29 13:07 ` Jan Beulich
2016-11-29 14:28 ` Roger Pau Monne
2016-11-29 18:57 ` Stefano Stabellini
2016-11-29 20:19 ` Andrew Cooper
2016-11-30 8:54 ` Jan Beulich
2016-11-30 10:14 ` Roger Pau Monne
2016-11-29 19:08 ` Stefano Stabellini
2016-11-30 9:47 ` Julien Grall
2016-11-30 18:44 ` Stefano Stabellini
2016-11-30 10:29 ` Julien Grall
2016-11-30 14:31 ` Shanker Donthineni
2016-11-30 14:43 ` Julien Grall
2016-11-30 14:43 ` Shanker Donthineni
2016-11-30 15:00 ` Julien Grall [this message]
2016-11-30 15:35 ` Shanker Donthineni
2016-11-30 19:07 ` Stefano Stabellini
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=2c3ae482-c2b7-461f-d0a3-f158c4f74ba9@arm.com \
--to=julien.grall@arm.com \
--cc=scampbel@codeaurora.org \
--cc=shankerd@codeaurora.org \
--cc=sstabellini@kernel.org \
--cc=vikrams@codeaurora.org \
--cc=xen-devel@lists.xensource.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;
as well as URLs for NNTP newsgroup(s).