Devicetree
 help / color / mirror / Atom feed
From: David Gibson <david@gibson.dropbear.id.au>
To: Douglas Anderson <dianders@chromium.org>
Cc: Devicetree-compiler@vger.kernel.org,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Konrad Dybcio" <konradybcio@kernel.org>,
	"Chen-Yu Tsai" <wenst@chromium.org>,
	linux-kernel@vger.kernel.org, Devicetree@vger.kernel.org,
	"Brian Norris" <briannorris@chromium.org>,
	"Tudor Ambarus" <tudor.ambarus@linaro.org>,
	"André Draszik" <andre.draszik@linaro.org>,
	"Julius Werner" <jwerner@chromium.org>,
	"Saravana Kannan" <saravanak@kernel.org>,
	"Peter Griffin" <peter.griffin@linaro.org>
Subject: Re: [PATCH 0/4] fdtfactor: Introduce fdtfactor to auto-factor overlays
Date: Mon, 26 Oct 2026 16:48:26 +1100	[thread overview]
Message-ID: <at7poY2M3ori0qIN@gractus.seuss> (raw)
In-Reply-To: <atrnN0ICA41TU1B3@gractus.seuss>

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

On Fri, Oct 23, 2026 at 03:49:09PM +1100, David Gibson wrote:
> On Thu, Oct 15, 2026 at 11:21:33AM -0700, Douglas Anderson wrote:
[snip]
> > I'll freely admit that the patches in this series were pretty heavily vibe
> > coded. I'll not pretend that I have a deep understanding of the intracicies
> > of how overlays are implemented. That being said:
> > * I've spent quite a bit of time reviewing the code from a high-level
> >   perspective: confirming that functions are well documented, well structured,
> >   and make sense.
> > * I believe that what the tool is doing and how the tool is used make sense.
> > * I have had quite a number of internal "the AI reviews the AI" rounds to
> >   the point of diminishing returns.
> > At this point, I'm not embarassed to put my name behind this. While I won't
> > promise that there is zero cases of the AI doing something really stupid,
> > I'd be willing to bet that the end result is better (and cleaner / better
> > structured) than what I would have coded up if I had spend a few weeks doing
> > this on my own.
> 
> Thanks for that clear and helpful context.  My views on AI are
> complicated, leaning negative, but I do think it can be a useful tool
> and have no plans to reject patches purely because they're AI
> assisted.  A statement like that goes a long way to convincing me that
> I'm not about to waste my effort reviewing slop.  c.f. my rather
> unfriendly response[2] to a recent very sloppish bug report which
> vastly overestimated the impact of the bugs in question.
> 
> [2] https://lore.kernel.org/devicetree-compiler/as8RYmIp0pDCplpu@gractus.seuss/
> 
> Understand that all dtc maintainership is unpaid volunteer time for
> me, so I'm less responsive about reviews than would be ideal.  I am
> gradually chiping away at the backlog, though.

Fwiw, here's a follow up on this topic now that I've actually read the
series (or at least, the heart of it in 2/4).

This does exhibit some of the pitfalls of AI generated code.  Most
obviously, that patch itself is pretty monstrous - at least by
default, coding agents aren't very good at considering splitting
series for the benefit of reviewability.  It does exhibit signs of
AI-typical verbosity.  It's not too bad in terms of locally redundant
code, although there are a few examples.  It's worse in terms of
"conceptual verbosity" - most obviously it uses two quite different
ways of representing the tree being processed.  It's not really clear
why or if that's necessary or useful and it makes it substantially
more confusing to read.

I don't know what prompts you used for AI-reviewing-AI, and I don't
have a lot of experience with that, but I wonder if results could be
improved by using some review prompts not focussed on correctness or
(superficial) style.  e.g. "look for DRY violations", "look for
redundantly represented data", "look for workarounds for bugs in
pre-existing code, and fix those sepearately first".

-- 
David Gibson (he or they)	| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you, not the other way
				| around.
http://www.ozlabs.org/~dgibson

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

  reply	other threads:[~2026-10-26  5:49 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-15 18:21 [PATCH 0/4] fdtfactor: Introduce fdtfactor to auto-factor overlays Douglas Anderson
2026-10-15 18:21 ` [PATCH 1/4] tests: Fix Python test environment setup in meson.build Douglas Anderson
2026-10-23  4:51   ` David Gibson
2026-10-15 18:21 ` [PATCH 2/4] fdtfactor: Add tool to split DTBs into a base DTB and overlays Douglas Anderson
2026-10-26  4:50   ` David Gibson
2026-10-28 21:57     ` Doug Anderson
2026-10-29  1:00       ` David Gibson
2026-10-29  1:28         ` Doug Anderson
2026-10-26 15:30   ` Simon Glass
2026-10-28 21:57     ` Doug Anderson
2026-10-15 18:21 ` [PATCH 3/4] fdtfactor: Support compressed DTB inputs and outputs Douglas Anderson
2026-10-26  4:51   ` David Gibson
2026-10-26 15:31   ` Simon Glass
2026-10-28 21:57     ` Doug Anderson
2026-10-15 18:21 ` [PATCH 4/4] fdtfactor: Add compiled FIT image factoring support Douglas Anderson
2026-10-26 15:31   ` Simon Glass
2026-10-28 21:58     ` Doug Anderson
2026-10-23  4:49 ` [PATCH 0/4] fdtfactor: Introduce fdtfactor to auto-factor overlays David Gibson
2026-10-26  5:48   ` David Gibson [this message]
2026-10-28 21:57   ` Doug Anderson
2026-10-29  0:27     ` David Gibson
2026-10-26 15:30 ` Simon Glass
2026-10-28 21:57   ` Doug Anderson

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=at7poY2M3ori0qIN@gractus.seuss \
    --to=david@gibson.dropbear.id.au \
    --cc=Devicetree-compiler@vger.kernel.org \
    --cc=Devicetree@vger.kernel.org \
    --cc=andre.draszik@linaro.org \
    --cc=briannorris@chromium.org \
    --cc=conor+dt@kernel.org \
    --cc=dianders@chromium.org \
    --cc=jwerner@chromium.org \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peter.griffin@linaro.org \
    --cc=robh@kernel.org \
    --cc=saravanak@kernel.org \
    --cc=tudor.ambarus@linaro.org \
    --cc=wenst@chromium.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox