From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C0EA72BE033 for ; Mon, 20 Apr 2026 05:40:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776663638; cv=none; b=kviZdUtGFTiYWvba7mhv/C5u4/r4az4adxRA7CYSfxsIjKydJIq4g7v6RdUnVon9VOKVl5dt4HMesrQMy4WcNKIspzdCaYptsj6w6yf0lCLHCN9jloxV4Ww0bfBeLeHEqSFIlYJqEFijSMpQQj+M5zHHSe1TDX8eubUVAMVS7Ek= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776663638; c=relaxed/simple; bh=myqd4ojhJldM6vUnZJ0gN4tBCWq6MlTbFgeeAUEu2h0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=dhu/yGO1U2ioNMJEojH39bC87HroFJ1rPX9hXQHWKsFNsA1b4Uo2cW0saFmkYT9e4jjQtM9eCNDBFlo51a/Lp7gj5VN8jxrHnT6yt7EsJEAuVPOr5GFIyLfsLzXUGfsB1EEeaYf5DJXmdciqYmqk07OrJ9rkZiq6m7DDdFSXSM8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=A7/ppPPU; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=XIKJ12v8; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="A7/ppPPU"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="XIKJ12v8" Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 63K57Rir3842300 for ; Mon, 20 Apr 2026 05:40:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= cbyOwZQpyGaGhAm+nYK3pftZzkh3JFFDft7u+D4WIq0=; b=A7/ppPPUxlxoQKsa x25X6x9GUgim7xSYg6NmWnXIh5GmhrYhxqSXQXvPXXIpYhDjL1B2/PKSZKN5i5pZ M2SPhM0YvCKTaChAWa1U+PmdI+GoYDZpdKjH3AE7CiiMu0t2EhgSmtuzQdka+Ytf LusixHdhq3BZS9WWXyyWdHy74mVTR/wRtBjuNPGx5SRbV9KJ8jRM0UxS4UzKh/xY 8PJcM5pwQNxdt6oOYrcY0hMPN4a4sVV82iZQLMZ/aMBah7dbt9sXS964ftMpjSaF i933exK8WkBXIouI9e16hxSL+GC/LA9gyQocrGJtjDMjFit2H1AUo+wtsh2sbjlo jnfDOA== Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4dm34hc475-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 20 Apr 2026 05:40:36 +0000 (GMT) Received: by mail-pl1-f197.google.com with SMTP id d9443c01a7336-2b2e8ff14e5so20530595ad.3 for ; Sun, 19 Apr 2026 22:40:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1776663635; x=1777268435; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=cbyOwZQpyGaGhAm+nYK3pftZzkh3JFFDft7u+D4WIq0=; b=XIKJ12v8o/MIxlAK307wJyR4bQobwcOK4+tpoFkAv6tPBhxOIXeRi4AjhFFnKc29LL o1dEBQS5t9Rw7fxxCY4nUn1NqvNeVU619/RsyD4gMlomSGwowLTy7bNs9QX4N+4EBAXT AvJDujsnQVqBAu5lmQ+Ck4O7K2I6o7QT/+CSEUkYLKVQqb9iNsnwPb+QUZf+B3zUpeaY dmlXM7w2QmleysMT82C+twEKJt5nD05HeD5GzGOHXodHXV460tD+BnatPcwUxmHteJ49 CBsZXRYeVgOina+EvkFnEGxTFTrH4P2QF7zu+pjQ3VaFuCS8dzyTyMsGT2abtgst9IbS vYZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776663635; x=1777268435; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cbyOwZQpyGaGhAm+nYK3pftZzkh3JFFDft7u+D4WIq0=; b=eLQmyIqzpU7zyW7q2FU3OCrtwkxrscLp5t3izKQkaKkjYFW3UlxsVB6gipmGGovjL0 uvyj9p7BxmdpsL72MdtOU4h7T0vrlaCYhsqE1jjjpzjUSizBfyRVF8vgAG9gSIFkyNzK GgEQIYvjwMOJ9kkdtXIOjNq2Fy1XbcBQyhXuCOX843a6Cm4nz6sXOOWG71A59rVVEQOV gwxVHQ+wYhjHMRCukr5xtuMy1DpFDZNTGjLGqq1Y9Mcy3SGnJAgx37ptRPU5FoKRdNbz gnY0K43WJzVdhXXsUujB3oV7sL3Jf6TJyX+XdbfSoHAUUnQKzydktkcFtoLjPpT+B1h8 /GBA== X-Forwarded-Encrypted: i=1; AFNElJ8mUBcTeYuzTk2pDIMO+qNcJqF8xt7vsEiaI6kaNTrN5LOctfeL6PUYQSIFvqjaYK6M5EBVHEcVpgJPTJE=@vger.kernel.org X-Gm-Message-State: AOJu0Yw9ugYxvi//BsVxfaOtGKe1hIZ1DuCVgoiP0qbthscwAqpNp32g I+MOSvSmYuoOv8CblN1GAIbZZPY9BR0Zz+zAyryuJjW6JYLKZyMJsQIw4XmySheaFbniPvS8C63 z3gaVrTPWTfvgU20ECNMXQUA4Ofc5LnhAYaJ9KsZOLaBh5Guy05vBCC8SnjhPIWN1BNrubr3moQ s= X-Gm-Gg: AeBDieuTO985MceJh0jQ4O4yQJBMmBVrdSTxf8y7pOIGEQIUPy5iArN4wrw9xUPWu8Y dqp4Kun+9qKE4Pyr1yMNnuVmsjqhx69mPH3AYb/t/gVOGl48WaKOUPT2eJjV6h8L0fkjD8QmGzo uJH2j/6TaQDt8ocLzE4kDBYBAbRWcEmfgAzitHlIyrN7PL/hegpS1qalkYq+auMkziVM09UjODU iAIQch5YpiTUnTAVWNddOxWnc+75iE5uR7pkTXI4eEX7QRN2iXHKIJ/zd2zLkhN/HMRgXdwBs0M fjy90KOwwM13qTKzMiOHLDkD0Fo06teLGPNyI/bBJV0IOXKmsW17/ohAg5/4nfPtVwwnSppkwuv pDkSGUamnIZJBSfOXVoSxJLufD57CGJOvSekBSLOAvXpF8RWCeL19qWR5V2jvpdo= X-Received: by 2002:a17:903:b8f:b0:2b0:7225:d2c0 with SMTP id d9443c01a7336-2b5f9fb9d4cmr121746755ad.30.1776663634273; Sun, 19 Apr 2026 22:40:34 -0700 (PDT) X-Received: by 2002:a17:903:b8f:b0:2b0:7225:d2c0 with SMTP id d9443c01a7336-2b5f9fb9d4cmr121746485ad.30.1776663633739; Sun, 19 Apr 2026 22:40:33 -0700 (PDT) Received: from [10.218.21.127] ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2b5fab0caa9sm89101635ad.40.2026.04.19.22.40.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 19 Apr 2026 22:40:33 -0700 (PDT) Message-ID: <21664acb-8fbf-4fa9-a674-982c98992df8@oss.qualcomm.com> Date: Mon, 20 Apr 2026 11:10:28 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] arm64: defconfig: Enable Qualcomm UFS and QMP UFS PHY drivers as built-in To: Dmitry Baryshkov , Shawn Guo Cc: Krzysztof Kozlowski , Bjorn Andersson , Konrad Dybcio , Krzysztof Kozlowski , Dmitry Baryshkov , Arnd Bergmann , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20260417035509.1021860-1-shengchao.guo@oss.qualcomm.com> <898874b3-fb73-4a46-b440-6ea3377c2f2d@kernel.org> Content-Language: en-US From: Kuldeep Singh In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Authority-Analysis: v=2.4 cv=J46aKgnS c=1 sm=1 tr=0 ts=69e5bc54 cx=c_pps a=cmESyDAEBpBGqyK7t0alAg==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=P-IC7800AAAA:8 a=SBhvAfEEOFW5FiPrgcgA:9 a=QEXdDO2ut3YA:10 a=1OuFwYUASf3TG4hYMiVC:22 a=d3PnA9EDa4IxuAV0gXij:22 X-Proofpoint-GUID: LRW_3QkL6qXsu-25rY0nxDtRPq1KeEA_ X-Proofpoint-ORIG-GUID: LRW_3QkL6qXsu-25rY0nxDtRPq1KeEA_ X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNDIwMDA1MiBTYWx0ZWRfX8fr7zvB3+RMp fE7poSHQR1gKzGgtIctZXWVan+OLOL8/cl0R4upN4tx5cUscBUMYi9dYCcqpJyw18xCWiA/aKo6 QTVx3mB6VxiW4ifX/88e3npgUuVCWlCU8W5fVY4irv06q2fpMUD8c1OIeMoq6RmxfKflw/TzY8r ek4BknnPlKtNqVvqaUbLcS1YNDi2c+5+5wLGLXRkACC13Rbt2azV6nnNOoovInaME2lQL+oYHX0 JJj87pCU4JaXGqFzuTP8MOiMon7ohxCqeljt9pZlGP1itPNxj652sdgi01tyltVfCRnv2rm34u9 uEmXGNhtcevJsNDZYF88RRzl0xO7+Hg/Y9DaP16ydzjNIcV/D2NsLWAMKJSqvXeP9LIDgbxDQ7K Z4KczZaTi7UMwANJKp8DJOd3Cez7ZcI09RrpZkEZffy4AcpPKapiKH94P3t8OQpyYTQZH2eX75r CuKz6lisMD+1+YhOOsg== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-04-20_01,2026-04-17_04,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 adultscore=0 phishscore=0 suspectscore=0 spamscore=0 malwarescore=0 priorityscore=1501 clxscore=1015 bulkscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2604070000 definitions=main-2604200052 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