DMA Engine development
 help / color / mirror / Atom feed
From: Robin Murphy <robin.murphy@arm.com>
To: Sven Peter <sven@kernel.org>
Cc: asahi@lists.linux.dev, "Stephen Boyd" <sboyd@kernel.org>,
	"Alyssa Rosenzweig" <alyssa@rosenzweig.io>,
	"Janne Grunau" <j@jannau.net>,
	linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org,
	"Srinivas Kandagatla" <srini@kernel.org>,
	linux-kernel@vger.kernel.org,
	"Viresh Kumar" <viresh.kumar@linaro.org>,
	"Neal Gompa" <neal@gompa.dev>,
	linux-clk@vger.kernel.org, "Arnd Bergmann" <arnd@arndb.de>,
	linux-i2c@vger.kernel.org, "Takashi Iwai" <tiwai@suse.com>,
	"Liam Girdwood" <lgirdwood@gmail.com>,
	"Martin Povišer" <povik+lin@cutebit.org>,
	"Joerg Roedel" <joro@8bytes.org>,
	"Rafael J. Wysocki" <rafael@kernel.org>,
	"Jaroslav Kysela" <perex@perex.cz>,
	"Mark Brown" <broonie@kernel.org>,
	iommu@lists.linux.dev, linux-input@vger.kernel.org,
	dmaengine@vger.kernel.org, linux-sound@vger.kernel.org,
	"Vinod Koul" <vkoul@kernel.org>,
	"Dmitry Torokhov" <dmitry.torokhov@gmail.com>,
	"Ulf Hansson" <ulf.hansson@linaro.org>,
	"Michael Turquette" <mturquette@baylibre.com>,
	"Andi Shyti" <andi.shyti@kernel.org>,
	"Will Deacon" <will@kernel.org>
Subject: Re: [PATCH 11/11] arm64: defconfig: Enable Apple Silicon drivers
Date: Mon, 23 Jun 2025 12:33:03 +0100	[thread overview]
Message-ID: <9f80f7c4-01a3-4a03-94dc-2a19136707f8@arm.com> (raw)
In-Reply-To: <d5a616f3-67a3-4504-904e-6cec503ab157@kernel.org>

On 2025-06-21 5:01 pm, Sven Peter wrote:
> On 13.06.25 18:50, Robin Murphy wrote:
>> On 2025-06-12 10:11 pm, Sven Peter wrote:
>>> Enable drivers for hardware present on Apple Silicon machines.
>>> The power domain and interrupt driver should be built-it since these are
>>> critical for the system to boot, the rest can be build as modules.
>>
>> Nit: I'd be tempted to put this patch first, just in case anyone 
>> bisecting with "make defconfig" in their process lands in the middle 
>> and suddenly loses some drivers (although arguably them going from 
>> "=y" to "=m" could still be a surprise, but at least a bit less so).
> 
> Ah, that's a good point that I hadn't even thought about.
> Now that most of these have already been merged into different trees 
> that ship has sailed though.

Yeah, like I say it's only minor and rather contrived anyway. Not a big 
worry.

>> [...]
>>> @@ -1504,6 +1520,7 @@ CONFIG_ARCH_TEGRA_194_SOC=y
>>>   CONFIG_ARCH_TEGRA_234_SOC=y
>>>   CONFIG_TI_PRUSS=m
>>>   CONFIG_OWL_PM_DOMAINS=y
>>> +CONFIG_APPLE_PMGR_PWRSTATE=y
>>
>> If this is critical for any Apple platform to work then it would 
>> probably make sense to explicitly select it from ARCH_APPLE, as is 
>> done for APPLE_AIC...
> 
> 
> Documentation/kbuild/kconfig-language.rst:
> 
>    select should be used with care. select will force a symbol to a value
>    without visiting the dependencies. By abusing select you are able to
>    select a symbol FOO even if FOO depends on BAR that is not set. In
>    general use select only for non-visible symbols (no prompts anywhere)
>    and for symbols with no dependencies. That will limit the usefulness
>    but on the other hand avoid the illegal configurations all over.
> 
> 
> That's probably fine for APPLE_AIC which only depends on ARM64 (and 
> ARCH_APPLE) which is guaranteed to be set when ARCH_APPLE is set anyway.
> APPLE_PMGR_PWRSTATE also has an additional dependency on PM so it should 
> probably remain in defconfig and not use select.

Sorry if the implication wasn't clear, but I did mean "select it" in the 
sense of "select it and all of its necessary dependencies in a manner 
that works correctly". The same argument applies all the way down - if a 
!PM config will not be able to boot on ARCH_APPLE platforms due to 
forcibly deselecting APPLE_PMGR_PWRSTATE, then there is little point in 
permitting that combination. Which of course the user would already have 
to disable at least ARCH_MXC, ARCH_ROCKCHIP, ARCH_TEGRA and 
ARCH_VEXPRESS to achieve in the first place ;)

Thanks,
Robin.

  reply	other threads:[~2025-06-23 11:33 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-12 21:11 [PATCH 00/11] Drop default ARCH_APPLE from Kconfig and use defconfig instead Sven Peter
2025-06-12 21:11 ` [PATCH 01/11] pmdomain: apple: Drop default ARCH_APPLE in Kconfig Sven Peter
2025-06-18 12:56   ` Ulf Hansson
2025-06-12 21:11 ` [PATCH 02/11] soc: " Sven Peter
2025-06-12 21:11 ` [PATCH 03/11] clk: apple-nco: " Sven Peter
2025-06-19 19:51   ` Stephen Boyd
2025-06-12 21:11 ` [PATCH 04/11] nvmem: apple: drop " Sven Peter
2025-06-12 21:11 ` [PATCH 05/11] i2c: apple: Drop " Sven Peter
2025-08-03 20:40   ` Wolfram Sang
2025-06-12 21:11 ` [PATCH 06/11] cpufreq: apple: drop " Sven Peter
2025-06-19  5:35   ` Viresh Kumar
2025-06-12 21:11 ` [PATCH 07/11] iommu/apple-dart: Drop " Sven Peter
2025-06-13 16:55   ` Robin Murphy
2025-06-27  7:00   ` Joerg Roedel
2025-06-12 21:11 ` [PATCH 08/11] Input: apple_z2: " Sven Peter
2025-06-17 22:18   ` Dmitry Torokhov
2025-06-12 21:11 ` [PATCH 09/11] dmaengine: apple-admac: " Sven Peter
2025-06-12 21:11 ` [PATCH 10/11] ASoC: apple: mca: " Sven Peter
2025-06-12 21:11 ` [PATCH 11/11] arm64: defconfig: Enable Apple Silicon drivers Sven Peter
2025-06-13 15:44   ` Nick Chan
2025-06-13 16:50   ` Robin Murphy
2025-06-21 16:01     ` Sven Peter
2025-06-23 11:33       ` Robin Murphy [this message]
2025-06-13  7:34 ` [PATCH 00/11] Drop default ARCH_APPLE from Kconfig and use defconfig instead Janne Grunau
2025-06-14 11:12 ` (subset) " Mark Brown
2025-06-17 17:29 ` Vinod Koul
2025-06-22  9:13 ` Sven Peter
2025-06-27 10:49 ` Srinivas Kandagatla

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=9f80f7c4-01a3-4a03-94dc-2a19136707f8@arm.com \
    --to=robin.murphy@arm.com \
    --cc=alyssa@rosenzweig.io \
    --cc=andi.shyti@kernel.org \
    --cc=arnd@arndb.de \
    --cc=asahi@lists.linux.dev \
    --cc=broonie@kernel.org \
    --cc=dmaengine@vger.kernel.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=iommu@lists.linux.dev \
    --cc=j@jannau.net \
    --cc=joro@8bytes.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=neal@gompa.dev \
    --cc=perex@perex.cz \
    --cc=povik+lin@cutebit.org \
    --cc=rafael@kernel.org \
    --cc=sboyd@kernel.org \
    --cc=srini@kernel.org \
    --cc=sven@kernel.org \
    --cc=tiwai@suse.com \
    --cc=ulf.hansson@linaro.org \
    --cc=viresh.kumar@linaro.org \
    --cc=vkoul@kernel.org \
    --cc=will@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