linux-watchdog.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Timur Tabi <timur@codeaurora.org>
To: Al Stone <al.stone@linaro.org>,
	linux-watchdog@vger.kernel.org,
	Ashwin Chaugule <ashwin.chaugule@linaro.org>,
	Vipul Gandhi <vgandhi@codeaurora.org>, Fu Wei <fu.wei@linaro.org>,
	Wim Van Sebroeck <wim@iguana.be>,
	Hanjun Guo <hanjun.guo@linaro.org>, Arnd Bergmann <arnd@arndb.de>,
	Guenter Roeck <linux@roeck-us.net>,
	Graeme Gregory <graeme.gregory@linaro.org>,
	linaro-acpi@lists.linaro.org
Subject: Re: [PATCH] [v4] watchdog: introduce the ARM64 SBSA watchdog driver
Date: Tue, 26 May 2015 12:58:22 -0500	[thread overview]
Message-ID: <5564B43E.6060504@codeaurora.org> (raw)
In-Reply-To: <5564A92F.4090403@linaro.org>

On 05/26/2015 12:11 PM, Al Stone wrote:

> So, this is meant to be SBSA compliant; is it also meant to be SBBR compliant?
> I suspect not, since there is no ACPI initialization and SBBR requires both
> UEFI and ACPI.  Is there any reason for not being SBBR compliant?  I'm not
> saying this is good or bad; I'm only trying to understand the reasoning.

The driver expects some platform code to read the ACPI tables and 
initialize a platform device.

> I'll also admit that I'm not an expert in ARM timers.  Could I ask a really big
> favor, please?  When I read the SBSA (section 5.2, specifically), that implies
> to me that there are two interrupts: a first interrupt for the timer itself set
> to go off after the timeout expires, and a second interrupt that is required
> when the timeout expires to force some "executive action".  I only see one IRQ
> in the patch; what am I missing?

My driver just uses the first interrupt as a software reset.  The second 
reset is treated as a "backup" hardware reset, in case the software 
reset didn't work.

Fu's driver, which I admit is better at handling this, uses the first 
interrupt as an optional pre-timeout that can be used for debugging. 
The second timeout, which is a hardware reset, is the "real" timeout.

Note that the ACPI specification for the watchdog device only allows for 
one interrupt to be specified.  For these drivers, we expect the first 
interrupt (WS0) to be specified in the ACPI tables.  We assume that the 
second timeout (WS1) will just cause an immediate hardware reset, 
without an interrupt.

Also, Fu and I have discussed this, and I think it makes sense to pick 
up his driver instead of mine.  So I'm withdrawing my driver.

-- 
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the
Code Aurora Forum, a Linux Foundation Collaborative Project.

  reply	other threads:[~2015-05-26 17:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-22 22:52 [PATCH] [v4] watchdog: introduce the ARM64 SBSA watchdog driver Timur Tabi
2015-05-26 17:11 ` Al Stone
2015-05-26 17:58   ` Timur Tabi [this message]
2015-05-26 20:38     ` Al Stone
2015-05-26 20:49       ` Timur Tabi
2015-05-27 21:47   ` [Linaro-acpi] " administrator
2015-06-10 14:55     ` Fu Wei

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=5564B43E.6060504@codeaurora.org \
    --to=timur@codeaurora.org \
    --cc=al.stone@linaro.org \
    --cc=arnd@arndb.de \
    --cc=ashwin.chaugule@linaro.org \
    --cc=fu.wei@linaro.org \
    --cc=graeme.gregory@linaro.org \
    --cc=hanjun.guo@linaro.org \
    --cc=linaro-acpi@lists.linaro.org \
    --cc=linux-watchdog@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=vgandhi@codeaurora.org \
    --cc=wim@iguana.be \
    /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).