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 1F7D347A0CA for ; Thu, 8 Jan 2026 12:43: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=1767876217; cv=none; b=VpvvTSnhnDPpfVr44P/Tqx6ybELoUicz+Zxbbpn5O4aS9YLhxEjXC3DSCQrx8Oi87V4+Rd0dHRSMm5clZTCP+83eBpYrTUAOsC39eKOlmDZU9LpyKZ9KBCyNcnTOVI+Ay8EKjqAwAOGkQmVAEGa5e1reMKM0KN4Kz68lWDIGxu0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767876217; c=relaxed/simple; bh=OYfTyE+Smwwrvmj0fPhLrTVVFvufpfpQNZPG9JwoPF8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=pKf0WXoySd9VV5uAjKAGAIth5Lx+QCcc5gJkgyofGb6fymYuEuiEpZCEZMwM3kEksjebz0H8K9/+9clcuInxgZfm7LLNLn13W0VBYYGHbyTrffZJBDuI4XBTxda+2g7+C8U2FT0/EXg4oWn62e3pb8rU18tA18wg2/ifk1vqiM0= 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=RyHyeQAG; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=Kf9YArCC; 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="RyHyeQAG"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="Kf9YArCC" 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 608AiAtm3701355 for ; Thu, 8 Jan 2026 12:43:35 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= NNzfH6+c22c9ufgQvnvleCWCuCBPPhgb+gUxhkM23qw=; b=RyHyeQAG5xuc2ozm 8Z24fmPNpcsqJK5Bu1jj7+5ujnlOAnN/nnNOy6W8oIpkbH6FW9g5qz9Ir6Ky2XAB hEKKzUnV3w30xQ2VsCrtAsMctrPt8YQy4xz0W2LBKxSp8e0+Cwo4atZ2qqLUzEnc 7cQ7zWwwf2FoTMWPEEU1JYZ/7bwjz8xRegBh8cFwFSYdqyPbsUyWjd4jGsEjX7kV 7ONEhG/2t8Oo0FQrYhWHmqEVoznx6VdjRjZMcF7dhwpxoCQ4Yn43iTOKF9MObCit asG8sOdusVS4rrUF37wgPwXuC0O4tIo0DiZ88qLWjYuW02j86p87HR1xKTiyMWcl yslfNA== Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4bjb39ra98-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 08 Jan 2026 12:43:35 +0000 (GMT) Received: by mail-qt1-f197.google.com with SMTP id d75a77b69052e-4ffc6560f05so828201cf.3 for ; Thu, 08 Jan 2026 04:43:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1767876214; x=1768481014; 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=NNzfH6+c22c9ufgQvnvleCWCuCBPPhgb+gUxhkM23qw=; b=Kf9YArCCmFMk11Hxbi4+nHK+3NjA+SWcEWGNHKjh/nbqnRWFzyw2nIRGRZqUk+7TCd ggfXDk1pCQPXDCFjm7m2tr1KCpfiJY6xFg0IQ8VdEtmFXAn8rwotLH4g84MfyYEOqZ08 MvzJmpQHn4LXfo+uo/AX3ZrzNyt/tk2XUW0tzdQ6vSRPQY8D/uwERjUHIX2clRiIrsQV RRLUuUQPr3NCqedsBIiDd2BzrgmDeivsmH6Ycy35IcKu+TS1VNZqSqNbnuAymNLepg9r CX5F3Zzm9oaAIsWpKypOCQokFKRB5rzzRtHNrSl3NiHnDVTIUShQhOX9T1FrP1rtWS6k PQcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767876214; x=1768481014; 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=NNzfH6+c22c9ufgQvnvleCWCuCBPPhgb+gUxhkM23qw=; b=ZTNFwMcIKVWCuakRiS7A+vezC/FGNFSeUhvQnK1O19cVZx6HbFRg1mhNRO33KrZy2C VDtnALBjAPBZD+BRPp7b+aMC1/0xi5JAftDsqjgYnSiuyOuCKHwZrnQRy+vTJA/+4xqM tgx8WNnCOJpa/GELIibFiNUiVSATnNOFLhkWbfjG+kwanhF/fdnZJB5GDf7BPJ6I72o/ yUCyaiErT7AsRqgfEkhopQsydWAcKzPBYBSOlcJaXm8F4cvKgjl6SzxgPn1dkgqzSE6i KLxbVLO8x18WjTj+NhGl69UCz2wR1htG807+ND18xcPhbuFRM9PwFIV6HEoV1idzUn8H 4T2w== X-Forwarded-Encrypted: i=1; AJvYcCVxXoxZChUjxC5tWwzE9VVBubQfQtGM3Rlcd92SWGp5arXb32sW7Kvd0QmxAQ0ypb+cBidFpFV81NibxXw=@vger.kernel.org X-Gm-Message-State: AOJu0YzFtGG5jjUxX1ycrgL+xpZeWeMrdvTGhnPUu3WSj3uiaQokE9Zo xya7Oi7oFMKwKlTaVF/7Bqs8CQiZuWhS6/im216kvnknDZwZjmT6Thd0HN8Xby51YYiOR8QVXeS KOwYb/5JIQ8CEV3Ns9d5kh4RJu5mzJMmF/tE4RNEOYmmoN/uUmWq6Z6DgDmEVZtVv7Hm7hcJ5iG A= X-Gm-Gg: AY/fxX7wCOa0zelpMo3eQ8k1Ati86o6/pObpSpLrR5mM1Gg/+yok/9+dLFbvggi+HIH 8qr3d6QjJgFGbyY8uN4eUksZCAJxO8+UEpvPNHxs/o20xlk9J5UoOCJjJGLAQbwMmiM93C4jQWv qWOJ5YucmbbVpOk/7WJshrdoInMASXDX3o1nmbgrOajl0HejHYiihR5wN0+b1/WSd+oqYzKiXVW S7VIZct3cHeIjr/oS04lESA8RMC231DYUzfBVFUsJtq1fIObZrAc8RrA1BBS9KZA38V6JBuRUdD 6MfUvhqCkQqeDsYYR2RAC2BxnPH4roHc2OV+JNRGIQpiqksdXO6Hkr0ObfGelXYfbews3n+1Aa/ iCah22Q1IjxwFzDTie/XoWlTJEVPHV/yA4d5vI9hsv4OYrHH9GjjoArbYe1MhT73fLLs= X-Received: by 2002:a05:622a:2cb:b0:4f1:b580:fba8 with SMTP id d75a77b69052e-4ffb48d3b42mr64410321cf.3.1767876214110; Thu, 08 Jan 2026 04:43:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IF3bP3jkzHKz3spcjo1FNDFbjTpMwdJwshY99+/AELG9VJvKEBUlECjvmhfGb1PCNgx47kPPA== X-Received: by 2002:a05:622a:2cb:b0:4f1:b580:fba8 with SMTP id d75a77b69052e-4ffb48d3b42mr64409991cf.3.1767876213589; Thu, 08 Jan 2026 04:43:33 -0800 (PST) Received: from [192.168.119.254] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6507b9d51basm7484207a12.12.2026.01.08.04.43.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Jan 2026 04:43:33 -0800 (PST) Message-ID: Date: Thu, 8 Jan 2026 13:43:30 +0100 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/2] arm64: dts: qcom: agatti: Address Gunyah memory alignment needs To: Sumit Garg Cc: Bjorn Andersson , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, konradybcio@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, akhilpo@oss.qualcomm.com, vikash.garodia@oss.qualcomm.com, dikshita.agarwal@oss.qualcomm.com, robin.clark@oss.qualcomm.com, lumag@kernel.org, linux-kernel@vger.kernel.org, Sumit Garg References: <20251229071258.456254-1-sumit.garg@kernel.org> <20251229071258.456254-2-sumit.garg@kernel.org> <73bcf4c8-3d49-4b55-a771-0c5c1ef54380@oss.qualcomm.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-GUID: Hz0WGF60qjI_mQ9QHpF81fwRQVVL5Nu- X-Authority-Analysis: v=2.4 cv=X7Jf6WTe c=1 sm=1 tr=0 ts=695fa677 cx=c_pps a=EVbN6Ke/fEF3bsl7X48z0g==:117 a=FpWmc02/iXfjRdCD7H54yg==:17 a=IkcTkHD0fZMA:10 a=vUbySO9Y5rIA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=EUspDBNiAAAA:8 a=8cjB7eQHtUe5wF3l764A:9 a=QEXdDO2ut3YA:10 a=a_PwQJl-kcHnX1M80qC6:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMTA4MDA4OSBTYWx0ZWRfX4rDb7+ffblL8 5VidmKIDWuYQ2Wk9a8Uio63WklvaxfL5UetBi1j0Z2eiWJfwaDOUHf2pvlbh714TalfaRv9c9SY DKxxv0M2ragaIdVgPdJ7wODp0Phebr2fyuz3UuErvj3hyrlVu3BcDZOcfFSh5yk/hr2zCsrsO15 lNYKk0nseS0Oa4c6Vvv/5kEt+5k/DfMumgpDhxl3gWM/TuO4E/IOqFuxMs1Ib+hRDOKaIcHtp2t oudI6jh1Q7BJFalgrC1CnDBruu4uN+FgBSwLaHc8XSkt93kO57VkDiE8Z9B027rlBf7ol7PvBGv scRgKOX5+4WdnpaexZlzHFMM12SWTN2isDyUy9Dgn/5hIqeanNPUKqYsQlcgOempGbdh7dJwqkI lzWNrIqhT19gPtP3aQOUOa0ys26OI9uOnKN6muzcpDcWWusbBh+pTgYtAwl3nnzpiSTuaPQ9rK3 ohA+L6Hw5Mv4Er3INkA== X-Proofpoint-ORIG-GUID: Hz0WGF60qjI_mQ9QHpF81fwRQVVL5Nu- 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-08_02,2026-01-07_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 spamscore=0 bulkscore=0 suspectscore=0 phishscore=0 adultscore=0 priorityscore=1501 lowpriorityscore=0 impostorscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2512120000 definitions=main-2601080089 On 1/8/26 11:50 AM, Sumit Garg wrote: > On Wed, Jan 07, 2026 at 12:29:02PM +0100, Konrad Dybcio wrote: >> On 1/5/26 6:46 AM, Sumit Garg wrote: >>> On Sat, Jan 03, 2026 at 09:49:04AM -0600, Bjorn Andersson wrote: >>>> On Mon, Dec 29, 2025 at 12:42:58PM +0530, Sumit Garg wrote: >>>>> From: Sumit Garg >>>>> >>>>> Gunyah hypervisor requires it's memory start address to be 2MB aligned. >>>>> So the address map for Agatti is updated to incorporate that requirement. >>>>> This should be a backwards compatible DT change which should work with >>>>> legacy QHEE based firmware stack too. >>>>> >>>> >>>> How come this isn't conveyed to the operating system using the UEFI >>>> memory map? >>>> >>> >>> I agree that with EFI boot, the information is getting conveyed via EFI >>> memory map. But there will be non-EFI boot scenarios as well in case of >>> U-Boot. And moreover I suppose we need to keep the reserved memory >>> ranges in DT updated to reflect the actual memory map. >> >> Can U-Boot not do the same by altering /reserved-memory or /memory/reg? > > I suppose you are referring to DT fixups here, we generally try to keep > them to a minimum required in U-Boot. > > BTW, don't we want to keep reserved memory ranges updated in DT? Or we plan > to drop them altogether? Generally I believe they're only a necessary evil.. Since Gunyah-on-Agatti doesn't seem to have been released yet, it would seem like a sane idea to fix the issue in the firmware. If it was, well.. On UEFI-enabled targets, we can largely rely on the reservations coming from there, only adding some carveouts for e.g. PIL regions and SMEM (not because they're not resereved, but because we need a pointer to them) Konrad