public inbox for linux-arm-msm@vger.kernel.org
 help / color / mirror / Atom feed
From: Kuldeep Singh <kuldeep.singh@oss.qualcomm.com>
To: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>,
	Shawn Guo <shengchao.guo@oss.qualcomm.com>
Cc: Krzysztof Kozlowski <krzk@kernel.org>,
	Bjorn Andersson <andersson@kernel.org>,
	Konrad Dybcio <konradybcio@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Dmitry Baryshkov <lumag@kernel.org>,
	Arnd Bergmann <arnd@arndb.de>,
	linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] arm64: defconfig: Enable Qualcomm UFS and QMP UFS PHY drivers as built-in
Date: Mon, 20 Apr 2026 11:10:28 +0530	[thread overview]
Message-ID: <21664acb-8fbf-4fa9-a674-982c98992df8@oss.qualcomm.com> (raw)
In-Reply-To: <dvwh2fwi6xzskicjtr6e7ldzsgf7fsptep4t6p5qzzf274jorc@zo7hl565tu2y>



On 18-04-2026 04:29, Dmitry Baryshkov wrote:
> On Fri, Apr 17, 2026 at 06:37:06PM +0800, Shawn Guo wrote:
>> On Fri, Apr 17, 2026 at 10:44:20AM +0200, Krzysztof Kozlowski wrote:
>>> On 17/04/2026 10:37, Shawn Guo wrote:
>>>> On Fri, Apr 17, 2026 at 10:14:23AM +0200, Krzysztof Kozlowski wrote:
>>>>> On 17/04/2026 05:55, Shawn Guo wrote:
>>>>>> UFS is the primary storage for Linux rootfs across the breadth of
>>>>>> Qualcomm development boards - Mobile, Automotive and IoT.  With
>>>>>> Qualcomm UFS host controller driver (SCSI_UFS_QCOM) and the UFS PHY
>>>>>> driver (PHY_QCOM_QMP_UFS) as modules, developers need an initramfs
>>>>>
>>>>> Yes, you always need initramfs and every developer has it.
>>>>>
>>>>>> to boot from UFS, which adds friction to daily development workflows.
>>>>>
>>>>> No friction, it's both standard, easy and all of Qualcomm and Linaro
>>>>> developers have it solved long time ago.
>>>>
>>>> I'm looking at a kernel regression by running git bisect, where kernel
>>>> version string varies for every single boot.  How do you usually deal
>>>> with it by using initramfs?
>>>
>>> No difference from every other build and boot? I build kernel and the
>>> same step I have initramfs with modules. Whether I bisect or build
>>> kernel for normal boot is exactly the same.
>>>
>>> The only difference is `git bisect good`.
>>
>> So we have to rebuild initramfs for every single bisect.  But isn't
>> built-in make it easier and faster for the whole bisect process?
> 
> No. Insted you package modules as a separate .cpio.gz archive,
> concatenate it with the initramfs and boot the kernel.
> 
>> It's especially useful for tasks where we do not even need to make modules,
>> like debugging built-in drivers.
>>
>>>> If using initramfs is standard and easy, I wonder why Qualcomm QLI
>>>> (meta-qcom) kernel has UFS drivers as built-in.
>>>
>>> This I don't know. Distros do various things, but of course there might
>>> be an argument I do not know (e.g. like it was why distros do not make
>>> IPV6 a module).
>>
>> We can consult internally, but saving use of initramfs could be part of
>> it, I would guess.
> 
> Having the meta-qcom hat on:
> - If we know that the kernel is going to be used on Qualcomm hardware,
>    it makese sense to enable necessary drivers as built-in to save time,
>    boot time and to ease overall integration.
> 
> - Having the general defconfig, it doesn't make sense to make users of
>    all other platforms suffer and loose their memory by having
>    Qualcomm-specific drivers loaded, if that's not an absolute
>    requirement.
> 

Then it makes sense to make CONFIG_MSM_SDHCI or 
CONFIG_MSM_SDHCI_MSM(qcom specific config) as module too?
https://elixir.bootlin.com/linux/v7.0/source/arch/arm64/configs/defconfig#L1279

Not sure why it's enabled as builtin for all vendors.

-- 
Regards
Kuldeep


  reply	other threads:[~2026-04-20  5:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-17  3:55 [PATCH] arm64: defconfig: Enable Qualcomm UFS and QMP UFS PHY drivers as built-in Shawn Guo
2026-04-17  8:14 ` Krzysztof Kozlowski
2026-04-17  8:37   ` Shawn Guo
2026-04-17  8:44     ` Krzysztof Kozlowski
2026-04-17 10:37       ` Shawn Guo
2026-04-17 12:57         ` Krzysztof Kozlowski
2026-04-17 22:59         ` Dmitry Baryshkov
2026-04-20  5:40           ` Kuldeep Singh [this message]
2026-04-20  6:28             ` Shawn Guo

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=21664acb-8fbf-4fa9-a674-982c98992df8@oss.qualcomm.com \
    --to=kuldeep.singh@oss.qualcomm.com \
    --cc=andersson@kernel.org \
    --cc=arnd@arndb.de \
    --cc=dmitry.baryshkov@oss.qualcomm.com \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=krzk@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lumag@kernel.org \
    --cc=shengchao.guo@oss.qualcomm.com \
    /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