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 A793C2F28EE for ; Wed, 8 Oct 2025 10:13:08 +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=1759918391; cv=none; b=PXhgl5wP5vKJ3dfEzYVDni278rDtpQdqztnbQAmGp41ynD/MMBklk2pxz//o2oPaGqoTMzewEg4fiKflCSg8FQDtfxz1NWG4gM0yX+RLmODK5wVKBz46xhHDUbYWYyt1yCZT9lmKUGyMYzIZjY0on6e2K1YeslPnITX3LYd1tMY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759918391; c=relaxed/simple; bh=OVFwk2vmkPRQ0Ilaya0kUAab//75n7hNZBd9EtiesrE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=u1siN9zHGPBXEzDxUGpBuMXXnqbEr0Zyc9Vs0UFBYKhOVOY4QI/Bhca57clpKVWFEt8zaCt5eTzgiMRAWxnzCFbquw3HlFLns3xbRWaZxPxkkP+AQfVU1AeU/eYJilhfpoFww0F1hUwgRMASZs12sl9M6fA9ljAWbA3iGoBolqk= 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=RkhYvz58; 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="RkhYvz58" Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 59890TNw012189 for ; Wed, 8 Oct 2025 10:13:08 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= 0CYf3dNLaEZlzQyvHexxo2vllzKN1mgGFsi4zK0z0GU=; b=RkhYvz58cBtTIFbP qDur3A3MnHrpCzW588n38RLN/sMWoWWD1CkrRuGu7YsuX5CMiRHSJzb5G30hXUtH 45ass38OYTbc2dQARVlbrbk1+IPWK+yhSgCSCd2x/AbIZIO5FagnjG80mpHyW9xH 47LC/96MXsk26K0HisbFPzps6OhSUbshxZgwNCXlYvd+53AN7W81mlagsX1bw43T bHvkLqcjc+p+yeHMahxb7exeFHuDNuA2VzLQAvI+y3md9clddO6fIOW/BaYMFn28 0z0BabVDn7agoneMESb8td+nz08CdL+2rktZxELa7rFVNIYqD9SI4nI5HzLvJzUk 7DLcjw== Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 49mnkpvwan-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Wed, 08 Oct 2025 10:13:07 +0000 (GMT) Received: by mail-qv1-f69.google.com with SMTP id 6a1803df08f44-879fa4a2989so7500086d6.3 for ; Wed, 08 Oct 2025 03:13:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759918386; x=1760523186; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=0CYf3dNLaEZlzQyvHexxo2vllzKN1mgGFsi4zK0z0GU=; b=k4+zNBaCje/eo2ysEbOscvPouIaLAeDmMHU8f5uk/Be7SgG3gxrgRJS9pGXAWM5S+U J4OKakLiDsmME2R7BTUOoi6Lq8lglWOfQTlot3vUBd5z6A019r8hnkAcutMoqRzpl3+z /knQk6z0XPGYrVZh7tDaCEvsZiGa9rzOjsz41NaoGt0EteQ/xpkQ4htg17NczSTzxh9l KB+Ds3YCmTMzKZ4AV5IY1dbnWSQUmAd3KxiQomnT1Xh/B9LK7bCRrJNKULnrb4Ex4XQk J821eHWW38wdm1QRtGVpBSTsQcHggPil+FFNGZKeVdRXoJ5E1Rnj+uvX4mdOwpt+7uE5 5F0g== X-Forwarded-Encrypted: i=1; AJvYcCXzoDfOlhBEvyo+Ps2djchUroC0O2BQ9u5eNErjMknJtntdYW39G5GMCH21xbexzKr/b5Cct6tombqwKBo=@vger.kernel.org X-Gm-Message-State: AOJu0Yw5ewT5OL8xyFt1cqKHHP7Rj0nFlgo/bgW0uJYzP9j3M1ps6eR7 WsSqafWR0aHnFkgMInocPJd1KYgIhhuwH1RkIfrr15s+sj1bauOeiGcsO0SQ7UTEv/JOXPFDOGQ yzVYSvF3iCmE/cRw6IYNlxLBVALWbJjLw3vnr2DU8ajA+jmYZkge1QadN/oMydZY3SdY= X-Gm-Gg: ASbGncvgRzenXF3so9OqvR0//mcqAd9mESO8nd+jvKNEWtrsY1xgUbkUAmk1beD199r p1oZF/18uTB3el8fBPjsJTTqGDR1x5qOGpj/nYIxQP6JRiK4agp0c4lKnUU3ypvNuXIk968E920 bFuEPXF8bAPYeQWHSl3tjb6wL9bAL6MbTHJn6zB7I4MtmcjV/Wz9sVHWdxJ4colmLl8mUauIBKd N2wM+w4RNZFSxGEY+VS+E/ROPQLuXRdAmI6fj8rdF4IiBuhH8PxjzxesWbO0fJnVRhKt4ymLmxn foXmahdYNUCFvRpyPN8Br/K0xF0QTDfU0zl8lqR4EQw9p4Y/i14TviLnIjbQTbONMZnLYqRGTS/ Shm1KvePjbGR4/XFS2r0WmkMSatI= X-Received: by 2002:a05:6214:2308:b0:726:8d13:da3c with SMTP id 6a1803df08f44-87b2ef7a2c9mr21194526d6.5.1759918386387; Wed, 08 Oct 2025 03:13:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHJQ5SbDlFjHkzkYiLRMPLYeHCN5y8MqVtmXRwjDsCj2I0UO6+kzqCdfxaFElAOm5iqSOd3Vg== X-Received: by 2002:a05:6214:2308:b0:726:8d13:da3c with SMTP id 6a1803df08f44-87b2ef7a2c9mr21194236d6.5.1759918385707; Wed, 08 Oct 2025 03:13:05 -0700 (PDT) Received: from [192.168.149.223] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-637881000e8sm14492232a12.32.2025.10.08.03.13.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Oct 2025 03:13:05 -0700 (PDT) Message-ID: <5408daec-127a-4fdd-88f1-855c90694f6a@oss.qualcomm.com> Date: Wed, 8 Oct 2025 12:13:03 +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 v4 12/12] arm64: dts: qcom: Add EL2 overlay for Lemans To: Mukesh Ojha , Manivannan Sadhasivam Cc: Bjorn Andersson , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20251007-kvm_rprocv4_next-20251007-v4-0-de841623af3c@oss.qualcomm.com> <20251007-kvm_rprocv4_next-20251007-v4-12-de841623af3c@oss.qualcomm.com> <20251008073214.kcanrljguox2vtzq@hu-mojha-hyd.qualcomm.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <20251008073214.kcanrljguox2vtzq@hu-mojha-hyd.qualcomm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-GUID: 7-bq01apzZMMtDj7aXkeg4qz7uOISGve X-Proofpoint-ORIG-GUID: 7-bq01apzZMMtDj7aXkeg4qz7uOISGve X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMDA2MDE2OCBTYWx0ZWRfX2iVPjAH31/s+ abZoH0egzfNxPzBzXQi2G92UIJNE19AEgrj1B3El5k3KXVuKIzxJTku2uE+jf/4485Td2Mo5Vqf B62DkTSSyN8+4E05C1kZagJy7SLhQXWK/UqrD7SkSSOTrVev1LGn1GXxPx+TM8qeSDWiQYPZoTL TB3p78GmDah4/fglviFWYMxTGGrNE20V3mViLgrBfA89ezuNSL5xbEjNbe4N/CSkCUCxEF4JZjF lKjWoLfif1WOkKR44daOPNbiBmku5g1QDb9z14FBdlyR/iid619/Ka9LQPUBhEvkKBbACm8MAYc hMgcCj8AOgOSvsg3PsFbEsp4/bBF5k+m2/bhduxqgowG1LP/6xlJ4uM4E5pzcBy4rwIYcnAgQcE bTWCW98OdjTubDKuFLUAKpItM49CZQ== X-Authority-Analysis: v=2.4 cv=BuCQAIX5 c=1 sm=1 tr=0 ts=68e63933 cx=c_pps a=wEM5vcRIz55oU/E2lInRtA==:117 a=FpWmc02/iXfjRdCD7H54yg==:17 a=IkcTkHD0fZMA:10 a=x6icFKpwvdMA:10 a=EUspDBNiAAAA:8 a=VwQbUJbxAAAA:8 a=KKAkSRfTAAAA:8 a=COk6AnOGAAAA:8 a=EtbNqAIpQJKYYPU4GdQA:9 a=QEXdDO2ut3YA:10 a=eSe6kog-UzkA:10 a=OIgjcC2v60KrkQgK7BGD:22 a=cvBusfyB2V15izCimMoJ:22 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1117,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-10-08_03,2025-10-06_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 bulkscore=0 adultscore=0 priorityscore=1501 phishscore=0 lowpriorityscore=0 clxscore=1015 spamscore=0 suspectscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2509150000 definitions=main-2510060168 On 10/8/25 9:32 AM, Mukesh Ojha wrote: > On Tue, Oct 07, 2025 at 02:55:04PM -0700, Manivannan Sadhasivam wrote: >> On Tue, Oct 07, 2025 at 10:18:57PM +0530, Mukesh Ojha wrote: >>> All the Lemans IOT variants boards are using Gunyah hypervisor which >>> means that, so far, Linux-based OS could only boot in EL1 on those >>> devices. However, it is possible for us to boot Linux at EL2 on these >>> devices [1]. >>> >>> When running under Gunyah, remote processor firmware IOMMU streams is >>> controlled by the Gunyah however when Linux take ownership of it in EL2, >>> It need to configure it properly to use remote processor. >>> >>> Add a EL2-specific DT overlay and apply it to Lemans IOT variant >>> devices to create -el2.dtb for each of them alongside "normal" dtb. >>> >>> [1] >>> https://docs.qualcomm.com/bundle/publicresource/topics/80-70020-4/boot-developer-touchpoints.html#uefi >>> >>> Signed-off-by: Mukesh Ojha >>> --- [...] >>> +&iris { >>> + /* TODO: Add video-firmware iommus to start IRIS from EL2 */ >> >> So the missing 'iommus' property is the only blocker to enable IRIS? > > Yes, but this would require some changes in the driver as well to create > a platform device for the firmware and IOMMU domain, and to attach the > firmware device to the domain. "yes, but actually no" > > There was some discussion around this in v2[1], where I added support > for video. However, the change involved hooking into the video-firmware > property, which was used for Venus. There were concerns[2] about following > the same approach for Iris, and due to that, we have dropped video > support for now. However, an RFC has been posted from our side to > handle such scenarios[3], as of now unclear about the direction for > Iris. > > > [1] https://lore.kernel.org/lkml/aKooCFoV3ZYwOMRx@linaro.org/ > > [2] https://lore.kernel.org/lkml/20250627-video_cb-v3-0-51e18c0ffbce@quicinc.com/ > > [3] https://lore.kernel.org/all/20250928171718.436440-1-charan.kalla@oss.qualcomm.com/ > > [4] https://lore.kernel.org/lkml/4a32bbec-2baf-4210-a7c1-1ddcd45d30c8@oss.qualcomm.com/ Reword the comment to "/* More driver work is needed */" since there is nothing more you can do at the moment and you most likely don't want to block your series on resolving the above entanglement Konrad