From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 F26EF3B6BF2 for ; Wed, 29 Apr 2026 09:03:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777453405; cv=none; b=hWp638EMG7MTHhiXRzsZQqGZHLJq7LU2a3LgObl8TjobSF5XC2u6qRjXSuzGghzWMqDcXwHG+IAApHTsU3VfXqCKfXGVbJSdZ6S4C5QLpS4jtJY6pmaq5JKtzo/qWYKtBuatxrxa5McTbYSZxY7vqN4K6chEcYlcz4W/dun6c4c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777453405; c=relaxed/simple; bh=/4o97OPtER8l7x0S6Lw3CZV78+td0Tb7950CqS2QpjY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=pUpo53exlECt7Np3f7ImNBk+Yd6swVt9DEaz6yMip+fSjvKWiYYa+wk17kcW0vJT8JKk6TLLxSONzCMKjJBC25FevCbs/ofaajZH3ECMQj5Rs1QJlpHZY4Ylo9z3BbOFxeKxQQ6j/UAYqzpLLQOgH3DfF/mDrWBG0qhRtWbb3qs= 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=IhMfS0EL; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=eb+/cDVb; arc=none smtp.client-ip=205.220.180.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="IhMfS0EL"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="eb+/cDVb" Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 63T8ppaC3752420 for ; Wed, 29 Apr 2026 09:03:23 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= j60wI/7DJPDXs0dSNvS8ZkxMZOvpfZ+OZ+03Vj5+YPA=; b=IhMfS0ELdpvtPraQ H57I2K5mSNI/IJuWA1/r3p7anS6FEcknLRrf35mKOs2h/JHWOlziFHCtr+gJxiBk S3isj3DUE0unpQpmwJw6ypjLpLKr9v7eDdKqSmVnib4HhHu3JR3XCp9SJgpz+c7u bTKC0bx8u35D7rt70KN5oxxk0LYCQknwettvUPE/R5GyZO/Ya2d1+I5/hXPJ8GRo CYebPBRQkCQahV49lHvcmRg6YThnHyPK2ytMGMUTwlTGAADEqNvXyUD55pRvejsk 0sR4rkX2DbbtZMnk7nacUoZWmY7YUJUGPllc9UR1v421wPgvdTB13wLt/wA0jnZC RKNd6w== Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4duch1gqm4-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 29 Apr 2026 09:03:22 +0000 (GMT) Received: by mail-qt1-f199.google.com with SMTP id d75a77b69052e-50fb98b09d3so29946581cf.2 for ; Wed, 29 Apr 2026 02:03:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1777453402; x=1778058202; 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=j60wI/7DJPDXs0dSNvS8ZkxMZOvpfZ+OZ+03Vj5+YPA=; b=eb+/cDVbf9WXw6R9lG9niGNdOTgG4AElv/dql+TyMqJI9cK+B3BdURVjmNlGVfKpdF 4vq41R1E9PdCtnq2Ve1UXjPgDlr3Ju9tXUGCWY6BIbFy6Z6wdLUu/oQ13ruIqvs+vhIM xqiAijSSyTCWSTxoVaM2uskou7/RJpCvmUqaxKycv0R9+iQVGEgOrLY61zpT0wL1uTPs r06+AXGX+dV4Ct+4R3raIMVE3mBckFEP/Q8QGyNx6ebaH9GgocR7wIPv27IsBF7ooI/D x6/sSTC4rNoPejWqhr6GFSqk4T1HZqnr8MCD4L1jQgYetzJgGh89eji/VDtu+wqOCHNh jtQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777453402; x=1778058202; 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=j60wI/7DJPDXs0dSNvS8ZkxMZOvpfZ+OZ+03Vj5+YPA=; b=QkFib15sc6s2sR4BrVBCfWuZK4BCdkGmLcy8hZ6i48/8bTGRz+h0+r2ZL3neI7R6pU IDyqbEyBGYEar2YBtpj7jyvlTV6qHSQSJCYc3a51as5zmX17YCEI0M0UbnpXEzezsTk1 IjZNIYnfk35NS4pI2D++SEHlQg4pjhMOpmTFi+g0AYL5OI0RYUANumPXRPlzyTyWjcBg K3GvGniRahLU1z+AIfRje7uZwBOcACGOAeTOVS+yO7DsDQOwYB2jKsFixaoxZg+vQuFj UCBbyEApNz6uua+Qw01MtqgJ8jFz2fvu53PUwbtWtlo0WORpQCJcVJM5XUPHuoAbAqr3 q6OA== X-Forwarded-Encrypted: i=1; AFNElJ/hjR57uOgT5ZQOn2voREI8YN2a53xuYmCqwZYo87Qpkkynso/2QL7rSigw//+jGWT88TYWYBHyN5RsH1U=@vger.kernel.org X-Gm-Message-State: AOJu0Yy6C0ClHCPe99qvOJ77yHSeU3f4CT+/tn1qihNjmnU/6SsAzaBi oZSkieTC8CupZ3DtDtw4SNARcxp5vM0YG2rLKGXByIkLK7bsEgocT1OU0Qj68wDiArRaiDQVgNv EIYvP7MrUNmbDkoPA+gL6GM9gDjHdz36VDhoC9JMpErMmEBrMum2f9dLdRB7dKov29/E= X-Gm-Gg: AeBDiet4XLDu4U6OB70Z7oz7rCID7fQmefnsU49evtH4j+CNeLCkAy/1ADjNfxihOVA /1CQ8TB8BpwmwneU+JRkGOKnSQ4C5JLu437WTi+8vQliG8UNqJnMI+uYfP1qjvokzznnw4eCOum Fno8HUxMC1JUJPUm1hU30edh2shILocr7wjelzQ1jPbMsfXoZWX713rKdPTFEKHEMznqXuSje8V 5e8WGKyiNmEu+BJNsahGMLGLq+MnvAAwZ62STer7ljlxI4Rg3H+SQBObkIKSQXikogxxwbeSDrA CgKkNsqNXwGyuBPojbg//Nk9FY1/X4HRRIPoHgRHAiIBI0CkiwXrqkryCd+qHYluaK7X4q1na41 SOjRhtaYuNtr5yYGIP465NSCFcMBaxQn+BisPE3dp3zIeCQ04DVizP/UFwbsvt3wkPgBdERBjry oaCq6knpIfH2vCdA== X-Received: by 2002:a05:620a:3186:b0:8d3:f6c2:5196 with SMTP id af79cd13be357-8f7b50c55f6mr676043885a.5.1777453401899; Wed, 29 Apr 2026 02:03:21 -0700 (PDT) X-Received: by 2002:a05:620a:3186:b0:8d3:f6c2:5196 with SMTP id af79cd13be357-8f7b50c55f6mr676040085a.5.1777453401336; Wed, 29 Apr 2026 02:03:21 -0700 (PDT) Received: from [192.168.119.254] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-67b22154d0dsm459716a12.14.2026.04.29.02.03.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Apr 2026 02:03:20 -0700 (PDT) Message-ID: <527a434e-5ac6-4a79-91e7-bf8bac4adb84@oss.qualcomm.com> Date: Wed, 29 Apr 2026 11:03:17 +0200 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 2/4] soc: qcom: Restrict drivers per ARM/ARM64 To: Krzysztof Kozlowski , Bjorn Andersson , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20260429-qcom-soc-kconfig-v1-0-69ba540b3fe9@oss.qualcomm.com> <20260429-qcom-soc-kconfig-v1-2-69ba540b3fe9@oss.qualcomm.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <20260429-qcom-soc-kconfig-v1-2-69ba540b3fe9@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Authority-Analysis: v=2.4 cv=arGCzyZV c=1 sm=1 tr=0 ts=69f1c95a cx=c_pps a=WeENfcodrlLV9YRTxbY/uA==:117 a=FpWmc02/iXfjRdCD7H54yg==:17 a=IkcTkHD0fZMA:10 a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=EUspDBNiAAAA:8 a=1FqbTYD1fgV-DNYpyMEA:9 a=QEXdDO2ut3YA:10 a=kacYvNCVWA4VmyqE58fU:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNDI5MDA5MCBTYWx0ZWRfXyMsEBDVtofUs 8gkRnCmSpovQ/ZZRIw8Q6IHtwQtFohzBBQPCCAec1IB52Cu+E8VD5fPIv4hEHtAP2M50MVGpWry ehz+YzZA3TiZiy4qDpDk6Mlfn2XfteQWIlfqqsgOMlsy4lHiLCfi86yWP2BBIxYOFwiWqAoPpwp YG/NZ4VrDhOKYYRQgd5nsXATBLH/Qnof7am3+8SamL6eOZQUj0ee+b3VFksHax64vOVJaIOMpT5 +Penk+zlsaDd1fzJutBX1yiPcYiJOPFDJNtpnaIe+0FAd3VizE4ZHN28ddeElBNLtsFdafvYL/Y eLmh9ggRexnW6ZKuIMPra5+TAxLolHeO7MGIWA/Jw2VXM8jZDpbGG1tO1A3CTPIa1hccUbBZR9D Aurg06dFO48TSsX8d9KWkNt4v98jbHfVaFMYfCtgSg5dSkoOvxB4D8xdIHxdxH5PFve13wf//+/ jKnoYLbQ4dvY6rUUIjw== X-Proofpoint-GUID: OMWR34Unu1d4B_7IFPCxuwKCwR6R6RQ3 X-Proofpoint-ORIG-GUID: OMWR34Unu1d4B_7IFPCxuwKCwR6R6RQ3 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-28_05,2026-04-28_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 bulkscore=0 clxscore=1015 adultscore=0 impostorscore=0 spamscore=0 suspectscore=0 priorityscore=1501 lowpriorityscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2604200000 definitions=main-2604290090 On 4/29/26 10:56 AM, Krzysztof Kozlowski wrote: > There is no point to allow selecting core SoC drivers for Qualcomm ARMv7 > SoCs when building ARM64 kernel, and vice versa. > > This makes kernel configuration more difficult as many do not remember > the Qualcomm SoCs model names/numbers and their properties like > architecture. No features should be lost because: > 1. There won't be a single image for ARMv7 and ARMv8/9 SoCs. > 2. Newer ARMv8/9 SoCs won't be running in arm32 emulation mode. > > Signed-off-by: Krzysztof Kozlowski > --- [...] > drivers/soc/qcom/Kconfig | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig > index 62ce1c67d684..9a050ba1dbcb 100644 > --- a/drivers/soc/qcom/Kconfig > +++ b/drivers/soc/qcom/Kconfig > @@ -19,6 +19,7 @@ config QCOM_AOSS_QMP > tristate "Qualcomm AOSS Driver" > depends on MAILBOX > depends on COMMON_CLK && PM > + depends on ARM64 || COMPILE_TEST SDX65 > select PM_GENERIC_DOMAINS > help > This driver provides the means of communicating with and controlling > @@ -37,6 +38,7 @@ config QCOM_COMMAND_DB > > config QCOM_GENI_SE > tristate "QCOM GENI Serial Engine Driver" > + depends on ARM64 || COMPILE_TEST OK > help > This driver is used to manage Generic Interface (GENI) firmware based > Qualcomm Technologies, Inc. Universal Peripheral (QUP) Wrapper. This > @@ -45,6 +47,7 @@ config QCOM_GENI_SE > > config QCOM_GSBI > tristate "QCOM General Serial Bus Interface" > + depends on ARM || COMPILE_TEST OK > select MFD_SYSCON > help > Say y here to enable GSBI support. The GSBI provides control > @@ -53,6 +56,7 @@ config QCOM_GSBI > > config QCOM_LLCC > tristate "Qualcomm Technologies, Inc. LLCC driver" > + depends on ARM64 || COMPILE_TEST SDX65 > select REGMAP_MMIO > help > Qualcomm Technologies, Inc. platform specific > @@ -108,6 +112,7 @@ config QCOM_PMIC_GLINK > depends on DRM > depends on NET > depends on OF > + depends on ARM64 || COMPILE_TEST Probably OK? > select AUXILIARY_BUS > select QCOM_PDR_HELPERS > select DRM_AUX_HPD_BRIDGE > @@ -242,6 +247,7 @@ config QCOM_APR > tristate "Qualcomm APR/GPR Bus (Asynchronous/Generic Packet Router)" > depends on RPMSG > depends on NET > + depends on ARM64 || COMPILE_TEST This I think goes back to <2012 SoCs > select QCOM_PDR_HELPERS > help > Enable APR IPC protocol support between > @@ -251,6 +257,7 @@ config QCOM_APR > > config QCOM_ICC_BWMON > tristate "QCOM Interconnect Bandwidth Monitor driver" > + depends on ARM64 || COMPILE_TEST This is OK currently, some arm32 targets have an older (unsupported today) BWMON, I don't know if they would be using the same driver or not > select PM_OPP > select REGMAP_MMIO > help > @@ -265,6 +272,7 @@ config QCOM_ICC_BWMON > > config QCOM_PBS > tristate "PBS trigger support for Qualcomm Technologies, Inc. PMICS" > + depends on ARM64 || COMPILE_TEST MSM8909+PM660 exists and makes use of that Konrad