ksummit.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: "Bird, Tim" <Tim.Bird@sony.com>
To: "laurent.pinchart@ideasonboard.com" <laurent.pinchart@ideasonboard.com>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>,
	Andrew Lunn <andrew@lunn.ch>, Chris Mason <clm@meta.com>,
	"ksummit@lists.linux.dev" <ksummit@lists.linux.dev>,
	Dan Carpenter <dan.carpenter@linaro.org>,
	Alexei Starovoitov <ast@kernel.org>,
	Rob Herring <robh@kernel.org>
Subject: RE: [MAINTAINERS / KERNEL SUMMIT] AI patch review tools
Date: Thu, 9 Oct 2025 14:47:52 +0000	[thread overview]
Message-ID: <MW5PR13MB56323B06E265F10136A1A2B2FDEEA@MW5PR13MB5632.namprd13.prod.outlook.com> (raw)
In-Reply-To: <20251009091405.GD12674@pendragon.ideasonboard.com>



> -----Original Message-----
> From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> 
> On Wed, Oct 08, 2025 at 08: 38: 45PM +0000, Bird, Tim wrote: > > -----Original Message----- > > From: James Bottomley
> <James. Bottomley@ HansenPartnership. com> > > On Wed, 2025-10-08 at 19: 50 +0000, Bird, Tim wrote: >
> On Wed, Oct 08, 2025 at 08:38:45PM +0000, Bird, Tim wrote:
> > > -----Original Message-----
> > > From: James Bottomley <James.Bottomley@HansenPartnership.com>
> > > On Wed, 2025-10-08 at 19: 50 +0000, Bird, Tim wrote:
> > > > > -----Original Message-----
> > > From: Laurent Pinchart <laurent. pinchart@ideasonboard.com>
> > > On Wed, 2025-10-08 at 19:50 +0000, Bird, Tim wrote:
> > > > > -----Original Message-----
> > > > > From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> > > > > On Wed, Oct 08, 2025 at 09:08:33PM +0200, Andrew Lunn wrote:
> > > > > > > My goal for KS/MS is to discuss how to enable maintainers to
> > > > > > > use review automation tools to lower their workload.
> > > > > >
> > > > > > Maintainers will want to use these tools, if they prove to be
> > > > > > useful. But ideally, we want the developers to use these tools
> > > > > > and fix the issues before they post code for review. That reduces
> > > > > > the maintainers workload even more. So Maintainers just need to
> > > > > > run the tools to prove that the developers have run the tools and
> > > > > > have already fixed the problems.
> > > > > >
> > > > > > So i'm not sure your goal is the correct long term goal. It
> > > > > > should be a tool for everybody, not just maintainers.
> > > > >
> > > > > This raises the interesting and important question of how to get
> > > > > patch submitters to follow a recommended workflow. We routinely get
> > > > > patches that produce checkpatch errors that are clearly not false
> > > > > positives. Rob Herring implemented a bot to run checks on device
> > > > > tree bindings and device tree sources because lots of patches fail
> > > > > those checks. I'm sure there are lots of other examples that have
> > > > > led maintainers to automate checks on the receiver's side, through
> > > > > various types of standard CIs or hand-made solutions. Submitters
> > > > > should run more tests, how to get them to do so is a broader
> > > > > question.
> > > >
> > > > Maybe it would be worthwhile to annotate patch submissions with tags
> > > > indicating what tools have been run on them.  I know we're trying to
> > > > avoid overuse of commit tags, but maybe we could automate this a bit,
> > > > and/or' reuse the 'Reviewed-by:' tag in the commit message.  I could
> > > > envision, in some future workflow utopia, where a missing 'Reviewed-
> > > > by: checkpatch.pl AND claude AI review' would be grounds for
> > > > requesting these before human review.
> > >
> > > Realistically, we can't even get some submitters to run checkpatch, so
> > > I don't think the additional tag would help. What does help is having
> > > the 0day bot take a feed of the mailing list, select the [PATCH] tag
> > > and run checkpatch.pl as part of the tests, so someone could do the
> > > same with whatever AI acceptance tests are agreed.
> >
> > There's no question that 0day automation of checkpatch.pl feedback
> > has been a great thing.  I suspect that more submitters would run
> > checkpatch before sending their patches, if failure to do so resulted
> > in automatic rejection of the patch.  This is more of a process backbone
> > issue than anything else.
> >
> > > Although the problem with AI acceptance testing is that these models
> > > and the inferencing required to run them doesn't come for free so
> > > someone is going to end up paying for all this AI ... unless we can get
> > > some cloud company to donate it, of course ...
> >
> > Indeed.  All the more reason to enforce it at the source.  It then becomes
> > a cost for the contributor instead of the upstream community, which is
> > going to scale better.
> 
> Forcing contributors to pay for access to proprietary tools is not
> acceptable. Forcing contributors to even run proprietary tools is not
> acceptable. If maintainers want contributions to go through any
> proprietary tooling before submission, then this has to run on the
> maintainer side (be it on a maintainer's machine, in some form of CI, or
> somewhere else).

