mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Christoph Hellwig <hch@infradead.org>,
	linux-kernel@vger.kernel.org, iommu@lists.linux.dev,
	Petr Tesarik <petr.tesarik.ext@huawei.com>,
	Yajun Deng <yajun.deng@linux.dev>
Subject: Re: [GIT PULL] dma-mapping updates for Linux 6.6
Date: Tue, 29 Aug 2023 23:33:47 -0700	[thread overview]
Message-ID: <ZO7iy/Ei+wZK0I/d@infradead.org> (raw)
In-Reply-To: <CAHk-=wik9Df4Si7aYOqgyhf=io2OaP=7Yur-xpbNe6oHuxSFAg@mail.gmail.com>

On Tue, Aug 29, 2023 at 08:54:43PM -0700, Linus Torvalds wrote:
> > Yajun Deng (2):
> >       dma-contiguous: support per-numa CMA for all architectures
> 
> What?
> 
> This commit seems entirely bogus and is actively misleading.
> 
> It claims to enable support for per-numa CMA for all architectures.
> 
> It does no such thing.

It actually does..

> All it does is to change the default value for a config option. It was
> perfectly available before, now it is - incorrectly - made 'default y'
> in case the config supports NUME at all.

It also changes the default, and maybe that shouldn't have been,
but that's not the meat of the change.  The big part of the change
is that the logic to actually reserve the per-node CMA area is now
called from common code instead of arm64 code.  Before you could have
enable the option, but it wouldn't have worked at all.

> 
> There seems to be no real reason to change the default value of this
> config option. The commit message most definitely doesn't argue for
> it, since it talks about something entirely different than what the
> code changes does.
> 
> I have taken this, but I protest these kinds of nonsensical changes.
> That commit is actively misleading and confused, and I think the
> default value for that config option should just be 'n' on all
> architectures.
> 
> Why is this option so important that it should be enabled just because
> some minimal NUMA support might be enabled?
> 
> Please don't add these kinds of hidden "default y" by making them
> default on some much more common option instead.

I think everyone including the maintainer was confused when the initial
arm64 only version was merged by adding the default, it should have
been a depends to start with.  So we'll change this to a depends in a
follow up.


  reply	other threads:[~2023-08-30 18:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-29 15:22 Christoph Hellwig
2023-08-30  3:54 ` Linus Torvalds
2023-08-30  6:33   ` Christoph Hellwig [this message]
2023-08-30 15:16     ` Linus Torvalds
2023-08-30  3:58 ` pr-tracker-bot

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=ZO7iy/Ei+wZK0I/d@infradead.org \
    --to=hch@infradead.org \
    --cc=iommu@lists.linux.dev \
    --cc=linux-kernel@vger.kernel.org \
    --cc=petr.tesarik.ext@huawei.com \
    --cc=torvalds@linux-foundation.org \
    --cc=yajun.deng@linux.dev \
    /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

all inboxes | Powered by JetHome®