All of lore.kernel.org
 help / color / mirror / Atom feed
From: Corey Minyard <cminyard@mvista.com>
To: Julien Grall <julien@xen.org>
Cc: xen-devel@lists.xenproject.org,
	Stefano Stabellini <sstabellini@kernel.org>,
	tamas@tklengyel.com, roman@zededa.com,
	Stefano Stabellini <stefano.stabellini@xilinx.com>
Subject: Re: [PATCH] xen/rpi4: implement watchdog-based reset
Date: Thu, 4 Jun 2020 06:59:07 -0500	[thread overview]
Message-ID: <20200604115907.GD2903@minyard.net> (raw)
In-Reply-To: <50ad4bca-5eb8-8db0-0aae-dc7febfdb56a@xen.org>

On Thu, Jun 04, 2020 at 09:15:33AM +0100, Julien Grall wrote:
> Hi,
> 
> On 04/06/2020 01:15, Corey Minyard wrote:
> > On Wed, Jun 03, 2020 at 03:31:56PM -0700, Stefano Stabellini wrote:
> > > Touching the watchdog is required to be able to reboot the board.
> > > 
> > > The implementation is based on
> > > drivers/watchdog/bcm2835_wdt.c:__bcm2835_restart in Linux.
> > 
> > Ah, I was looking at this just today, as it had been annoying me
> > greatly.  This works for me, so:
> > 
> > Tested-by: Corey Minyard <cminyard@mvista.com>
> > 
> > However, I was wondering if it might be better to handle this by failing
> > the operation in xen and passing it back to dom0 to do.  On the Pi you
> > send a firmware message to reboot, and that seems like too much to do in
> > Xen, but it would seem possible to send this back to dom0.
> I don't think this is possible in the current setup. Xen will usually
> restart the platform if Dom0 requested a clean reboot or crashed. So the
> domain wouldn't be in state to service such call.

Ok, I hadn't looked at Xen yet, I didn't know how much shutdown of dom0
happens on a reset.

> 
> > Just a
> > thought, as it might be a more general fix for other devices in the same
> > situation.
> 
> What are the devices you have in mind?

Nothing in particular, but other systems might have the same issue.  I
guess you have ACPI implemented on x86 already.  It just seemed that
Linux already has to be able to do this, and passing the buck back there
might be a more general solution.

Thanks,

-corey

> 
> Cheers,
> 
> -- 
> Julien Grall


  reply	other threads:[~2020-06-04 11:59 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-03 22:31 [PATCH] xen/rpi4: implement watchdog-based reset Stefano Stabellini
2020-06-03 23:21 ` Roman Shaposhnik
2020-06-04  0:09 ` Tamas K Lengyel
2020-06-04  0:15 ` Corey Minyard
2020-06-04  8:15   ` Julien Grall
2020-06-04 11:59     ` Corey Minyard [this message]
2020-06-04 12:07       ` Julien Grall
2020-06-04  8:48 ` Julien Grall
2020-06-04  8:59   ` André Przywara
2020-06-04 16:24     ` Stefano Stabellini
2020-06-04 16:36       ` Julien Grall
2020-06-04 16:48         ` Roman Shaposhnik
2020-06-04 16:54           ` Stefano Stabellini
2020-06-04 16:53         ` Stefano Stabellini
2020-06-04 16:37       ` André Przywara
2020-06-04 16:46         ` Stefano Stabellini
2020-06-04 17:12           ` André Przywara
2020-06-04 17:19           ` Julien Grall
2020-06-06  1:57             ` 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=20200604115907.GD2903@minyard.net \
    --to=cminyard@mvista.com \
    --cc=julien@xen.org \
    --cc=roman@zededa.com \
    --cc=sstabellini@kernel.org \
    --cc=stefano.stabellini@xilinx.com \
    --cc=tamas@tklengyel.com \
    --cc=xen-devel@lists.xenproject.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 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.