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 B865D3002C8 for ; Sun, 18 Jan 2026 18:15:50 +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=1768760153; cv=none; b=Q5I8nnRbR4IjUz2dXRbTZND24MTQUEeidqBuak931J58Xa87+7cvegsYLg+YNv66qDfneThRAQdgjKo83euGpI9qNFvpgSeMtRgNbJxIVA+zYx5w0WCxEIyL8dqi1P9i1LdCiFrJJiiX47tbMrbxd7rnjl9JUKmVoH3MSbg3DkA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768760153; c=relaxed/simple; bh=UW2l/WUr1NmzI+w1eSgyTfUJnjMSLtC7p97KslUWzes=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Oj5MJqqDcC5yyKGZ7Z1VixN4cX7Xg+j5ltMfFAH22ndoRW9fnOLGzDTXePqZ+w3PF2jCtxp/GkVT3sh37tucxQOjSk4EpcaiYrf1itFYul9fLzej5Y3S784NfJhxlYKzaz16V4cCHvQwFnzPkoEVqmNCSxgrk/xXkMQVg+MgZ6c= 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=gN5M+4PI; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=Qfpv0rZk; 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="gN5M+4PI"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="Qfpv0rZk" 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 60IEeNwI601279 for ; Sun, 18 Jan 2026 18:15:49 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= BIYjedIc7ra2IDxpaysdB+w8GNBqgMvh/OYIdrZUj1Q=; b=gN5M+4PIBjck/DU/ yBUyi7dJj7UYTmRZmgE8bQk8U4CCoW+Xlj0/4lARFFd6D5iRWnlT93IApoda541r 2fMrMSG1DHkvWaCBVple1uhpKlIUt+U0nr6piNoGr4LS3Sc1DNiKQZ4zgLpB2vRT xpCPwPGxFQ6t0VMqcorbmOkD/vIxEDBQEC3JevEpBt9KcVoc63BYvRlpbT2iufk2 qd+iRGE+5WHX+Qf2l7SZyYJUC5gJE15zq37iaZgIS2dqMUdt8KG+9TfEdPYdokrC 67vP43C2mST2b0OYg7KT0zAqO5vhKUdkfJaSY2+y62dyMQH+7hxABablC12hGYds qsJKvw== Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4br3kh2mkj-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sun, 18 Jan 2026 18:15:48 +0000 (GMT) Received: by mail-pl1-f200.google.com with SMTP id d9443c01a7336-2a089575ab3so30604235ad.0 for ; Sun, 18 Jan 2026 10:15:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1768760148; x=1769364948; 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=BIYjedIc7ra2IDxpaysdB+w8GNBqgMvh/OYIdrZUj1Q=; b=Qfpv0rZkvIntSVkIilKcEuGjqPACdcP86Zj2Jiiihqgqhg7y2gMm/7gYEbgdyvn4Pb Yq0Dfpz0bYkBedU8XcL/tiKpwB49lbcUWnH7PTXSmRkF9fho41t7zc2s44SiwFzr4doi i1Ewn6U5ZG8R2cAM+CqrwqfBgiWrv0BBmekS9T5EbZeLBvVa8MqbDo+om+FShQZjXJSj v9DHDTqhBNZA0QFr2w4f8pnKBiBrMw0O/4JY73nIkZwhMpSykczm4uwoF1YOgYi0M/eD ogVh11wKHgIpg7ivyFJCXXOcjyaooKoyyGveuBxW6vtubu2BNFrvCJVyO49LjpYgZatv Un7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768760148; x=1769364948; 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=BIYjedIc7ra2IDxpaysdB+w8GNBqgMvh/OYIdrZUj1Q=; b=UwGNEMLQr4rvr0yIB4S13XvWWie7CtanRQ1iC6HiNIOVtdAsIPDNpMUZVeEjJvkyBd 4CsJBduAOYr/3uyVYu55x5utAEziLqWvWeKrEEnV3KZ4reHKpDbmn90whU/3uLvg7XCU 8WN44HWa35m19yLfPd9VmmdV1KsGIkQQ1Mwb/uPOgjZZxif8ODvlp7HLHLKLdAPfX4Df kyfD8u2m6mOPk9HwNuEbSGZN8/WucFRNWNdEn/EzKwrRuvQ3BByeQVc0CjWRCA1O+/PG 3jJHYvkUUv6tRCnyMhUxW1OZuIPmy+dUJcbSG56um/K7/kE3x+iE6YG1qsDvrFdNPNSr ZhQQ== X-Forwarded-Encrypted: i=1; AJvYcCW6YJNRWoXhcn2XFILOXCviX5te2lOMAgCLElYzN9XWrMyK0m6fjrTcb2aFBbdVu/bT38YPbe4akNugw5I=@vger.kernel.org X-Gm-Message-State: AOJu0YwZ2RH8LbrcGyvWXu9MxCxQJz4hajQo2IRlKaDpya8dNVlgLa/h UK7aoYFf7NMSEOvh6dQnb7dtqnB/r4LxENJAStdxJSpe1Rvg8go7WXJ9Zcr9ck/3Y07DzLqnj5L ETSTz3Ai0ajisAGq8NPYYdL8J4t9Hw9/vdmaLOaCJIo8NZ5tLeVQ6nak3s6VCrYo4OGw= X-Gm-Gg: AY/fxX6OvFMeMBfw7LlKsQSHKVRvUJkO+Hz2xwJCrIYQyXCGE0vfd4OKaNarlzzl78n Oc7iJ4WEWurYJ44vP1YEFaX+yEzyp/CQUBCRvUMCLo2krYhDQxQV7QIxNN6d240J6tEkPZw8iqR JpiZlCGXV9J5+1hgySUiKKK1cqxOARBRqaNC9Z7uxUQnvkIyXAp7HtgtHXQxkP4zvYi2ZQiQM/L jYpBeJNcQr7lmSkkndKeF3Mc76kKXN17k0kZNVGVy2Sx5j0T7TPV4Sp8SdxB5YYPqJxP+Tm5uMR bCS+s3pOw9kVKFP8SY+aPyBpz3vVNiMHYHfPxpRedyMI3ah8Mb9+kmEugeQ1VxOU/gLTb0GhuuJ spAPsr/rjwrVjn5aSc0D3MixUdm/JQRSWqxHVaQGtmEiXiao= X-Received: by 2002:a17:902:f64c:b0:2a0:9028:11af with SMTP id d9443c01a7336-2a7177d9887mr111233585ad.59.1768760148214; Sun, 18 Jan 2026 10:15:48 -0800 (PST) X-Received: by 2002:a17:902:f64c:b0:2a0:9028:11af with SMTP id d9443c01a7336-2a7177d9887mr111233305ad.59.1768760147717; Sun, 18 Jan 2026 10:15:47 -0800 (PST) Received: from [192.168.1.12] ([205.254.168.142]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2a7193fb2bbsm72098695ad.74.2026.01.18.10.15.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 18 Jan 2026 10:15:47 -0800 (PST) Message-ID: Date: Sun, 18 Jan 2026 23:45:38 +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 v4 3/3] of: Respect #{iommu,msi}-cells in maps To: Konrad Dybcio , robin.murphy@arm.com, will@kernel.org, joro@8bytes.org, robh@kernel.org, dmitry.baryshkov@oss.qualcomm.com, bjorn.andersson@oss.qualcomm.com, bod@kernel.org, conor+dt@kernel.org, krzk+dt@kernel.org, saravanak@google.com, prakash.gupta@oss.qualcomm.com, vikash.garodia@oss.qualcomm.com Cc: iommu@lists.linux.dev, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: <20251231114257.2382820-1-vijayanand.jitta@oss.qualcomm.com> <20251231114257.2382820-4-vijayanand.jitta@oss.qualcomm.com> Content-Language: en-US From: Vijayanand Jitta In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMTE4MDE2MSBTYWx0ZWRfX3qlTUYyrxIOu lExVPE0Ex2O+g93YzulIA1ep5XrGuS8jY8x0/N8+LMC1uKxllwfoauw2NWSgKTFxZN/CsXwo+f4 ShXyPyu+Yw+RktpeBvcH8BRc3yCjMKCDz80Es/EMNCMifsXihSEMRZb4i3iGFuQWSQ6vSPEb4jj ccGK2QKXNlbbsGCL4Qesm78XkxR8HnANXHWuNfLpqDqgxopxehYtgBdTDyMA7RzK96xFFNQlnVz 29NTv1L230HkdhgX33vOKaUJkUFs+eqx0R1AzJgehcq3plK5xkByGSKjIbQiU7mAhynwjT595uM CGUj5POr42SZH4BqVyChKk5DpKLLsIfCgNB+BHSOU1fZK2esK/AOiuZvjC8PKB/IWnEb9jFNo2A TsrHRTzKG8QkKzdEHRZAEJmMtg8Y7LPXnXXOXpyRLS/XctYn92JS/pAPu6X1ImsmbM7OT84EN6J b6lKga47R4CEvUjj/QQ== X-Proofpoint-ORIG-GUID: jHK-L0Xsh4XHfnqJ-oYP1IufupkkLqju X-Authority-Analysis: v=2.4 cv=JcyxbEKV c=1 sm=1 tr=0 ts=696d2354 cx=c_pps a=IZJwPbhc+fLeJZngyXXI0A==:117 a=iXsRcE/C3PG0Ejdleh9IGw==:17 a=IkcTkHD0fZMA:10 a=vUbySO9Y5rIA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=7CQSdrXTAAAA:8 a=EUspDBNiAAAA:8 a=QyXUC8HyAAAA:8 a=0PCGqwN690N39_7ecfkA:9 a=QEXdDO2ut3YA:10 a=uG9DUKGECoFWVXl0Dc02:22 a=a-qgeE7W1pNrGK8U0ZQC:22 X-Proofpoint-GUID: jHK-L0Xsh4XHfnqJ-oYP1IufupkkLqju X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2026-01-17_03,2026-01-15_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 clxscore=1015 impostorscore=0 adultscore=0 phishscore=0 malwarescore=0 spamscore=0 bulkscore=0 suspectscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2601150000 definitions=main-2601180161 On 1/7/2026 4:30 PM, Konrad Dybcio wrote: > On 1/7/26 6:31 AM, Vijayanand Jitta wrote: >> >> >> On 12/31/2025 5:12 PM, Vijayanand Jitta wrote: >>> From: Robin Murphy >>> >>> So far our parsing of {iommu,msi}-map properites has always blindly >>> asusmed that the output specifiers will always have exactly 1 cell. >>> This typically does happen to be the case, but is not actually enforced >>> (and the PCI msi-map binding even explicitly states support for 0 or 1 >>> cells) - as a result we've now ended up with dodgy DTs out in the field >>> which depend on this behaviour to map a 1-cell specifier for a 2-cell >>> provider, despite that being bogus per the bindings themselves. >>> >>> Since there is some potential use in being able to map at least single >>> input IDs to multi-cell output specifiers (and properly support 0-cell >>> outputs as well), add support for properly parsing and using the target >>> nodes' #cells values, albeit with the unfortunate complication of still >>> having to work around expectations of the old behaviour too. >>> >>> Since there are multi-cell output specifiers, the callers of of_map_id() >>> may need to get the exact cell output value for further processing. >>> Added support for that part --charan >>> >>> Signed-off-by: Robin Murphy >>> Signed-off-by: Vijayanand Jitta >>> --- > > [...] > >> Rob, >> >> Gentle ping, could you please let me know if the latest patchset looks good enough >> to be considered for the next merge window? > > You have an outstanding build warning: > > <202601062128.BCmw1wNO-lkp@intel.com> > > Konrad Thanks, I have fixed those and sent out V5. Please review. Thanks, Vijay