I agree.
We don't even have the resolve to get contributors to run checkpatch.pl
(a freely available and imminently accessible tool).
I think it would be illustrative to figure out what the barriers are to that, or what a proper
incentive structure would be (and why we're missing it), before tackling the AI review issue.
Then we have to deal with the cost/proprietary tool issue for AI review.

There are open-source, locally runnable models out there.  They currently don't yield
results that are as good as the large proprietary models, but they'll get better over time.

I did say that this was in the context of a future vision of a utopian workflow.

What bugs me about the current discussion is the implication that we're willing to just
add more cost to maintainers or the workflow infrastructure, when the cost should
IMHO, be born by contributors.

> 
> You're right that cost would then be a problem. I can certainly imagine
> $popular_ai_company sponsoring this short term, until we're
> vendor-locked and they stop sponsorship. I don't think rushing in that
> direction is a good idea.
Good point about needing to avoid lockin.
 -- Tim


  parent reply	other threads:[~2025-10-09 14:48 UTC|newest]

Thread overview: 68+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-08 17:04 Chris Mason
2025-10-08 17:20 ` Konstantin Ryabitsev
2025-10-08 18:11   ` Sasha Levin
2025-10-08 18:35   ` Chris Mason
2025-10-08 17:57 ` Bart Van Assche
2025-10-08 18:04   ` Chris Mason
2025-10-08 18:14     ` Bart Van Assche
2025-10-08 18:42       ` Chris Mason
2025-10-08 21:08     ` Kees Cook
2025-10-09  1:37       ` Chris Mason
2025-10-08 18:33 ` Sasha Levin
2025-10-09  1:43   ` Chris Mason
2025-10-09 14:49     ` Paul E. McKenney
2025-10-08 19:08 ` Andrew Lunn
2025-10-08 19:28   ` Arnaldo Carvalho de Melo
2025-10-08 19:33     ` Laurent Pinchart
2025-10-08 19:39       ` Arnaldo Carvalho de Melo
2025-10-08 20:29         ` Andrew Lunn
2025-10-08 20:53           ` Mark Brown
2025-10-09  9:37         ` Laurent Pinchart
2025-10-09 12:48           ` Arnaldo Carvalho de Melo
2025-10-08 19:29   ` Laurent Pinchart
2025-10-08 19:50     ` Bird, Tim
2025-10-08 20:30       ` Sasha Levin
2025-10-09 12:32         ` Arnaldo Carvalho de Melo
2025-10-08 20:30       ` James Bottomley
2025-10-08 20:38         ` Bird, Tim
2025-10-08 22:21           ` Jiri Kosina
2025-10-09  9:14           ` Laurent Pinchart
2025-10-09 10:03             ` Chris Mason
2025-10-10  7:54               ` Laurent Pinchart
2025-10-10 11:40                 ` James Bottomley
2025-10-10 11:53                   ` Laurent Pinchart
2025-10-10 14:21                     ` Steven Rostedt
2025-10-10 14:35                   ` Bird, Tim
2025-10-09 14:30             ` Steven Rostedt
2025-10-09 14:51               ` Andrew Lunn
2025-10-09 15:05                 ` Steven Rostedt
2025-10-10  7:59                 ` Laurent Pinchart
2025-10-10 14:15                   ` Bird, Tim
2025-10-10 15:07                     ` Joe Perches
2025-10-10 16:01                       ` checkpatch encouragement improvements (was RE: [MAINTAINERS / KERNEL SUMMIT] AI patch review tools) Bird, Tim
2025-10-10 17:11                         ` Rob Herring
2025-10-10 17:33                           ` Arnaldo Carvalho de Melo
2025-10-10 19:21                           ` Joe Perches
2025-10-10 16:11                       ` [MAINTAINERS / KERNEL SUMMIT] AI patch review tools Steven Rostedt
2025-10-10 16:47                         ` Joe Perches
2025-10-10 17:42                           ` Steven Rostedt
2025-10-11 10:28                         ` Mark Brown
2025-10-09 16:31               ` Chris Mason
2025-10-09 17:19                 ` Arnaldo Carvalho de Melo
2025-10-09 17:24                   ` Arnaldo Carvalho de Melo
2025-10-09 17:31                     ` Alexei Starovoitov
2025-10-09 17:47                       ` Arnaldo Carvalho de Melo
2025-10-09 18:42                     ` Chris Mason
2025-10-09 18:56                       ` Linus Torvalds
2025-10-10 15:52                         ` Mauro Carvalho Chehab
2025-10-09 14:47             ` Bird, Tim [this message]
2025-10-09 15:11               ` Andrew Lunn
2025-10-09 17:58               ` Mark Brown
2025-10-09  1:15         ` Chris Mason
2025-10-08 20:37     ` Andrew Lunn
2025-10-09 12:40       ` Arnaldo Carvalho de Melo
2025-10-09 14:52 ` Paul E. McKenney
2025-10-10  3:08 ` Krzysztof Kozlowski
2025-10-10 14:12   ` Chris Mason
2025-10-31 16:51   ` Stephen Hemminger
2025-10-14  7:16 ` Dan Carpenter

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=MW5PR13MB56323B06E265F10136A1A2B2FDEEA@MW5PR13MB5632.namprd13.prod.outlook.com \
    --to=tim.bird@sony.com \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=andrew@lunn.ch \
    --cc=ast@kernel.org \
    --cc=clm@meta.com \
    --cc=dan.carpenter@linaro.org \
    --cc=ksummit@lists.linux.dev \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=robh@kernel.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