All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fu Wei <fu.wei@linaro.org>
To: Guenter Roeck <linux@roeck-us.net>
Cc: "Timur Tabi" <timur@codeaurora.org>,
	"Rob Herring" <robh+dt@kernel.org>,
	"Paweł Moll" <pawel.moll@arm.com>,
	"Mark Rutland" <mark.rutland@arm.com>,
	"Ian Campbell" <ijc+devicetree@hellion.org.uk>,
	"Kumar Gala" <galak@codeaurora.org>,
	"Wim Van Sebroeck" <wim@iguana.be>, "Jon Corbet" <corbet@lwn.net>,
	"Catalin Marinas" <catalin.marinas@arm.com>,
	"Will Deacon" <will.deacon@arm.com>,
	"Suravee Suthikulpanit" <Suravee.Suthikulpanit@amd.com>,
	LKML <linux-kernel@vger.kernel.org>,
	linux-watchdog@vger.kernel.org, linux-doc@vger.kernel.org,
	devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	"Linaro ACPI Mailman List" <linaro-acpi@lists.linaro.org>,
	rruigrok@codeaurora.org, "Abdulhamid,
	Harb" <harba@codeaurora.org>,
	"Christopher Covington" <cov@codeaurora.org>,
	"Dave Young" <dyoung@redhat.com>,
	"Pratyush Anand" <panand@redhat.com>,
	"G Gregory" <graeme.gregory@linaro.org>,
	"Al Stone" <al.stone@linaro.org>,
	"Hanjun Guo" <hanjun.guo@linaro.org>,
	"Jon Masters" <jcm@redhat.com>, "Arnd Bergmann" <arnd@arndb.de>,
	"Leo Duran" <leo.duran@amd.com>,
	"Sudeep Holla" <sudeep.holla@arm.com>
Subject: Re: [PATCH v10 5/5] Watchdog: ARM SBSA Generic Watchdog half timeout panic support
Date: Fri, 5 Feb 2016 17:51:52 +0800	[thread overview]
Message-ID: <CADyBb7unAHEOMfruWS82RkHK6uwPAWCxUx9jqzSkiHU4LHDSeA@mail.gmail.com> (raw)
In-Reply-To: <56B2DEE4.7060901@roeck-us.net>

Hi Guenter,

On 4 February 2016 at 13:17, Guenter Roeck <linux@roeck-us.net> wrote:
> On 02/03/2016 03:00 PM, Fu Wei wrote:
>>
>> On 4 February 2016 at 02:45, Timur Tabi <timur@codeaurora.org> wrote:
>>>
>>> Fu Wei wrote:
>>>>
>>>>
>>>> As you know I have made the pre-timeout support patch, If people like
>>>> it, i am happy to go on upstream it separately.
>>>>
>>>> If we want to use pre-timeout here, user only can use get_pretimeout
>>>> and disable panic by setting pretimeout to 0
>>>> but user can not really set pretimeout, because "pre-timeout  ==
>>>> timeout / 2 (always)".
>>>> if user want to change pretimeout, he/she has to set_time instead.
>>>
>>>
>>>
>>> Ok, I think patches 4 and 5 should be combined, and I think the Kconfig
>>> entry should be removed and just use panic_enabled.
>
>
> Agreed.

np, will do

>>
>>
>> NP, will update this patchset like that ,  thanks :-)
>>
>
> Also, if panic is enabled, the timeout needs to be adjusted accordingly
> (to only panic after the entire timeout period has expired, not after
> half of it). We can not panic the system after timeout / 2.

OK, my thought is

if panic is enabled :
|--------WOR-------WS0--------WOR-------WS1
|------timeout------(panic)------timeout-----reset

if panic is disabled .
|--------WOR-------WS0--------WOR-------WS1
|---------------------timeout---------------------reset

 panic_enabled only can be configured when module is loaded by module parameter

But user should know that max_timeout(panic_enable) =
max_timeout(panic_disable) / 2

>
> I am not too happy with the parameter name (panic_enabled). How about
> "action", to match machzwd ?

yes, makes sense. Maybe we can do something  like this:

/*
 * action refers to action taken when watchdog gets WS0
 * 0 = SKIP
 * 1 = PANIC
 * defaults to SKIP (0)
 */
static int action;
module_param(action, int, 0);
MODULE_PARM_DESC(action, "after watchdog gets WS0 interrupt, do: "
"0 = SKIP(*)  1 = PANIC");


>
> Thanks,
> Guenter
>



-- 
Best regards,

Fu Wei
Software Engineer
Red Hat Software (Beijing) Co.,Ltd.Shanghai Branch
Ph: +86 21 61221326(direct)
Ph: +86 186 2020 4684 (mobile)
Room 1512, Regus One Corporate Avenue,Level 15,
One Corporate Avenue,222 Hubin Road,Huangpu District,
Shanghai,China 200021

WARNING: multiple messages have this Message-ID (diff)
From: Fu Wei <fu.wei-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
To: Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
Cc: "Timur Tabi" <timur-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>,
	"Rob Herring" <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	"Paweł Moll" <pawel.moll-5wv7dgnIgG8@public.gmane.org>,
	"Mark Rutland" <mark.rutland-5wv7dgnIgG8@public.gmane.org>,
	"Ian Campbell"
	<ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org>,
	"Kumar Gala" <galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>,
	"Wim Van Sebroeck" <wim-IQzOog9fTRqzQB+pC5nmwQ@public.gmane.org>,
	"Jon Corbet" <corbet-T1hC0tSOHrs@public.gmane.org>,
	"Catalin Marinas" <catalin.marinas-5wv7dgnIgG8@public.gmane.org>,
	"Will Deacon" <will.deacon-5wv7dgnIgG8@public.gmane.org>,
	"Suravee Suthikulpanit"
	<Suravee.Suthikulpanit-5C7GfCeVMHo@public.gmane.org>,
	LKML <linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	linux-watchdog-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-doc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	"Linaro ACPI Mailman List"
	<linaro-acpi-cunTk1MwBs8s++Sfvej+rw@public.gmane.org>,
	rruigrok-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org, "Abdulhamid,
	Harb" <harba-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>,
	"Christopher Covington"
	<cov-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>,
	"Dave Young" <dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
	"Pratyush Anand" <panand-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
	"G Gregory"
	<graeme.gregory-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Subject: Re: [PATCH v10 5/5] Watchdog: ARM SBSA Generic Watchdog half timeout panic support
Date: Fri, 5 Feb 2016 17:51:52 +0800	[thread overview]
Message-ID: <CADyBb7unAHEOMfruWS82RkHK6uwPAWCxUx9jqzSkiHU4LHDSeA@mail.gmail.com> (raw)
In-Reply-To: <56B2DEE4.7060901-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>

Hi Guenter,

On 4 February 2016 at 13:17, Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org> wrote:
> On 02/03/2016 03:00 PM, Fu Wei wrote:
>>
>> On 4 February 2016 at 02:45, Timur Tabi <timur-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org> wrote:
>>>
>>> Fu Wei wrote:
>>>>
>>>>
>>>> As you know I have made the pre-timeout support patch, If people like
>>>> it, i am happy to go on upstream it separately.
>>>>
>>>> If we want to use pre-timeout here, user only can use get_pretimeout
>>>> and disable panic by setting pretimeout to 0
>>>> but user can not really set pretimeout, because "pre-timeout  ==
>>>> timeout / 2 (always)".
>>>> if user want to change pretimeout, he/she has to set_time instead.
>>>
>>>
>>>
>>> Ok, I think patches 4 and 5 should be combined, and I think the Kconfig
>>> entry should be removed and just use panic_enabled.
>
>
> Agreed.

np, will do

>>
>>
>> NP, will update this patchset like that ,  thanks :-)
>>
>
> Also, if panic is enabled, the timeout needs to be adjusted accordingly
> (to only panic after the entire timeout period has expired, not after
> half of it). We can not panic the system after timeout / 2.

OK, my thought is

if panic is enabled :
|--------WOR-------WS0--------WOR-------WS1
|------timeout------(panic)------timeout-----reset

if panic is disabled .
|--------WOR-------WS0--------WOR-------WS1
|---------------------timeout---------------------reset

 panic_enabled only can be configured when module is loaded by module parameter

But user should know that max_timeout(panic_enable) =
max_timeout(panic_disable) / 2

>
> I am not too happy with the parameter name (panic_enabled). How about
> "action", to match machzwd ?

yes, makes sense. Maybe we can do something  like this:

/*
 * action refers to action taken when watchdog gets WS0
 * 0 = SKIP
 * 1 = PANIC
 * defaults to SKIP (0)
 */
static int action;
module_param(action, int, 0);
MODULE_PARM_DESC(action, "after watchdog gets WS0 interrupt, do: "
"0 = SKIP(*)  1 = PANIC");


>
> Thanks,
> Guenter
>



-- 
Best regards,

Fu Wei
Software Engineer
Red Hat Software (Beijing) Co.,Ltd.Shanghai Branch
Ph: +86 21 61221326(direct)
Ph: +86 186 2020 4684 (mobile)
Room 1512, Regus One Corporate Avenue,Level 15,
One Corporate Avenue,222 Hubin Road,Huangpu District,
Shanghai,China 200021
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

WARNING: multiple messages have this Message-ID (diff)
From: fu.wei@linaro.org (Fu Wei)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v10 5/5] Watchdog: ARM SBSA Generic Watchdog half timeout panic support
Date: Fri, 5 Feb 2016 17:51:52 +0800	[thread overview]
Message-ID: <CADyBb7unAHEOMfruWS82RkHK6uwPAWCxUx9jqzSkiHU4LHDSeA@mail.gmail.com> (raw)
In-Reply-To: <56B2DEE4.7060901@roeck-us.net>

Hi Guenter,

On 4 February 2016 at 13:17, Guenter Roeck <linux@roeck-us.net> wrote:
> On 02/03/2016 03:00 PM, Fu Wei wrote:
>>
>> On 4 February 2016 at 02:45, Timur Tabi <timur@codeaurora.org> wrote:
>>>
>>> Fu Wei wrote:
>>>>
>>>>
>>>> As you know I have made the pre-timeout support patch, If people like
>>>> it, i am happy to go on upstream it separately.
>>>>
>>>> If we want to use pre-timeout here, user only can use get_pretimeout
>>>> and disable panic by setting pretimeout to 0
>>>> but user can not really set pretimeout, because "pre-timeout  ==
>>>> timeout / 2 (always)".
>>>> if user want to change pretimeout, he/she has to set_time instead.
>>>
>>>
>>>
>>> Ok, I think patches 4 and 5 should be combined, and I think the Kconfig
>>> entry should be removed and just use panic_enabled.
>
>
> Agreed.

np, will do

>>
>>
>> NP, will update this patchset like that ,  thanks :-)
>>
>
> Also, if panic is enabled, the timeout needs to be adjusted accordingly
> (to only panic after the entire timeout period has expired, not after
> half of it). We can not panic the system after timeout / 2.

OK, my thought is

if panic is enabled :
|--------WOR-------WS0--------WOR-------WS1
|------timeout------(panic)------timeout-----reset

if panic is disabled .
|--------WOR-------WS0--------WOR-------WS1
|---------------------timeout---------------------reset

 panic_enabled only can be configured when module is loaded by module parameter

But user should know that max_timeout(panic_enable) =
max_timeout(panic_disable) / 2

>
> I am not too happy with the parameter name (panic_enabled). How about
> "action", to match machzwd ?

yes, makes sense. Maybe we can do something  like this:

/*
 * action refers to action taken when watchdog gets WS0
 * 0 = SKIP
 * 1 = PANIC
 * defaults to SKIP (0)
 */
static int action;
module_param(action, int, 0);
MODULE_PARM_DESC(action, "after watchdog gets WS0 interrupt, do: "
"0 = SKIP(*)  1 = PANIC");


>
> Thanks,
> Guenter
>



-- 
Best regards,

Fu Wei
Software Engineer
Red Hat Software (Beijing) Co.,Ltd.Shanghai Branch
Ph: +86 21 61221326(direct)
Ph: +86 186 2020 4684 (mobile)
Room 1512, Regus One Corporate Avenue,Level 15,
One Corporate Avenue,222 Hubin Road,Huangpu District,
Shanghai,China 200021

  parent reply	other threads:[~2016-02-05  9:51 UTC|newest]

