All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: Stefan Roese <sr@denx.de>, Harald Seiler <hws@denx.de>,
	Andre Przywara <andre.przywara@arm.com>
Cc: Simon Glass <sjg@chromium.org>,
	Samuel Holland <samuel@sholland.org>,
	u-boot@lists.denx.de, Jagan Teki <jagan@amarulasolutions.com>,
	Bin Meng <bmeng.cn@gmail.com>,
	Heinrich Schuchardt <heinrich.schuchardt@canonical.com>,
	Sean Anderson <seanga2@gmail.com>
Subject: Re: [PATCH v3 0/6] Improved sysreset/watchdog uclass integration
Date: Fri, 5 Nov 2021 10:21:20 -0400	[thread overview]
Message-ID: <20211105142120.GS24579@bill-the-cat> (raw)
In-Reply-To: <53ead8ab-bd0b-afff-b738-c92366080333@denx.de>

[-- Attachment #1: Type: text/plain, Size: 6396 bytes --]

On Fri, Nov 05, 2021 at 12:14:47PM +0100, Stefan Roese wrote:
> Hi Andre,
> 
> Added Tom to Cc.
> 
> On 05.11.21 11:04, Andre Przywara wrote:
> > On Thu, 4 Nov 2021 20:02:41 -0600
> > Simon Glass <sjg@chromium.org> wrote:
> > 
> > Hi,
> > 
> > > On Thu, 4 Nov 2021 at 19:22, Stefan Roese <sr@denx.de> wrote:
> > > > 
> > > > Hi Andre,
> > > > 
> > > > On 05.11.21 00:11, Andre Przywara wrote:
> > > > > On Thu, 4 Nov 2021 11:37:57 +0100
> > > > > Stefan Roese <sr@denx.de> wrote:
> > > > > 
> > > > > Hi Stefan,
> > > > > > On 04.11.21 04:55, Samuel Holland wrote:
> > > > > > > This series hooks up the watchdog uclass to automatically register
> > > > > > > watchdog devices for use with sysreset, doing a bit of minor cleanup
> > > > > > > along the way.
> > > > > > > 
> > > > > > > The goal is for this to replace the sunxi board-level non-DM reset_cpu()
> > > > > > > function. I was surprised to find that the wdt_reboot driver requires
> > > > > > > its own undocumented device tree node, which references the watchdog
> > > > > > > device by phandle. This is problematic for us, because sunxi-u-boot.dtsi
> > > > > > > file covers 20 different SoCs with varying watchdog node phandle names.
> > > > > > > So it would have required adding a -u-boot.dtsi file for each board.
> > > > > > > 
> > > > > > > Hooking things up automatically makes sense to me; this is what Linux
> > > > > > > does. However, I put the code behind a new option to avoid surprises for
> > > > > > > other platforms.
> > > > > > > 
> > > > > > > Changes in v3:
> > > > > > >     - Move condition to wdt-uclass.c to fix build errors.
> > > > > > >     - Include watchdog name in error message.
> > > > > > > 
> > > > > > > Changes in v2:
> > > > > > >     - Extend the "if SYSRESET" block to the end of the file.
> > > > > > >     - Also make gpio_reboot_probe function static.
> > > > > > >     - Rebase on top of 492ee6b8d0e7 (now handle all watchdogs).
> > > > > > >     - Added patches 5-6 as an example of how the new option will be used.
> > > > > > > 
> > > > > > > Samuel Holland (6):
> > > > > > >      sysreset: Add uclass Kconfig dependency to drivers
> > > > > > >      sysreset: Mark driver probe functions as static
> > > > > > >      sysreset: watchdog: Move watchdog reference to plat data
> > > > > > >      watchdog: Automatically register device with sysreset
> > > > > > >      sunxi: Avoid duplicate reset_cpu with SYSRESET enabled
> > > > > > >      sunxi: Use sysreset framework for poweroff/reset
> > > > > > > 
> > > > > > >     arch/arm/Kconfig                     |  3 +++
> > > > > > >     arch/arm/mach-sunxi/board.c          |  2 ++
> > > > > > >     drivers/sysreset/Kconfig             | 11 ++++++--
> > > > > > >     drivers/sysreset/sysreset_gpio.c     |  2 +-
> > > > > > >     drivers/sysreset/sysreset_resetctl.c |  2 +-
> > > > > > >     drivers/sysreset/sysreset_syscon.c   |  2 +-
> > > > > > >     drivers/sysreset/sysreset_watchdog.c | 40 ++++++++++++++++++++++------
> > > > > > >     drivers/watchdog/wdt-uclass.c        |  8 ++++++
> > > > > > >     include/sysreset.h                   | 10 +++++++
> > > > > > >     9 files changed, 67 insertions(+), 13 deletions(-)
> > > > > > 
> > > > > > Applied to u-boot-marvell
> > > > > 
> > > > > Mmmh, why u-boot-marvell,
> > > > 
> > > > Because I'm handling watchdog related changed since a few years and we
> > > > did not create a specific subsystem repo for this and I'm usually
> > > > using my "marvell" one for this.

And fwiw, there's a few other cases like this.  If it's too confusing,
maybe we should just roll out a few more repositories, I think it's
easier to do that now than pre-gitlab?

> > > > > and why did this end up already in master?
> > > > > Isn't that material for the next merge window? After all this changes
> > > > > quite a bit, for a lot of boards, and I did not have a closer look at
> > > > > the sunxi parts yet.
> > > > 
> > > > I was hesitating also a bit. But since this patchset is on the list in
> > > > v1 since over 2 months now (2021-08-21) I thought it was "ready" for
> > > > inclusion now. We are at -rc1 and I think we still have enough time to
> > > > fix any resulting problems in this release cycle.
> > 
> > Why do we have the merge window then? This is clearly not a regression or
> > general fix.
> 
> AFAIU, we are a bit less strict here in U-Boot. Patches that were posted
> before the merge-window and skipped the review process (most likely
> because of lack of time) are often still integrated in the early rcX
> cycles. At least this is how I handle it usually.
> 
> Tom, is my understanding here correct?

Yes.  We are not as strict as the kernel is about what can come in
between rc1 and rc2 (and to a certain degree, post rc2).  I leave things
up to the discretion of the custodians.  People tend of have less time
to handle U-Boot changes than other stuff, so I try and be flexible in
picking things up.

> > > Yes I agree, that should be plenty of time for people to review it.
> > 
> > Well, if there would be people to review the sunxi parts :-(
> > I am totally fine with the generic patches (as they have been reviewed),
> > but the sunxi integration is somewhat risky.
> > I was explicitly deprioritising that in my queue, as it really doesn't
> > change, add or fix anything, it's mere refactoring, from the user's point
> > of view.
> > 
> > > > Do you see any specific issues?
> > 
> > Patch 6/6 changes the config for all 157 Allwinner boards, so I think that
> > deserves at least some testing, *before* merging it.
> 
> I expect that Samuel did some testing. But still, I agree that it
> would be much better, if these patches - especially the Allwinner parts
> got more extensive testing.
> 
> > I will do as much testing now as possible, but I am not happy about that
> > situation.
> 
> Understood. Should we revert patch 6/6 for now?

FWIW, given Samuel has been doing a number of allwinner changes, I had
also assumed it was sufficiently tested, which is why I didn't raise a
further concern when I saw the widespread nature of the overall changes,
just figured it was a few more ready-to-go cleanups that weren't quite
picked up in time.  Please do speak up if you want me to revert the last
part.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

  reply	other threads:[~2021-11-05 14:21 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-04  3:55 [PATCH v3 0/6] Improved sysreset/watchdog uclass integration Samuel Holland
2021-11-04  3:55 ` [PATCH v3 1/6] sysreset: Add uclass Kconfig dependency to drivers Samuel Holland
2021-11-04  7:46   ` Stefan Roese
2021-11-04  3:55 ` [PATCH v3 2/6] sysreset: Mark driver probe functions as static Samuel Holland
2021-11-04  7:46   ` Stefan Roese
2021-11-04  3:55 ` [PATCH v3 3/6] sysreset: watchdog: Move watchdog reference to plat data Samuel Holland
2021-11-04  7:46   ` Stefan Roese
2021-11-04  3:55 ` [PATCH v3 4/6] watchdog: Automatically register device with sysreset Samuel Holland
2021-11-04  7:48   ` Stefan Roese
2021-11-04  9:34     ` Heinrich Schuchardt
2021-11-04  3:55 ` [PATCH v3 5/6] sunxi: Avoid duplicate reset_cpu with SYSRESET enabled Samuel Holland
2021-11-04  7:48   ` Stefan Roese
2021-11-04  3:55 ` [PATCH v3 6/6] sunxi: Use sysreset framework for poweroff/reset Samuel Holland
2021-11-04  7:48   ` Stefan Roese
2021-11-04 10:37 ` [PATCH v3 0/6] Improved sysreset/watchdog uclass integration Stefan Roese
2021-11-04 23:11   ` Andre Przywara
2021-11-05  1:21     ` Stefan Roese
2021-11-05  2:02       ` Simon Glass
2021-11-05 10:04         ` Andre Przywara
2021-11-05 11:14           ` Stefan Roese
2021-11-05 14:21             ` Tom Rini [this message]
2021-11-05 16:12               ` Simon Glass
2021-11-05 17:07                 ` Andre Przywara
2021-11-05 19:23                   ` Simon Glass
2021-11-05 18:37                 ` Heinrich Schuchardt
2021-11-05 19:17                   ` Tom Rini
2021-11-05 20:38                     ` Heinrich Schuchardt
2021-11-05 22:56                       ` Tom Rini
2021-11-06  1:52                         ` Andre Przywara
2021-11-06  3:55                           ` Heinrich Schuchardt
2021-11-06 13:53                             ` Tom Rini
2021-11-07 11:18                               ` Heinrich Schuchardt
2021-11-08 15:58                                 ` Simon Glass
2021-11-08 16:05                                   ` Tom Rini
2021-11-08 16:09                                     ` Simon Glass
2021-11-08 16:13                                       ` Tom Rini
2021-11-08 16:17                                     ` Heinrich Schuchardt
2021-11-09  0:09                                       ` Simon Glass
2021-11-09  0:25                                         ` Tom Rini
2021-11-09  1:37                                       ` Andre Przywara
2021-11-09  8:00                                         ` Heinrich Schuchardt
2021-11-09 13:50                                           ` Tom Rini
2021-11-09 14:26                                             ` Andre Przywara
2021-11-09 14:34                                               ` Heinrich Schuchardt
2021-11-09 15:09                                                 ` Grant Likely
2021-11-06 13:52                           ` Tom Rini

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=20211105142120.GS24579@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=andre.przywara@arm.com \
    --cc=bmeng.cn@gmail.com \
    --cc=heinrich.schuchardt@canonical.com \
    --cc=hws@denx.de \
    --cc=jagan@amarulasolutions.com \
    --cc=samuel@sholland.org \
    --cc=seanga2@gmail.com \
    --cc=sjg@chromium.org \
    --cc=sr@denx.de \
    --cc=u-boot@lists.denx.de \
    /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.