Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2079476rbb; Tue, 27 Feb 2024 09:58:23 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW6W/j/P+5TM+kyfCxzu/YrX5oWYiEPAXlgDOih0hhp5ozXvTB8bp3Dyhfp/8lGS9F+DeVYyeNv444qYyZ2F9UbMsBlv/EHjOiA7ERHlw== X-Google-Smtp-Source: AGHT+IFDOYJ5LYbPSY97wzrc2tf102LEkYv8UT2bv4gSme49tohGgr/pCm4hM2ZcXch7k1UGKrUP X-Received: by 2002:a54:4494:0:b0:3c1:a268:5bac with SMTP id v20-20020a544494000000b003c1a2685bacmr2420016oiv.55.1709056703538; Tue, 27 Feb 2024 09:58:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709056703; cv=pass; d=google.com; s=arc-20160816; b=O4Q93XXs0QymthYNvxWvboAyhYj81HJp2g9FsHi32CD/t5A29Pucxkchbun4Lf84rw dQGXl0uoe1vaNIO/5gDc76WvUDlfkdW/Y1zET2xlSeNHvuy5JzOhiGLiwFyblFKmBGFr t5UsVDj1T8KFVraE42r46sPUCiwihitEkc1XAuTIild7ibiF0PTelOFdssYI4l9hx8iv a22x8kJBe8AAe2o5eg4PcTplo+FDQsTdyWqCz9Wdx+hIVv+dckFRoPmCueYo02gPc1Ee 5w1fnIvkq1zhMgmXbT1GhcTr1DsEQOB+5j11O5SkvIc1IpuO+QFXKf6r3BbytNcjE1Nq MsDg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=g5/OtNFrU+q0HQTPqi/YEqGkmh+JvEMc5GWZqEAuWTI=; fh=rgOazDyx6J98vdsQnKAdMX0KW6aaPJ28OaBhqg32m/4=; b=tzPG3mOzooUFDxXdBth0yqqd/fA1eOnfINeTClOlkKERMDZHvyqlH3GYgJ3157R7j3 oOuo4QHwWVfgIkmSfwQWY7nVZW00F+X6FInvr5Kv0Cxz4jCJUTDvEl0G7KsMizA4iZMn lsBwMrtMYJsnrPs0tAgm9g6FcnBoX8EdDA6WIvpIVfrhHXhLbra38piRrty2O/vAXBfV uNtqzwsRSzRhTPWcIktDGE9l97cP97i5e37qNVp88c6L2DV0Al2XkppJ+Sk09A58QqXe Hmrr95HO1QSM6fght4SAnxNZFcczqIZHnKgUqFj+7Mf6O2R620G/ZnvyLo27AUCy8zbB WjJg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ZCTy7ll7; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-83711-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83711-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id bv63-20020a632e42000000b005dccfa9a75asi5648069pgb.845.2024.02.27.09.58.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 09:58:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83711-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ZCTy7ll7; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-83711-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83711-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 0423CB278AF for ; Tue, 27 Feb 2024 17:27:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B8EB254F8D; Tue, 27 Feb 2024 17:22:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="ZCTy7ll7" 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 4D55F13A884; Tue, 27 Feb 2024 17:22:51 +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=1709054572; cv=none; b=HbA2pVsKoRScba5O0uzcSYs188CmyA/eVnD+Z7/LPyyCvnhuBez94u75iue/afQKxKBf1FBNnZOEh+jgQLJR8ZVs1ybYQI2YbkRmiZHnUatVpDWZP+Rsf8nHkPXNcnOURNX6ePwIUIaDGZSoBdPuMebgoXjtgPkh5LSlUg06f4Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709054572; c=relaxed/simple; bh=OZd+QJFTU/LwgL/Zknn60/sBgfvG6r1OawibkMwoaGU=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=XbZE8uL7AGM6Vgk6U4wEpVhROd/dBvPlfLT6nV7wGt1tGKaUDhohMKffXNosS8wcErA4elPeJRW7s++SQf/TqRSFjh6Uqth4mBXP9zZaQOe9KbtNJ0dDraNhS1vQUra26JQlZwr+zB4rjyiuo17KN5k1Ef6L/S9q4E+5YM1OvNo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=ZCTy7ll7; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41RBX79s001966; Tue, 27 Feb 2024 17:22:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=g5/OtNFrU+q0HQTPqi/YEqGkmh+JvEMc5GWZqEAuWTI=; b=ZC Ty7ll71rN8DODt66sNrLm4IsEKMm6JRxG05CVnpfRXo6OegPCKDvFzQ4GxX0CMA7 4HNUafYKe5AudJDKFjmcea1gMW0KGeT6PdWPywzN1AVEplxwVG0CooOWxTp/myOt 2mjU2d+DqRe2gTvEHJH23s5DgpDKagmG76roSWmoOHbXcJ+Svi3c2aE5FNC5/HgH aFhE3aMXbor6h74LbXirvAOe7/ZsQPsAPM2netNnHAdy0bdZLdhLkcwKAt6Jqqo6 SCMqsHjNKWyeU7bOtGu69TrxoBzgWC/IxrmU5iFyQKYepTgcuOKquSWi7keqMaIQ pneMgdpWLPJqaymHobug== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3wh64h22ex-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 27 Feb 2024 17:22:23 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 41RHMMUH001769 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 27 Feb 2024 17:22:22 GMT Received: from [10.71.110.192] (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 27 Feb 2024 09:22:21 -0800 Message-ID: <9336c99d-ca56-4d01-b9b2-18539ef0b725@quicinc.com> Date: Tue, 27 Feb 2024 09:22:13 -0800 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 5/7] arm64: Unconditionally call unflatten_device_tree() Content-Language: en-US To: Stephen Boyd , Rob Herring CC: , , , , , , , Frank Rowand , Catalin Marinas , Will Deacon , Mark Rutland References: <20240217010557.2381548-1-sboyd@kernel.org> <20240217010557.2381548-6-sboyd@kernel.org> From: Oreoluwa Babatunde In-Reply-To: <20240217010557.2381548-6-sboyd@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: U-zGZIHscjx7uttOwzY-n83UKqVrV9ux X-Proofpoint-GUID: U-zGZIHscjx7uttOwzY-n83UKqVrV9ux X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-27_03,2024-02-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 clxscore=1011 bulkscore=0 spamscore=0 lowpriorityscore=0 impostorscore=0 malwarescore=0 mlxlogscore=999 priorityscore=1501 adultscore=0 phishscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2402270134 On 2/16/2024 5:05 PM, Stephen Boyd wrote: > Call this function unconditionally so that we can populate an empty DTB > on platforms that don't boot with a firmware provided or builtin DTB. > When ACPI is in use, unflatten_device_tree() ignores the > 'initial_boot_params' pointer so the live DT on those systems won't be > whatever that's pointing to. Similarly, when kexec copies the DT data > the previous kernel to the new one on ACPI systems, > of_kexec_alloc_and_setup_fdt() will ignore the live DT (the empty root > one) and copy the 'initial_boot_params' data. > > Cc: Rob Herring > Cc: Frank Rowand > Cc: Catalin Marinas > Cc: Will Deacon > Cc: Mark Rutland > Cc: > Signed-off-by: Stephen Boyd This change looks good to me. I am working on a patch set that will benefit from this. Reviewed-by: Oreoluwa Babatunde Regards, Oreoluwa > --- > arch/arm64/kernel/setup.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c > index 42c690bb2d60..0d210720d47d 100644 > --- a/arch/arm64/kernel/setup.c > +++ b/arch/arm64/kernel/setup.c > @@ -351,8 +351,7 @@ void __init __no_sanitize_address setup_arch(char **cmdline_p) > /* Parse the ACPI tables for possible boot-time configuration */ > acpi_boot_table_init(); > > - if (acpi_disabled) > - unflatten_device_tree(); > + unflatten_device_tree(); > > bootmem_init();