[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <563B5DD8.901@codeaurora.org>
Date: Thu, 5 Nov 2015 07:47:04 -0600
From: Timur Tabi <timur@...eaurora.org>
To: Fu Wei <fu.wei@...aro.org>, Guenter Roeck <linux@...ck-us.net>
Cc: Linaro ACPI Mailman List <linaro-acpi@...ts.linaro.org>,
linux-watchdog@...r.kernel.org, devicetree@...r.kernel.org,
lkml <linux-kernel@...r.kernel.org>, linux-doc@...r.kernel.org,
"Rafael J. Wysocki" <rjw@...ysocki.net>,
Arnd Bergmann <arnd@...db.de>,
Jonathan Corbet <corbet@....net>, Jon Masters <jcm@...hat.com>,
Pratyush Anand <panand@...hat.com>,
Will Deacon <will.deacon@....com>,
Wim Van Sebroeck <wim@...ana.be>,
Catalin Marinas <catalin.marinas@....com>,
Wei Fu <tekkamanninja@...il.com>,
Rob Herring <robherring2@...il.com>,
Vipul Gandhi <vgandhi@...eaurora.org>,
Dave Young <dyoung@...hat.com>
Subject: Re: [Linaro-acpi] [PATCH v8 5/5] Watchdog: introduce ARM SBSA
watchdog driver
Fu Wei wrote:
> (1)It is not new.
> pre-timeout concept has been used by two drivers before this driver.
> and this concept has been in kernel documentation.
It's "new" in that it's a new infrastructure. The private API of two
other drivers doesn't count.
> (1) if we don't, for this two stages timeout, we have to config them
> by one value.
> that means "the first stage timeout" have to be equal to "the second
> stage timeout",
> For example, if we need 60 second for "the second stage timeout", 30
> or less for "the first stage timeout".
> then "the first stage timeout" have to be 60s too. I don't think it 's
> good idea.
Why do we care about two stages? Don't have a pre-timeout, and just
have one stage: the WS1 reset. Ignore the WS0 interrupt, and program
the timeout so that WS1 is the reset.
I'm not saying that pre-timeout is a terrible idea and we should never
do it. I'm saying that it's not an important feature, and we should
only support it to the extent that the hardware provides the feature.
We should definitely not make the driver more complicated and less safe.
If we agree that an SBSA watchdog allows for a pre-timeout at half-way
through timeout, and that software can't change this, then we can use
WS0 as the pre-timeout and applications just have to deal with that.
The hardware is programmed to reset via WS1, and all we do in the
interrupt handler is notify the application that a pre-timeout has
occurred.
--
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the
Code Aurora Forum, hosted by The Linux Foundation.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists