From nobody Fri Nov 14 16:55:24 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1760649929; cv=none; d=zohomail.com; s=zohoarc; b=LTrPQqBYTm6x/b5R5eD39NIFLt8TrxWVQL9RSdnsWYUoDavfGSWMty5+Vcqs4aGXAIdzN6o5htgZgQCzRFseuJ05ADWXHOlcAxUhDai3asPOyyu9B5JBrvVNYGu2nMhVYo40r966WzF2a4AVAQMzSZbguH6dySGhqo0z0gqIdfo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1760649929; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=tiuBWUc6T5G+I6xnsPaISzzZSKfO3+syCb4QhaRxXMg=; b=EyZynmCOWhBKTiZYlndBe6JC4JKqfwxvnG7lNgrUwcGn/R1wVCRRjhceMo7FdQVCqrkZmgE1bQl7i+8g2uPUiaGwXAy+B2AdttEmrkRi6vKJA+NMkvaLYlDAUUtAJ2GBa7KInCVfEVVfeY96XR7kSGEENpt9xbi+KGXOKa0aD3E= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1760649929399330.06865154591935; Thu, 16 Oct 2025 14:25:29 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1v9VSz-0007dt-8B; Thu, 16 Oct 2025 17:24:57 -0400 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 1v9VSw-0007dX-MS for qemu-devel@nongnu.org; Thu, 16 Oct 2025 17:24:54 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1v9VSu-0000we-1S for qemu-devel@nongnu.org; Thu, 16 Oct 2025 17:24:54 -0400 Received: from mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-682-SAQU2gYINtO4WpP66pJ44A-1; Thu, 16 Oct 2025 17:24:45 -0400 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 717601956087; Thu, 16 Oct 2025 21:24:43 +0000 (UTC) Received: from corto.redhat.com (unknown [10.45.225.105]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 969491956056; Thu, 16 Oct 2025 21:24:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1760649888; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tiuBWUc6T5G+I6xnsPaISzzZSKfO3+syCb4QhaRxXMg=; b=U2XHEhWzoBzEiMRaQzH3CzpICiIs8pgu0LkxhTaqJoSpeOm+f7aGmlENLPvecsMs628Ayd fbJC38Rh9LtaqacvzYrhmn/nCu3dvvRa5uK0Q8qaNcGTm+/HVdmtD2adrplXvNi6+/f8FW 51tj6b18ddqoq3UT7jPqt0xtPTQSEUs= X-MC-Unique: SAQU2gYINtO4WpP66pJ44A-1 X-Mimecast-MFC-AGG-ID: SAQU2gYINtO4WpP66pJ44A_1760649884 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= To: qemu-devel@nongnu.org, qemu-arm@nongnu.org Cc: Peter Maydell , Steven Lee , Troy Lee , Jamin Lin , Andrew Jeffery , Joel Stanley , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Subject: [PATCH] hw/arm/aspeed: ast2600-evb: Use w25q512jv flash model Date: Thu, 16 Oct 2025 23:24:37 +0200 Message-ID: <20251016212437.1046135-1-clg@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=clg@redhat.com; helo=us-smtp-delivery-124.mimecast.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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1760649936523158500 The ast2600-evb machine model is using the "mx66u51235f" flash model, which has issues with recent Linux kernels (6.15+) when reading SFDP data. Change the flash model to "w25q512jv", which is the model present on some ast2600a3 EVB board and is known to work correctly with recent kernels. Adjust the corresponding qtest to reflect the new JEDEC ID of the w25q512jv flash. Signed-off-by: C=C3=A9dric Le Goater Reviewed-by: Jamin Lin --- hw/arm/aspeed.c | 4 ++-- tests/qtest/aspeed_smc-test.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c index 2e43898d6403..c29bbd54059d 100644 --- a/hw/arm/aspeed.c +++ b/hw/arm/aspeed.c @@ -1610,8 +1610,8 @@ static void aspeed_machine_ast2600_evb_class_init(Obj= ectClass *oc, amc->soc_name =3D "ast2600-a3"; amc->hw_strap1 =3D AST2600_EVB_HW_STRAP1; amc->hw_strap2 =3D AST2600_EVB_HW_STRAP2; - amc->fmc_model =3D "mx66u51235f"; - amc->spi_model =3D "mx66u51235f"; + amc->fmc_model =3D "w25q512jv"; + amc->spi_model =3D "w25q512jv"; amc->num_cs =3D 1; amc->macs_mask =3D ASPEED_MAC0_ON | ASPEED_MAC1_ON | ASPEED_MAC2_ON | ASPEED_MAC3_ON; diff --git a/tests/qtest/aspeed_smc-test.c b/tests/qtest/aspeed_smc-test.c index 52a00e6f0a7e..50a87e625001 100644 --- a/tests/qtest/aspeed_smc-test.c +++ b/tests/qtest/aspeed_smc-test.c @@ -134,10 +134,10 @@ static void test_ast2600_evb(AspeedSMCTestData *data) "-drive file=3D%s,format=3Draw,if=3Dmtd", data->tmp_path); =20 - /* fmc cs0 with mx66u51235f flash */ + /* fmc cs0 with w25q512jv flash */ data->flash_base =3D 0x20000000; data->spi_base =3D 0x1E620000; - data->jedec_id =3D 0xc2253a; + data->jedec_id =3D 0xef4020; data->cs =3D 0; data->node =3D "/machine/soc/fmc/ssi.0/child[0]"; /* beyond 16MB */ --=20 2.51.0