From patchwork Wed Nov 9 13:35:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leif Lindholm X-Patchwork-Id: 13037532 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ECC80C433FE for ; Wed, 9 Nov 2022 13:37:09 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oslFq-0000Mp-Lk; Wed, 09 Nov 2022 08:36:34 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oslF6-00007O-DZ; Wed, 09 Nov 2022 08:35:49 -0500 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oslF4-0007Sn-Qo; Wed, 09 Nov 2022 08:35:48 -0500 Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2A9DLxmP017188; Wed, 9 Nov 2022 13:35:44 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=x8hVDncNQb8nBtaw9Nw6eP61V4si76SdgthW5BjmrTs=; b=L1klUiL7FPX1BlvNAEjDYm84NDGWX6oghN2Fu2XHLuwwbKu/I+8rBaCF9QNtchpvtcwI qgQTZUYN7Jvst6Je9ahVgHPUDAqRIGBPHSjTGBfokAc0/f3QyY9C/uGb65POWoUAUOja wAUgqt+DEGfZDX0AgThwb5uOSl2Rqt/pyy6RbFVsHIvMIbcas5LlFe2PrzDlbRcZ2T3x bRPMtrfaZ4wQw2DoMwyGOQDo7Y5li2CHuibfEqIYaI3ZVqMkMA0Jm4KAnGFNtYMMBQiz MAnrupEvThS2mPAIdl6oDr5qy3SYLzUW4I3x/ClmpmuP3I6ZrqIRoytdvwlAo7rs/h12 RQ== Received: from nasanppmta05.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3kr6dygx39-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 09 Nov 2022 13:35:44 +0000 Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 2A9DZaBe006691 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 9 Nov 2022 13:35:36 GMT Received: from qc-i7.qualcomm.com (10.80.80.8) by nasanex01c.na.qualcomm.com (10.45.79.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Wed, 9 Nov 2022 05:35:34 -0800 From: Leif Lindholm To: CC: , Leif Lindholm , Peter Maydell , Marcin Juszkiewicz , Shashi Mallela , Radoslaw Biernacki Subject: [RFC PATCH 1/1] hw/arm: use -cpu max by default for sbsa-ref Date: Wed, 9 Nov 2022 13:35:25 +0000 Message-ID: <20221109133525.762667-2-quic_llindhol@quicinc.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221109133525.762667-1-quic_llindhol@quicinc.com> References: <20221109133525.762667-1-quic_llindhol@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01c.na.qualcomm.com (10.45.79.139) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: fAW6mqXYs5Qi1cNyNKJ0FRqM9SmO4Eud X-Proofpoint-GUID: fAW6mqXYs5Qi1cNyNKJ0FRqM9SmO4Eud X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-09_06,2022-11-09_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 malwarescore=0 spamscore=0 impostorscore=0 mlxscore=0 phishscore=0 mlxlogscore=999 adultscore=0 priorityscore=1501 clxscore=1015 bulkscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211090103 Received-SPF: pass client-ip=205.220.180.131; envelope-from=quic_llindhol@quicinc.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org From: Leif Lindholm Due to a change in upstream TF-A, boot fails (in edk2) on all cpus that don't implement FEAT_DIT. The only currently emulated cpu that "supports" this feature is "max". So switch to using that cpu by default for sbsa-ref. However, it is worth noting that the "max" cpu triggers another bug in TF-A where Linux boot fails around UEFI ExitBootServices. Signed-off-by: Leif Lindholm Cc: Peter Maydell Cc: Marcin Juszkiewicz Cc: Shashi Mallela Cc: Radoslaw Biernacki --- hw/arm/sbsa-ref.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/arm/sbsa-ref.c b/hw/arm/sbsa-ref.c index 4bb444684f..8bb5c0fc70 100644 --- a/hw/arm/sbsa-ref.c +++ b/hw/arm/sbsa-ref.c @@ -852,7 +852,7 @@ static void sbsa_ref_class_init(ObjectClass *oc, void *data) mc->init = sbsa_ref_init; mc->desc = "QEMU 'SBSA Reference' ARM Virtual Machine"; - mc->default_cpu_type = ARM_CPU_TYPE_NAME("cortex-a57"); + mc->default_cpu_type = ARM_CPU_TYPE_NAME("max"); mc->max_cpus = 512; mc->pci_allow_0_address = true; mc->minimum_page_bits = 12;