Thread overview: 130+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-03 17:18 [PATCH v10 0/5] Watchdog: introduce ARM SBSA watchdog driver fu.wei
2016-02-03 17:18 ` fu.wei at linaro.org
2016-02-03 17:18 ` [PATCH v10 1/5] Documentation: add sbsa-gwdt driver documentation fu.wei
2016-02-03 17:18   ` fu.wei at linaro.org
2016-02-03 17:18 ` [PATCH v10 2/5] ARM64: add SBSA Generic Watchdog device node in foundation-v8.dts fu.wei
2016-02-03 17:18   ` fu.wei at linaro.org
2016-02-03 17:18 ` [PATCH v10 3/5] ARM64: add SBSA Generic Watchdog device node in amd-seattle-soc.dtsi fu.wei
2016-02-03 17:18   ` fu.wei at linaro.org
2016-02-03 17:18   ` fu.wei-QSEj5FYQhm4dnm+yROfE0A
2016-02-03 17:18 ` [PATCH v10 4/5] Watchdog: introduce ARM SBSA watchdog driver fu.wei
2016-02-03 17:18   ` fu.wei at linaro.org
2016-02-03 17:48   ` Timur Tabi
2016-02-03 17:48     ` Timur Tabi
2016-02-03 17:57     ` Fu Wei
2016-02-03 17:57       ` Fu Wei
2016-02-03 17:57       ` Fu Wei
2016-02-03 17:58       ` Timur Tabi
2016-02-03 17:58         ` Timur Tabi
2016-02-03 17:58         ` Timur Tabi
2016-02-03 18:09         ` Fu Wei
2016-02-03 18:09           ` Fu Wei
2016-02-03 18:09           ` Fu Wei
2016-02-03 18:12           ` Timur Tabi
2016-02-03 18:12             ` Timur Tabi
2016-02-03 18:12             ` Timur Tabi
2016-02-04 16:25   ` Mathieu Poirier
2016-02-04 16:25     ` Mathieu Poirier
2016-02-04 16:25     ` Mathieu Poirier
2016-02-05  9:01     ` Fu Wei
2016-02-05  9:01       ` Fu Wei
2016-02-05  9:01       ` Fu Wei
2016-02-04 16:31   ` Will Deacon
2016-02-04 16:31     ` Will Deacon
2016-02-04 16:31     ` Will Deacon
2016-02-04 16:37     ` Timur Tabi
2016-02-04 16:37       ` Timur Tabi
2016-02-04 16:37       ` Timur Tabi
2016-02-04 16:46       ` Guenter Roeck
2016-02-04 16:46         ` Guenter Roeck
2016-02-05  8:52         ` Fu Wei
2016-02-05  8:52           ` Fu Wei
2016-02-05  8:52           ` Fu Wei
2016-02-03 17:18 ` [PATCH v10 5/5] Watchdog: ARM SBSA Generic Watchdog half timeout panic support fu.wei
2016-02-03 17:18   ` fu.wei at linaro.org
2016-02-03 17:27   ` Timur Tabi
2016-02-03 17:27     ` Timur Tabi
2016-02-03 17:49     ` Fu Wei
2016-02-03 17:49       ` Fu Wei
2016-02-03 17:49       ` Fu Wei
2016-02-03 17:53       ` Timur Tabi
2016-02-03 17:53         ` Timur Tabi
2016-02-03 17:53         ` Timur Tabi
2016-02-03 18:06         ` Fu Wei
2016-02-03 18:06           ` Fu Wei
2016-02-03 18:06           ` Fu Wei
2016-02-03 18:08           ` Timur Tabi
2016-02-03 18:08             ` Timur Tabi
2016-02-03 18:08             ` Timur Tabi
2016-02-03 18:18             ` Fu Wei
2016-02-03 18:18               ` Fu Wei
2016-02-03 18:18               ` Fu Wei
2016-02-03 18:26               ` Timur Tabi
2016-02-03 18:26                 ` Timur Tabi
2016-02-03 18:26                 ` Timur Tabi
2016-02-03 18:37                 ` Fu Wei
2016-02-03 18:37                   ` Fu Wei
2016-02-03 18:37                   ` Fu Wei
2016-02-03 18:45                   ` Timur Tabi
2016-02-03 18:45                     ` Timur Tabi
2016-02-03 18:45                     ` Timur Tabi
2016-02-03 23:00                     ` Fu Wei
2016-02-03 23:00                       ` Fu Wei
2016-02-03 23:00                       ` Fu Wei
2016-02-04  5:17                       ` Guenter Roeck
2016-02-04  5:17                         ` Guenter Roeck
2016-02-04  5:17                         ` Guenter Roeck
2016-02-04 13:48                         ` Timur Tabi
2016-02-04 13:48                           ` Timur Tabi
2016-02-04 13:48                           ` Timur Tabi
2016-02-04 14:41                           ` Guenter Roeck
2016-02-04 14:41                             ` Guenter Roeck
2016-02-04 14:41                             ` Guenter Roeck
2016-02-05  9:51                         ` Fu Wei [this message]
2016-02-05  9:51                           ` Fu Wei
2016-02-05  9:51                           ` Fu Wei
2016-02-05 13:02                           ` Thomas Petazzoni
2016-02-05 13:02                             ` Thomas Petazzoni
2016-02-05 13:02                             ` Thomas Petazzoni
2016-02-05 13:08                             ` Timur Tabi
2016-02-05 13:08                               ` Timur Tabi
2016-02-05 13:08                               ` Timur Tabi
2016-02-05 13:33                               ` Thomas Petazzoni
2016-02-05 13:33                                 ` Thomas Petazzoni
2016-02-05 13:33                                 ` Thomas Petazzoni
2016-02-05 14:42                           ` Guenter Roeck
2016-02-05 14:42                             ` Guenter Roeck
2016-02-05 14:42                             ` Guenter Roeck
2016-02-05 18:21                             ` Fu Wei
2016-02-05 18:21                               ` Fu Wei
2016-02-05 18:21                               ` Fu Wei
2016-02-05 23:54                               ` Guenter Roeck
2016-02-05 23:54                                 ` Guenter Roeck
2016-02-05 23:54                                 ` Guenter Roeck
2016-02-06 18:02                                 ` Fu Wei
2016-02-06 18:02                                   ` Fu Wei
2016-02-06 18:02                                   ` Fu Wei
2016-02-06 18:55                                   ` Timur Tabi
2016-02-06 18:55                                     ` Timur Tabi
2016-02-06 18:55                                     ` Timur Tabi
2016-02-07  2:02                                     ` Fu Wei
2016-02-07  2:02                                       ` Fu Wei
2016-02-07  2:02                                       ` Fu Wei
2016-02-06 18:57                                   ` Guenter Roeck
2016-02-06 18:57                                     ` Guenter Roeck
2016-02-06 18:57                                     ` Guenter Roeck
2016-02-07  2:12                                     ` Fu Wei
2016-02-07  2:12                                       ` Fu Wei
2016-02-07  2:12                                       ` Fu Wei
2016-02-04 16:32   ` Mathieu Poirier
2016-02-04 16:32     ` Mathieu Poirier
2016-02-04 16:32     ` Mathieu Poirier
2016-02-04 16:41     ` Guenter Roeck
2016-02-04 16:41       ` Guenter Roeck
2016-02-04 16:41       ` Guenter Roeck
2016-02-04 16:43     ` Timur Tabi
2016-02-04 16:43       ` Timur Tabi
2016-02-04 16:43       ` Timur Tabi
2016-02-05  9:20       ` Fu Wei
2016-02-05  9:20         ` Fu Wei
2016-02-05  9:20         ` 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=CADyBb7unAHEOMfruWS82RkHK6uwPAWCxUx9jqzSkiHU4LHDSeA@mail.gmail.com \
    --to=fu.wei@linaro.org \
    --cc=Suravee.Suthikulpanit@amd.com \
    --cc=al.stone@linaro.org \
    --cc=arnd@arndb.de \
    --cc=catalin.marinas@arm.com \
    --cc=corbet@lwn.net \
    --cc=cov@codeaurora.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dyoung@redhat.com \
    --cc=galak@codeaurora.org \
    --cc=graeme.gregory@linaro.org \
    --cc=hanjun.guo@linaro.org \
    --cc=harba@codeaurora.org \
    --cc=ijc+devicetree@hellion.org.uk \
    --cc=jcm@redhat.com \
    --cc=leo.duran@amd.com \
    --cc=linaro-acpi@lists.linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-watchdog@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=mark.rutland@arm.com \
    --cc=panand@redhat.com \
    --cc=pawel.moll@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=rruigrok@codeaurora.org \
    --cc=sudeep.holla@arm.com \
    --cc=timur@codeaurora.org \
    --cc=will.deacon@arm.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.