From nobody Mon Nov 23 04:26:24 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129067; cv=none; d=zohomail.com; s=zohoarc; b=Q7l1+CtRc6aiz/UNMcKOkoEaaAcHyCJxcq6UojJmNXUBsY609Tm3ZMw5KGeYZjv6oJjBOTu6vthXETc1jSm5J1AZeNK9rnFBLjX2E+Gl0Yk5T5tdUOsSxiCO0Jbgonh1Z2fHvsXezCuO1sMLoM7VT8KpiSM5d1sFsl3vJf7ZBZk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129067; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=SYnvCRTWeVvqgqCOuRt+J26szjQXnl3iQtZUxla0j+E=; b=hNw5SSIMu5VwIfJ5xtloEk+S7sGe6bt/McgVLmzlVAiHEQIBRH1xA8QtrMnf2rciFn2bFYfDQOfd9Wvw0bSxw3/y8noeFKryf125j79yBrio+Rx/DmDi9PKwiR2ouNPTiR46Xc836YtC14th71Y+gzV2+OZHA4ezo+ignUurUJY= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 179312906734688.66201317300363; Tue, 27 Oct 2026 12:24:27 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmmN-00016u-7Z; Tue, 27 Oct 2026 15:24:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmm3-0000xl-8n for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:23:58 -0400 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 1xLmm0-0001m1-PI for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:23:54 -0400 Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHRjq2639280 for ; Tue, 27 Oct 2026 19:23:51 GMT Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjqf5u1gd-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:23:51 +0000 (GMT) Received: by mail-qt1-f198.google.com with SMTP id d75a77b69052e-5337b591609so4707931cf.3 for ; Tue, 27 Oct 2026 12:23:51 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e3ebc3bdbsm20024947f8f.19.2026.10.27.12.23.48 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:23:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= SYnvCRTWeVvqgqCOuRt+J26szjQXnl3iQtZUxla0j+E=; b=nyl0r0/CGfLpktGc 2aZO/0NOCZQ/pnTAGeD0JoVQP7klKSP4WyH/KXSWEyZcG1pAi6Re/zD6wbMuX9+1 CPE1OD5TTYV1ihfaP4nEcRhXtlg3aZpJ7gIB5EOilegtwAeMeqAb+1HXMd5sIpMD aDZgih62d0x8kLbtFdi6RHaVJfckx5SOwKCwwVq1witX9+8v1C1BHSg2BYf1ulXi +j+GhYEZLz0J5t8vJKcsPqRu3S4JblcUhMG1zXDXAp6UzggV9sFXQl3fNpf/gfXp QncyFcCZxL37MkmhhDAFWN72Ps86KLyAY78dRj8f2/qP/1FdvG0bNbT9fUNYabsM Xp+rPw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129031; x=1793733831; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=SYnvCRTWeVvqgqCOuRt+J26szjQXnl3iQtZUxla0j+E=; b=P72bw3Ptwjjvz9l8fQUCPaKJZPjnfuVKMErLUyfLCbChbG8bMuzAI84J3EfdzJlmfb JhgxuCE4ODKKooUUsa4SSFLYZjB0z+sBETJcE6NSuDpYoY3d2SxLVH1UrJmhLbjevc73 qV3abP8WT3y0TcJ2txlptAwwCAlPW1TtfrXp7lmtl29p/mKP4r1cl6wIvPi5NEvFycbt /4P/RNTzUc0+5ZpcEO8S7EObgxqo86A3QkU6ni+90exepRwEx2g82Wh2/F3+M+bOVV50 uyCMtGqaMXmVPB+mp95vNrB6s88iDiVWEzZqDkbFBbcAAeJyLPIbUaNXYw9axdXG3vPQ 4g5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129031; x=1793733831; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=SYnvCRTWeVvqgqCOuRt+J26szjQXnl3iQtZUxla0j+E=; b=GlbZjxSAavRVsokeIySAGGPnFkbGmd2sKNDvPC2jby/sYSGZcp1Di6s1nwY+rkE/f5 mBGHQBliGkjlDDSX2/teY2KhOq3VfqwdFT+T8SURy0Zl8/m+ZujvnkV25jK+rpLQtaAK onF8Msp9uMD8SP55xs618Mlb6VXD6XXfNqhbLQGQd9ZOZfIqQ0nqZf5qlQO5eUgrlF0U 8IDIUsA5w2c+QROID3vbSbpgDqDbgBT5AXB3D5ZYDiCRM82+AV4J8ZDrw4vW16nsQb8l XeCvhLrGn0+4tr84DsVzFcij+prNYKRMobsjd2zB6bryGR1BK1ZXrp/O5voTBV65LuP4 VQ0Q== X-Gm-Message-State: AFq9FYIhghxwL1/AdXQPKbhO7KoqyBhaNooW9rvH/PPRR8KoBZyUDpzN ZlndXi7JrTSdX5JpzU0df2nCSNFQvt739q8sQxSM/2EVm0Oh+F+tD68KqIv448I2ca1doH0uTSq VSrxO9EN4AyjvOuUNAR+KZGt2LR9KJeeQwW2aaIGm5dTil5kgQbULT8iAE3XzCLXIlA== X-Gm-Gg: AYBFou3xBpN9GB8M70Y/9wBYba+Xjq+U9pYvD4D1UXttNk4tbS3hbr6UwX46MC1iyg1 HpmfG6bgze7FeNH1TN9i8tWg4CFelRBlcYZ4htkjcaFUEXjvVf1UeggJJKadZ3YEbr4sSzdLxnf 3uR2xDX2DhHRLpvQ/RylALy2urqIJH8mU5NtaM0/itOdMspa0dhePz3rWQ0WrIYyU97pVUv/V7Q i1pVu8dCzcFdMv6a7mdwGiOHjwdb6AJEb4adLtwxq2V6Ng4Yxql7pjB6+CxkoBEKcORMTG8uSA6 LgTxtdpH7GnPwlnC/ekZIFbZEU6YIx0ua5NMfFgyFyU/+bTw+tWlZ8UU6DhjyACf9/X6jwVbidF ppoWcegXDepWr6NUhBgRbenKYqWjg4ecQUHwt/R981byzu8my0gzEU12M X-Received: by 2002:a05:620a:2b4d:b0:93f:32c5:69b0 with SMTP id af79cd13be357-940ef995d64mr1618348885a.60.1793129030925; Tue, 27 Oct 2026 12:23:50 -0700 (PDT) X-Received: by 2002:a05:620a:2b4d:b0:93f:32c5:69b0 with SMTP id af79cd13be357-940ef995d64mr1618345285a.60.1793129030389; Tue, 27 Oct 2026 12:23:50 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 01/59] scripts/checkpatch.pl: Don't complain about spaces before Fixes tags Date: Tue, 27 Oct 2026 20:22:42 +0100 Message-ID: <20261027192341.9197-2-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3NyBTYWx0ZWRfXynpVZ7w8TZMH OuT7HPJWh9YfsoOF6SuGUFStdfeJLZUagl/F9JFL7K9vsz3MqXs1EfLfAW/5vYCs/iZXSgg3dSK HZuj2WFwmUtipX+vQ8EcOwGkpPECzA0= X-Proofpoint-ORIG-GUID: MGfvt3AzC8SprHIqfXQxgepMXpaalVAW X-Proofpoint-GUID: MGfvt3AzC8SprHIqfXQxgepMXpaalVAW X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3NyBTYWx0ZWRfX/LfJxL+yCMoC bMjU6eCDrcRWAiB6qQEE0CK10sEdWKMMzgkuYKSSNQdirlnBHzDMG4/obo7Lj1N9IK9Wv5mXwhs 5fGisW5juIvypQXktmZTy6NwzK5Jy8WinVew1xWtkGTsbJv7NkjTGetlyeZUHNWsuL9AYSl0iM4 j+XyOmZdddJto9xm/+RuXy0Ia6SeHhVp2D3fdqhrrdfLLaDlKF/KgwXFN9JUr8H8VwhE7X2jSG1 iFRY1xBtvvgsL49roaaCgFmTmL4SqUi+DJk4W2r9WpVCo9k/MLNacL3XT7lD/JnpeaWgZNZgoYz yykLS/uMbrp+3gyR1OsR2rCaxLAEyOnbLZLOl3xBwz/ruNgI3SW6U80AOS4iEV5XUIGbHxmF3Bm YPkJ7gB1eXNIZFEBT+12hlvtIFHW755W4w2JxqgA2R9oKuZdwvddJiaNKYfufl/TCnh3nHunTBs PKolbH2RBYjsPFqpTiQ== X-Authority-Analysis: v=2.4 cv=UOFIjyfy c=1 sm=1 tr=0 ts=6ae0fa47 cx=c_pps a=mPf7EqFMSY9/WdsSgAYMbA==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=KKAkSRfTAAAA:8 a=20KFwNOVAAAA:8 a=EUspDBNiAAAA:8 a=D_gin9fTjPLjegOP6woA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=dawVfQjAaf238kedN5IG:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 adultscore=0 clxscore=1015 impostorscore=0 spamscore=0 phishscore=0 malwarescore=0 bulkscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270077 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129068899154100 From: Peter Maydell The checkpatch.pl script insists that Fixes tags are at the start of each line of its input. Although this is where they ought to be in the commit message, it is not where the script will see them in common usage patterns like git show | ./scripts/checkpatch.pl - because 'git show' prefaces each line of the commit message body with four spaces. Allow spaces before the Fixes tag; this matches how we check for e.g. Signed-off-by: tags. Fixes: 910e1d41be6b2 ("scripts/checkpatch: validate Fixes: tag format and c= ommit ancestry") Reported-by: Stefano Garzarella Signed-off-by: Peter Maydell Tested-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: C=C3=A9dric Le Goater Tested-by: Stefano Garzarella Message-ID: <20261023152357.1614817-1-peter.maydell@linaro.org> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 5df266acb172..82f62f602125 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -1889,7 +1889,7 @@ sub process { =20 if ($line !~ /^\s*Fixes:\s+CVE/i) { my $tag_case =3D not ($tag eq "Fixes:"); - my $tag_space =3D not ($line =3D~ /^fixes:? [0-9a-f]{5,40}/i); + my $tag_space =3D not ($line =3D~ /^\s*fixes:? [0-9a-f]{5,40}/i); my $id_length =3D not ($orig_commit =3D~ /^[0-9a-f]{12,40}$/); my $id_case =3D not ($orig_commit !~ /[A-F]/); =20 --=20 2.55.0 From nobody Mon Nov 23 04:26:24 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129068; cv=none; d=zohomail.com; s=zohoarc; b=UM9xYGp4NcePgJS6LCc0M/jk6kTIv9KCjnDS0B8P+nrE0YHVCRvhacm+SzSw/ArMWzdz6ybFs8pYP6ZZqnAH1/8hxBu26zZEYPmuqU9/7iZiP6uaQwJMaR2ZTl25rh1DvfqJ8m7YDhve+9pJglGDHU9I9bdO6KSUjmyjw2Hz/N8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129068; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=is010zUrhoN8u9ji7weOn/sehzCY9e9z3Fo6stBSK2Y=; b=aDNsTpt6fHtIKDUdMi3p2tgA7gB+jSUipf/v1l7bNFTf+dgHCQsxapA+FJ/FMEfwxK3NVNvGKHKebkid3xNZZ3dAuWPdlGsiDagTvgmbcBtPuOno9P49+AocDqrChQKtDqlQFIxbm5aj7pyPzEls6rQIV3NpURQT/qGfVzmn0WY= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 179312906868312.626130407411438; Tue, 27 Oct 2026 12:24:28 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmmS-0001BV-I1; Tue, 27 Oct 2026 15:24:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmmA-00014H-6F for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:24:03 -0400 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 1xLmm8-0001mU-17 for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:24:01 -0400 Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHYid1917403 for ; Tue, 27 Oct 2026 19:23:59 GMT Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjux99upb-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:23:58 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-93f559420f3so13628085a.0 for ; Tue, 27 Oct 2026 12:23:58 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a94c021080sm2789025e9.2.2026.10.27.12.23.56 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:23:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= is010zUrhoN8u9ji7weOn/sehzCY9e9z3Fo6stBSK2Y=; b=WQwzeGv1ST+AWC84 ePbWDa7H+sJF34haM7svHhCa3FX2N0ds6VEwTYwiOQNgXC/doNmJfa/Cay/xOci3 WqZBU3UTajfcFR2dFfW5V2Ufw4i6QbpAYSdDMhh3fe9xRJsQgHBPyN9zJPv3t7mp WCouVcQquTRW3OH13VjoH/pLQZR72OlJTDwKkGInAZ1rrTAw7r2V1C4GYu+PVLsp N8c48zc5Hetx040TnuR8oHNCa+PiiXePGx6szXgz/cweyuhgIM1idEKJW9CrdcAk vEzsMqdo/gb6NPUR/JldISwqdbVashvQirV+gGDfaAv8SCgZks+qwWs4Ze92F/uV Btfdvw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129038; x=1793733838; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=is010zUrhoN8u9ji7weOn/sehzCY9e9z3Fo6stBSK2Y=; b=F2I0/ekdg1s3v5EcPfBFCe1ErwOPH7sQZ8ERYdV6QgmyuazIhIqfHjuNsGvDkNUJ+j MDA3xxdrG9AObLEev5fdUrlXpCSIhZGM5lt8BBDOCxk/qCKIbOIzhWlvPIYpFJeNWxAT caMj78omoIPDDwokN8B0uVYgnwv3tfDdjf4PBH/1EM6xcxeaYq17G9ZALWfPark2VhH6 NTU89TJVxEm4s3xfW9NAmcjvZmWZy+jM18KHGWcaTGUtIh5okHkvZLAP8Q4NA8EfFXGj wei/xFGADMcDzwZPaQuanQtYz7+EQeFr9uf4P2xnIvxmqgln8dGRXEbWV8li7ZfhFTC7 1pYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129038; x=1793733838; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=is010zUrhoN8u9ji7weOn/sehzCY9e9z3Fo6stBSK2Y=; b=vj2f9RzGkK+XArsL/ndDNrZLMVHDBUogWcOuN59wZsnkP2FK0GM35YV+75z1L/3pir udx2heYcteEtIIju7Xt0WH5jqSiRzLg04oRnrNRdKIGJ1diDg1XFSdpA3+xb/zH3M/Nf WZSMomrnHAvN40UZ5J95GyedZQ6q5StifX2w0QNGuR0op2Nux4J07G5SOoTLfa+EcrYR MLPCVEcdU2nN5VFqLy06G4ZgAlXvzZ3bFHyvb8iQb4NGnyn4pr0aFvSZGnDg6MwPoulE t5fAIvo3WrQVfTczUHmwUTg5eA2M/tovgLBnoWLEfGEG0BirkaDVmbOk6vhz5bfuouS9 rDHw== X-Gm-Message-State: AFq9FYIf0GHWOa5vNYES6ICIR+jGbBZXWMopaNse8WbdfhdtTLjxt8kD zpAw1VymUfsWlYz30gZWPXRvnVVoGV13Gd5Z39gIFvmwwO+ADy6sfVAmbNmWpTz2Do9Z8vUs0kO 7FXUayQCaqJw8pDa2qo9XG0rIB2kgv8YE8PdW4grFEdepe+BUXQIc9noRbEf8CJAzFg== X-Gm-Gg: AYBFou0LWOJg9v/mIgC1fAQlxuqNeAKsbVqwdE9EViWThjfvBcdQI4f1bBCbtfpzHXN 6MywaXeIkBbtjbcD2KvDhEBGLtxsuq5gT+WXI48utKjwXiejuygdRYbC/Slc9x6Itvh9nks5wSJ fZxscneBUW2n/IKWkcIh2KKkwBjeG55pNcfww2TKF5aphlhitYLmNtDPZzYrLzqasQifQk/1SAq q1FLb7VhnFe/xbmthFthscWipf6cZcbDylKzNowmp0JzVe6uEMyR44qmiAsP0Le47c9LiNIGJCE BTMMyWcLqBICz7gtiwE2es6VVDiAv4EwizWUSNjDd3W+Cr2ANLDfH9yPOt71vyL2LdOq4bAM5Gr skTAMCxeTpTgJ6hRyvIdSWtXAoxnRT8O49Q4GCZcz0xpSCiPu7zVREVgS X-Received: by 2002:a05:620a:440d:b0:93e:a71a:5de0 with SMTP id af79cd13be357-940ef90f155mr1673961185a.26.1793129037922; Tue, 27 Oct 2026 12:23:57 -0700 (PDT) X-Received: by 2002:a05:620a:440d:b0:93e:a71a:5de0 with SMTP id af79cd13be357-940ef90f155mr1673956685a.26.1793129037296; Tue, 27 Oct 2026 12:23:57 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 02/59] hw/sd/sdcard: Keep high-capacity memory blocks at 512 bytes Date: Tue, 27 Oct 2026 20:22:43 +0100 Message-ID: <20261027192341.9197-3-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=GYyCDgXL c=1 sm=1 tr=0 ts=6ae0fa4e cx=c_pps a=qKBjSQ1v91RyAK45QCPf5w==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=FRSEYCzRAAAA:8 a=69wJf7TsAAAA:8 a=EUspDBNiAAAA:8 a=yJP4gdnfSgtB7lo5kH4A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=NFOGd7dJGGMPyQGDc5-O:22 a=H4N_Y-AU75W7NKDNhZlT:22 a=Fg1AiH1G6rFz08G2ETeA:22 X-Proofpoint-ORIG-GUID: gbrTLaEIc5HtitM8mnrO_47sEvY6m2sy X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3NyBTYWx0ZWRfX5LxuM+vqPeNy G0rhxPapbEcJ4G7YScJHmTuueFkKO1KdcLyPI2v+qL1BIycO3Ehv5syNQ+hEdsQNy7TXlf+eGZ3 EKDeubI0CdBJItaSDy6sEtxB4R0uiU/i6Xn1z8epfHI+GYIfKB0zc8zxxvSc37trdPnFRTtLJhE 5Bo+6OggWqIFwtTxmQF9uHHBBpAMFtn6qPPPwiyqxGAnVlg7WayOsf+/+/W3Kne3wiGOYDPxAZB /Vt6jplE4gEy5CRpTdc7R2ZakxhkmZHtP1JEGHmNBUYnlNEfdeGlQo6w5A9BCnWfUMlpTnvXGH6 px53W8A3ETV33lRxC+2oypkulurPLCLJA0kjv1JGMug4XvrQmvFazMkwJoJE/C/DlId0tafMJv+ vjTl7VMFgqyaXT9aYx4MVgdJJBHNPozQu30fSN96uAV293wkvWvWD6xNx+6xiN+yxZLMY0WuwfN tZ9JLzGWeyHIq+VjtiA== X-Proofpoint-GUID: gbrTLaEIc5HtitM8mnrO_47sEvY6m2sy X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3NyBTYWx0ZWRfX/1DRIf5+8qh0 qutWCxBKS+gcOYtPn/RWc+UX6sAslUqoo8OPyISkJ48D5LP2045PYrJ6AhzXXw9mZ6LTBokvgEZ WQKl/kjDZ7VIn31HHACa7jQxPUDIEdU= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 spamscore=0 lowpriorityscore=0 adultscore=0 bulkscore=0 malwarescore=0 impostorscore=0 phishscore=0 clxscore=1015 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270077 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129071078154100 From: Bin Meng SDHC and SDXC memory commands always transfer 512-byte blocks regardless of the length selected by CMD16. QEMU stores that selected length for LOCK_UNLOCK but also used it directly for several memory command paths. Route single- and multi-block memory sizing through the existing helper that distinguishes high-capacity cards from SDSC. This lets PolarFire SoC HSS validate the complete GPT header and locate its boot partition instead of receiving only the eight-byte signature. Cc: qemu-stable@nongnu.org Fixes: 2d7adea4fe57 ("hw/sd: Support SDHC size cards") Signed-off-by: Bin Meng Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-ID: <20261014012323.322790-12-bin.meng@processmission.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/sd/sd.c | 43 +++++++++++++++++++++++++------------------ 1 file changed, 25 insertions(+), 18 deletions(-) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index b1b3b1226a76..0083b8e064e9 100644 --- a/hw/sd/sd.c +++ b/hw/sd/sd.c @@ -1975,18 +1975,20 @@ static sd_rsp_type_t sd_cmd_SET_BLOCKLEN(SDState *s= d, SDRequest req) static sd_rsp_type_t sd_cmd_READ_SINGLE_BLOCK(SDState *sd, SDRequest req) { uint64_t addr; + uint32_t blk_len; =20 if (sd->state !=3D sd_transfer_state) { return sd_invalid_state_for_cmd(sd, req); } =20 + blk_len =3D sd_blk_len(sd); addr =3D sd_req_get_address(sd, req); - if (!address_in_range(sd, "READ_SINGLE_BLOCK", addr, sd->blk_len)) { + if (!address_in_range(sd, "READ_SINGLE_BLOCK", addr, blk_len)) { return sd_r1; } =20 - sd_blk_read(sd, addr, sd->blk_len); - return sd_cmd_to_sendingdata(sd, req, addr, NULL, sd->blk_len); + sd_blk_read(sd, addr, blk_len); + return sd_cmd_to_sendingdata(sd, req, addr, NULL, blk_len); } =20 /* CMD19 */ @@ -2025,13 +2027,15 @@ static sd_rsp_type_t sd_cmd_SET_BLOCK_COUNT(SDState= *sd, SDRequest req) static sd_rsp_type_t sd_cmd_WRITE_SINGLE_BLOCK(SDState *sd, SDRequest req) { uint64_t addr; + uint32_t blk_len; =20 if (sd->state !=3D sd_transfer_state) { return sd_invalid_state_for_cmd(sd, req); } =20 + blk_len =3D sd_blk_len(sd); addr =3D sd_req_get_address(sd, req); - if (!address_in_range(sd, "WRITE_SINGLE_BLOCK", addr, sd->blk_len)) { + if (!address_in_range(sd, "WRITE_SINGLE_BLOCK", addr, blk_len)) { return sd_r1; } =20 @@ -2045,7 +2049,7 @@ static sd_rsp_type_t sd_cmd_WRITE_SINGLE_BLOCK(SDStat= e *sd, SDRequest req) } =20 sd->blk_written =3D 0; - return sd_cmd_to_receivingdata(sd, req, addr, sd->blk_len); + return sd_cmd_to_receivingdata(sd, req, addr, blk_len); } =20 /* CMD26 */ @@ -2372,7 +2376,7 @@ static sd_rsp_type_t sd_normal_command(SDState *sd, S= DRequest req) switch (sd->state) { case sd_transfer_state: =20 - if (!address_in_range(sd, "READ_BLOCK", addr, sd->blk_len)) { + if (!address_in_range(sd, "READ_BLOCK", addr, sd_blk_len(sd)))= { return sd_r1; } =20 @@ -2392,7 +2396,8 @@ static sd_rsp_type_t sd_normal_command(SDState *sd, S= DRequest req) switch (sd->state) { case sd_transfer_state: =20 - if (!address_in_range(sd, "WRITE_BLOCK", addr, sd->blk_len)) { + if (!address_in_range(sd, "WRITE_BLOCK", addr, + sd_blk_len(sd))) { return sd_r1; } =20 @@ -2662,6 +2667,7 @@ static void sdcard_write_data_dump(const char *proto,= const char *cmd_desc, static size_t sd_write_data(SDState *sd, const void *buf, size_t length) { unsigned int partition_access; + uint32_t blk_len; int i; const uint8_t *value =3D buf; =20 @@ -2678,6 +2684,7 @@ static size_t sd_write_data(SDState *sd, const void *= buf, size_t length) if (sd->card_status & (ADDRESS_ERROR | WP_VIOLATION)) return length; =20 + blk_len =3D sd_blk_len(sd); sdcard_write_data_dump(sd->proto->name, sd->last_cmd_name, sd->current_cmd, sd->data_offset, buf, length); @@ -2704,7 +2711,7 @@ static size_t sd_write_data(SDState *sd, const void *= buf, size_t length) if (sd->data_offset =3D=3D 0) { /* Start of the block - let's check the address is valid */ if (!address_in_range(sd, "WRITE_MULTIPLE_BLOCK", - sd->data_start, sd->blk_len)) { + sd->data_start, blk_len)) { break; } if (sd->size <=3D SDSC_MAX_CAPACITY) { @@ -2715,7 +2722,7 @@ static size_t sd_write_data(SDState *sd, const void *= buf, size_t length) } } sd->data[sd->data_offset++] =3D value[0]; - if (sd->data_offset >=3D sd->blk_len) { + if (sd->data_offset >=3D blk_len) { /* TODO: Check CRC before committing */ sd->state =3D sd_programming_state; partition_access =3D sd->ext_csd[EXT_CSD_PART_CONFIG] @@ -2726,7 +2733,7 @@ static size_t sd_write_data(SDState *sd, const void *= buf, size_t length) sd_blk_write(sd, sd->data_start, sd->data_offset); } sd->blk_written++; - sd->data_start +=3D sd->blk_len; + sd->data_start +=3D blk_len; sd->data_offset =3D 0; sd->csd[14] |=3D 0x40; =20 @@ -2810,7 +2817,7 @@ static size_t sd_read_data(SDState *sd, void *buf, si= ze_t length) /* TODO: Append CRCs */ const uint8_t dummy_byte =3D 0x00; unsigned int partition_access; - uint32_t io_len; + uint32_t blk_len; uint8_t *value =3D buf; =20 if (!sd->blk || !blk_is_inserted(sd->blk)) { @@ -2830,11 +2837,11 @@ static size_t sd_read_data(SDState *sd, void *buf, = size_t length) return length; } =20 - io_len =3D sd_blk_len(sd); + blk_len =3D sd_blk_len(sd); =20 trace_sdcard_read_data(sd->proto->name, sd->last_cmd_name, sd->current_cmd, - sd->data_offset, sd->data_size, io_len); + sd->data_offset, sd->data_size, blk_len); switch (sd->current_cmd) { case 6: /* CMD6: SWITCH_FUNCTION */ case 8: /* CMD8: SEND_EXT_CSD */ @@ -2859,22 +2866,22 @@ static size_t sd_read_data(SDState *sd, void *buf, = size_t length) =20 if (sd->data_offset =3D=3D 0) { if (!address_in_range(sd, "READ_MULTIPLE_BLOCK", - sd->data_start, io_len)) { + sd->data_start, blk_len)) { *value =3D dummy_byte; return length; } partition_access =3D sd->ext_csd[EXT_CSD_PART_CONFIG] & EXT_CSD_PART_CONFIG_ACC_MASK; if (partition_access =3D=3D EXT_CSD_PART_CONFIG_ACC_RPMB) { - emmc_rpmb_blk_read(sd, sd->data_start, io_len); + emmc_rpmb_blk_read(sd, sd->data_start, blk_len); } else { - sd_blk_read(sd, sd->data_start, io_len); + sd_blk_read(sd, sd->data_start, blk_len); } } *value =3D sd->data[sd->data_offset++]; =20 - if (sd->data_offset >=3D io_len) { - sd->data_start +=3D io_len; + if (sd->data_offset >=3D blk_len) { + sd->data_start +=3D blk_len; sd->data_offset =3D 0; =20 if (sd->multi_blk_cnt !=3D 0) { --=20 2.55.0 From nobody Mon Nov 23 04:26:24 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129095; cv=none; d=zohomail.com; s=zohoarc; b=R1P2I2C9wUfJcvBLRJDECJgkJghjzBxeGS7hsfp961LdQ2AvokHvUFgzxGvPWQH07bhl1ex8sJ8ue20QmoJVw0yD2x7kwOwxRBpVsSPgr3KF9CEPy4yRRBBKoNja0Sdfr+ua0e/EWTLYoU1FQCa0h0BeWCQCG/sseT8A6+tQlr0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129095; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=6AdqAo4llWmP1rCkVU0PS97jOSHLKkWsUiZ31bCQoIY=; b=DJxieIG8I7drJuCOLNwlIRUcQ/+5MrH6BqnavO7jG8BxncYlpnbrbGo6kTHoa4Www/h/l43tpiuDRIiZg9qqL62szLQ/kThONLUi228TZjdfJmFS7hiKtS97JhtMgynFvSflhXUYATF2ME/28+5m2HX8N75nmLnSZPJpTTCuj9M= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129095377356.5521852033344; Tue, 27 Oct 2026 12:24:55 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmmR-00018w-77; Tue, 27 Oct 2026 15:24:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmmG-00015T-GK for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:24:10 -0400 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 1xLmmE-0001mr-VE for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:24:08 -0400 Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIIA433486342 for ; Tue, 27 Oct 2026 19:24:05 GMT Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjjbtc2nx-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:24:05 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-93f559420f3so13639585a.0 for ; Tue, 27 Oct 2026 12:24:05 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a94e1dcd1asm2442115e9.7.2026.10.27.12.24.03 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:24:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 6AdqAo4llWmP1rCkVU0PS97jOSHLKkWsUiZ31bCQoIY=; b=FNFe5M5LmskZfQPS L49ODenY8iE3JgbHT7WlU7nJ63mh5j2yp28fxJOfdBpo8DtPn6F/J8KChzrD2/vd vENYXwxpFMpakXGmC2Pecu025heJ/GtEsxUcroYbUArbHJvWY0vVp6UkPCH6eWp7 7uQBjP7OqxnEn4UAhE6y6VkRyme5tXrHbNjxiOO/ONSxr96jKQ9XNsdS6JsYsx4Q XqHOklrFB/tDK1i2dyrHYLLIbTZRcBXsUQg9W7YJTqFfwuqb7hbcaU2UvcNxOgCB mgHwZh+xPOWYjf+iofWO69BbYWlckOipWyPDfd246F+RtrBN9Zw5Jq7XR2YKHdI+ Wvnl1g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129045; x=1793733845; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=6AdqAo4llWmP1rCkVU0PS97jOSHLKkWsUiZ31bCQoIY=; b=DY2BvmTw/nq3q92fjQMYf9xG/wMS0HeJZGnEHP9wwwIwFVKAO6nxFkgs3CxH2lHtwK VnYTR/xT8sYWzjLWvETvTSxIQmtmpT4bO/wHHo7q/DHINqDcMnQAn1QYcQuPlStcpmDF 46YGr1Npi/q8ePsHxsCuB4yRIwlLPCbxap0zsHMNetFdvc2VWvexvR8HCce3ni8/+dRy F0pKe0vR64QL5J8CcSy6Z88JsKXCzKFTc8Hm8AZabd7TcuCgBzQiWyQNuE6nTqb4gIou DEq6yN2oRr0enJGSaX3rBu9jb6s6QLDbuaCIskVfb8cQkQVrLFHw+q2SqCUcmynu54rm i4vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129045; x=1793733845; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=6AdqAo4llWmP1rCkVU0PS97jOSHLKkWsUiZ31bCQoIY=; b=MOeTOuBq3k0yWlLh4QZrw2X4m6US4y2AXwUJBahBbvG3EptkHR4nkBBV9T+VGJfgnq 7PYE0Nds31hfQzN5zuWsRVTTNpR7vIoL+icn5FeRqLEQNNVoXhhljRKabEhWcepErc3L 4IwE5Xiz6W2b/T5omVE/y/UnvDiV+MebfVmVikqH1nVyPeikwjee0zeeiq7/ON9E0ynW nlVslI7MQzFUPmTuIkSGOBwq1v4hGZcDu6ZD0TiGyfNDYcGmxpFd47dSnmJNfMzt5G6H zre7n5AYm+JlWty+dae1y0yVRB+P61e+bbRFHCNZhuRcq3S1+c05YDNnj47Fe1KLHOUn zKgg== X-Gm-Message-State: AFq9FYLYacW31EJptxPaw708XuxMMG473PlQA27myxujDojsrSkzlOFo Rr7FEHIkWV8ngMm7TtmXhVnt6up3sH6QBGWu8wQlYZz145fbpdZaqlPMMSfCGv4X/MUHjC9KYrn +Tnt//aS6LUfXhxvmfs6Lnyi7KjEWMnWxm+LQM0pWwFVlm9N5wuHULFntBRlHtRa/xw== X-Gm-Gg: AYBFou2CCGWmVmA8gv0qKaJZu4knT7MoUzuCKvsUMT+nng5YSA2pfAQv5uBarzsxMSt 8WfCXgRb36q24JXpi6CBzlX6krZz3nRtkjkk3bXD7AExHPGXpPzbWchXtXFKOXGnYrvXD32a1KU zsX7nQ83nsR7MXr76vpaCFxMN1Nzp3ijKzoq6D3eIC6quG51gj9IGk3CYwHAH8MZ8GuHDTdFSf7 duEDHgFeLfHTK8zOwBDfJLnVUTCpV+2safQMATrCWwJ96SSj+wIvnB4yHTtUi8OEt4ijnLZxC/1 ArypS151X9dd4M6rzFd9ZHyOY1KXjxP8sybrcAJXHm5rHiJ6vdkuMzwiKTj/WtUjRvlSDCZpeXo f/RoeP6Wc7FLI+fn7HRzj8evYjxYJ0SMhv+fcQCZC4leAuGDSaNZQCZS7 X-Received: by 2002:a05:620a:a407:10b0:943:e946:8c6d with SMTP id af79cd13be357-943e9468f08mr778782085a.72.1793129044758; Tue, 27 Oct 2026 12:24:04 -0700 (PDT) X-Received: by 2002:a05:620a:a407:10b0:943:e946:8c6d with SMTP id af79cd13be357-943e9468f08mr778778585a.72.1793129044172; Tue, 27 Oct 2026 12:24:04 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 03/59] hw/watchdog/wdt_imx2: Preserve own locked bits in WCR Date: Tue, 27 Oct 2026 20:22:44 +0100 Message-ID: <20261027192341.9197-4-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3NyBTYWx0ZWRfX9qQCMBuM7SFg H/gaOg91EGk2qbqAK7alAn4oibrkzfRJKujAtEG8kd+IEpOGRYDmQxK5I4nZZzl7ROILoEI3LFT X2R/4OT0xd6BMDTacC38V7kapdu6Aa4= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3NyBTYWx0ZWRfX55M0/CpXnwjI uLXJiVXFWm9qQV6oVB1vg2sShtLgpDs4h+E6tr0b/8jEsJzHmr3NB/0PDPPVYmkzrO8+Q70Bq0e WNImS+J17Hi07FDfg71OTEI83zwEN5dWa7pVfgz7wR53yYKL1uC/b/pP7ppTIthCxh5yNT/ox3T EsdFOAb9mqMfzisXTpbNNfcLHERgczN52/962W9Fhu87WiZmJJ7ckdoDdXDDh87FojUPU4b2BJx cUhAqa4AyB2dnaAp4E75c1N04v7Cib74jkf3mv8ZMR+44JQsr7MpJnoJb5PYjNL1s+DG58ctOAb 0Fla+ziapld7d+E8zDN6rsgbw8sdtW7Yl9gaB4WWvNxWHExjsCnwIl8xxYaA9sOXjBZxDsBDmHd 7Yxhx9YR6WdvU/RI1Xiu5wIZHpACyIQQZ2mLJbILYYT39DoSFikWEt86cPecoycvzWtdiS9/hFu YNR9RFVcjuUKqXALeBw== X-Proofpoint-ORIG-GUID: TyW3ytFlf4pfUIzi-LzeE8M7WEeA6gjW X-Proofpoint-GUID: TyW3ytFlf4pfUIzi-LzeE8M7WEeA6gjW X-Authority-Analysis: v=2.4 cv=XaIcX455 c=1 sm=1 tr=0 ts=6ae0fa55 cx=c_pps a=qKBjSQ1v91RyAK45QCPf5w==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=pGLkceISAAAA:8 a=69wJf7TsAAAA:8 a=FRSEYCzRAAAA:8 a=KKAkSRfTAAAA:8 a=EUspDBNiAAAA:8 a=OQTJR_iXj6gm-c6kepUA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=NFOGd7dJGGMPyQGDc5-O:22 a=Fg1AiH1G6rFz08G2ETeA:22 a=H4N_Y-AU75W7NKDNhZlT:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 phishscore=0 spamscore=0 bulkscore=0 priorityscore=1501 clxscore=1015 lowpriorityscore=0 suspectscore=0 impostorscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270077 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129097326154100 From: Bernhard Beschow Apparently there is a typo in the WCR locked bits handling: The locked values for s->wcr must come from itself rather than from s->wicr, so fix that. Without it, guests such as u-boot may experience inadvertent reboots when configuring the WCR register. Cc: qemu-stable@nongnu.org Fixes: daca13d495a1 ("hw/watchdog: Implement full i.MX watchdog support") Reviewed-by: Bin Meng Reviewed-by: Peter Maydell Signed-off-by: Bernhard Beschow Message-ID: <20261006083445.30362-2-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/watchdog/wdt_imx2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/watchdog/wdt_imx2.c b/hw/watchdog/wdt_imx2.c index c83d4107c19f..3283990bbf88 100644 --- a/hw/watchdog/wdt_imx2.c +++ b/hw/watchdog/wdt_imx2.c @@ -156,18 +156,18 @@ static void imx2_wdt_write(void *opaque, hwaddr addr, case IMX2_WDT_WCR: if (s->wcr_locked) { value &=3D ~IMX2_WDT_WCR_LOCK_MASK; - value |=3D (s->wicr & IMX2_WDT_WCR_LOCK_MASK); + value |=3D (s->wcr & IMX2_WDT_WCR_LOCK_MASK); } s->wcr_locked =3D true; if (s->wcr_wde_locked) { value &=3D ~IMX2_WDT_WCR_WDE; - value |=3D (s->wicr & ~IMX2_WDT_WCR_WDE); + value |=3D (s->wcr & ~IMX2_WDT_WCR_WDE); } else if (value & IMX2_WDT_WCR_WDE) { s->wcr_wde_locked =3D true; } if (s->wcr_wdt_locked) { value &=3D ~IMX2_WDT_WCR_WDT; - value |=3D (s->wicr & ~IMX2_WDT_WCR_WDT); + value |=3D (s->wcr & ~IMX2_WDT_WCR_WDT); } else if (value & IMX2_WDT_WCR_WDT) { s->wcr_wdt_locked =3D true; } --=20 2.55.0 From nobody Mon Nov 23 04:26:24 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129069; cv=none; d=zohomail.com; s=zohoarc; b=a/AAkKqJLtJwXDl2EAxkl4N4FjNAvpwLTiNQC+mD5t8/et+o7xPZKrmueL5cA6oRM/uUQ5ViSmHTvFWPvP04IEadvPoh+xM+U0kKx495h2Betyzl8eWjXe+Fc0kykW3ou+Gpr0hyodEgnpkPQsSoNW8ld8+H7lNRhlmqepWkolQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129069; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=T8s0fnPifKAzRNUMw/DZqxbEDA4l//VDmIcbiHGjQ1Q=; b=j1ybIU5bMYYwij04TWOiOmz+A9zX1x4ViSxldi2DhlSVnslHxP/JNfU5V6Yurtx75Si1h2G+tGf9slREos8WH5efvCAMNTkTGHvgt5kz0pr+S1i2rh6iuZQv1dIRGc7QZ8d0AsPRk6VxTnU/lc2TA3bvmetsNIc/3PkNdttTve8= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129069351243.20141800210433; Tue, 27 Oct 2026 12:24:29 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmmU-0001GT-KR; Tue, 27 Oct 2026 15:24:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmmO-000183-J0 for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:24:17 -0400 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 1xLmmL-0001nE-Au for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:24:15 -0400 Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHODZ3553869 for ; Tue, 27 Oct 2026 19:24:12 GMT Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjqw22wcr-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:24:12 +0000 (GMT) Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-93f2373e9b4so13759185a.1 for ; Tue, 27 Oct 2026 12:24:12 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a94e6b8290sm2952895e9.9.2026.10.27.12.24.10 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:24:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= T8s0fnPifKAzRNUMw/DZqxbEDA4l//VDmIcbiHGjQ1Q=; b=IyEckdRRpMiTUL8E 6ZdJ2oLTBttO5r27Ak/GY1i5epSG+snMjUHYqPkifVu26BGjD2JWX4hXgo1Z4tXW pY80EWVIdb0CQD/u/lX14h/00DAo68zm3ghHIZeQmtNcjNXshKxHRqoGDIr9KJ56 7jGD4Trmvnuhe5wzdb1n7ajTyQ3rAXixO3giZ0rMET4VwKpJ7Lv5vd0YeypxiACH SQpYCc+6IbeK6DvdxV9U8afK1NkygTRZQsTdwRmwk6uLRoWLTzksktvEEKpiCVxK w/fj6Al3uJ6Mr4frab3ptjQRVyAPncNI8lWMyDJOjX0sGJiq+rq5No9DMqAZU+TA 2MmwSw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129052; x=1793733852; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=T8s0fnPifKAzRNUMw/DZqxbEDA4l//VDmIcbiHGjQ1Q=; b=X8FFSeFVb3TQtB9+7o+UDGW/IiaoaNCja5wU0gvS1UEO2GTz/oqbHx8fMAB2ddh2uG 6c1700vvccO7fluFto8gcmE5N5dVeRsjnyDSJppDnX8zDi5qiAAJCXAL09FO7ogJ1Uiu PWevJmLmvkL55kg+8y9bMy8aPYhaek3EX+y4ONlx4shFr2wb12K1ikgnowyWoQvPVV5W qsx+Nkco0xPfWwKyDuuqnY88WDTmpV8Dqaq8HyWFc/2+qFJowfUYENqbW32atMW6/hhn CikuqaUPdyICeFqLM+Eg6+UJaEXSJ+LrnbAngepv3cDQcRUGMPYiwImGpXDHAs2/Wspv ZkUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129052; x=1793733852; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=T8s0fnPifKAzRNUMw/DZqxbEDA4l//VDmIcbiHGjQ1Q=; b=ERn4SUY8QQSltrad71xWs9y2mEjA4yX9HEqmyjkJ9omyi062hEcSqy9tmtf+ahq0ca 8n5hGLPBAps73D/KuUSYvTrZ05NwH8rNntZqI1+O/LFVJrj2qVy32zyeCR8Xuu6GS8Me MUVddnno91na1s4eNsJ/qxjI2TFkUtNSXW2EQxGAfLdZhRllNcyNBJrLblx3oQktK/1a FttL7HsUL4gKH0jUBBjpJeIzKSd68Co8QUD4L+2Sp51HKqneA0ncjNwi2eDFvUiH2DbH 88aNXdp7lCbTDu0ckB24rVMawByVJN01KLupwy6thleHRxLA78FFBLWUEu6njngRre9L zR9Q== X-Gm-Message-State: AFq9FYInpq52qqgGtpej2LL78F5vYYTjKICyeNYaBlnpxjgC1kpDgFaK Cr7E7LtGpnRzopzeBnullxBj2RR0f8AlP65iJOi3VwkagPKVjj1dWcXKZ0ndpnjQSljPoggg+Ty j3FGspD+TFja6TSKucJZ/l7dxiQtorIIEgLMQ/iS8nrI4drcDrzoWC9C+caMpCBZOWA== X-Gm-Gg: AYBFou2J+WWXFryHsQ8Az/bjcRBcCEoBEHYF/K5Vx4cuT/2QTkTuBGqbw8fN+Mb+m0n a01J9RqhdKrkGZfhXpbhle06fi6UgDL9grY2PayWce5pqtW6PiICWMWLnAmOv2hKNX4laxc1k4I joKldJqizdYvc6I/jTl3jhrckINmg9Xj+9+EmGSjdH8cWJpYMivFUe5yBQdHQ7ZXpHHVks6ywB1 emQ8Y2ngSRJ3tEdaqF0xITeizjqaO0TPODMBZYM6xc7751aa2U8fF82lla8jBKdsG2FA5o3JPPe U+InGCOap6HYKvbU+1dvgl4eHng94+gpkuBHvSy0V8jl2vbXjU2SLEKW38Lo4BLxRNQWLzBIrLh AhpWjzNMwVII+iam/1RQ5V2CRh1SApcD174Me6d9/IPNygJCjLRa1xlEC X-Received: by 2002:a05:620a:4413:b0:93a:2611:270f with SMTP id af79cd13be357-940ef913c7amr1584500985a.13.1793129051723; Tue, 27 Oct 2026 12:24:11 -0700 (PDT) X-Received: by 2002:a05:620a:4413:b0:93a:2611:270f with SMTP id af79cd13be357-940ef913c7amr1584496585a.13.1793129051202; Tue, 27 Oct 2026 12:24:11 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 04/59] hw/watchdog/wdt_imx2: Fix handling of write one once WCR bits Date: Tue, 27 Oct 2026 20:22:45 +0100 Message-ID: <20261027192341.9197-5-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3NyBTYWx0ZWRfX6AUgELWh5iaQ h4FW0fdawalz+/s6dyeSYSBNW6xutW0FBuueGSW9DpPOtnuLGKP4E6IbkwjlA9lS2+341wFTtYK grbVxfsZqF0U1ApONkldkPzWl1aT0jSe6MKStLjGDI4v1I8x1RE6NqYPHFm+O3brWe5T+iB3jQG fldrIWsHT2fH4EGsxLDAQYEiCmB8E8DXjV4s1dmMGZbjYnwtyy2qktw80vhiNY+d8BiBafwywiU J7qrvrw0CucQAG3FOGKOm4Kkg+a1WnzmaSBgNfaR2OWFJ7VHEiT0wTipP7Tj6wArPA+Gmy4Pqzu IRGtA3FhlCsq7lv6pbV3aFBIlSQRGXydyz/LjoWhCDsHygauyfhF6rjIZxexpLopVhIXbH/J35X qM2huJt4pspgT1anO0Ev+j8Kay0U0vw79xIF1sTv7bxMrRjAMD738DcNyQNtMYt8ZvOyfATpxBX if5Fskp8AMei6lDWO8Q== X-Proofpoint-GUID: EZsCxf47i-A-DFfrkA_okgMcAKwiqneR X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3NyBTYWx0ZWRfX7mafzEQ+DDL1 Yc7Cai24DW/+s6lwKVZP3sas8/IwCikUPJ5Gmm0wcW9uYbusmceDhXXP8IiC5ldi6v7lqKaDb3W 2/JxyFEWs2BCgoNgI5kazWNFCxnhjLg= X-Authority-Analysis: v=2.4 cv=PsYG/AM3 c=1 sm=1 tr=0 ts=6ae0fa5c cx=c_pps a=hnmNkyzTK/kJ09Xio7VxxA==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=pGLkceISAAAA:8 a=69wJf7TsAAAA:8 a=FRSEYCzRAAAA:8 a=KKAkSRfTAAAA:8 a=EUspDBNiAAAA:8 a=OQTJR_iXj6gm-c6kepUA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=PEH46H7Ffwr30OY-TuGO:22 a=Fg1AiH1G6rFz08G2ETeA:22 a=H4N_Y-AU75W7NKDNhZlT:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-ORIG-GUID: EZsCxf47i-A-DFfrkA_okgMcAKwiqneR X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 spamscore=0 phishscore=0 adultscore=0 lowpriorityscore=0 priorityscore=1501 bulkscore=0 impostorscore=0 clxscore=1015 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270077 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129071487158500 From: Bernhard Beschow In locked state, the WDE and WDT bits of the WCR register are one and need to be preserved when written. At the moment, the logic is reversed such that all but the locked bits are preserved in locked state. Fix that. Cc: qemu-stable@nongnu.org Fixes: daca13d495a1 ("hw/watchdog: Implement full i.MX watchdog support") Reported-by: Bin Meng Reviewed-by: Bin Meng Reviewed-by: Peter Maydell Signed-off-by: Bernhard Beschow Message-ID: <20261006083445.30362-3-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/watchdog/wdt_imx2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/watchdog/wdt_imx2.c b/hw/watchdog/wdt_imx2.c index 3283990bbf88..d897ff6e52b0 100644 --- a/hw/watchdog/wdt_imx2.c +++ b/hw/watchdog/wdt_imx2.c @@ -161,13 +161,13 @@ static void imx2_wdt_write(void *opaque, hwaddr addr, s->wcr_locked =3D true; if (s->wcr_wde_locked) { value &=3D ~IMX2_WDT_WCR_WDE; - value |=3D (s->wcr & ~IMX2_WDT_WCR_WDE); + value |=3D (s->wcr & IMX2_WDT_WCR_WDE); } else if (value & IMX2_WDT_WCR_WDE) { s->wcr_wde_locked =3D true; } if (s->wcr_wdt_locked) { value &=3D ~IMX2_WDT_WCR_WDT; - value |=3D (s->wcr & ~IMX2_WDT_WCR_WDT); + value |=3D (s->wcr & IMX2_WDT_WCR_WDT); } else if (value & IMX2_WDT_WCR_WDT) { s->wcr_wdt_locked =3D true; } --=20 2.55.0 From nobody Mon Nov 23 04:26:24 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129097; cv=none; d=zohomail.com; s=zohoarc; b=O5tyhm9AtDnl6gCvx7YY1YmAqkCvzxIlIhe5k/XHrACB4TZaJJD2YLdA9xW341IiHyqmlZ+vCKT3Oyvjmw3Xqn7kUZeRb3W8jGWoVVcpZtKXAvx99DI0EJgxIliJIoEdcjMiVW+PZS8nVL7AN87wP2Yj7+DhXyMILdZxsaitxnA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129097; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=Uy+06dFWCh9kmfbQFfAJ7+iz6nG0WFWA/XD5hnsIVl0=; b=m9aNTT855MhO38BT6p0MYYrfWqwrbMhBlB1BA2HhJGcRdHgAxAeBc6L5LXxn4F4u6QUNVWGui+krg0qAnI7q2rESAM/Sjo38ifOzOPVC77YG+WajYDthQqZdlVYSEoi6eoGkZQLuPo7aNpYYuEkUIQVrBiRx69UhG+/gysCPgEE= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129097212368.1554732534272; Tue, 27 Oct 2026 12:24:57 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmmV-0001K7-Cy; Tue, 27 Oct 2026 15:24:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmmT-0001Eo-QM for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:24:21 -0400 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 1xLmmS-0001nP-8r for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:24:21 -0400 Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHPof3553880 for ; Tue, 27 Oct 2026 19:24:19 GMT Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjqw22wd4-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:24:19 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-93f5844e383so20870185a.1 for ; Tue, 27 Oct 2026 12:24:19 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e3ebcb8e0sm23754001f8f.29.2026.10.27.12.24.17 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:24:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= Uy+06dFWCh9kmfbQFfAJ7+iz6nG0WFWA/XD5hnsIVl0=; b=h7IqoofBqM2RLCfi gXSlQvicQndLW1ojJrWDmFyWFgDf+Bxpr7yn4UniN6rMrmpeQmoTmLGuhR8zBwzY lO3zT2dOQvMokRnmO+goju64JugrYS4VAxErL9Nn7NSLRiEdbisn4g7E/CIjiDlg 0hE0xiR87/4v0fszqWgbRDh2A5KV5eSYPbEZbPggI4ZzCjpRIpAEpbsCz0qo6D7a Z8vX9ACwTHk/Utk7fAKgrVIB6dbJPOcP+kIIlX+c13EDhbKs8gbbR2HNj5iM0gsv f7bBrUfJzWcwMTfqpl6cgF3EiTSg40PMhyFw2wwx4oW2vfRbYPJf+itGIe96JLEO LE5hHg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129059; x=1793733859; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Uy+06dFWCh9kmfbQFfAJ7+iz6nG0WFWA/XD5hnsIVl0=; b=eVx5gr8q4OMjIO6xDX61anyD+bzlEBRnuJ3d4rNs3oaGLbyOYnBZJpNpxRVO61xlob nibPui2OEsuqdBiKD8VjL+sl4ApmYNV9rhdnGlPWX3g9YROCh5Ky36d3jvC0cy9lfv6d 5cw7nnQPpyZGQSr4qyTHAcIQLTMmvJssYqF6Ax10KUx+vDynPOjgHN1ey/K3P66dMKg2 r18d+tP/JjfTq0Fmoj3yuNdwLy9emtMA+Eucv8+MKxwUGI1k7n+Bvdnkx/0WW4cybN34 KBH05Hyyp1naGEfpyMFfIiWX71PYNoaRij/jECvDfhxT/l74iwedzhpmxVrBkHS8BVP1 qoDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129059; x=1793733859; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=Uy+06dFWCh9kmfbQFfAJ7+iz6nG0WFWA/XD5hnsIVl0=; b=M37DHlC0O567RKa2k98M/FSL62a7NLjmv/kATv+SHYA3c3NIWfDz3+KXi43AKYDsU1 YyYQAz0m243bqeGluKeTqM8n9BfffMH+Ck8Yjw47Sty6la0iT8IG4sUP7H4A/u2Z9N2K TlckFiNHj9C5pe5ZWq2Z/HivTpfM264uStpE6CUId8Pbbjj56i6Opft9L7s+775OsACV KyKmBOWIJEOlepqXd8Yezem1ZPsO/RO5rMMfNacyZjl1HxRfKR+hECSbO6D+lzNTH54l clgWe5jbwvfXcL3nbBhu0TKsZl+re2YwT3ZaaxOJq+Nz3nCvvtL6Yq1YzR4V++n55mH5 fEMg== X-Gm-Message-State: AFq9FYLEOkXPnMCO/cnrl8Rhfu1SwTsg0l//BtBGIokpKnXYC39TcBAD z2HCoMEGNZQgN4+s4p2n1p+Z+57KuMpZZTw/ve6KI/M8rOjSKVxIcrX18senIRChVMWAMj+0DSi YhgVqJCYjZcrLIzumM1PrEEDlFJbWP/N493s5wTjAqYV4ngdkPy4XaEb1AE/dBUjsEQ== X-Gm-Gg: AYBFou1/YKvUEgFsGS5oLPsktJsNnDSkCDuKp4k14pkocG3mbG3DjEh04p2O0/nn9lA +GCoU1Q6WzYIFBGxo9t5GDzd/F7prj2BsX+G7Oe1Tzwy+JHnd4EmdM4TV52XQVE+C1KrnLfYBwC FGwHqb7MfSco2SdubJX3l53s6SzL9xIeodoMVSNRzKgL98Zy8rsO195za/Xlx6WA1wdGwdJRhUd 6tiZrFxrcLYkDfjxWJT6c0TYuW+EaNr7L+Fyl0RF53Mz/AaTNjl9jyXyBtXQVBpCkhU1NSnS0af I0uLO5FRjPkRdIcwwA142WoFGHdWAbZHpPj37oiYI3IsoMHc7dSU7xEYzKurP1TZWJuS9JcQE2N pDPX05+uvmP2OlousTCS8iWC0nVo++M6GF6MeFjGjE8fbzsBUmLIBKvPW X-Received: by 2002:a05:620a:8004:b0:93c:b10:7243 with SMTP id af79cd13be357-940ef7cd3c8mr1549906585a.5.1793129058655; Tue, 27 Oct 2026 12:24:18 -0700 (PDT) X-Received: by 2002:a05:620a:8004:b0:93c:b10:7243 with SMTP id af79cd13be357-940ef7cd3c8mr1549902185a.5.1793129057945; Tue, 27 Oct 2026 12:24:17 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 05/59] hw/watchdog/wdt_imx2: Clear WDT lock on reset Date: Tue, 27 Oct 2026 20:22:46 +0100 Message-ID: <20261027192341.9197-6-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3NyBTYWx0ZWRfX355Tx3l+qPF1 BNlYgb9YS10M2Ht7rIJpJCGFSs2WqTjdcXSgo7Xu/h0rb2R+pYj6wAxUQiGQxSCCfbKjopIEqry UiJ59iMyTXIieSD9uegRoMW5unCOX4uM+y/NSXfM1JTfaBjrWZ3wexXzQCdvSAGDIOnpahZNwnm eO4kpE94AcwKlkzZwqT1TtBebRC3Yrgt0iE54rabq+ql4flJuM+50XctF9LdNGeCeie+sdBRgT0 Hv8kr87aHVW7rEbzgefiRbAWgKHhHlowAJXDGJeN9thHIUeo/ElzPRMxhZk7H5Acpbhr0Jz1WXR HyyBJ6fkzZFj7dN6UQvvONZqXCPUQhburfGW2pqRrXXGUPKg7EodjYE9zLeFAdffScZyarxrzZ8 k5OiyUuhZJY7TB1ijnloe14jzvnbM9JIgk6dJr18jWawD5Ne86IUVKymoMA/0RouTdgNZbou2PF sGicz/UAPmz2By8RaHg== X-Proofpoint-GUID: _YGjLK6vDIms4jUpRU67EvCTCg_w_fhd X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3NyBTYWx0ZWRfX09l98oypHkk3 lkAbpupq684tLzn5RUlJzbu6Wf8fjt9HU2u3+DCmqio4cgKJpyckRFANnXoo7887BAouT3W2HLv T8ryTbIHSEuV/c1pOMLFmGVLH4CPk5c= X-Authority-Analysis: v=2.4 cv=PsYG/AM3 c=1 sm=1 tr=0 ts=6ae0fa63 cx=c_pps a=qKBjSQ1v91RyAK45QCPf5w==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=pGLkceISAAAA:8 a=69wJf7TsAAAA:8 a=KKAkSRfTAAAA:8 a=FRSEYCzRAAAA:8 a=EUspDBNiAAAA:8 a=TJlcyGJ42DonENT5ft8A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=NFOGd7dJGGMPyQGDc5-O:22 a=Fg1AiH1G6rFz08G2ETeA:22 a=cvBusfyB2V15izCimMoJ:22 a=H4N_Y-AU75W7NKDNhZlT:22 X-Proofpoint-ORIG-GUID: _YGjLK6vDIms4jUpRU67EvCTCg_w_fhd X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 spamscore=0 phishscore=0 adultscore=0 lowpriorityscore=0 priorityscore=1501 bulkscore=0 impostorscore=0 clxscore=1015 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270077 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129099512154100 From: Bernhard Beschow The WDT bit gets reset and becomes writeable after power on reset which imx2_wdt_reset() represents. While the WDT bit in the WCR register already gets reset, its locked attribute wasn't. Fix this inconsistency by adding the missing unlock of its locked attribute. Cc: qemu-stable@nongnu.org Fixes: daca13d495a1 ("hw/watchdog: Implement full i.MX watchdog support") Reported-by: Peter Maydell Reviewed-by: Bin Meng Reviewed-by: Peter Maydell Signed-off-by: Bernhard Beschow Message-ID: <20261006083445.30362-4-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- include/hw/watchdog/wdt_imx2.h | 2 +- hw/watchdog/wdt_imx2.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/hw/watchdog/wdt_imx2.h b/include/hw/watchdog/wdt_imx2.h index ad36b8820d84..fc01fc46e736 100644 --- a/include/hw/watchdog/wdt_imx2.h +++ b/include/hw/watchdog/wdt_imx2.h @@ -85,7 +85,7 @@ struct IMX2WdtState { =20 bool wcr_locked; /* affects WDZST, WDBG, and WDW */ bool wcr_wde_locked; /* affects WDE */ - bool wcr_wdt_locked; /* affects WDT (never cleared) */ + bool wcr_wdt_locked; /* affects WDT, cleared on POR */ }; =20 #endif /* WDT_IMX2_H */ diff --git a/hw/watchdog/wdt_imx2.c b/hw/watchdog/wdt_imx2.c index d897ff6e52b0..a15f452d4890 100644 --- a/hw/watchdog/wdt_imx2.c +++ b/hw/watchdog/wdt_imx2.c @@ -60,6 +60,7 @@ static void imx2_wdt_reset(DeviceState *dev) s->wicr_locked =3D false; s->wcr_locked =3D false; s->wcr_wde_locked =3D false; + s->wcr_wdt_locked =3D false; =20 s->wcr =3D IMX2_WDT_WCR_WDA | IMX2_WDT_WCR_SRS; s->wsr =3D 0; --=20 2.55.0 From nobody Mon Nov 23 04:26:24 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129079; cv=none; d=zohomail.com; s=zohoarc; b=UluHO0X6mJVR7yOv9AG0B5prhtVxr3zgGQOh6m4zkPg3YSmHvBnCZWn+4/aUtqGm5BWnWNX25OVTP/YgSAzSj6X+ZiVwWZUl7oiaJVrKRxYwVAUUd7yy8DYBZpp3/tDEw44GjdYFhLC6kjVVL9dLqdi9Pz2/LCkP5hExQwTUvOc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129079; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=MUjZ8XQWa4jEU0sjHQQGBqqsaGxHNot+06srkoDCqd8=; b=OBlKHyV9z12250p3A9MIVWXwu+qgQ3U/rxBkHOc8A3l2HEylbZ5rXVswTiAwzPTKphlaxlFJ0pWjTdPBztjmilwxiGfxrgXhc67PtDtrA4A0K0/bVh5c9aRJaI37tsb39u3ZDxqcgffr0RjXVYXGAW8SHmxsKpBA1xsV6ogwo90= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129079574657.4609910789769; Tue, 27 Oct 2026 12:24:39 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmmd-0001gW-MC; Tue, 27 Oct 2026 15:24:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmmb-0001cd-P2 for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:24:29 -0400 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 1xLmmZ-0001nl-A0 for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:24:29 -0400 Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIIALI3486335 for ; Tue, 27 Oct 2026 19:24:26 GMT Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjjbtc2pq-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:24:26 +0000 (GMT) Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-93e92aad34aso29180685a.0 for ; Tue, 27 Oct 2026 12:24:25 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a952541809sm2032945e9.8.2026.10.27.12.24.23 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:24:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= MUjZ8XQWa4jEU0sjHQQGBqqsaGxHNot+06srkoDCqd8=; b=SoVToIcCSpeWap4V QtkcSlXRbWKgTeiRK+nXH0g6m/wer071l7CC1OR8nUTdd/TtpYebQGseG1U7oNDN xgXIU+qLukMfYkc+1KQTYDAsS0wj/Uut/PmYPiMxAE2Hql/OLT2/NHQ1cISRD2HF JM9vFd/ZGB+d6je/lfMxRw08M9w5h6u5Q8TJJWqMkoIOrY992OsaZ2VaqV4ZQlqG FUYE0hhc5XZlhlM9i9TqHtE5pJGGfi2vVwQy/hVpLb3pE5anUj+Cha5pH+V6urJ8 gw8AuMCuR1gQfYmxSTOwPKNFHiQYfBf4MBpVXieAnCYw2jaZkWWOdg7wnAc9lGxQ bGrOjA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129065; x=1793733865; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=MUjZ8XQWa4jEU0sjHQQGBqqsaGxHNot+06srkoDCqd8=; b=Cx+CzMrIAusyJRl8AsIcBQQ+Qmd7ZSHM0IndxObj+MRqlwsGe7dCjshAoJ6TWtkfjv K7lQOgOFnt3Sn/DbfHU2bZvhelAriwj5L/SP/Hv+IvK/wlXTJtD96G7eUC6rzg4SpyL1 KuVeo58O0mc1pw1adwsWwD4JhrE3U6LZiOqhI6Wl9D5yPMHSIrPM64HyU19y5wqSkPte qPkR3xOp6idgDO/0RaL2utx3BIw5LmFPtWXw7fMz4+syy1w6Xxvg31xvzBGvzHVCO6B1 jdrZcF0HyEQTkNc2KImK4C4ON39RdMK67fABQKzKA1VlauoMPlGRA65sHt/AJIOVW/fP ZGLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129065; x=1793733865; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=MUjZ8XQWa4jEU0sjHQQGBqqsaGxHNot+06srkoDCqd8=; b=eFAV4+8kGLrtX7e5yHUZzZU//FjVXDqZVkmu3W4U4OgjXluh/jPDlD92MZxxYcUmeI jIKT/OWr2TLvgsM54q+dto4Q3usjDq2/sBXhbhu6A6gilRpOd/FP2qWUIbiPn7HwVbUA N/q11ScHWZvp67eIq5FsHzjhPM6y1gHtDrLB8DwP9k6WQgXe+SeB1cWFBds1WpjOMFeh zx7uLo4wPUyxZ91aWu3TBby7e5jhh4Kyi9V3A95ruG0E/423tjRGNyjuScceHBwcYE5n KuVW04G0RCDSFHv7sdFeT26d1uHJ2lMNw/SH2QZFDDCcWqgU+33hqaLsQNC5ZGhU7mWj 7CXw== X-Gm-Message-State: AFq9FYJBaOb3zLIBNvLgeDkAOPI1uezekNtruofp1MCJt5LizgWsxzwz ayDrdjV1p5ezKHrNgh8t7dQgq8B+3yZLmA7A8tw29IYvWtpXU6KlIPOBxf+BT3IJMkC2XyTaqVz oPMv6Jlgj5xyCwarmpAu6xcjk0U9T9smSv6fQOdp67mgwtxkzEfOOK8+XUhxPq6Q+FA== X-Gm-Gg: AYBFou2yTZkwL3cQ8Cr/OEqQ3geQo/NaRItWMNvs4yXBWMFM0WQSgkfWWZ2KY1xQ105 VurS/Ztl3pLAxOz7eWT0+N45o5WGX8C4Wpyi6fa8gfGXoewmhjXAyYd/IX9Wx9+FQ+WyVJvQkbc EAz3MrG/NyfjiZbSYkJThFEgBBmVDPkLhVOrB+lZ4tUAy3u7A21k7/W1J83weVZYIpphjB/JmUq WBdjyWGFtiVXn7NGG78BPAmEBUoqUToD4phi8Y4Cy4UOFTR5STUSoXJCaKDQ4Tx9aCLolTjlyOH 1b86e8/6d9I70yNNpgEesAgVH0+hta9E5jf/NUdiJy5eM3Y4UZmfysoauKdOMwEvA0x7+Eu9TBA GMPz5HkJ8Tv3aNZw4crICoK2tyFWqTQ73gO7T/uoMYwU7f7gmAaUwRxm8fAL4q7YIPbhq1FSZNM Ilz7aqbCAI4d1JAMn9N+8gvd90WZx8Bg== X-Received: by 2002:a05:620a:17a4:b0:93f:633b:ee1f with SMTP id af79cd13be357-940ef914daemr1744461785a.28.1793129065348; Tue, 27 Oct 2026 12:24:25 -0700 (PDT) X-Received: by 2002:a05:620a:17a4:b0:93f:633b:ee1f with SMTP id af79cd13be357-940ef914daemr1744456685a.28.1793129064775; Tue, 27 Oct 2026 12:24:24 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 06/59] hw/watchdog/wdt_imx2: Remove redundant attributes Date: Tue, 27 Oct 2026 20:22:47 +0100 Message-ID: <20261027192341.9197-7-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3NyBTYWx0ZWRfX78MSyccoGGHR eyS343HbXtKdicvhVg25SjvGf/DbQvIOMyUtVcWK9S5HhvWqtK8lFc+dFF0002Jmjc2eeP8MYzL q4g6JB+nX4xrlx2L5gWS5PMnZwm48N8= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3NyBTYWx0ZWRfXxwriJM41qWn7 DyQRR9aQhmmIGvkaa3J93McQGUj83AAs4gfPG5jZUm0Wr1u/bW9X44hF+YwfiKlWWa5t+Ez6oEX Rq9c29cu6MFm+hlJqIUcOfdRXTeqLoHcxo0EqDJjQwACHytPHH9Wd6kCSKmIz/F4/9hhN6FtQhQ Suqa3jc6jS/ME76TEAZnkU4OoAb6xFk8S2k1l93R0tPSTlex6zJx474TSwPafUoeMZdDLFkbQtc Aqbqiq65pT6ogRMRVfd4k+JG9CowOCO8Gm6SqyJBtnZ29+8+4iztCl9xRIzfdsl8xMKk85P/e8/ avWErwG1Lb6VPMzJCJsOJb0LLtNWaQ+eAkKhZfQ2bJKLZtyOaPIwy3cLOR4A9UP/CGx2wrrZrTG IkqnxqAl5dj/Rk3x8kzlMe6N4EHNytZg9HRI5ORzI1PUX5Ndr+PLlloge3GsPwfoRYrzUObsa1h 9a3YoLY+1Id4adhFw/Q== X-Proofpoint-ORIG-GUID: Ki_maxx5cmwzmQw7lJ_H7KCiPXls1uAq X-Proofpoint-GUID: Ki_maxx5cmwzmQw7lJ_H7KCiPXls1uAq X-Authority-Analysis: v=2.4 cv=XaIcX455 c=1 sm=1 tr=0 ts=6ae0fa6a cx=c_pps a=hnmNkyzTK/kJ09Xio7VxxA==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=pGLkceISAAAA:8 a=FRSEYCzRAAAA:8 a=EUspDBNiAAAA:8 a=GO80KPNTYNr9SaPhIoMA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=PEH46H7Ffwr30OY-TuGO:22 a=H4N_Y-AU75W7NKDNhZlT:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 phishscore=0 spamscore=0 bulkscore=0 priorityscore=1501 clxscore=1015 lowpriorityscore=0 suspectscore=0 impostorscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270077 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129081076154100 From: Bernhard Beschow Since WDT and WDE are write one once bits, their values always correspond with their respective locked attributes. Thus, the attributes are redundant. Take advantage of this observation to simplify the code. Note that removing the attributes changes the vmstate structure which constitutes a migration break. This is allowed since QEMU does not guarantee migration compatibility for i.MX devices between feature releases. Signed-off-by: Bernhard Beschow Reviewed-by: Bin Meng Message-ID: <20261006083445.30362-5-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- include/hw/watchdog/wdt_imx2.h | 2 -- hw/watchdog/wdt_imx2.c | 20 ++++---------------- 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/include/hw/watchdog/wdt_imx2.h b/include/hw/watchdog/wdt_imx2.h index fc01fc46e736..0bf290395980 100644 --- a/include/hw/watchdog/wdt_imx2.h +++ b/include/hw/watchdog/wdt_imx2.h @@ -84,8 +84,6 @@ struct IMX2WdtState { uint16_t wmcr; =20 bool wcr_locked; /* affects WDZST, WDBG, and WDW */ - bool wcr_wde_locked; /* affects WDE */ - bool wcr_wdt_locked; /* affects WDT, cleared on POR */ }; =20 #endif /* WDT_IMX2_H */ diff --git a/hw/watchdog/wdt_imx2.c b/hw/watchdog/wdt_imx2.c index a15f452d4890..c19f0383ad74 100644 --- a/hw/watchdog/wdt_imx2.c +++ b/hw/watchdog/wdt_imx2.c @@ -59,8 +59,6 @@ static void imx2_wdt_reset(DeviceState *dev) =20 s->wicr_locked =3D false; s->wcr_locked =3D false; - s->wcr_wde_locked =3D false; - s->wcr_wdt_locked =3D false; =20 s->wcr =3D IMX2_WDT_WCR_WDA | IMX2_WDT_WCR_SRS; s->wsr =3D 0; @@ -156,22 +154,13 @@ static void imx2_wdt_write(void *opaque, hwaddr addr, switch (addr) { case IMX2_WDT_WCR: if (s->wcr_locked) { + /* WDZST, WDBG, and WDW are write-once bits */ value &=3D ~IMX2_WDT_WCR_LOCK_MASK; value |=3D (s->wcr & IMX2_WDT_WCR_LOCK_MASK); } s->wcr_locked =3D true; - if (s->wcr_wde_locked) { - value &=3D ~IMX2_WDT_WCR_WDE; - value |=3D (s->wcr & IMX2_WDT_WCR_WDE); - } else if (value & IMX2_WDT_WCR_WDE) { - s->wcr_wde_locked =3D true; - } - if (s->wcr_wdt_locked) { - value &=3D ~IMX2_WDT_WCR_WDT; - value |=3D (s->wcr & IMX2_WDT_WCR_WDT); - } else if (value & IMX2_WDT_WCR_WDT) { - s->wcr_wdt_locked =3D true; - } + /* WDT and WDE are write one once bits */ + value |=3D (s->wcr & (IMX2_WDT_WCR_WDT | IMX2_WDT_WCR_WDE)); =20 s->wcr =3D value; if (!(value & IMX2_WDT_WCR_SRS)) { @@ -234,13 +223,12 @@ static const MemoryRegionOps imx2_wdt_ops =3D { =20 static const VMStateDescription vmstate_imx2_wdt =3D { .name =3D "imx2.wdt", + .version_id =3D 1, .fields =3D (const VMStateField[]) { VMSTATE_PTIMER(timer, IMX2WdtState), VMSTATE_PTIMER(itimer, IMX2WdtState), VMSTATE_BOOL(wicr_locked, IMX2WdtState), VMSTATE_BOOL(wcr_locked, IMX2WdtState), - VMSTATE_BOOL(wcr_wde_locked, IMX2WdtState), - VMSTATE_BOOL(wcr_wdt_locked, IMX2WdtState), VMSTATE_UINT16(wcr, IMX2WdtState), VMSTATE_UINT16(wsr, IMX2WdtState), VMSTATE_UINT16(wrsr, IMX2WdtState), --=20 2.55.0 From nobody Mon Nov 23 04:26:24 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129081; cv=none; d=zohomail.com; s=zohoarc; b=QTAc4o2N/bPz9tkK2JjFOKfFgi9bKCndGXkqBegDFzIaAu2k6i5hsD9VeCZyzeAUAnAPImgF4moD6oJj2FlZf4cAW5cdNqvgp3s8eSkLTIHoe6eJ2PhFPB3nC19rRuK4chzdRLXrpzJ/mQcczPgbwIh3EaX6TBWusXJnRjDFWnk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129081; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=gyi1CjmSyqfOQi4NOBz4Y9CUxSm3oDSfj1iwqPA5Smo=; b=YE6HTiqGsYosUqVELETbAlP3Pk8EJpClIdHsBODNwAW+sP9dsyRAaeE/j03NLftQXBTILWpKqr4f9lbY6xj0P3+ioB8xYbH/iGU9TUJU13iGM/EflDCAYsR1zSO1+R25iGlOm4xzR3Kdo77zAhNOnGxOlgZOgN1dhZBapJnCOEM= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129081385188.3275540235129; Tue, 27 Oct 2026 12:24:41 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmmk-0001tD-BZ; Tue, 27 Oct 2026 15:24:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmmi-0001ri-Fs for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:24:36 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmmg-0001oy-OC for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:24:36 -0400 Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHXH02452106 for ; Tue, 27 Oct 2026 19:24:33 GMT Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjy6g0uec-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:24:33 +0000 (GMT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-936aa34873bso19630385a.3 for ; Tue, 27 Oct 2026 12:24:33 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e3ebcb90dsm22771220f8f.22.2026.10.27.12.24.30 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:24:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= gyi1CjmSyqfOQi4NOBz4Y9CUxSm3oDSfj1iwqPA5Smo=; b=FEoq1zfU+qPl+vtz 9yYKwml+yH6AyaA1zo0exm1F4wOCUH7aM2AcGU7W0UFk94C3eL77GxxzE34eJKhq lytTVdMk2wHd0ugoouVb6qEjcW0f+kP/LVQnFWjGM2XR04KzgRIAAr4R56wJi5Z3 N5etFzzman7mjIRTOOPpmNEJig1Qgl72mnA4uK4GwOaAtj3o2a4SiTD5P+LZnV9d dI9RgH1oTjUAdzVVbIATzt54aI6rMIF5DGC36DLHtNkvw483RFHUgE7ISl6r21gL 5l3R3c+4bfo3ykl7eHIeeiFJePI4mqAgE8V+YxcRat7dyjqI9zzvho7TJiZYQhxn A65WnA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129072; x=1793733872; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=gyi1CjmSyqfOQi4NOBz4Y9CUxSm3oDSfj1iwqPA5Smo=; b=kn1Tovjyzcd7t/lcYG6Iw9FJmtR0YM3jpBrtcIhjsg2ncUoAJGgzqyRZQGCYZ4l+lJ uMbfhojgACSCdfOk2NZAhGi7S1R2mW5PCne2U5Lyfo7EZGp2xufuEJQhpQW304fmZCxv XngfaSkvvRZltbfDt3AgDFc9wYNBV1WIBWkW+H+DlruDBHG6wYs4Bifescg7TLjGSPDN ZQRk5hUAEhEPXkaGcSYC5x2+1d1UmeRHcxJ0mlsEzQWpOcZLPnJknOoY16DbAzVfJNjg 7QoVu7rgvw9a7+rQLaqfOIdPXzmwknIYazPeNx3wqmISAwi3dlJoDZeOBLDbFB+wXiyd 0fEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129072; x=1793733872; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=gyi1CjmSyqfOQi4NOBz4Y9CUxSm3oDSfj1iwqPA5Smo=; b=RVlIlkAi6aTR6zgOQRa8tRPV97JECGNZkYj5BCfjRfX8PmItg+OfJFVt/l+1xaJPQj WnkME6Gor1GrBszBaPuXWGPQ+GGeHR0mfZbdq6eCu8ZSFdTlM+mCYEk7EDE1AhpI1egZ z9A0JW1jmFX84FmasIa3Xk+zlEquRO0GEFm19rSEhhnIHDr1YCax2gRLLtdqnJwOANMj SY8L2/0QvRjj2DNm6PQtD6HDUjGSsfEAwYgAZXO9xD50vo2Ia/X0SDLfr4gpaEuhsfFm ntmXGQh2aUOWcyCx8HL3WYvz9Bz8R2NI6oHl1KlA0yqby5Oc4hjzqNpNhhZdR2ytOtLN JEJA== X-Gm-Message-State: AFq9FYKxQ0kjKTvU6UUuqPRVoiLKDiuRocD5gXUrsh5RDgaFYEq3sjzR kyv6k127ecuBeBEPopppH3sdqbpAg+iKGRki3RDQn9Ow6AMRCGh8XYbPLHXH6UowTrnWE//hsuX 56na0wZGMdd8s6JE8/erWNkgrKEdWNVNvSLiMXtWFZUVpdFNqZhX9Ql4X9Sb5nVyOxg== X-Gm-Gg: AYBFou1sLSDhRiKPC7K03JM2jYVByn4Wix5kQtXA4o386rIX8vk8zZRFAEBHoHF5qvD 3wtGpyZYISfQ+y9qGhnjzFotz/Ev4PtSA/TXQQQ8stCFIEqJ7QD/jY/zaOfjzF7p4r3dcTJ7KLD Wgph3Ohqag2W1iJ98tfENWNEkYHEtgu1oGD98bUUT7hYjN58QDkJRCx8HkSKmXbOFl7Y/bEr+Lm gLNTdKJLKVFJsu3WJ7/J3aNdL4AyN+/FsT7hhOY5JXUz+5wW0SxzHKeuQ9XxqtsbxmoRoxYk5h+ Nkdl5imQ53ELBUx5RHDxZw2+DGuEsLsC8Y7sV5ggKqeH33I1Uz61kP4w2o80GkHS1okZANtgo3H JSw9bJOJnZ3D0jOCk6M3UZ9z5Oe/M8IVa/KVpAObKmcp0/4mSDhHlkHgeaVwMgfA031OA5IIwuz 8Ek84o2O5Nkawwa3HtaRh7ESEvic0y9A== X-Received: by 2002:a05:620a:800e:b0:93c:6028:6d2b with SMTP id af79cd13be357-940ef955119mr1692635185a.43.1793129072141; Tue, 27 Oct 2026 12:24:32 -0700 (PDT) X-Received: by 2002:a05:620a:800e:b0:93c:6028:6d2b with SMTP id af79cd13be357-940ef955119mr1692631785a.43.1793129071602; Tue, 27 Oct 2026 12:24:31 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 07/59] hw/arm/imx8mm-evk: Fix reference count of SoC object Date: Tue, 27 Oct 2026 20:22:48 +0100 Message-ID: <20261027192341.9197-8-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3NyBTYWx0ZWRfXx2zqSnsFeSas Di0uaFZe8aBtZRHGlpQCbdjBf8Z9oFRQykUMpm2zkf5X9EbnhZSAQ4s4enN8gD3jK9gJjtLWmKO XeQbo+dh0z7q8gTtJpDXBBpwKZBiJE9u39XO8cVDauwwGZTIrWdXNXAdj5P/W1n8RNj94sA9+Yl bmC0d4/rYPAh7+iS7JxVH7d39Jc7Hjzg61ij5rgYqZ/UiNCz4ZZkf2Ue4Ks6sbqqlQd+lo9jdMQ yCpPuzpnpmSjdUVahWGcUHlWTq0k0UnFahP1r5U4tWQmHtrd2lorHUupSA7pjY9hvKoJdr0aQQN j3c8qfXRfkFhNYF6rRy+VeXqep6y2lTBMlnwB587dmzck5LwQHEAN/QEmlh5W6TCBfxwjZBEkUo k4ZlLJYcIaENJlurrbpE3CkeN0fziSXQiHVe7lFAinK4/vIaQRPzFnsGmxH78KyGvKwA2WB6y16 D9/lPuv5KqD81lfvx3A== X-Proofpoint-GUID: jpIPex8oG_wdR4hLKzesbuE2yA-qzFH0 X-Proofpoint-ORIG-GUID: jpIPex8oG_wdR4hLKzesbuE2yA-qzFH0 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3NyBTYWx0ZWRfX8Kbxku7IWLSF EcId+nUUljlv/u6zLYcjKnd2IB1k2xlpFzMzNlkPsXimxRpfCYOLzMhP69aVlD64oKtQoMtEZ6U Fs/h/lMS9xUPXBRfdFvei5dqGLBselk= X-Authority-Analysis: v=2.4 cv=dKgzC+Zb c=1 sm=1 tr=0 ts=6ae0fa71 cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22 a=pGLkceISAAAA:8 a=69wJf7TsAAAA:8 a=KKAkSRfTAAAA:8 a=FRSEYCzRAAAA:8 a=EUspDBNiAAAA:8 a=8zZHuzAtTnRjJmxMHO8A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=IoWCM6iH3mJn3m4BftBB:22 a=Fg1AiH1G6rFz08G2ETeA:22 a=cvBusfyB2V15izCimMoJ:22 a=H4N_Y-AU75W7NKDNhZlT:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 lowpriorityscore=0 bulkscore=0 adultscore=0 spamscore=0 suspectscore=0 priorityscore=1501 clxscore=1015 impostorscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270077 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129083448158500 From: Bernhard Beschow Using sysbus_realize_and_unref() requires object_new() rather than object_new_with_props(), otherwise the initial reference count is subtracted twice, i.e. ends up being one too low. Cc: qemu-stable@nongnu.org Fixes: 7bcd1f30bc83 ("hw/arm: Add the i.MX 8MM EVK board") Reported-by: Peter Maydell Reviewed-by: Peter Maydell Reviewed-by: Bin Meng Signed-off-by: Bernhard Beschow Message-ID: <20261006083445.30362-6-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/arm/imx8mm-evk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/arm/imx8mm-evk.c b/hw/arm/imx8mm-evk.c index c3215b11cb99..6de0d9c4a2ef 100644 --- a/hw/arm/imx8mm-evk.c +++ b/hw/arm/imx8mm-evk.c @@ -83,8 +83,8 @@ static void imx8mm_evk_init(MachineState *machine) ims->bootinfo.psci_conduit =3D QEMU_PSCI_CONDUIT_SMC; ims->bootinfo.modify_dtb =3D imx8mm_evk_modify_dtb; =20 - s =3D FSL_IMX8MM(object_new_with_props(TYPE_FSL_IMX8MM, OBJECT(machine= ), - "soc", &error_fatal, NULL)); + s =3D FSL_IMX8MM(object_new(TYPE_FSL_IMX8MM)); + object_property_add_child(OBJECT(machine), "soc", OBJECT(s)); object_property_set_uint(OBJECT(s), "fec1-phy-num", 1, &error_fatal); sysbus_realize_and_unref(SYS_BUS_DEVICE(s), &error_fatal); =20 --=20 2.55.0 From nobody Mon Nov 23 04:26:24 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129113; cv=none; d=zohomail.com; s=zohoarc; b=JQFsOwAoibmX29K/eMLYn6geIEG4UyMlb0GOHy3jYPIanu6vXoLEGv3t96sNpsk45LOIx3f1BsKXCIXDKuQ7jnmUhjUR0Lj8FBqGpVLV0FHnyT+tl9Bz9ti0bKWbg4VCNPqnlQ5f6lVOfjOITJDbsdA0C/ZpqgRefZWvcB0/HJE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129113; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=ZzoOvsBmnfntGKUtY823SYpacEpuzz8xMV9bPYU9ojc=; b=HAbcXk/08V5qdIlbKUAYKVCYsS35nptk4WCxSxpdu/5u5IkUfNkEAoDR17FtaW8f2YFEUtML582e8jCtitc4TvkZVuyel1HKFEl0NVL2/t7LaKJXbaYLDP9Krr+tKi7eb2KcoKOdvEPu/Y0tyKxC1GCq9llguKKgkSDlykfjXwM= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129113277336.97595667197925; Tue, 27 Oct 2026 12:25:13 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmn7-0002HW-Pl; Tue, 27 Oct 2026 15:25:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmmo-00026k-Et for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:24:42 -0400 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 1xLmmm-0001pW-Px for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:24:42 -0400 Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHOxF2945716 for ; Tue, 27 Oct 2026 19:24:39 GMT Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjrq6ap95-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:24:39 +0000 (GMT) Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-93cbf2fd504so19873685a.2 for ; Tue, 27 Oct 2026 12:24:39 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e3ebc3932sm25829189f8f.18.2026.10.27.12.24.37 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:24:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= ZzoOvsBmnfntGKUtY823SYpacEpuzz8xMV9bPYU9ojc=; b=TsKdz6vZT8WTJ7Xo MQnOHfohLOqXyOhhBQ5w1zzgTc8g9QI+g4HQQleDCMHDhuZHgoEUxOjb6UT9GA3c xW2Yn/eJ3l1uOcWNV5DaS840ugriggnlvD4zNI4+Tn/nxzqhdxeb3xFxbTdqFsrn q2ACp9MiczAN3HTL4g12NR5OAcGN/G33g3XXk5MnCUtaT/ogUAw8C9oY8h2xVkXH KZDA9BWp2pNgYo3dlqnbi1mUdikip5SCiBiVSWypss3NDNQE4WIqaXVWZd9WrihT JThD42UfQBQwAmBZ6ktSkiT+yCJ2vFiLZzVnIlqjFQUR16uzlwiV34EtTJGlgvTs Dz9Gdw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129079; x=1793733879; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=ZzoOvsBmnfntGKUtY823SYpacEpuzz8xMV9bPYU9ojc=; b=gOZEC+g3IwOT1ZFkJEexzsPYxQC3uIlOR98qsFomSiqtLiro5TlSu1u59wlu3KOqpD O732JBv9h7u8IUx0/R4SeGNIt+WcNwb+wiI5zQJXXKmj9CTwDtPtsi4mcBNGbIJGkBbJ 6eLGOjS9hXcyitlFMbsmtVtMWg6Lt+jUav6vdfkCPfCOsPSYySbU8ngvym7ngXnAzyRn kzMghp/DL8Iew/6C7Ud9aNlAkRzylHNZLUQaw0q9TqwE7a0y3KTSBFUuasnO+cOERg5I 1ZCH7gi8Adz4Psa7YZFM2J+5OX6eD/5e1wnYs75IuF7wtZeQo76KJLpC8iYbT6edqo08 azuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129079; x=1793733879; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=ZzoOvsBmnfntGKUtY823SYpacEpuzz8xMV9bPYU9ojc=; b=IhNj9Js3gdF9obQkRJBQDpTyMmqxFHWSJUay7UTicwAQgfKqknNxKusyTHl+Y74Lmq wg8K9D5d+croazFQxdu3i4Lz/6sZ0sSOqGsVbL29Imm/pm5ITByLBC1jp8GYeU/8rxMR 5oLdHkEy8D2tZ5xv9Mo6odSId8tKYRvin5OYYANuBh7uCvIELkSU8oX7uzl8E5zSfOIb X0IywSPieOLOUKDGpU9sTmlOLtvgiXbMbyZDdjUVybNtXfzwIwNSqi1dt/Pd6Y8I8c2T 6ke8TaX5Huu8kPyi6SWfJEU/hnJ2mRv1/Cfj5Ema/dm2GOuCVWObPezCfi98SRKmHW8i G48A== X-Gm-Message-State: AFq9FYLli2XsJjrfAzfPd8MLXOe8goV2fTwcYQsn0TCyQ8zb7u9721o9 NPu6tYnKMWbNYPoAyT1hVIRcYSrOlzpLQPg+G6keNWUWzRCivt45c2EJNeE+VhlDcX5PLzRC4RW Ihv36ENemG/kS/8JlHvXE1FJMJAwHNsx7+Dy2IptfwwXI+SlXntaiIANlJfWq9hDZHQ== X-Gm-Gg: AYBFou0C/2SJUGjjdT/0rH+i1vaW9C7cBvuHhkaFqukY8Fu46LD5GsPMn6FUz6J9Qwd dqWstTJPtmLTPdQdsHPEDfecP4ngMA5k0h6+Z6MYf59KYkANYwpmrfyqsB99oBMyqDuBIo5hmqS an7BjLdigui/1Ke/37rTsL1Q/d4oox34MX6fF1ckd/Aey4zCO1xyxKnda/k2gBqGBJwCPeRj8+d cvB8EizDWMLCHTguO2oK3jlCbKbm5Vu1P0R3lsaZVqbdBj5QmJgl1gFVrdZ1IRnOhiRjmNgxoxj cUUi7H+Ae9vyjGNz9NWo10ftSAn9U9pMA+cYUH+DGo3UtnS2AWhd2M3a6qnkEBtE/hqnKNiScy5 AA62VdpPLir8vquK6qzldT5gANUw4RQe+Pvc0FCJzefdcnr8aUZP5HKJlYDAqXDMB727odDWa3e jwtkSNG29BN9bw72s2lv+6nAp9paHKpA== X-Received: by 2002:a05:620a:2806:b0:93f:1936:b20a with SMTP id af79cd13be357-940ef9b179cmr1654856685a.76.1793129078999; Tue, 27 Oct 2026 12:24:38 -0700 (PDT) X-Received: by 2002:a05:620a:2806:b0:93f:1936:b20a with SMTP id af79cd13be357-940ef9b179cmr1654853485a.76.1793129078489; Tue, 27 Oct 2026 12:24:38 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 08/59] docs, tests/functional: Drop redundant CLI arguments in imx8m*-evk invocations Date: Tue, 27 Oct 2026 20:22:49 +0100 Message-ID: <20261027192341.9197-9-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=RYwFmFtv c=1 sm=1 tr=0 ts=6ae0fa77 cx=c_pps a=HLyN3IcIa5EE8TELMZ618Q==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=KKAkSRfTAAAA:8 a=FRSEYCzRAAAA:8 a=E3Kq4i6MJonbbSQa9EIA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=bTQJ7kPSJx9SKPbeHEYW:22 a=cvBusfyB2V15izCimMoJ:22 a=H4N_Y-AU75W7NKDNhZlT:22 X-Proofpoint-GUID: CYWYdZAsY8NBC6Bg5CTkFcDXRiJwmLoo X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3NyBTYWx0ZWRfX1Q31Z9sS7X9F C+UmORisYiP6Eq2wQJcWomk6ZOBhNm5BpRamVj8RgFaP73mk1dvYdNqMkIgV/RlE4pWlmK5BP6D HCiLXON+AcncG1XyGyEVuVkkJEKHXfA= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3NyBTYWx0ZWRfX9qGjaWJ1Tr3U gMV35yyDptrcSHxhPrGs2sekQ4LkWVDMmZ8ljDc5bMNzODCHE2c8rVutkrJiJHwF6pWgIlwpVUf MKrIhaZKowO9Y97hJFEgZAkomQI/AzmsNMCAzuTHg9nh213rpEhqMiBLZGyG360x9tO7mT4gIsn YB8O5LF5siu+FhaV7rXwvNuqwWAQcdVw/Sa6AQ+ZUdkUL9KSorDX/lJM1dZjkrz7kjOAloNwwVy QM1XI+XO/hBPpSkFb49TI8XJcXGgyZP100Can11iOGeJGduR+PHVdzDTR0I+DZlabi+uWktTjNI COgvE1+BeBrIuo15qkLi7e1rSTtY4pCXa1dqsWjwonhJBMMyQ9qZMCkGo26TuGAND5LJcvm5UhX tpu9/7hVF20ZP1gpvDAygNRyu3XokBY5GMeDvfMw6UnjIT9FXs4xV7D4o1LCQ7oaxLs1Qbg/4kx eNe/okAnRtQzSKhb0sw== X-Proofpoint-ORIG-GUID: CYWYdZAsY8NBC6Bg5CTkFcDXRiJwmLoo X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 impostorscore=0 spamscore=0 phishscore=0 bulkscore=0 adultscore=0 priorityscore=1501 lowpriorityscore=0 malwarescore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270077 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129113990158500 From: Bernhard Beschow Both boards provide defaults matching real hardware. No need to ask users to repeat these. Also, remove these redundant arguments from the functional tests such that the defaults get tested. Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Peter Maydell Reviewed-by: Bin Meng Signed-off-by: Bernhard Beschow Message-ID: <20261006083445.30362-7-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- docs/system/arm/imx8m.rst | 2 +- tests/functional/aarch64/test_imx8mm_evk.py | 4 +--- tests/functional/aarch64/test_imx8mp_evk.py | 4 +--- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/docs/system/arm/imx8m.rst b/docs/system/arm/imx8m.rst index 1bcb8255be57..5348757089c4 100644 --- a/docs/system/arm/imx8m.rst +++ b/docs/system/arm/imx8m.rst @@ -79,7 +79,7 @@ For i.MX 8M Mini EVK: =20 .. code-block:: bash =20 - $ qemu-system-aarch64 -M imx8mm-evk -smp 4 -m 2G \ + $ qemu-system-aarch64 -M imx8mm-evk \ -display none -serial null -serial stdio \ -kernel Image \ -dtb imx8mm-evk.dtb \ diff --git a/tests/functional/aarch64/test_imx8mm_evk.py b/tests/functional= /aarch64/test_imx8mm_evk.py index 86725991f147..73d286167c55 100755 --- a/tests/functional/aarch64/test_imx8mm_evk.py +++ b/tests/functional/aarch64/test_imx8mm_evk.py @@ -52,9 +52,7 @@ def test_aarch64_imx8mm_evk_usdhc(self): self.require_accelerator("tcg") self.set_machine('imx8mm-evk') self.vm.set_console(console_index=3D1) - self.vm.add_args('-m', '2G', - '-smp', '4', - '-kernel', self.kernel_path, + self.vm.add_args('-kernel', self.kernel_path, '-initrd', self.initrd_path, '-dtb', self.dtb_path, '-append', 'root=3D/dev/mmcblk2p1', diff --git a/tests/functional/aarch64/test_imx8mp_evk.py b/tests/functional= /aarch64/test_imx8mp_evk.py index 99ddcdef8350..2ec421c32632 100755 --- a/tests/functional/aarch64/test_imx8mp_evk.py +++ b/tests/functional/aarch64/test_imx8mp_evk.py @@ -52,9 +52,7 @@ def test_aarch64_imx8mp_evk_usdhc(self): self.require_accelerator("tcg") self.set_machine('imx8mp-evk') self.vm.set_console(console_index=3D1) - self.vm.add_args('-m', '2G', - '-smp', '4', - '-kernel', self.kernel_path, + self.vm.add_args('-kernel', self.kernel_path, '-initrd', self.initrd_path, '-dtb', self.dtb_path, '-append', 'root=3D/dev/mmcblk2p1', --=20 2.55.0 From nobody Mon Nov 23 04:26:24 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129167; cv=none; d=zohomail.com; s=zohoarc; b=LEmB6oCamUuGy44UgTW6dQjB2KH5a5O52UsGOiviVECk96NV8dfcwEgBrTSCTg30+djKl40Qb+jyBDI418D6qZFD49k5OgSY6X5yi+Xdb3P6+TtBkLf5fgkVXSL3Bk3By1saiJS7V5UBoZ7lNwAOZmdcWZoHG7gDIRsffn2uPtw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129167; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=w29Ypi4oSViCbtK99W8qKVU81/HO03HjG7qv3E5a43g=; b=HiQ5qKyX/4kicSV1Rly/CLopV1H2x/KRbrpMG9ZUrXu1x1czYhzTradJgpg8LXTkkK8Z8vdfhNZyLqO9iXtWMknHREdBhpkoZ3t2mPDWJ1MkmNrjsMQJ4hWEm6YbrF3wdIIgZy3Lt1Jc7p437cOROAvPfMD8hkMx6A/OoYFAjrs= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129167741531.1357685508051; Tue, 27 Oct 2026 12:26:07 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmny-0002zh-Ex; Tue, 27 Oct 2026 15:25:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmn2-0002Ke-CG for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:24:59 -0400 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 1xLmmx-0001q1-6I for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:24:53 -0400 Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHPol3553880 for ; Tue, 27 Oct 2026 19:24:46 GMT Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjqw22wf4-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:24:46 +0000 (GMT) Received: by mail-qt1-f198.google.com with SMTP id d75a77b69052e-535066512b0so7772051cf.0 for ; Tue, 27 Oct 2026 12:24:46 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a952ee2889sm1816945e9.13.2026.10.27.12.24.44 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:24:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= w29Ypi4oSViCbtK99W8qKVU81/HO03HjG7qv3E5a43g=; b=dhXtFCG3JPzXUb9m oxkqDqJt4xxOyk2ShY1QjVAmxjaA2AHBZ4OoZDQoL4jJW/Yxp3fNYUjX2UkihCC5 CGmCx0+z7Uxv+EFfstKRRqc5vN6SYtDCxdHSOX6XTLVsOtK1wcsoTN5YYD2tWizX UXvS6Yv7/zg7EeEnPJ+O+9wB6YiJQIQvMo2O1cbqTIDVjByFRhkOUkoRefGNyXce /VF2qj5uWhc7rkAS91lOGkRbIPdq9npIFm84eQSYNK3u+F3BPWjxyRKqpAkW/DGY 9eFFIU3UTeJKFnZSIlSjdgKJApFFQC10waMYgDuRuz8dHug7HxhGVAJ6fAuj/Wkl rJ300w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129086; x=1793733886; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=w29Ypi4oSViCbtK99W8qKVU81/HO03HjG7qv3E5a43g=; b=LbrtnCCYnVuibmgEiS6v3smsTFSDj99q/70tFX7eCuEr/v38HHIBvZv0LztxZu9W3l Z0cuBHcJb5L6yI2534PBk5o3BEvl0zRXEsMfuO9AVXCb8rhIX8zrRAZSCuwvuyOEn+Wn qLEtQhpJqzABm/7CjqeXN+RcjoRTCgevih5YgRvZ0KZwLbcAPeKizdNI1cXhc24l+NFU JsaOclrMS7l+D+C+RRksp3OxYEA8ChKbBOQf5Ya6RuoU8XzZH3EDcB0GpfwkeCmCxTjZ REhZ3OEqeoExAIqeZNn6HFuFRLm9JqTVFDZL1oJt7utFg9doFLBTbhykzi/c/w1qm/Z/ bgIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129086; x=1793733886; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=w29Ypi4oSViCbtK99W8qKVU81/HO03HjG7qv3E5a43g=; b=n6685BwJzBCMMslNIII79BgAqn9U5dLjbNVhR7clx09gd1L+WFLk1unEtgoMAvPATa JRohrooDZSUde2sjecZ1FjkKY7wmMLml2uHcZk67hM3knCjgwByhGI1bklH+my3Y6k9x O/PQr1y0ocwy7tRWJgSz7KUgGPjFxYXK16vafO0vc+LgCMeSHupk5JNcfV3M6L5gk09/ GrDGWKPCGrUooe3RzqBnt7c+n0FXuOrmueZUZ2ZMEamI8p7/oRGb3a/KnNolyJdkZ5yq H2oWBb01xhKbhtB4LPUV8aINnLEdjVuiTWJSSH1v1M8gpNSb4KyPrTEg1CpItgOZBftx qsIA== X-Gm-Message-State: AFq9FYKTemnCwayVjyIJ1xZSSQVYR5aAAbYDgheM5q7D+9bvxINhhKkx u+cVNP5AQvlGLcahcGupyzjocmZy1Al53qTUbaAprdSE0KfV+1usb2+nwHpHP0gfbdYX98czFbU c/TdrZuwWrIvZ7D4PCjmqtyepG9lujfdeWmBQb1MGVS+CNF+o73be5erE7bg8qGxbvA== X-Gm-Gg: AYBFou3aCRZ1KqDgD/QukhuRGAeMurUanMBX93IZSxm6SKS8fRPZVo0yShJuHpmhBXU THiPAtPXLqEEUmLaygIPlRwOmazZD2geQKC2GauJQS/hQorteQ4TW09xLhVxrGqGD+Ym+LYnoJ/ McahZi9pncaOfmkDVZ1dOkHziACdxLiAjLqJsuazsgybT2Jhyl/VoRmdFFOtKOcr8lmPEXf1Ywo WQXtzC4SFTimF11ViIxABUmMK4Kx6suXpOZG63qdNYZCQvtGA7jYyg5ckOqXP4mVsO4WRGoTxI6 OTaHu/EBOfZXZpOhMIVnKAARtmFHh/s4VmqpffDek5NEEMRyqdi3UDRb7wTKsJhq8LSdyfSElvT TY/gRRXmcNSIi+WbdtkWuBJjSRWMyMIb6IGtV2helhxWZzch4W5O1TnpC X-Received: by 2002:a05:620a:4515:b0:93f:22c4:e92f with SMTP id af79cd13be357-940ef90f7dfmr1620264685a.54.1793129085829; Tue, 27 Oct 2026 12:24:45 -0700 (PDT) X-Received: by 2002:a05:620a:4515:b0:93f:22c4:e92f with SMTP id af79cd13be357-940ef90f7dfmr1620260785a.54.1793129085203; Tue, 27 Oct 2026 12:24:45 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 09/59] hw/arm/sabrelite: Have 4 CPUs and 1 GiB of RAM by default Date: Tue, 27 Oct 2026 20:22:50 +0100 Message-ID: <20261027192341.9197-10-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3NyBTYWx0ZWRfX1YKAz/SJoJBR GsRKYz4FZUfX9ujz7wKbPN7wsRU4ouUxeMDlhSO/4XDKqkwUa2dRlcmE5rzX+wjXjZjlmVPtyIL FWkKPSz27m3R5fFRTpN9MPNkp+4PZ4MDGhe834G/DRpU23NPj8riKB05B4gdE05gblZ4sZLWJ/L YkprFfjxNfiVxp4PoFi5VpTXFV5SZumI1asuy7Xu2lnjfsa1XOIBlMYusAmXvD9Qikw1/MCP4EQ k6Vji035oSlOM+Ie8+g4fzE9W3ODOY9hH/zdf9DcDxLiB8e23chrT332ViYvJjaNroR39O4SvhJ /EP/vJjmotpNRcbCP3RQ//CfwS72MhxaWWbWFmNDSBux9lZH88BBqgcdx4JOZIUQsbOZ9WIeoPW S/42WeQGkXn8Nh3XxFk+53QWSXIwibymYxXEQ73YbbBc1BM7F2tqneae2Z7Km81FHa90qp6VUCp 1i6aHodsARclCy1spCw== X-Proofpoint-GUID: aJmI3mTrVCBNgcKxBA6JstGkq9qIv0GI X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3NyBTYWx0ZWRfXw70eCt7XMtFV xo2bx2lk0sCMKWgfKswBXGbHFhAPO1WQrS/yJaeqIQ36CLOedNxHrKtK6piRNmWUQnAI3kSVRzy Lz7PjFIlku7qeBliMxKwMt2tAUI538Q= X-Authority-Analysis: v=2.4 cv=PsYG/AM3 c=1 sm=1 tr=0 ts=6ae0fa7e cx=c_pps a=mPf7EqFMSY9/WdsSgAYMbA==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=FRSEYCzRAAAA:8 a=HwNrnQn7U88IyNFgozsA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=dawVfQjAaf238kedN5IG:22 a=H4N_Y-AU75W7NKDNhZlT:22 X-Proofpoint-ORIG-GUID: aJmI3mTrVCBNgcKxBA6JstGkq9qIv0GI X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 spamscore=0 phishscore=0 adultscore=0 lowpriorityscore=0 priorityscore=1501 bulkscore=0 impostorscore=0 clxscore=1015 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270077 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129169791158500 From: Bernhard Beschow Having four CPUs and 1 GiB of RAM matches real hardware. Fix the machine defaults to make its use more ergonomic and less error-prone. Also reflect this in the board documentation. To reproduce the old default behavior for e.g. migration purposes, `-smp 1 -m 128M` needs to be passed on the command line. Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Bin Meng Signed-off-by: Bernhard Beschow Message-ID: <20261006083445.30362-8-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- docs/system/arm/sabrelite.rst | 4 ++-- hw/arm/sabrelite.c | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/system/arm/sabrelite.rst b/docs/system/arm/sabrelite.rst index d3a3c01dd6db..b8ac9548f592 100644 --- a/docs/system/arm/sabrelite.rst +++ b/docs/system/arm/sabrelite.rst @@ -55,7 +55,7 @@ To boot the newly built Linux kernel in QEMU with the SAB= RE Lite machine, use: =20 .. code-block:: bash =20 - $ qemu-system-arm -M sabrelite -smp 4 -m 1G \ + $ qemu-system-arm -M sabrelite \ -display none -serial null -serial stdio \ -kernel arch/arm/boot/zImage \ -dtb arch/arm/boot/dts/imx6q-sabrelite.dtb \ @@ -89,7 +89,7 @@ the -kernel argument, along with an SD card image with ro= otfs: =20 .. code-block:: bash =20 - $ qemu-system-arm -M sabrelite -smp 4 -m 1G \ + $ qemu-system-arm -M sabrelite \ -display none -serial null -serial stdio \ -kernel u-boot =20 diff --git a/hw/arm/sabrelite.c b/hw/arm/sabrelite.c index 05dfabd9376d..34f302f83c6c 100644 --- a/hw/arm/sabrelite.c +++ b/hw/arm/sabrelite.c @@ -17,6 +17,7 @@ #include "hw/core/boards.h" #include "hw/core/qdev-properties.h" #include "qemu/error-report.h" +#include "qemu/units.h" #include "system/qtest.h" =20 struct SabreliteMachineState { @@ -139,7 +140,9 @@ static void sabrelite_machine_class_init(ObjectClass *o= c, const void *data) mc->desc =3D "Freescale i.MX6 Quad SABRE Lite Board (Cortex-A9)"; mc->init =3D sabrelite_init; mc->max_cpus =3D FSL_IMX6_NUM_CPUS; + mc->default_cpus =3D FSL_IMX6_NUM_CPUS; mc->ignore_memory_transaction_failures =3D true; + mc->default_ram_size =3D 1 * GiB; mc->default_ram_id =3D "sabrelite.ram"; mc->auto_create_sdcard =3D true; } --=20 2.55.0 From nobody Mon Nov 23 04:26:24 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129150; cv=none; d=zohomail.com; s=zohoarc; b=YVXZDQ1oe3HQdTKNb9XpI/tZhFAu8tqttl+DkPrWyVuPPCiGWCslLjLuy655PEyql9BrrheJ/3PDGrlcU11O32Opi1GHZseh7k5IGcZTt2W3zEVDBuXvwzviGPqOoZub25XKIF8kScr+lT6Vp4gPL9r8aLG2RK26cYAasGwVI08= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129150; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=Faq9E98kwTR3wBkz0nF/S3ELSM4kVgaQwwjx3atQvew=; b=gC8Dh85pwL96KZP4GwRfFggFp49TLqwqNXjqYiAqQemvrv6uNn17qh9GL0zTonfHtSzIIQnA2n9qYQcKMLF52xiy7mZlK1iFFijxH9zlx8t7pmrKF88HHd0DYGarAYGIRRvmIPqnIlJbT81r8sNi+eQzH/ZWV9N5UQSlJiA27CE= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129150135416.94517993840907; Tue, 27 Oct 2026 12:25:50 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmnV-0002iG-4O; Tue, 27 Oct 2026 15:25:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmn4-0002Nv-8i for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:25:01 -0400 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 1xLmn1-0001qa-L8 for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:24:57 -0400 Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHWBK1917338 for ; Tue, 27 Oct 2026 19:24:53 GMT Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjux99us2-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:24:53 +0000 (GMT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-93f559420f3so13716085a.0 for ; Tue, 27 Oct 2026 12:24:53 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e3ebd48eesm24484211f8f.30.2026.10.27.12.24.51 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:24:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= Faq9E98kwTR3wBkz0nF/S3ELSM4kVgaQwwjx3atQvew=; b=m1JnTQxXpVFkSNxN jhG3WSTU4DQ90OePqMQEPuI/fMOYV9+0FtSPJmwq2FgrVI3UjU9U6laIrYMK7NQR RS8JCYqDWVdNaIkrUWWzLwhCC7dGNVxGe4KinLt40eNvmt8gZxiI88Nzti7ogX64 Mvnkh6iZkaY8DI+9vJcmbjEUSrt3krscilaP3ANLl8ms6uHtRcT64MtdOjuWV3VP U+ZbgKzckeLgU7AvYcnZihvrvEN/yyjDzh5Y8kMaJL6vSGDaDUE+gJnvkonqEsgZ keyZyvf/SwG5A97N02gK9XtkHFpyxFM4LxDQJg/OibJTakENOYcUl0jlCEz0dhQv yPk2lQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129092; x=1793733892; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Faq9E98kwTR3wBkz0nF/S3ELSM4kVgaQwwjx3atQvew=; b=UgcTcMvsobWCPJwc1qhixs/AuOyxmAJi7AfNKG8OHa2Jy75AkNP+2FfZtxRf9agDGc Tj16pdKwkKJKAvAqhRdQP1WpJq7t7cwSe0ue6xwnsrOn4WV4ZfgwlRq/kt4B8D/bLcy+ 1SPoIop2Ayc/RTV1MXIoyRHmBOIYVEJhu2jhaR4KtQTn9YqtaJczTSC5p4RwbeDAFCB7 zIug9lUKenWgqc+/WIcon7oPAFSkI3kzNtcPtrlNkt2VvCQAk2jrEOiSmxibfxQFso2f OZ8I/NHgrIGLWhA6VSBvDVoXUjfBVXv6TJy+uzsGfH3URPdWceHZ4VwkJkTVR6w0F8aU 3SPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129092; x=1793733892; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=Faq9E98kwTR3wBkz0nF/S3ELSM4kVgaQwwjx3atQvew=; b=nfz/gBd3lkjnamvLgPzTyBfpve/d/YaMJwJPhr3BTbZ5xbAlx1dPDHzlJY206QbFaC jeZZbELW58FnZGptZsgjKvVT8+sUZkXkB6AxP3oeeAKYHoE3rxv4zgNE51DikaPERzy1 bBWxXfI2tB+lmSMi4u0PbT2MsN8g1DCfclAhqK9yhyoRpz6EYF85XzZ6K9rDlvnr/yo2 h3F3+wzpXv+X4LckNO+GE0TYTiBhlEcxxO2ngbqfvPeokrNYbjEPRMc2HFGiiCEerW6f YYw7FbBln6ebLVFoxr3E4A0iTK/OkDtvGbZjUZERiSqdApiFiwuHbbOVkKc+qFVBZB78 8xSw== X-Gm-Message-State: AFq9FYKBqad5ALf3EFgNYlxTn+RpoUl5i7SWnSEJFkpq14cAomimCzqj XJxV7QPO0753awceC6xND7kys0lZyzQHM5joB7NGsBoCQp3cbSZaHBwoVAbSYOQVGQ+D0YtMVO5 SecJloLaq1juGrf0Nu5Aqd+N1YZuwCGoKVp6c9qw6Jb1+jBb8oSqkILgd47dxYmqQQA== X-Gm-Gg: AYBFou1OagC/WS7erkw4MWw+jF77HuHDIwGz0W6ECYx7N23Xxh+bEQTpCeTobKiDS1A MKD1lXfRjR5hKox/ICHTkcqAckoLA7zdI1/nmr54GS/L7qFPP5uq3dyUeZzD6pEVEzOKaJi7q8o bXDdf2NKRJ52adOVcANUpVh5GzKaCF/rehOf5rEI5+XAA4g1yaa8PUsaydNxhyIbuq0kVzg1VZP 038VU94LRC+WJJXZpisBorFkyWnTaOmn5RfQQqdo2t/CVWQz6lchNcShXcfvXMLj3UtaVJeAt57 NqvlBc4T1KMDJ1no/UTdsPBVdJquxxIDjGy79Ogqki0y4nvHYRyyZ1qXbbN5m1eSXtAZ/290JFR pJpUqyfXoOVik8nXMqeI9B2nZReFrYVI6jG5JsnsKsSU8nNi9DJd0tbVoumLi3ZnrIWByVxUgDb x3fb921m2ZINDA4dG7wYnq0ukgrYTLCw== X-Received: by 2002:a05:620a:4087:b0:93f:6f8:9d72 with SMTP id af79cd13be357-940ef9d1e95mr1504202785a.77.1793129092551; Tue, 27 Oct 2026 12:24:52 -0700 (PDT) X-Received: by 2002:a05:620a:4087:b0:93f:6f8:9d72 with SMTP id af79cd13be357-940ef9d1e95mr1504199385a.77.1793129091978; Tue, 27 Oct 2026 12:24:51 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 10/59] tests/functional/arm: Add console test for `sabrelite` machine Date: Tue, 27 Oct 2026 20:22:51 +0100 Message-ID: <20261027192341.9197-11-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=GYyCDgXL c=1 sm=1 tr=0 ts=6ae0fa85 cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=xNf9USuDAAAA:8 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=FRSEYCzRAAAA:8 a=KKAkSRfTAAAA:8 a=t8u_m-V0UNmSaiA-_D4A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=IoWCM6iH3mJn3m4BftBB:22 a=H4N_Y-AU75W7NKDNhZlT:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-ORIG-GUID: CI1wnthKms-IpzMa7wulFBkC0uGQM-Qv X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3NyBTYWx0ZWRfX1tPE7miCEyCg JFTxyFm9I7dPMUZNgGubab6keyvKVG0BAYyUm9c80zH//qBKkMnDiQxFOy09b7VHvJcU6W3Sf4l 25PuEIniK0B06IFKCIi+cUHNUG4j4bKeRomcOlE1XCB5vSApIOJ88Stqi68QSJT8vGs/E3qw04y a0L8xlY00ANwqOtfMpO3AbUA04rAr8o/XBcjEwaSfqB++4100tzZ2vEMdEdstJzXUMPDLwEtTs8 ZfU30gkbSX+bnQY5+7JuWVSZY8VLPh5OaMkzzg5mzzMG9IvoiX60u1oyZsOoyVOqTHJZ/JWMH2y sNrvrPxttRaDytvatlgjxjKEeSbno3BJpBuCYZ3ep2iMRklqaAg1HyFOrE9d2mFivmQpCgRZyxy R4+U8VFAZyjua8Ws/6m+PSx7pKWrs8bocmTnLEW2S+DPDQJKXV8CNG7fUN/InnZtQBUCp/zdm2f F/AKJIhD2BkW6Cwh83Q== X-Proofpoint-GUID: CI1wnthKms-IpzMa7wulFBkC0uGQM-Qv X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3NyBTYWx0ZWRfX/z630h3y95tj UQGNLYn/iuIz1ua4rGrV6zwOnomLEtXM+i5gYkz+3XYuyMK2VNHFUC2lZrEAHcbzopkcbjhXuDv k4wxCDoF9L2E4UXrXNEQIReh0tGAjyc= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 spamscore=0 lowpriorityscore=0 adultscore=0 bulkscore=0 malwarescore=0 impostorscore=0 phishscore=0 clxscore=1015 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270077 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129152239154100 From: Bernhard Beschow The test currently exercises the Linux kernel and waits for the first daemons to be started. At this point, basic hardware is initialized and if the log message is reached, no driver ended up in an endless loop, thus the system should be usable. Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Bin Meng Signed-off-by: Bernhard Beschow Message-ID: <20261006083445.30362-9-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- MAINTAINERS | 1 + tests/functional/arm/meson.build | 2 ++ tests/functional/arm/test_sabrelite.py | 46 ++++++++++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100755 tests/functional/arm/test_sabrelite.py diff --git a/MAINTAINERS b/MAINTAINERS index 4ca1751e30f5..47fbd05db186 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1069,6 +1069,7 @@ F: include/hw/usb/imx-usb-phy.h F: include/hw/arm/fsl-imx6.h F: include/hw/misc/imx6_*.h F: include/hw/ssi/imx_spi.h +F: tests/functional/arm/test_sabrelite.py =20 SBSA-REF M: Peter Maydell diff --git a/tests/functional/arm/meson.build b/tests/functional/arm/meson.= build index 61b00932db93..989b841555d7 100644 --- a/tests/functional/arm/meson.build +++ b/tests/functional/arm/meson.build @@ -24,6 +24,7 @@ test_arm_timeouts =3D { 'quanta_gsj' : 240, 'raspi2' : 120, 'replay' : 240, + 'sabrelite' : 240, 'tuxrun' : 240, 'sx1' : 360, } @@ -65,6 +66,7 @@ tests_arm_system_thorough =3D [ 'raspi2', 'realview', 'replay', + 'sabrelite', 'smdkc210', 'stellaris', 'sx1', diff --git a/tests/functional/arm/test_sabrelite.py b/tests/functional/arm/= test_sabrelite.py new file mode 100755 index 000000000000..31a0a49eac4d --- /dev/null +++ b/tests/functional/arm/test_sabrelite.py @@ -0,0 +1,46 @@ +#!/usr/bin/env python3 +# +# Functional test that boots a Linux kernel and checks the console +# +# SPDX-License-Identifier: GPL-2.0-or-later + +from qemu_test import LinuxKernelTest, Asset + + +class SabreliteMachine(LinuxKernelTest): + + ASSET_KERNEL =3D Asset( + ('https://ftp.debian.org/debian/dists/bookworm/main/installer-armh= f/' + '20230607/images/netboot/vmlinuz'), + '5851e9c61465a26db810796db671c4729e66e81c365b3ebb1a4b7f772737605b') + + ASSET_INITRD =3D Asset( + ('https://ftp.debian.org/debian/dists/bookworm/main/installer-armh= f/' + '20230607/images/netboot/initrd.gz'), + 'fe33f836232a9107716d34dc56d36dea81bab039243a2a42ea6583a50c9b92ca') + + ASSET_DTB =3D Asset( + ('https://ftp.debian.org/debian/dists/bookworm/main/installer-armh= f/' + '20230607/images/device-tree/imx6q-sabrelite.dtb'), + '3ad637c8ea55ebd058a67f686e050b82ccb0d1327bc283623c133c48ad87db44') + + def setUp(self): + super().setUp() + + self.kernel_path =3D self.ASSET_KERNEL.fetch() + self.initrd_path =3D self.ASSET_INITRD.fetch() + self.dtb_path =3D self.ASSET_DTB.fetch() + + def test_console(self): + self.require_accelerator("tcg") + self.set_machine('sabrelite') + self.vm.set_console(console_index=3D1) + self.vm.add_args('-kernel', self.kernel_path, + '-initrd', self.initrd_path, + '-dtb', self.dtb_path) + + self.vm.launch() + self.wait_for_console_pattern('Starting system log daemon:') + +if __name__ =3D=3D '__main__': + LinuxKernelTest.main() --=20 2.55.0 From nobody Mon Nov 23 04:26:24 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129190; cv=none; d=zohomail.com; s=zohoarc; b=N1dSSPAbwuzdcSBrr8PCngoC6QtMPQtAMaDiy0TWbggs0LyN8FbVmI9TD5+TOkv5i1x59PXw0rX7skPkwK/8TYbRy8HlRcpoST3e0AwI6kyFP90tmKe+3nVwSZQQ/8xF8IdwEm5seYOWFqgqiyFL511TSQjEGac9CKOoiG9sZPA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129190; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=PdScQ5nmpybeikNoT8uSfv4tN5EFplQchnr6nyolkIY=; b=KOFHWwNkN0Qazh0TVXu8q5V5/bcrYt20vSZHW6BI5iBYWh7t0rpWahVDp9lIDVL+JqykjFDe0aWQ1DFf/QJCQOmymuvVRcoSdkpOE1mixL7T56j8zdbRsaWGrgA6PW46lgPx16p893eHSIOefJ75O+N438RVN5aCc9A76Re7Qic= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129190971224.2190192813539; Tue, 27 Oct 2026 12:26:30 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmoI-0003h8-3u; Tue, 27 Oct 2026 15:26:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmn8-0002Un-Np for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:25:03 -0400 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 1xLmn7-0001rX-3m for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:25:02 -0400 Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHqDm2960506 for ; Tue, 27 Oct 2026 19:25:00 GMT Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjy670v1p-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:24:59 +0000 (GMT) Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-9308eafb465so27846885a.2 for ; Tue, 27 Oct 2026 12:24:59 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a951f7f544sm1781525e9.3.2026.10.27.12.24.57 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:24:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= PdScQ5nmpybeikNoT8uSfv4tN5EFplQchnr6nyolkIY=; b=FbhT5lfp7Dzd8nGy 8i/TtDLHuqd9dbcHG4nvVTv3Tkp5k9WQtO17+AFxeDtF36kAAL0VsSqIeqJFg4tZ BsUvCoyGhqNhiimvETFeZTDUByEm7Nxsh7mo+pAMQ9KHqhtHp6gLplo34mSvYZbe SU9rUbi8A07hD52JhTiWnsYMF4GYj4LnCzeg/ri1Nocz1Tt0JmC5m40KxGMsIlrA 1xx9bU4iFebIxLfAlsWU8liITcQmPAXcO399D5hONYlaWchtJgqaeG4Plej7TkqH 9Fn1khy4MSOmvnnX9cGzcs8Uu8QXlF6R6NHsK94pTled0OWM0/qYxS4uggxSvw5Q unn81g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129099; x=1793733899; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=PdScQ5nmpybeikNoT8uSfv4tN5EFplQchnr6nyolkIY=; b=Bk3HS8ok0exTe1I4Jj45Mhi5RXsGH68la4C3o48bmPLZFievwYTTK/kfYSWifMlXH/ gtSdGNpPDhzbnkn+YZxFukyXgI03xcYsm4rONKMn33uEBsnGJesj31YrA33QJGedXRya Y3nYw84mSN2vCw0mvX/JK7eocv57/Gti7FXd2N1pQ9rIqWpGSk+8bfxp//l7tJ+JDP4D 0k8bw805LAG5BBVFE1bUmZ2XH7/kgODs07YhhbdE30mWmHSb2v8fCt8gdi/bBC+au+jC M7cZ3UuAFaFG2YRQu+F+EKh8pbKhuQlgQBDrRE7EPTH8iHN/0obt7Q3eXRSMl5eJzG7m zCqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129099; x=1793733899; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=PdScQ5nmpybeikNoT8uSfv4tN5EFplQchnr6nyolkIY=; b=IH759+8OZnD5Je7QT/K9YEe9OoQyRXgEbGihxqq1XFsLoeBqbHQRMgJ9oOhIgWT4zv Cv8HHGMpu2ROn7rzxGZ5JrCYhiPJFuaiK+cgPM5Mylsnss3Pp5WVqo8Hnca2D63yP6hV BAp6k/XTWbs6E7fwjPhFKSm2kLNdpKHSoTJ/vS9Hkz0oHahE6kcgkedQtJSx88Wofk/w bp/5ozfGjEHqUr30TurSek0deCPGCK6Ctq34iSLpsnX5JJSIJF2Zdpv5QqGJDetZJlGj w5OnBAO/7Y4ZW3k9i/iRzWiNlNONl/JIhSIEbddhV0lJoJ0b9A6WsNbBFmHPnwKzDhHe jJ/w== X-Gm-Message-State: AFq9FYK714lR2rNv/Uw5mh/iWJOhdTMboPZ4+V0eZGXj22TMCQ4mD0cL +PPe+0+ezIEeq8c7/uiIEMziTDrG+Gv42rbym24df1v94Wng2egvz1Jy0FC7CO/vXIXIr/AW/At 5qd5C/YC+bVH6F5z2HqStjUIn2hsNyzNhElljErY/jL00Ez8xpMrHq+RzXh80Fx7LnQ== X-Gm-Gg: AYBFou3DZUlZJZRNqs7qdz+pE6QDizwfe8lLwQR55Z0pBqHimgATL+ApTGsq1JYEdC7 vp0xw6qDkJnvsa+4cwg6rkwsaJsppSqeic4wzLT7/nxsmglaAhreh079SEY3Ho4U9d9b1dT/RTo LNQX57g+kc1REnMACNTSfnOrFU+24JKOkx/FmZgNLEwzy2J0OAPWU/b9loJdY2kLhl4IgKzynqI sSJdqDjITG/k7ja9ZqNXDokGl3Q50tR5o1rmD5mrNDiQ1wwq22B5H5EROvyKImnjW1IOI84HNHz yRwv22sd709JOi3pgHnLJbKpyM7P4RD3dBqpiWG5l9MT2LArXT3mTWG1phLct3bjPnHqE60wTW8 lUsuTmELbJaDQRT3QwmtfyBvryhodzBtXA+Wivgh1yV34SlXUGi5DcK14 X-Received: by 2002:a05:620a:4556:b0:93e:5cf8:e5aa with SMTP id af79cd13be357-940ef9380d4mr1758399685a.61.1793129099377; Tue, 27 Oct 2026 12:24:59 -0700 (PDT) X-Received: by 2002:a05:620a:4556:b0:93e:5cf8:e5aa with SMTP id af79cd13be357-940ef9380d4mr1758395885a.61.1793129098800; Tue, 27 Oct 2026 12:24:58 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 11/59] hw/arm/mcimx6ul-evk: Have 512 MiB of RAM by default Date: Tue, 27 Oct 2026 20:22:52 +0100 Message-ID: <20261027192341.9197-12-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: sgOMst9mQCvw61T49pE-iV8w4pu2CeSY X-Authority-Analysis: v=2.4 cv=QvfLTlyd c=1 sm=1 tr=0 ts=6ae0fa8b cx=c_pps a=hnmNkyzTK/kJ09Xio7VxxA==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=pGLkceISAAAA:8 a=FRSEYCzRAAAA:8 a=EUspDBNiAAAA:8 a=TiZ8CxiaEXEXIp79E_cA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=PEH46H7Ffwr30OY-TuGO:22 a=H4N_Y-AU75W7NKDNhZlT:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3NyBTYWx0ZWRfX9RZ/EoCazKpn iztvkGtx4y5vO6mSt4T7/mM5/mUX030FUvA60U6cpjydbt4Yu9Udj+7wYbFLc9401lv14o4Ab3z AhzTqRx22EVpfsMvSjbo0/zTewx8mNs= X-Proofpoint-GUID: sgOMst9mQCvw61T49pE-iV8w4pu2CeSY X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3NyBTYWx0ZWRfX7pck7cZLIwRg KAQMpSSeOnYhNAD2FCZCez3i5PVFnI+KbNX3u58FYDX6t6WhAEre3o2LhCpRGYeDc+0DwL5aYb+ 39xUyZjVpuNSo9PHas+2LSFmYzxseB+wrLNFfXzNUfQNtG6iUezFI/e/XsCoBMApUuoHWqtfMMc JXquHRRIoSOSl4rUT/OzrwQm70CKMBmy2Z0mhMTd/gKCu0k+rKbvBMZTfJijG/TedxGph/MJZhE umR0Rnw9d1dWXFX62VOdVEWOyhnZc/5+K/I+j7WonY6ywHlwyDyfgdK9orQRHAZl9EbE7t03tpo Td9quPS5pMRosH2W6WxSUEAECiYszT9PpS+YFb2sZ2tMOSwf21kf2QhSDR6xNBBj7bHBwlaTNBV /nvQ7r9jH8cfW26QDx4+9YuERdqS5bQE8jyWQ0UrLRqGjh+TlzL1sJd2URnQk5gv1CBYjoZOFoL GbwgwXV8gJkqSXE+E8A== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 lowpriorityscore=0 malwarescore=0 bulkscore=0 spamscore=0 impostorscore=0 clxscore=1015 adultscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270077 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129192148158500 From: Bernhard Beschow Having 512 MiB of RAM matches real hardware. Fix the machine default to make its use more ergonomic and less error-prone. To reproduce the old default behavior for e.g. migration purposes, `-m 128M` needs to be added to the command line. Reviewed-by: Bin Meng Signed-off-by: Bernhard Beschow Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-ID: <20261006083445.30362-10-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/arm/mcimx6ul-evk.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/arm/mcimx6ul-evk.c b/hw/arm/mcimx6ul-evk.c index 40071d2c7b96..4964cb934519 100644 --- a/hw/arm/mcimx6ul-evk.c +++ b/hw/arm/mcimx6ul-evk.c @@ -73,6 +73,7 @@ static void mcimx6ul_evk_machine_init(MachineClass *mc) mc->desc =3D "Freescale i.MX6UL Evaluation Kit (Cortex-A7)"; mc->init =3D mcimx6ul_evk_init; mc->max_cpus =3D FSL_IMX6UL_NUM_CPUS; + mc->default_ram_size =3D 512 * MiB; mc->default_ram_id =3D "mcimx6ul-evk.ram"; mc->auto_create_sdcard =3D true; } --=20 2.55.0 From nobody Mon Nov 23 04:26:24 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129210; cv=none; d=zohomail.com; s=zohoarc; b=Bog63CRgAP7suRajN3B4InfOudGDVZN0gHq4kb9eRa+MdShDGdhhQrpc9ADz9j5bzVbzxsmbL8Juvr3/8NezhSXxzhUdVD+mjcVHkOjMMbK1/w875y9nIFer5BUyGeyQGDs2IIBDHd+1Hux+Tpd6R1Prk/iGdg85zBheuKg/ysc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129210; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=uDig2pG9dIRX/TbDPHVfoBUkQ30vSYN1+1px9xW16O0=; b=bmyZmHD6f/qpS0BaaKfxH1GDjJAAkmsvKl4hUO+Qs1gP8Ls/hbe6d0sFxM34k6z159cbIbZdrd0LpnIUHzUv5qYC8xb6i11ZAqJMl3bOnkQiIjs90uKmSEhc8KTWCz3E5Qnqx/Xyc4Amv/FaWokbihcxvsIAujTH5mB/AtzBEe8= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129210066765.666086261227; Tue, 27 Oct 2026 12:26:50 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmoa-0004D9-Vn; Tue, 27 Oct 2026 15:26:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmnG-0002ci-Vt for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:25:17 -0400 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 1xLmnE-00023B-2t for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:25:09 -0400 Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHvtw2961223 for ; Tue, 27 Oct 2026 19:25:07 GMT Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjy670v26-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:25:06 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-93caf6c528aso18929485a.0 for ; Tue, 27 Oct 2026 12:25:06 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a952b0418esm2105775e9.11.2026.10.27.12.25.04 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:25:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= uDig2pG9dIRX/TbDPHVfoBUkQ30vSYN1+1px9xW16O0=; b=lScPq3mAbQ2cKeUQ ibCJRi82fdN9+ZpVMBxSyEQVl10aO+pf0UsJyLAZJRlPuHn38WxJmdXdmnwIrozo RIKN05I18zLEt9gcJo7TPnDb0SYQfIl1ssR2bD0XVt93XBO8LlUeeFux0pWu7fLf c9yX1InxX0ijxd/x/jTIqmVmJmeCzGhY6YQzRqjK7+dMRhEgdLgo5y5+OOB+QhaU jPRggoF2oozv7GaUoScazHyOuU3pPJKak4LA2Y6tEmt/1zueT9YiOdGDivXowqmK j9kIezn6DSwNwiz8+CUFNMfVNgpZ057jov8tkpBqFM7a+2OzVtlLm+oZ9jF2A+U1 cGjZGA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129106; x=1793733906; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=uDig2pG9dIRX/TbDPHVfoBUkQ30vSYN1+1px9xW16O0=; b=AP7HAdE7eONP3L6D3VYSoZCtCQX9HFLkdTxWDC3Pu8/RFNqpBIRaKeQsAaZKdXvqYA 2cmgbkfsDVyAWBzaS3+FbDP+2oQJv6IjcMKrKszZ8RhDCZ9K5CafDTp0mHMTwOysq7SG ngKLo+ehuT4mLYKMlOykLjNLXj3o225x/PpnduxO8goaH9BW0hUzHRCmH10nnu6Ctnvy LuoUMnckflBEutLkPHPD0bBSV29tcIwwrCV0vlfIpk32mmmM6TqfUxOIQM6Rt5cyiquJ fVeCZM4q8p2/BvNz7rUszT6gWFXSa2sjcrqM8dwicqoJ7r3ztjke8CnwZ5JEjGvFTsm+ XCFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129106; x=1793733906; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=uDig2pG9dIRX/TbDPHVfoBUkQ30vSYN1+1px9xW16O0=; b=1ffxiX8svHKfydysRJ602Y1iBVpxGg1aFN8spcTuHj1BEfZOrLSsPY3uc05TVQ219H ZiEi0Mxp/CdW5aJAOs+e4AModTY0aH6leKM3StLP7wwaIP6G17qCqvH7+KJFmcB0+NgJ YutnFYWDkDBG1PkrUMYlmbBW0e42GLUyZ46GjkhL4cQNpD0lsa+B3D/A/AHZY91lU+4c GoKXioCh1B0XuljaKQhjBuiiS9UegV2V9aSjejGuyFBztwZB8XUHMaDI9VTBAzDOVpZj pZmY1EsbAiPm6hheLi9LmxjU/WiowJajPYMZzjSX5tmG+G0dqQ/KC/EGHtX5ETUQ7QrJ Q/wQ== X-Gm-Message-State: AFq9FYJr0RzDMfB3BrJF+6sSajmRXEDuKqLnTynikR+MOx6818NT1Bd6 WHHqEzHi53nnqX3N2VSxPuHCb1bfI3h9En55m6F8aOlpijBLuqAQ+yGN0T1z2noFMTgvO+Y92iS in3SPacyGQF+O3ybP5fHLJbaa7jRfz5s+gEEieJVT+KeZJQXJEEzpgIWKUonUmqKTSg== X-Gm-Gg: AYBFou2kz3vtxarT/kbJJpxNa12IwRFvgZbWKj47VUUtaKPiMx+pdyBRjtjTCuvR6kO KZkmmGzqH6Fz3TnwJ1oyN2hG8T5FbgZZJfWCNifKBOO3pQ3oDs+GqWUyKGknQdGwbyWMUc3n3Ai DasKEh1CLcr7w08CYs1Qr0yoUzCeDJ2Hq3uu9lpGmLnripmk7GN+ZCapdFFwjgtnCLhGEGYheXc wcsGBrXXpVi2xBM14y4hBy0+xzQfBjz8mUSM2O4Qn1NYlmGMP8Rguh0Z+yroesEheVCjNygRM3c EOqK/MQq9joZdd4lNY3sjoHtAel75YhW5hMUCk3hKNV4Hib3PfyGBX6LtqbjIaDwvKhnb1NEGki CKdvI2aAaCgHX89BwRRBPDWj2Ydq83R17bMGNb2C0z0paNcIrLbSw+60DgozJXOiGIBIvF+eM0k z0lAFkUnVD3ALdAvPxqQI9WpmaOnI2Wg== X-Received: by 2002:a05:620a:1a20:b0:93e:acdd:acd9 with SMTP id af79cd13be357-940ef7d38a7mr1789367585a.7.1793129106126; Tue, 27 Oct 2026 12:25:06 -0700 (PDT) X-Received: by 2002:a05:620a:1a20:b0:93e:acdd:acd9 with SMTP id af79cd13be357-940ef7d38a7mr1789363685a.7.1793129105671; Tue, 27 Oct 2026 12:25:05 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 12/59] hw/arm/mcimx7d-sabre: Have 2 CPUs and 2 GiB of RAM by default Date: Tue, 27 Oct 2026 20:22:53 +0100 Message-ID: <20261027192341.9197-13-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: P96GwJ6ppcomGz3hdeBQ9F2jUedzUd9u X-Authority-Analysis: v=2.4 cv=QvfLTlyd c=1 sm=1 tr=0 ts=6ae0fa92 cx=c_pps a=qKBjSQ1v91RyAK45QCPf5w==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=pGLkceISAAAA:8 a=FRSEYCzRAAAA:8 a=EUspDBNiAAAA:8 a=TiZ8CxiaEXEXIp79E_cA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=NFOGd7dJGGMPyQGDc5-O:22 a=H4N_Y-AU75W7NKDNhZlT:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfXwK2FDijo1hwT pM9HmHyMMwl/A1KP2gqmgXbTzZbGIgysmBRmnjhzXDu61f7N4L1bX1OePUCVUHWI8GQbWBIvq9M c+6D730jcMdoJBbVVRl4zBoJAsS89Zo= X-Proofpoint-GUID: P96GwJ6ppcomGz3hdeBQ9F2jUedzUd9u X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfXxZbislAmNvjq LrvfIr+g+lCzXdqDHUHZNP8PAsgYe5FoYJ2DjR68mDGpPU19kOSp66QMJ/sxdZds2hbE5Hs/qhp ZrvP10/bQUPe8cUOFeEN8vBQwmYM1zoqNW4ZQlGcgkmrROHjQvzIU7fPW5JE5+uU+68TIjMypqD t7JpUrXorfVTSuk9osrfEnI5TSTkuECdB1fybNYG0Xwld+xYJMqeqRFCFH+ixVyjbiAnxPw5yCt JG1Af5nHygKVa5t9++yE4UXF5dTBJ9W8+8J8d2BJNQcdcfp5pLF11leJ6g8EpP+aZmkiCkVDQ4g jrPei4+hxexBABbkTUF/E98N4zyAy/YWpu0g0PXk1SFcM24jUh2MFrNeBceQVOjJ2UR/oropyYU FWQo7ywF3Wq7G5/RQhm3Z/ykN0PyOM1HLBlc46UkylOKAwilUQVfNULDsS9dY7SOqJhGy5FsiKl uAg0CKo6fja+W8vrXuw== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 lowpriorityscore=0 malwarescore=0 bulkscore=0 spamscore=0 impostorscore=0 clxscore=1015 adultscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129211462154100 From: Bernhard Beschow Having two CPUs and 1 GiB of RAM matches real hardware. Fix the machine defaults to make its use more ergonomic and less error-prone. To reproduce the old default behavior for e.g. migration purposes, `-smp 1 -m 128M` needs to be passed on the command line. Reviewed-by: Bin Meng Signed-off-by: Bernhard Beschow Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-ID: <20261006083445.30362-11-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/arm/mcimx7d-sabre.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/arm/mcimx7d-sabre.c b/hw/arm/mcimx7d-sabre.c index 65fdb19c06fa..47744e66a4a7 100644 --- a/hw/arm/mcimx7d-sabre.c +++ b/hw/arm/mcimx7d-sabre.c @@ -81,6 +81,8 @@ static void mcimx7d_sabre_machine_init(MachineClass *mc) mc->desc =3D "Freescale i.MX7 DUAL SABRE (Cortex-A7)"; mc->init =3D mcimx7d_sabre_init; mc->max_cpus =3D FSL_IMX7_NUM_CPUS; + mc->default_cpus =3D FSL_IMX7_NUM_CPUS; + mc->default_ram_size =3D 2 * GiB; mc->default_ram_id =3D "mcimx7d-sabre.ram"; mc->auto_create_sdcard =3D true; } --=20 2.55.0 From nobody Mon Nov 23 04:26:24 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129264; cv=none; d=zohomail.com; s=zohoarc; b=WebW1LzQPcVtsn8JYSg/AcyoejZRbpmExlk9c9ox8WDI+FPCXtOzqtKjsuNXNAVNNELx1d/EylgmBrp2MxIaayRMofwRNyIKNxm8neIUdV24c/SAJzqASY77/ugIRWmT7EJvR7AodTvH/a3TmcA31UPNgugxO/xqWUHw33HBezA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129264; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=Y6rYAMEK80kXQsUvZJ4GPX960Ux0Gn6eJ/YE4lxkayY=; b=GweqIFcH8o+BiAi7AjzduPDZfPC775MH1Xwj0AFH0QlKKk9UmZEShWSQ4S04vOpDuBSTnTqMkbc/7bF3c1hK/UkKwqmDjP/lYeUhW3fqWFTeWWHqT+Uu1YjbrQLoRuVPeiMFB+ctEWtIr6hw3EfqZ22HUuBkKWSit8svPITWUAQ= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129264780147.18145993423764; Tue, 27 Oct 2026 12:27:44 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmos-0005GW-Ib; Tue, 27 Oct 2026 15:26:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmnO-0002qj-OF for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:25:23 -0400 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 1xLmnK-00023y-Rd for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:25:18 -0400 Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHPQf3553875 for ; Tue, 27 Oct 2026 19:25:13 GMT Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjqw22wgv-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:25:13 +0000 (GMT) Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-92e82060977so39566785a.1 for ; Tue, 27 Oct 2026 12:25:13 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a951f7f2b2sm1796305e9.5.2026.10.27.12.25.11 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:25:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= Y6rYAMEK80kXQsUvZJ4GPX960Ux0Gn6eJ/YE4lxkayY=; b=UEm0J6UbG22aj0vh sv3jlanCKVAqz79dVIeOumUKYohZWxxr8/B4Cl7+FozW6QAldrvCC72SqMrt9GMm MA7vstk3zlibC5nVAIpSW1CQvNfCUhzFZ9/mIcyrd9+chPm5vG5XAxMzySrqauLE Rs4FSDNZED+G+tM/ApdqEHuNeCOkFxjlRbl/GOuVwVvIkBb11mFuZFTdalZMEvhe soN0n+db8PSDJocr82YP59zHA2P8IK9XA/Vxnwj0GujuGs8OyqRfv+oOMFLXou0+ e5uxb4fBZGkZm2XLc4qd/UmRzGpFjZWAlesa3yuUYBlpJFfC6MM9XWtHupl4sboU A3lTQg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129113; x=1793733913; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Y6rYAMEK80kXQsUvZJ4GPX960Ux0Gn6eJ/YE4lxkayY=; b=UPuyiakTL44+yix20cgrykJpqIiZdGGGs93gQXwMZIsr8MiGuclqs0VaAQcHgN54uG 14ZNVI/jXz7Zvb6ZFXuuPhnqNMn4kMXvCDbUWoXSmAxqE2JPWpfWBxlGfOe6C4ZN+Q99 6zRuMqyZ/oV6H42/2DEvAs7lRB+GWVvSWCDm3F5xGqurl6dpucfzzbXzE51nJBZZfFew HAEPi5HSzEHrAVsuquMlWin/65zpcOG7Sv6uUKw6hzi2dGlgKGeK6of9jQXdH0aCY90r rz8f3tRwJfTEh4bSjzH99wXY1K8pPtXnHjdR4DoHRvG/8UrtHUHRMtnxRmsSbGpxMEZb AdEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129113; x=1793733913; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=Y6rYAMEK80kXQsUvZJ4GPX960Ux0Gn6eJ/YE4lxkayY=; b=llGdC5XPRNjDbcYXNzp0sa2yMxqQfzLCUyvHRVrlkIlLsjEwyQvE17xQUO1Sm/ymUy 1+ygz+HuaesHY/rCBDRDwedp+MLuDPAys9ClTt5JfuCaOV19sKEaMpNzhN0TQuN/AkEF Yzyh3lAVjk3K923hZgX5Q920861jIYOCneMbRImJXE+hGR36xQQ2nGO5vOmYrLwjK/SP xGgXrIn6LiaPzPlXydNqmbEYxgpYxduYWBHX7H4j2MBQjbCaRAWVXbi6GU9M1vys7mTA zgiRY4QQLFbZBbAJr8G4CFqSdaAfru7E/gbUlmNDGLWVORsVr/lbOhLk29+8NinteINd +8Vw== X-Gm-Message-State: AFq9FYINAN4c1y3MpFJStl24QkI8huvt+O8ZYEtaAipYzCREpka0rQTN MePx+xwZQh3jP+rtKakOaciByitwNN1kVziXkWuEqvyaWLbYgqvhcOZ5KNCyKM5uLTTAH64A0eK veF3RlaeVo1LKSmWHA9FcINXZl1DFAQ+T0VExz25WWE9J7VzvbiRH0Xu7/3fQyjW7Vg== X-Gm-Gg: AYBFou2h1R6jVLAmzQScM9u03zSkZtFkJ9GXwBqcPQ2tY7SQTghOy7KHyV7AB2txAqt NjpG42VusJO+HL4vWbxQy9sVXuI6Q+WemxFKqSw1AJBkBbcN5Q1o1iNmpuw9DoXano4U9Svxuf8 AveQme4Lm9CUocellcKMpJvFAUTSCC7rubKaQLfFWbfRI7GJwAa2/eiSWCPG8/PN5EkcCBSIKWJ v/zYxZvo1RBcK26VmGxoxVD5T86VuSmiD3xXxpRqq+cKa9rSb7jtSHwCHaRoBntCjSjCqPLdqdi brqE3VJTsjmB2FoClfZ4RrYijZU6GcmjUpXaDgFM3z7PHGzspaejBG1bFCnT9fx8teUK18zVgAH WJtICOptoWL1/kLgcNJYGazCHXU0YrAehmclmzo554TCbjwG6Mb+CMoFD X-Received: by 2002:a05:620a:72c3:10b0:944:6ad:1b7f with SMTP id af79cd13be357-94406ad1bddmr54748385a.32.1793129112934; Tue, 27 Oct 2026 12:25:12 -0700 (PDT) X-Received: by 2002:a05:620a:72c3:10b0:944:6ad:1b7f with SMTP id af79cd13be357-94406ad1bddmr54746285a.32.1793129112379; Tue, 27 Oct 2026 12:25:12 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 13/59] tests/functional/arm: Add console test for `mcimx7d-sabre` machine Date: Tue, 27 Oct 2026 20:22:54 +0100 Message-ID: <20261027192341.9197-14-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfXzw/9rhWkQUZa NahV3hk3bDCai+PQX5Oz1hpGQ2zCa5sQgwWTZV0MUA91zJRs3sZ7jpEkjB88SgMaSlNXfqUDsp3 XbMbN87jnj9gR/UBHnYo/xzXSdiTN44/WImtnisSqINlYGsVA9Tcep3XncLIdbAoQR2KtXUAsMd z/bGxXXa9HTerpbCG3N3J8ZjhOV+LtwSOBjh2G8zIZ6DPI9vyM0bfkdro4Q2IuEaLE6ZnarRwo5 UTlUyJ+OAV3FGWZyVpwmayiLGgrAVJeMSpsH4tb2TWWnXNsz0UoJMOoxhRDfZsSAQmH0fPOIcMj JLPGykZGGVsMbfCYWSIFYK/F9+3JbmRYyCnxlSsJIT7XdTcMc+2qcoQsDv6ErlaPmneOXx4dM/e 34+BmxWfKOi5v3i07yXvWONkDeTiKuJSwPkTTTlcdq59Fk218fzZZwq4KW93uptor13A+8jcPZJ +iJq9PtnY0maFZT/uMQ== X-Proofpoint-GUID: X0KUlbxqMChgrOT0DpMayUUGjX4jeDsl X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfXw/tNgRA8y7Fh Y0h17sRHbr/7mBN1X9+KhmrigvvktbWw8PVTKneeyqe5cS0Dha726CYsI+rAXGrya2f+NvIDTVT 1ehmkDD/UwzQu3gQ+LQkbgQ4Iy/oFis= X-Authority-Analysis: v=2.4 cv=PsYG/AM3 c=1 sm=1 tr=0 ts=6ae0fa99 cx=c_pps a=HLyN3IcIa5EE8TELMZ618Q==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=xNf9USuDAAAA:8 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=FRSEYCzRAAAA:8 a=8AirrxEcAAAA:8 a=Ygzc3wgccB1K_Ho113AA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=bTQJ7kPSJx9SKPbeHEYW:22 a=H4N_Y-AU75W7NKDNhZlT:22 a=ST-jHhOKWsTCqRlWije3:22 X-Proofpoint-ORIG-GUID: X0KUlbxqMChgrOT0DpMayUUGjX4jeDsl X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 spamscore=0 phishscore=0 adultscore=0 lowpriorityscore=0 priorityscore=1501 bulkscore=0 impostorscore=0 clxscore=1015 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129265801158500 From: Bernhard Beschow The test currently exercises the Linux kernel and waits for the first daemons to be started. At this point, basic hardware is initialized and if the log message is reached, no driver ended up in an endless loop, thus the system should be usable. Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Bin Meng Signed-off-by: Bernhard Beschow Message-ID: <20261006083445.30362-12-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- MAINTAINERS | 1 + tests/functional/arm/meson.build | 2 + tests/functional/arm/test_mcimx7d_sabre.py | 46 ++++++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100755 tests/functional/arm/test_mcimx7d_sabre.py diff --git a/MAINTAINERS b/MAINTAINERS index 47fbd05db186..78d1663f09b4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -950,6 +950,7 @@ F: include/hw/misc/imx7_*.h F: hw/pci-host/designware.c F: include/hw/pci-host/designware.h F: docs/system/arm/mcimx7d-sabre.rst +F: tests/functional/arm/test_mcimx7d_sabre.py =20 MCIMX8MM-EVK / iMX8MM M: Gaurav Sharma diff --git a/tests/functional/arm/meson.build b/tests/functional/arm/meson.= build index 989b841555d7..e657ecd27824 100644 --- a/tests/functional/arm/meson.build +++ b/tests/functional/arm/meson.build @@ -20,6 +20,7 @@ test_arm_timeouts =3D { 'bpim2u' : 500, 'collie' : 180, 'cubieboard' : 360, + 'mcimx7d_sabre' : 240, 'orangepi' : 540, 'quanta_gsj' : 240, 'raspi2' : 120, @@ -60,6 +61,7 @@ tests_arm_system_thorough =3D [ 'emcraft_sf2', 'integratorcp', 'max78000fthr', + 'mcimx7d_sabre', 'microbit', 'orangepi', 'quanta_gsj', diff --git a/tests/functional/arm/test_mcimx7d_sabre.py b/tests/functional/= arm/test_mcimx7d_sabre.py new file mode 100755 index 000000000000..2894b5201fd9 --- /dev/null +++ b/tests/functional/arm/test_mcimx7d_sabre.py @@ -0,0 +1,46 @@ +#!/usr/bin/env python3 +# +# Functional test that boots a Linux kernel and checks the console +# +# SPDX-License-Identifier: GPL-2.0-or-later + +from qemu_test import LinuxKernelTest, Asset + + +class Mcimx7dSabreMachine(LinuxKernelTest): + + ASSET_KERNEL =3D Asset( + ('https://ftp.debian.org/debian/dists/bookworm/main/installer-armh= f/' + '20230607/images/netboot/vmlinuz'), + '5851e9c61465a26db810796db671c4729e66e81c365b3ebb1a4b7f772737605b') + + ASSET_INITRD =3D Asset( + ('https://ftp.debian.org/debian/dists/bookworm/main/installer-armh= f/' + '20230607/images/netboot/initrd.gz'), + 'fe33f836232a9107716d34dc56d36dea81bab039243a2a42ea6583a50c9b92ca') + + ASSET_DTB =3D Asset( + ('https://ftp.debian.org/debian/dists/bookworm/main/installer-armh= f/' + '20230607/images/device-tree/imx7d-sdb.dtb'), + 'eed45fe3ba682cc814217bc4558551d36c034ec7a7692c4eb6eaf86132baf80c') + + def setUp(self): + super().setUp() + + self.kernel_path =3D self.ASSET_KERNEL.fetch() + self.initrd_path =3D self.ASSET_INITRD.fetch() + self.dtb_path =3D self.ASSET_DTB.fetch() + + def test_console(self): + self.require_accelerator("tcg") + self.set_machine('mcimx7d-sabre') + self.vm.set_console(console_index=3D0) + self.vm.add_args('-kernel', self.kernel_path, + '-initrd', self.initrd_path, + '-dtb', self.dtb_path) + + self.vm.launch() + self.wait_for_console_pattern('Starting system log daemon:') + +if __name__ =3D=3D '__main__': + LinuxKernelTest.main() --=20 2.55.0 From nobody Mon Nov 23 04:26:24 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129257; cv=none; d=zohomail.com; s=zohoarc; b=l0S9eBNAv1hRT0mxi0J/W0PfYuGVk+erFWd4l6h7qfBC6ijlnbeXoVil3TAgzrIECUE45W43kwq6AXfUbh1NXGvRhVx/Zh++rT7YkCSnqvGIpioy3vznHeW71Vqo/f74QbsBbfNlUiR73kyNFti7bi7QMZ+zZ/xZauI+oMlyUqs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129257; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=W7+uEZbGkQU1TPLefcRpyrRoTDktr5VFKzI6dglIwr0=; b=SPfsYM3NpdY1B119SOjwPMmrjCLDyA6Cm3lMAHYCfjqsJ19G4Yax/nLzyonzsM076SlflJDcCOKIjfD5CJvl+tdkzpIYU5SKKIUGAzQaGYq4rjm+30xgsmyp4JxkS6SF1G17did+QXhxg2UoQUY5YITbEly89ha5U7yxfDefLxY= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129257534551.4183432867995; Tue, 27 Oct 2026 12:27:37 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmor-0004w4-3k; Tue, 27 Oct 2026 15:26:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmnU-0002rm-50 for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:25:28 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmnS-00024s-Ce for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:25:23 -0400 Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHVbi2997927 for ; Tue, 27 Oct 2026 19:25:20 GMT Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjst1jcar-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:25:20 +0000 (GMT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-93cb98809caso22284185a.1 for ; Tue, 27 Oct 2026 12:25:20 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a94e6b8290sm3018205e9.9.2026.10.27.12.25.18 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:25:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= W7+uEZbGkQU1TPLefcRpyrRoTDktr5VFKzI6dglIwr0=; b=Snz80S5Xl/ugyUWv dgGneR5FLU7ZmfCs8iYL7Lk1I/avxkrpdegK0RMnbtWqPLVyrDALxCSdRHFSX1E1 vPtmeeM9SorTo3PrWH+FcMDZXEkV1ibdB+h1w+B5mVTXIXyQXifozK3zviPVw9T7 C7uKfTvxRO540pfNB/ZJ0Dv/dt3svN5IUzFc/FW/HDYDLh2SM4p4XekhNmqtJFrH hr/W/6WVkqsrl8EnMZFSwk62aorqQb8HvXllojOfPfDFGUVhDuikvUqoP2cTBd8J 3ZF9AM1mslHUOHvOM9ugcD41hxGipdmEuIf6Yr/T1Ab0wvWhvSELlHrOWQbiwzL7 pELDkw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129120; x=1793733920; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=W7+uEZbGkQU1TPLefcRpyrRoTDktr5VFKzI6dglIwr0=; b=APyZHSR7fiaNzd32qPjwTrS8UJV8zm+Vbis/cQH6FB7DhUOCmBkM5TyjT1vhpHan/e 52fNVYML8K1wYPWwvbAT7W6iN6kM+J5p3NfBCfT41DEuzqYJrlQj3gZLJCcQd7dDlnpc ssxqSIfKGlxQlMcFnjaTKkaXhuCRAGOUeJxIB8n2AuAY/xzWcoPhz355MQrt7RXiEi9s 1A9r/ga7zZwm8E8HZKBKNqxdFavsh0slZblh0Dz3vTYI06m9593L0sp5ooTJOrwgeYOx 0JYGmHCrjVH8x0KBxmM2G+/5pWRBc0bIvp1ekU+BgEi8L54iwleS2fKz7eZR0kZagQS2 UzdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129120; x=1793733920; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=W7+uEZbGkQU1TPLefcRpyrRoTDktr5VFKzI6dglIwr0=; b=DVr4PEpkbA/AehRcCOx04xckV7ewGQ+PjOjleVHt5Xb9Z37XG/Q283wdCT/ZUmmnQW LWa42VWxLgtm5FA4Yap7YNTB+r4LpXBKgIIuF9KX6Rwd24metZh1cOEOFAmFAHtbMjjh Kow2cd3rIJOj9r9c2Vp6xaJI5lb1ieRhuFVe0omCoju001obc9FV9tLulD2LRRBwGJVK yL7AxHvdY4lwGkc+z56F4fkwd5D/3eazuVevSOjXXWkoV/QXkkeiOyuCDriNGRFJXXMx jGSsEp9nraYI9KbkwHtGxRMOZUyjp2canJbM5JX+h4MUDAB5kz1Zaf6zZysF6ZFuGWWm CIVQ== X-Gm-Message-State: AFq9FYJuVRNS08wPkf8pT1uN3Gh/4DgpS1P/dm//9e+iOPKLX5pt1Ps9 MWVUceQRfD7rMF8pACATJD/srHFVSLUlEL0rkvqykwW4ao7sfToBsqDKSjBHf9SAEO2r1PCUGFp NbyWmBNomItppkdw6Dc77S9NkTGaoUBLmSQr3nAr/faXmMQ25B2jS8/CK20YfILdmpw== X-Gm-Gg: AYBFou2p7VoS2QFvkLI1H0LX0ZFkEKjGmJGDfXLvA8VBuWC4LhZx9Ys3HRnrf9ItTqP nh6VWVo38qJbvOlY7/hhaMrQ+N0TsXcv9ByE6EubXSQ7c8mcWPoD+JX6xKa6yAxBt/T7mW/Ia// mmfU8FjglfhIBQi/+kyegzB3QwfOHFLfCiwQXdnfONjURWAiEW63VOqPgcoYuWzXeTLeywhZx5O T0VGJmgem51ooAkOvi1V/vPHjw+L1TkXo7vCOsQzEGzj8Z3l7byk3uAvT2GEYC6C7dsyMN3Tqjr uOTunZT/rQh3fV03W30YFKD2AkoJEMw8ZRLp/BeYF+R7hJuLYBQcv6Xm0TPQlFw+xEpfWXjlDnj imPlU1TgrLvy94cY77Ooppcbxam5FDzvOxoaB4AVTf3L+7cahgY7P7JcS X-Received: by 2002:a05:620a:8089:b0:93e:4e27:359b with SMTP id af79cd13be357-940ef8bce1bmr1663826985a.24.1793129119764; Tue, 27 Oct 2026 12:25:19 -0700 (PDT) X-Received: by 2002:a05:620a:8089:b0:93e:4e27:359b with SMTP id af79cd13be357-940ef8bce1bmr1663823285a.24.1793129119155; Tue, 27 Oct 2026 12:25:19 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 14/59] hw/arm/fsl-imx25: Derive from TYPE_SYS_BUS_DEVICE Date: Tue, 27 Oct 2026 20:22:55 +0100 Message-ID: <20261027192341.9197-15-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=HJ1WhYtv c=1 sm=1 tr=0 ts=6ae0faa0 cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=pGLkceISAAAA:8 a=FRSEYCzRAAAA:8 a=EUspDBNiAAAA:8 a=ChhGJ802N_1bxoR23yMA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=IoWCM6iH3mJn3m4BftBB:22 a=H4N_Y-AU75W7NKDNhZlT:22 X-Proofpoint-ORIG-GUID: bs2OkQwjMMrH03kR6Hju6cfKLo2z7WdZ X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX7FXKtotBOmdD hC49qyU5S2pYn/Lfa21OUMR4w506ipD+ynAvePzEN5JNnd/Yftrd4kqIj5ri8t7I6Sxw58iUwkD Ed0ZY8Hj1UgoUdpfihaXt1ZUODqEa4s= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX73vJ9bkLcRLN 4LxAQZpww37kL/MsWNAqVJypq68VCyY9Y3l60k38nwZXn6Kws5xEaGafe3HWRSqHNwqHGSZoWCl bBH9gA43r0vfCG68DL8dKkc3SgPNaRQTTF96r/hv/s+t25dUuN9HPQupTwcN+c7llR5TdgGREED zp2gMNbSb0wuUdidc7YHdAJh8eKrWWSTgUBKcUychIIuBbjHqqKklJrlwoVldiCc8hW5Hyi/0hB FIrkQnJKBg34Gp2w/J2J1A3V0ZfseVRp0DN8CPat4KMmO3wUubHeyDAVIjy7JVSw11XSKS1YUtp WG5bV1Wso54Ma7nuA4JyerLkf4vgxRa72Bh5V2kFgX09fz9HLOR3FzUGXwhQtGB+o6NqWzIOsKu Ix1NtxpK2scqbAK8Q89gkLcMuuLuza0qC/UGnfA+ioSVs8LSL/DhiFerjb0k4f+nt7ScD5X9qcC 4TiZcoCQmmoDxl4K8TA== X-Proofpoint-GUID: bs2OkQwjMMrH03kR6Hju6cfKLo2z7WdZ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 priorityscore=1501 suspectscore=0 lowpriorityscore=0 impostorscore=0 adultscore=0 spamscore=0 phishscore=0 clxscore=1015 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129260097154100 From: Bernhard Beschow Deriving from TYPE_SYS_BUS_DEVICE fixes the SoC object to be reset upon machine reset. Remove clearing user-creatable which is implicit for SysBus-based devices. Reviewed-by: Bin Meng Signed-off-by: Bernhard Beschow Message-ID: <20261006083445.30362-13-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- include/hw/arm/fsl-imx25.h | 5 ++--- hw/arm/fsl-imx25.c | 7 +------ hw/arm/imx25_pdk.c | 2 +- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/include/hw/arm/fsl-imx25.h b/include/hw/arm/fsl-imx25.h index b68d4334a0c3..4bb4d5b3e53f 100644 --- a/include/hw/arm/fsl-imx25.h +++ b/include/hw/arm/fsl-imx25.h @@ -29,6 +29,7 @@ #include "hw/sd/sdhci.h" #include "hw/usb/chipidea.h" #include "hw/watchdog/wdt_imx2.h" +#include "hw/core/sysbus.h" #include "system/memory.h" #include "target/arm/cpu.h" #include "qom/object.h" @@ -45,10 +46,8 @@ OBJECT_DECLARE_SIMPLE_TYPE(FslIMX25State, FSL_IMX25) #define FSL_IMX25_NUM_USBS 2 =20 struct FslIMX25State { - /*< private >*/ - DeviceState parent_obj; + SysBusDevice parent_obj; =20 - /*< public >*/ ARMCPU cpu; IMXAVICState avic; IMX25CCMState ccm; diff --git a/hw/arm/fsl-imx25.c b/hw/arm/fsl-imx25.c index 7f65f4ca4bbc..efb22359c5b3 100644 --- a/hw/arm/fsl-imx25.c +++ b/hw/arm/fsl-imx25.c @@ -317,16 +317,11 @@ static void fsl_imx25_class_init(ObjectClass *oc, con= st void *data) device_class_set_props(dc, fsl_imx25_properties); dc->realize =3D fsl_imx25_realize; dc->desc =3D "i.MX25 SOC"; - /* - * Reason: uses serial_hds in realize and the imx25 board does not - * support multiple CPUs - */ - dc->user_creatable =3D false; } =20 static const TypeInfo fsl_imx25_type_info =3D { .name =3D TYPE_FSL_IMX25, - .parent =3D TYPE_DEVICE, + .parent =3D TYPE_SYS_BUS_DEVICE, .instance_size =3D sizeof(FslIMX25State), .instance_init =3D fsl_imx25_init, .class_init =3D fsl_imx25_class_init, diff --git a/hw/arm/imx25_pdk.c b/hw/arm/imx25_pdk.c index 243c30a67e7e..a33050788c32 100644 --- a/hw/arm/imx25_pdk.c +++ b/hw/arm/imx25_pdk.c @@ -72,7 +72,7 @@ static void imx25_pdk_init(MachineState *machine) =20 object_initialize_child(OBJECT(machine), "soc", &s->soc, TYPE_FSL_IMX2= 5); =20 - qdev_realize(DEVICE(&s->soc), NULL, &error_fatal); + sysbus_realize(SYS_BUS_DEVICE(&s->soc), &error_fatal); =20 /* We need to initialize our memory */ if (machine->ram_size > (FSL_IMX25_SDRAM0_SIZE + FSL_IMX25_SDRAM1_SIZE= )) { --=20 2.55.0 From nobody Mon Nov 23 04:26:24 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129181; cv=none; d=zohomail.com; s=zohoarc; b=Xa61Q6eorYDgE3Pge/2e0I6zwcFqtcqxJIgsNh6HljBWNHY6h8XywN+47e9PlxJKyIeR7pzS0qVp9Rt46lEGCYX1kB9CHKjTIlFnOrmqShIvn61Kbmw5joOSahn1RicmDrWBj9NB7poK35fNIxG5DAe5QN/Adb/gjaeU6GDFVm8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129181; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=gKKf7t/h1QmhB1gSp3dvANRhxukEMn/ZUmcSGNatBOs=; b=V1yjUhYBXsQjg9Z66ADk/D6yyIidcmGoBdJVxEpUGGiG5Fciu31nhxu1MSC6Y43djVc+6AfTbBdD2NMy9nX2fSI35pD5UXBgiKwqz0Ez47tOmOheEfci0XEuTp46k1NSCfLPAmAWzMRXeDB6tyUpWUb7ZhtlsBHG5NA8rhvQFzc= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 179312918183981.9894899799267; Tue, 27 Oct 2026 12:26:21 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmoF-0003f3-St; Tue, 27 Oct 2026 15:26:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmnf-0002y4-01 for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:25:42 -0400 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 1xLmnZ-00025W-4e for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:25:32 -0400 Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHWYv1917333 for ; Tue, 27 Oct 2026 19:25:27 GMT Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjux99uuc-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:25:27 +0000 (GMT) Received: by mail-qt1-f200.google.com with SMTP id d75a77b69052e-537548b8342so6535691cf.2 for ; Tue, 27 Oct 2026 12:25:27 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a94e6b8290sm3024265e9.9.2026.10.27.12.25.25 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:25:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= gKKf7t/h1QmhB1gSp3dvANRhxukEMn/ZUmcSGNatBOs=; b=HgMNAgNIw1nMOVF0 ELrN1NrW+dAPIHC1xq8qza0jMumjfkPVHf6yT9QtaHYo5X/Uvftnj6ml3Nvg8x/A QzZgmK3iPdElDwMhuj2Mpy0lsEUDyTLqyO+88lzCgXqg294HvAMtPL0kq/O1AYD0 cu99we5P603L/P07yojZQBlkjIlTiceslLNBbsSQQdmH6Gx7mBtky6CfVP35WZzm ihuaFlOCxr2AE9fXeiISQ2qITzXvTvV3y1VEtMcSjvRm9Z9KYB3kqx3VvrweYj7I M0dYhGm2jqvd9afKXPBJUEUoEC3VCrXy+3XvMm9I4hJJ8DheuT2DX6dvYh5c80dW z1qsLg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129126; x=1793733926; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=gKKf7t/h1QmhB1gSp3dvANRhxukEMn/ZUmcSGNatBOs=; b=GASOOlb3p9q+AOhOaIPSO5qjoo4bgH6gvutj2Ue78ypuKDC+9wSkiyv/RfUalsTaWC oG7OLaxuNGi7IRiqXG93bDj/EC1pZ7VchiWrpNwZ1jetgI0X7Ip8OecEUkglsNNNAmW/ 0ysd5zair0YVc/WmvI0vk1XykA8OJkGlHFrrtV3RmC95tfmIhcLKsukWGKyTjZu0NeS0 M0CgBmBzEjzHxGHMDTIXtN+z8jIeeOGuZE7JAmIAncuDkBPC7kmU1U5eBdaod/nNciHD 3cJvDEVdC37x61uB6pEAhMnwzZS3EGzmW2G/sJEAJajmOJVlmeelBATDeGu4ugzcOEMr fpmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129126; x=1793733926; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=gKKf7t/h1QmhB1gSp3dvANRhxukEMn/ZUmcSGNatBOs=; b=ltyuzv/A2ZJ45h0B2uXmkxG6WF0uQso2ZGXcaT6XhR5jRHNYwvjmTTpZ2s8R6SZhG0 QeYKteIN5KtA98Y7OWrTZT32nRtvL36Mr8xspSYqAFyDdsI1vRNIQa40SHGM9tS2imY2 e6QPotL5VN3bYyFjruxUDhBHBbnQdN+CHt0hR/NdlDp41nPTb7sYRgYj8vkaZ98Z+YXu K1kJIBa150y6dmx7fdrUFFa9cXW93nfKSme/AbqOLOxxUW7dXS0JHhTwrZHO7+kip2jP wyMFpOXYA3XdlNKkaHLScf2qIJw6JWo783zGAkzW5xgYFQ5rnk0V+1DG8npsEnX8SyCp iHTg== X-Gm-Message-State: AFq9FYIQ49fHG0XlQkxyXH0hq4cCi2pSRu5l1GC2sXIJMR1kC0nhxJV8 ZYjcDawpKUtfjww4tsD5YijqOq5sNy3Kv+y6vVDdK4bESKppaFEnyoPzlyNOubMYPybz3KfSFiX /FjsjRNmqhoROQ40sXz+fC/LmVmWhsyPEurvYhmzo6TxDRs8RJOJammu6rEvw1Ie3Pg== X-Gm-Gg: AYBFou2go9xjW/fftDphDrXK6r+BCcDOhMx2TdM4ZWcNUU0LPDOA+gd57WXBFHWyZo/ qAxpDNlSHEmqNM8h8/Lk/ucy6I0UDumFO79KhdhU16ND39Ep4J0KVKp5i/vvlhPGXsmyK0mbyhk AmESOsIrDeV7jpuqTAEj5P9TeqpF214C5VA2IRZK0sv7NocX8zRra7oQLxDk17lGNivkfJ7YwIq cqMn4/2tAiIF3c4pehbPO0D/BksrX2V2RLF7ch1tvlta8RQW7cvijF+wmx4tIxIFNpvAF72gOYb D4SVVH0X52YS2qH/cKavYEeoMD9GbHnhcGfPnNb4w+ZxmqNQrWiA1eUv0dvY5QJ+ecdzAIsg8sJ bIryi7y5Kildu3YUo1ZyfxjJvJ9XAb/QYC/O8LJh275zlz6OOiIZ3+Sw9AZwBHD5u8fnt0b7DA0 Duc5+CG8DOnWyanDPuv3RH6Un4GfRq1w== X-Received: by 2002:a05:620a:17a4:b0:93f:3163:3e25 with SMTP id af79cd13be357-940ef9014bbmr1567403585a.24.1793129126447; Tue, 27 Oct 2026 12:25:26 -0700 (PDT) X-Received: by 2002:a05:620a:17a4:b0:93f:3163:3e25 with SMTP id af79cd13be357-940ef9014bbmr1567400485a.24.1793129125887; Tue, 27 Oct 2026 12:25:25 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 15/59] hw/arm/fsl-imx31: Derive from TYPE_SYS_BUS_DEVICE Date: Tue, 27 Oct 2026 20:22:56 +0100 Message-ID: <20261027192341.9197-16-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=GYyCDgXL c=1 sm=1 tr=0 ts=6ae0faa7 cx=c_pps a=JbAStetqSzwMeJznSMzCyw==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=pGLkceISAAAA:8 a=FRSEYCzRAAAA:8 a=EUspDBNiAAAA:8 a=N8E37EdMsAxyg1GpHm0A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=uxP6HrT_eTzRwkO_Te1X:22 a=H4N_Y-AU75W7NKDNhZlT:22 X-Proofpoint-ORIG-GUID: g_cHapVjBEc608H3oSGDQSsBEF8FFUMk X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX9iWDQFSq4X8B RtfyMp2OzCSNeo/IKJYuwgWXvZRkpmMUWg2aXsfJjgcD/KGxV1iS8lfLt1dCOS4fkSfvvjVvJiM qrRIpmgwBU74IknfTWnYkytZOuhURy3UL6yfuVzmES77DwUo9fSpL7jxbv3iyaph3OqKdmqWdEK Auyj/1tPr6SoFccpz2pwgsruUVMwgCPwglX9p9iG7xJHO4s9S2Wois2msHTHO3UrWE7kxzQ90zQ oPsZDXWkLpCL9Z/aP9Z/1NX3j0TiitYTlb2XDwnOXl0EgzRX83ldA9sRCvpO4t0zIBSlhTEBdsX L8hKlY6QuKrikJnrv14O4pT5MElM/ratXDwAY1KVcXXorpjm9cvpvhbGRgLAaEFtYQy4AmBn6Kq 03erStMYw9K7sNMDQ719nnNCmpwTwl2fC3M5ywQSJQk/j7HnKencRVhbeoxfGhuk9OfVX0y1rUT qI5lCw86sjg0v8GSawA== X-Proofpoint-GUID: g_cHapVjBEc608H3oSGDQSsBEF8FFUMk X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX4aSFCBcmCNKi O5dioRGV0cVygQyF0ZiQ35HCSih/u95+h+KJ/e0QMJF01YE4T+Bh1wd0/GwvK8qHwayeppA6qnh 2uraBnhjrjz5rTujdg2KdS+lVPIXe20= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 spamscore=0 lowpriorityscore=0 adultscore=0 bulkscore=0 malwarescore=0 impostorscore=0 phishscore=0 clxscore=1015 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129184795154100 From: Bernhard Beschow Deriving from TYPE_SYS_BUS_DEVICE fixes the SoC object to be reset upon machine reset. Remove clearing user-creatable which is implicit for SysBus-based devices. Reviewed-by: Bin Meng Signed-off-by: Bernhard Beschow Message-ID: <20261006083445.30362-14-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- include/hw/arm/fsl-imx31.h | 5 ++--- hw/arm/fsl-imx31.c | 7 +------ hw/arm/kzm.c | 2 +- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/include/hw/arm/fsl-imx31.h b/include/hw/arm/fsl-imx31.h index 41232a223733..ea916de15aaf 100644 --- a/include/hw/arm/fsl-imx31.h +++ b/include/hw/arm/fsl-imx31.h @@ -25,6 +25,7 @@ #include "hw/i2c/imx_i2c.h" #include "hw/gpio/imx_gpio.h" #include "hw/watchdog/wdt_imx2.h" +#include "hw/core/sysbus.h" #include "system/memory.h" #include "target/arm/cpu.h" #include "qom/object.h" @@ -38,10 +39,8 @@ OBJECT_DECLARE_SIMPLE_TYPE(FslIMX31State, FSL_IMX31) #define FSL_IMX31_NUM_GPIOS 3 =20 struct FslIMX31State { - /*< private >*/ - DeviceState parent_obj; + SysBusDevice parent_obj; =20 - /*< public >*/ ARMCPU cpu; IMXAVICState avic; IMX31CCMState ccm; diff --git a/hw/arm/fsl-imx31.c b/hw/arm/fsl-imx31.c index 190f863355d4..dd929c108588 100644 --- a/hw/arm/fsl-imx31.c +++ b/hw/arm/fsl-imx31.c @@ -224,16 +224,11 @@ static void fsl_imx31_class_init(ObjectClass *oc, con= st void *data) =20 dc->realize =3D fsl_imx31_realize; dc->desc =3D "i.MX31 SOC"; - /* - * Reason: uses serial_hds in realize and the kzm board does not - * support multiple CPUs - */ - dc->user_creatable =3D false; } =20 static const TypeInfo fsl_imx31_type_info =3D { .name =3D TYPE_FSL_IMX31, - .parent =3D TYPE_DEVICE, + .parent =3D TYPE_SYS_BUS_DEVICE, .instance_size =3D sizeof(FslIMX31State), .instance_init =3D fsl_imx31_init, .class_init =3D fsl_imx31_class_init, diff --git a/hw/arm/kzm.c b/hw/arm/kzm.c index 387bf54ced18..e9cc53ce0172 100644 --- a/hw/arm/kzm.c +++ b/hw/arm/kzm.c @@ -69,7 +69,7 @@ static void kzm_init(MachineState *machine) =20 object_initialize_child(OBJECT(machine), "soc", &s->soc, TYPE_FSL_IMX3= 1); =20 - qdev_realize(DEVICE(&s->soc), NULL, &error_fatal); + sysbus_realize(SYS_BUS_DEVICE(&s->soc), &error_fatal); =20 /* Check the amount of memory is compatible with the SOC */ if (machine->ram_size > (FSL_IMX31_SDRAM0_SIZE + FSL_IMX31_SDRAM1_SIZE= )) { --=20 2.55.0 From nobody Mon Nov 23 04:26:24 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129200; cv=none; d=zohomail.com; s=zohoarc; b=DrIoPH42aVZvoauv8C2z/6dtDV4/OGc/5ex+eN2Ie1XzYT29y4H+R24DCs1dP2SXg02u1y+obxAAPoRudLwYK/Wq00fPLQRLLOrPyYCsYMbD5fTT8zmbCD7Yh/MocqpHhhmZ0AhmvyDKSrc5z8Tys4wRwAr/8d/cmP+3wQt9dyA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129200; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=K0hykQOdNC4EM6IKZ5fHty3CUKYvgSwkosziRW1YYYo=; b=YhsuD/MlQ81NVnfM+8f+gNTMYoPx2xaK66k5H2XaKfrXPEZ0rC+nZZDW4D9SbbSHgmVBdEduajvDaqePcCeofH5mOdxjSoGzWOApUYARegumZIUUoVIBBKA2HkTXPXQirvl4RL8GeXlhyi1GkfBVPkELB4cmA3ZZ5FeFf71llFg= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129200966456.64965604190763; Tue, 27 Oct 2026 12:26:40 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmoP-0003vm-VQ; Tue, 27 Oct 2026 15:26:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmnj-0002z7-8e for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:25:45 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmnf-00026A-N3 for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:25:38 -0400 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 69RIHrPg1459828 for ; Tue, 27 Oct 2026 19:25:34 GMT Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjy710v64-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:25:34 +0000 (GMT) Received: by mail-qv1-f71.google.com with SMTP id 6a1803df08f44-91c70349f65so5280836d6.3 for ; Tue, 27 Oct 2026 12:25:34 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e3ebcb902sm25661165f8f.24.2026.10.27.12.25.31 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:25:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= K0hykQOdNC4EM6IKZ5fHty3CUKYvgSwkosziRW1YYYo=; b=Te7i8O3Lrny1xoF2 nYs7HA46La15pt+VA+x/PC5xDonpWVHNmZbICVcmrnvjQLza5LHPjwVwpl8K9pVA 7pwN920SfphzuwLQBxVY2IDasWs/QPUzxwg15HOjNZbFf3Mc7I9H0yUhrXwa6z3j 3Ihm0prY/1fU4NC+Xnq9gMGHBau6xyf9b5ZlHxYwgMGrX5iRTq2zeFfQAWrkuc0e 2a7Z+07YPO2AcIy3+yIDDgRIEMfZHY93lP6R/wYl6jVFRjMfqkO9Qv7jA990RH0T UUdratIBoMfO610L9EZSRJrFKrqoy5YRiEKb5ZPwtAiZggH6LheboWf9XlYIQsBi XHQmCQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129133; x=1793733933; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=K0hykQOdNC4EM6IKZ5fHty3CUKYvgSwkosziRW1YYYo=; b=gf1Eehs6FhQRqxIh7NqYb535KmB7y1HvmpHlaOBNWq/ry61/uQhMklo+0bvGgsDtqQ A9bUM4gAo5cg8jv6pSpNgNK2+0BzcPmpwBlLeBORTGpNEBrWjCl1Xnc0OZDc6O+wYkmk FGa6zt+44N8bu0ljswpf/jimAM+tg9dFxLZbC++3kfCmYm/vbPDjlz57BvER8kiGX132 jphdADmpxo14WvDoVA49QLtvAX4PXuCnzwIXWcSINz2BoV6MfRn8Nsc9odeMrSbTzERe 4xn/k/H05EAW95xFymlOdEU49UC9p8K8xcT9EM5qCVjFUDLdCu6s1OYN42FijHGWJyHP w/pA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129133; x=1793733933; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=K0hykQOdNC4EM6IKZ5fHty3CUKYvgSwkosziRW1YYYo=; b=Uac07BAwxPqc6m+3+Hk6fbFZyhIzZ7/nIFmHEbt0CsJdMYjOTq+yqpneeBBnEe+td6 j/RgGwobO/THinvKaGdwBnDD8MCPkyEVUS+vLlGqeAgo+eJngj3zvgGAUqj+eH10a/LS 1FjJl+xNXGU8+2raPxaKV5iwpEeTcSllaYELf71q+nD0KNAyzIsxi5dgwlQr8ZzwdUjm P2dYeYBwLF37nkqfEpozX0WgopOp5CfU0pn7kUKN6EN0z5jWatzVIddX4UXNfjaZr2be SmS8/N0REXFB46+BMvwz4eC5J5S3+qF7jgAKJpIbogLix+bcd69NOyxofk6V9XBOkiFe 974A== X-Gm-Message-State: AFq9FYI8Cf2gOF6h4U6tfJkWqPQP3o9mTU3WNZJHHU+paJFit7o9KUJV wcyOvqwvAq4DNRjSTw5Z2Pa8kHKiP67lZ11BJIVwdQ5uHQYd3G+4wuVXt8nhBP2ccCAR9UQJGFE lCLB98s8uRc+wLBOGR12fwt33k7ydcNlkj0ig+aFWErUGZJMymi/FNA6mvcl2o45uzw== X-Gm-Gg: AYBFou0Espn1QyxptXEs/A0Rx/QyR6/y6nHVoKza34fUszKK4k0dT8RJy8ApMDTeu3o AeJuAYGctU5uaIr0BEebf72PZL45aMP7f8IRj06JJuh1QPEstwcjUa1zspFDfLLsDrrrrGOUOoc /mAKG+4tLxxYpBkMGwbvf0TOCIAH683uu87pZuBK4yAEaXwet4OT0x046Q4DvNz35PwXEerjtEJ oMmzfJh1bdPtajeMMzAqVk8qVP/V3ESsmmoA4qVZbaaL+PSH05L57Cu94vVZhNXtyHhtBbgWqsy mxT4+2klSx/J1Z4fahkDIIIS36OzFQfLWrBTdYBsio70xXFv8+xE5fXVdkSkD1u00R/73fGMT05 EpZuzeJO/5zt9lkbP7b1TJzlxG/iKCbgjvqjwSDTQ6QoEkbPUAa0Q/bR1 X-Received: by 2002:a05:620a:7102:b0:93c:b33a:5ee0 with SMTP id af79cd13be357-940ef953f91mr1749939585a.41.1793129133234; Tue, 27 Oct 2026 12:25:33 -0700 (PDT) X-Received: by 2002:a05:620a:7102:b0:93c:b33a:5ee0 with SMTP id af79cd13be357-940ef953f91mr1749935485a.41.1793129132695; Tue, 27 Oct 2026 12:25:32 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 16/59] hw/arm/fsl-imx6: Derive from TYPE_SYS_BUS_DEVICE Date: Tue, 27 Oct 2026 20:22:57 +0100 Message-ID: <20261027192341.9197-17-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX4n65uqoVUoZS cksqQru0LL8TbyJ+tGaJWklOK8iwiJGbJ0KiVK7NDfsjG3ijNkYnB7JeNVJVpNIEYNWSvcDBE71 CJaF4J+rEMPT3cdoxxyxZmhUWgiTchtVF+eb5yPPppY3hJsGIO6uK2cdtUquXSK7U1KrKcj/1hi Fs0bkK0iSFUnysEqKDN4CrK4fMu9ya28qAqcjKk/8ke1Uv3+VdtY8r1zyOKzcyVzoIAaPOv8+Re +ibwfqqwWY2awQ903xbJr3lNoiwsFFry/jN8qegCD6UkxNmoqK2iVbXD6yTyC7REPDpchHlGuY3 AMNE1O/4bhEZR4GtUPVent1rrlaR7TkPq1E8DKjbs/FpgKkTyJAVc9AtyjbcakWL4cqFQw3fbW8 81OPV3EGr2Q84XiRuDlN6RierO0BfRCIeRdCDIiPOpKqiZbrHnV7UfWR9XdctGLtQ/m35X42znb iDzvAtbFaILbLnie8gQ== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX5wyZJcVg2htZ e2szte3tQ76AgAxMqXr5uPMRw0fNaoOGw4opDf45BqIfFNOlt3UeDpQKRd41mgsnCngqIq3uCUL 31bENo3glnfag93zD9HhAulT3+Hz0PU= X-Authority-Analysis: v=2.4 cv=JspkP84C c=1 sm=1 tr=0 ts=6ae0faae cx=c_pps a=UgVkIMxJMSkC9lv97toC5g==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=pGLkceISAAAA:8 a=FRSEYCzRAAAA:8 a=EUspDBNiAAAA:8 a=CeVRZcwpJvGh8Rv3chsA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=1HOtulTD9v-eNWfpl4qZ:22 a=H4N_Y-AU75W7NKDNhZlT:22 X-Proofpoint-GUID: Xh-e7Scx0bcgd5WzSo2p7CeTtXyvVvPm X-Proofpoint-ORIG-GUID: Xh-e7Scx0bcgd5WzSo2p7CeTtXyvVvPm X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 phishscore=0 adultscore=0 lowpriorityscore=0 clxscore=1015 spamscore=0 priorityscore=1501 impostorscore=0 bulkscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129203137154100 From: Bernhard Beschow Deriving from TYPE_SYS_BUS_DEVICE fixes the SoC object to be reset upon machine reset. Remove clearing user-creatable which is implicit for SysBus-based devices. Reviewed-by: Bin Meng Signed-off-by: Bernhard Beschow Message-ID: <20261006083445.30362-15-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- include/hw/arm/fsl-imx6.h | 5 ++--- hw/arm/fsl-imx6.c | 4 +--- hw/arm/sabrelite.c | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/include/hw/arm/fsl-imx6.h b/include/hw/arm/fsl-imx6.h index 376deea3a49f..4cf26f1fbc3b 100644 --- a/include/hw/arm/fsl-imx6.h +++ b/include/hw/arm/fsl-imx6.h @@ -35,6 +35,7 @@ #include "hw/usb/imx-usb-phy.h" #include "hw/pci-host/designware.h" #include "hw/core/or-irq.h" +#include "hw/core/sysbus.h" #include "system/memory.h" #include "target/arm/cpu.h" #include "net/can_emu.h" @@ -56,10 +57,8 @@ OBJECT_DECLARE_SIMPLE_TYPE(FslIMX6State, FSL_IMX6) #define FSL_IMX6_NUM_CANS 2 =20 struct FslIMX6State { - /*< private >*/ - DeviceState parent_obj; + SysBusDevice parent_obj; =20 - /*< public >*/ ARMCPU cpu[FSL_IMX6_NUM_CPUS]; A9MPPrivState a9mpcore; IMX6CCMState ccm; diff --git a/hw/arm/fsl-imx6.c b/hw/arm/fsl-imx6.c index eec9673c6fbf..7ba9b85a2eac 100644 --- a/hw/arm/fsl-imx6.c +++ b/hw/arm/fsl-imx6.c @@ -519,13 +519,11 @@ static void fsl_imx6_class_init(ObjectClass *oc, cons= t void *data) device_class_set_props(dc, fsl_imx6_properties); dc->realize =3D fsl_imx6_realize; dc->desc =3D "i.MX6 SOC"; - /* Reason: Uses serial_hd() in the realize() function */ - dc->user_creatable =3D false; } =20 static const TypeInfo fsl_imx6_type_info =3D { .name =3D TYPE_FSL_IMX6, - .parent =3D TYPE_DEVICE, + .parent =3D TYPE_SYS_BUS_DEVICE, .instance_size =3D sizeof(FslIMX6State), .instance_init =3D fsl_imx6_init, .class_init =3D fsl_imx6_class_init, diff --git a/hw/arm/sabrelite.c b/hw/arm/sabrelite.c index 34f302f83c6c..201766d8ea31 100644 --- a/hw/arm/sabrelite.c +++ b/hw/arm/sabrelite.c @@ -66,7 +66,7 @@ static void sabrelite_init(MachineState *machine) OBJECT(s->canbus[i]), &error_fatal); } =20 - qdev_realize(DEVICE(&s->soc), NULL, &error_fatal); + sysbus_realize(SYS_BUS_DEVICE(&s->soc), &error_fatal); =20 memory_region_add_subregion(get_system_memory(), FSL_IMX6_MMDC_ADDR, machine->ram); --=20 2.55.0 From nobody Mon Nov 23 04:26:24 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129219; cv=none; d=zohomail.com; s=zohoarc; b=Ja8voN1FXsSIVRylcpPZP1/gIp+d7TbIE1aRIX+oB2ITxsHoooFFwp5bx+mOalfuGPmouEk+pzcpIzRkyApqGPe+rg6Ddjwhj3LA400cvI8YiuRm8wl6AFs5lVoQW76V32xU9YRdBEpKqOeSHmEYomTBc6d++AiVzP95Xdv+p6U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129219; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=1XHZQAaeA2gZrQhajwi9m4Ma+u+G4QHTGsZIvOHMkgo=; b=KN5qGtYU2ngrXzJ4JeuddDMiu1FW01PzXc6Rb2Jq0b7apn1Tzmwnm9Nge0nD4lRtG/KUfBYrrOmJ7f2IvjhbA8yChr/a1cyekIuMzyHJhlbq2rvVLcErXHZnAsl9Oij25QUwOlRJzewvBzpiUQdR8upK0lX7gP17v+EcnWqBj6c= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129219437479.40539203295054; Tue, 27 Oct 2026 12:26:59 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmow-0005px-H7; Tue, 27 Oct 2026 15:26:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmnq-00035S-Ju for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:25:53 -0400 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 1xLmnl-00026c-Ox for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:25:44 -0400 Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIIB7v3486365 for ; Tue, 27 Oct 2026 19:25:40 GMT Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjjbtc2t9-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:25:40 +0000 (GMT) Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-93f62934ef6so24700785a.3 for ; Tue, 27 Oct 2026 12:25:40 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e3ebc3cfasm24513299f8f.17.2026.10.27.12.25.38 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:25:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 1XHZQAaeA2gZrQhajwi9m4Ma+u+G4QHTGsZIvOHMkgo=; b=fqieUpK6SLbzetIQ OBPIqlDpre7vGTY/OHqOUc/L20Lgg7i3XTK85DzQrObML2oiFvh7pvB+sjDlgdef o62yvSRGkPRBPseGLl2xRumji8vbPr8v0iTMZC9xEArYxLCxD1ZlNxoXQ2ydry7Z WJhkuLvZYhyYrPkxANlDtEokTo5zwJrAwTeF+gcVTr7hkyzaHzYXc+mMkjofT61V xq9jgiVxhpcjI4aU7TxnZFov5R4TjRVAX1171WXY//2DHuoRYwZMr1u0Fizcv0Ms 39GYO9hEVEs8eDMukMbNPHP7NGkUZBZuueRH3s/P1vhdYwX7L5QKpWYYQ9HhznXA J42qVw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129140; x=1793733940; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=1XHZQAaeA2gZrQhajwi9m4Ma+u+G4QHTGsZIvOHMkgo=; b=iA5eE3mSLaTLYJOqP+FzWwV4IxZMq9yyit4Q1IXSEJ1+5RKOz4bs90Q/hiry8iQk/u h7IRZgaiJlSXE87qzsImd8zaINBAUaw9VVBAeL6jfbz6YMAEUwMJHk0iu6X97LKCDvj7 yXy4jVTA47SZT0G2S7uy7VQs009MV6MJFm/1YiWW62GcHIPw793CxAFD4+IUqkusZOot jyvX2K9eDeowJnHSY8e32yX8Skfd3y30P3N7i4Euj/OgrOlSvx1EHQF9qnQmYlEeUJUN i9ZQEyM6G5c87Tddy9Y7aph9DqUf/Gw1o4vHw6a9AEbNVefdSw8M3kk3AiOfmMWoGtn7 Difw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129140; x=1793733940; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=1XHZQAaeA2gZrQhajwi9m4Ma+u+G4QHTGsZIvOHMkgo=; b=wUWCeo0Ii97tc67KViAx1ZHGA12SaiQkktX/U9fkPHTGm6zyBq3HysxXOUNikqJtMy +A483cb2oK4/TnL0qfJ6V14KzTh0j00S2GYwX4Lk+CNEu7kc/ZKISXOD35Y6W5Ago5oX x+PItzQik4mGyl7G83s6GOOz9+bqeLOHeS2ww2z5P9i8fNZviiKIWnVqj+xk/IObDZJA TDfCfkSckw0y2GMDVVkDuf/oxY44gysN/eOmiMBbBaVW7t7gXQxX3JbE8usydH948p89 8DRabJvdoyZ7cJX3JZMSOfxD3EV5J/oXdgLq2GlQo5uUwINKwk1m3g0y9Lh+jATr4W3j vObw== X-Gm-Message-State: AFq9FYKkGlZOt9RuOPBpKgrLexjDV1xdc7CNQmXA5lICkqaNcizITy+k ThWmXsNITSEQcSN66vOmfQSl+5jZzY+KUKOG5StlvzkzJ1drNYq066rbAwTubRITDjOKy5ZtcYW XvPmAqQMl9crbthU1sP6CyxrxMeR/X4KYja3b+1WeyCay7pu0cUBRL55Brq3pif4J5A== X-Gm-Gg: AYBFou1N3P4vq6Uybx7PGkoCuorj4oU78I6XstFxhEs+7j7535EcdUcdxpct9hcqqii 3M10WE4zjHrBq1c0qZbOzgO8SzDzCyBzm1nfRBch1QZYu3xmBRjxb1JYKiOpuDKyr09laScCZ++ n/O7VzzVh9xewqdvzkRfkaQRHRSj8o/Sw7bmSrcuQkSIR7rsvZH6gcA8CXoxYSDs6CFXUbroxxO 65i3y+oRDNMLwy16XYL4iQWVPlXn/Eq0rLMUyTqpnoFzgzWgJ96Z8vzVZ7W0ToKyQv4VumeWqCG E0wpONidhgfIS7o5XL42Yyr3HRBotERP01jl0b5zBDFBu5oHVuvmWGrB3TLIeioXQvn7igmqAmA WWtgu6YlAO22aYnO9l61ewhAs5fIIv7XJMVvpuo3+6TYQdai0n1abSwiG X-Received: by 2002:a05:620a:628f:b0:93f:34c9:9248 with SMTP id af79cd13be357-940ef8adbfamr1769230585a.22.1793129140070; Tue, 27 Oct 2026 12:25:40 -0700 (PDT) X-Received: by 2002:a05:620a:628f:b0:93f:34c9:9248 with SMTP id af79cd13be357-940ef8adbfamr1769227585a.22.1793129139544; Tue, 27 Oct 2026 12:25:39 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 17/59] hw/arm/fsl-imx6ul: Derive from TYPE_SYS_BUS_DEVICE Date: Tue, 27 Oct 2026 20:22:58 +0100 Message-ID: <20261027192341.9197-18-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX4hXohiKbfhYo 7Jrhqm+d2NNXxi9wQM+6KVHJ2NTWYxVL0gtWzpNyKr8RIFZOK2bwzag4sNe0PrbJcvEUCuas9UO UwagKLqkWMbHD4e9KxYxm+PXl9tCxbg= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX3vwY1DhCxOsQ 4h9jnNK2bYhl4Lxx37kb4iUSxPxrK0ALrYAr+NF04yQIj2uXSjuLmKqqq5a2Z18iCa10Dc2d00b Ak7qmnoYL63lfoOjptP5uBVxv7Y44O1tIIXX566/2ArpRbETFZJ6FJxTJ5baFEforeiAkyxwKN2 w/lTwJAyzxbMvh4jRsxls688K0i0mCKaNpNcM6jl7GC8leftBiW62QzXsNdHYbs96GnODXqjwD0 Mdgl2V67vgDbaNwJuBKOf2dxmSqbwyXUDvl8C8Rlb0wFppk2ReiL7X6l2y1KnpW/71w2G0JGkzc wqGAz4GDxECVran15Xg9M9BF51OxAGzhPE2vVtM6AuGSMpDUguIDJIoN2vNSCeY3YXP6o0IwuTO 4Y+gnW8hh/ECOObsdeZ9wwCBpVlj9rw3tHaKwDS8cF3s05hfHjqH1k+ZMXQAIaSX1pb4XwfCOPw PZ36EUMKCuaw7U7ebeQ== X-Proofpoint-ORIG-GUID: 1tmBI8yD5X4aGvjOsUJvDTdSWof8qUd3 X-Proofpoint-GUID: 1tmBI8yD5X4aGvjOsUJvDTdSWof8qUd3 X-Authority-Analysis: v=2.4 cv=XaIcX455 c=1 sm=1 tr=0 ts=6ae0fab4 cx=c_pps a=hnmNkyzTK/kJ09Xio7VxxA==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=pGLkceISAAAA:8 a=FRSEYCzRAAAA:8 a=EUspDBNiAAAA:8 a=QqySrU4nI9ZZNlfiYE4A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=PEH46H7Ffwr30OY-TuGO:22 a=H4N_Y-AU75W7NKDNhZlT:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 phishscore=0 spamscore=0 bulkscore=0 priorityscore=1501 clxscore=1015 lowpriorityscore=0 suspectscore=0 impostorscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129220785158500 From: Bernhard Beschow Deriving from TYPE_SYS_BUS_DEVICE fixes the SoC object to be reset upon machine reset. Remove clearing user-creatable which is implicit for SysBus-based devices. Reviewed-by: Bin Meng Signed-off-by: Bernhard Beschow Message-ID: <20261006083445.30362-16-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- include/hw/arm/fsl-imx6ul.h | 5 ++--- hw/arm/fsl-imx6ul.c | 4 +--- hw/arm/mcimx6ul-evk.c | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/include/hw/arm/fsl-imx6ul.h b/include/hw/arm/fsl-imx6ul.h index 6205fe6b7767..9ae0488990ce 100644 --- a/include/hw/arm/fsl-imx6ul.h +++ b/include/hw/arm/fsl-imx6ul.h @@ -18,6 +18,7 @@ #define FSL_IMX6UL_H =20 #include "hw/cpu/a15mpcore.h" +#include "hw/core/sysbus.h" #include "hw/misc/imx6ul_ccm.h" #include "hw/misc/imx6_src.h" #include "hw/misc/imx7_snvs.h" @@ -64,10 +65,8 @@ enum FslIMX6ULConfiguration { }; =20 struct FslIMX6ULState { - /*< private >*/ - DeviceState parent_obj; + SysBusDevice parent_obj; =20 - /*< public >*/ ARMCPU cpu; A15MPPrivState a7mpcore; IMXGPTState gpt[FSL_IMX6UL_NUM_GPTS]; diff --git a/hw/arm/fsl-imx6ul.c b/hw/arm/fsl-imx6ul.c index 1863558a0d67..84451c99097a 100644 --- a/hw/arm/fsl-imx6ul.c +++ b/hw/arm/fsl-imx6ul.c @@ -730,13 +730,11 @@ static void fsl_imx6ul_class_init(ObjectClass *oc, co= nst void *data) device_class_set_props(dc, fsl_imx6ul_properties); dc->realize =3D fsl_imx6ul_realize; dc->desc =3D "i.MX6UL SOC"; - /* Reason: Uses serial_hds and nd_table in realize() directly */ - dc->user_creatable =3D false; } =20 static const TypeInfo fsl_imx6ul_type_info =3D { .name =3D TYPE_FSL_IMX6UL, - .parent =3D TYPE_DEVICE, + .parent =3D TYPE_SYS_BUS_DEVICE, .instance_size =3D sizeof(FslIMX6ULState), .instance_init =3D fsl_imx6ul_init, .class_init =3D fsl_imx6ul_class_init, diff --git a/hw/arm/mcimx6ul-evk.c b/hw/arm/mcimx6ul-evk.c index 4964cb934519..53d221b4a9a5 100644 --- a/hw/arm/mcimx6ul-evk.c +++ b/hw/arm/mcimx6ul-evk.c @@ -44,7 +44,7 @@ static void mcimx6ul_evk_init(MachineState *machine) object_property_set_uint(OBJECT(s), "fec2-phy-num", 1, &error_fatal); object_property_set_bool(OBJECT(s), "fec1-phy-connected", false, &error_fatal); - qdev_realize(DEVICE(s), NULL, &error_fatal); + sysbus_realize_and_unref(SYS_BUS_DEVICE(s), &error_fatal); =20 memory_region_add_subregion(get_system_memory(), FSL_IMX6UL_MMDC_ADDR, machine->ram); --=20 2.55.0 From nobody Mon Nov 23 04:26:24 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129213; cv=none; d=zohomail.com; s=zohoarc; b=lg+yWb67imqZIPOBF8H5W5/b6gc4EZYvAJwdBj/pq0v6IJG67NNplnPwUJ3Qa2yOu5EJtv3shXrVbGyUu93/JRvyg23FLni/SaSsYOWNCJRv0lvBylaEpwz+Zwqb649iBuZTgzcOuhVHAPp0Fvr0d/Dzka9en0QhX0Kl7JvspoA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129213; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=1LOKA7lXcy33YW769k8GzFvhzSH2IXj7A/uGs0KqBbI=; b=c/dDNJQGNH4Wh2mRL19wUSAun0grAsPpL25rVJUMBKjyqONtW9pZxHP2meFmHPUcZqiW2rm3sFu697YunB+umnKREYBIcLrPQKUJGFJ/kqH9hevNdzuUmohCs+owhC5yP1PUxhAx7/X8hrp7sd2cUvSh7J6EJd326xriD1361oo= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129213477305.8063452265686; Tue, 27 Oct 2026 12:26:53 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmoq-0004uh-P8; Tue, 27 Oct 2026 15:26:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmnz-0003B6-Cq for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:25:58 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmnv-000270-FC for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:25:52 -0400 Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHWs92452042 for ; Tue, 27 Oct 2026 19:25:48 GMT Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjy6g0ukt-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:25:47 +0000 (GMT) Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-93caf7856ffso26120185a.3 for ; Tue, 27 Oct 2026 12:25:47 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a94e3c638csm2497475e9.8.2026.10.27.12.25.45 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:25:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 1LOKA7lXcy33YW769k8GzFvhzSH2IXj7A/uGs0KqBbI=; b=ozTfbpiqJCIB5xGX KzZkEkKUuZkq6fzuGfa7SSTPLPYqo6Qw12SsRwTSUIyr5efwkRBtW/AYvWQ7c2Dh l6g/kQpLGlBnmNm/CdicqaCO7lk1jAG4Jv6gmqN+yAtNSGOfbJSl/9SLUSTrli43 rkq5bDECbY9AW7JQrDbv7hQx3fp4oCojzOjvlEgmXTls+x8lvSL4JYI1zHelS88C dhpGsE3Wxz9kRt0hmQNPqL6pVo4YJhJULdM5mo381hbrnOc26nAFqaeo59aKtLye wU0ln/zRXHvIVB0LnGP5Dts1CRnalppAf9xahfMQb0cVz5MPHBXz6pPiaTZMyK3a TAyN7Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129147; x=1793733947; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=1LOKA7lXcy33YW769k8GzFvhzSH2IXj7A/uGs0KqBbI=; b=Iyhonp1wg9zCqGKPUo6p604uBcLeH2x+7P74OUI0GmWonoNJlY50Tr/AVejXli0bAa h77eq0Z/VS4l/OfnFoUP/e23ov6xQb04CpkMknVKsicKqzlavYSyosITII+820SqUtI6 MEgZL9QbJAK2HffP3HXdHNynzz7n2/+xy/No0oL3+4aIVDbyXWQpKgyPVj1jamo6jzo3 JJ3Vav/C6hVHu4HHDvFzQZsLcZWdSsVKjWWxST8jXC7d9u0Ys2fOMrDtoCt6yAaffkng 3ZfXvIA3Z//i8+UeO8zdxxXS9SYH16F5PUjjzR7058zVD2ZMW35XKlGY1Wt/mBbCzxYZ zixg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129147; x=1793733947; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=1LOKA7lXcy33YW769k8GzFvhzSH2IXj7A/uGs0KqBbI=; b=T/dsTfhWHFHhIYSWMsqjC9GWObFQhUtjKkljouzCmmBuRjwbJRHA0ppj5smOXw0Hhx 92g0dTvew6xhX9ZtkaYhFL/25/vr4BovKdnHqE9cmcU+DoEw2PXgnq4k/kQ+oCJDzFBb 2dCbmbQ13Hab1ZilqyfMZ2j/X+vDNlXKi8d5/XIFzlY8TkaGoobPL4VW8F3NFSn2uHeI cyPpLEsDdtXycnJd/JiDCyf4Idy9FQvE6OlVw3On4uLVQ7DmE7gghAIKfWnm5Z0CYM76 K+tTav/1pkrdCrJUnQVUaHtV3WcwHOLO1VLkHWOcZRo138KDKsu+AWI5My4NUjFb6gwC YgIQ== X-Gm-Message-State: AFq9FYJB3Po9om5zoSHXHaNBEissQ8YOucywI9r1/yiWz+BMdcnD4mEY /erKOQJAHf/xz6HnaMBqwsfFZZQeHTNEUDR62I4xAj5luO9qqRYlFlBZtlIKoj1Fct7BufcuKVt VZ87CZxIKOxCbyK/gCFf89bn5FCA5jqHMLELy7+qYeibQRuRBuFUQgVHMGMxtHw/E9w== X-Gm-Gg: AYBFou29g7TzFLWC46KTwpbri9hnn6XTi1iwKYn/I8cOjri5CkBRWm6l0ICoxzWD5YG rV3bWdewJ94mb/0OIDD/YlgDmDZq7YEARvjPWw9LJA98NUZrn7mH7aXkX8kOGJ+Zr/ZDyDMcB6r ZoU2qYyLlJzstbxUhxu27KWuYAyPQUsBXs3qIYfwusZ6XG4i3jpzEzfmCuLBrD8p3NV2mREO7xK 2AxvTUAROZGRKZvU8GJ4J0IIyyOhvm6KzkkrNeUz3oAO/Kxdahbske2b4NErWWTgNIhAY93+RXJ /mP1crBDAULJ1u+d93cTXtzh4ujy0OYB4VlzuH+A/Cu62wZYuvsA8xjJwQ8N+H6OlSSW9E//j/7 AhSuZVgSTYtqFT4+gZ4e2EYFRMXIFRCKHEWymRVMmZkXZ5zVIdUfKYAqU X-Received: by 2002:a05:620a:4628:b0:93f:2ec5:7e1e with SMTP id af79cd13be357-940ef9322d4mr1729068285a.65.1793129146851; Tue, 27 Oct 2026 12:25:46 -0700 (PDT) X-Received: by 2002:a05:620a:4628:b0:93f:2ec5:7e1e with SMTP id af79cd13be357-940ef9322d4mr1729064085a.65.1793129146238; Tue, 27 Oct 2026 12:25:46 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 18/59] hw/arm/fsl-imx7: Derive from TYPE_SYS_BUS_DEVICE Date: Tue, 27 Oct 2026 20:22:59 +0100 Message-ID: <20261027192341.9197-19-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX8njnbVYWLZrX kpxAOf59d48PmsINJ4cuUWdYzPAtHUdZ0aUVxhc29L6wwLXawWOb+iM84+Ou7N+madPwfIyU18b 7t0HkFrUlAH2XAsE/5DdwgIvqhbSxtS7blBAuHz1/J/+6cwFSwOVw81I1UUPfOYJq42zTCLR+Yh O72RsaXbk2qbr2eonSSgp2mZHo2vKG2mMtU9TamY3G9SuLcboQHE6N5/6bWWvXD/GnK/UAC4vrF GsFjPx4GalAH2kKHj/irmXC/y5OVM9PuiHW2nZyTQMh9d9tLfcXKULbyv7PcDjGsMCQ09xHjDVg i+uya7CBcrOugN30SEM+VkKmkxMZMVvYKT9vqr3DC33OdNNV41ahGNZw9Y50NPk589FLRbW+8A6 J2yg4LUo0SdzaA+dPzfVUdoJQl+yW8FaPcZoXpqznJc9zJFE3hnSSQMLylzJhk2sLA6MurX32CI t5ed8sayjXpyomTxmdg== X-Proofpoint-GUID: DIXmTD6k87QdyniQ_w4BOh7JTxEdkAJV X-Proofpoint-ORIG-GUID: DIXmTD6k87QdyniQ_w4BOh7JTxEdkAJV X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfXxxy6ZC0tF8wz aMAIUdns6/iEEZTp3pADBe8nSMhcQg/VuZTbTduXyYUBB77iaP6zpUA1+2ycHwpN2Ms73Ohyzjp RDQCOWndIjkbVMyvGjzTd7Kn9TzPQHU= X-Authority-Analysis: v=2.4 cv=dKgzC+Zb c=1 sm=1 tr=0 ts=6ae0fabb cx=c_pps a=hnmNkyzTK/kJ09Xio7VxxA==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22 a=pGLkceISAAAA:8 a=FRSEYCzRAAAA:8 a=EUspDBNiAAAA:8 a=lB3AAgnz6dsswKXpChIA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=PEH46H7Ffwr30OY-TuGO:22 a=H4N_Y-AU75W7NKDNhZlT:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 lowpriorityscore=0 bulkscore=0 adultscore=0 spamscore=0 suspectscore=0 priorityscore=1501 clxscore=1015 impostorscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129215265154100 From: Bernhard Beschow Deriving from TYPE_SYS_BUS_DEVICE fixes the SoC object to be reset upon machine reset. Remove clearing user-creatable which is implicit for SysBus-based devices. Reviewed-by: Bin Meng Signed-off-by: Bernhard Beschow Message-ID: <20261006083445.30362-17-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- include/hw/arm/fsl-imx7.h | 5 ++--- hw/arm/fsl-imx7.c | 5 +---- hw/arm/mcimx7d-sabre.c | 2 +- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/include/hw/arm/fsl-imx7.h b/include/hw/arm/fsl-imx7.h index a573e0dd4f8c..945d8c5ad78b 100644 --- a/include/hw/arm/fsl-imx7.h +++ b/include/hw/arm/fsl-imx7.h @@ -37,6 +37,7 @@ #include "hw/pci-host/designware.h" #include "hw/usb/chipidea.h" #include "hw/core/or-irq.h" +#include "hw/core/sysbus.h" #include "target/arm/cpu.h" #include "qom/object.h" #include "qemu/units.h" @@ -64,10 +65,8 @@ enum FslIMX7Configuration { }; =20 struct FslIMX7State { - /*< private >*/ - DeviceState parent_obj; + SysBusDevice parent_obj; =20 - /*< public >*/ ARMCPU cpu[FSL_IMX7_NUM_CPUS]; A15MPPrivState a7mpcore; IMXGPTState gpt[FSL_IMX7_NUM_GPTS]; diff --git a/hw/arm/fsl-imx7.c b/hw/arm/fsl-imx7.c index 2defa498d388..fc5d0efe0600 100644 --- a/hw/arm/fsl-imx7.c +++ b/hw/arm/fsl-imx7.c @@ -753,15 +753,12 @@ static void fsl_imx7_class_init(ObjectClass *oc, cons= t void *data) =20 device_class_set_props(dc, fsl_imx7_properties); dc->realize =3D fsl_imx7_realize; - - /* Reason: Uses serial_hds and nd_table in realize() directly */ - dc->user_creatable =3D false; dc->desc =3D "i.MX7 SOC"; } =20 static const TypeInfo fsl_imx7_type_info =3D { .name =3D TYPE_FSL_IMX7, - .parent =3D TYPE_DEVICE, + .parent =3D TYPE_SYS_BUS_DEVICE, .instance_size =3D sizeof(FslIMX7State), .instance_init =3D fsl_imx7_init, .class_init =3D fsl_imx7_class_init, diff --git a/hw/arm/mcimx7d-sabre.c b/hw/arm/mcimx7d-sabre.c index 47744e66a4a7..55c23061b0a4 100644 --- a/hw/arm/mcimx7d-sabre.c +++ b/hw/arm/mcimx7d-sabre.c @@ -52,7 +52,7 @@ static void mcimx7d_sabre_init(MachineState *machine) object_property_add_child(OBJECT(machine), "soc", OBJECT(s)); object_property_set_bool(OBJECT(s), "fec2-phy-connected", false, &error_fatal); - qdev_realize(DEVICE(s), NULL, &error_fatal); + sysbus_realize_and_unref(SYS_BUS_DEVICE(s), &error_fatal); =20 memory_region_add_subregion(get_system_memory(), FSL_IMX7_MMDC_ADDR, machine->ram); --=20 2.55.0 From nobody Mon Nov 23 04:26:24 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129247; cv=none; d=zohomail.com; s=zohoarc; b=VCMflq+7XS4sYhag+EBS2eTPhtCHqQRUx83yIaRcteSbV3/vMOvUf23H81lxHgIq4VwCAS6MyXtD8K1n0simfwSmMXmXigtgExxjIx+thpY1l9n2M4Guh3VgyR4bS4cRWK7TpRGnBwMmzIyBSRvztaFTE8qgqfW4eye3NKMT9+8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129247; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=YOc9+g0uWp4YmdKLLJ65ly/FZiXn9rKsDmqyob+IyEs=; b=joTPGXPTkp4QxFdyqtOVFve8Bi+QE6CZMt+82xgxiOsrOizxA7merOOhsgqXgAKD8TF3E/ZNYNvovv1bqCbc+P57oXwq525IDk0ZVDK6kbO3lxCHSL1/C66rE+DfKFppo/pSU3xo6Nsrg8/qHaHPLi6mji543mZntlAHj4BlTpE= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129247176182.03354129426157; Tue, 27 Oct 2026 12:27:27 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmoz-00067j-7F; Tue, 27 Oct 2026 15:26:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmo1-0003CQ-Nb for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:25:59 -0400 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 1xLmnz-00027G-J2 for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:25:57 -0400 Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIICDL3486395 for ; Tue, 27 Oct 2026 19:25:54 GMT Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjjbtc2u6-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:25:54 +0000 (GMT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-93f37c94ceeso268552285a.1 for ; Tue, 27 Oct 2026 12:25:54 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a94ec8304dsm2844995e9.12.2026.10.27.12.25.52 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:25:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= YOc9+g0uWp4YmdKLLJ65ly/FZiXn9rKsDmqyob+IyEs=; b=c9Um2VQmGJcvymqJ nknYFxDzXxxy1Pu+nhzxCai8yjMAsgcQmYOb/tPXkGX5Y/BGGFAjvJLFQOjJ629R /peqMJl83UDg/uoHi0+pbB9N35qvN8qpeD3w/7CiSAQAq8/cjkH9juuZ2X3BL6ys rt7/45ApWtb32sBw917PS03fLLkxLQdiC18Dx6oVIW3cPq6GrgqD7k4Bzt2rXXx6 sbBmhBWPih+oxXUCyO0IXLV7wcz20Gnbxi7ZehJUm+am7Q2sDU4U5UFAS8DOmIgz uXrQGFkpn57eKxot4iGVggPI5hGe5km1YiqLgN1T61a7opJDIjmoFaXGZ+rWllVN Md8Dsw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129154; x=1793733954; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=YOc9+g0uWp4YmdKLLJ65ly/FZiXn9rKsDmqyob+IyEs=; b=Urpifiw+gEdTBbB32wyyH+oUTgAwgrUxleaZvTmX4qEfXzBxd5e4ilsDgTQECbxZYW NxEUHgX8mnHoMHPGNcXdKyN28LnLbWA12vFU6suPfe5V5DGVShrWBv9z5QNeLlcP6v2n p6eDFUIacJCEgw6AXHYCzG+j48F9Cc0q0Q157Mdq34XP90HgMg9HowUtHAFlcJZ/LSOr pVIVvEj9GbMPQ9fZQeqUAS2RE3CDnXm3u13++nKI4NuZM5HIQ52UDzsGkG82HAVq0WWZ HdkLWoq6z9hkIcR+SVCYH1zDg8NErCRX9BTWAcnekBMSkqdfA6Ai1S6dMJT4fnPNoCTf CqIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129154; x=1793733954; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=YOc9+g0uWp4YmdKLLJ65ly/FZiXn9rKsDmqyob+IyEs=; b=vb6YC6r+Y5SA5W66e8gp+MA+8BZoqu5TuKDnZbD4FCCXTGrGb/VS2L+FHeXRaillgx B5EB+WfkJrw5uSVut9jtzWzyS7bFPrPJZEtv9yZO9RQRCwUYU9yHMIT1yi/sSQ9puMw8 1dG1tE5ONgMmdlFVz0FvcfYwHojBqKi72/IEDJZbinsd/KbuW0CH/RvHH/Bia4HL+5+N Zy2v57uz5JBFNxuUX4xSBiwxpJD6RGNNPhlxmPcKwfifc5yvQu/lz8XEf6fJzFkEEpK/ 1o2mN0PvBTF6tuWLptRlnTgdepXeatDYMOI/KXEdM3UcILb3b5WMP3ABOYuJ1nv1+WK9 I0Vg== X-Gm-Message-State: AFq9FYItaBgiCVFIXmYXezkV8YgRPvW47PIzkcAQz1w4jzlv56NXSapA t2uTrRLYzhME7a/V8C04Svp+PHRcWTRS6PGJGK+ixaz57kiReSfk1UQPL7H4k4ZHVA8rhG9Q8eO njV/F7CYPbIjtkNbsZiInJz9V94FiFCzoGwBKdYfaQBp+LyjI3CtmWUNE24iCCyi4aQ== X-Gm-Gg: AYBFou0qYwVbrPcGCcc7AcYIe3ZC4s8KW8oZUvWSMXSnxdidOXl66bmLwqwRtEREDr3 /RRE1rByi0v7pThgEGIgepAt3OM37WmkmE1Q8sIT+iS2K7PM9PWDjKdK8PN7UL9jEryFtvXKTiV J7r11ckp4QXlP1WYxl6/+6Se496vC76osHmTWVKVvbRe04IWwuXJ9SPHcJutXnbSjnNDzT7Mli7 mlXqRb4s505+hCiUJt8zbHnzCW4OuPg17rINYOWyaIBqXrL5mMLxcgMIdn0Is/sNzW6ct9OdAuT NvC3/2o+mwM7DVoKQD531s5IV/iemHUoRu6AEwv/zMnhUHMBMYU+DdvkY+xYn9YwSNPdQDp6SiW uWn/+GGo4qU59Nf8QSkLKDdViV52qraN30ftrpMn70nhz80Cr3wguRBKc X-Received: by 2002:a05:620a:2626:b0:93f:22af:ccdc with SMTP id af79cd13be357-943f4a05f51mr596407385a.4.1793129153779; Tue, 27 Oct 2026 12:25:53 -0700 (PDT) X-Received: by 2002:a05:620a:2626:b0:93f:22af:ccdc with SMTP id af79cd13be357-943f4a05f51mr596404185a.4.1793129153130; Tue, 27 Oct 2026 12:25:53 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 19/59] hw/timer/imx_gpt: Wire clock control module via link property Date: Tue, 27 Oct 2026 20:23:00 +0100 Message-ID: <20261027192341.9197-20-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfXzWGV7hcg+jks l6UwY2KIQaAvjmNf8uW5eGnBKmuMFK9bUBgDmPCGr+R48fhzjbzkrJYy6qHngcqTlDJlDMLT9Tc wfIZqU7kgjoEZdeupKMWxXTZzovuJRs= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX2XzDeBlYnwHn fBKDWOTXPWoCp+4nzye97p0cjHRdFPcCMwdMz0w12vstS3GYMuT7oodgBzvgO9eytIRcP2Zjrnc 9sOoiSJ45PsN/3FZRFam0Pa0HrP4y8gHD2Le45nIwX1Wdwm9mJ/Po7SL3VRMKovq/HUY3x4efh6 03Zf2Q28GFbXzdhbaDFqJZgisSPigfuEL5Smad//BseWiy4jZrKjaF+HT3UJU0VabwE5yNxMQap z3+5DqHBta7OgrYTeKGGINH5DFbW+rt7TUHhAbC6fRy19FjkdWpzM2wxMdOVCHXTHnm3SKnKIm5 TUymzR/vfFWe8Z8t6lGXp+bFRNBBXi3YHSCkniiduybrP1TsOjMedLvyudrUkPWT0o1Ewg+JpAp HARfAk1etErIv1+NZKeLUcOpDnrLlMaGkx/jzzm4LjG829OnIqZtFhOgab8HknLV8KgKZjgJABa fEITfbXZfr7Z9o16w1w== X-Proofpoint-ORIG-GUID: q7vJtqpWGRfPiu16_uJ9dbLCOb81mKJ9 X-Proofpoint-GUID: q7vJtqpWGRfPiu16_uJ9dbLCOb81mKJ9 X-Authority-Analysis: v=2.4 cv=XaIcX455 c=1 sm=1 tr=0 ts=6ae0fac2 cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=UWXt6i8kVS0SnA6LmccA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=IoWCM6iH3mJn3m4BftBB:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 phishscore=0 spamscore=0 bulkscore=0 priorityscore=1501 clxscore=1015 lowpriorityscore=0 suspectscore=0 impostorscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129249820158501 From: Bernhard Beschow When wiring struct IMXGPTState to the clock control module, it is currently necessary to reach into its private data. Moreover, when forgetting to wire the clock control module, QEMU will crash after the guest has already started. Fix both by letting struct IMXGPTState expose a link property which is checked at realize time. Inspired-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Bernhard Beschow Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-ID: <20260921214710.29422-17-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/arm/fsl-imx25.c | 3 ++- hw/arm/fsl-imx31.c | 3 ++- hw/arm/fsl-imx6.c | 3 ++- hw/arm/fsl-imx6ul.c | 3 ++- hw/arm/fsl-imx7.c | 3 ++- hw/arm/fsl-imx8mm.c | 3 ++- hw/arm/fsl-imx8mp.c | 3 ++- hw/timer/imx_gpt.c | 14 ++++++++++++++ 8 files changed, 28 insertions(+), 7 deletions(-) diff --git a/hw/arm/fsl-imx25.c b/hw/arm/fsl-imx25.c index efb22359c5b3..0840c2d86ada 100644 --- a/hw/arm/fsl-imx25.c +++ b/hw/arm/fsl-imx25.c @@ -138,7 +138,8 @@ static void fsl_imx25_realize(DeviceState *dev, Error *= *errp) { FSL_IMX25_GPT4_ADDR, FSL_IMX25_GPT4_IRQ } }; =20 - s->gpt[i].ccm =3D IMX_CCM(&s->ccm); + object_property_set_link(OBJECT(&s->gpt[i]), "clock-control-module= ", + OBJECT(&s->ccm), &error_abort); =20 if (!sysbus_realize(SYS_BUS_DEVICE(&s->gpt[i]), errp)) { return; diff --git a/hw/arm/fsl-imx31.c b/hw/arm/fsl-imx31.c index dd929c108588..b440ad6e28d7 100644 --- a/hw/arm/fsl-imx31.c +++ b/hw/arm/fsl-imx31.c @@ -105,7 +105,8 @@ static void fsl_imx31_realize(DeviceState *dev, Error *= *errp) serial_table[i].irq)); } =20 - s->gpt.ccm =3D IMX_CCM(&s->ccm); + object_property_set_link(OBJECT(&s->gpt), "clock-control-module", + OBJECT(&s->ccm), &error_abort); =20 if (!sysbus_realize(SYS_BUS_DEVICE(&s->gpt), errp)) { return; diff --git a/hw/arm/fsl-imx6.c b/hw/arm/fsl-imx6.c index 7ba9b85a2eac..22deb7249639 100644 --- a/hw/arm/fsl-imx6.c +++ b/hw/arm/fsl-imx6.c @@ -204,7 +204,8 @@ static void fsl_imx6_realize(DeviceState *dev, Error **= errp) qdev_get_gpio_in(gic, serial_table[i].irq)); } =20 - s->gpt.ccm =3D IMX_CCM(&s->ccm); + object_property_set_link(OBJECT(&s->gpt), "clock-control-module", + OBJECT(&s->ccm), &error_abort); =20 if (!sysbus_realize(SYS_BUS_DEVICE(&s->gpt), errp)) { return; diff --git a/hw/arm/fsl-imx6ul.c b/hw/arm/fsl-imx6ul.c index 84451c99097a..2786889bdafe 100644 --- a/hw/arm/fsl-imx6ul.c +++ b/hw/arm/fsl-imx6ul.c @@ -245,7 +245,8 @@ static void fsl_imx6ul_realize(DeviceState *dev, Error = **errp) FSL_IMX6UL_GPT2_IRQ, }; =20 - s->gpt[i].ccm =3D IMX_CCM(&s->ccm); + object_property_set_link(OBJECT(&s->gpt[i]), "clock-control-module= ", + OBJECT(&s->ccm), &error_abort); sysbus_realize(SYS_BUS_DEVICE(&s->gpt[i]), &error_abort); =20 sysbus_mmio_map(SYS_BUS_DEVICE(&s->gpt[i]), 0, diff --git a/hw/arm/fsl-imx7.c b/hw/arm/fsl-imx7.c index fc5d0efe0600..9e206c59a17e 100644 --- a/hw/arm/fsl-imx7.c +++ b/hw/arm/fsl-imx7.c @@ -250,7 +250,8 @@ static void fsl_imx7_realize(DeviceState *dev, Error **= errp) FSL_IMX7_GPT4_IRQ, }; =20 - s->gpt[i].ccm =3D IMX_CCM(&s->ccm); + object_property_set_link(OBJECT(&s->gpt[i]), "clock-control-module= ", + OBJECT(&s->ccm), &error_abort); sysbus_realize(SYS_BUS_DEVICE(&s->gpt[i]), &error_abort); sysbus_mmio_map(SYS_BUS_DEVICE(&s->gpt[i]), 0, FSL_IMX7_GPTn_ADDR[= i]); sysbus_connect_irq(SYS_BUS_DEVICE(&s->gpt[i]), 0, diff --git a/hw/arm/fsl-imx8mm.c b/hw/arm/fsl-imx8mm.c index 875e92bb3473..37934d295111 100644 --- a/hw/arm/fsl-imx8mm.c +++ b/hw/arm/fsl-imx8mm.c @@ -420,7 +420,8 @@ static void fsl_imx8mm_realize(DeviceState *dev, Error = **errp) fsl_imx8mm_memmap[FSL_IMX8MM_GPT6].addr, }; =20 - s->gpt[i].ccm =3D IMX_CCM(&s->ccm); + object_property_set_link(OBJECT(&s->gpt[i]), "clock-control-module= ", + OBJECT(&s->ccm), &error_abort); =20 if (!sysbus_realize(SYS_BUS_DEVICE(&s->gpt[i]), errp)) { return; diff --git a/hw/arm/fsl-imx8mp.c b/hw/arm/fsl-imx8mp.c index bcd91739d9b2..f855378dff2d 100644 --- a/hw/arm/fsl-imx8mp.c +++ b/hw/arm/fsl-imx8mp.c @@ -447,7 +447,8 @@ static void fsl_imx8mp_realize(DeviceState *dev, Error = **errp) fsl_imx8mp_memmap[FSL_IMX8MP_GPT6].addr, }; =20 - s->gpt[i].ccm =3D IMX_CCM(&s->ccm); + object_property_set_link(OBJECT(&s->gpt[i]), "clock-control-module= ", + OBJECT(&s->ccm), &error_abort); =20 if (!sysbus_realize(SYS_BUS_DEVICE(&s->gpt[i]), errp)) { return; diff --git a/hw/timer/imx_gpt.c b/hw/timer/imx_gpt.c index cdc025712625..22fc8203bfd3 100644 --- a/hw/timer/imx_gpt.c +++ b/hw/timer/imx_gpt.c @@ -15,8 +15,10 @@ =20 #include "qemu/osdep.h" #include "hw/core/irq.h" +#include "hw/core/qdev-properties.h" #include "hw/timer/imx_gpt.h" #include "migration/vmstate.h" +#include "qapi/error.h" #include "qemu/module.h" #include "qemu/log.h" #include "trace.h" @@ -522,6 +524,12 @@ static void imx_gpt_realize(DeviceState *dev, Error **= errp) IMXGPTState *s =3D IMX_GPT(dev); SysBusDevice *sbd =3D SYS_BUS_DEVICE(dev); =20 + if (!s->ccm) { + error_setg(errp, "%s 'clock-control-module' link property not set", + dev->canonical_path); + return; + } + sysbus_init_irq(sbd, &s->irq); memory_region_init_io(&s->iomem, OBJECT(s), &imx_gpt_ops, s, TYPE_IMX_= GPT, 0x00001000); @@ -530,12 +538,18 @@ static void imx_gpt_realize(DeviceState *dev, Error *= *errp) s->timer =3D ptimer_init(imx_gpt_timeout, s, PTIMER_POLICY_LEGACY); } =20 +static const Property imx_timer_gpt_properties[] =3D { + DEFINE_PROP_LINK("clock-control-module", IMXGPTState, ccm, TYPE_IMX_CC= M, + IMXCCMState *), +}; + static void imx_gpt_class_init(ObjectClass *klass, const void *data) { DeviceClass *dc =3D DEVICE_CLASS(klass); =20 dc->realize =3D imx_gpt_realize; device_class_set_legacy_reset(dc, imx_gpt_reset); + device_class_set_props(dc, imx_timer_gpt_properties); dc->vmsd =3D &vmstate_imx_timer_gpt; dc->desc =3D "i.MX general timer"; } --=20 2.55.0 From nobody Mon Nov 23 04:26:24 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129214; cv=none; d=zohomail.com; s=zohoarc; b=FErGynzGPnhZZlDN9Lk5D9Feus2L8K6VW0JYj/HyDDhX9zRWhUcoPITc0qvoTC5F8WOzUvwnscj+HZ3uy9PDiSi4Yh7ZD2+Cta1CzXQV5XkY478bY2Dp89XZbp2mP68YszaUlePAXmUpCbNgL+KfqKMC9aPs5cXo51WmpG9C7yE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129214; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=XPZjUxCxFgVE5IIML6S+N0sJFExSD9+f4cuBqFNOilM=; b=E+chl9NU0SDK4Imesg92FTVIQGGAegtxQYN2SREKLIUQEnr1w7bE1S7kujRA90wSiKJi7fwepLlu+3bfn5oEx3QwhTTgAsLy0Wa4DOP3F4q/tAFLIEGk5uEaMmBjitKxS9+O+fGKD2Q2EYuABBMl6QA7Aiun8fjihelAbYy8lB8= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129214577982.9998184884172; Tue, 27 Oct 2026 12:26:54 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmom-0004OZ-2W; Tue, 27 Oct 2026 15:26:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmoA-0003NZ-1d for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:26:06 -0400 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 1xLmo6-00027d-4i for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:26:03 -0400 Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RII54t3554696 for ; Tue, 27 Oct 2026 19:26:01 GMT Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjqw22wjy-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:26:00 +0000 (GMT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-93f5844cb60so44342985a.0 for ; Tue, 27 Oct 2026 12:26:00 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a94ddf8cacsm2446715e9.5.2026.10.27.12.25.58 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:25:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= XPZjUxCxFgVE5IIML6S+N0sJFExSD9+f4cuBqFNOilM=; b=KYa/gejHsh/lj05t 9HArFLI6AkspRBFDIfr9UxzsSIip0unv1Lx/Cb8r0jOZZxa/0v1G48j5tXuhhmKA vpJuZY1WPyxSkWr/qFnG9ty+iZCioOwid38HvjbKl8bmlATWLMdKMzZ9HJXbyOWx DHwfC1UO0XldT3u/512IRcFxTzvFu9lGeeEarSieDtobLF3HTi50cppGUlENyGss 7WcuMQ+haTWVzYnd6/uMoNylUeAuT7F7pXv9Ii+XPP0srATbYUmAxDFpXyV/z51r zQnlShRfxb+HS8CLM/yhInSW403cxCtQfFqJdHDFp86ixLFBwtu1VVxRUQbVqp8w 8r1osw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129160; x=1793733960; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=XPZjUxCxFgVE5IIML6S+N0sJFExSD9+f4cuBqFNOilM=; b=ZFM/4DAhkZYOMSHnaX11FUMw1Zzeis/VFG7XDdjdVztZsbOmkjTTlC92q2LiapXJ6l wzODxgrH8Y/RfgQ776tYq413p6V4Nx30QE72h+BLELqt7tj0SuvpFQg6fcsxHw1ldb1B ufgZarHGz7DNneb/EBhzJGtv8VWFMIpnCAsiRMJXp+SMgrdrP3JLNeQk/d+QLtZQzs3c 3WT1qouFy419OmsjCfPeAkF+Wo09fkUcXY3GZsl0zf+kIFy6nluFKE7DIkeSZnbKSY1f X3ZfZ79SmLMUp5M7oUR4uG6MmZt0pxnDpNJM3BcLz3/k0Ng0kJVjflzj9g2itfGa8gse zLeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129160; x=1793733960; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=XPZjUxCxFgVE5IIML6S+N0sJFExSD9+f4cuBqFNOilM=; b=UTUEbhNPXgN8oUH2AM7F3dB5rmau/zNoQ3o0eb3GHWPq8CyyqIvM/FrHUf0DwKwnfJ aW4ECCmSJ1cbtTvN89+Q1vDaHm5GU+cc5fITvwTsm3cSb52/26UpR29hr51LuiYyMx/l 2PXXPhK79rxsaqr8iN2I3p4I3IdaNMrOmKAnxB7G5fg+RvwxSOn2FnOxPJ4IU7d+4v4/ 6KNvQfTgmetJmUsbmiGMuPQHIg4kZuFZbAGtrzAIaBBXrcPVMo/2oDTpjvnlzyebu3tH VqO6zZVUW7obGb4O+aQFmSLe+5IWh6xzb/+Y89GCSjE5dYk9Q08WOT88WMVmp6LQa4Ad ihbQ== X-Gm-Message-State: AFq9FYLbf+BT5wgB/TqdEYD8PypnRi1DmpDiDPjvVe/bQxE8k6i7ebV1 +OHC6VhhFyzS1HQPLcU0Da95tG3eYzyzXiNUwscNBTBpPznjE4efBaqeHrbZ/dM2Zf8nDGD1vkE 0HmSxa6PZR1rxgV34ztshix5zkZPFwDaJjbti5wsRfSlUlOLV6YnvHQ2C0WuUE9UeIw== X-Gm-Gg: AYBFou2L0nUGQya8MLvpdhxd8LSRIXA2PxekxnaMGCgrEn2re92RSXBKu3ozoqgAd0y bzrZjLdZ+ZDya1ZZvK9F8lHl4HXNaSSsHrLOAUW2REhnEWM2EMlCBhGer6nupixgyATSjcjpgFg /4ZKceD/VVhMrL6BPmqEUczhOembemLzzpBCCjwN8WKspkFTGMs73xVdFVxoEFKwuZU1aIRqh1r wd4ZtClM5JPv0SLirqpPjfI3SrSGRNchY2faTA5UAbCowKq0xagN3wt/0L1AirChxMCYZy0ijm1 bRtGUcW5uKff6oFFzk9GWTZ4ksPcR4AjhVu6Jj/6Xi5deFsm9mi/nCcmYCsa02+x3LHOY2seLH2 4XnBHQD6/pxPSWG582mJ3eUUzMtWPherWw81+fhXA66UMGaTIcmX6U1Io X-Received: by 2002:a05:620a:4722:b0:93f:4a02:ed99 with SMTP id af79cd13be357-943f4b8ce2amr591971985a.20.1793129160362; Tue, 27 Oct 2026 12:26:00 -0700 (PDT) X-Received: by 2002:a05:620a:4722:b0:93f:4a02:ed99 with SMTP id af79cd13be357-943f4b8ce2amr591967585a.20.1793129159822; Tue, 27 Oct 2026 12:25:59 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 20/59] hw/timer/imx_epit: Wire clock control module via link property Date: Tue, 27 Oct 2026 20:23:01 +0100 Message-ID: <20261027192341.9197-21-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX0W4Ux6j/fLvb rBdk778vYbsTHcNgeczKiBRJ5zEw5WdwC98Yp5BTC9Qu3jDmudVpIX4wVk8QcZ3X3ZSuXKdsplN t7sUNDez6Ty7edSsCWOJU16w8fZWtDKfpwXOl88UDxB53obs6LdfgmTxy55afoBuuf5wcZYWcC6 1fIam0xjXvXfBgYo1YxolvnnEsoiH7XPcVj81orQj+m9GANE1pCNao6g7dpeVi0cRRzGAo3tLUl A2W16gu8HYAvQ2N7d7tS9c9ihGWbWXWmD0oCcRiGrxqfmohi8FL4ePbq7uajlH7rUGEU+Ykb5yo Sp7pKLiaArgwCid01RzxSP0PlNljargMXnR07JCh0Ds1XPgPiutDxBzMQeDyI6UJt2kzldeTGHO NCWbY5WUF+5FXsozkkdfhOHW2nDWK2JIVglSd6TzsLHvCbSF5TL1LX584rfp1YM72Vx7APcMid+ GbcGusqEI8VBLvlzSJw== X-Proofpoint-GUID: 3S8pVPowcSzq5WCH7RUTdhiTp2Lc9ene X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfXyMhjoWINxqvp D7Zw7JjPJKs2/OaEICxRBTRHZEV1mC9b2bafoonqynYwqpD2Rm8Hq8fLGrCS1BEJtNyWKEJ07g7 25IqIaPXYGkXgS3rwKjClBjqDN2UmGg= X-Authority-Analysis: v=2.4 cv=PsYG/AM3 c=1 sm=1 tr=0 ts=6ae0fac9 cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=HZG9NnMo3wJFbGJbj0gA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=IoWCM6iH3mJn3m4BftBB:22 X-Proofpoint-ORIG-GUID: 3S8pVPowcSzq5WCH7RUTdhiTp2Lc9ene X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 spamscore=0 phishscore=0 adultscore=0 lowpriorityscore=0 priorityscore=1501 bulkscore=0 impostorscore=0 clxscore=1015 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129216536158500 From: Bernhard Beschow When wiring struct IMXEPITState to the clock control module, it is currently necessary to reach into its private data. Moreover, when forgetting to wire the clock control module, QEMU will crash after the guest has already started. Fix both by letting struct IMXEPITState expose a link property which is checked at realize time. Inspired-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Bernhard Beschow Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-ID: <20260921214710.29422-18-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/arm/fsl-imx25.c | 3 ++- hw/arm/fsl-imx31.c | 3 ++- hw/arm/fsl-imx6.c | 3 ++- hw/arm/fsl-imx6ul.c | 3 ++- hw/timer/imx_epit.c | 14 ++++++++++++++ 5 files changed, 22 insertions(+), 4 deletions(-) diff --git a/hw/arm/fsl-imx25.c b/hw/arm/fsl-imx25.c index 0840c2d86ada..a8745d5d1abf 100644 --- a/hw/arm/fsl-imx25.c +++ b/hw/arm/fsl-imx25.c @@ -160,7 +160,8 @@ static void fsl_imx25_realize(DeviceState *dev, Error *= *errp) { FSL_IMX25_EPIT2_ADDR, FSL_IMX25_EPIT2_IRQ } }; =20 - s->epit[i].ccm =3D IMX_CCM(&s->ccm); + object_property_set_link(OBJECT(&s->epit[i]), "clock-control-modul= e", + OBJECT(&s->ccm), &error_abort); =20 if (!sysbus_realize(SYS_BUS_DEVICE(&s->epit[i]), errp)) { return; diff --git a/hw/arm/fsl-imx31.c b/hw/arm/fsl-imx31.c index b440ad6e28d7..79e2f7f79562 100644 --- a/hw/arm/fsl-imx31.c +++ b/hw/arm/fsl-imx31.c @@ -126,7 +126,8 @@ static void fsl_imx31_realize(DeviceState *dev, Error *= *errp) { FSL_IMX31_EPIT2_ADDR, FSL_IMX31_EPIT2_IRQ }, }; =20 - s->epit[i].ccm =3D IMX_CCM(&s->ccm); + object_property_set_link(OBJECT(&s->epit[i]), "clock-control-modul= e", + OBJECT(&s->ccm), &error_abort); =20 if (!sysbus_realize(SYS_BUS_DEVICE(&s->epit[i]), errp)) { return; diff --git a/hw/arm/fsl-imx6.c b/hw/arm/fsl-imx6.c index 22deb7249639..5bb828fbb655 100644 --- a/hw/arm/fsl-imx6.c +++ b/hw/arm/fsl-imx6.c @@ -225,7 +225,8 @@ static void fsl_imx6_realize(DeviceState *dev, Error **= errp) { FSL_IMX6_EPIT2_ADDR, FSL_IMX6_EPIT2_IRQ }, }; =20 - s->epit[i].ccm =3D IMX_CCM(&s->ccm); + object_property_set_link(OBJECT(&s->epit[i]), "clock-control-modul= e", + OBJECT(&s->ccm), &error_abort); =20 if (!sysbus_realize(SYS_BUS_DEVICE(&s->epit[i]), errp)) { return; diff --git a/hw/arm/fsl-imx6ul.c b/hw/arm/fsl-imx6ul.c index 2786889bdafe..f72121e23d0c 100644 --- a/hw/arm/fsl-imx6ul.c +++ b/hw/arm/fsl-imx6ul.c @@ -270,7 +270,8 @@ static void fsl_imx6ul_realize(DeviceState *dev, Error = **errp) FSL_IMX6UL_EPIT2_IRQ, }; =20 - s->epit[i].ccm =3D IMX_CCM(&s->ccm); + object_property_set_link(OBJECT(&s->epit[i]), "clock-control-modul= e", + OBJECT(&s->ccm), &error_abort); sysbus_realize(SYS_BUS_DEVICE(&s->epit[i]), &error_abort); =20 sysbus_mmio_map(SYS_BUS_DEVICE(&s->epit[i]), 0, diff --git a/hw/timer/imx_epit.c b/hw/timer/imx_epit.c index 374ec7d324d5..e1050b51d82b 100644 --- a/hw/timer/imx_epit.c +++ b/hw/timer/imx_epit.c @@ -17,7 +17,9 @@ #include "hw/timer/imx_epit.h" #include "migration/vmstate.h" #include "hw/core/irq.h" +#include "hw/core/qdev-properties.h" #include "hw/misc/imx_ccm.h" +#include "qapi/error.h" #include "qemu/module.h" #include "qemu/log.h" #include "trace.h" @@ -386,6 +388,12 @@ static void imx_epit_realize(DeviceState *dev, Error *= *errp) IMXEPITState *s =3D IMX_EPIT(dev); SysBusDevice *sbd =3D SYS_BUS_DEVICE(dev); =20 + if (!s->ccm) { + error_setg(errp, "%s 'clock-control-module' link property not set", + dev->canonical_path); + return; + } + sysbus_init_irq(sbd, &s->irq); memory_region_init_io(&s->iomem, OBJECT(s), &imx_epit_ops, s, TYPE_IMX= _EPIT, 0x00001000); @@ -412,12 +420,18 @@ static void imx_epit_dev_reset(DeviceState *dev) imx_epit_reset(s, true); } =20 +static const Property imx_timer_epit_properties[] =3D { + DEFINE_PROP_LINK("clock-control-module", IMXEPITState, ccm, TYPE_IMX_C= CM, + IMXCCMState *), +}; + static void imx_epit_class_init(ObjectClass *klass, const void *data) { DeviceClass *dc =3D DEVICE_CLASS(klass); =20 dc->realize =3D imx_epit_realize; device_class_set_legacy_reset(dc, imx_epit_dev_reset); + device_class_set_props(dc, imx_timer_epit_properties); dc->vmsd =3D &vmstate_imx_timer_epit; dc->desc =3D "i.MX periodic timer"; } --=20 2.55.0 From nobody Mon Nov 23 04:26:24 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129272; cv=none; d=zohomail.com; s=zohoarc; b=ZsixsFrgDrEWVwpnnKOdWsdSHULP5V9CZ1O3leuXrsCtm0pS3/4K0n81gX3tyXswYNETDyWLcbQc5TzlENI/jsy0BY0AGO8By7ZxK006p7eobYW8tJsSE57Tn608HOh2Y9TSMPe6EwuT/2CK/WR1GnbilT7TZz09nGCdTNHFBkQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129272; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=c6kaTYYd0Yy8EPRQwert6k6IgQJP89E4HXVxDGkqtJM=; b=ieT8/LSlG+0/EcnlxsUFrq0bQFUdb8MQIFo/2uHmDXWgOEj0Q6ioqxxwAiUV5i1gGKxkpzMd9/Wr9KOEshMxDgfutD66Cpt5U9yOu3m5pUo2VQaMljcphIrLVNiiVsjI+9YudXQmWWzfvZIQOUwYm7DdV0tsX+p+H7uZyIxE9J8= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 17931292720886.922888047408378; Tue, 27 Oct 2026 12:27:52 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmos-0005Bh-Bc; Tue, 27 Oct 2026 15:26:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmoE-0003h9-KX for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:26:11 -0400 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 1xLmoC-00027w-Mb for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:26:10 -0400 Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHPQl3553875 for ; Tue, 27 Oct 2026 19:26:07 GMT Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjqw22wke-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:26:07 +0000 (GMT) Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-943e8ff02d0so11697985a.2 for ; Tue, 27 Oct 2026 12:26:07 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e3ebd48eesm24488516f8f.30.2026.10.27.12.26.05 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:26:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= c6kaTYYd0Yy8EPRQwert6k6IgQJP89E4HXVxDGkqtJM=; b=m1WR6Y+5IfOOqFx2 nLMoxkmOKFJzOHsEnKICyXwWQ4dbl19VOEw4AnjHQa/S/whUtk9kHKlgX8nyCWtM AX0T/ZCjnDVtmqZBs10Nibv4hEDJ1ITEFjM4lD+cyctnD5ulw+XepaCc4aEp/O0i rKyyKmj2tq5GBANdECd76UZlhirzcxVkiEaEPc3aap+9qmlnUPasH0AzR4eLQa8/ vrgeeNY/Uq3i+0l+kJO+YuypHGCQNKCu9J60Tue9ZthX/HV5Z1ak1jziUMfxijs6 SGjRQju09CZbJqLQGww7AhbloOZSL7kEgH9Fkff5UfSUypzIIJqdwdCvcEfW7mQZ isynTg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129167; x=1793733967; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=c6kaTYYd0Yy8EPRQwert6k6IgQJP89E4HXVxDGkqtJM=; b=byXy1Nkg1SVCQSBzGvIUTab5vIr6P7QeNUYSM/fcGU8WH9G0RliYmKNuvYCV/oCf4f q/RedXb8Z+AET76PC/ZYZMpu/It45uu36TwifMMCXcODX+p3ar7u1fPm8CO0d03Q/qAs cxuIDhMEMmE80JIs1RAcssBZNV50pRcoDLdKva4uQjkMLH1mWhgIgU+9fLFHyBc3Nenl iQp0pKMZq415kcWjN+hF5WuCRFrFs8kUGs65kI8wznVc/M5HDp86yy+XK7IgWB1cbcBJ 0/bU1bk4vX182KLkx6lsIr+rdPofIQiN5ET6g95uQ7+H+u/5hxJFgBqWx6PLGhLLBCqD zl1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129167; x=1793733967; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=c6kaTYYd0Yy8EPRQwert6k6IgQJP89E4HXVxDGkqtJM=; b=ZY0BR8391+KDBBnHyvAsgYM/1BePg1eFs3ivCEwiYwcQf3jlJfarQ0j/z2K3/N9Tdk 6j7NSCHVE3SYn4O1UoM+RTFSvOEJCKOAzuoSNE4ZB8zxsn4tGFP/Fs28lGqwmVs8CIXq fP4P+24tdMphrfH3domlhHips/5TajmzdR+w51LE5ZsN6Zv1Ge8awTYF3mPBX6OhBhAu xijgzMP6x0wrqCDVCBJSueNrdA8N3bs+IXAvPOk4QCBwAIiaqPMq2U/1OTzaZsat4CGv uxZtNwnOTxylkstoc/hiGixDYycw+6BCuMBnWabK+6Kw+bwP5OPxZdfSI89Gxhkzha6E sthg== X-Gm-Message-State: AFq9FYIalpz6NBjaxyenPMRfQEicK+ZGPBEwSCR9IlJYgXmk7ouhAgGu 4ree4egwFPWlo/ahHKwnUTCvBIZ+kKLAAYh9EiPcugnkWQzBqBXK3tasDvnXBcydxMeVzHWhm1O JuKJmnZmJdQD3iXGtBE7WIMCavKwriMc+gWC/q3luRceE+jeVAQJ+lZzK6xLlwMOYFQ== X-Gm-Gg: AYBFou1MMd8wBdxzLBj4g0tD/vmNmsv7cOYvc3JmTBAJCiVFVNJh8XTffU2xdqNN5Iv XRYDHHShcaa7+rb38poETsPjXbgDqVEDO5QRpNAZ7Vsbi+uriwpgQn2PPDAa5kF9qU3qzdv+J6q JMbFeQEqZkFvYKHLpKQZVtAO2+C/0aJMuzrTpQZcTHbVtLZIvZ8ztLAajKbBXntnZe/S8+TX0/H tppzEGvuxHZk5pWFubMYC2LlCnfOE0IiktArFAVyOrT4kE7aa6Nj3xZkuJie/wBtdrjJy7UicTB Zhz/Cfv8QKlav4xfKfaB0b5G3rcEyVOz58Ulu3a96p5hWwebM3q54pcqpD6YBgZ6QBFfwpMYuss kM1wVSTlzNxb9o/tQ767IMAzLdHZ5S8Vn3p4cfYx4H4gZwmjuUgqLsVpN X-Received: by 2002:a05:620a:4725:b0:93f:3163:3e37 with SMTP id af79cd13be357-940ef9140e5mr1772568985a.28.1793129167084; Tue, 27 Oct 2026 12:26:07 -0700 (PDT) X-Received: by 2002:a05:620a:4725:b0:93f:3163:3e37 with SMTP id af79cd13be357-940ef9140e5mr1772564585a.28.1793129166545; Tue, 27 Oct 2026 12:26:06 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 21/59] hw/arm/Kconfig: Select missing UNIMP in config FSL_IMX8MM Date: Tue, 27 Oct 2026 20:23:02 +0100 Message-ID: <20261027192341.9197-22-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfXwn2kaIeZGlsI 8cFlpexdLg357u0CQtZ/O9fRss3af0f+NXH0+K7l+EoQNUiqz8m4v1vahDVTOExHX1yFFCYDv8N C7KCGe4cgxPaMp5D5MnodOYzMlRvLlvgE6iJDoPTXJf/jGkrc8+irbbm94h6gqm6R9tsoXCy5kH Lm7P3u3YOiHqbvZXhnBrcSy7b9EEgLvi/l3EbqKBCT5SV+KB+jslWBjJwaQYOo8kcIgAmK1YMTh VymaEDOIKvKOgI7gE/DhV8RuqJtONMT5QQFD77PNBvvyMIfUQXkIB91Rf6ItzxAJMA4L1psZhu/ 5qr7MSQka4GuMyvRBhfNJDTh3lsylaf4QwlOiGvv0XAB8pMS7DIFJ8I58mrCEictQ3Qv9p5e5Yw jzcni1DPIm7emuRSlyYyXh/FRrzDqxxBDOC4eWTHwHQ+AAzDSsKk7IZBdGi8k2yu+yUlpTYJb4V y7czF0b1ToU9XFIW7IQ== X-Proofpoint-GUID: 2YpMtW14tfsNyd27GeD3wxe5-Na-wdbA X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX4s6l6P8jZIuu tbJL00yIF/5ul0vt3SQwdwujCPWouyhTMP/tgZ/aa9YDSgstiB/GiqljIIlEVpruRlGsmAO7Fhw 1BoDy4jAMjffqwgvDwt9X3Jfup6VmO4= X-Authority-Analysis: v=2.4 cv=PsYG/AM3 c=1 sm=1 tr=0 ts=6ae0facf cx=c_pps a=hnmNkyzTK/kJ09Xio7VxxA==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=y-BW506dPmda5lYNwRoA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=PEH46H7Ffwr30OY-TuGO:22 X-Proofpoint-ORIG-GUID: 2YpMtW14tfsNyd27GeD3wxe5-Na-wdbA X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 spamscore=0 phishscore=0 adultscore=0 lowpriorityscore=0 priorityscore=1501 bulkscore=0 impostorscore=0 clxscore=1015 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129273752158500 From: Bernhard Beschow TYPE_FSL_IMX8MM models the whole address space by representing unimplemented devices with TYPE_UNIMPLEMENTED_DEVICE. This means that UNIMP needs to be selected by config FSL_IMX8MM which is currently missing. Fix that. Fixes: 7bcd1f30bc83 ("hw/arm: Add the i.MX 8MM EVK(Evaluation Kit) board") Signed-off-by: Bernhard Beschow Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-ID: <20260921214710.29422-19-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig index 4445f16f4517..6e8755783e67 100644 --- a/hw/arm/Kconfig +++ b/hw/arm/Kconfig @@ -627,6 +627,7 @@ config FSL_IMX8MM select SDHCI select PCI_EXPRESS_DESIGNWARE select PCI_EXPRESS_FSL_IMX8M_PHY + select UNIMP select USB_DWC3 select WDT_IMX2 =20 --=20 2.55.0 From nobody Mon Nov 23 04:26:24 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129223; cv=none; d=zohomail.com; s=zohoarc; b=VYnObPDI5qWWoRMgoWTjPMAsrIysFx9V2qaYiGHpo0UwFSb/SHU2FCS7eP6qlTfchRZcvOxGKbigu9N3y1tg3cdBDhem6rE3Z4f4dY9Hh5fTeCNU7BC0IlppIaSffv0opMquBd3ZKeRi0IS7gPsBdiuk8TtpMMLaIoNU0X5YPe0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129223; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=itoH+sO7JOg91PehhfpcY22JWZZARwJdCRkM2u1G4BA=; b=KrtQc5t+y969YJDzziNh1tpMpIPA08/BPxeW03SDItvkQo/7FG58nbiYFnvXdMKdZPNtvPo8fEOfLFW4wrCVLGMPuxuDNFQFzjpgbaTYmegWV4BZq18Y/J02babL8Ogh6/dck1t5vsOEz9hGnIEOelgSxNXmHmy0nfYDQS9qB94= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129223706716.4171927596481; Tue, 27 Oct 2026 12:27:03 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmp2-0006Pt-Iw; Tue, 27 Oct 2026 15:27:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmoL-0003uG-IM for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:26:19 -0400 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 1xLmoJ-00028W-KH for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:26:17 -0400 Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHbY71917511 for ; Tue, 27 Oct 2026 19:26:14 GMT Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjux99uxu-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:26:14 +0000 (GMT) Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-93ce7a85f04so27356285a.0 for ; Tue, 27 Oct 2026 12:26:14 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a94c021080sm2887485e9.2.2026.10.27.12.26.12 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:26:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= itoH+sO7JOg91PehhfpcY22JWZZARwJdCRkM2u1G4BA=; b=SMie4OiFpx0oMFaJ wZzG5Fo9RA3ELxI6fFGHqVMv6+4EiqObatvA+SAjB/URj3cAfxLNFC471vN239RF /A44On7PYzCxKcqIJPn7MS/7+UAtLp//648rf1DrF0segsvtykvy1gommnCNEHYe 9qFpXej8WjuFxWO2N9k91RxMIi2QxDHc30fGQ4ONOwNKjFkgxyCkCLnc4c3tIClW o1aKks3fJbPi3WN/sofzIgHFvRvLvClrt2lHgiXFkBCwJrfm89lfAmyFfHfVmGxw UvDc3GOuPiyW8+zKQvyi3ZU0ehlfgYsC8HJXGA4hMmjCyG5qPiKOaRvaAQprKaFT Xu/r4w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129174; x=1793733974; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=itoH+sO7JOg91PehhfpcY22JWZZARwJdCRkM2u1G4BA=; b=Wi9fwVWqLgt3e8P7bA6mYLQfs6mIiY0yXqpk1jvoLMKcW153zreIgmIb68WeiEhbvr l8zaz0D12DGtqjSbH3GCFWGMGN6SrgR++u7fk94N9shLOxGmpjkHMjfxGwVseL7jqyJa /oiJS4a0PIKC30+a1mIMZkXyhaiQptVGqjNT8MSmJOUGp61/2ebsbz0XIa4beJ51X4+8 mkvfZK+FflO4eJwOEL8Z9wUAsApiYUOnhIfWH3rO7P108l1aIALE8jih5gddryRH2IFr rPQfLDJ4gBbc0udW7uIYU82EsU/xcujVPwSHfVJ2Fi0qwZ1HVPkfZecByEAil/tzFswC yrUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129174; x=1793733974; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=itoH+sO7JOg91PehhfpcY22JWZZARwJdCRkM2u1G4BA=; b=SCAG6Gub2wyogYFWLKE0QGj/LPhYXRmel4oagBBSyuUaBTc1PdbLnJpohU8RNPIqkK f7SgOrKL6M2CuGbXdAL+gVbsP2FgxRgwLjhH6tGZaM4fgzhS/+ZlvgXC0v/xBoI9Oy32 LEQmPS2GPqqyzEVHouAuGW9t3PgCnOthPdCI97wEKyx1E7jfF6scuNDMvdKgAiBVHXpl iyAAS8G2EiGsAKBLowa25wcs7KFwP5nay962v1CXeBwMiO/x+G1vo5eVgChnZyFeQWgW Wv9jqWgRrOYo0q4WNinOtfVpTZcixEeU2duRG6GrDS+5Ke7XK9hZRzbRXw4ThtceDQen 7Hrw== X-Gm-Message-State: AFq9FYJASXateu9M1cwVCn5PN4GGTfckm1v0rHS2i1YowQd5tSFLVFLf llZ8ViQxw2sSN/C6bOl8odMmoiiB55vuzPIykIZ+SkbPxXYEflf/CtU0UFWCB29tkf1J0fMMMi+ qr89Mk9bbQ0z3C6NDzBtaClfM+snKU0SNb1isC2HVehQD+i0FjnWdrrZO0wN07OngGQ== X-Gm-Gg: AYBFou3rSh6WbBfeiuI0X4vzWBMMhNtH+dFhUJJJS4o+XyHoAzbMuP9hrJmthby3vMQ lfMvbJHgxI0oxkzSTTDZ6rrfp5HgjqH3vX69YsKffNqHF7kUnFr0Axk1Pw+YVtvqMsNhxwhtZK4 /MsX8NbKFYgzTR1/k89kFW6KMI/o2y66hHEurucYR5CSkIO73gsDTBmMLTDYmGY3uMCi0w05AVr c/H+XE9XCsFPj63PpH18cLUxPWwL2eC0f6CEuSLOhlx/dTpGECnxpc8iqLIcrrOxjW8VGOVk6Lb h3L3OVa9xbSoK2rZPM9oUWEqFqSEpBFPoVw1O1MkOMsj0nG6ddFePG2i1rEzhZ+SIRRkFNHaJlw HYP+pd2BqBaOV/9tZpz8M6HukL2F/1i33NN4KrH6cITR9WNkKZpq4rvWl X-Received: by 2002:a05:620a:390c:b0:93f:3358:3ed7 with SMTP id af79cd13be357-940ef9710damr1727777885a.54.1793129173996; Tue, 27 Oct 2026 12:26:13 -0700 (PDT) X-Received: by 2002:a05:620a:390c:b0:93f:3358:3ed7 with SMTP id af79cd13be357-940ef9710damr1727773885a.54.1793129173493; Tue, 27 Oct 2026 12:26:13 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 22/59] hw/misc/Kconfig: Remove redundant USB_EHCI_SYSBUS from config IMX Date: Tue, 27 Oct 2026 20:23:03 +0100 Message-ID: <20261027192341.9197-23-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=GYyCDgXL c=1 sm=1 tr=0 ts=6ae0fad6 cx=c_pps a=HLyN3IcIa5EE8TELMZ618Q==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=pGLkceISAAAA:8 a=FRSEYCzRAAAA:8 a=EUspDBNiAAAA:8 a=7JY1QF16XQypgiAIEP8A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=bTQJ7kPSJx9SKPbeHEYW:22 a=H4N_Y-AU75W7NKDNhZlT:22 X-Proofpoint-ORIG-GUID: aXgXBdx8ctdxe9DvQ2xcT6rDYWLGrts8 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfXzDor5TcFqTIZ lGoJp/jLPZIxI6knVnHS0VQl2hTbc75gwySM9c7DSNXFJK/pC1T/mv0KBj63j1/DcvdGS1uJqAx ecbYuCEddfOrOsyT3UA7X7S8yYYjDfhDRmw946/OKvqAIPFpFiE2rom3ekBi+3ZR1/17FELnujB QXK1mGB4TVQfgNCvzDCouNoVGfy0w9dtV4U/hEY9gJjG63jnrYqsmceadHbh7fPqL2TjYFW8rUd pV8FLk5q86Sq5A+nA04HCcDRxvzwy2BB7H5djt2VOzKjeI/4t8cE6zEXmwXY1pz3LvKP2/B3LJu fp2zYkQDfZEJis9YdybZ5yJ0mPYaY/8Inc55WQDhaYP87JTQj59zaTn/BZHCOLoD+KcHhuZ03+L FsRuL7vkyKTgXG5pHwkzqFhpP9ltcIjHCtOB6hVHpZEJcWjTbDDJmikXjd27UlINCy+FTYDtic7 n+Fkjumn4ttcmxugT3w== X-Proofpoint-GUID: aXgXBdx8ctdxe9DvQ2xcT6rDYWLGrts8 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX5rI+HB8h43jO o1FguvVcp8lRRJojY9uPO0WzyiuJIyKW74xtjh8VvEIinukmnOaQwkw0qGQVs4ld9XkscFXGbdu 4b27vwJKYieyicUePN0E0IEHk8+7GYc= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 spamscore=0 lowpriorityscore=0 adultscore=0 bulkscore=0 malwarescore=0 impostorscore=0 phishscore=0 clxscore=1015 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129225331158500 From: Bernhard Beschow Since commit 464ce71a963b "Kconfig: Extract CONFIG_USB_CHIPIDEA from CONFIG_IMX" all relevant i.MX SoC models select USB_CHIPIDEA such that selecting USB_EHCI_SYSBUS became redundant in CONFIG_IMX. Remove it. Fixes: 464ce71a963b ("Kconfig: Extract CONFIG_USB_CHIPIDEA from CONFIG_IMX") Reviewed-by: Bin Meng Signed-off-by: Bernhard Beschow Message-ID: <20261006083445.30362-18-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/misc/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/misc/Kconfig b/hw/misc/Kconfig index 7abd22869a47..8cfc390afd33 100644 --- a/hw/misc/Kconfig +++ b/hw/misc/Kconfig @@ -93,7 +93,6 @@ config IMX bool select PTIMER select SSI - select USB_EHCI_SYSBUS =20 config FSL_IMX8MP_ANALOG bool --=20 2.55.0 From nobody Mon Nov 23 04:26:24 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129230; cv=none; d=zohomail.com; s=zohoarc; b=L4TAB56mRFO6P1NLyNfBgApGoPcigX/uMMbTNLhKMBNmqJHA4YQFccRtxkH94EeCPWbiRBLrIseQa8YKD7C7Cs1lEPsd3bp+deottbNvZSiTiLDm0oyKt1CfdA65/zQ46VNGGa0fBfHUyVgFYUQ0vpHe9MjcD/PMkFpLs0CWRVA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129230; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=q8b9InkaPernn0ZVT5FK1yUgJ9mw8DbogGbJh9+IUk0=; b=OOwUGrgLaLg4RHRFhxq1jLapySMbWf1373BE2Oiw4SvrOSjMX+fVHz8rYGAdQkmFeMOL771F7aS5WRQckXbsKZSuzTnsr3p/w9grttZEGGzeMelVWVHpeDoF/V+UD47f3t++ALaNFkEdpUP1eL0NRj//qADHLTJirpBwn9TGyKU= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 179312923044851.46550505108462; Tue, 27 Oct 2026 12:27:10 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmp5-0006oi-TW; Tue, 27 Oct 2026 15:27:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmoS-00045V-VF for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:26:25 -0400 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 1xLmoR-00029S-5C for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:26:24 -0400 Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIIA4P3486342 for ; Tue, 27 Oct 2026 19:26:22 GMT Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjjbtc2wq-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:26:22 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-93cb7f9bb86so20303585a.2 for ; Tue, 27 Oct 2026 12:26:22 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e3ebd48e0sm25027512f8f.38.2026.10.27.12.26.19 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:26:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= q8b9InkaPernn0ZVT5FK1yUgJ9mw8DbogGbJh9+IUk0=; b=WD0NvjB+wEmzXnX5 RWcYC5QysRUEFCy0367vRolOFwC7NgKHGETUWGBylataahLbSHIlgWb0Jy3sjlyg m8eq9fjzHo9d+2kYb5tkUBimFxYphwK1BNH43k0G97W08lX3JhGBpzXnDP+0geLQ bFVjiYoz6I4xenjVwzYsYURCCO+Kcds/5kNgNGGvZK4xquRKE/mbtqCU/WLyMlJz nXsfqVT9EsOCY7M4xuvVh2168g0LwiP6frHCVrzOYkj+mw66EEdstMdgZnFwahHG UX4DN6w5lW11huM7/sFU5XLevUF7BWE34CfqrTuxyPCf3JPEVg5mpymxSsswIuyS g237pg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129182; x=1793733982; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=q8b9InkaPernn0ZVT5FK1yUgJ9mw8DbogGbJh9+IUk0=; b=jP+dOpmQTrm9V8cchi1D7DjNiz1tJcwiUsTUc3hPnXahyE5R744cbk2/RRHgq/2jwL C4h3Bts7FFfcrjHsTG6WYxSkZvcmsYVbbQyeAaMVJzceL090jh5/gLlfU9SiL1gM8WTm cKau5C4sV4wKhJ+NWk5pdpaNwAf7L10DQXL/5CZt6OlhA6T+cD1IEKP1+ozhPVQiJ4rf HexIdjol6tnco9VgU/uPvFjN4cS8oyrNlIcbeM+q8KBR9XTGZQgk+b91UDJR7f7kXzsH AlOkqR3Y17CFzVZnO85pMm6E822Q2ieA9xp7PbVcknWgsh+CpK1LvbtYd+P7f0yQwp1Z OiUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129182; x=1793733982; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=q8b9InkaPernn0ZVT5FK1yUgJ9mw8DbogGbJh9+IUk0=; b=gZnmi8xEDKQI+d+zn3Qpy9mz5OcjKfPtBvEbeRLvrPVyHNCtOIy6ou7rSvCfrMo7qN m8QrAjAeewLZSNVQYw2e08ohM9e/e4I8NBUiOc0OtTSjQp23ZdpB1wW6BtbbptHGloo0 rpxuMaCJG96Cq2n7ndo8uH1pmVvPbsSFfriH3bpic4M5KkJk7FdikjCNoVDMgB4wEeZM RBnbBeXEQc9WEUdpdw300f3NiyFZrWPC8ThGY+ni/mbq9qAkJdlQ0NcthmPc01hUI1Ju Q9CIi9cBgS6WM82ilhJBxcW6KluSj82EdgZw2U3qLrHkih+LA2+XmeEPU8LPN2KOc84j Olfw== X-Gm-Message-State: AFq9FYLyjDBpLw4s6K2hc1pp3kXHZhe2PaiaIGBxZW5QiV1ZdICM6Efg QMgsv+l2oyLGooiLZCViuclxNRKwYEoJ3ljZ0I/gLHQgdh/PYTb+nDJAVDSEaCtRrv3ud4ve57h 3ZFGrHxC2Koaq2OF7yrr8L02/xTa8+20i/IUQJfj9L5gCqq5xEnnvw0TSeepsI/6JIA== X-Gm-Gg: AYBFou1rz96wsrhJohLYpCQRyzImJidtSGfzUyrYxlmLekMP/MAawztMEguyBunWbu5 PXRlP2l8KJ9RmBh7Un0/T1vBzIBAOzRnTJGwO3lDJ9iwWVGT+vmxkSZY/oOe4wtMZLLKFmAYgKJ 5Uj5FDCQCLUzZk5Ny18mRgGMlC3uh/DjH0fkjG+87HBs4l9OTNRE/9xAmr78Z/X4FI6AoHBu6WI CUIGruS7bk/JXX5bLDcNSxihzV/GZgk9WR5SmoxKts2LwsW1ciZ/lHs4C47owJpH8oBJ2RkYyUH 7RHYLcdWobMKK2UAwhrtnHPugUWrsoEPrfkHHe+WLXE66tCYF09f6tI0ilpoCskCd0jJEpQxZXf xvH78TtxsMhz/VjNxxw/syJHSL1RuGdOnrCjotFsGvCmNnGbbDz6drlu+ X-Received: by 2002:a05:620a:c4d:b0:93e:c12c:f128 with SMTP id af79cd13be357-940ef995a75mr1788425585a.67.1793129181531; Tue, 27 Oct 2026 12:26:21 -0700 (PDT) X-Received: by 2002:a05:620a:c4d:b0:93e:c12c:f128 with SMTP id af79cd13be357-940ef995a75mr1788421585a.67.1793129180861; Tue, 27 Oct 2026 12:26:20 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 23/59] Kconfig: Extract config IMX_AVIC from config IMX Date: Tue, 27 Oct 2026 20:23:04 +0100 Message-ID: <20261027192341.9197-24-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfXylTW76rGPh0Q mrdzdQfs3MiyZV4cOZfUjdxDHdZCwbw9ELYodebCm914owdSnv1OB2kl00SmZ72qvPT9UB329Tk mveH/vdWIo0WRVOGT00+h8bv1cp3oZ8= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX2ylsfqbVrDnV lYOII003dOevixHLdqqYFd5rOAcjFz2dpYNia/cL/jBlkkyzzG67FfJwEXksmtwUk9LCXb3YhRQ GGNS5fSX5BsyuwR1KFfyX5N5+5wmeHr8nh1HT4QqCscqZ5mQfkO7NUAISlcYrbEHkrMgre/kCj4 Kd03sqaPm7foGTSaDIW90tNYJq7623ABLmlzHTlmVZiiPx/4nj6hs7nC3R+7sxXSAf5PCHUIy7v X6uWNIlltc3VJ2tII8zMi31lZ8p4WdN24AaUwDwB8Ih+AQ9E7YleoZB+bT4dU3h56EpyUnVRxZR KPjeGf7pJ2UC2r4hjsxHFBTDtkFgqk3Da1Gdn78gqrbC7r/qN0jayluyMP4N0E6n2uLiJzSHnOB Szbimu/CKD2pH/yvajntMSsLZyZivT8lxveyHye2Xz5p38fePdseEwlIARnrbyxCIlVnBV8j9k8 A5dEVwJVF33wvErE/4A== X-Proofpoint-ORIG-GUID: 8gFSDTBPOihUyqdxfxoZ4RE41KaQEhEW X-Proofpoint-GUID: 8gFSDTBPOihUyqdxfxoZ4RE41KaQEhEW X-Authority-Analysis: v=2.4 cv=XaIcX455 c=1 sm=1 tr=0 ts=6ae0fade cx=c_pps a=qKBjSQ1v91RyAK45QCPf5w==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=FRSEYCzRAAAA:8 a=4vP5oIZo8vggi2BNiS0A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=NFOGd7dJGGMPyQGDc5-O:22 a=H4N_Y-AU75W7NKDNhZlT:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 phishscore=0 spamscore=0 bulkscore=0 priorityscore=1501 clxscore=1015 lowpriorityscore=0 suspectscore=0 impostorscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129231329158500 From: Bernhard Beschow Over time, QEMU has grown a number of i.MX boards and the monolithic config IMX drags in unneeded dependencies into each SoC model. Extract config IMX_AVIC to eventually eliminate config IMX. Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Bin Meng Signed-off-by: Bernhard Beschow Message-ID: <20261006083445.30362-19-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/arm/Kconfig | 2 ++ hw/intc/Kconfig | 3 +++ hw/intc/meson.build | 3 ++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig index 6e8755783e67..2b7547cf3de1 100644 --- a/hw/arm/Kconfig +++ b/hw/arm/Kconfig @@ -480,6 +480,7 @@ config FSL_IMX25 depends on TCG && ARM imply I2C_DEVICES select IMX + select IMX_AVIC select IMX_FEC select IMX_I2C select USB_CHIPIDEA @@ -493,6 +494,7 @@ config FSL_IMX31 imply I2C_DEVICES select SERIAL_MM select IMX + select IMX_AVIC select IMX_I2C select WDT_IMX2 select LAN9118 diff --git a/hw/intc/Kconfig b/hw/intc/Kconfig index 05e697967d03..97355f9df78f 100644 --- a/hw/intc/Kconfig +++ b/hw/intc/Kconfig @@ -5,6 +5,9 @@ config I8259 bool select ISA_BUS =20 +config IMX_AVIC + bool + config PL190 bool =20 diff --git a/hw/intc/meson.build b/hw/intc/meson.build index 0620b0792a16..74d84b8ddcd7 100644 --- a/hw/intc/meson.build +++ b/hw/intc/meson.build @@ -23,7 +23,8 @@ system_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exy= nos4210_gic.c', 'exynos system_ss.add(when: 'CONFIG_GOLDFISH_PIC', if_true: files('goldfish_pic.c'= )) system_ss.add(when: 'CONFIG_HEATHROW_PIC', if_true: files('heathrow_pic.c'= )) system_ss.add(when: 'CONFIG_I8259', if_true: files('i8259_common.c', 'i825= 9.c')) -system_ss.add(when: 'CONFIG_IMX', if_true: files('imx_avic.c', 'imx_gpcv2.= c')) +system_ss.add(when: 'CONFIG_IMX_AVIC', if_true: files('imx_avic.c')) +system_ss.add(when: 'CONFIG_IMX', if_true: files('imx_gpcv2.c')) system_ss.add(when: 'CONFIG_IOAPIC', if_true: files('ioapic_common.c'), if= _false: files('ioapic-stub.c')) system_ss.add(when: 'CONFIG_OMAP', if_true: files('omap_intc.c')) system_ss.add(when: 'CONFIG_OPENPIC', if_true: files('openpic.c')) --=20 2.55.0 From nobody Mon Nov 23 04:26:24 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129227; cv=none; d=zohomail.com; s=zohoarc; b=iitcchqqUFCjxSga/kO141LySdbSlnxZFj+DmC2DFaAb+xL4kWXg0Uh0T8GD/Ohg5syFXClvabUO5SFCd1rjlygzBJ+QLrLyjahcimvLYg2OPkUUlIWH7XoiGSbiwYwQ3IKgJpzg4A18+xZGPRRKf6KKnqJ1tZL3Cr4HhcXCovA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129227; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=4cEwCCl5DWrg301CzCKNGn18H8JUDg/M9i155OIZYCM=; b=HUxqNgnkBy8qHm8e01j8OKdfST+sIGOYiqboHIOjs07z1P9BjhCdR9E098WvBIi9pP79MvLp/PC9yHvpZKRWEy8cxajKsqz1qlpCsH85p+TcaimRNGPeODFf7Vk21+W+8PhyBTfGI3Gyl+47PpRu/wuSjGFSz3axfEy5/P+xhn4= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129227376606.8736675749683; Tue, 27 Oct 2026 12:27:07 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmor-00059L-R5; Tue, 27 Oct 2026 15:26:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmoa-0004Mh-OI for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:26:33 -0400 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 1xLmoZ-0002AK-2h for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:26:32 -0400 Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHpiA2960453 for ; Tue, 27 Oct 2026 19:26:29 GMT Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjy670v82-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:26:28 +0000 (GMT) Received: by mail-qv1-f72.google.com with SMTP id 6a1803df08f44-91c7a26f892so5515426d6.0 for ; Tue, 27 Oct 2026 12:26:28 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a94c02115dsm3589655e9.1.2026.10.27.12.26.26 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:26:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 4cEwCCl5DWrg301CzCKNGn18H8JUDg/M9i155OIZYCM=; b=Q5BbOJSk5GG7qAsL HS97mi+48PoJ0Mpr86Inu0DJqHdkqkqXPWQEO/6B+NlDOdHnaTQCQ1eGnoEDugeq vsnVMzwP/1qCpAq2xVphCKHPD1mOgwYRfqqhTM7iHu2UD1QA6Rjzg28gJGpaa+wV RzoX2ZnHlgMFH1zpELtKD42HLrrJYTz7VytGLchuNllRfdM8aFUHYHS5SMWA0CYB X8sSLdaBI/6NDyM8IdHZrzfRRZsd+88NvLuwoPwyKcmAJlvD7Gb04oen5l1oBhVC ttJPTYDniTEf9bUCHmP9sym/HWV5fLmCVpgt9fvA9YW4N+AW9MqHDrNnI8TdwzXN Jg4QrQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129188; x=1793733988; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=4cEwCCl5DWrg301CzCKNGn18H8JUDg/M9i155OIZYCM=; b=K67KehSNtaYRFCbGETT0FEU8eTHFXKjhHgMcOSZopRfjmGVXgQpF82gPq7eAEzndQz 0KMi5XRZs9ij+/jXm456bw3rZMyNtT5dzOeUkayCXAGVdX1A7PoU3CsPetmp5yRoYOIZ BYdv85T5echQfxwPeNl+f3Le4E9GIMoVHbvDdYCH1LMgDHHPsZNNHitBuFUVJNRDKfT2 SaWo2+zQvRl3O4FYCAYXxhr/wYPDFfgGDMS3ap9T3Z/20v/M7FEsj7a62QMe1jV1EsjG Ih/6qA0i4g0+vETpU+cFFpevkNlTpPlUoSN/FCuNCROVVVqx4pWIhRSa09ZDWr6sNC3S qlhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129188; x=1793733988; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=4cEwCCl5DWrg301CzCKNGn18H8JUDg/M9i155OIZYCM=; b=HVuIZu7IcdAGOXm434DAo0p7j27kTvInt4EKgqTZjjpjzTNhqo/x09LabmTYFr0vmz Xc06nmUpCEU4RdblzT2DDdyAyHfx+2EHDunchuBWUiB3SY10YImxQUMl89VyfGIxnOu2 P1YPP1il/0iriGa2hrqsKB0AX97B5zIKv9sZ6JP8nUMmk2KKvACHkgBDUeqtkyFC58FE A7O3/2Ia89Fod7X31Cmu1jaRM+7YNHzsg88aHOUQYNHGLb/P7XrZ1l5fIvvMcLtZ8BZd xRKVrLeidyQzlo6dAGXGPv2Y1NahezXO+F3CxssyXSzRx7SyTUhNrTtPd337Su7qHBAt rnaQ== X-Gm-Message-State: AFq9FYLXktqsbW2P2v/pXYn3bezPceFdCjajxHUvuWX+Wf5qGhkUuolP R2Pxo9hXDvOprv/HG4RjVgeBFYIOgkSq2rJwnk6mLD+Os5GIJm+ktfZpfd0GGdoFMxFQpMZwZKD iaxFfGurfyQ/0hWegS/bz/W+1LCq9YfquQCJdZkmNx9/HftJApfcKjSoJLHWmkKKZyA== X-Gm-Gg: AYBFou2GPDnD9RYQ270ZW7Eem4gV0dBmgnoYUCzE0PaxfIb09Gllbs48cNu6Pn/r7Tt +GUqzB3OCc5LVcPCjZ5behqozhdnj08DEO4yCnULykIV10hfgKH3b/sYGJA1D9/rGsrLEMY/tW+ AZLz+9rEPxz+EeEidAhk5ZSLcSReqCXJsweCqAdws30qSmUvg8K74+M7mKixFCfvt2W4ctWpcMF eA9SZW/BXhLxhYXpKLly05F7qggpSaMttwnX58gdBbtwD1NtmIb51IpDO3TnTs/jLsuQna0/aQj yudSVppH08wiI8zhXNUKTNQ0VoPcyu9betAbIQHsJQ7LcmLUiWxPhXyunGMm7ubXt+Szq/nToKk 4jwGyL8J4K7in8eEqujlAOLx4cqeEPHOf9+nzoeMq6zRErP9GsQ46pmDi X-Received: by 2002:a05:620a:c50:b0:93e:746e:235c with SMTP id af79cd13be357-940ef915dabmr1552105885a.15.1793129188154; Tue, 27 Oct 2026 12:26:28 -0700 (PDT) X-Received: by 2002:a05:620a:c50:b0:93e:746e:235c with SMTP id af79cd13be357-940ef915dabmr1552103385a.15.1793129187605; Tue, 27 Oct 2026 12:26:27 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 24/59] Kconfig: Extract config IMX_GPCV2 from config IMX Date: Tue, 27 Oct 2026 20:23:05 +0100 Message-ID: <20261027192341.9197-25-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: Yze28ZRjIC4xpQU_Rb_LQaLmgv0gQHjO X-Authority-Analysis: v=2.4 cv=QvfLTlyd c=1 sm=1 tr=0 ts=6ae0fae4 cx=c_pps a=7E5Bxpl4vBhpaufnMqZlrw==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=FRSEYCzRAAAA:8 a=mp_0PXW2FjX-tl9Z7UgA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=pJ04lnu7RYOZP9TFuWaZ:22 a=H4N_Y-AU75W7NKDNhZlT:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX+ZN9VFH3Tws7 Xudq1luU4pDhgouLHIWuLfJ/I0/vCIM5Mmoeh6CTVoNeEo+u/SXAQ7+NZp9lms3Nwxe/faPyh1d S3JuWNZbUonT3wmx2a9veEiwNmWXrM0= X-Proofpoint-GUID: Yze28ZRjIC4xpQU_Rb_LQaLmgv0gQHjO X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfXxDh402CixVxN Nj4YZodkdPCXJNZ7d5sZJbxMa+BJ6Z94RnNihElUp3N5A0OgW/4hovwRgDALTfCh7nwmtBaBMvg 28l5maH2Bwt9DFs3LfOsiMjgwfbTUqGzfuOTyLp/QuVjZwlOdAz7Ui4F0huQlg/Mo9Cvh2F7pja yCV5wwuL317SDSdeJC/xFKjb2JbyGDZUv/5OeZ5tSBzjSdjvPNvT6aHpYW5LBNQcZup46ZojQwn WoGbvVegC5XxfMruKhALHpsQ+Kx0ASXz6Kls9N9IMl7sAUgmQZMZpuOXkwvKnY/bnw22KQI+0NL HBm5wK00EyYd6Zwfd0kk97Ska8lc0NCDitFC7DujFmzq7DImb6jsqOVURV9wc+HPvzeH98hl0IP tCsDkM83zVBcKrjEvoBimstoJ7HtmUE+985ZK0l7M97KO+ytweSsqWFO9EkPzDXQRAMS18cMwfv 9cU0BAArjIXOF8VDfJQ== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 lowpriorityscore=0 malwarescore=0 bulkscore=0 spamscore=0 impostorscore=0 clxscore=1015 adultscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129229513154100 From: Bernhard Beschow Over time, QEMU has grown a number of i.MX boards and the monolithic config IMX drags in unneeded dependencies into each SoC model. Extract config IMX_GPCV2 to eventually eliminate config IMX. Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Bin Meng Signed-off-by: Bernhard Beschow Message-ID: <20261006083445.30362-20-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/arm/Kconfig | 2 ++ hw/intc/Kconfig | 3 +++ hw/intc/meson.build | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig index 2b7547cf3de1..45a67b1ae6c2 100644 --- a/hw/arm/Kconfig +++ b/hw/arm/Kconfig @@ -581,6 +581,7 @@ config FSL_IMX7 select PCI select IMX select IMX_FEC + select IMX_GPCV2 select IMX_I2C select WDT_IMX2 select PCI_EXPRESS_DESIGNWARE @@ -662,6 +663,7 @@ config FSL_IMX6UL select IMX select IMX6UL_LCDIF select IMX_FEC + select IMX_GPCV2 select IMX_I2C select IMX_USBPHY select WDT_IMX2 diff --git a/hw/intc/Kconfig b/hw/intc/Kconfig index 97355f9df78f..98dba7efb865 100644 --- a/hw/intc/Kconfig +++ b/hw/intc/Kconfig @@ -8,6 +8,9 @@ config I8259 config IMX_AVIC bool =20 +config IMX_GPCV2 + bool + config PL190 bool =20 diff --git a/hw/intc/meson.build b/hw/intc/meson.build index 74d84b8ddcd7..2ac575095f08 100644 --- a/hw/intc/meson.build +++ b/hw/intc/meson.build @@ -24,7 +24,7 @@ system_ss.add(when: 'CONFIG_GOLDFISH_PIC', if_true: files= ('goldfish_pic.c')) system_ss.add(when: 'CONFIG_HEATHROW_PIC', if_true: files('heathrow_pic.c'= )) system_ss.add(when: 'CONFIG_I8259', if_true: files('i8259_common.c', 'i825= 9.c')) system_ss.add(when: 'CONFIG_IMX_AVIC', if_true: files('imx_avic.c')) -system_ss.add(when: 'CONFIG_IMX', if_true: files('imx_gpcv2.c')) +system_ss.add(when: 'CONFIG_IMX_GPCV2', if_true: files('imx_gpcv2.c')) system_ss.add(when: 'CONFIG_IOAPIC', if_true: files('ioapic_common.c'), if= _false: files('ioapic-stub.c')) system_ss.add(when: 'CONFIG_OMAP', if_true: files('omap_intc.c')) system_ss.add(when: 'CONFIG_OPENPIC', if_true: files('openpic.c')) --=20 2.55.0 From nobody Mon Nov 23 04:26:24 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129236; cv=none; d=zohomail.com; s=zohoarc; b=E1M4lwe2g/t0HBZ7h/QlLTgAbSgXgxphYCFJ6A77H5eF1EKq9P6svk7kD8nlC1+JAE+1xj29FlgqHLs+1WaNBh+eZYewwNaZKePv6HgiY17i/bly9BAFVwJXqDTjW8qPwxYzR2X40/ImeHOeOhQUXu1+ce2GAfTQGl871vcHqqg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129236; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=LO5GiRPsc08nfkQFqM7ddr3N930Oo/SHFTSn6nDABNw=; b=HyWVtAzWhm/vFM1qCvcgmRZOmjYXEDlnA3x2Lh7MiCOFghk7vSBZrGeZeCEihP7gsRwqCH+5+pacYxww6fhFPSAkvWFgPgQLJX9y7nzw/3A2NMHVI128yVfzigZZ51V8iGZ++kJLi8lryBoyVuwbdc3k0JMePdzZIm/J70sif0U= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129236004384.09966686398764; Tue, 27 Oct 2026 12:27:16 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmp5-0006hq-1K; Tue, 27 Oct 2026 15:27:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmog-0004S4-JB for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:26:43 -0400 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 1xLmoe-0002B3-Mj for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:26:38 -0400 Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHOKQ2945736 for ; Tue, 27 Oct 2026 19:26:35 GMT Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjrq6apfr-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:26:35 +0000 (GMT) Received: by mail-qt1-f198.google.com with SMTP id d75a77b69052e-5338974c0ceso5664991cf.0 for ; Tue, 27 Oct 2026 12:26:35 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e3ebc3932sm25836759f8f.18.2026.10.27.12.26.33 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:26:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= LO5GiRPsc08nfkQFqM7ddr3N930Oo/SHFTSn6nDABNw=; b=OAUq68/2+TV9dDU2 LN5vWgbUxX566lfwhJ8crT62GUDt3e0N4o8GXkqbd3D+KzS08/Z2x3vrX1tdmzm1 J1tO1lDrEmS7kUGfpTUvYV7oe99ffaevhCAJgWI7n/lfLBy0zwuCWOBnlxgmMs/G TDOGlcbllD+nR8gO84npqcFZ2pz5v2rjT+3tcZjFnLt3klC4uV/pNBZkoLk0+hFp 4ho7ZYZZU11ZofayO8VOAmLw+8kS9+xoICL7QvRJiPfeNCYZ8R3oXLK/TyPLxV7y dnnYOxtte01UgwVJqZGZYpVQwjJKtMpmp37tgSBzuXAc/fSmyDBSAe2U8SSKyd4P cMHbYA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129195; x=1793733995; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=LO5GiRPsc08nfkQFqM7ddr3N930Oo/SHFTSn6nDABNw=; b=UsjlTjQ9hh7PR672msDieUEqW/iuAcplTgGWpctVBr54mA8AbIX/4NE1yTH0QAgOBI jKol2S+w6O6Quk9x4jntuFXf/+8jiaVHl/78beeVkeysX5MNmzqpU4THfwjcbEw+dq6r NK61zwjEdaRC5DfxzQR2iLpfnTKhiskUhaa3Kh/qa0lJBPxfEGZFnMlafIaZEls+LsCN 0cNL1FVAPPOczqj/Y6y6aaPfGVgdy/IYCQDcKMBA8IdgTxiK48qgxXg4WfNrBcQJPW0X OoWkZk18mixnCDDGbYOQHIDZ37hRFftk/5b2jzEGi5pMWaifXRPFdFCKCCNkcdquQI7k WX6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129195; x=1793733995; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=LO5GiRPsc08nfkQFqM7ddr3N930Oo/SHFTSn6nDABNw=; b=j+L29hbkoht4HBGgNiMD14EdRAyZ/z/x93dDXd3+PkiNAaCJRCBlUDtUHBwwghEjNW ZFgOsUMYY3ddV5wJp8vXzFtS22kjxq5y4KMJXGDQMIFLNbtoB/Fs5kbRmevbqdeMvypC ipLLT+2+0NpeB0qaB6GmMM7GCOSe6OExFnvyeNeee6FbixI4k5IVFhx3nVUhoaXgixsG IFhDeXvjGLg+6XtaDxeLZqqWZs62pZLjqGGShkosWLuEwA5L290LLPeBoru4mRS0astU 0O4KiKiQ34wrBOGA53DH7ty8K4Mw8Qe7KthTzpefGLEQxAqm/y0DmArLersx4KhdWh2y 294Q== X-Gm-Message-State: AFq9FYJKA+QSE98TjnWNvMME9O4At9pWrOUwH0G6UEpAy8OEOqLyKdlm G9Rpk6T81eiAHl8R5gdrmemlsb70GtewzuvFVcMGBC492HI3sz4F0BB4Ovun5FUmD/gYI14VbIW a0e3c1Quhm2txSO1gCyQjr2aJiQkwi4VsaEZTkP3jhlIjMssE4Px2RXz8GW/igEnx7g== X-Gm-Gg: AYBFou1wNLzX50kGF9MQNXuRUPYNCW9Je8akPaR2UZ82GZJ5VtPf9HYlqtPHZwtoA7f 3xfmXVoj32AuK0bwV8ozTyKt36DnNC01HR+X/18H9HKzgJGbj6NV64uJl3LUKm4lsOvSBteTvYF D2j19bdWRrYm/wLxa6/+aR4m5p9BhTt2dp6X9cZZWLzDkpF5GkTIRjfwff2Tu+KqU3x1WhSRt0y MKyi/NNwDvxexWivwdXzuCjmEQRQWJ+FfRDOAiZN0fK7k3V2oxoEfMxsQkZbB42r9qdco7XB3RJ uc8cUxl0o0sT00bxUypeDWUnHrQL0zylYdWrdBNFrmBpX5rXGq07xaJjfyiEq1GoiOypsbnxtzX oe5Q+oFST5jUm5ya7B3c7HPFOse2DBIp1+zwEwnJPfAhdOpwAgMf5d6vI X-Received: by 2002:a05:620a:390c:b0:93f:2ae1:ea06 with SMTP id af79cd13be357-940ef8db9f4mr1840243985a.44.1793129194874; Tue, 27 Oct 2026 12:26:34 -0700 (PDT) X-Received: by 2002:a05:620a:390c:b0:93f:2ae1:ea06 with SMTP id af79cd13be357-940ef8db9f4mr1840241185a.44.1793129194408; Tue, 27 Oct 2026 12:26:34 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 25/59] Kconfig: Extract config IMX_RNG from config IMX Date: Tue, 27 Oct 2026 20:23:06 +0100 Message-ID: <20261027192341.9197-26-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=RYwFmFtv c=1 sm=1 tr=0 ts=6ae0faeb cx=c_pps a=mPf7EqFMSY9/WdsSgAYMbA==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=FRSEYCzRAAAA:8 a=6cOzi8cwvGXr9bhZ1ZgA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=dawVfQjAaf238kedN5IG:22 a=H4N_Y-AU75W7NKDNhZlT:22 X-Proofpoint-GUID: fUnb0jmrlPIjIRUXa84Y-vnkIu7YpKgP X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX3MHp+KxD6yuE wsBv4raIyaXtiSwTHHJah+waPXTggjD86rG1kodEOB01POaBGYkmCT69SPgFW/qtZ4WLNg2QuT4 dkHrNtCQ2lxWn1GQtL+WYNKDP6FnKLU= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX6VMhqp89/O+y 07/t3JakRE9SBn2yBRkzECLi1BS0/t+mcbUxV+nCyTLv6Uda3c4kpac6LwSVpuebHTwDsDUP3H1 c2VMUP7myzUKBBU53cnaClcEwqmrI9Zoh8dHjb0001S0Y3PG9eC6skp/uP9eAVPQagGm6MCZ662 vC78M8ojME+4jmm1N9RX4UjzfLhM8aXoqdOOPoquFn1dVTGiHbL8qkErAw9tAn32Ob0/rYi8lYl PzGj1/D9eU9xuUjsYGyQNV2EVBQR1qkhIsYxuNgfDm0a9yZqzWmkVemjHznCceGDAztiAS+srvd 6PcWZRJ19jhh4QnpmKuM36ruywyY7j38j5K6KpViH0TAB7vCQuXqx/l1D3EENsJhQihUN3YQcF7 n5q+Yb7UtN7A0KDUYEVzkDyRQZo2UAAiMyLszGV6CjU2R45wGDUvKBQ1pWRsoHv9Sxyy882O6+3 Kuk5OKsOcoFh/lqExkA== X-Proofpoint-ORIG-GUID: fUnb0jmrlPIjIRUXa84Y-vnkIu7YpKgP X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 impostorscore=0 spamscore=0 phishscore=0 bulkscore=0 adultscore=0 priorityscore=1501 lowpriorityscore=0 malwarescore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129237451158500 From: Bernhard Beschow Over time, QEMU has grown a number of i.MX boards and the monolithic config IMX drags in unneeded dependencies into each SoC model. Extract config IMX_RNG to eventually eliminate config IMX. Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Bin Meng Signed-off-by: Bernhard Beschow Message-ID: <20261006083445.30362-21-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/arm/Kconfig | 1 + hw/misc/Kconfig | 3 +++ hw/misc/meson.build | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig index 45a67b1ae6c2..53f723661cf8 100644 --- a/hw/arm/Kconfig +++ b/hw/arm/Kconfig @@ -483,6 +483,7 @@ config FSL_IMX25 select IMX_AVIC select IMX_FEC select IMX_I2C + select IMX_RNG select USB_CHIPIDEA select WDT_IMX2 select SDHCI diff --git a/hw/misc/Kconfig b/hw/misc/Kconfig index 8cfc390afd33..d9991494b7fa 100644 --- a/hw/misc/Kconfig +++ b/hw/misc/Kconfig @@ -94,6 +94,9 @@ config IMX select PTIMER select SSI =20 +config IMX_RNG + bool + config FSL_IMX8MP_ANALOG bool =20 diff --git a/hw/misc/meson.build b/hw/misc/meson.build index 90f3f89de701..cebc5f0d6ef4 100644 --- a/hw/misc/meson.build +++ b/hw/misc/meson.build @@ -64,6 +64,7 @@ system_ss.add(when: 'CONFIG_ECCMEMCTL', if_true: files('e= ccmemctl.c')) system_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4210_pmu.c', '= exynos4210_clk.c', 'exynos4210_rng.c')) system_ss.add(when: 'CONFIG_FSL_IMX8MP_ANALOG', if_true: files('imx8mp_ana= log.c')) system_ss.add(when: 'CONFIG_FSL_IMX8MP_CCM', if_true: files('imx8mp_ccm.c'= )) +system_ss.add(when: 'CONFIG_IMX_RNG', if_true: files('imx_rngc.c')) system_ss.add(when: 'CONFIG_IMX', if_true: files( 'imx25_ccm.c', 'imx31_ccm.c', @@ -75,7 +76,6 @@ system_ss.add(when: 'CONFIG_IMX', if_true: files( 'imx7_gpr.c', 'imx7_snvs.c', 'imx_ccm.c', - 'imx_rngc.c', )) system_ss.add(when: 'CONFIG_MAX78000_AES', if_true: files('max78000_aes.c'= )) system_ss.add(when: 'CONFIG_MAX78000_GCR', if_true: files('max78000_gcr.c'= )) --=20 2.55.0 From nobody Mon Nov 23 04:26:24 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129280; cv=none; d=zohomail.com; s=zohoarc; b=TBfHJH7ItaKA0ogHSvXdGD5rEOORYHv9wDD6TbiW5Gc65u57gcp01h+SfDpUG9F/A5vfv0ef61tN+Q253x/QTLv4aCG8TxRV2Ox+P1osPHELMrNzcW96mMqwhYJ+AOu3jOHVrRmdRhGtOZ9NFO9m8IOyd3Q7vFUbWoY5qqNDx7E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129280; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=gn1qZ8VWVeVW8PyoeeLKU+L9P6KAemHz+IFCpmOFx4w=; b=jZwjWmFL+l7kTHldkMgMre6ZPLiNen+nzbNiEOhtor2lF9FIJ9GDfgw4Jy6K7MJPj8jtm16vDQdpc5ip0xHqq+DnkVREYiomeFQUL9Rdbl8pmRKlFqw8Uu6xyHMaCgY8jAaYIgAjpNc9DUv+5lckSbELYmJTGxZMlEmGKCP/NUs= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129280192348.8043700703837; Tue, 27 Oct 2026 12:28:00 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmp7-00072v-SM; Tue, 27 Oct 2026 15:27:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmoo-0004XR-5r for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:26:46 -0400 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 1xLmol-0002Bj-8C for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:26:45 -0400 Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHOxV2945716 for ; Tue, 27 Oct 2026 19:26:42 GMT Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjrq6apg0-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:26:42 +0000 (GMT) Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-93f33438950so27427185a.1 for ; Tue, 27 Oct 2026 12:26:42 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e3eb8f36asm24749128f8f.1.2026.10.27.12.26.40 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:26:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= gn1qZ8VWVeVW8PyoeeLKU+L9P6KAemHz+IFCpmOFx4w=; b=QhtVu7jgQHqoP1o5 2PvrWr3cnlOC2vZQ8q6iYJEoyn/ivwcw94p9STUc0pnmv4uhx+Xd1EN4ACuMrM9u vC9QF6OKW7bnF86xhV9s/i2efV208lj805AJ+50bqP/fWD+xTlSfLRdkGE0CCeK6 shSGgQ9ufu480JZsUWLnfqCsOmTka/fl1TqdeCCbGzQaJaJka+eYZ9V5fBQL/rKm 8aMcpHoyGV8q98AiSnhINtgA6e6NLvLzNc/iWHUm14fr64+GVRAldTfYhhrxM5Yp mJBigMkzzVayP6nnsMZFzuR5XalllfZkrI9N25kT9Zqeq4y/CELMAN1iq9OZ+5XT AWcY5g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129202; x=1793734002; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=gn1qZ8VWVeVW8PyoeeLKU+L9P6KAemHz+IFCpmOFx4w=; b=FoyaZ89dtyHI9wYLW0+XU9WiLe5GhI6tTji7CKc+5DMo06rQneeE4OnmHO8JquvjyC uaDDDdGUI/mf02Edu/iizoRE3t14y0l7pAKxHG4/oOGVhiSNyHlNaShDd/2nFrZWTcMN Y8StU/CbUYq3Xe7FThEBZoyXcCXmTXHOUgoy6XY2S+SEbkOZePJNv3UlClpJYWPCTcPN dybhT8nzpO5Q8+I+p0Tn2Q+GHUjxZR6MU2tYtiGz/H08Iok7Gx9a4eYFzTcb+oC0aKNn ztq0++CzOhsqem5AsXf01l8xjo8qctc7dkeO+bmkLomvnDT7npsQ5w/4KQItKF4fSN0v insQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129202; x=1793734002; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=gn1qZ8VWVeVW8PyoeeLKU+L9P6KAemHz+IFCpmOFx4w=; b=x5wxlSj3bTPUG4Ng5VxEcTCP9sDQ709IhpcIvPmNICPmHF8QbYKRDXE9o5O3SZAR6y BsOpmepFNlmKVNMlu2yjOWEzu6Sc66B4MrP4NZ8jIkT9M8o3JTjuV09ugBGazWV/4ulW ATTgPPTej3RFHDtmuYGbLqyXlIL6Rgz2HwGsp13abUNRRkCJyHJKzMb7RGUcUitoa39Z 0UOidWN/fxO73j3zk3YGmTSn/bfJwNz0jnpKc5DM7zVpKzDe+2rY03Mv/jfusb4LItxG 7yg5TKRH3TE6NyqsZpulKi2B9UuT+Mwi6mW1q67LWNlw/eQx9Mz3WQRK3NItTXFNaBrs Xw5g== X-Gm-Message-State: AFq9FYKKAGOyNWiq98gEG4ff22KQvsCp0m9GEL65B5HGhggzKDg+g0vU Xa39NdvystztnuLYZLJAaCTTyMOtoTTgzZnKkTbAxtI6Bv10Y9v67iFpZktCgP9Hqxb80Cwcx+Y 62hPAW9ekq6BRz84ldEwoWKueg1cZ/2vcqlgGbbM6RZs+EUhK0euUrzGzPj9gf+xsOg== X-Gm-Gg: AYBFou1S6J4JkgupK2zhW86iymOsskYW1eoKlU8azqyt63LY5AUOD8ygUZeZJairekv ePi+3ImeSi4btapL0PRtLyXj5ikHWmJwlP0J9L4JPTW8mV4zfGAE75awJSaZHiz6hrqSQcMvEVl FWorljyyp+AMwIeGeQ64amObmh8KBBN4ST+mcu/OASlojqxPB6h9Vao+ZHgUugG83GT0CaCh7BL IlM0/6wuJ7w3ZyXuCS1yycq1IzFbhut7KEwogqKuRk4z1WR+1iRxlthk5e6db5Xdy+9yVje9swQ yVn+RgKC/TIEs28OTQFMX8vEZDckFYyyYHsF8QFaW9rEnQdl0YwhJvEmaPA+ySNa828FgzBoLgB bvDHT5UZ/tmi6ACR70FBHon97vDv01e4f2DKCiliSED9FFuNh7/qFB8yJ X-Received: by 2002:a05:620a:4441:b0:93e:e1fd:b87f with SMTP id af79cd13be357-940ef9c9453mr1581028285a.83.1793129201664; Tue, 27 Oct 2026 12:26:41 -0700 (PDT) X-Received: by 2002:a05:620a:4441:b0:93e:e1fd:b87f with SMTP id af79cd13be357-940ef9c9453mr1581024685a.83.1793129201199; Tue, 27 Oct 2026 12:26:41 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 26/59] Kconfig: Extract config FSL_IMX7_GPR from config IMX Date: Tue, 27 Oct 2026 20:23:07 +0100 Message-ID: <20261027192341.9197-27-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=RYwFmFtv c=1 sm=1 tr=0 ts=6ae0faf2 cx=c_pps a=hnmNkyzTK/kJ09Xio7VxxA==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=pGLkceISAAAA:8 a=FRSEYCzRAAAA:8 a=EUspDBNiAAAA:8 a=8JKbvHrISIDU7W56SM8A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=PEH46H7Ffwr30OY-TuGO:22 a=H4N_Y-AU75W7NKDNhZlT:22 X-Proofpoint-GUID: nJiSS-EzYr8Oey0BCXTsJXsUTWq7VX5U X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX1/yTCL30g8+T m2gu4ekwdg39kc10CYQugPKdLFv6UU2vNBcF0ZP20ljD6/JCqFNR06R8eh/lOEezdS8F6rZKpDp cEKuBomVu7iKSqfVvYIUthpZ+S2FA9o= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX7vHoW4J3HJKx 5ZmAcFjEV2JL/CEbSud75QaVYYvZa4o4AdI/eAoM3SofjmKQOO60aw579PU/jiFZz9bhtvLF5jG tOvtu87JGvwhPpd+c5WvnwrJzaq13ZizCZrmR6+AiDZO8cLigUtYR/glNUfEoO2+IYvL0+x6a+K bR5qqXCmCUcX9qKdXc+FLQa1m4Qi2FxEmoTllbRkOMAaHwU1q9XY9r2n0EkQUEVYgzROl17+GeT tFxM/t2r0giMFyFLap6qoeSA6jA9H5HOVZ5x+ei26xoHOd8ix5N+qk8IZAufHmKxGHHI1hyFmON r8KL+P7O0NewXlGm683XdguPFnKT9OVzuD7m7g56ZEFe9YTS1PIU+l7fnqLJfO0Tq1/yRnWbFg2 S7gQ+SeMxBZRle9m09xVhAAF05+QwpJqsve/9yZePtswT5rUodgsA+7UNQMQCU/nu3qDNXkaVhm mB0r6okiDPU5CZnhnTw== X-Proofpoint-ORIG-GUID: nJiSS-EzYr8Oey0BCXTsJXsUTWq7VX5U X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 impostorscore=0 spamscore=0 phishscore=0 bulkscore=0 adultscore=0 priorityscore=1501 lowpriorityscore=0 malwarescore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129282486154100 From: Bernhard Beschow Over time, QEMU has grown a number of i.MX boards and the monolithic config IMX drags in unneeded dependencies into each SoC model. Extract config FSL_IMX7_GPR to eventually eliminate config IMX. Reviewed-by: Bin Meng Signed-off-by: Bernhard Beschow Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-ID: <20261006083445.30362-22-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/arm/Kconfig | 1 + hw/misc/Kconfig | 3 +++ hw/misc/meson.build | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig index 53f723661cf8..55e09e3d9957 100644 --- a/hw/arm/Kconfig +++ b/hw/arm/Kconfig @@ -579,6 +579,7 @@ config FSL_IMX7 imply TEST_DEVICES imply I2C_DEVICES select A15MPCORE + select FSL_IMX7_GPR select PCI select IMX select IMX_FEC diff --git a/hw/misc/Kconfig b/hw/misc/Kconfig index d9991494b7fa..b329d6bfda97 100644 --- a/hw/misc/Kconfig +++ b/hw/misc/Kconfig @@ -97,6 +97,9 @@ config IMX config IMX_RNG bool =20 +config FSL_IMX7_GPR + bool + config FSL_IMX8MP_ANALOG bool =20 diff --git a/hw/misc/meson.build b/hw/misc/meson.build index cebc5f0d6ef4..d6f1162ff9c6 100644 --- a/hw/misc/meson.build +++ b/hw/misc/meson.build @@ -62,6 +62,7 @@ system_ss.add(when: 'CONFIG_AXP2XX_PMU', if_true: files('= axp2xx.c')) system_ss.add(when: 'CONFIG_REALVIEW', if_true: files('arm_sysctl.c')) system_ss.add(when: 'CONFIG_ECCMEMCTL', if_true: files('eccmemctl.c')) system_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4210_pmu.c', '= exynos4210_clk.c', 'exynos4210_rng.c')) +system_ss.add(when: 'CONFIG_FSL_IMX7_GPR', if_true: files('imx7_gpr.c')) system_ss.add(when: 'CONFIG_FSL_IMX8MP_ANALOG', if_true: files('imx8mp_ana= log.c')) system_ss.add(when: 'CONFIG_FSL_IMX8MP_CCM', if_true: files('imx8mp_ccm.c'= )) system_ss.add(when: 'CONFIG_IMX_RNG', if_true: files('imx_rngc.c')) @@ -73,7 +74,6 @@ system_ss.add(when: 'CONFIG_IMX', if_true: files( 'imx6ul_ccm.c', 'imx7_ccm.c', 'imx7_src.c', - 'imx7_gpr.c', 'imx7_snvs.c', 'imx_ccm.c', )) --=20 2.55.0 From nobody Mon Nov 23 04:26:24 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129388; cv=none; d=zohomail.com; s=zohoarc; b=eq6/D/SYF8lqiRGxSrmxfPlmsaxrJ91VRMzdkJtRulvIaIq1XSChiY6I4Oz/JBgQ3gLUWE/Nc2nqnMpmH7U6XYRpFqheEArlS1ED6AM7Vxs7DHh1MAhKwPhNnyDTWI4/5APHRrM5Oi2shzdv5fMLEo0j6NfckgdfUhqWw8v8BjA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129388; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=KwUA97zsQY2MBo4en3beWQ9BWSafCN4FEUytCtbFrkY=; b=gQj2igrFemnFsUAGeOTWEBRh2xMRPrzdGOH7oWCGTZIjqmMOYI2RLXE5l9HIz/9HO2vnrghtJ1CHK/NFUDYpzDtO8tdj6yI3+FRRySM6VhAU+s1ZomiLe9y1neJfKC5gYQPbDZ6mOuq0YpPKYDWmmyjTIYZKJbZoBiS8jMJlRHA= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129388190348.31807021517636; Tue, 27 Oct 2026 12:29:48 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmpB-0007b5-Nu; Tue, 27 Oct 2026 15:27:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmoz-0006G1-Ms for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:26:58 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmox-0002DH-JG for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:26:57 -0400 Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHG552087961 for ; Tue, 27 Oct 2026 19:26:54 GMT Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjp2tbb0f-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:26:49 +0000 (GMT) Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-93caf6c528aso19130685a.0 for ; Tue, 27 Oct 2026 12:26:49 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e412cc164sm23013365f8f.7.2026.10.27.12.26.47 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:26:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= KwUA97zsQY2MBo4en3beWQ9BWSafCN4FEUytCtbFrkY=; b=TY5nRVGHTrUOdf4o U3Vj5QytvcQFXL5Jf7pVLuQrAB4JzCQQy9KixbhXVu6skWJz91oRi/2q1ROuAEfo pbOIy5XcI3ah3KvD0n1y0nuGs8NWvDsWmb/7NT3PXDexkmt0Qo3GbHmXsWqZY5Rm f791ffk3mV3l6jkoLsvKPaOn52hD3+6Qt0WvUl5rZCrfk3HOSLU7O5t5eTeO9Fk+ IAMHNHwJ+2/3tjx+NAUbWAAF1xxJPVtRhGxNTdG+3BhbnEw8G5RptS91sU9gOzSf tmv4xGVFLSZxzhCRsLNUx1Pw0n+htcbSUzSkEE5GI+azvpOkqrrTO0k0/BnTWuDa vGZpiQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129209; x=1793734009; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=KwUA97zsQY2MBo4en3beWQ9BWSafCN4FEUytCtbFrkY=; b=euUgJaOWlDm9lCIXE7aKs34dLvA9PChF3BFXQQkJ/xTUYVYbZixa7xDb7vIkwSKpF0 n/cOre7kEY9mZik9jfBmvA7+WwNQXFZE/3TOZMcn7x3EeZIK8E6M+YZ4ZQHqAHKzqiSI YYUOX+42yQQOaqGV5biANWVlVZFRddJdaEvgLxRC28SQbZZbKYitdHfZ2ubr+aFAyHyX aHcYQXBKZ4D2wYG+xl4dMLbj4nnZ1SiuimTp5QLPTMZ895Jg5bPILrWB1i8ho22gwnoN ZB+mTkwl5yUWMFZIAygZFOTeUMcfnIZ+Cuu7On4i9AICzuJ4HOuaGCgpMm1KMTQBxONJ z/1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129209; x=1793734009; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=KwUA97zsQY2MBo4en3beWQ9BWSafCN4FEUytCtbFrkY=; b=qw8TOY39YRh+L8b1NZDiBqixSTlFvK7bC0sgzr0t9ihQDd0zuTr5lO1hzrvSzM85bh 7SqL6GBiGmBnAIRqiCUeK/ymCGS0UsYruuwIIkGnXwkuQR+QU7VnwG1MIIFj/ruUYevq lF54K0HMQedW6inSGzeaYBbXF8lPML5l524gNnOaxQ0a+6CUrMABmCPzeYkoksv+SW5v sEuXZrs2Uihgfio0vdrPNSUYJK4yodbn3cGL90QhVsCgCMUV+aluIzkrGarFZe40Q0uV d2OQIOdSCXrpXID5SMFk80k0zJR3wueAAijnk/hVmrnsTI4uGY68Y+5zsr4UQXVm03R1 ZJkg== X-Gm-Message-State: AFq9FYLew9qvgTMzKpLTXw5TNVqjFmMBImSLuGB7ueIBALJAKf9vZT2Z O+ESrYCCKlkQFLxypyB/baowejZyE69UEhDNOIa/ccginoWoSdVrGK6fXliR4oa4jDWaZnGBiKw uNCw//TFEZKemEvCeHNrW9OI5Iger35DZKFFTOioirgOaitxW45JKUL3+4/H2LacPGw== X-Gm-Gg: AYBFou1dScHUakzUI9m48t4NZLItljtrEcfYK/SnEi7NxAlyzh8H/b/a01x+AGqb60+ 3UZZOI03BMANxsW+Jmt+svWs5vrFLduFn4bk6J3x/0y4dc54LEU/Cg3Ecp5nBs43Skx8YGXlw+q qaIXliSCRuF+2vYy9bMd0HKfUj2KEEaSc3WHfOgHcWEILSGU7Q2rxaPuXSoxKWJp83/ioliQYAO +hUd2LPbg4Y7mGH1iwLm91eljFUZowKln1CiM5kpdurPIX6VbCW7JibD39BN6K36brnph64oZbP plk0w4imnKH1PZIPZQpixNjWBUQw+dJyosprKjS+S4LniwrYBDn5BN31f6705VAiDyl8E3+umQJ U7UsKEKDBk+KT/rrYtAz3uPXZ13R3SAf3eumZbLfVx2fNGOtdtd/PI3C0 X-Received: by 2002:a05:620a:1793:b0:936:df48:d507 with SMTP id af79cd13be357-940ef914997mr1742248985a.18.1793129208616; Tue, 27 Oct 2026 12:26:48 -0700 (PDT) X-Received: by 2002:a05:620a:1793:b0:936:df48:d507 with SMTP id af79cd13be357-940ef914997mr1742244985a.18.1793129208086; Tue, 27 Oct 2026 12:26:48 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 27/59] Kconfig: Extract config FSL_IMX{6, 7}_SRC from config IMX Date: Tue, 27 Oct 2026 20:23:08 +0100 Message-ID: <20261027192341.9197-28-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=AJjzCM5L c=1 sm=1 tr=0 ts=6ae0faf9 cx=c_pps a=hnmNkyzTK/kJ09Xio7VxxA==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22 a=pGLkceISAAAA:8 a=FRSEYCzRAAAA:8 a=EUspDBNiAAAA:8 a=O-0016Qn-tzLSH4AuisA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=PEH46H7Ffwr30OY-TuGO:22 a=H4N_Y-AU75W7NKDNhZlT:22 X-Proofpoint-GUID: z9ghTSUoZHxzI5grUL54ZXkuNqb2tR-v X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX3BCgSKZQNMcK V4AkCTzIaSkv4jsB54A8UIiqkA3Wjj+GS29MxTH5OWXp9TPlOJU2uf9lg3Xf70St8lzZmhMH5sH QEgkjDKcGow/+niQGQ0qbSJmmmsy2zI= X-Proofpoint-ORIG-GUID: z9ghTSUoZHxzI5grUL54ZXkuNqb2tR-v X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX5nA6i50Y355M MjAxgK1hLLS1l0nOm7giXlUoGAQNsLNWnL0eMzgsSg/hK6CnLvfYMssqLiUPoRDJT4NfT6B8p7t gOqpnvgr+tTkkL832vZV87w+GHQxe67Khtg+nGiU7+J9O3q67RMPxQoH2dXX/tFP4bbS21aa5I5 hbJaPJv8WXhyHkqnK3Aje3iNuMLHxANTTVAV2XGEnVlDcZrm91WYjQBcnCuqN2I4WSQ0hAezzMC KOGDadOULx85iBobxWAD7vFx+QNecZL5WgbpjBjgIJzGYfkZQKsvnpZobi/6A/IiVWDkZqqb1fG B8r7+QfrABIXhcLwfNcKPRhRODKkZmKELxDV0wVUzzJWRKc6dHxQyh3RR5MHi3T/o70MwLMZzgv Wt4emBi5+bf5bnyK3F+FQVl0dUjMRq2R/N6/kLYz/TzlnTe19g2rpiUPj/mjO5BFxdsWUCsdC6C Kexd/jKc4Iuv0HNDZXw== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 bulkscore=0 malwarescore=0 spamscore=0 clxscore=1015 priorityscore=1501 adultscore=0 lowpriorityscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129391179158500 From: Bernhard Beschow Over time, QEMU has grown a number of i.MX boards and the monolithic config IMX drags in unneeded dependencies into each SoC model. Extract SoC-specific config FSL_IMX{6,7}_SRC to eventually eliminate config IMX. Reviewed-by: Bin Meng Signed-off-by: Bernhard Beschow Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-ID: <20261006083445.30362-23-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/arm/Kconfig | 3 +++ hw/misc/Kconfig | 6 ++++++ hw/misc/meson.build | 4 ++-- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig index 55e09e3d9957..5e6b81bfbb95 100644 --- a/hw/arm/Kconfig +++ b/hw/arm/Kconfig @@ -505,6 +505,7 @@ config FSL_IMX6 imply PCIE_DEVICES imply I2C_DEVICES select A9MPCORE + select FSL_IMX6_SRC select IMX select IMX_FEC select IMX_I2C @@ -580,6 +581,7 @@ config FSL_IMX7 imply I2C_DEVICES select A15MPCORE select FSL_IMX7_GPR + select FSL_IMX7_SRC select PCI select IMX select IMX_FEC @@ -662,6 +664,7 @@ config FSL_IMX6UL depends on TCG && ARM imply I2C_DEVICES select A15MPCORE + select FSL_IMX6_SRC select IMX select IMX6UL_LCDIF select IMX_FEC diff --git a/hw/misc/Kconfig b/hw/misc/Kconfig index b329d6bfda97..ce9fabb8edc8 100644 --- a/hw/misc/Kconfig +++ b/hw/misc/Kconfig @@ -97,9 +97,15 @@ config IMX config IMX_RNG bool =20 +config FSL_IMX6_SRC + bool + config FSL_IMX7_GPR bool =20 +config FSL_IMX7_SRC + bool + config FSL_IMX8MP_ANALOG bool =20 diff --git a/hw/misc/meson.build b/hw/misc/meson.build index d6f1162ff9c6..44a21b9faf63 100644 --- a/hw/misc/meson.build +++ b/hw/misc/meson.build @@ -62,7 +62,9 @@ system_ss.add(when: 'CONFIG_AXP2XX_PMU', if_true: files('= axp2xx.c')) system_ss.add(when: 'CONFIG_REALVIEW', if_true: files('arm_sysctl.c')) system_ss.add(when: 'CONFIG_ECCMEMCTL', if_true: files('eccmemctl.c')) system_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4210_pmu.c', '= exynos4210_clk.c', 'exynos4210_rng.c')) +system_ss.add(when: 'CONFIG_FSL_IMX6_SRC', if_true: files('imx6_src.c')) system_ss.add(when: 'CONFIG_FSL_IMX7_GPR', if_true: files('imx7_gpr.c')) +system_ss.add(when: 'CONFIG_FSL_IMX7_SRC', if_true: files('imx7_src.c')) system_ss.add(when: 'CONFIG_FSL_IMX8MP_ANALOG', if_true: files('imx8mp_ana= log.c')) system_ss.add(when: 'CONFIG_FSL_IMX8MP_CCM', if_true: files('imx8mp_ccm.c'= )) system_ss.add(when: 'CONFIG_IMX_RNG', if_true: files('imx_rngc.c')) @@ -70,10 +72,8 @@ system_ss.add(when: 'CONFIG_IMX', if_true: files( 'imx25_ccm.c', 'imx31_ccm.c', 'imx6_ccm.c', - 'imx6_src.c', 'imx6ul_ccm.c', 'imx7_ccm.c', - 'imx7_src.c', 'imx7_snvs.c', 'imx_ccm.c', )) --=20 2.55.0 From nobody Mon Nov 23 04:26:24 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129271; cv=none; d=zohomail.com; s=zohoarc; b=X0da5xI/QFE6L3J/5PMv6DaHj4h5eDKg7Cq7qqvab5ngbV2WV4fViflLtYiwuxy/1r9r/FMfgEzbfo/mncvNHV1ND5qgrz4tk26Pc7zcQafHqa2wjrEaGcMOGynUI1BcwEkWnS/nq2Vt12FsQrGvIGqXEOUA2KdmuMMau3M5F9E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129271; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=PoSr9Qh+nNATOwCnPzcMqEi0g3cI3p9Gj3BAJbiMTQk=; b=MF8DeI1uKbtCIvrxIl+YxxFs7zjLhs6nl5M3DDG07kGSnirecKhEjuA/agV7jhRPmlnBJeirivRR+6zjzrcm9E9OLnpTlSsaHwyeRNYIo5Z4cKOVveOzcq8hjBOhyar8Sqbhp0u4oa87yk4OGgd+l21HSZ++OTIrRRWOAWE0/zo= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129271210732.9576846787135; Tue, 27 Oct 2026 12:27:51 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmpE-0007rG-LS; Tue, 27 Oct 2026 15:27:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmp1-0006QN-R9 for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:27:00 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmoz-0002DU-QX for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:26:59 -0400 Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHSKH2997855 for ; Tue, 27 Oct 2026 19:26:56 GMT Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjst1jcjk-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:26:56 +0000 (GMT) Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-93f322ef7d3so29981585a.0 for ; Tue, 27 Oct 2026 12:26:56 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a952b0418esm2224025e9.11.2026.10.27.12.26.53 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:26:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= PoSr9Qh+nNATOwCnPzcMqEi0g3cI3p9Gj3BAJbiMTQk=; b=SxWReTMEJezApHiB HuYp2MqifjKpkCBqZVv68j2k2AsT1bEHxnOt28EP2bcnmXDsswdXTYID3SNWbrzk 1zoEG7shI7Rw3ZQOuaEntC9k58S1ZF4qRAQr/StzCNYV5TizyT6vYyYMzblApb5X eesOh5D0Z8uCbR6/wOmjH53hmxHlX558anlfvlLPuARm/M0kn1WEL61HeuiCXJ8q qpmRglY+MMggQk2vDo+kdSBAsr9+feIkKR+jLQy75iIdwW9d1AIh5/OXo64BDgp8 MUlFvYBjPkOPUtWwG0DlH18mxLRxRwNQQRJpP4BSu1muePLpIjr6f3HfpwQoA7xC 2l6jaw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129215; x=1793734015; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=PoSr9Qh+nNATOwCnPzcMqEi0g3cI3p9Gj3BAJbiMTQk=; b=Zur3iKRPu5sZP4P/QxD7catKw6cDbDEcaPGHnUt/U6N98Cg0ZpIRzYu1zw0nvm9rKu n4tt6U0T6CL8pfOyFuIOFCgWI4yzyZlQlbidjlbR8d7p90yN29oEI0NLBgvYJyE6LiCD OnTx19NubLcpDwqpV64kyOx99wfoLKcsX8U1vP1fNWLm7TkXY2QiVznNJkIw9q09um+V Pgq1M2Ek/VoPR9nLcE4wT/9xpt6VZYhdBlpUP4VuFXTdhqjUMW1HaXeBBtXjJQTI6khJ 8zG/WHy0kfXimQf315rzZNEDkMZVLYl9rt41M1CjCrXHcj3N+5/dY0NkSOWmweDwl5Hi 9pCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129215; x=1793734015; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=PoSr9Qh+nNATOwCnPzcMqEi0g3cI3p9Gj3BAJbiMTQk=; b=VXIB4+VphEoq15/KZWKzzRdMgaWOiaQH1c7qyHep1nF5E2ACcaExaOcAILkuWDt20r 32QLnVE/G4RlxU9Bu3PhN0ASCg+5gRyjjx6PkWzzvJU7FcT/XN0ibxcTGDNyXYVnx7p+ ZXy5x1+I/dout1Z9POlSkukQ+C3IwFa4jPi2jisEXodBAQJW4yY8uxJXl1S+6CyVM0mW tCwlKDt2bsSKT9+k3Yg7z+ZIh99MykZtvUQj/L7pCd/NxLTW+qKgnG1Id9rFO620Kz5K BaHanrSlBwFOC+EaxWAb26WqMSrk6yEpsXnfqHn3EKc/T2sFEY8e18M6Ylzr1jGXAHGw 2Iag== X-Gm-Message-State: AFq9FYLcO9Nfj7ybsHxqDoIhu9PN6ItjK2zABG6TPCeceHj872bb+2xT mpYL9awhl95G3dJ9DOrmbALv7Sv+Pb2RuIA28NNiLzbDctqB8cHs1qdJFFv00kJZSpHsZv2eqzT 2WukKeSY21IjXoroBLOvFXJuUEloHQL0JfXa+lIhFLKc61RsxTUP5KODvBcnKW3nI+A== X-Gm-Gg: AYBFou1578RXJH3zgvJBC3LhwVRIIgdUyKOxO/oyA9lMcB+jK0APKrW0mFNSQnaMtKi ufc8lBhYjGBHtW4zmj7M2trynU2QU1a1z5w10HCscCRqh48HRAqnJ8r+fZAwn3oJtG8hZU9pF4Y VjQITvwcTBGd5zJ9ecnElsZa/smOiO8lOh2Q1eMifK6G8LFJyr93lihDnktzsLC3iepisNx8RwG shd8PvVDOQpVOBzh5EpmxsTcaphusHX5/YXYnfF2ZFzqpJazHnIK/Gknz12X4zehsqwUfk4DEHv KxaKgMvzyoxrhr8naOuvY/+zVycy2Pm9/pQB/yA2yrB62gIk5uBEh6np9cZCz8JNG0pEcI9xmR4 97L1OD3GdZPZwQ9UAvLN8UmUCXISHrAGX7tiIw+VS/vBJ/7kguLTgF4Cr X-Received: by 2002:a05:620a:6016:b0:93f:43a4:a48c with SMTP id af79cd13be357-940ef964acbmr1750516385a.45.1793129215382; Tue, 27 Oct 2026 12:26:55 -0700 (PDT) X-Received: by 2002:a05:620a:6016:b0:93f:43a4:a48c with SMTP id af79cd13be357-940ef964acbmr1750511685a.45.1793129214819; Tue, 27 Oct 2026 12:26:54 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 28/59] Kconfig: Extract config FSL_IMX7_SNVS from config IMX Date: Tue, 27 Oct 2026 20:23:09 +0100 Message-ID: <20261027192341.9197-29-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=HJ1WhYtv c=1 sm=1 tr=0 ts=6ae0fb00 cx=c_pps a=hnmNkyzTK/kJ09Xio7VxxA==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=pGLkceISAAAA:8 a=FRSEYCzRAAAA:8 a=EUspDBNiAAAA:8 a=5lDbTlto3pJDAP_1x8UA:9 a=OxilXL1js4uPhECT:21 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=PEH46H7Ffwr30OY-TuGO:22 a=H4N_Y-AU75W7NKDNhZlT:22 X-Proofpoint-ORIG-GUID: TSWqSmIBXw6JxujheEDMYuJqSzl7oXwO X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX4Ojs31ECjfWf Ja/EHremo0GT2+yQPO7+wNZ+l+z9kr5oElocNJM+hEHHEeSGUOYFoFX12zhX3oDGOtsV79tEMS/ ZyWz4XloKoUBCLvdIJgpPT1I8H8SxXc= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX6sSDNB3nAp95 Gp+TL7yxWitPkn6Yw4roOP7rxR18LFMWR1PJlLjz2mCn/HqpPfU2qlW5yvOGPEjBqJZebwQ2nWl Bjs2ppwtxq/JIdeZwaXjkEnXqn3KjGuSSuDuobrlHuaTBN/sf6/pZ7CXbpGfdNG0QXUEy/sgKZf 9l55D8ZK+3le5osqZ+c1e0xdQwTHX+FQ2+AbPWMED6IsM9ikmmgkpFvDa/cNboHRl4YMmjDLemV rN7nLz/Mo2R1bDZnkR1UGKFpWxdt3vLRkKWNB+0jsEonkr0RlAtAU0TDWIHVw07KX2tB+kofSRv /tTPOQY2Ps8RCsjFgH7Mibv+sn5xb0bL6zvzCoj+6Ln5w7cRGksZyBRcSh9SWehsxhRt1rxjcmn L9vawONYt0yr7FW79AJZrugPQmsZ8Xik5RnjeohzycvlEGP3q5xtwAjTYOTfWEbr4rBAaUCq14i BKplEEQfRKOFCo52zsw== X-Proofpoint-GUID: TSWqSmIBXw6JxujheEDMYuJqSzl7oXwO X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 priorityscore=1501 suspectscore=0 lowpriorityscore=0 impostorscore=0 adultscore=0 spamscore=0 phishscore=0 clxscore=1015 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129273970158500 From: Bernhard Beschow Over time, QEMU has grown a number of i.MX boards and the monolithic config IMX drags in unneeded dependencies into each SoC model. Extract config FSL_IMX7_SNVS to eventually eliminate config IMX. Reviewed-by: Bin Meng Signed-off-by: Bernhard Beschow Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-ID: <20261006083445.30362-24-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/arm/Kconfig | 5 +++++ hw/misc/Kconfig | 3 +++ hw/misc/meson.build | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig index 5e6b81bfbb95..c01b1ea979bf 100644 --- a/hw/arm/Kconfig +++ b/hw/arm/Kconfig @@ -506,6 +506,7 @@ config FSL_IMX6 imply I2C_DEVICES select A9MPCORE select FSL_IMX6_SRC + select FSL_IMX7_SNVS select IMX select IMX_FEC select IMX_I2C @@ -581,6 +582,7 @@ config FSL_IMX7 imply I2C_DEVICES select A15MPCORE select FSL_IMX7_GPR + select FSL_IMX7_SNVS select FSL_IMX7_SRC select PCI select IMX @@ -600,6 +602,7 @@ config FSL_IMX8MP imply PCI_DEVICES select ARM_GIC select CAN_FLEXCAN + select FSL_IMX7_SNVS select FSL_IMX8MP_ANALOG select FSL_IMX8MP_CCM select IMX @@ -625,6 +628,7 @@ config FSL_IMX8MM imply PCI_DEVICES imply I2C_DEVICES select ARM_GIC + select FSL_IMX7_SNVS select FSL_IMX8MP_ANALOG select FSL_IMX8MP_CCM select IMX @@ -665,6 +669,7 @@ config FSL_IMX6UL imply I2C_DEVICES select A15MPCORE select FSL_IMX6_SRC + select FSL_IMX7_SNVS select IMX select IMX6UL_LCDIF select IMX_FEC diff --git a/hw/misc/Kconfig b/hw/misc/Kconfig index ce9fabb8edc8..a69c56ecc69b 100644 --- a/hw/misc/Kconfig +++ b/hw/misc/Kconfig @@ -103,6 +103,9 @@ config FSL_IMX6_SRC config FSL_IMX7_GPR bool =20 +config FSL_IMX7_SNVS + bool + config FSL_IMX7_SRC bool =20 diff --git a/hw/misc/meson.build b/hw/misc/meson.build index 44a21b9faf63..f4a4bc1c482a 100644 --- a/hw/misc/meson.build +++ b/hw/misc/meson.build @@ -64,6 +64,7 @@ system_ss.add(when: 'CONFIG_ECCMEMCTL', if_true: files('e= ccmemctl.c')) system_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4210_pmu.c', '= exynos4210_clk.c', 'exynos4210_rng.c')) system_ss.add(when: 'CONFIG_FSL_IMX6_SRC', if_true: files('imx6_src.c')) system_ss.add(when: 'CONFIG_FSL_IMX7_GPR', if_true: files('imx7_gpr.c')) +system_ss.add(when: 'CONFIG_FSL_IMX7_SNVS', if_true: files('imx7_snvs.c')) system_ss.add(when: 'CONFIG_FSL_IMX7_SRC', if_true: files('imx7_src.c')) system_ss.add(when: 'CONFIG_FSL_IMX8MP_ANALOG', if_true: files('imx8mp_ana= log.c')) system_ss.add(when: 'CONFIG_FSL_IMX8MP_CCM', if_true: files('imx8mp_ccm.c'= )) @@ -74,7 +75,6 @@ system_ss.add(when: 'CONFIG_IMX', if_true: files( 'imx6_ccm.c', 'imx6ul_ccm.c', 'imx7_ccm.c', - 'imx7_snvs.c', 'imx_ccm.c', )) system_ss.add(when: 'CONFIG_MAX78000_AES', if_true: files('max78000_aes.c'= )) --=20 2.55.0 From nobody Mon Nov 23 04:26:24 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129372; cv=none; d=zohomail.com; s=zohoarc; b=hj5tCovCSlZGJaMT+k+qJ+nsr402eFG1yIeCNpZBNYGbFAFSn+DlZ9L//eWGO3+9QkKzi5/H9yI9zdzEXigzM/0aW/5MioF2uS1X+iQsVeBUqnL8pPYZ6fQlNj0GiENru0otbw9dYCfKsWyqVwBRRWnCiwRgBb3GaIX0lD77AWI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129372; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=gzh6YzBeXWnzOXFWI/BzSO5pYBjHJBGJeOYqFe97Ijo=; b=g8lFQjxD6cWbK510VgKC4eN4mF4Q5G8dQwqnc1zInQYLG7hfYBINySf/vDhkDoL8xSV7HJt40ppsKJqq1llHA3eZcMlj9td97gsV3vuW5os3krcmi5M08hqg6+2Is05Ls7G9WTqbpTxn1x5stu7hVXgZaNJ80TnWezPv4ISeQEQ= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 17931293722481.7449379837943297; Tue, 27 Oct 2026 12:29:32 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmpB-0007ex-Tt; Tue, 27 Oct 2026 15:27:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmp7-0006zv-Gf for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:27:05 -0400 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 1xLmp5-0002EO-Fy for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:27:05 -0400 Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHPQv3553875 for ; Tue, 27 Oct 2026 19:27:02 GMT Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjqw22wqm-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:27:02 +0000 (GMT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-93f6f4fe531so24486085a.0 for ; Tue, 27 Oct 2026 12:27:02 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a94e6b8290sm3097105e9.9.2026.10.27.12.27.00 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:27:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= gzh6YzBeXWnzOXFWI/BzSO5pYBjHJBGJeOYqFe97Ijo=; b=DBF2PCImjrBWnGZp 1rPAFnsSygFeO4dUEmZjLYe/1f2DA5tEvlaFiSzWwmwBwT5SgdLtXsqVydRrlFmP 65voxxUSBSzStjPu2w0eV1rGkf0Ye0L85g0PKO/cu3mh2kQ/wCdbBRDUFmpkaZCB bQRwgIs3y7O/yuhy/75zlzczGhnfGYMMvox0Wc6mXXH8frd8mCVf0EOw+nidlhD7 4CoTa+a+Q8+DW4rsLBIv6OOB/VekeAji5QX7IL99FEvC9l6TsJ/Mr2RcKyIyYKHe fOozmHQewm2kVbNaGG3U+t0UyyRrL0cBe0jvsxf5O1+TitUujNInWkKcUPXYb6RD zoofHA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129222; x=1793734022; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=gzh6YzBeXWnzOXFWI/BzSO5pYBjHJBGJeOYqFe97Ijo=; b=hPvPKBo7qI6KkuHOIfGiYCfPqk/psUA3txI+M2YvuoutjemqsnoUKd2lRCIJpwN9cv 8776wAK4R2ebOQ7NXTjT3U+uG3O1M84tllGwENTg8buu4Ozvl70YNQ4OVZJwEzlhQLvu TlohyE75g9VFMtDwtnO4Lz6Qgns8PN5yWWfAojxUYjfOqQXxpXPBFtf0Ea3NcpBatNhf ry37jzFKZt2cZc9oHRiFgsl2pVtD7wCdb7bLu3xW1gS0mOO0myprc1tgd08/yt93lXbx tdoOjAPPLdR/XI0xPL4AfjZKTu1OY8C0m+gsuJJ3syYNnZBURu+N8DuRwd0I3mpm10v4 iT0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129222; x=1793734022; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=gzh6YzBeXWnzOXFWI/BzSO5pYBjHJBGJeOYqFe97Ijo=; b=YWprV2/W0YqIo81fvvQFmKu4SkGyqJKZtyX8eyb/AwaNLM0b8IWAwIZfZGKUw3yb2Z x3l9JEm3ZamcV/FvMSMYlfurng/16htZze9aybQosDtozFNHiDxDc1HJDg/HnR7QNdcT 5EIvUeBgdQiaL2dd9aVvNBTz25KKIVrqycyqYmyGT0yNZepn+EA8CCoy0M9t/vBYPjqJ ALQq4OWhXCaafvRw0X1cx5FSipzlEUInOpjF6qxf5G9X7yMOZyVtZXVzrpnYr6yUacIj oPOujhAyIw6DlZaMYE3qzcrpQPQS/0vu3FK9O5G9XWxjTe1Z+hfdEkAqzjP2RLdaOOz4 vAKg== X-Gm-Message-State: AFq9FYKApEKCsP54xU336IJjj8hQkrJ6hdAS2k78FOe79feNqeNtB9Ai w4l0G4lFYjOdYuj1xE2cM9YU/F8Sty9568jWZXqUM9RlzxkkK0cJbroa76aDAEJFX/65OQhDY/s tfadVcQG7s8LwG/K0Q0BcvBjo0yE/sOXXXk2G/ejh23tYK1lcg5TtkNhKo7aXEXiaIw== X-Gm-Gg: AYBFou1ai1qMuIS0EkqWTF4xoU2qfyhM6IcjeVnbnujpvkUwQiGdhF09aht9UCuIUgK Yi01g4YRAEcvXtZnWyA4Aer1mPIghOdclOafRZxi8SQjon0gH9+9zaeU620C5z2TwPoqaagoXu0 GuWF1VBblNlRbZ0iMHBSlceZ4+cNCl5v5lnEBFiZ88ndyQN9qCzKDyHNLu8E8LwUa2u8QlfSl/Y 1dbGXKbjSzFB5c3xETJln9DXXczcJnp6hH6SRei5kKE6Fbb/U0VVGK6KAOEm9GMPSHvBpLm7E36 PllkU1xoamOCDTBzDtw4wg8Nne6klICu0urTxXEhldZGJXDsfdp9GEMIWXia6lXyCea5tT0SdB/ c50zCgzxsCQn9aQiqKIu3bPerFdVLQtxKBAgvmr9393okhZXx5sGWxm7X X-Received: by 2002:a05:620a:c4d:b0:93e:c12c:4408 with SMTP id af79cd13be357-940ef995984mr1769372385a.68.1793129221865; Tue, 27 Oct 2026 12:27:01 -0700 (PDT) X-Received: by 2002:a05:620a:c4d:b0:93e:c12c:4408 with SMTP id af79cd13be357-940ef995984mr1769368185a.68.1793129221254; Tue, 27 Oct 2026 12:27:01 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 29/59] Kconfig: Extract dedicated config FSL_IMXx_CCM from config IMX Date: Tue, 27 Oct 2026 20:23:10 +0100 Message-ID: <20261027192341.9197-30-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX6H24JhPs7sBm Xu538fUY/vxCwQTzUPHFw6lZ1BbQIiRqMtV5sy+vel7TLyW/+Xj7p0Gjz/Ti2H/+QhzsEKrkUuS cB7GX0amqHHFS6z63we9BDICMd7cPfy5erkXY49wE1eVKN3kTocLeSZ3tsF+cpcv9YtfXw4iQy1 vn+VBE0n8lysVVngefX/55eCKwSpaV8w/rkUZPjBqiHi413XheRsFkbZJSowQiUYNdAhxYVcxya AXLXA4UxiftLUrI0K25shKR8LfjYSP27q3vyMXssBzrmdOb2qmXDn3mLzvK1gUyJzAfl0x8+uRW 6afg3UgOXdg9CMGgez1JuZknFn3qnJ3DYLC/KZsrqFCtokRXStHG93ltZ/vSyBIauZaDsZ0oysb IPIJxNKaym61ch0R7HcnYh49O3RdoyVwyZAHMAOZCrOjOhmx9P2/4P9XvEES448c/GwI5sBUvyy JXksxfwoJWk1okm5arg== X-Proofpoint-GUID: d6aBqas50jDxpSNezEh4NGF-RthXXan9 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX4oFm5mgJPpFE IlJXUKvZ6Q+7zeBU+meeenxCExIvxKcLaSyR9ps1M2GR7Dy9NQkzVJNeDyP3gCfiBpeqPeA09SA 1jzvWIzNOFQRYl+AjqX0sIrzLjYvEec= X-Authority-Analysis: v=2.4 cv=PsYG/AM3 c=1 sm=1 tr=0 ts=6ae0fb06 cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=pGLkceISAAAA:8 a=FRSEYCzRAAAA:8 a=EUspDBNiAAAA:8 a=89OC-F0PJ-CZB-ShPt0A:9 a=K_paWFUX5Z0lrulP:21 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=IoWCM6iH3mJn3m4BftBB:22 a=H4N_Y-AU75W7NKDNhZlT:22 X-Proofpoint-ORIG-GUID: d6aBqas50jDxpSNezEh4NGF-RthXXan9 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 spamscore=0 phishscore=0 adultscore=0 lowpriorityscore=0 priorityscore=1501 bulkscore=0 impostorscore=0 clxscore=1015 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129373927154100 From: Bernhard Beschow Over time, QEMU has grown a number of i.MX boards and the monolithic config IMX drags in unneeded dependencies into each SoC model. Extract SoC-specific config FSL_IMXx_CCM to eventually eliminate config IMX. Note that config IMX_CCM represents a base class for i.MX clock control modules which is used in i.MX timers and FlexCAN. Reviewed-by: Bin Meng Signed-off-by: Bernhard Beschow Message-ID: <20261006083445.30362-25-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/arm/Kconfig | 5 +++++ hw/misc/Kconfig | 25 +++++++++++++++++++++++++ hw/misc/meson.build | 14 ++++++-------- hw/net/Kconfig | 2 +- 4 files changed, 37 insertions(+), 9 deletions(-) diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig index c01b1ea979bf..4d9279ca2c8e 100644 --- a/hw/arm/Kconfig +++ b/hw/arm/Kconfig @@ -479,6 +479,7 @@ config FSL_IMX25 default y depends on TCG && ARM imply I2C_DEVICES + select FSL_IMX25_CCM select IMX select IMX_AVIC select IMX_FEC @@ -493,6 +494,7 @@ config FSL_IMX31 default y depends on TCG && ARM imply I2C_DEVICES + select FSL_IMX31_CCM select SERIAL_MM select IMX select IMX_AVIC @@ -505,6 +507,7 @@ config FSL_IMX6 imply PCIE_DEVICES imply I2C_DEVICES select A9MPCORE + select FSL_IMX6_CCM select FSL_IMX6_SRC select FSL_IMX7_SNVS select IMX @@ -581,6 +584,7 @@ config FSL_IMX7 imply TEST_DEVICES imply I2C_DEVICES select A15MPCORE + select FSL_IMX7_CCM select FSL_IMX7_GPR select FSL_IMX7_SNVS select FSL_IMX7_SRC @@ -669,6 +673,7 @@ config FSL_IMX6UL imply I2C_DEVICES select A15MPCORE select FSL_IMX6_SRC + select FSL_IMX6UL_CCM select FSL_IMX7_SNVS select IMX select IMX6UL_LCDIF diff --git a/hw/misc/Kconfig b/hw/misc/Kconfig index a69c56ecc69b..de95648f0b0b 100644 --- a/hw/misc/Kconfig +++ b/hw/misc/Kconfig @@ -91,15 +91,39 @@ config ECCMEMCTL =20 config IMX bool + depends on IMX_CCM select PTIMER select SSI =20 +config IMX_CCM + bool + config IMX_RNG bool =20 +config FSL_IMX25_CCM + bool + select IMX_CCM + +config FSL_IMX31_CCM + bool + select IMX_CCM + +config FSL_IMX6_CCM + bool + select IMX_CCM + config FSL_IMX6_SRC bool =20 +config FSL_IMX6UL_CCM + bool + select IMX_CCM + +config FSL_IMX7_CCM + bool + select IMX_CCM + config FSL_IMX7_GPR bool =20 @@ -114,6 +138,7 @@ config FSL_IMX8MP_ANALOG =20 config FSL_IMX8MP_CCM bool + select IMX_CCM =20 config STM32_RCC bool diff --git a/hw/misc/meson.build b/hw/misc/meson.build index f4a4bc1c482a..a859e704a5f0 100644 --- a/hw/misc/meson.build +++ b/hw/misc/meson.build @@ -62,21 +62,19 @@ system_ss.add(when: 'CONFIG_AXP2XX_PMU', if_true: files= ('axp2xx.c')) system_ss.add(when: 'CONFIG_REALVIEW', if_true: files('arm_sysctl.c')) system_ss.add(when: 'CONFIG_ECCMEMCTL', if_true: files('eccmemctl.c')) system_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4210_pmu.c', '= exynos4210_clk.c', 'exynos4210_rng.c')) +system_ss.add(when: 'CONFIG_FSL_IMX25_CCM', if_true: files('imx25_ccm.c')) +system_ss.add(when: 'CONFIG_FSL_IMX31_CCM', if_true: files('imx31_ccm.c')) +system_ss.add(when: 'CONFIG_FSL_IMX6_CCM', if_true: files('imx6_ccm.c')) system_ss.add(when: 'CONFIG_FSL_IMX6_SRC', if_true: files('imx6_src.c')) +system_ss.add(when: 'CONFIG_FSL_IMX6UL_CCM', if_true: files('imx6ul_ccm.c'= )) +system_ss.add(when: 'CONFIG_FSL_IMX7_CCM', if_true: files('imx7_ccm.c')) system_ss.add(when: 'CONFIG_FSL_IMX7_GPR', if_true: files('imx7_gpr.c')) system_ss.add(when: 'CONFIG_FSL_IMX7_SNVS', if_true: files('imx7_snvs.c')) system_ss.add(when: 'CONFIG_FSL_IMX7_SRC', if_true: files('imx7_src.c')) system_ss.add(when: 'CONFIG_FSL_IMX8MP_ANALOG', if_true: files('imx8mp_ana= log.c')) system_ss.add(when: 'CONFIG_FSL_IMX8MP_CCM', if_true: files('imx8mp_ccm.c'= )) +system_ss.add(when: 'CONFIG_IMX_CCM', if_true: files('imx_ccm.c')) system_ss.add(when: 'CONFIG_IMX_RNG', if_true: files('imx_rngc.c')) -system_ss.add(when: 'CONFIG_IMX', if_true: files( - 'imx25_ccm.c', - 'imx31_ccm.c', - 'imx6_ccm.c', - 'imx6ul_ccm.c', - 'imx7_ccm.c', - 'imx_ccm.c', -)) system_ss.add(when: 'CONFIG_MAX78000_AES', if_true: files('max78000_aes.c'= )) system_ss.add(when: 'CONFIG_MAX78000_GCR', if_true: files('max78000_gcr.c'= )) system_ss.add(when: 'CONFIG_MAX78000_ICC', if_true: files('max78000_icc.c'= )) diff --git a/hw/net/Kconfig b/hw/net/Kconfig index b56a173eed5e..4a2cacbcd2a9 100644 --- a/hw/net/Kconfig +++ b/hw/net/Kconfig @@ -160,5 +160,5 @@ config CAN_CTUCANFD_PCI =20 config CAN_FLEXCAN bool - depends on IMX + depends on IMX_CCM select CAN_BUS --=20 2.55.0 From nobody Mon Nov 23 04:26:25 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129366; cv=none; d=zohomail.com; s=zohoarc; b=JdXymVnJgyYDO7yepLBjayNH0qu7PTdZJ0vMGPBfjUo5Sf2JsWTIf28OcUUk1TbcqW1sEfVzwlu1dqQtxRHSNFiM/c/CHjIHH4tto90aCeptns6fHCMNOaEXy7uEg+oAb6ybRXZmxX+2Ri/E0iTWSa1B783i9rz4BhCmVzbv0NY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129366; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=pq0PzXFXasFa6FkofMHKRqN1NPSHvU+K7DkU8wGiJlk=; b=KEluomiBnJ7cmz79DoZuxZCi7Tvx6UXqoIL8uZY0JU8DWTyAgPqOVzzjA5k6oWYiHJf/T+zdJ0IG5TuZiKpTKE5+WYYPGtrvFMzOVPQq/T7YBSULoTuJhBkkrQCBuKC193sTSeqnC11SlDDg+MIKpX1v19n/tyDk0DjqHqdgdXs= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129366418389.83269153006245; Tue, 27 Oct 2026 12:29:26 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmpI-0008JE-Dm; Tue, 27 Oct 2026 15:27:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmpE-0007vX-GH for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:27:12 -0400 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 1xLmpC-0002FA-Dc for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:27:12 -0400 Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHQe83553894 for ; Tue, 27 Oct 2026 19:27:09 GMT Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjqw22wr0-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:27:09 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-93f559420f3so13911085a.0 for ; Tue, 27 Oct 2026 12:27:09 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a952b02697sm1708015e9.9.2026.10.27.12.27.07 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:27:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= pq0PzXFXasFa6FkofMHKRqN1NPSHvU+K7DkU8wGiJlk=; b=B7Ayo9AehP+74+ln lET8Jx5PAP6Ll/MOmc7bWxyAuTrv1V1nVoSvfL6qCZ8Y4Bt5mArYQOZl+z6f0Hmy IiZK7i0nvHtoY95I6wDS6q8MAvW7yLo/tn4HIwWP0YLeQ478abu5MtP8nkRs74qk 2SvthcgksT3bfYcsGKhjUiAlGH41jFIYJQjA5pLFILMAVoFeqUpAx2GtiMsu9CKF bO4O2dHCOvhBtQfk7BqjFZree65lAE9nkLKk6TEq9qZjqlxYRdQLo/zkMHyzRjU6 jvbL1o3SQaMDLsmuVSZ5+TJwW8LqM39WAZZMXbktV50rwTwJTBvKJbUfTM6pSys9 yecH+g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129229; x=1793734029; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=pq0PzXFXasFa6FkofMHKRqN1NPSHvU+K7DkU8wGiJlk=; b=OeUuMmUu5jrtvAhdTfCQ/7MBkZmRIfnChATIrAZdC2ZT2qt/alf0nNCLnbm9oh4DE3 u9Jwy81PPJuVBzVK3JxdFxLfSj0zVBS2+jZym+o4+ucmuE25o1mDvyVLJ12tI9Sqyojz 4Es+CdLGJUv1MaBhFfdfYkZLTinE+qq/iCc16gYK5rNtoNxrXDR1B0IvfS50OvGP3n2z x3PwSZr10Fe6no9h2434O5m3jBlWQ8sbUxijRqspCOYEgtKqEfn7B91dUrJtmGRMIJuw Wyrh5Exer77lrsUKh2zvYViGME76yq+sCMtSqhIVP1KHN6W+1WIURadHblYFt8VoUhHw wClw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129229; x=1793734029; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=pq0PzXFXasFa6FkofMHKRqN1NPSHvU+K7DkU8wGiJlk=; b=wZ2dxNAxUei2YJvjRYF60B6Is+CXSpca10zv3KXo1qy29xGqJoBnII46UhJmu9TO9B v2XCMhk84dlFKfomrZVCsZygdv4LMXmGTa043XRk4eAZWwcM5EMQRP0E/+sTgGldE3RC smP+1Kw0ibBYSQbVD5xVFvA5ID2XE3bjJ1MjdZI1sdVBnEHi6gVeTcheHRZ20vRHEuFx yJhwiRvxuNepyGw+t0t/JT8meVlmskRyE01QnMgUYScmB3tYzBj+U4HYR4ZAUggDPNFH IQ0XUi1ViS6hOR0ecFcc5/ABE6OI/EITYMHw6EGKJMOFWxxVs1WI3YwrHFT8Xjymma/v D29Q== X-Gm-Message-State: AFq9FYL6bMy/nMjIgkXgOdmH30f1+vkNU5p30SUrzDc9qDO5R1hUzdGF n8+Rrq6vwRuTEchby4iX9KML5urxwlkapqsrJveulxwjqR6F3qRLyO5Cd9B1vytj+uqWqGk2Dav Oa+4cf2xTS4HxlJWJD5Gczm56w5l0W4Nr/MwxKvNBvITHXGOox7tuKeb8y38xBr2Ywg== X-Gm-Gg: AYBFou2bYw43O4gv+HFU/Mkd7uoIto8Qn78A0oRkLsVbUdid0gpqafKbrOe/pfQScAh +IobyEhIUBat8DqZJ+CIbKPEXM9UUVSW/TYGpHjy6cLSGprX8t6BqgB1Uo+yt08jqnPYEWksF7R 6oA915ShX4YSOZ0EWjy0pdDjFYl699PFkVHyQJZBZXv8CqIA4bTraBuCwZdcYLJtx2OoPvEjsyi Qx0KR3ngR6JHdm5ijOzZQD1RGV9ZU6nzRnFU7X/nv1Tco69z1v9dECb4xg3RFSHOgzqjyU3drEA eTwQQdNEcdfJ7uGerRRzpoFkJQWzLe0Buj+OUy570pfi1Y4CU0Wc50A0wOLZD9lkCQr3bnMOKVH 5VahWIn2095fIycvu6MSw9HeUue7SbD45TaD+6zvej5IKhbj8/rDrXu8C X-Received: by 2002:a05:620a:1a0b:b0:93f:102:566 with SMTP id af79cd13be357-940ef9bb6femr1710904285a.67.1793129228635; Tue, 27 Oct 2026 12:27:08 -0700 (PDT) X-Received: by 2002:a05:620a:1a0b:b0:93f:102:566 with SMTP id af79cd13be357-940ef9bb6femr1710900485a.67.1793129228086; Tue, 27 Oct 2026 12:27:08 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 30/59] Kconfig: Extract config IMX_GPT from config IMX Date: Tue, 27 Oct 2026 20:23:11 +0100 Message-ID: <20261027192341.9197-31-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX/yC0BK0bNssW VEsBQ9X62PkVKK4JULryKJslqD5QL/hTa1bQQODJUW+F7nbQvk3PG8c+euH3H74SKf5lKFVcYl8 JnLQEq89MbxXsxAvNRes1YB6vlaTc4sbgNK+AJoBP6UtsB4m4q3rlqp1hyivelTY1KcTre8LVm0 HrMKw5ezrNPfPd7Qh9WqvwS1XY8Oh+z57kQ2PolD5ilfpmhFVXF3KzDUdi7kEw46aMJeX91Lf4c zHr/dxepki1dYb9I0DFjf/kVmaVM9mjWzSsy6HQhozPNFQp5LWf+h48ICAumjprM5FTKEXcuOO8 S7/FYimE8K1hmNl2qy72SIxM2CSmuueEFKJPu/T2gBbVtOW0rFjgEjbwMa1t88O8RhmMJiu48wX seJby7MP0lAFV/UqCoKJ/d2PkcodzANbB3XXoceVMWJ2+DcZhf7ZUDr97Z7Id+hgH//hFCmuCP0 U7ENzAXp7st+A4sSdXA== X-Proofpoint-GUID: hA5lnHJcuY0k-x1BtMIKUjfXEr90ruiL X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX/myyEVEmXI8G WAvhRYSfNNyFGWFPFaweBfLPGLbXjTAzltcMTZA1rGpa8nVHZ4HxjEXjd2I/82zH53+aAVNZoo2 v4bss1oTcAr4XKyrykKrZNGr84szeVg= X-Authority-Analysis: v=2.4 cv=PsYG/AM3 c=1 sm=1 tr=0 ts=6ae0fb0d cx=c_pps a=qKBjSQ1v91RyAK45QCPf5w==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=pGLkceISAAAA:8 a=FRSEYCzRAAAA:8 a=EUspDBNiAAAA:8 a=SVMGOoKj2laJ7-jveC8A:9 a=nAlHLIbS_sV33Ou0:21 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=NFOGd7dJGGMPyQGDc5-O:22 a=H4N_Y-AU75W7NKDNhZlT:22 X-Proofpoint-ORIG-GUID: hA5lnHJcuY0k-x1BtMIKUjfXEr90ruiL X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 spamscore=0 phishscore=0 adultscore=0 lowpriorityscore=0 priorityscore=1501 bulkscore=0 impostorscore=0 clxscore=1015 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129367784154100 From: Bernhard Beschow Over time, QEMU has grown a number of i.MX boards and the monolithic config IMX drags in unneeded dependencies into each SoC model. Extract config IMX_GPT to eventually eliminate config IMX. Reviewed-by: Bin Meng Signed-off-by: Bernhard Beschow Message-ID: <20261006083445.30362-26-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/arm/Kconfig | 7 +++++++ hw/timer/Kconfig | 5 +++++ hw/timer/meson.build | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig index 4d9279ca2c8e..57bff99c2585 100644 --- a/hw/arm/Kconfig +++ b/hw/arm/Kconfig @@ -483,6 +483,7 @@ config FSL_IMX25 select IMX select IMX_AVIC select IMX_FEC + select IMX_GPT select IMX_I2C select IMX_RNG select USB_CHIPIDEA @@ -498,6 +499,7 @@ config FSL_IMX31 select SERIAL_MM select IMX select IMX_AVIC + select IMX_GPT select IMX_I2C select WDT_IMX2 select LAN9118 @@ -512,6 +514,7 @@ config FSL_IMX6 select FSL_IMX7_SNVS select IMX select IMX_FEC + select IMX_GPT select IMX_I2C select IMX_USBPHY select CAN_FLEXCAN @@ -592,6 +595,7 @@ config FSL_IMX7 select IMX select IMX_FEC select IMX_GPCV2 + select IMX_GPT select IMX_I2C select WDT_IMX2 select PCI_EXPRESS_DESIGNWARE @@ -611,6 +615,7 @@ config FSL_IMX8MP select FSL_IMX8MP_CCM select IMX select IMX_FEC + select IMX_GPT select IMX_I2C select OR_IRQ select PCI_EXPRESS_DESIGNWARE @@ -637,6 +642,7 @@ config FSL_IMX8MM select FSL_IMX8MP_CCM select IMX select IMX_FEC + select IMX_GPT select IMX_I2C select OR_IRQ select SDHCI @@ -679,6 +685,7 @@ config FSL_IMX6UL select IMX6UL_LCDIF select IMX_FEC select IMX_GPCV2 + select IMX_GPT select IMX_I2C select IMX_USBPHY select WDT_IMX2 diff --git a/hw/timer/Kconfig b/hw/timer/Kconfig index e1b751a54a7c..49a4d20e55b1 100644 --- a/hw/timer/Kconfig +++ b/hw/timer/Kconfig @@ -23,6 +23,11 @@ config I8254 bool depends on ISA_BUS =20 +config IMX_GPT + bool + depends on IMX_CCM + select PTIMER + config ALLWINNER_A10_PIT bool select PTIMER diff --git a/hw/timer/meson.build b/hw/timer/meson.build index 8323efaf46b6..477dd47486ea 100644 --- a/hw/timer/meson.build +++ b/hw/timer/meson.build @@ -16,7 +16,7 @@ system_ss.add(when: 'CONFIG_GRLIB', if_true: files('grlib= _gptimer.c')) system_ss.add(when: 'CONFIG_HPET_C', if_true: files('hpet.c')) system_ss.add(when: 'CONFIG_I8254', if_true: files('i8254_common.c', 'i825= 4.c')) system_ss.add(when: 'CONFIG_IMX', if_true: files('imx_epit.c')) -system_ss.add(when: 'CONFIG_IMX', if_true: files('imx_gpt.c')) +system_ss.add(when: 'CONFIG_IMX_GPT', if_true: files('imx_gpt.c')) system_ss.add(when: 'CONFIG_MIPS_CPS', if_true: files('mips_gictimer.c')) system_ss.add(when: 'CONFIG_MSF2', if_true: files('mss-timer.c')) system_ss.add(when: 'CONFIG_NPCM7XX', if_true: files('npcm7xx_timer.c')) --=20 2.55.0 From nobody Mon Nov 23 04:26:25 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129264; cv=none; d=zohomail.com; s=zohoarc; b=jtjC4Gk6HSsrXq4Ctw9mdGTw3RqrQl55H+zPYYoXc7pbwp2lotGSlsatirAhLwNcIReNoLwU6sE4AKEt/rLb6ExmofMjXeGfjh48162x8byEuHugWEmWErJYyS25sLXI0Ds/TQqX3sRP5HWIDu9LrL7ToPrShnGCKFRHMWNXhc0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129264; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=H8WA//NgOVo1jWnA6sZZHm8LNmFJ41d52YMJfO1Z/DY=; b=QEMh4NoJcVY6qU7hNnUQwxGZBvNZ30qzrxMmnr1AclR2t0qgRoIX4i22Vw79rXgKLfjRWc5b7S6JIhsR807w9T/5jI8XRHSBa55bw8wEKMb8q4Rn4zO4PnTEuU/vIIBne7ILyJ/tee1DBgBADtj5/Dd1fhGueTcdvUwUKQZbYDk= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129264752909.8475070260345; Tue, 27 Oct 2026 12:27:44 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmpN-0000Sn-Bf; Tue, 27 Oct 2026 15:27:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmpL-0000L2-6u for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:27:19 -0400 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 1xLmpJ-0002Gp-8k for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:27:18 -0400 Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIIALb3486335 for ; Tue, 27 Oct 2026 19:27:16 GMT Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjjbtc30m-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:27:15 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-93f6f4fe531so24529385a.0 for ; Tue, 27 Oct 2026 12:27:15 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a952541340sm1793115e9.6.2026.10.27.12.27.13 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:27:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= H8WA//NgOVo1jWnA6sZZHm8LNmFJ41d52YMJfO1Z/DY=; b=DN7agEjrNsayETE4 Me/a/+hjU/qs2ttekx5H/paJ7+8Vr7MBWuIxmc+UvTyiqtRDtW0yNI5c7UGs2le7 r0yiVgcCfK3EGSmOsrd8e4EZNPsTlU7xdLh/FqSFEGPRFnT2MmzV+nlGT9GgKV7O Wg6AFGe8+LxyV6+nAV41dYW5gwpik4Dxs42KYV8jvCGKtXE15xRYqIVLAwrx/CO0 qAe1fU2t0GJ37FvohebTydhBhTHpFXbpTQGT9ciUN+yGGzDDo8q5yfpfXqkFATTq tZxkssSCbM/k471+4/Q2CKB9f4mFUAYxUiJjybWQGh9kbeN3glk6JV/MeVpSH1gW n9RGQA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129235; x=1793734035; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=H8WA//NgOVo1jWnA6sZZHm8LNmFJ41d52YMJfO1Z/DY=; b=SeeuXf6XHjiu20NOtBVtyvq2MSt8RjlO1+X57nIyNisaMJ+8J4Ijt9suq+DjHeSDn8 Zb9ryhvK5Lsf08mEQcfso4RiianpM9/g9RwAspHdzi53q0w9X0eYcniCM+C8UotLUU97 ZS8r//q/l+MPPmHpKDNEQjd945iKKFfNJz4gCpDgIbTtSjhRQnjM56ZVyUyABXJCAFxG kJ5C3gP8elgJSO/11zODRUum8tXhXdIDtg9nVc2T5TEqzsqQZf6G1vZxOOcgnm9xoY05 3xEX8gVhhO5TfoMA+5BgKeB5yO6/tTF7Cslt1meUWzIlRVkcCGiTsWnrrmPoFXGfoZeJ NSqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129235; x=1793734035; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=H8WA//NgOVo1jWnA6sZZHm8LNmFJ41d52YMJfO1Z/DY=; b=E4ocQHK2TTjU6mftseDsiWdNI6jrpgoaQuQ2y0ZayQV72VQ+TnKMXlEFUkf+M2VRm+ 9KUtfASispWjGu4P07zWh3Ngqk3g5fAJlORRb5xwGjRx9HAiGnotIn9UyhPVTdY58H9G NZpmbSpTsN656ihoYfm60SdefCXoZXeI+FXNqCyhzlPZVr4ZMe6mXORTWc8DdxFd1955 vXEvwr/Ikyoln7aBry45NJB8bTSVJcW46qF7VDj/MJYq7qcH8YKfCj50MJ/UIXyxIeZU TVZ4R4cDyv2SiH7a6pl2yxtasMUNe1xjb71KOQ6QWwzTkIHsbS4FEc1uRMBnER1JzvDh qVSQ== X-Gm-Message-State: AFq9FYJ7QtQFIYbhJaoqasnl/ZcnTlBbAQy5Ljy/+DSOOo3VI1DSM48p CGGMwgKGAm3B7aGnnt4AdEDzif9gciiq4qzwhMrSw5wQuPF9kF0VefMPA2EgKPE+hpxj0wIaCuX NHiJznO3BoaLQLx4PFWNahS+WcH4M0paggqBJ6Z645JtgR6D7VjykOTuXIh2AaK/xzQ== X-Gm-Gg: AYBFou366iW+QC+Yh2hCcvFTWMFBiFM3Hn9WbJkPEoLb88GETOxbxEzq9dMP4hjcfhT akChPApd1YwDVGr4Nb5HN2FenSxVv6iAHT7NW9QqM9pyyXCfbTkgbe859tltzj3YY4fWQj75Qsx K7/Ss8z/QFRJvvXyzAdCBjLOzp0+a3BABl6J8zPa4RAtcqg8dzrPZmZr1X670I9Vm6oNOuBl1YK fFga8NH8qDgjQyIwrI1D4AFG+HAu2wa+M8djLfZ1iv9bxlp6lSp0rpgiuf60ytbhWk1PYiSDTnt cwlWh36onB5z9XTP6DEjpkLU/LEFL+XFQw/MuUueRnA3cPHiwkks/HXJLEExIF8dpDgeDmqSZN9 IHilijTpO+RGLQuPtv8+3u+RDlAcE1iUpMI57XLPSXlQ17TXqpTRKiz67 X-Received: by 2002:a05:620a:460f:b0:912:1206:ddd1 with SMTP id af79cd13be357-940ef7af32emr1637643685a.1.1793129235371; Tue, 27 Oct 2026 12:27:15 -0700 (PDT) X-Received: by 2002:a05:620a:460f:b0:912:1206:ddd1 with SMTP id af79cd13be357-940ef7af32emr1637640385a.1.1793129234840; Tue, 27 Oct 2026 12:27:14 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 31/59] Kconfig: Extract config IMX_EPIT from config IMX Date: Tue, 27 Oct 2026 20:23:12 +0100 Message-ID: <20261027192341.9197-32-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX2WkyhDOWuwwl lSRUCK7KmroO9XJMTcs5RaFfzoEiog+4ErBAz1yaBq456DkvsNBAqRNMXmAPR+w+4ZEyxzVMTY4 hIeUtVYjq950zi3Ny2Km5r273IovNFI= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX5AtnCNoypnDL XiiA6Pqpi9bWL7da45iIIrf/J76TjB1qmUqTamYXT1UkHsjGEiBSwY7OfeqVp2jtIHHDCq5D1cu +LALYnoIoLcYnhn6VMby0Xk1y1U88ehzoRV0mgUNYD/SNczYVcLkv56ckN0njrIlAp2TuqdB5YQ cTj21vVNO/1Q8EaUFDIAUV9x45+YSY8t6zQZ8VESteyBIF1Shk2lG74igAtKYqhWS8eujB59oD4 Ydyz31E4A9z2j7G0HMRwHALubE2X0z5tCld28I4GnZHtP6vtKUegSsiKvixBQQl6HrtCQsTCfhG 2LGL9gnC5WG1TMkHgwoSLY4C8rjwaB54nCBsBTkzaqBfi2XwvuRtWJQXo72V159T4UDXtjo9Wim qt3blzjFLcI799NEmaYxf/do17Yjjun/KcaCe/cb91BFZH5TqJDHgBOomatY3H7yannZ6G7n+vG Ylz8PbQoLOBZ1Cfpkfg== X-Proofpoint-ORIG-GUID: PzuLYK9m0ChW-muzWJa7z81H-lb_cwGF X-Proofpoint-GUID: PzuLYK9m0ChW-muzWJa7z81H-lb_cwGF X-Authority-Analysis: v=2.4 cv=XaIcX455 c=1 sm=1 tr=0 ts=6ae0fb14 cx=c_pps a=qKBjSQ1v91RyAK45QCPf5w==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=pGLkceISAAAA:8 a=FRSEYCzRAAAA:8 a=EUspDBNiAAAA:8 a=hGyT-vGbCqUQOYL4C_EA:9 a=0W9TD_AsGAYKDBPL:21 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=NFOGd7dJGGMPyQGDc5-O:22 a=H4N_Y-AU75W7NKDNhZlT:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 phishscore=0 spamscore=0 bulkscore=0 priorityscore=1501 clxscore=1015 lowpriorityscore=0 suspectscore=0 impostorscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129265768158500 From: Bernhard Beschow Over time, QEMU has grown a number of i.MX boards and the monolithic config IMX drags in unneeded dependencies into each SoC model. Extract config IMX_EPIT to eventually eliminate config IMX. Reviewed-by: Bin Meng Signed-off-by: Bernhard Beschow Message-ID: <20261006083445.30362-27-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/arm/Kconfig | 4 ++++ hw/misc/Kconfig | 2 -- hw/timer/Kconfig | 5 +++++ hw/timer/meson.build | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig index 57bff99c2585..4b52df2a324f 100644 --- a/hw/arm/Kconfig +++ b/hw/arm/Kconfig @@ -482,6 +482,7 @@ config FSL_IMX25 select FSL_IMX25_CCM select IMX select IMX_AVIC + select IMX_EPIT select IMX_FEC select IMX_GPT select IMX_I2C @@ -499,6 +500,7 @@ config FSL_IMX31 select SERIAL_MM select IMX select IMX_AVIC + select IMX_EPIT select IMX_GPT select IMX_I2C select WDT_IMX2 @@ -513,6 +515,7 @@ config FSL_IMX6 select FSL_IMX6_SRC select FSL_IMX7_SNVS select IMX + select IMX_EPIT select IMX_FEC select IMX_GPT select IMX_I2C @@ -683,6 +686,7 @@ config FSL_IMX6UL select FSL_IMX7_SNVS select IMX select IMX6UL_LCDIF + select IMX_EPIT select IMX_FEC select IMX_GPCV2 select IMX_GPT diff --git a/hw/misc/Kconfig b/hw/misc/Kconfig index de95648f0b0b..d625141aafd0 100644 --- a/hw/misc/Kconfig +++ b/hw/misc/Kconfig @@ -91,8 +91,6 @@ config ECCMEMCTL =20 config IMX bool - depends on IMX_CCM - select PTIMER select SSI =20 config IMX_CCM diff --git a/hw/timer/Kconfig b/hw/timer/Kconfig index 49a4d20e55b1..e098376d4087 100644 --- a/hw/timer/Kconfig +++ b/hw/timer/Kconfig @@ -23,6 +23,11 @@ config I8254 bool depends on ISA_BUS =20 +config IMX_EPIT + bool + depends on IMX_CCM + select PTIMER + config IMX_GPT bool depends on IMX_CCM diff --git a/hw/timer/meson.build b/hw/timer/meson.build index 477dd47486ea..e2bcdbdf6530 100644 --- a/hw/timer/meson.build +++ b/hw/timer/meson.build @@ -15,7 +15,7 @@ system_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exy= nos4210_pwm.c')) system_ss.add(when: 'CONFIG_GRLIB', if_true: files('grlib_gptimer.c')) system_ss.add(when: 'CONFIG_HPET_C', if_true: files('hpet.c')) system_ss.add(when: 'CONFIG_I8254', if_true: files('i8254_common.c', 'i825= 4.c')) -system_ss.add(when: 'CONFIG_IMX', if_true: files('imx_epit.c')) +system_ss.add(when: 'CONFIG_IMX_EPIT', if_true: files('imx_epit.c')) system_ss.add(when: 'CONFIG_IMX_GPT', if_true: files('imx_gpt.c')) system_ss.add(when: 'CONFIG_MIPS_CPS', if_true: files('mips_gictimer.c')) system_ss.add(when: 'CONFIG_MSF2', if_true: files('mss-timer.c')) --=20 2.55.0 From nobody Mon Nov 23 04:26:25 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129272; cv=none; d=zohomail.com; s=zohoarc; b=ZF18IQPcyCuWIZ43ZhlM8FkP+KmgIommQXDWbDUtNVmz55hxo+CUXHXI++C2s1UySETNG7w+siVFbeg0arpQCsTSn2qnBcMIR0RytZyWCBwPkL2KD/LFGjr4TUQSYQ6ASnKMZOCZeNFQleXNk2zHmu8ZsXOPe8acfXTqg2WPdV4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129272; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=aCYHpJ/P3Gn3VFwnE21cCPUzNvlBOm/7ggsp3gZuCpQ=; b=YtNYoduG0G2zn1j/qqClzcRw8xkgBzdauu4xvA/evvp2fm7uzqDXG1qBPzlQQAMPL65GNlCE4YCXUmmXKMKWXBHYTOd/P+JEeaGcOq1zdm4KP+p9fzUh6PAgd5AYM5chIXRsslJzRYYdxK9VeXSbIOuYMD1zOjfvbgGBVphEcTI= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 179312927265015.310170812327215; Tue, 27 Oct 2026 12:27:52 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmpW-0001Jr-5o; Tue, 27 Oct 2026 15:27:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmpT-00017U-EH for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:27:27 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmpQ-0002Hz-V1 for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:27:27 -0400 Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHpFC4036054 for ; Tue, 27 Oct 2026 19:27:23 GMT Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjyjprqp9-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:27:23 +0000 (GMT) Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-93cb93c874bso249219085a.0 for ; Tue, 27 Oct 2026 12:27:23 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e3ecd3c32sm25200443f8f.47.2026.10.27.12.27.20 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:27:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= aCYHpJ/P3Gn3VFwnE21cCPUzNvlBOm/7ggsp3gZuCpQ=; b=nK+k0uuA6bap9OHb /XfNP/M3w45QM9aSg5VtEhcPVlRg/13FOTPZy00qLIqAxxeB4bKTc/6E9G2tnu5F v3638vgjRmz4YyzAUp67UwJfYl9iMAa4ySaWVg/d4hnuIcXVWxqZNB3PcJsFr2Uo t7mO1gxxxtQP9IYQ7q9yfRi1suWHfJfGgbr8kTEG9nW9S2Okf0b5AApPq2hdJheP HXlCy9ISdbOHXak0V/9muZk50E6LNN/AUfOqCFQ9Gi5fmiaz6myMFFBJvv49cyhu bc7rrCWu8HsMxu+Tx/GRLlcqPkuoGTt/HgjHZDqd4VwYtgdsSs+1ck6qu8Qwea8m 27HJBQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129242; x=1793734042; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=aCYHpJ/P3Gn3VFwnE21cCPUzNvlBOm/7ggsp3gZuCpQ=; b=LrGT3wQACcpaVf6zs41SQnxs3h9zmcJo4ArivNfF3YDxj17v0SBbrobhTA8bnJtsJf NkLkfzN0ckz2Feq4MjBh7IXA645+Wv4Ay2uRISEPi5XqKhD27TFp279oLvWRbyTf5CKg bfTyqO2yhO6yxfBZfQxWryzfXvMC/p3Sab7YMaiNtN9vHjXp52JjtJqBjsTDhei796vQ LuaoWMhl1YmvlWvkoUypkkY1w9iZ5O96k/Z/ky4uiwSES9J/M4dTUFM8bZcDXweUripa u445Y3sSmRpvEx+BeBA9UMB6zY2t5OeFOZoUicCjuI347oN4npioJwS9oR/P8UIOCULO ughA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129242; x=1793734042; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=aCYHpJ/P3Gn3VFwnE21cCPUzNvlBOm/7ggsp3gZuCpQ=; b=O6Zv939NoIW788g6/ydGYitwQDwTKDeWysdKIuclujq2sd2A5v6WR1pcOokYviQDya xmJ7LWjJqPXvTmSM6wu+x06IIOFImxcPij6nuac1VBYeVeN5Prr+phz0iyIpFScp/RTw 0XIKmQv1lUY57wY0QxvWWO9eWj8xJvQry1hnUSwXyVsxXH4Jjk+LzOniBkn/dV8Z86HC nNtVgpzehaBfSVNzrlL8Os4OM0IAmuVaUaBIB7Hutt49dQQukgbT1i3FSSRPRdisJRpE A+aatheCTN8Wb0cTcztoaqeTb2eU//jzHAyq9p2NphUf97Icit0T6e0H1goo0BHGrw08 TBcg== X-Gm-Message-State: AFq9FYJwTSyaKZ0wLhSUdLHdhVJw+F+yJzlYZbjsF6yYZO4ju2i5rB2I NnuN17I86pMwYLjL+5BJWyR1DBibIs8Uc6FNeRrh7ecXQPNJbPlsdADxxAhT1N9JDXu0Ennm+8x GXHsdG5TgoxJJID1p+aIkzvzSHNpN7Xj2g3Jfr49pnpCCUDnkYVeY1Qi1pXjT/yvSyg== X-Gm-Gg: AYBFou2EUupL0J8yjFkoZ4GgI9O9ME3ZaNjGNxA46tXMwZr+tCXOl/M3SjhwGVHyuln FGdDbtnmTfDLw7JjYFB6uZkbYAbEa1SJEqTTIOfQhSLvSx9cHHV/FIbqg+1tAFt9iaCTy9qIVuf pwR1cHWPfKaSkB35wJkDJuu4RPGIQeOpZg8N836XOjdxBGvQCb/rkq9raRuxAVLHfPab8AJvkMB hULPkwVUxHdV1uWbxQKgv8fwHjSuaZoiV31MUOOcnvK9CJW9RrrWyf1za2YYQRYw97qVf6DGsxy ZtZiUk3f1bveEZFLaDNKB/jR22icAHjBBt9vFG2VGVONsfPrJhu1Eddw88msby4X9c5nTYuJIwJ tyjoaOSc8nrPZuacIFiIU4X1PRVWfwbvLCjcR9ZPaFSg5xgVkDD98mIkx X-Received: by 2002:a05:620a:4054:b0:93c:3863:ff7f with SMTP id af79cd13be357-943f3f27babmr643712685a.0.1793129242338; Tue, 27 Oct 2026 12:27:22 -0700 (PDT) X-Received: by 2002:a05:620a:4054:b0:93c:3863:ff7f with SMTP id af79cd13be357-943f3f27babmr643708185a.0.1793129241545; Tue, 27 Oct 2026 12:27:21 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 32/59] Kconfig: Extract config GPIO_IMX from config IMX Date: Tue, 27 Oct 2026 20:23:13 +0100 Message-ID: <20261027192341.9197-33-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX9jEFua//47Gf IDPHPJmw0JtTXqcIGxfSYnpQn9kTEMjc3CVCAMm3/loXs/GePA5bPq38ywG5cIADK0GIHa3NGPX D8gq257BCGFqdFHyvgXfUhZBNK3E6IJkYbImxCq2tpxX+6oXBsbOUz2HHWpXUIVTRi2cL0iXa0C YzI4m774TTEZ/1ORbSoZCIIlCF9LBitCjKCUPeZ+b1g83ukhg7D8UvxKCRyJPrvUTHPGwJZ7cVB nMc8LvEuZIU2ZsoJj0bczSgV1YufPiC/mKJmK3qWNfe8dLa4YqVqsmUUSEls2stSWnbAq3oPHh9 05eJVNACG0CDB4VMtOfTXooIVC2OJnqXSZgBwGnZhtINUqh8REpKkW5JHJMGFruycgCx9BuQO0O X8Lqe1ajVI1I5W1ED/m6jJSMJk1MRn8g8jpahI+c2emddKkJK0ygsvxkGOdG8OtA6+8drx+Eq6/ QxFygl1mJvz9IqqblLQ== X-Proofpoint-ORIG-GUID: nEMw8vK7oRDa9n6Ne2IpKOehd0FWVKyG X-Proofpoint-GUID: nEMw8vK7oRDa9n6Ne2IpKOehd0FWVKyG X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX040KBclX5vrU RJZiTI/l4bTFzZa0c+xi/ZpqyXhG3NgaId4hKJOeVQbdAEyj4wH6b86/c8130QnZHWLQmwxGHOe Tj7Yu3tuLZMrTbtx8G44PhLy7zD14ng= X-Authority-Analysis: v=2.4 cv=JodkP84C c=1 sm=1 tr=0 ts=6ae0fb1b cx=c_pps a=HLyN3IcIa5EE8TELMZ618Q==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=pGLkceISAAAA:8 a=FRSEYCzRAAAA:8 a=EUspDBNiAAAA:8 a=AV7NJlB2dRExfWgJ-qAA:9 a=egRM8HxTFvu5Bn7Q:21 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=bTQJ7kPSJx9SKPbeHEYW:22 a=H4N_Y-AU75W7NKDNhZlT:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 clxscore=1015 malwarescore=0 bulkscore=0 suspectscore=0 priorityscore=1501 spamscore=0 adultscore=0 lowpriorityscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129273861158500 From: Bernhard Beschow Over time, QEMU has grown a number of i.MX boards and the monolithic config IMX drags in unneeded dependencies into each SoC model. Extract config GPIO_IMX to eventually eliminate config IMX. Reviewed-by: Bin Meng Signed-off-by: Bernhard Beschow Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-ID: <20261006083445.30362-28-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/arm/Kconfig | 7 +++++++ hw/gpio/Kconfig | 3 +++ hw/gpio/meson.build | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig index 4b52df2a324f..92e6e3b4790b 100644 --- a/hw/arm/Kconfig +++ b/hw/arm/Kconfig @@ -480,6 +480,7 @@ config FSL_IMX25 depends on TCG && ARM imply I2C_DEVICES select FSL_IMX25_CCM + select GPIO_IMX select IMX select IMX_AVIC select IMX_EPIT @@ -497,6 +498,7 @@ config FSL_IMX31 depends on TCG && ARM imply I2C_DEVICES select FSL_IMX31_CCM + select GPIO_IMX select SERIAL_MM select IMX select IMX_AVIC @@ -514,6 +516,7 @@ config FSL_IMX6 select FSL_IMX6_CCM select FSL_IMX6_SRC select FSL_IMX7_SNVS + select GPIO_IMX select IMX select IMX_EPIT select IMX_FEC @@ -594,6 +597,7 @@ config FSL_IMX7 select FSL_IMX7_GPR select FSL_IMX7_SNVS select FSL_IMX7_SRC + select GPIO_IMX select PCI select IMX select IMX_FEC @@ -616,6 +620,7 @@ config FSL_IMX8MP select FSL_IMX7_SNVS select FSL_IMX8MP_ANALOG select FSL_IMX8MP_CCM + select GPIO_IMX select IMX select IMX_FEC select IMX_GPT @@ -643,6 +648,7 @@ config FSL_IMX8MM select FSL_IMX7_SNVS select FSL_IMX8MP_ANALOG select FSL_IMX8MP_CCM + select GPIO_IMX select IMX select IMX_FEC select IMX_GPT @@ -684,6 +690,7 @@ config FSL_IMX6UL select FSL_IMX6_SRC select FSL_IMX6UL_CCM select FSL_IMX7_SNVS + select GPIO_IMX select IMX select IMX6UL_LCDIF select IMX_EPIT diff --git a/hw/gpio/Kconfig b/hw/gpio/Kconfig index ea0fb72b4062..5ea2c5f4277f 100644 --- a/hw/gpio/Kconfig +++ b/hw/gpio/Kconfig @@ -1,6 +1,9 @@ config PL061 bool =20 +config GPIO_IMX + bool + config GPIO_KEY bool =20 diff --git a/hw/gpio/meson.build b/hw/gpio/meson.build index 8ede5e88ae5e..d60dc42ab303 100644 --- a/hw/gpio/meson.build +++ b/hw/gpio/meson.build @@ -1,3 +1,4 @@ +system_ss.add(when: 'CONFIG_GPIO_IMX', if_true: files('imx_gpio.c')) system_ss.add(when: 'CONFIG_GPIO_KEY', if_true: files('gpio_key.c')) system_ss.add(when: 'CONFIG_GPIO_MPC8XXX', if_true: files('mpc8xxx.c')) system_ss.add(when: 'CONFIG_GPIO_PWR', if_true: files('gpio_pwr.c')) @@ -6,7 +7,6 @@ system_ss.add(when: 'CONFIG_PCA9554', if_true: files('pca95= 54.c')) system_ss.add(when: 'CONFIG_PL061', if_true: files('pl061.c')) system_ss.add(when: 'CONFIG_ZAURUS_SCOOP', if_true: files('zaurus.c')) =20 -system_ss.add(when: 'CONFIG_IMX', if_true: files('imx_gpio.c')) system_ss.add(when: 'CONFIG_NPCM7XX', if_true: files('npcm7xx_gpio.c')) system_ss.add(when: 'CONFIG_NRF51_SOC', if_true: files('nrf51_gpio.c')) system_ss.add(when: 'CONFIG_OMAP', if_true: files('omap_gpio.c')) --=20 2.55.0 From nobody Mon Nov 23 04:26:25 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129265; cv=none; d=zohomail.com; s=zohoarc; b=fVuJ3CAtlGdwkk+TdDm0PAike0bsnfEkQF1wNgcJ+dpApHvDYqffiqlRS/jK751QI0gr9SSWAbqTqeFf+lZ7I+tsEZqZDeTQaNE+eZ0mx39cSs49cLTGkLIIYM10j9QhiwWhUPq/kihb0gjXiz85NRrOAIPjlLMOwVTFLYqmkyM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129265; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=JI1EdqtvtwZnB/SoTaofspaQvuOmXYxZ5jh6tyKabyk=; b=GdVy6U86TS7gSWvQ7AU4duTS2aGAM3MkzZoKLDOX7TafXomwELohuA1Cxhm12ug8cbyV05eZ4iz1A2RD+T3FWF5qclAZ0C0R9sAE+lE5of6UMB8JIUoJBQeYJEX9mqeBX8DIoMT2Jw5QECbju58vsB5grYMoa+/YzZ53Z/5Kd7k= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129265333933.1159215902198; Tue, 27 Oct 2026 12:27:45 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmpd-0001n4-7V; Tue, 27 Oct 2026 15:27:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmpZ-0001bU-Dn for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:27:33 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmpX-0002IW-Gm for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:27:33 -0400 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 69RIHx5d1459929 for ; Tue, 27 Oct 2026 19:27:30 GMT Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjy710vdg-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:27:29 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-93f6f4fe531so24571385a.0 for ; Tue, 27 Oct 2026 12:27:29 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a92eb9b52fsm6197945e9.2.2026.10.27.12.27.27 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:27:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= JI1EdqtvtwZnB/SoTaofspaQvuOmXYxZ5jh6tyKabyk=; b=GE/tIw5X3dDpdATj QrFpvCMXKfiIo1THupvjz4mbqazsXDr/1Fd5MY7dI8bDdKWwfEfur1W8yuauDMA5 BhQEL8VXWS7q+/4sqlu3zCmqGOwOAMruIhn6bjbjag7Jt6emR9ddnKHIKucLYkOT jz0o+pPkRsbAs2a4mYaDSuajKYwUtaZGSVzxkEBhPR5Hr3KTqn3MK7iCqKFBQam+ Qt60sDB7EpmQ+homxsyrVXyHQRtcBtTk1oyhJA3n8iu6UQTGzLkqep6GNJDg72oG BpCx/f4tXZGCQLCfoK3aW91yyyiXRzwP38yCXUUfIUvGDcid8gNx2h74Lgka1Omv PYljxA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129249; x=1793734049; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=JI1EdqtvtwZnB/SoTaofspaQvuOmXYxZ5jh6tyKabyk=; b=fMZfxL2yqOlBil7rGaSEYbyzwm0amh8LWUIPfFQX+15J3oK7Q9fSNtQSpHsqRVUH72 U8XZhUGLyBjpSKZSx6URaz6MRXnmMMnUB+O0Tv+sa7FH1BJA7Y8ZOK57aLwiC19vYby5 cx+ZElGgmJwijqBNNS2nGsl8yswYrlWk5Qv9TKCpC36VHL/BDTnqW/fs36+JTPtOYRig FuGQvWqUGjt62jekOIcWrskwG7l+B2rd+HzxI34M1WxIRMia9FPOlHCokO/yUNi95t8S 1fv17F5nyGj4s69DLHpe7ZrxIRXLNUc1ZfT5ENxFA1MDJniBxzDL65YrlEITZB3MlfNu 7G4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129249; x=1793734049; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=JI1EdqtvtwZnB/SoTaofspaQvuOmXYxZ5jh6tyKabyk=; b=hCGD47UgjvMPt+p0DlnGJEJtwMMtCql07WtEEtnG9Nzyg5WhIGZU3/HzY5ByjK9k79 2W9TEmZten5f7cYUsmqDzBwg4vRUKE3FJxxCFc35Q/K7rjOY6uBUcijFLusxnLcvTMCi GwV81JLUlUUKfKvJ0PLEhL3AsQLoFmdWIYPY772zfYxTrFpxfMUkJ22dm0SU5AkNA4U0 syUwuxy8pP+rvBdqY0RSgcKxTDIRQBhsMD0WBsk9XXGVP6gNnziKa62KqUrzUOqKBAkS X6xHKodrtqwSRx4x9logVXg3EO3VV4NqJqEBQdy2gRJbvw+xFKrtzu/WoTOJoWRyc3o9 Qppw== X-Gm-Message-State: AFq9FYLP4+elnSXWauWM/at1ihiF/Q57Eb0r7/sLiEaklM44V0LO2V6P 9EyXngqD0k1ybAnDmMzln0L79+Ew7OMrSJQfUyqBWmWmmZqobjbdl2fj+OjxH2x7RFehZclKMk7 vuRVIU7CQqNxgKK8tRKxsJK8Jmun9lDAbXPASO87wdfIY5s42mxbA0FqCLr+5RfZebw== X-Gm-Gg: AYBFou1JqP6ayhZBcwx+HVthsJ323pNoPqu/gpkXj0enwPamcZA8sbO6IdGzPUlOQJG lb2esdqRdtbfzzQwKVuDm5dIxyx+wf1X9CmBGBMNmr8rpWwV34a386bJ7+qRkiLL/qy9BPLt1lY 9aaPwdFyqQvVEleHUuhGDISzER/YAfmw7ydpeCHzLJui49/3SbI5FfQKxNFuQEiOsbZ95w/v1LT 53nxngP2m3NmAOKPs2TkaMqMm3IjgV4LEhCNZDM4xme3IyMgvgS7aro3P0CcbsftK9yYpbrfTCt 6oTNX4uhW5Ms44M6Pl1DtgkwdgZuaJ7l0mPpm10rx5/dOGcAv12qFSllprYw/myKo0udMCMyVzo xC4Dc1W64SUUh8R7Kr67I3wE38WUY+pN2tHgqSHiErEyqpJNpxTCP7mYj X-Received: by 2002:a05:620a:c4d:b0:93e:c12c:4408 with SMTP id af79cd13be357-940ef995984mr1769564285a.68.1793129248877; Tue, 27 Oct 2026 12:27:28 -0700 (PDT) X-Received: by 2002:a05:620a:c4d:b0:93e:c12c:4408 with SMTP id af79cd13be357-940ef995984mr1769559885a.68.1793129248329; Tue, 27 Oct 2026 12:27:28 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 33/59] Kconfig: Extract config IMX_SPI from config IMX Date: Tue, 27 Oct 2026 20:23:14 +0100 Message-ID: <20261027192341.9197-34-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX7hjazHbub2ZT 4tGVknhwl3SZtMcwnsZfCMPZs8MpHn4QF1vCDfgwAJPuJRr0CwmZnIXpEP6ofN7KOjb7Pv6dLw4 nyhoCnrUU/MmRAWJRFOjCoJiA0WUjWqZBvLJRbqvar7i/ZvaQfrPsU+MmUrHG4oCWvbUQHpTEWe PGbJIN+h4P6R6l+Ltgxm8jn/RayYy1dGudVp3+6YELusc+Qipvnb+Ac0PoaUJtZTA3MY23FX5rt js+BQoUuqIvlAvjKk7eOHBd0LX/FQZA2vwS290UIhscVPtKj8EVk+e4wGoemslZP71Lp5nOlSQP r9svfn4wLKdVU0QDH+UrB90aErmrK52E6ltHaCWSM8oHNOji+j/QBCCRhBGsSsMcozG6L8zFVkj XukQw8xHutC+vK0Vgl/nuJQFRp+YNpluP1iraXW3ca0wwTcth7GN9RGR7bhB0IPiQ4Sh1sHuvzp iV1cT2ALGw8l4/47y2Q== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX1RcmvXEkJ0Wg FSpIuIBUyJ+3tTpl8Ul6l/XEr8JbM5VfdaRML+IxdafeEyyZF2YSSsTVWLT14qoOFdhByZf7eBI mTWYUxR9rhWVRmUDypxElUdDaLM/t9o= X-Authority-Analysis: v=2.4 cv=JspkP84C c=1 sm=1 tr=0 ts=6ae0fb21 cx=c_pps a=qKBjSQ1v91RyAK45QCPf5w==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=pGLkceISAAAA:8 a=FRSEYCzRAAAA:8 a=EUspDBNiAAAA:8 a=f3GtY390AhsygJ4OoPwA:9 a=dcd5Va8fKio1jsbK:21 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=NFOGd7dJGGMPyQGDc5-O:22 a=H4N_Y-AU75W7NKDNhZlT:22 X-Proofpoint-GUID: 0ivymgELOaHDQfQtC8VPXUm_f1irglHI X-Proofpoint-ORIG-GUID: 0ivymgELOaHDQfQtC8VPXUm_f1irglHI X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 phishscore=0 adultscore=0 lowpriorityscore=0 clxscore=1015 spamscore=0 priorityscore=1501 impostorscore=0 bulkscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129265753158500 From: Bernhard Beschow Over time, QEMU has grown a number of i.MX boards and the monolithic config IMX drags in unneeded dependencies into each SoC model. Extract config IMX_SPI to eventually eliminate config IMX. Reviewed-by: Bin Meng Signed-off-by: Bernhard Beschow Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-ID: <20261006083445.30362-29-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/arm/Kconfig | 5 +++++ hw/misc/Kconfig | 1 - hw/ssi/Kconfig | 4 ++++ hw/ssi/meson.build | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig index 92e6e3b4790b..89b3ecd99a2b 100644 --- a/hw/arm/Kconfig +++ b/hw/arm/Kconfig @@ -522,6 +522,7 @@ config FSL_IMX6 select IMX_FEC select IMX_GPT select IMX_I2C + select IMX_SPI select IMX_USBPHY select CAN_FLEXCAN select WDT_IMX2 @@ -604,6 +605,7 @@ config FSL_IMX7 select IMX_GPCV2 select IMX_GPT select IMX_I2C + select IMX_SPI select WDT_IMX2 select PCI_EXPRESS_DESIGNWARE select SDHCI @@ -625,6 +627,7 @@ config FSL_IMX8MP select IMX_FEC select IMX_GPT select IMX_I2C + select IMX_SPI select OR_IRQ select PCI_EXPRESS_DESIGNWARE select PCI_EXPRESS_FSL_IMX8M_PHY @@ -653,6 +656,7 @@ config FSL_IMX8MM select IMX_FEC select IMX_GPT select IMX_I2C + select IMX_SPI select OR_IRQ select SDHCI select PCI_EXPRESS_DESIGNWARE @@ -698,6 +702,7 @@ config FSL_IMX6UL select IMX_GPCV2 select IMX_GPT select IMX_I2C + select IMX_SPI select IMX_USBPHY select WDT_IMX2 select SDHCI diff --git a/hw/misc/Kconfig b/hw/misc/Kconfig index d625141aafd0..e1396aa8c221 100644 --- a/hw/misc/Kconfig +++ b/hw/misc/Kconfig @@ -91,7 +91,6 @@ config ECCMEMCTL =20 config IMX bool - select SSI =20 config IMX_CCM bool diff --git a/hw/ssi/Kconfig b/hw/ssi/Kconfig index 1bd56463c1e0..d477d20e9ba4 100644 --- a/hw/ssi/Kconfig +++ b/hw/ssi/Kconfig @@ -32,3 +32,7 @@ config PNV_SPI config ALLWINNER_A10_SPI bool select SSI + +config IMX_SPI + bool + select SSI diff --git a/hw/ssi/meson.build b/hw/ssi/meson.build index 6afb1ea20012..f334e48e2fe8 100644 --- a/hw/ssi/meson.build +++ b/hw/ssi/meson.build @@ -9,7 +9,7 @@ system_ss.add(when: 'CONFIG_STM32F2XX_SPI', if_true: files(= 'stm32f2xx_spi.c')) system_ss.add(when: 'CONFIG_XILINX_SPI', if_true: files('xilinx_spi.c')) system_ss.add(when: 'CONFIG_XILINX_SPIPS', if_true: files('xilinx_spips.c'= )) system_ss.add(when: 'CONFIG_XLNX_VERSAL', if_true: files('xlnx-versal-ospi= .c')) -system_ss.add(when: 'CONFIG_IMX', if_true: files('imx_spi.c')) +system_ss.add(when: 'CONFIG_IMX_SPI', if_true: files('imx_spi.c')) system_ss.add(when: 'CONFIG_IBEX', if_true: files('ibex_spi_host.c')) system_ss.add(when: 'CONFIG_BCM2835_SPI', if_true: files('bcm2835_spi.c')) system_ss.add(when: 'CONFIG_PNV_SPI', if_true: files('pnv_spi.c')) --=20 2.55.0 From nobody Mon Nov 23 04:26:25 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129394; cv=none; d=zohomail.com; s=zohoarc; b=NFoLvhO+YEyY5ayVkGpZkUH1iPlddcYXpaWY4MgRNidMGDynDoOA47SLYU0ln8o2UlDFrru2RpDKY3QkR+gSCHe6OLHpEELF/sv69jCRL9h3edvsLD8Lq8pBZiy7SzRNa+I2oLMQNubqyyzirnmUb3HFrjMOFeUN/SM4yrlsFXY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129394; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=LrLDkrojus1lb2ciDkdrn33x2QXGEoPqfGjgJtuVJnI=; b=AjE0f2KcXMUzW9lupZQFpMcQ1VdH088jhV5kPXi+IuyZhnYfWVND+aoPEnzMQG5VNunrcFblJqXnBtciGX3xGCf1cK1nMUkYRjmAfSLHEOJaa/s1kffRyccgGtNORG00dBhoWsPFejfdY2SXvlHnvVr86B8sMdxVNLrlVlSamCo= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129394305958.0086360569355; Tue, 27 Oct 2026 12:29:54 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmpo-0002GV-QW; Tue, 27 Oct 2026 15:27:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmpg-0001xz-5s for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:27:41 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmpe-0002J3-4J for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:27:39 -0400 Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHWqm2452023 for ; Tue, 27 Oct 2026 19:27:36 GMT 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 4hjy6g0uvr-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:27:36 +0000 (GMT) Received: by mail-qv1-f69.google.com with SMTP id 6a1803df08f44-91c7a1a32a5so6765746d6.3 for ; Tue, 27 Oct 2026 12:27:36 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e3eb8f36asm24752702f8f.1.2026.10.27.12.27.34 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:27:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= LrLDkrojus1lb2ciDkdrn33x2QXGEoPqfGjgJtuVJnI=; b=MxHF0uwAaNcbcyfh v/SR6VYsFh0CIspIwy7wyDf2Xp+PjFFgF2Hc5skwiNS8Uw/Hhu/aBP/sT87f1sKg lNBilUaMuZg/+QnASIge5j0q/j+RbhTQn4dWgUm6s+ZeJIjQaD0r9s6vBgYNO5YK AWwlrrE0oozft7WaYNc5sGsJqeBh6Auh6QNEkVdGP2MA9HrXTjqCWJ6RSdOlMkU4 +vkoV9zBLLaw1iKmkOrfv+EeQsEiB+krG9yuVH85p4Y4okHgo8VB/nbpw61bBEFr sEREl590W/Rhcna0OGEHeDP8kDX9hc7OPp1vDk17LQdF93Tc0tGMI1o2BjTyDguQ FKRG9g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129255; x=1793734055; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=LrLDkrojus1lb2ciDkdrn33x2QXGEoPqfGjgJtuVJnI=; b=Gb+9n4NFoEvLRI4kHOzOQnu853aOWR0ln5tI657Q83TQmE644hQgOCM4X9VF4bBChO oqjmjGaRuPdu2s0iuOUlqv7KVqx8cXQg/MTBjlI5onX8iRqDNRCMZnSC/W0o1sCwcenz U/Zh4pVBG3Z10pyii+aBHau97zFO20Us5wWHoLrjOU5M6QS9NhCEPgf7QPUQaT/Ee/9Z bZ0+UlyL4YtjWpxFuK8RcaZ4PwIeXegufyrzyYfS5LXFUZooSR2J76ofP8bpyc/qb/vN YBIFVx7JN9pdA+0uS0JPncdAflZc5IXX4M/L/HJDujnA9SWjssAyvq+xYCtn5KBsrnDw De3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129255; x=1793734055; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=LrLDkrojus1lb2ciDkdrn33x2QXGEoPqfGjgJtuVJnI=; b=C6nee/0NIpBFhlv2u/fYnlWEVJ4kr7sxYeXTyPed1Bq81Lfjd8Au5duVQhC/X+u2E5 mCFdzHz1U6vDoLoxIZcMmeR/iiRWEe2aZBv7mhOQ8toxwEPaMqWJF9UvUz03UIigueh+ qhLE7zfeGQg72KVz6EmBAXSM8MGmatEjne+nMn/wY4svFH7vyAGu7AmSewwxmuxUIKXg H2FAi3GqbHw47TpoDeIgzzm+9NXccNnkq1xfPzKU6qZtgi5g+cIRIAxeNZeoBh8nVgpC 46PqBasNMIED/1bJAhf4I3AZB9crEJSldFbA+04O+o9VahxsnfZSeFLl3bDQkmabm0OW GI1Q== X-Gm-Message-State: AFq9FYJ1Jo2gkudZHsr6XnOCKdcIpAvJr7SvQmL5/PpaQzhJi9v0ga32 eYkZo+HW4y2O7DU7rUi2Fud+MS+Gd7NPqR0ZiUWFu9L0ZnZlFN575zOMWR1ACXxxcqy9okkcp4n awMJl21JFwkLbazy2oYu+vZ7OY+5xp1iEuHaPtMnQ2ExE6KPtyqhTwHfe+j3nLkmvkQ== X-Gm-Gg: AYBFou13xtZkXYAEqrJ+Nzda68eiDFZUFmo/oiClu0InPeWojnrT/iCk3nFftpGTnYk 9Ll8l7sMfeQKlGz5eO7lGxAz/hH2p34fGxzcDR4ri7BHoMnLmFh6gvRScD4J/VUbtF/mArpZLR2 SNgioF7UqzecNbVcc+XiE6rfYnQONPl4fXBhgwkkGZsHcDnPzugSHltNpfLge1qPkuZSFQGnWR1 le3GSSKf4y9iM3pmtVRrM3OkCHKGrZ6MGjWkziFqdcLQJD4eaKuGQjj7XUd1EmKAb7WCOeI7dzN mYqGWHfyMSwkHt5mrTI3pu17eJqMGPiybYXwpdM5b7XyPMz6IaPg4v98C6FDg+cU1MExskjXvqL jJHtcukp3Jy0FEpJ18iTWBESSjWKahi3MCXzYMbS/nQQt0hTd2qjUYIky X-Received: by 2002:a05:620a:2b4e:b0:93b:c458:8254 with SMTP id af79cd13be357-940ef9463aamr1620002485a.46.1793129255416; Tue, 27 Oct 2026 12:27:35 -0700 (PDT) X-Received: by 2002:a05:620a:2b4e:b0:93b:c458:8254 with SMTP id af79cd13be357-940ef9463aamr1619999285a.46.1793129254958; Tue, 27 Oct 2026 12:27:34 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 34/59] Kconfig: Extract config IMX_SERIAL from config IMX Date: Tue, 27 Oct 2026 20:23:15 +0100 Message-ID: <20261027192341.9197-35-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX4h9EcYh47Wd+ W1lXN+DFkvwRb5xx/LPVxpG371nObob+qdE68MfVdbpVnxgeVrmPY0M3KqFxsdrfZCD8mNLnFKz Pj9jDAOhpKRpY/xIgBUbfJU69xiO+R2b2nzoqgxo8meXfxlAT6JZX8hZAe32xdcSZjByo3S+LZU X9abcyo03yzrsAEawRUNmLQkz8WaawZMB3gwM8YgodESV1rkK109pMW8IskCktr8zQxZJEYsoCh kQtUTSrYlp9a+yGbBncDvAd/lXevPZIcBy4zI3K2y1YWX8dPh7AToY5Z4I4rXaVOzQvhaiMGM8/ QFJ+HL102/p9aLHVJ8OjQ5L6CG3OsWoM0k7lJyDMJQ392sLT7UUtetzrIER8UKUhNQXFJgkjfFn Pu4ckpE9szjCRALA48wscaDAy0d61/MejIdfdUveAalvwUNkuNVwyZxIB9uezVi9rFraeiwbqNY DCn/Vrmyyx9zF5eCPNA== X-Proofpoint-GUID: MJBYk_EOm1Ja9ApNLF6qKnG7hiCS91Yg X-Proofpoint-ORIG-GUID: MJBYk_EOm1Ja9ApNLF6qKnG7hiCS91Yg X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX6P5D4dOD//6R C9BNpMGKumE0Gg8NtTb0nQ4/9rtLxMTYJLINTgh+k+jBwxPnEMOfPpdsDk8DI3fmq/PBEQmcdOB dHxFx6JIrhllYm8TjgAfimr15z0qw+s= X-Authority-Analysis: v=2.4 cv=dKgzC+Zb c=1 sm=1 tr=0 ts=6ae0fb28 cx=c_pps a=wEM5vcRIz55oU/E2lInRtA==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22 a=pGLkceISAAAA:8 a=FRSEYCzRAAAA:8 a=EUspDBNiAAAA:8 a=xCNJqmkWo5Od_A7jMvYA:9 a=NRrQhWNJJhzriTs_:21 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=OIgjcC2v60KrkQgK7BGD:22 a=H4N_Y-AU75W7NKDNhZlT:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 lowpriorityscore=0 bulkscore=0 adultscore=0 spamscore=0 suspectscore=0 priorityscore=1501 clxscore=1015 impostorscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129396259154100 From: Bernhard Beschow Over time, QEMU has grown a number of i.MX boards and the monolithic config IMX drags in unneeded dependencies into each SoC model. Extract config IMX_SERIAL to eventually eliminate config IMX. Reviewed-by: Bin Meng Signed-off-by: Bernhard Beschow Message-ID: <20261006083445.30362-30-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/arm/Kconfig | 7 +++++++ hw/char/Kconfig | 3 +++ hw/char/meson.build | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig index 89b3ecd99a2b..4b67f6432f82 100644 --- a/hw/arm/Kconfig +++ b/hw/arm/Kconfig @@ -488,6 +488,7 @@ config FSL_IMX25 select IMX_GPT select IMX_I2C select IMX_RNG + select IMX_SERIAL select USB_CHIPIDEA select WDT_IMX2 select SDHCI @@ -505,6 +506,7 @@ config FSL_IMX31 select IMX_EPIT select IMX_GPT select IMX_I2C + select IMX_SERIAL select WDT_IMX2 select LAN9118 =20 @@ -522,6 +524,7 @@ config FSL_IMX6 select IMX_FEC select IMX_GPT select IMX_I2C + select IMX_SERIAL select IMX_SPI select IMX_USBPHY select CAN_FLEXCAN @@ -605,6 +608,7 @@ config FSL_IMX7 select IMX_GPCV2 select IMX_GPT select IMX_I2C + select IMX_SERIAL select IMX_SPI select WDT_IMX2 select PCI_EXPRESS_DESIGNWARE @@ -627,6 +631,7 @@ config FSL_IMX8MP select IMX_FEC select IMX_GPT select IMX_I2C + select IMX_SERIAL select IMX_SPI select OR_IRQ select PCI_EXPRESS_DESIGNWARE @@ -656,6 +661,7 @@ config FSL_IMX8MM select IMX_FEC select IMX_GPT select IMX_I2C + select IMX_SERIAL select IMX_SPI select OR_IRQ select SDHCI @@ -702,6 +708,7 @@ config FSL_IMX6UL select IMX_GPCV2 select IMX_GPT select IMX_I2C + select IMX_SERIAL select IMX_SPI select IMX_USBPHY select WDT_IMX2 diff --git a/hw/char/Kconfig b/hw/char/Kconfig index 704004064192..d77f851668b2 100644 --- a/hw/char/Kconfig +++ b/hw/char/Kconfig @@ -48,6 +48,9 @@ config VIRTIO_SERIAL default y depends on VIRTIO =20 +config IMX_SERIAL + bool + config MAX78000_UART bool =20 diff --git a/hw/char/meson.build b/hw/char/meson.build index b2250ee6aea3..111bc1da64ae 100644 --- a/hw/char/meson.build +++ b/hw/char/meson.build @@ -3,7 +3,7 @@ system_ss.add(when: 'CONFIG_CMSDK_APB_UART', if_true: files= ('cmsdk-apb-uart.c')) system_ss.add(when: 'CONFIG_ESCC', if_true: files('escc.c')) system_ss.add(when: 'CONFIG_GRLIB', if_true: files('grlib_apbuart.c')) system_ss.add(when: 'CONFIG_IBEX', if_true: files('ibex_uart.c')) -system_ss.add(when: 'CONFIG_IMX', if_true: files('imx_serial.c')) +system_ss.add(when: 'CONFIG_IMX_SERIAL', if_true: files('imx_serial.c')) system_ss.add(when: 'CONFIG_IP_OCTAL_232', if_true: files('ipoctal232.c')) system_ss.add(when: 'CONFIG_ISA_BUS', if_true: files('parallel-isa.c')) system_ss.add(when: 'CONFIG_ISA_DEBUG', if_true: files('debugcon.c')) --=20 2.55.0 From nobody Mon Nov 23 04:26:25 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129372; cv=none; d=zohomail.com; s=zohoarc; b=XiakPAvLgYc03iUcbEYqrM6006WLU+WpttUE6yKCM0qo9dGE1SOJPm+hnZpcDtSWIE6csPHeKdGvaUBgCQBn2WInpZ7yECpDanp2isQFjsuBeTqdBZQYdAecEmpqSIB6scLFhKZjNlYOvEKS7aaFNko6INlvZlS8jrLKtLrasW4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129372; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=m60qRUtoUt+PJitqQF58q09jhlzYEpUpVRJgvKXhrcw=; b=SnZ2+AqS7fctCPsL5I7yI4juc8NdMEYYfc+LuiMUIuTI6kN45+Gj35b/nRGwUHnKAGp5pm3j4+ITJyMSTbR5KiUdSeC/o3WaNkZf/mqn6O3nopV4pUjiYoXQ0o3vZlU6Tn8nwF4RZuYWr7gqGY+gNm4HljoHKHO9FKHAuEZeRvI= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129372109316.35565028118083; Tue, 27 Oct 2026 12:29:32 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmps-0002cy-Hm; Tue, 27 Oct 2026 15:27:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmpn-0002Ja-9s for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:27:48 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmpk-0002Jl-M7 for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:27:46 -0400 Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHT4R2451911 for ; Tue, 27 Oct 2026 19:27:43 GMT Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjy6g0uw9-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:27:43 +0000 (GMT) Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-93f20addba1so20484285a.1 for ; Tue, 27 Oct 2026 12:27:43 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a951f7f2b2sm1909145e9.5.2026.10.27.12.27.40 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:27:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= m60qRUtoUt+PJitqQF58q09jhlzYEpUpVRJgvKXhrcw=; b=A5KsQztB9kzquiZI g1vIydFSIHgK8ARZfrDaQZiWjQi4UfkZExDQKChzKwTNvyAI9s0lXNDInimOXtZG +wPvV0vhYxFDPrJZyKix235pGlsaUTDHeQpTHbv1T7iMKxRw1RIj8IZbR3Kuhi9l yofXgzaOpHbcTyNvoe4M3x58O3yULmovbDn3MqiWgSTWQmiR+Pj5xV39Ll2c3pCZ xm6LXkDIPIZmdkRbiCLPJGQX01XaTmfPN8aZ+HrDMKxqepS27gT18oG0Fhog14vL nwx6yR4rDHFQOs2HWeEaA8ACEc+SlIP8uN6AIT2tsrgAw4pEtj+NOmTqVgUyzo8y s2X8jQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129262; x=1793734062; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=m60qRUtoUt+PJitqQF58q09jhlzYEpUpVRJgvKXhrcw=; b=EETiuoz3sukaQYcfjirUl1ZEGA8MQOJMmWLEgNnzVShLrMOrMIPsbSjbVoQVRkyj7V ePXErlXEKXlcIqktMPGJUwfOK1hFM39ki5w3SVygZRtKojN+RJiLuM4fdJ0LGhbgVjuq stGwoPvNaf0mebO3qJRRDLszB7ohCrcLTdjKWX/beTKN+2hILcpk+lLEChoiEibYgsBH ezj6pVMKTyJLEPmuKujAqQrxhSmi1b+PGS9e9em9AS8JkH/97lIF7avVH4PKh7G1U1gU Ad/3DhO2Eq1QO3O843TzJPiMupwQjL/gW7AI5L2leO9VFxWSlKcMETqJdLV7bSz0t90+ VXUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129262; x=1793734062; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=m60qRUtoUt+PJitqQF58q09jhlzYEpUpVRJgvKXhrcw=; b=Wmy32rjDe5/q4XN8hGY/ukLpbwkUPt3swGiezEEc5/UR3SR17LWHFl+iKD6MfuENJZ hsoe0hALGBc1Uz0D+cLuWoAM509nQiA78060IGve4Lj4f63Eis+MovEKWxHNP5Ndoi3s jUjc/UdlEpQUz5YUQ0j6BNay/hFVzdwMYiDa9tRr/H1larnkh3XYofPqWNjH+w5ksnuT HnR8v3t2aKJSWqy+2DrJTFUJPVOuHylSG5iUHJtfbKxmF89xTp9hw5R8MUg/grCCm0Pt OyuwW/r202UznaSrBsbt7oxY/yXAeDpr2zkGhPc5PIzjbzkTXjlA/OhEyPmM3XKwVrME 6d/A== X-Gm-Message-State: AFq9FYLYRT7wSKUAot+rwAuv9Dv+Nw46/mnaDqRC/VfyNH5Xv2sz0FoQ T1wGCOxgo1lcDy3Fjn6eJVjcJ4TiL8Dbsn1yarOQz2aGu6L28MqxFfGRj/4NxESHbDPBw5X2ymq +FhcTLo+vQuatzBuZ+2gVoPD5/RKIgvn/CRAPuxCur2afxz2EdAw8xA3015DLQCetBg== X-Gm-Gg: AYBFou2nkuICl3fna0MKr2lUYr8EAwCrug7dA+6GfuVJIDf8PuvlpReUYSM8fBoPsLK 5UDgZU2wdPnRf2deTqi+2UhotdYbCobk0ejkOqbqe99B+CZc9bGqpLuy8VOhymb9XIIIW4N8CLr la4XB6NUepgSeYa5jR8xJiOVRz4pCbsTK9kgNpMDErhbQlm1545u7dObFTzwfIMgVS4p8S5hizH LI1500KUAWdIkuLjvl7BwFwwBQfldtAYPCUWlhVri9VW9u5ZrzGmatDTu0Q52k0Y0g/DZ3BSSkC 4pCRoygcZpZ5iOQ7omX3Dyv2yD3XX486ELjMDWYjq425iu8yvIq2uEsQNeQ63qefF78l0y+0Uyb 1GGqdVV8VIxn47Nz839w+V3rc8WYVfCiZiToTaEQauF2z5UR2gpbz5+uJ X-Received: by 2002:a05:620a:29d6:b0:93f:2bca:2cd8 with SMTP id af79cd13be357-940ef96bb96mr1651612385a.57.1793129262214; Tue, 27 Oct 2026 12:27:42 -0700 (PDT) X-Received: by 2002:a05:620a:29d6:b0:93f:2bca:2cd8 with SMTP id af79cd13be357-940ef96bb96mr1651608985a.57.1793129261682; Tue, 27 Oct 2026 12:27:41 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 35/59] Kconfig: Remove config IMX Date: Tue, 27 Oct 2026 20:23:16 +0100 Message-ID: <20261027192341.9197-36-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX3CiDDxs5lw13 mPG6aCvyKmZr7yZwCHBLwerV69+C4pLy8TtLJFZ12IEBmIV6ld92lq259rKHIZeDed8WkHIhPjG 6Ui6+RYlAJou38BYGBv2SyQ7c0W89os01QBFhQjRlZtRMhHEetj3wm8WkqTVAMZ/+ZdXaD3ZpRT TgL0xPm3vXrB8xXUVe8KyfUpaz5ZZmaP/UyVmF7xHv9Zl3bbqsbipgbp8QtMJ//DPlHbzVfjAU/ KOgXeiLRhHl6Cval/h1asvaD4Ho6BM4P3v2dchRwnp+4yJJd2W7ai0JEjpCfUNFJczzjBFaaNOh n4zBBoa/moYWNunQJJHRtGmgQT5V9SfXSxUJHwuZQqNYcpMXsTt7yrrCifWHkqlA2fj+s8DiEJ6 KKSH2/HDBDSvTvknjaB5oxnyJ9u0+ZeOEjzqNZHHfUgarcvSoU5iTZxfgozcHYnRduFI8wX/lXA 6cdliUgeQrH9Ea8Yfrg== X-Proofpoint-GUID: 7YgSoX2o_v31IGFaKSKnLJOueae1CEVW X-Proofpoint-ORIG-GUID: 7YgSoX2o_v31IGFaKSKnLJOueae1CEVW X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX5FEC/UiPqBrm 8PI7cBCM/6E+60vxJ2N3qS5Zsj0Qf4QNYhsk2iJtyIkTfAirygnH7OYx5OaoL4YVh9AWt7tbo6g 8dqG8Mhw8kxu50RMU+svrAbZHuzs2a8= X-Authority-Analysis: v=2.4 cv=dKgzC+Zb c=1 sm=1 tr=0 ts=6ae0fb2f cx=c_pps a=hnmNkyzTK/kJ09Xio7VxxA==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22 a=pGLkceISAAAA:8 a=FRSEYCzRAAAA:8 a=EUspDBNiAAAA:8 a=NiYJVnUlP9n2ZHLTOxwA:9 a=NRrQhWNJJhzriTs_:21 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=PEH46H7Ffwr30OY-TuGO:22 a=H4N_Y-AU75W7NKDNhZlT:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 lowpriorityscore=0 bulkscore=0 adultscore=0 spamscore=0 suspectscore=0 priorityscore=1501 clxscore=1015 impostorscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129373662158500 From: Bernhard Beschow The previous changes removed all uses of config IMX. Remove the now hollow config item. Reviewed-by: Bin Meng Signed-off-by: Bernhard Beschow Message-ID: <20261006083445.30362-31-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/arm/Kconfig | 7 ------- hw/misc/Kconfig | 3 --- 2 files changed, 10 deletions(-) diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig index 4b67f6432f82..e9f796f71848 100644 --- a/hw/arm/Kconfig +++ b/hw/arm/Kconfig @@ -481,7 +481,6 @@ config FSL_IMX25 imply I2C_DEVICES select FSL_IMX25_CCM select GPIO_IMX - select IMX select IMX_AVIC select IMX_EPIT select IMX_FEC @@ -501,7 +500,6 @@ config FSL_IMX31 select FSL_IMX31_CCM select GPIO_IMX select SERIAL_MM - select IMX select IMX_AVIC select IMX_EPIT select IMX_GPT @@ -519,7 +517,6 @@ config FSL_IMX6 select FSL_IMX6_SRC select FSL_IMX7_SNVS select GPIO_IMX - select IMX select IMX_EPIT select IMX_FEC select IMX_GPT @@ -603,7 +600,6 @@ config FSL_IMX7 select FSL_IMX7_SRC select GPIO_IMX select PCI - select IMX select IMX_FEC select IMX_GPCV2 select IMX_GPT @@ -627,7 +623,6 @@ config FSL_IMX8MP select FSL_IMX8MP_ANALOG select FSL_IMX8MP_CCM select GPIO_IMX - select IMX select IMX_FEC select IMX_GPT select IMX_I2C @@ -657,7 +652,6 @@ config FSL_IMX8MM select FSL_IMX8MP_ANALOG select FSL_IMX8MP_CCM select GPIO_IMX - select IMX select IMX_FEC select IMX_GPT select IMX_I2C @@ -701,7 +695,6 @@ config FSL_IMX6UL select FSL_IMX6UL_CCM select FSL_IMX7_SNVS select GPIO_IMX - select IMX select IMX6UL_LCDIF select IMX_EPIT select IMX_FEC diff --git a/hw/misc/Kconfig b/hw/misc/Kconfig index e1396aa8c221..a5d03fb42601 100644 --- a/hw/misc/Kconfig +++ b/hw/misc/Kconfig @@ -89,9 +89,6 @@ config IVSHMEM_FLAT_DEVICE config ECCMEMCTL bool =20 -config IMX - bool - config IMX_CCM bool =20 --=20 2.55.0 From nobody Mon Nov 23 04:26:25 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129371; cv=none; d=zohomail.com; s=zohoarc; b=JJLa4e1PCtH4PrtbY57fOzrLzd7Mk4X0jKx620WaT8ZJk0MoSn7I/C5ddSBa9A7UCCFz38OaKK5CWkCBoEZVZ7OVCQvJxyWZCxLtN3GPEULH8oljpgSrLXD6gwW2HZvQ44gfcUQycEuGnFhkOwbQ59PDdDQ17EsblPnN014eB24= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129371; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=YiOX41g7F9vV4jKTVDaTZD5/BQDYJ5mG0H//Po+3dCo=; b=IwcewkWrqBhIIhxvU8s9lMKRjpe5+JFqfQ/4t7PY+nITaMrMoJzlODRth9L3MQOW9byXHjdcY4a/4/gd2LA7bku5OOSGY15z8/+9z4e1fpxQYRaAV3zauSh8QZ02iD23NSCzgTAqskyqvxRnsNZRChBCTgT5mOnKUJC97tZjOjw= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 179312937155656.09758001539194; Tue, 27 Oct 2026 12:29:31 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmq9-0002tW-Qv; Tue, 27 Oct 2026 15:28:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmpu-0002kC-IJ for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:27:55 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmpr-0002KZ-Iz for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:27:53 -0400 Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHLLX4051095 for ; Tue, 27 Oct 2026 19:27:50 GMT Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hk12pr8wh-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:27:50 +0000 (GMT) Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-93f1e62510cso28581685a.1 for ; Tue, 27 Oct 2026 12:27:49 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e3ecd354asm23687889f8f.43.2026.10.27.12.27.47 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:27:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= YiOX41g7F9vV4jKTVDaTZD5/BQDYJ5mG0H//Po+3dCo=; b=BRrtsUiWII6GovaZ VicDk8by66JmmAL3DQ28vBxuUCjk3jDRXkpi7voE2TqEVSxKIjQc+TDHFAHZu8b5 fmRGjOO57kjXuWYSVqDaqXAdtoWtImcjkgz/JWkNeseTuJcDfbvCWb2rUV1t3Sfl u1i+gcBgPx0KL0a5EOY2dITl/qh+EX1kWrVuMyjBAKhgp03VPjTeIOVzxUv7AWVL Y3yEN9YOV1YYpFomve4M06j90KNLclrowQpTJpIelN2k91wx6quWqWsnoP4TIBVE cCDU8C0gc9U4oTIMURerMkn6U7es+7N7t3idqlGkDjizzLn0fDGoZpTp6LotSPO5 bBIj/g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129269; x=1793734069; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=YiOX41g7F9vV4jKTVDaTZD5/BQDYJ5mG0H//Po+3dCo=; b=THX9NTSHsTA8X1rq7h8aFCDvO3EstFBVQdPRflMvnroZclT6+iX3fYzI1v8/fpEHjD FcKLtowERM/TtIVvCGs06doRSa5Evq/PTNiNMnMiFV8RMOWf0PF7d2+WAYVqer8nOHtu JJBCtuBow5rfVIHRWT5VWzRzx5xx9cAEfo7s9kvTL5f4mJiYhNB7UosPOuHOb53yunjB ZFc6y7dJeZJJOsneUtC/HMOHq0obmL9+/N2Fs5HsCBZMhoMWwgTJFVTka8L4X3SxJN0A Jb127mgu/aKjz5EwfqfkM5UlC91PGWQqK44q+Gp8yQnyFhsDxfJvMclNRgjdhKidWxNx 12wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129269; x=1793734069; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=YiOX41g7F9vV4jKTVDaTZD5/BQDYJ5mG0H//Po+3dCo=; b=Sh79B0gEFO7pDOZJ1PlsyxHIAnYjMbl+YZd8n/Ga2haN2JCDOmUg4kG/FNpywDOkLd ULqgudInkgt7A1d1ZD0MsdtQsGqbBRmVFc0W3M6z10PET7IT9XNX838QghRrCHtanAaa 2yhChOUI6FJ26fMCAYs/Vj2c2tV9sr5V/IAB3wiogo3btpQd/UeGTDj/a8KbeBdM9hQ7 ZrCg4Z33SpapXndew+XjRwM8mFq1fYo28jke4QHBPnnxU0FTcGxsd9H7GDhXYsBx0buu wUUqP7cdB1qI3s771N4Sg8aTDPmGe4BEGBs2NpjVWWe5VEwMJIqLizhutMgZozO2ECAf mI+w== X-Gm-Message-State: AFq9FYLpCPOWB/tVdii0Vj+O6gk91PtjOKalZiFXv+rnxk2hSkBsDycj enUoCDv7mEeq6j0qQ0sTkp27nqvQ6b5e1pcZBy2E7ktc/qOprQyQE3RBvlbsBw0Rds3XhtZC1dz sAqpGpQRNYYU4of4OAi0U3gA4gIqwsXgL4CvzQ8AqhI7npk34kLPfA8pOHKjiZH1wPQ== X-Gm-Gg: AYBFou3nVop55jD9HCsPO/jYgvHzF0PhIv0H58y2+4HmMmNA0BwdJlx0GJH5nNURdsZ tY9xy+I+eNa7vXAw4nsXOWkR/u8k3+T5z/4AwNcxxvC5dva0Y8zPgOisQYPZs+OZn7R1md6BCcN yuGRuhf+r0ElzS8TTyyFvrKPeNrz96Mcl0a/ay/Dn/pJblR1t7GywIB2lpMma3hHYuCQMgJ6M0c aq3HaQicCv294AHqz5x2Hbw4R1cEiwVQmhvzJ6f+u1vGRy/YnpyskNwgUiYq+jgE4x/S4FJlqyF +EOcfLFQm5Q4/5B+mmu0+YCBQXsU1voxLHmpHdI2PiOCZuE9Vd05zzs9f4t3PXyvWB3o3zVd/+B 88TxZKQyf5WwEJQIQzJJ9mzyo/Ma/mqc+pSAi7FfOUdBZM9RETS23utvh X-Received: by 2002:a05:620a:17a0:b0:93f:35fc:5260 with SMTP id af79cd13be357-940ef94c10emr1668395385a.35.1793129268949; Tue, 27 Oct 2026 12:27:48 -0700 (PDT) X-Received: by 2002:a05:620a:17a0:b0:93f:35fc:5260 with SMTP id af79cd13be357-940ef94c10emr1668392685a.35.1793129268471; Tue, 27 Oct 2026 12:27:48 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 36/59] hw/vmapple/Kconfig: Remove unused GPIO_PWR dependency Date: Tue, 27 Oct 2026 20:23:17 +0100 Message-ID: <20261027192341.9197-37-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: 04fnQtCThK2t0EXbIE-Ki2mpwzy83nBN X-Authority-Analysis: v=2.4 cv=DtDDa2/+ c=1 sm=1 tr=0 ts=6ae0fb36 cx=c_pps a=hnmNkyzTK/kJ09Xio7VxxA==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=PcQS0Q1rpfHm3DHufJMA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=PEH46H7Ffwr30OY-TuGO:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX54Q/+jEHsJTf /9pYGqMmzqKFFs5MlYNVfF16oRwsaJ47h18xUnWbWzMCyEZVhg+oYEDcDRszPVPuLHkG5eXH89/ /HuRWfDSdPTt+OnIDzTzETOywzzsHFRQJEhYCi6s36PxqNJBoQHIPqmb99oVUZ0gjDdyFjcaqFa XJIOUESLGe59NXA0KzbEd2nuuDsJV+bBeVy6iwtPYz3Po+7bakMUtx4gbgacfEjxqY/kWENHtCc hOyX+dRxdqQhmEeiD5Q7Iepj+Fx0F1apWX4jAMe3h+hEx+XlvltV1sV3MWsZWK4Scg3wnYuJaB+ BqYLQU0C+HgPu7Oxbz/NATKHvM5XKpXbbCWJ2TfACkWYcTj1dgyYrQCTTLIEMh0oN5LqftT3W/1 auBeGyxeSCgchPbwvwvvhrbYg3J3q+IJ3m0/dXg+sJ4XOyotuxl4l/zxeKForrxDwtJbOJwk72K WcrDovfNKmyBG0bo/3w== X-Proofpoint-GUID: 04fnQtCThK2t0EXbIE-Ki2mpwzy83nBN X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX7OzgJNe4C5xA t9+1fKZqQOMP6hOqj+QnOJi3uhwNRJ8ERtLzFM6tq1dTE5cFzbQUZhd7N07q64OI/UjVtX483Gn 9fAUbNftdR1yofvW+xvjnW43cxcFTd4= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 spamscore=0 adultscore=0 phishscore=0 malwarescore=0 suspectscore=0 lowpriorityscore=0 bulkscore=0 clxscore=1015 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129373569158500 From: Bernhard Beschow The config option GPIO_PWR provides the "gpio-pwr" type which is currently only used by the ARM virt machine. Remove this unused dependency from config VMAPPLE. Signed-off-by: Bernhard Beschow Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-ID: <20260921214710.29422-34-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/vmapple/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/vmapple/Kconfig b/hw/vmapple/Kconfig index 2382b2976722..b8aa7d8eb073 100644 --- a/hw/vmapple/Kconfig +++ b/hw/vmapple/Kconfig @@ -25,7 +25,6 @@ config VMAPPLE select PL011 # UART select PL031 # RTC select PL061 # GPIO - select GPIO_PWR select PVPANIC_MMIO select VMAPPLE_AES select VMAPPLE_BDIF --=20 2.55.0 From nobody Mon Nov 23 04:26:25 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129364; cv=none; d=zohomail.com; s=zohoarc; b=ZJoj3pJRq3VKD1nRcLx0I4UE77jBhQQ+gpkYdGcmlpV1tLxp7itg93T/qOVaURAZcDuD1Ku7noScs7VafwE5V3a+FV4bIDS/S5g48R6YBI/jjGK/8yNWxb0VKdZB3RWWY/M9bjEOHLCpiIlcJltLC+VZMpi4iAgYrHxZ/ZOh8d0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129364; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=cKETLbdPQdzg4BSfMoLC+u+UL0vHyrUBbWDJ5Q+m82Y=; b=CjaCwRBp9eMBCHkX3TER44pssjjeLAOxB+aGplKOnPwrZSnMF7bF2qOoarvzKH//SfqgRKFfhNB9WKzdA1ctPRyirwcCCOzBE5guE7o1HR8eglidjjftRa7j+fSWpEIVW6wiS/uS1xohu/mAD3kMwinfmzN91puJXsXWjqtXB9A= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129364084846.2078856332058; Tue, 27 Oct 2026 12:29:24 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmqd-000398-KR; Tue, 27 Oct 2026 15:28:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmq0-0002v9-73 for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:28:04 -0400 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 1xLmpy-0002LV-0e for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:27:59 -0400 Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHfaq1917531 for ; Tue, 27 Oct 2026 19:27:56 GMT Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjux99v6q-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:27:56 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-93f2c0e6653so19282785a.1 for ; Tue, 27 Oct 2026 12:27:56 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a94c021080sm2956645e9.2.2026.10.27.12.27.54 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:27:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= cKETLbdPQdzg4BSfMoLC+u+UL0vHyrUBbWDJ5Q+m82Y=; b=GpPCu+vvq2d8L2zc 5Vv0vGRPCAHTdBuFJiHrEzaLOORGL0ZOLgERfcVSuWCsG9N8NGFcbAMAoVk+IMiV mKrgEoVd5M2FDAMHHLNa6AxGGpmEOzDtak5vik5QNRnrLk0X60uf56iSRbin0WKl s3+smtsgVHgHVihybVOe+1sGs8u3T70NT0MtDAbc1qWDY66uLceblMtIM7lldQ9w l4qn6LpcT300iNbQ8viqfXS8m4iK6iLd36gmpPm6h8fmK0fgRRSx0rk6Nh86Q6Rs yxrP1faTKs09EaT7QkaSKCSsaaQrOw/Lc1WLGuIJQQRhPP5wQ3mYHknrNb7vTfyw RsjAwA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129275; x=1793734075; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=cKETLbdPQdzg4BSfMoLC+u+UL0vHyrUBbWDJ5Q+m82Y=; b=AxoGsRIj5RAZfJECU1fPUtunToMItGTuCLI/ZRNuvi8169ICYaRxLwDww7wfcjGxTg aX8N03qJAkJ39rOSCF/eZ4dlqPv4s+dsmFogrOsQHqTybFyYPh93+Cz5AOK37qpUL2ye JRv0xXNWAfFexwxT0nv35AtseryLPtlqeJSwaQ+gUr/bmzZ4h4GtQXVZM+3DrEgFBnWt btvqu17lQhLVHFCLS9t+WsaaF1dagL0T9kKcY5rTZDKJAP+MNioGg5MT4ubwOprZcFCI jSa9DJAhldmgOV3y2T71n8rAzjJsCkZOXLJTJ9w8S1WuM1AotF6ZVWwZU8zdaO1hLNi1 nKwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129275; x=1793734075; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=cKETLbdPQdzg4BSfMoLC+u+UL0vHyrUBbWDJ5Q+m82Y=; b=JejE8mj+BBRZFvuCEqx8IEyUU4OMbdQw/725uizG+WaAcNpwKnCWEKgyG8FluTra7K dSX0DAEPJzjcK1WYc9W0KkHB4NMJJs9Hc7GBCDnClOugJ9lsOWihjoyZgla4YHAtrUZJ DNZy/Yx8V1SxIlcXjS5Dkv7c2ju2UYV0cIEgyThyW9h1hQ4Cps7U/Bov+3OaR1VlDvUf 7xUm6eWQG6TtxL8xAjqNdXTXor2Cbw/lb+zH4OO2KcGFH7XzoT4/ljM3Ygh8lMgroMSC S5LQAIvifOyPCLC4fYnIxZrbiFfPj/35o2CQB/8UfEFfaCnmBio71EUybFajAerL39ek M+sw== X-Gm-Message-State: AFq9FYJwcK7i0NQP3wDb0eHU0e/1hBU+zRbftzu6gWOFT6rJjG8RB0dS WY3hQzo8xr4z+mqNyhOEgtI5OFoER+J1JlJkVejCfQ0YUSm9Bt5p2M6dxRQzfBLIbM8y2/VZcC2 LPqZPvUa+tBQsVz3eqUPitO+pkNwBSEVCuIM75g4eae59OumTq7giuC+rmq+6MOL48A== X-Gm-Gg: AYBFou2T1kZj948U2etLkqtEgcHvXbsWeNdJZZDIsf3S7ED648nKuOnDKYPmBoD2x3d y2GCjBKlzyZPT6jDjkTwzWayjzL6vI0E0oglyp2X8IGNxDbyURPsw0RzUTZ4o6fBO/AefKv1HtY V18ZIBHZaE0SATzpxSxLzsfMmm8QTE/CIRGd3ynXt+USt4Gec8LOiSJt30vaXPXACr162yrUtZ2 Nk2nciHdoRkozJk3Jj2bj2i7U28fycOpNQ6ezkFgZuw1JMKbnII97TgQkgjCg5f9sGn30ucV3G/ 9DwxG/4j5Xwgd307jHWLHzwCc6g2AjstDkbSXyMigGf6haMCaXRQpC0JdE2KIU6C4KZi/pxBTZx a38l8uBJ7svb3Z2DOT/KupUwOBvEfqrSpQ0Ty/oiotK7pVCFlI0DB4/M8 X-Received: by 2002:a05:620a:a881:10b0:940:f53d:5f7 with SMTP id af79cd13be357-940f53d1553mr1151964585a.69.1793129275572; Tue, 27 Oct 2026 12:27:55 -0700 (PDT) X-Received: by 2002:a05:620a:a881:10b0:940:f53d:5f7 with SMTP id af79cd13be357-940f53d1553mr1151962785a.69.1793129274961; Tue, 27 Oct 2026 12:27:54 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 37/59] hw/arm/fsl-imx8m: Fix typo Date: Tue, 27 Oct 2026 20:23:18 +0100 Message-ID: <20261027192341.9197-38-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=GYyCDgXL c=1 sm=1 tr=0 ts=6ae0fb3c cx=c_pps a=qKBjSQ1v91RyAK45QCPf5w==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=pGLkceISAAAA:8 a=8AirrxEcAAAA:8 a=FRSEYCzRAAAA:8 a=EUspDBNiAAAA:8 a=3gjPW9hNBChsr7orIJ4A:9 a=+jEqtf1s3R9VXZ0wqowq2kgwd+I=:19 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=NFOGd7dJGGMPyQGDc5-O:22 a=ST-jHhOKWsTCqRlWije3:22 a=H4N_Y-AU75W7NKDNhZlT:22 X-Proofpoint-ORIG-GUID: x4MAL3kIHoijgVKWayulDl_c1yyZn0Ll X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX0Djk+CXKJv6+ eaGT90bVKsadk3Qsa/thgZtRPQOXRKZ6zlwovMQCf0bF6cZyGQR1rnCjRXiUwC5FQMbhPZealvn hggoaEdfmOIanNYW9Ap6kE7oY0SqjgxFKyWDLlrSwuBPnwr87ctO2tSqUbs/1vpLY4yPf1fokMl X6ECarz8Nc+bFj9L7bP9k9F+In58UTCJ9Y+WiYa/XoOEcot+6IO18piTmKG5j3/3Gk8e0rExCJf Qro9KJxmObxpnFmx8BlNKmzAvEEGP3Ueu59AozZNTK+jLxAUnM3qDaEvVV956hXH873231rrkVm 1PWH4hbf/aqeDjpyeYkqu3MFiZ/nt79lrchIjI8m7/r7tgqGpl0CUGr37BlO8kCH4Kb0RYKTA+F 6s0AOgRM1rGbUy6q450Q8/Tk8ibRS7yhPaciECNYx/LcB/Xw2cGc5hRC/RKlATypdov04/D3+O8 MsMoia95NQDrcGADs7Q== X-Proofpoint-GUID: x4MAL3kIHoijgVKWayulDl_c1yyZn0Ll X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfXwlCGaECV+PCo 4Gu7ek9tutGFPexklpkxfRbvW87pU3+yYv/8HPf77ShSCvpGBVolBIJSZ1ES2cn0dnZd/xh/9eo vTJ6H9gMaUOkFRiQt5U7QnznD/sE/gI= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 spamscore=0 lowpriorityscore=0 adultscore=0 bulkscore=0 malwarescore=0 impostorscore=0 phishscore=0 clxscore=1015 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129365750154100 From: Bernhard Beschow This is IMX8MP and IMX8MM, not IMX6. Fixes: 0c105b261551 ("hw/arm/fsl-imx8mp: Add Ethernet controller") Fixes: 857670200c51 ("hw/arm/fsl-imx8mm: Adding support for ENET ethernet c= ontroller") Reviewed-by: Gaurav Sharma Reviewed-by: Bin Meng Signed-off-by: Bernhard Beschow Message-ID: <20261006083445.30362-32-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- include/hw/arm/fsl-imx8mm.h | 4 ++-- include/hw/arm/fsl-imx8mp.h | 4 ++-- hw/arm/fsl-imx8mm.c | 2 +- hw/arm/fsl-imx8mp.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/hw/arm/fsl-imx8mm.h b/include/hw/arm/fsl-imx8mm.h index 60d79a6e3c61..1966fa505fe4 100644 --- a/include/hw/arm/fsl-imx8mm.h +++ b/include/hw/arm/fsl-imx8mm.h @@ -229,8 +229,8 @@ enum FslImx8mmIrqs { FSL_IMX8MM_WDOG2_IRQ =3D 79, FSL_IMX8MM_WDOG3_IRQ =3D 10, =20 - FSL_IMX8MM_ENET1_MAC_IRQ =3D 118, - FSL_IMX6_ENET1_MAC_1588_IRQ =3D 121, + FSL_IMX8MM_ENET1_MAC_IRQ =3D 118, + FSL_IMX8MM_ENET1_MAC_1588_IRQ =3D 121, =20 FSL_IMX8MM_PCI_INTA_IRQ =3D 122, FSL_IMX8MM_PCI_INTB_IRQ =3D 123, diff --git a/include/hw/arm/fsl-imx8mp.h b/include/hw/arm/fsl-imx8mp.h index 2be3c51af56a..3acfffd30fb9 100644 --- a/include/hw/arm/fsl-imx8mp.h +++ b/include/hw/arm/fsl-imx8mp.h @@ -276,8 +276,8 @@ enum FslImx8mpIrqs { FSL_IMX8MP_WDOG2_IRQ =3D 79, FSL_IMX8MP_WDOG3_IRQ =3D 10, =20 - FSL_IMX8MP_ENET1_MAC_IRQ =3D 118, - FSL_IMX6_ENET1_MAC_1588_IRQ =3D 121, + FSL_IMX8MP_ENET1_MAC_IRQ =3D 118, + FSL_IMX8MP_ENET1_MAC_1588_IRQ =3D 121, =20 FSL_IMX8MP_PCI_INTA_IRQ =3D 126, FSL_IMX8MP_PCI_INTB_IRQ =3D 125, diff --git a/hw/arm/fsl-imx8mm.c b/hw/arm/fsl-imx8mm.c index 37934d295111..90c167346147 100644 --- a/hw/arm/fsl-imx8mm.c +++ b/hw/arm/fsl-imx8mm.c @@ -590,7 +590,7 @@ static void fsl_imx8mm_realize(DeviceState *dev, Error = **errp) sysbus_connect_irq(SYS_BUS_DEVICE(&s->enet), 0, qdev_get_gpio_in(gicdev, FSL_IMX8MM_ENET1_MAC_IRQ)); sysbus_connect_irq(SYS_BUS_DEVICE(&s->enet), 1, - qdev_get_gpio_in(gicdev, FSL_IMX6_ENET1_MAC_1588_IR= Q)); + qdev_get_gpio_in(gicdev, FSL_IMX8MM_ENET1_MAC_1588_= IRQ)); =20 /* SNVS */ if (!sysbus_realize(SYS_BUS_DEVICE(&s->snvs), errp)) { diff --git a/hw/arm/fsl-imx8mp.c b/hw/arm/fsl-imx8mp.c index f855378dff2d..fbc094b7db90 100644 --- a/hw/arm/fsl-imx8mp.c +++ b/hw/arm/fsl-imx8mp.c @@ -620,7 +620,7 @@ static void fsl_imx8mp_realize(DeviceState *dev, Error = **errp) sysbus_connect_irq(SYS_BUS_DEVICE(&s->enet), 0, qdev_get_gpio_in(gicdev, FSL_IMX8MP_ENET1_MAC_IRQ)); sysbus_connect_irq(SYS_BUS_DEVICE(&s->enet), 1, - qdev_get_gpio_in(gicdev, FSL_IMX6_ENET1_MAC_1588_IR= Q)); + qdev_get_gpio_in(gicdev, FSL_IMX8MP_ENET1_MAC_1588_= IRQ)); =20 /* SNVS */ if (!sysbus_realize(SYS_BUS_DEVICE(&s->snvs), errp)) { --=20 2.55.0 From nobody Mon Nov 23 04:26:25 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129366; cv=none; d=zohomail.com; s=zohoarc; b=lhNpEFKsYsACRkqYBsgUflxYbVOLXER4RbFWW3cKFQfa+jMKAtF7LJK9SXf75QUztXaMsnI4ntisS53ngijL9cIdlV36qFKZGXYTwljnxyC28EpFzgKrFTk/oXzT0qQcUBkLDNCw8TiY2v92ixSZR5pRia6PpgNQxzVjEr/djCY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129366; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=64yoYBDdyaAlS+N/JwPaIdbbfiffX1y7hU3iftRzx00=; b=JVyEA/7sRbL1kQw5MJ8h3+0FzdTS9l/WTrqZ6bZkrcBhc8q5iFc76CPp3wHK/nJVfz4ebGs8btZT2jGgs77JtQwJAc5edofZAfzWg4gw/6Ac1igAjxRgm6Y1dy0j+2QSUUViCPbq6yHzjY63SfiPsqfJb2Zuav4ejCI0jzD+hsY= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129366817685.3588833942276; Tue, 27 Oct 2026 12:29:26 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmqX-00037F-Up; Tue, 27 Oct 2026 15:28:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmq6-0002yB-5r for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:28:09 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmq4-0002ME-KQ for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:28:05 -0400 Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHMg92088124 for ; Tue, 27 Oct 2026 19:28:03 GMT Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjp2tbb6b-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:28:03 +0000 (GMT) Received: by mail-qv1-f72.google.com with SMTP id 6a1803df08f44-91b4bf686ceso5321486d6.3 for ; Tue, 27 Oct 2026 12:28:03 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a94e3c638csm2592965e9.8.2026.10.27.12.28.00 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:28:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 64yoYBDdyaAlS+N/JwPaIdbbfiffX1y7hU3iftRzx00=; b=kTn39QJbHxyfzoKx WVfAWjc2MC8CwcUgLaJA/nL2rOOrTeB+zpvEDPSQVnT2aQh0vScYu7G47R0oBXZ6 mcxRtneUgWEo+2qkoIOhQjh2h/fMAFPmWgfD08yZV1bwMVDXzqrR53zDX2/6TBR2 NXnB4Ncjp1/ZAs4RtiCm95vu+L9mx8X73LsntE3H0mj1j3IJ1lr5UDB1XanJi191 wqqzQI/Oe1oiCkheQOu1w/pLvdiZPbTX3cSL6/OPzEamUMLAVwHXVt/HGkpMBe+j qhKlvoHjyOf7B5spWpvQBLmlrDYuVa/ZEH7QIKYjwLWuedJN1oEfYXFxNttdEOen FGl1nQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129282; x=1793734082; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=64yoYBDdyaAlS+N/JwPaIdbbfiffX1y7hU3iftRzx00=; b=clwi97bKEH80+sJFRyvdPDh8kDpYfXvBnb5sjLvpPm/hSiEHq3LzzjHt04hSq3BQQK GqN44bIQq73o6Op5AKf5WXtopHRQ/HjljeKhb9M9jtu+Jbg9Jv870d8rlHpbC01ivuBJ zNIeB7B3Qxkd+HwnStxwbVb236OZ9PnuCDyToNRswh0ZwUxDLkpu72lwIgAKL5CKhgBY Tlw7JGWj5PzM3zmpGh1dr7KqvnXBKC6aXbSKXsZLuA4pFeZVT9sy3CWROY+vVV/UxMrt fP5rA7f/gLKGBxk4iOrnmJvlJBjUSJl2OfN0VZfFZ9a2zDIWG3LycXjLoqHxjrunTdvz sTKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129282; x=1793734082; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=64yoYBDdyaAlS+N/JwPaIdbbfiffX1y7hU3iftRzx00=; b=jPBkZC6rRTp8mu3PSM3nNpz117OhSpre1wF4lmwx0KJVoHoyzhxp7FvFISOT1BCBq4 niMgXe3oFZlsyCjJZZZ1p6YzooaO8D+rLKTFe2z1CFq6gDq7BToclU8ycF970ryYcD/T 2jBLxysV9BFYX6j39bs8z4aKvNmLLeW/qKVVuiM85BOGaPGzRfBSB2Fvyft1z0+dWig1 cWJASCa5MA1jyi0n1443D7Be3hFT+qKVC4QYrons1KazVp3qnxPnKeIcRI6LhZ8TeyWi F7X4+UYoKZXxth/XDC6yQONWd5bW0HZeT3MVNb69DbX6GmL5OoZ6SHTHyh91wKBsOgCO 8WYQ== X-Gm-Message-State: AFq9FYLG4qeH2qVp4gu88NIoS79/sveH5cv7rEcxDrWja8FmWTeaEhDc sANId4UJk9+HtEbrtr1v5c0jghmEL4n9kKzk/c/6GVQj9Aqy0oHVUfdHNtL/k6IXcTaiDg6lW4C x/l3xkoeJjMh64mlsdCdjsnkPCOBAFYQKyuTP4yb11ciayeIscSPjFDjG82o7CQIEtg== X-Gm-Gg: AYBFou3BAOPB/HB/FQkfhdvCWH7EI8WYXZIPAHIepRXT3smTt29ZSYYwZRrHlJ4dsoe aXl8ocysEEknSFlneOjpATQjy/9uWB8SrTqvja2iQSsghVLFL5w5sKEEUo0UhKlpMZFUfB03FVm hEqaR+RO2eLxwIwAE2r5rfeO41t6AiDNda5AQbCmAwJda1tAFICJPSlZ/3EQSvRIay85f70/IbZ zY4CqjR9PZ6aivs4YwMu8frtdCkdWeJhzdbm7yWDLWY8BRP8vrapqynrCGVIeh4uR4fa8zXuAg0 D9ABJgj9v3dY/zZdFtRMHo7CqxhgJTebFumzXmUgM/w0h/LnWDWEXlh6T3UX9afS6NSgR1X22vX tbYeqQQwyBl/Op50rsShpbG4jm/ClFTB2Itx/L4Dxn63aQIsyIG1embBH X-Received: by 2002:a05:620a:4728:b0:93e:942f:b8a5 with SMTP id af79cd13be357-940ef8aec7dmr1729999585a.14.1793129282246; Tue, 27 Oct 2026 12:28:02 -0700 (PDT) X-Received: by 2002:a05:620a:4728:b0:93e:942f:b8a5 with SMTP id af79cd13be357-940ef8aec7dmr1729996085a.14.1793129281748; Tue, 27 Oct 2026 12:28:01 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 38/59] hw/misc/imx6_src: Avoid casting from void * Date: Tue, 27 Oct 2026 20:23:19 +0100 Message-ID: <20261027192341.9197-39-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=AJjzCM5L c=1 sm=1 tr=0 ts=6ae0fb43 cx=c_pps a=7E5Bxpl4vBhpaufnMqZlrw==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=5EfrD_kSPsmhVrOwvXAA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=pJ04lnu7RYOZP9TFuWaZ:22 X-Proofpoint-GUID: 4w3-35hr4i02YE7jZl8FmUJ9rneNtinl X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX5ELC0kOfwfZk F/Ux5AvARjfmwQBR2Jura3gzWK7Ylw/iUSGve6y3TrlWpPnj581x9WfMb2fa1DL5s9tdAP06P9k iRf/whUPCLV9hHur0Wh2+QeZa8GLhNM= X-Proofpoint-ORIG-GUID: 4w3-35hr4i02YE7jZl8FmUJ9rneNtinl X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX5EyE7OP1uXwB OqudkpzlvbCScRdSftk35EBhTM4VoyJRJJKAZMsCK1AI9MAaVHvh3sLyNap8PFadMz8KW5DYh2S b4es/GxODyGBsEhSR+Digko6NIum9eOlVNfqojiBc+A+3+gosw4zPRTh+j7AEtBw8iWzqXzE5RS lmazZ77JCrSfLW0YgAb+atzet9MND3BVY/H0RTO1nr+FmF01L5JrDPkjrQuKCESglyVFESEG4WD Z0gMDL+8Bv+b2XJoyItc+pmNYAg+qIotpgpGEqKxPWDL6vh+dgpfdFr7TlYzwagPg5qy7J4eHcH VqWj68VNmh2mfSQB8zIFdVgzyPhq2mHaGdVsV09UpP3q+AK2T+mr57eLiEDDU5bFX9ZTcV0nfDG t27TNfA+yudo+jnO3sVlBONlPELIlSXxyboj1cG6hzBnd7SlQvAux7HbtfcwV2ve9fzh18Ijy/E rKocdvlyTtY1uUFa1mw== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 bulkscore=0 malwarescore=0 spamscore=0 clxscore=1015 priorityscore=1501 adultscore=0 lowpriorityscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129368049154100 From: Bernhard Beschow Signed-off-by: Bernhard Beschow Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-ID: <20260921214710.29422-36-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/misc/imx6_src.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/misc/imx6_src.c b/hw/misc/imx6_src.c index 8d2c4175e4e1..5bc1318f9d28 100644 --- a/hw/misc/imx6_src.c +++ b/hw/misc/imx6_src.c @@ -89,7 +89,7 @@ static void imx6_src_reset(DeviceState *dev) static uint64_t imx6_src_read(void *opaque, hwaddr offset, unsigned size) { uint32_t value =3D 0; - IMX6SRCState *s =3D (IMX6SRCState *)opaque; + IMX6SRCState *s =3D opaque; uint32_t index =3D offset >> 2; =20 if (index < SRC_MAX) { @@ -150,7 +150,7 @@ static void imx6_defer_clear_reset_bit(int cpuid, static void imx6_src_write(void *opaque, hwaddr offset, uint64_t value, unsigned size) { - IMX6SRCState *s =3D (IMX6SRCState *)opaque; + IMX6SRCState *s =3D opaque; uint32_t index =3D offset >> 2; unsigned long change_mask; unsigned long current_value =3D value; --=20 2.55.0 From nobody Mon Nov 23 04:26:25 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129370; cv=none; d=zohomail.com; s=zohoarc; b=YNzOEHVw38cqyR+33aZEL1cvqyRjduv6M/P/EUarV8zRsSlxKCzHrHFy8uwlhoXgmmTAtbn+d0qgrAc+NnsN9UW+ahgEEotgRYioDr9ja4orkTm30KQ4bcnADCMayF0E82TIyGCe5F0rHexwfZvw++3EoY30toKPz/86n5td4mE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129370; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=/wPjkHgW9wVwXB04Sr9QnRNc+JYiq3caa9eHemufq9U=; b=BqpAjd3doPRLYQ1OAXyCfZLXEr8xZtK7PZJjkavLqptPW4L+2YInbn7po2IlAXPmtZP3owpWnm8tA9EyqVkOOu4+0YgzWJECdimu7Mu6lQkeK8wWnD5hKizlMP4iSTsi8SdKhIQgHmYEhi5C0JMVXRuI1j53i1hRO0wO1LADySc= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129370571601.8662762894504; Tue, 27 Oct 2026 12:29:30 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmqs-0003c7-2I; Tue, 27 Oct 2026 15:29:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmqE-00031m-0Y for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:28:24 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmqB-0002Mf-Fa for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:28:13 -0400 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 69RIHrlC1459821 for ; Tue, 27 Oct 2026 19:28:10 GMT Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjy710vg1-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:28:09 +0000 (GMT) Received: by mail-qv1-f71.google.com with SMTP id 6a1803df08f44-91c7a1a32a5so6778866d6.3 for ; Tue, 27 Oct 2026 12:28:09 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a94fce50a8sm1821895e9.4.2026.10.27.12.28.07 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:28:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= /wPjkHgW9wVwXB04Sr9QnRNc+JYiq3caa9eHemufq9U=; b=XDKDu/fAr+TaCNpW jiTIzMRzOw/2vGgR4nb2wHruAsEa0BNU/jGyIArw8AfZw5kJUkNHgyBskfnbtv// UPLMHHOkCmRVbQ7pRh5jwWYgQrZqLBZgA49piCYBQiDW6X5lq0838B338Pnii0Bz TsChJIvLU4GNmPQI8LigkHa3XadDAEEPBevVH0wZaFpp3wCj0A11aGNGZItR3ufQ Ex4/H56L+oo3pjpEXloyIsgCJikIgLcQrcUL8r8FcHkcTanBHu1dBo491b+XWu3U y9A7kNfo9sgtNh/KxJW0SCkjQVUdGGgumpusOZrJep7mlmEMCQEHPFUisFDDuEEv C+T5wA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129289; x=1793734089; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=/wPjkHgW9wVwXB04Sr9QnRNc+JYiq3caa9eHemufq9U=; b=XqOmIj2Se2sKa+/mBt73kR7BNblELxobgEPBVUeBc6pBvWxCT1GiuJU7GDyGPcZSBV 6yCexSY2JcfMtOF2O+ByAoGjLdlIIT21JwNGUwjKbGLSkVGw0Eh61HHK8U/6lD19vk3T ShE8ky7X9Z70DEo2yadXj1XihMKd6FTgZ8b0aZU8W22cuxy8wrp/3lwx3qxclHwQQOEY dXetqlxnzrN+DGX6vcKKMG2B6AHhPvPhCh5HopApy8PsdnKPaWEcexKB9cdogu378umS 0HdKhI3iXRs18BcpB1Em8mHEHiI9mGHRmYVs5VyKV2boTNartDW7ZpoBt1i8pruMyUhY CmgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129289; x=1793734089; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=/wPjkHgW9wVwXB04Sr9QnRNc+JYiq3caa9eHemufq9U=; b=KHQiCRkv7QIhPPwgmEfquB8+NkjRfofQQaugpQz1izECiWXd/d8Zy0W4AlOwuLzJ4M LQ04ubtwP7zm33HA9In5lqwaM6scTUf2YSgl8oViQRm8w8c4ce9WvOxE8y3J46xXSyNS ee4+CfR0cjKw7uPS1mcKd0Xt9j7wS7uK0u0+/ebBiskM8p19bTrURyGfBo9Mhv1J8IAv qRT0CRnjIvwfDpryRIwK2jmRXMe4qvmSgiWSWQ6UxI4jjxOA1sE2YcIeLe8QI+vMEDoy 0RCbFmYqfpLAJlz0PqUVN+pEJJIpaAvU8Fanz/i03mpfuwivxgsyLO0OE6wY2M5lXqYD JeCA== X-Gm-Message-State: AFq9FYKe+84v0NFo5aDYhZcuhGrusjQUzBOezg98gXarsIz8qnJoIlTn LpNIZbk+JERxk0DF1gqtJmRI1pycqYWS3UnQQIIz80yx5Dy3lc0cU9NB2p/V9FioyfpwmXvgwSa UZk62juu2Trums/pzvMgBVxiPCYzL2GFbHic+c2lrMfaR+q8mdm49xmexc0DkTd1lbQ== X-Gm-Gg: AYBFou2V0jsmXudw77Jd2UsXzV2kg6wcCvzuMAcACL2LlZgLUfXvmy6tI/Q/j9xaNr5 ocwEfu6CIwuQV9fAIGPDBYBtpKK/c1KKGLSLrt6IpRkfnZTuSKVhf/XiOfV0P+CmaWs4eTPDymS 0NPKSqRnmiKuF1i5i9F9BZjLCABrwk5qOMMNpdkJEHZmGK4OxrQIWAvVC6JATaHkNjRRbQ2aJoC UnUbwcrhXvZ4QW8NQjulKmkg3OiQlyEbAOxwLZOJt+E24njah8lAYxoAN0KaNpe9TZNVqgIIHGy CdLB+Qk0gaOyHr0CJbDDutVXqoN77PmTV54v2ixZjEXnljf9rVGbmBsSEMH9z7KQ0+wFP79Luuz ykePLPbbSLCAj5Uoha4hy4VyE0E1KDgeyxR4hk9fYXh0RYT7Tk0zO1KdK X-Received: by 2002:a05:620a:4714:b0:93f:2985:40d0 with SMTP id af79cd13be357-940ef92abebmr1791262985a.34.1793129288972; Tue, 27 Oct 2026 12:28:08 -0700 (PDT) X-Received: by 2002:a05:620a:4714:b0:93f:2985:40d0 with SMTP id af79cd13be357-940ef92abebmr1791257685a.34.1793129288469; Tue, 27 Oct 2026 12:28:08 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 39/59] hw/char/imx_serial: Avoid casting from void * Date: Tue, 27 Oct 2026 20:23:20 +0100 Message-ID: <20261027192341.9197-40-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX1Tdm2QBjC6ga bob1LNSqWZtd2YfnA4bi9/gFCAa70eTXBbYDgEpcwlzcmA31tuNFDidMBxh0IsQP3gdTxaAXC6w AXVwI+EyQkw6wYaWfW8BGodLRMVVO0iXQnthKLJoeOPs8MeGRJFdHyfz5UQoVhs9D/gfhn7ZSnA 4rQjlKZiRfFopfPWNJGRYyNqXf3dwMNKpPGyXpC6LHMSXRImOKrKtTIsRCTUII2MTo6MiiRVEV+ IYUzHFjxulraBRJelsIw9gFU4dpiSY/dDIlI55ay0HN39ELxVZJg56/H0g1dY1zAdt++5buqzy5 YXVUQw98U51g/Pqms1E3oCW18sB8xqKQI3ccMyI4+uKEH+AKieO/kzhZsXuiRg5qMPrAYSuFAsx DACLny+8/TE36pOAyg34bLZrWSk5PaFKOnh0Wjds9LpYUKrezHFZz+DYq2DGnpJTV2+ul4ThZRL CSdsLPYI3FmGri+XKJw== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX7lAtcvIoR91K VsNUPEjfSvheEZ4isdhLY66MpV2ZT1Rb9YLyMRndF81pXoqh3fgqb3wF8gL6dzhZO3vH3vBBSmY 0uIsTF5cTeyffsZ13+fpELU3rlNkePc= X-Authority-Analysis: v=2.4 cv=JspkP84C c=1 sm=1 tr=0 ts=6ae0fb49 cx=c_pps a=UgVkIMxJMSkC9lv97toC5g==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=BfiHqgA561l1T9IiZdQA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=1HOtulTD9v-eNWfpl4qZ:22 X-Proofpoint-GUID: tqevnJS1hUXozHDke3OLYtgg1o7dWjjv X-Proofpoint-ORIG-GUID: tqevnJS1hUXozHDke3OLYtgg1o7dWjjv X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 phishscore=0 adultscore=0 lowpriorityscore=0 clxscore=1015 spamscore=0 priorityscore=1501 impostorscore=0 bulkscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129371600158500 From: Bernhard Beschow Signed-off-by: Bernhard Beschow Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-ID: <20260921214710.29422-37-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/char/imx_serial.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/char/imx_serial.c b/hw/char/imx_serial.c index 8ac4efbb5e98..8780678ea4be 100644 --- a/hw/char/imx_serial.c +++ b/hw/char/imx_serial.c @@ -186,7 +186,7 @@ static void imx_serial_reset_at_boot(DeviceState *dev) static uint64_t imx_serial_read(void *opaque, hwaddr offset, unsigned size) { - IMXSerialState *s =3D (IMXSerialState *)opaque; + IMXSerialState *s =3D opaque; Chardev *chr =3D qemu_chr_fe_get_driver(&s->chr); uint32_t c, rx_used; uint8_t rxtl =3D s->ufcr & TL_MASK; @@ -277,7 +277,7 @@ static uint64_t imx_serial_read(void *opaque, hwaddr of= fset, static void imx_serial_write(void *opaque, hwaddr offset, uint64_t value, unsigned size) { - IMXSerialState *s =3D (IMXSerialState *)opaque; + IMXSerialState *s =3D opaque; g_autofree char *label =3D qemu_chr_fe_backend_name(&s->chr); unsigned char ch; =20 @@ -386,14 +386,14 @@ static void imx_serial_write(void *opaque, hwaddr off= set, =20 static int imx_can_receive(void *opaque) { - IMXSerialState *s =3D (IMXSerialState *)opaque; + IMXSerialState *s =3D opaque; =20 return s->ucr2 & UCR2_RXEN ? fifo32_num_free(&s->rx_fifo) : 0; } =20 static void imx_put_data(void *opaque, uint32_t value) { - IMXSerialState *s =3D (IMXSerialState *)opaque; + IMXSerialState *s =3D opaque; Chardev *chr =3D qemu_chr_fe_get_driver(&s->chr); uint8_t rxtl =3D s->ufcr & TL_MASK; =20 @@ -416,7 +416,7 @@ static void imx_put_data(void *opaque, uint32_t value) =20 static void imx_receive(void *opaque, const uint8_t *buf, int size) { - IMXSerialState *s =3D (IMXSerialState *)opaque; + IMXSerialState *s =3D opaque; =20 s->usr2 |=3D USR2_WAKE; =20 --=20 2.55.0 From nobody Mon Nov 23 04:26:25 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129369; cv=none; d=zohomail.com; s=zohoarc; b=LTeqORgjFdpEjESXuaA3D1/tyQgySpw96C3b9tJC5r39ARBvqH6SoOspwLKokkxKpb75aie7er56RMqHgwD5ujbfhWhQ1+cU2tr46afl+SPbMWJVHXTQiS+S7Iofq8xzrsjF4NU+x0sb7ZO5aOf4b1aYZdKO7tGGnXWe6HQhNjA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129369; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=o24jYxqx1KYFpEMPeG18alFtELNq+iu5O4qnwULGYAk=; b=SpaYJSt9bY/j1mYBuo3ymGy+sgIcuLXzhsOsR4JyABzL8AqkbdMOn4QS+nrz2ErahfmwXEmqWt3E82HwpjtL3xTM9NLNIg4bDWlk4ctALPrpc9TWPEDWkJCJHzWiONLLPVBdsjLb7z3ijGfqavbpRfgCONwyvT5ZVteQpq6aLZ4= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129369280888.8974700969544; Tue, 27 Oct 2026 12:29:29 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmql-0003Wc-DP; Tue, 27 Oct 2026 15:28:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmqJ-00033Q-Vi for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:28:26 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmqI-0002ND-DX for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:28:19 -0400 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 69RIvrFS1545961 for ; Tue, 27 Oct 2026 19:28:17 GMT Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjy710vgf-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:28:16 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-93f37c94ceeso268996585a.1 for ; Tue, 27 Oct 2026 12:28:16 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e3eb8f25fsm23732926f8f.2.2026.10.27.12.28.14 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:28:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= o24jYxqx1KYFpEMPeG18alFtELNq+iu5O4qnwULGYAk=; b=ZopkEM75r6BbnTDZ FEYnu+GcTQ/OdwHKnBUlRiwmYniFj2o7n5upK7Kdvu2+jnSKSMZsXqyHXB6ltFBJ PhGOfIzASaJyk8wXbUWuZZds8rvFEe4OQpiKFyJSAuhxvWwfUpdPM4P3aXYD+pa9 Y0nzTGhaClOPUc7VzICyhVG37BKSjbxxyIjzJ5Q/1a7PnZnQUFkcIOxAX42cgtKY BDEln5NhQOrMR7yIEwHa1xUPIbqaEzUeiFTO+Ohub483c3ZLUIC8J5azYKhTcZSO hCkAtXZDQYwPWNBMx79gY3yaqiMl5jOmg5hfIaBGLpmq7mXHkq25/egzG6gK54+3 WYiuvA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129296; x=1793734096; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=o24jYxqx1KYFpEMPeG18alFtELNq+iu5O4qnwULGYAk=; b=BUZGEmwgCHZsyt3l53yngOJcqANZF7QlqMFQppOmRcsNROSr5qN08DFqyVQBdMtt7Y CkO2GTBXkDYle3hpFAk/58e/sAYqYK1GSSF7VBT7HOpCm3X3ReP2hzDoZsO9ww7MeK4O Mg+IFtba48yWXrt5Ew3ksLD/Ld6zENhOrZc9/Pv7YS5mV1mXOBYEhsPiYKaqxUJW6J8+ soMdZs8aOkl+t9VVbDOqPPypq36exPY8OW4z3fafimfrRjtxaVIFLd8YqZWZ7kPJvXX5 seVlsI43of3RHb8v98yGBapFheuVmJOecY7j6tcuN70RqdfZ579j3qfnd8Rd4mVneq/a KvhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129296; x=1793734096; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=o24jYxqx1KYFpEMPeG18alFtELNq+iu5O4qnwULGYAk=; b=sQRk1E3couRlHbjPn/PNrKhxCbieCIkoStFLWrjWynHpZmRulHhO2l6uDg+Tqw8YDV Ix0IWpSb0dxBLDw0IHzx+blqY6gms0RA+19zFLptiE9yUykQisS5/yl+tMC3zdP9s00z ENoWkfJ2NUsJbk5gyq2nNisexuymcj18JleYUtTiyoG2SQPj5AKpLYRX2UJ1qus0YZIN IbOkC4JSvOY3RXCYW7LHe5Hm6vDD7PGfbZ8pM9di6MbHA3m2OoQtoQ3F4kfZjVxpd/el F98uphdVewyrHWJB+5N6bTwohtOzcgqmqvaS/l6KzySAi3/SaGU/kywUd8dO+HEMN+8Y VVxQ== X-Gm-Message-State: AFq9FYKWsc11eiSI8QbGLa3MVJYqnR5t3DLfRp2kXFU/JFdSY9s2ZY6N JL6FSRcY9o40X707hxZ0t25GRFu3SyzR1XdtNrRhTL4iv53QCjK6A7iFfTqHzw3O3ZCNfqnuM6p RkH6jd3cSSye3z0tR7ehYbhIZE5q82XXW4HiFZoGBLbsccUd0oEugs5v/qN0mUP/9Yw== X-Gm-Gg: AYBFou2UeddffcFvGSs5LZaV4ouoSn3BUPdpZW/bOpYk9xZ1Ntjw/2pGUIsIxVhLmU5 oHvywYUQhY5lulpAya13pYBH2h6qrj8SFHPK0jHTiYE3vyWK6b7o39CwqszzuTaZNI9lZ55O/uu /yS6W5S9mdUh5GDW7+HjWr8PEOymeBv9bJipoyo4imSB3Xcief8Cy0Tnq4Onv12e8ftITsOPlpz NqUEVFY96NVc0NbzcbAsHzE70wsE1+aZHzMZKyMy9PqVrSFxcI1Wh4V236aYxeDY6KZ1nC7otws Aw0qRKDMiHinsRaXGnjsZnHOpi3yoNxkKOny0sRus1nFwLn6xyt6UwnELuCxgfDWkVpaQb7AliE AMRhPCQD43ekxSrXX8V3W2RYSugg0kaBKVbTiWgOEqOOC1vlWlT0l4tG7 X-Received: by 2002:a05:620a:1710:b0:93e:c12d:4ecc with SMTP id af79cd13be357-943f4c2b6d8mr641212185a.44.1793129295790; Tue, 27 Oct 2026 12:28:15 -0700 (PDT) X-Received: by 2002:a05:620a:1710:b0:93e:c12d:4ecc with SMTP id af79cd13be357-943f4c2b6d8mr641207185a.44.1793129295157; Tue, 27 Oct 2026 12:28:15 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 40/59] hw/intc/imx_avic: Avoid casting from void * Date: Tue, 27 Oct 2026 20:23:21 +0100 Message-ID: <20261027192341.9197-41-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfXxkTvFxc9fLHH s+PT71zEBMTDBaovrBBJnpS6w45500tpxMx1thqPRrdIzclFkF67vdkyf0KULl+YQiVmFQoiWe0 4JSDtoQfZm/SK5LyXPZ+yZ1Hwdj2egdZTHF5fIaDMM0BdK/LVhVv3Ii/WX4YQeHrhBHeiMWlwS+ P24Zfr8mhmig4tLxachKYfpu98mNSnJJUaSoxF0yv3dRU4Rdv6vliVkhDagjL6Lh5rMvq8moPHn OdHApk/qB7YHVFjd75ngiCIfza3Al3EYFXRGa3lxJ1pjK/nvRRCvN3UABk5M8GQzYqjsYbEIfC5 8fuH0ANatk+3vIdweX9OfFBmcH5hBeeEdjFNqL9bFejL/NIf+aaTJDRaLt0sFOqJlM27rcw0DVf HzemmNt+TxZa2lJJITBlfU0GBaIjrZqNZfRN6b1NbDyuUSU8dDjFK/XzhbnAlCKxuHSiwSw9SpL b1La3tsfcApZCLurX9A== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX5zRna4Hw0nFH QBR1udlyW9NVsy0qvP0pm4MNkE9MNwe6xvQlAbQJOyMu/0DC+JaU4d3gyv0OBPdccu42cSMEJVW 0MUjHNevgyUdXjSTKs7fi/00O8doedk= X-Authority-Analysis: v=2.4 cv=JspkP84C c=1 sm=1 tr=0 ts=6ae0fb50 cx=c_pps a=qKBjSQ1v91RyAK45QCPf5w==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=02MBybJkZlpQRTkSaFYA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=NFOGd7dJGGMPyQGDc5-O:22 X-Proofpoint-GUID: FoVMWgyMEHRYXfa3Ebd0936z_KvD-2_G X-Proofpoint-ORIG-GUID: FoVMWgyMEHRYXfa3Ebd0936z_KvD-2_G X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 phishscore=0 adultscore=0 lowpriorityscore=0 clxscore=1015 spamscore=0 priorityscore=1501 impostorscore=0 bulkscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129371593158500 From: Bernhard Beschow Signed-off-by: Bernhard Beschow Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-ID: <20260921214710.29422-38-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/intc/imx_avic.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/intc/imx_avic.c b/hw/intc/imx_avic.c index a3d71aba8ef6..d05c71fb3941 100644 --- a/hw/intc/imx_avic.c +++ b/hw/intc/imx_avic.c @@ -89,7 +89,7 @@ static void imx_avic_update(IMXAVICState *s) =20 static void imx_avic_set_irq(void *opaque, int irq, int level) { - IMXAVICState *s =3D (IMXAVICState *)opaque; + IMXAVICState *s =3D opaque; =20 if (level) { DPRINTF("Raising IRQ %d, prio %d\n", @@ -108,7 +108,7 @@ static void imx_avic_set_irq(void *opaque, int irq, int= level) static uint64_t imx_avic_read(void *opaque, hwaddr offset, unsigned size) { - IMXAVICState *s =3D (IMXAVICState *)opaque; + IMXAVICState *s =3D opaque; =20 DPRINTF("read(offset =3D 0x%" HWADDR_PRIx ")\n", offset); =20 @@ -217,7 +217,7 @@ static uint64_t imx_avic_read(void *opaque, static void imx_avic_write(void *opaque, hwaddr offset, uint64_t val, unsigned size) { - IMXAVICState *s =3D (IMXAVICState *)opaque; + IMXAVICState *s =3D opaque; =20 /* Vector Registers not yet supported */ if (offset >=3D 0x100 && offset <=3D 0x2fc) { --=20 2.55.0 From nobody Mon Nov 23 04:26:25 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129384; cv=none; d=zohomail.com; s=zohoarc; b=iaUVXeG8yh4QvejbVocUse2zAwYV8RLG3SGsdyo67KKtCIfZ8sNdfbi4KLubrctuotUilmhnxRyRZBVv+CM2AsYQgAoEW8Wrk5dISs9C76xfvf751Rnzp8qnvDPOomYGzpUD2AUAbllvacpwf3Goz0jzjDsnGA4VQu0YkBOdBaQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129384; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=aVHtcDzQoKWY9ebfAxKY/sSDNQ1or6DjRqUGLE5mG2o=; b=XDEfUi2cg3OeLOe2C4FjGDmH4qtMzDzKc9U8wi1Wep8WilSBN9X5R2zlx+7M4U/tBJ8U49D6LXG5scmXiPSUG6RU9jw4xHrJ4J2pgGJcQiMHCw+Ghz+ecBn4bt/hgTor4zeRWMVyiJotjltXAh2A7N/PwfbkNxH4o/trwdU8iuQ= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129384110408.12083223571176; Tue, 27 Oct 2026 12:29:44 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmrF-0003zZ-R3; Tue, 27 Oct 2026 15:29:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmqS-00036w-Hu for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:28:32 -0400 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 1xLmqP-0002Ni-9J for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:28:26 -0400 Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHrFF2960671 for ; Tue, 27 Oct 2026 19:28:23 GMT Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjy670vfp-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:28:23 +0000 (GMT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-93f3969a2a7so20148385a.2 for ; Tue, 27 Oct 2026 12:28:22 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a94ec845d0sm2506745e9.13.2026.10.27.12.28.20 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:28:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= aVHtcDzQoKWY9ebfAxKY/sSDNQ1or6DjRqUGLE5mG2o=; b=YYb1mx4oW6eVEBDP 8smkXkZ11p59P+GeTnzlIdzyDr5+G+S9lYYDltJvy9F08N8E0pNRJWvg/nTcnJFY WLdygmfDcmiYaIO4/JfUxQeLl4gA9DN8hZc1w+NLi9Ju1QyQHGGDoDNDtZIYkCcg K9/FlEGhEFBueZZGXeyAnhPgBY20hCUP65sQKiCQYLG3DGFjGPj3LS/IDStFDqfW Sm3rHlSuM3/c5ZxQxqtbeah/Eka3Zdrqtt78yR2GvTRTGEymgfXBxRHJPdkGt9Ih veJPIfJml9LqBOTzrCj0nvojdGxHsaZlH9fdc4CG/NB3xAjU8FPNO3dhzmJcuOOC NzpsjQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129302; x=1793734102; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=aVHtcDzQoKWY9ebfAxKY/sSDNQ1or6DjRqUGLE5mG2o=; b=aofMkFStV6xlqRSQw8n7KWf79+tlCQyWuwOWIYCfqImcMZjBUnf9+T+XuJZGZjmLpW dbHAfOwZDwKl1BOzEA1UyXRgPT15vtHgWzaeoeK5lB3l+VPTXMAVITZSQ2Q+yEaNMq16 2r+30cGed4Dyuxbw4nkWkW7g5ZIeA5hvkyxGnxHNvMtp7j2bpnJP4+C5n5XammB8jsdu A+0+fGd5eGcKH2tlMthMUKb0xMDY7yHqQD2vKa6nhkMWCJ206Y+lU+/Foh/v6+gcdhUs PyccgakItuq9M0OXgynGDsGm1kivt6vrHFo4UXk7hBccwBTcX2bufC1FpuEOIAUAZD4W qq4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129302; x=1793734102; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=aVHtcDzQoKWY9ebfAxKY/sSDNQ1or6DjRqUGLE5mG2o=; b=b03j3oIIOrtzpKNOf/FG/p/K/HW54V7dnw98tXWTc7kewKQ2YmcWLcHV8kvMykkQht JUEt67PE8MOjrrsVyscuuU8mqoK1oKIPS+a3TXbAQjbDcwEck0qMCIrE4nOYHJyAanHu mWS+KZhyomDwq8VvpzyhH748SNogzkNdBZhNRb0K3HXGAzgKhM42maaZKfEUcekGybrg P0MfwMQVxeEPAVKq6rLqm32WT+Ybjv/Wu31L3uHD7ypEHPx/qFnhLt26ban2HirCMI19 i6jNATBUnP/gve7qrsRp2vHRw/nhBNO2KJSJJmJKfdK2OICR/JF+nPv5/NftqkbEKTRB 165A== X-Gm-Message-State: AFq9FYKh7CjYdx385W49dMzrOGPdiJYxWkj/xRvteYEDiwE8abuLmtxO iCD0Me8t41Z2aQy7qLmEEgPUGbE0GpvpfvX1B2dw5goy9q3sZoa1j0yxmLFrV86lnHPLjMp5LKx IRZgWO/rTkdXWLmyEOVzTSnZyF1KWTbETC2/7+kyxXavsneyKQ12Yt/PXXWOara7j0Q== X-Gm-Gg: AYBFou3jCF14NvAk4JsXCP6hu0KQ5iWHkvb1iBvUu+ChctJiMUdIUHSXQI2srtEx5XH CUz0wNe/R/vw+nrXeoZWi4s7F/mkAOlaaR07VLc6ujOaD8ZUvh03Xb9Y/q2qPP3alYtstOrczFL MKdrUBPNG0cSx2Qo+5/9zI3UXxwR5OUHckeDrqQJMy4r4H42SWBq5aPShMBAXL6soIfICR++aDw cWs1zsj6T1J3WVmILbk3EdueiauBLvpcRB0X5fnSno/9AkFSyokHfbPpAaSJDA1orshcNe7O+OH 70OXmkh58oqDLAhBXDzKA3A3+Qj6g57mnzA7AKlp6xs2Jv38Z3rK7xyA7HpNUtg+jYDX9UOi2hf 1mvuKHM5cDEcH2ROgB9wX+OY6FRrCOrZCNWW34DdJH1iwHrCM83vNmhKDj4g8bOWa1NdhZ10Sx3 Wps2ge/N7UKJc7+19JpM8CxxcEo6ERmQ== X-Received: by 2002:a05:620a:4385:b0:93c:70da:e45e with SMTP id af79cd13be357-940ef94005bmr1543500185a.36.1793129302381; Tue, 27 Oct 2026 12:28:22 -0700 (PDT) X-Received: by 2002:a05:620a:4385:b0:93c:70da:e45e with SMTP id af79cd13be357-940ef94005bmr1543497385a.36.1793129301868; Tue, 27 Oct 2026 12:28:21 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 41/59] hw/misc/imx*_ccm: Avoid casting from void * Date: Tue, 27 Oct 2026 20:23:22 +0100 Message-ID: <20261027192341.9197-42-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: pv4STZQjDx_9DQ-EjAVVTUtdOVA43FqB X-Authority-Analysis: v=2.4 cv=QvfLTlyd c=1 sm=1 tr=0 ts=6ae0fb57 cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=Gluuv57YqANPM52PeZoA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=IoWCM6iH3mJn3m4BftBB:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX32o2Y1CYi3eq yxPbkHdVfNGqZ0UqndPp6vTAhBga2I4Fn/DXMMSJFxxLYYnDssLfY049pU4e4eg4gUVIVQN6AcT octmQ3CUvaWvMNgg3uujsg0Bj57pbSY= X-Proofpoint-GUID: pv4STZQjDx_9DQ-EjAVVTUtdOVA43FqB X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX+LliiofwuJXU /PQvi1l0eRt/17jNzetFBfdYUIn3kLC1SZ+qxLrboGEJnoaSjck3ALx3NzJkHZZvIiykmYToVYb IN++sj7Vd4OaaQ7J2es23jlqWvNjwrk+jXI26AzqzjTZr5dI7fheZ/FurjZRr33VcEx9/w+Q7Bo qufCZEHsFhqtlVi18TaZcLFWlsQZWSMpXpagnfp4dMuuAmyr1pmmmy6v8guYK2TJvr6vsmO65HY 9m5/QgJCOX6D/YoTNHTbdn2oS0FfmC+Rr9QFeyTPyTF5rV/9WcXjG8jdOlC5I8Mee9G3i1p0GGR LYYWJvL5hXOR9ZaAhxWlnKN1D4LIsg2k1l+cuD7stfDVi2GiHypgGH6xl1UokgtHwrHkXyPCJiO 1UcEiUpPjiin+3ojegJDq/kZ6NTEs2MzTVOQ9C1fiWD/wiMlWzqWPx+xSfApxzdIp+GZmOd5ve/ M0mGNi8kmlevSxVY91w== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 lowpriorityscore=0 malwarescore=0 bulkscore=0 spamscore=0 impostorscore=0 clxscore=1015 adultscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129386155154100 From: Bernhard Beschow Signed-off-by: Bernhard Beschow Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-ID: <20260921214710.29422-39-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/misc/imx25_ccm.c | 4 ++-- hw/misc/imx31_ccm.c | 4 ++-- hw/misc/imx6_ccm.c | 8 ++++---- hw/misc/imx6ul_ccm.c | 8 ++++---- hw/misc/imx7_src.c | 4 ++-- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/hw/misc/imx25_ccm.c b/hw/misc/imx25_ccm.c index a91b0be68285..8fd2a329ddbc 100644 --- a/hw/misc/imx25_ccm.c +++ b/hw/misc/imx25_ccm.c @@ -217,7 +217,7 @@ static void imx25_ccm_reset(DeviceState *dev) static uint64_t imx25_ccm_read(void *opaque, hwaddr offset, unsigned size) { uint32_t value =3D 0; - IMX25CCMState *s =3D (IMX25CCMState *)opaque; + IMX25CCMState *s =3D opaque; =20 if (offset < 0x70) { value =3D s->reg[offset >> 2]; @@ -234,7 +234,7 @@ static uint64_t imx25_ccm_read(void *opaque, hwaddr off= set, unsigned size) static void imx25_ccm_write(void *opaque, hwaddr offset, uint64_t value, unsigned size) { - IMX25CCMState *s =3D (IMX25CCMState *)opaque; + IMX25CCMState *s =3D opaque; =20 trace_imx25_ccm_write(imx25_ccm_reg_name(offset >> 2), value); =20 diff --git a/hw/misc/imx31_ccm.c b/hw/misc/imx31_ccm.c index 8d620711ddd9..3cb9f44fab82 100644 --- a/hw/misc/imx31_ccm.c +++ b/hw/misc/imx31_ccm.c @@ -222,7 +222,7 @@ static void imx31_ccm_reset(DeviceState *dev) static uint64_t imx31_ccm_read(void *opaque, hwaddr offset, unsigned size) { uint32_t value =3D 0; - IMX31CCMState *s =3D (IMX31CCMState *)opaque; + IMX31CCMState *s =3D opaque; =20 if ((offset >> 2) < IMX31_CCM_MAX_REG) { value =3D s->reg[offset >> 2]; @@ -239,7 +239,7 @@ static uint64_t imx31_ccm_read(void *opaque, hwaddr off= set, unsigned size) static void imx31_ccm_write(void *opaque, hwaddr offset, uint64_t value, unsigned size) { - IMX31CCMState *s =3D (IMX31CCMState *)opaque; + IMX31CCMState *s =3D opaque; =20 trace_imx31_ccm_write(imx31_ccm_reg_name(offset >> 2), value); =20 diff --git a/hw/misc/imx6_ccm.c b/hw/misc/imx6_ccm.c index 45fdd0d5a8d5..4a40fe08ea72 100644 --- a/hw/misc/imx6_ccm.c +++ b/hw/misc/imx6_ccm.c @@ -491,7 +491,7 @@ static uint64_t imx6_ccm_read(void *opaque, hwaddr offs= et, unsigned size) { uint32_t value =3D 0; uint32_t index =3D offset >> 2; - IMX6CCMState *s =3D (IMX6CCMState *)opaque; + IMX6CCMState *s =3D opaque; =20 value =3D s->ccm[index]; =20 @@ -504,7 +504,7 @@ static void imx6_ccm_write(void *opaque, hwaddr offset,= uint64_t value, unsigned size) { uint32_t index =3D offset >> 2; - IMX6CCMState *s =3D (IMX6CCMState *)opaque; + IMX6CCMState *s =3D opaque; =20 trace_imx6_ccm_write(imx6_ccm_reg_name(index), (uint32_t)value); =20 @@ -519,7 +519,7 @@ static uint64_t imx6_analog_read(void *opaque, hwaddr o= ffset, unsigned size) { uint32_t value; uint32_t index =3D offset >> 2; - IMX6CCMState *s =3D (IMX6CCMState *)opaque; + IMX6CCMState *s =3D opaque; =20 switch (index) { case CCM_ANALOG_PLL_ARM_SET: @@ -611,7 +611,7 @@ static void imx6_analog_write(void *opaque, hwaddr offs= et, uint64_t value, unsigned size) { uint32_t index =3D offset >> 2; - IMX6CCMState *s =3D (IMX6CCMState *)opaque; + IMX6CCMState *s =3D opaque; =20 trace_imx6_analog_write(imx6_analog_reg_name(index), (uint32_t)value); =20 diff --git a/hw/misc/imx6ul_ccm.c b/hw/misc/imx6ul_ccm.c index c4f6e372fe1c..f12ba6ebe22f 100644 --- a/hw/misc/imx6ul_ccm.c +++ b/hw/misc/imx6ul_ccm.c @@ -625,7 +625,7 @@ static uint64_t imx6ul_ccm_read(void *opaque, hwaddr of= fset, unsigned size) { uint32_t value =3D 0; uint32_t index =3D offset >> 2; - IMX6ULCCMState *s =3D (IMX6ULCCMState *)opaque; + IMX6ULCCMState *s =3D opaque; =20 assert(index < CCM_MAX); =20 @@ -640,7 +640,7 @@ static void imx6ul_ccm_write(void *opaque, hwaddr offse= t, uint64_t value, unsigned size) { uint32_t index =3D offset >> 2; - IMX6ULCCMState *s =3D (IMX6ULCCMState *)opaque; + IMX6ULCCMState *s =3D opaque; =20 assert(index < CCM_MAX); =20 @@ -654,7 +654,7 @@ static uint64_t imx6ul_analog_read(void *opaque, hwaddr= offset, unsigned size) { uint32_t value; uint32_t index =3D offset >> 2; - IMX6ULCCMState *s =3D (IMX6ULCCMState *)opaque; + IMX6ULCCMState *s =3D opaque; =20 assert(index < CCM_ANALOG_MAX); =20 @@ -754,7 +754,7 @@ static void imx6ul_analog_write(void *opaque, hwaddr of= fset, uint64_t value, unsigned size) { uint32_t index =3D offset >> 2; - IMX6ULCCMState *s =3D (IMX6ULCCMState *)opaque; + IMX6ULCCMState *s =3D opaque; =20 assert(index < CCM_ANALOG_MAX); =20 diff --git a/hw/misc/imx7_src.c b/hw/misc/imx7_src.c index 77f13bd020b7..4a59e347c58d 100644 --- a/hw/misc/imx7_src.c +++ b/hw/misc/imx7_src.c @@ -105,7 +105,7 @@ static void imx7_src_reset(DeviceState *dev) static uint64_t imx7_src_read(void *opaque, hwaddr offset, unsigned size) { uint32_t value =3D 0; - IMX7SRCState *s =3D (IMX7SRCState *)opaque; + IMX7SRCState *s =3D opaque; uint32_t index =3D offset >> 2; =20 if (index < SRC_MAX) { @@ -167,7 +167,7 @@ static void imx7_defer_clear_reset_bit(uint32_t cpuid, static void imx7_src_write(void *opaque, hwaddr offset, uint64_t value, unsigned size) { - IMX7SRCState *s =3D (IMX7SRCState *)opaque; + IMX7SRCState *s =3D opaque; uint32_t index =3D offset >> 2; long unsigned int change_mask; uint32_t current_value =3D value; --=20 2.55.0 From nobody Mon Nov 23 04:26:25 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129369; cv=none; d=zohomail.com; s=zohoarc; b=iNFeO92OMV6lIP1g/nROUI2TZ37R+wboyk4G7rNlNNx6hvAej+3oRRs8V1G2PKk3+JvUB8e2F40LTG1K5taxQm2ireuvVKJrVpZnCpAOdE0/fIWSA4Ia6ex9IBTFkSJSfDQZSu2X6/3awzS4IKRLjHLo1cRZv3J4mYCa0T6+4vo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129369; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=9KU08PS/7KfI/b/b6CZXjb69XBndLwgQXJZX4cCER6E=; b=gCCZ7G+SUXFB4PLMHhfYaykhfZcttsMQwZhtjpInjlH/bqgJFePvSyqpvs4dRZrUxKFhlJt1zl+YZdYOq4IlKPAXTAjWBLGmswVXn7S5cf3Xrzo3S0mS2nzitrnOcqHnuwPSOLV6r34BZcSYVrn6ZCVhtR0nKvDzBohmWbPXue0= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129369021527.4438882559273; Tue, 27 Oct 2026 12:29:29 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmrH-00047C-BT; Tue, 27 Oct 2026 15:29:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmqW-000385-7k for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:28:33 -0400 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 1xLmqU-0002OI-On for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:28:31 -0400 Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHSiC2945866 for ; Tue, 27 Oct 2026 19:28:30 GMT Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjrq6apnw-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:28:29 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-93ce7a85f04so27825585a.0 for ; Tue, 27 Oct 2026 12:28:29 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a94c021080sm2980055e9.2.2026.10.27.12.28.27 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:28:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 9KU08PS/7KfI/b/b6CZXjb69XBndLwgQXJZX4cCER6E=; b=DYQfSG9vP5JvBZHa 43DgylTEXH6R0ahGLf8IPQKKhGYQGLCG4iUe/8DOXai/V2d/BY04GCfS95XWuOEQ KYZImcA2Pdzv7q03zOuuX1qS460Wb9ehJpCcsOoaFTrqS5jOHK2rwF9kSX5ohJ2m cPvijdSCINmZUDwNc6eCpWkee965GZzvUAgjSsr8HmQGkHb0oQ9PjnRtovKZ3aM3 UCzQicivMw9zaZBJMx+dN9KtoPOftJ5KYN7UOx8/x57DH9PxamGF0ozfRJP8GD1e OyLdDqMQsevaq8Nf7JlDowUphEhWABjHL2lNaMH2v5/EMx3y8qIKxxb2shc++yRs 57DW/w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129309; x=1793734109; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=9KU08PS/7KfI/b/b6CZXjb69XBndLwgQXJZX4cCER6E=; b=Q0eZXqj1XJRN6d32Z5J12hdC0DMHAm1EjrW6Ot+2W6Ro8vr6GQaJX5snRNHdstoRaH Icp9dTYwrI/WZ8YXiu513H54fv24XoI6fdlIod7YsHQPXkTnQSvm3oX3prAnWaDJwUxy ApYY2A6KYDUmIpu/XB5LalvTVmuFUh7/dgoxzkFiJOU63i44JNiBwuw4OfnNIhgLpMMw U0ThNrgbEacaDV9RUHcvcUklZmr88rNRBYo1k3A3IV9+LeRXhfPEDmd0j9VrNvMvjvQS 9/xxtseO6a0j1x0nlq1MCcujvHouzyj4OGQ8F3+gOluv/xbaXVInQI4NdFPgJ7mldBJ2 TR3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129309; x=1793734109; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=9KU08PS/7KfI/b/b6CZXjb69XBndLwgQXJZX4cCER6E=; b=Jnq4wV+pUSkj8nOveXnobOjVFBFfWkcfdHIW07BMxWIRTwIy/pABqEjto+RbO8qXkp 6mCSWLn2F+ezuwFKUlFmJW+yYWrc55Zzt5iazAWoV/L7vQ9tLH6z7VTu3gLNCHQ+iAXQ kV7UqQGCR57Wx5x7KZc0z1L8Roj10VuAmW8ylucDfBv8ubxC3fLF/CvqduKANWVNoLon XjytK9CvKrkK0BYPJArzN+35MFqPQohVIJhanBo7QA2VsJi7Q2PBf6DbyqK4wLwpmsg5 34znwCxMj2PM+0rbetV/s/safmfR/w0jlSOx3OMU4Bt5bV9FUZxdVs/e8SLtXTOL9DFE wevg== X-Gm-Message-State: AFq9FYJlcpM0v4znD/aBWXCziNLcBpgPpPILRL8Kb3l2DtQU2yJNC3iK S/tAgmgJ8Hd7Xdajiw5wio4jOweQNATThfbx+hlkAYgBT1FFbZfz4z3uFd2lLYmpiB8RZIhe+y8 QmehiuEfjS3wosUmOdTeRyM8b17e/DMLSysLiybKANYwNXkPOwTXhvwuBmAK+OLkucQ== X-Gm-Gg: AYBFou1+aSeoKzmKCGDma8b6Ar1EqY2m9IrixjBZuwEJYqm/5lviqvQnuoT8M14QTAj 8jimg4MUDkHudPKGBq/SPGsJPEt41ZxIEvxCO1UideiOjR3Og9WkI78piy9s4l9dDRFbBFSGEG+ Wqe0pVZ29PJQL8MzkNrt0WJbjyXpoxc45Kjs8ArZbeubgLpTs86BFd14ScnsX7SMdFbGHNTBAjW t9UqdZXQvGDmrjpc0X59V9GNjsr5eF1LDyrZhjYReF1NIq2/QvFcCd6rGXOcNW8l86iHh0Cf2Xt ValR54FqvT7ytP9ykvBn6cM1IKaOlAre2AWr8wcC7kNe9H68eWZ6SUHBA8NZckT8Wy1ZytaCNaD JROi2KQ9ov1Z3x8wqW0DtmOuf1WRXvtUKFtftv6COsozUOcV81KWnGOlv X-Received: by 2002:a05:620a:6887:b0:939:6dfa:48fd with SMTP id af79cd13be357-940ef96543fmr1659258985a.51.1793129309246; Tue, 27 Oct 2026 12:28:29 -0700 (PDT) X-Received: by 2002:a05:620a:6887:b0:939:6dfa:48fd with SMTP id af79cd13be357-940ef96543fmr1659255785a.51.1793129308718; Tue, 27 Oct 2026 12:28:28 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 42/59] hw/usb/imx-usb-phy: Avoid casting from void * Date: Tue, 27 Oct 2026 20:23:23 +0100 Message-ID: <20261027192341.9197-43-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=RYwFmFtv c=1 sm=1 tr=0 ts=6ae0fb5d cx=c_pps a=qKBjSQ1v91RyAK45QCPf5w==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=KWf96nYnDwajBr6vBR0A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=NFOGd7dJGGMPyQGDc5-O:22 X-Proofpoint-GUID: 44al81Zz0ag6QjIroHeCN4bUkblIenT1 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX1ETr7TSBYtli /iEYUkqfbotSPMGbm9e7ts0sY/hgaDwGLddMg07N752G1cu8jAl2psgj5kBwQ+PwFkdmbO2UDLC jULRE7vVuMTAo69hKEodLSp9NwOsLeE= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX2ajBi2SQhjl6 CTSmJveO23oHInLh8e+AzN2nDSz/uOXBu4OR1CHELhrIkC6Q2KpmBtCD7JrvclcVavdsiVG4tnm VFMdlzOL5RJxDulb+l3sUT3abEURMCoAXeZPgn2jmkQ7fzGRHxHYHEpzBmB1IhWgmD8rFnywrCb UaL2jAsEzU8Gm89+UsQmdG5okcE9qzI3gyp2kgxSy2//tQvUY/zN8Z/2N3QISu+EFPp20d8jK/X QhX6kUYY9T2lkaUHbDw4KzEu1QqywQIk+10TnzGquY1yhyJHWzQjyn/Ua894ZY5fj7Ln14A7jnL D/ug19txL/zRifKuuF+k0YajT8bMlharCKxp71VpBM1+5oqC+r/+R9YbZ1z2fMzIqhb3QlwqLmD xKb+P6bcQjO8nDkyVAStfmXkyqawvApfyhe+eS1yzLKIPFPXkYvH8LiBa2s/eBHJ2dtHfi3clCI +weHTGtRqlK79dMqnSg== X-Proofpoint-ORIG-GUID: 44al81Zz0ag6QjIroHeCN4bUkblIenT1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 impostorscore=0 spamscore=0 phishscore=0 bulkscore=0 adultscore=0 priorityscore=1501 lowpriorityscore=0 malwarescore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129370139154100 From: Bernhard Beschow Signed-off-by: Bernhard Beschow Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-ID: <20260921214710.29422-40-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/usb/imx-usb-phy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/usb/imx-usb-phy.c b/hw/usb/imx-usb-phy.c index c25566d0fae1..2b2913c38751 100644 --- a/hw/usb/imx-usb-phy.c +++ b/hw/usb/imx-usb-phy.c @@ -49,7 +49,7 @@ static void imx_usbphy_reset(DeviceState *dev) =20 static uint64_t imx_usbphy_read(void *opaque, hwaddr offset, unsigned size) { - IMXUSBPHYState *s =3D (IMXUSBPHYState *)opaque; + IMXUSBPHYState *s =3D opaque; uint32_t index =3D offset >> 2; uint32_t value; =20 @@ -108,7 +108,7 @@ static uint64_t imx_usbphy_read(void *opaque, hwaddr of= fset, unsigned size) static void imx_usbphy_write(void *opaque, hwaddr offset, uint64_t value, unsigned size) { - IMXUSBPHYState *s =3D (IMXUSBPHYState *)opaque; + IMXUSBPHYState *s =3D opaque; uint32_t index =3D offset >> 2; =20 switch (index) { --=20 2.55.0 From nobody Mon Nov 23 04:26:25 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129375; cv=none; d=zohomail.com; s=zohoarc; b=WSH22N+RV8niAvck1s1FPBL7LZXX7Fb6zIYcIxy7oJdtZByEiDD9tkm3BBdNgHZgLgU+DXQsBu1/G1ctT+g+e6iOVQZaweqS66QOvKsKvk/qEvBxafLb+bhWfOAo8xRduDnTIvSeQMhxEsynalQU8Xfmp8HIr9JNEzew3SLswBo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129375; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=hYSbwvuhi2bW/x5mAC8EcmP9hHCJt2X/qMX0ldYPw/o=; b=EFzMhD+aeg4ktQsSlFdSwmvpCcVS/p6KqknTHLwq6WDtihi5q7Johmi8F5+C2Qhuv5szYFyED3aQ0Iw06KLJ27umILTjt1nQ5wbOA+AZQPAkIRmWc2iGEsaDh5DoEa6uQ9/DfnlS7qvQsKNe0nojAOdCN+mKuMqapUfV5q1u70s= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129375558549.4276040380709; Tue, 27 Oct 2026 12:29:35 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmrP-00058E-Ui; Tue, 27 Oct 2026 15:29:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmqf-0003Pd-Pa for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:28:43 -0400 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 1xLmqb-0002Ow-Vs for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:28:41 -0400 Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHRl62639301 for ; Tue, 27 Oct 2026 19:28:37 GMT Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjqf5u20w-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:28:36 +0000 (GMT) Received: by mail-qv1-f70.google.com with SMTP id 6a1803df08f44-91c7c7e8becso2549116d6.0 for ; Tue, 27 Oct 2026 12:28:36 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a94f5311bdsm2985205e9.5.2026.10.27.12.28.34 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:28:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= hYSbwvuhi2bW/x5mAC8EcmP9hHCJt2X/qMX0ldYPw/o=; b=MxjchDOznba8GSj2 yHhoSehuWMFUnw9sKNOh1Dv7d46jX6O8Pa8XfdRj0uEKFpOm3/kOXIJNXsYgbF7m /kweqLsejz49QikcIGs6bPM0UU8nKifaRYwNSa/3R5vs5swnzC7O9PyAC0ZO1Oe2 /1x/FdyIlDXTcwL9Rr19pOQgQd7iG8A+wDTGrJd/drZGRe4J2S+mw5O2HbitqC7c NwPgvrrBbV6cPx32ixT7mhWrKbH0QUFCthqhrVQpRoecfgJTY3u737HHCaNPKN9z Sf0XnAKaLXVz6EB1gaj6FhwhqExgcwbcwHO7WE6BHGuKr+AHuIo8oOR2WQWzDvXG M4o2IA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129316; x=1793734116; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=hYSbwvuhi2bW/x5mAC8EcmP9hHCJt2X/qMX0ldYPw/o=; b=ib2epcS5DYjiM7wzbGv9JAi1hbyaeL6SUClUFh1iJDUPFOlBjqewMmNe0gXrJ6Q7xh D17pmrR/5fKw/T067LKdODk4qzR946MN7/Py2u0eJwR+t/w3qFGrf2KIcxK+PWIeAY9e VqyOESbL8v0w6mVEvk8wz+h5PncOUBArtalAXNC2dEehxbginkMbbnw2YwscK1xo3WI6 ma0jRh+SrPTNJElFRDEFQqEX82FVu84yxFy2hWLGdeLDJXM07auPCO28qN14MeXRoVtM 1phzJaN/UgHYi4hhh+HIEazCq0hETq6qa9fzboybPyrVoWxFBL0QxUmiJd9QfM/8ya4k NxIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129316; x=1793734116; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=hYSbwvuhi2bW/x5mAC8EcmP9hHCJt2X/qMX0ldYPw/o=; b=sMnohZ8ccmEFmocd1pTi+LVBCUtp30VGb7YEg1qGNxAS6KMdOjuqvbTnNzdzLllAss KULxws3GRfL95noOew0q0gWtkcTHsdW9JClcD924hVR4Wnyq747LlIGCrwu0JgSYzca+ bL0LBgnstLGZm2pycJuuydP14/yt2bCfmMSvqpZBcjyTs9Yw3Yh+UX9yd+ubCit6LHKO Gcq8QGuBy4OPlo/BpIKQB4belsoflIz2TU87ngQYiZtkSzTgx2Gv766h8Cep1aXnx2R3 QMsoFaxbGG7kD/ilH4FQc+HmFJgXpm8172PcoNGFs6bpRx+9LvQrcycOtjlKzlKVy8d/ M3Cw== X-Gm-Message-State: AFq9FYL0kZxlEpAmmYJ5ly/44uBXpx2d0VUF74rFIa9zjhGoKtoAbCev KHd8Gdvt0qH2Ge3XfVZlguT9y9jWmG2i2TkpxtKtHjZkZb+IgCdeO+ic01SXWwlUolx8eZMYGn9 e/oQk6Wq9OQqZWUQW+zB5xX1QRfIyuAFVLSX7aN6DLjbFUkGLPFvz133XuMGc1EX6dw== X-Gm-Gg: AYBFou2KCt/gRUSkWqIDS6FnGSoMY3PROkx6eZbSpfEhU09O0vgvny4LJXrwsYLSuGm 3uKcyG+t1i1hDkvUj5oS9rWkKfzFcdNYgx3xADKhIrRW9cA494H244o3eJ3FI19mOR73NSwg8DG /eyAL6b1xfBFSDTi8NmUwMQBxEje/eNacAtdAiHSAMedwOmgUY/b1d/mjPyH8WBawEjeiqweJXJ kNcje8FQCC3lPO0VqHLXyABcOfAL9OXq0p3ieHpqaWLk2QUFm4sCsWernOiWir3MXnlTK6IRpQn 5E2r4ZNfN97gFnyCCgr24TSu8IN3P2tpv4vu4E7x/kQduGEEseuVQpEcF2D+UGaRK1tiHyHMODJ 8Bu8zNQsFUsrqMzHBGerhYUWUXiOXHEhlKCyoh/knvt/5GJJj9h+DcYyT X-Received: by 2002:a05:620a:1712:b0:93c:80d8:57ec with SMTP id af79cd13be357-940ef927616mr1702470785a.64.1793129316277; Tue, 27 Oct 2026 12:28:36 -0700 (PDT) X-Received: by 2002:a05:620a:1712:b0:93c:80d8:57ec with SMTP id af79cd13be357-940ef927616mr1702465985a.64.1793129315581; Tue, 27 Oct 2026 12:28:35 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 43/59] hw/net/imx_fec: Trace with QOM path where easily possible Date: Tue, 27 Oct 2026 20:23:24 +0100 Message-ID: <20261027192341.9197-44-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfXyWCPjaoAAvCx OhLhM28puRjfmBR3bBBOAsshj1lVQbz/xy0Nr2p2e910pkQmxwQ4IeENE7tK7WxWwXou8Tioime 2F7SVpJO+UssdvCtvCLCaiz+pwBGIx8= X-Proofpoint-ORIG-GUID: K_3MbQLDEBpbCqn8J3AXBf3I9uKClzhb X-Proofpoint-GUID: K_3MbQLDEBpbCqn8J3AXBf3I9uKClzhb X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfXzz1HoDKdEoCV EYPvjxZg3IsfKq939gXHPU88fL8xHKr2A5Vyz+fN1jszN/6ZkEpIC6y42Vl1pJE4+wxM6jash+V dsCSxUegj9SYLLJYcnBx/c0yKCjIP/Tq4jEP+Dy5K7JqRIHBtxrrxwy1Nl7efg0bQdXdoXoQKBH daqFqqMKrw/cMugWqgwWf2uaIApQM9J2EDIgDKDzOL8w6ZNbos9mGmxuaVWKCs587sRjnFAPRSQ FEvw07Wsb0wwb+/9ztK8tglvxfO2cPqucvwN+svz2TRoDCL0YTdiABJOelUIo6WQVmY62NnHol2 O2k30bRQlvfSkqC3UnyoXLNDErOzy5mP7zWp1FzBB/NqgIQ0uOctEEDArNijTKGy7rfofmq71l5 MayEefThFiZUeaQNYErUpLXbHnCrPcRLy0OOC/CBU9JZHJ2v1NCh6KMXbjBoPXgAvwTOz1U6JtL 6Q5abEXA2MK1T6UOKcw== X-Authority-Analysis: v=2.4 cv=UOFIjyfy c=1 sm=1 tr=0 ts=6ae0fb64 cx=c_pps a=oc9J++0uMp73DTRD5QyR2A==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=DJJ0lQ6uop2uk4lV2pUA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=iYH6xdkBrDN1Jqds4HTS:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 adultscore=0 clxscore=1015 impostorscore=0 spamscore=0 phishscore=0 malwarescore=0 bulkscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129378030154100 From: Bernhard Beschow Some i.MX SoCs have multiple i.MX network IP blocks. Allow to distinguish them via their QOM path when tracing. Signed-off-by: Bernhard Beschow Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-ID: <20260921214710.29422-41-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/net/imx_fec.c | 28 +++++++++++++++------------- hw/net/trace-events | 24 ++++++++++++------------ 2 files changed, 27 insertions(+), 25 deletions(-) diff --git a/hw/net/imx_fec.c b/hw/net/imx_fec.c index c177b7ff2b7b..fb8bcd52d203 100644 --- a/hw/net/imx_fec.c +++ b/hw/net/imx_fec.c @@ -248,7 +248,7 @@ static uint32_t imx_phy_read(IMXFECState *s, int reg) if (s->phy_consumer && phy =3D=3D s->phy_consumer->phy_num) { s =3D s->phy_consumer; } else { - trace_imx_phy_read_num(phy, s->phy_num); + trace_imx_phy_read_num(DEVICE(s)->canonical_path, phy, s->phy_= num); return 0xffff; } } @@ -270,7 +270,7 @@ static void imx_phy_write(IMXFECState *s, int reg, uint= 32_t val) if (s->phy_consumer && phy =3D=3D s->phy_consumer->phy_num) { s =3D s->phy_consumer; } else { - trace_imx_phy_write_num(phy, s->phy_num); + trace_imx_phy_write_num(DEVICE(s)->canonical_path, phy, s->phy= _num); return; } } @@ -364,7 +364,7 @@ static void imx_fec_do_tx(IMXFECState *s) if ((bd.flags & ENET_BD_R) =3D=3D 0) { =20 /* Run out of descriptors to transmit. */ - trace_imx_eth_tx_bd_busy(); + trace_imx_eth_tx_bd_busy(DEVICE(s)->canonical_path); =20 break; } @@ -446,7 +446,7 @@ static void imx_enet_do_tx(IMXFECState *s, uint32_t ind= ex) if ((bd.flags & ENET_BD_R) =3D=3D 0) { /* Run out of descriptors to transmit. */ =20 - trace_imx_eth_tx_bd_busy(); + trace_imx_eth_tx_bd_busy(DEVICE(s)->canonical_path); =20 break; } @@ -521,7 +521,7 @@ static void imx_eth_enable_rx(IMXFECState *s, bool flus= h) s->regs[ENET_RDAR] =3D (bd.flags & ENET_BD_E) ? ENET_RDAR_RDAR : 0; =20 if (!s->regs[ENET_RDAR]) { - trace_imx_eth_rx_bd_full(); + trace_imx_eth_rx_bd_full(DEVICE(s)->canonical_path); } else if (flush) { qemu_flush_queued_packets(qemu_get_queue(s->nic)); } @@ -659,7 +659,8 @@ static uint64_t imx_eth_read(void *opaque, hwaddr offse= t, unsigned size) break; } =20 - trace_imx_eth_read(index, imx_eth_reg_name(s, index), value); + trace_imx_eth_read(DEVICE(s)->canonical_path, index, + imx_eth_reg_name(s, index), value); =20 return value; } @@ -767,7 +768,8 @@ static void imx_eth_write(void *opaque, hwaddr offset, = uint64_t value, const bool single_tx_ring =3D !imx_eth_is_multi_tx_ring(s); uint32_t index =3D offset >> 2; =20 - trace_imx_eth_write(index, imx_eth_reg_name(s, index), value); + trace_imx_eth_write(DEVICE(s)->canonical_path, index, + imx_eth_reg_name(s, index), value); =20 switch (index) { case ENET_EIR: @@ -951,7 +953,7 @@ static ssize_t imx_fec_receive(NetClientState *nc, cons= t uint8_t *buf, unsigned int buf_len; size_t size =3D len; =20 - trace_imx_fec_receive(size); + trace_imx_fec_receive(DEVICE(s)->canonical_path, size); =20 if (!s->regs[ENET_RDAR]) { qemu_log_mask(LOG_GUEST_ERROR, "[%s]%s: Unexpected packet\n", @@ -993,7 +995,7 @@ static ssize_t imx_fec_receive(NetClientState *nc, cons= t uint8_t *buf, bd.length =3D buf_len; size -=3D buf_len; =20 - trace_imx_fec_receive_len(addr, bd.length); + trace_imx_fec_receive_len(DEVICE(s)->canonical_path, addr, bd.leng= th); =20 /* The last 4 bytes are the CRC. */ if (size < 4) { @@ -1013,7 +1015,7 @@ static ssize_t imx_fec_receive(NetClientState *nc, co= nst uint8_t *buf, /* Last buffer in frame. */ bd.flags |=3D flags | ENET_BD_L; =20 - trace_imx_fec_receive_last(bd.flags); + trace_imx_fec_receive_last(DEVICE(s)->canonical_path, bd.flags= ); =20 s->regs[ENET_EIR] |=3D ENET_INT_RXF; } else { @@ -1047,7 +1049,7 @@ static ssize_t imx_enet_receive(NetClientState *nc, c= onst uint8_t *buf, size_t size =3D len; bool shift16 =3D s->regs[ENET_RACC] & ENET_RACC_SHIFT16; =20 - trace_imx_enet_receive(size); + trace_imx_enet_receive(DEVICE(s)->canonical_path, size); =20 if (!s->regs[ENET_RDAR]) { qemu_log_mask(LOG_GUEST_ERROR, "[%s]%s: Unexpected packet\n", @@ -1093,7 +1095,7 @@ static ssize_t imx_enet_receive(NetClientState *nc, c= onst uint8_t *buf, bd.length =3D buf_len; size -=3D buf_len; =20 - trace_imx_enet_receive_len(addr, bd.length); + trace_imx_enet_receive_len(DEVICE(s)->canonical_path, addr, bd.len= gth); =20 /* The last 4 bytes are the CRC. */ if (size < 4) { @@ -1131,7 +1133,7 @@ static ssize_t imx_enet_receive(NetClientState *nc, c= onst uint8_t *buf, /* Last buffer in frame. */ bd.flags |=3D flags | ENET_BD_L; =20 - trace_imx_enet_receive_last(bd.flags); + trace_imx_enet_receive_last(DEVICE(s)->canonical_path, bd.flag= s); =20 /* Indicate that we've updated the last buffer descriptor. */ bd.last_buffer =3D ENET_BD_BDU; diff --git a/hw/net/trace-events b/hw/net/trace-events index 001a20b0e2ac..81af808044e1 100644 --- a/hw/net/trace-events +++ b/hw/net/trace-events @@ -444,20 +444,20 @@ i82596_ca_init(uint32_t scb, uint8_t mode, uint32_t b= ase) "CA: Init - SCB=3D0x%08x i82596_ioport_write(uint32_t addr, uint32_t val) "IO write addr=3D0x%08x v= al=3D0x%08x" =20 # imx_fec.c -imx_phy_read_num(int phy, int configured) "read request from unconfigured = phy %d (configured %d)" -imx_phy_write_num(int phy, int configured) "write request to unconfigured = phy %d (configured %d)" +imx_phy_read_num(const char *path, int phy, int configured) "%s: read requ= est from unconfigured phy %d (configured %d)" +imx_phy_write_num(const char *path, int phy, int configured) "%s: write re= quest to unconfigured phy %d (configured %d)" imx_fec_read_bd(uint64_t addr, int flags, int len, int data) "tx_bd 0x%"PR= Ix64" flags 0x%04x len %d data 0x%08x" imx_enet_read_bd(uint64_t addr, int flags, int len, int data, int options,= int status) "tx_bd 0x%"PRIx64" flags 0x%04x len %d data 0x%08x option 0x%0= 4x status 0x%04x" -imx_eth_tx_bd_busy(void) "tx_bd ran out of descriptors to transmit" -imx_eth_rx_bd_full(void) "RX buffer is full" -imx_eth_read(int reg, const char *reg_name, uint32_t value) "reg[%d:%s] = =3D> 0x%08"PRIx32 -imx_eth_write(int reg, const char *reg_name, uint64_t value) "reg[%d:%s] <= =3D 0x%08"PRIx64 -imx_fec_receive(size_t size) "len %zu" -imx_fec_receive_len(uint64_t addr, int len) "rx_bd 0x%"PRIx64" length %d" -imx_fec_receive_last(int last) "rx frame flags 0x%04x" -imx_enet_receive(size_t size) "len %zu" -imx_enet_receive_len(uint64_t addr, int len) "rx_bd 0x%"PRIx64" length %d" -imx_enet_receive_last(int last) "rx frame flags 0x%04x" +imx_eth_tx_bd_busy(const char *path) "%s: tx_bd ran out of descriptors to = transmit" +imx_eth_rx_bd_full(const char *path) "%s: RX buffer is full" +imx_eth_read(const char *path, int reg, const char *reg_name, uint32_t val= ue) "%s: reg[%d:%s] =3D> 0x%08"PRIx32 +imx_eth_write(const char *path, int reg, const char *reg_name, uint64_t va= lue) "%s: reg[%d:%s] <=3D 0x%08"PRIx64 +imx_fec_receive(const char *path, size_t size) "%s: len %zu" +imx_fec_receive_len(const char *path, uint64_t addr, int len) "%s: rx_bd 0= x%"PRIx64" length %d" +imx_fec_receive_last(const char *path, int last) "%s: rx frame flags 0x%04= x" +imx_enet_receive(const char *path, size_t size) "%s: len %zu" +imx_enet_receive_len(const char *path, uint64_t addr, int len) "%s, rx_bd = 0x%"PRIx64" length %d" +imx_enet_receive_last(const char *path, int last) "%s: rx frame flags 0x%0= 4x" =20 # npcm7xx_emc.c npcm7xx_emc_reset(int emc_num) "Resetting emc%d" --=20 2.55.0 From nobody Mon Nov 23 04:26:25 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129377; cv=none; d=zohomail.com; s=zohoarc; b=ZPHm1CRVevBjAjphh0YL4OiE9R/jcWoHWyd6Wy5+0NNpsAT5Z7Q9PJlCYcPuYuCEuneaIlVVaJ+6zhziL3zjCQqlHLjjzLX+JL1Md3tUrxGFZV5XGgGJpnHiiB/mYKYt9JML4/V8rd6fIWEg1L6ikonLYVhIjrE7/AvBNKoAS4Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129377; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=Y/BfbaE26gcWnbvzTsVqRyELQcp58GjPgwZGNGRMTc0=; b=ZV1x48ZrfsGXzV5IOMzJh912osw+LkqQqTQiUQPuSByY+GX4KG/PU707t0a+z7yhCPmWJ3qmriCdkn6JviWewmD3lrC6/+lYaMI68z1pDgNBAqZNSoFJMwmKlS0wZjLiX+oEUpuC4DSaL/PD1ZbIT51pJvLqnFMwbnWeOsjIp+Q= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129377253814.6782396141562; Tue, 27 Oct 2026 12:29:37 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmrK-0004QJ-7S; Tue, 27 Oct 2026 15:29:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmqk-0003ap-Lt for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:28:47 -0400 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 1xLmqj-0002PM-3V for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:28:46 -0400 Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIIAP03486349 for ; Tue, 27 Oct 2026 19:28:44 GMT Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjjbtc368-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:28:43 +0000 (GMT) Received: by mail-qv1-f71.google.com with SMTP id 6a1803df08f44-91becce058aso5439786d6.0 for ; Tue, 27 Oct 2026 12:28:43 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e3ebd4ba7sm24630076f8f.33.2026.10.27.12.28.41 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:28:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= Y/BfbaE26gcWnbvzTsVqRyELQcp58GjPgwZGNGRMTc0=; b=msUWCYbcxIw2Y8bz 4LM1UHwhoZbMfGqnCfh1vQ9kCjGSuqNwhlE0BZ36c8t0rxxjgrdaTj90MVWr0h0D 6Q7Nw2qDMi2xqwM43hDHB9ShW181p8tcOfGsNhQdL7F8raZzUKCupv1+GSpXtLu1 lovOU6vR54ze2B4kp1HNYle+EPs4fjyQVw4J0xypmlDE/8gp1/P6vI6yB50Gicdz jaU6WrwkZuiDW+qau9miUAjASVCqam5upgmzpijPI7LG7BKmCj9Vy0Axw/3sCHUa Sac6Gja7SH2CsuSpv23LswYnqaKgLhEVyeJ4zERagEUWDqSdmn+DDcJS7ZzcVM+z jPH9kw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129323; x=1793734123; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Y/BfbaE26gcWnbvzTsVqRyELQcp58GjPgwZGNGRMTc0=; b=SXwSK6a+aP5B1csWDfdROwE1KcB8Y9pso8BdBypvrI4nOGNpdGG4mubTgDi9Fx9SMp vfJi0DDQqNCN7TcxtV5id7Sc42hyZS4Y34UQpy8njXua2CD+wmbIHMR8MTma6ujOvw6S ISlyWUzNyoroBUuxrnNtgFwVWvomi7UyPvRrxA3up9SgJVCkwjYjkVGYlljp+g470ICd yK9HAJyeiB8ul8UDwu/pM23oAnM2cAeZLo2DhBRL5+eajXG7CGPz9zt5x3zLJxdD78RN Yng6+RAXRV6zanF4Wt60IPCN+5N//87nKRPl+d83hr4rZE32TTf3l3XwiEcmRKmbn4Av XPfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129323; x=1793734123; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=Y/BfbaE26gcWnbvzTsVqRyELQcp58GjPgwZGNGRMTc0=; b=biX7ZpEi+MOAJYyRuQ+emoFNMyaazGsqjb6lTNMb28PnEaVFJEV153avk1clqytqa8 JRN6xUDf8MK/5p8R51M/E0w3U32CLGkzncAiC3v0OF0DEspiPJB2hZj9A+q0bLNihCiN 7rnChDM4KxOYrcMn49FGMxfU/4995pWKSACqyfdXG6pjWpOjv618r6Wzk/eRnas0BE2K JcWy7sPYMiN8Gq4GPpTyvyQXnaqepW+I1dNzGPKoNkex2lDaIYT7EulclI9p8cJ77YCx VPQvsdihq/XOkf5WS9+77P5Z8NmT9wA5voFkjyR4LSskDyjgS5FkS3ttuaXvC/P3ro3S Jwrg== X-Gm-Message-State: AFq9FYJVnSQmhsWkBDgHtzFZd5S3a4byRf1PkrzkEdrwwd3lZNUy1HPU 1QEEBdIFjO3ry6qO9rEUG32aHnDtKDxnv7Yy603oXVICqwljYFW9J4aEs2amtSv62qxscucSZaf uPAGpZBspk38P8/svqkgxG1zyVWZRDTHnfB7A4n2e2fBVIr2dfXhOTUm+ZAU+cccPZw== X-Gm-Gg: AYBFou3LZ/W2Cn8LBwKGCbnNiyuVpbZ9OcxVl1cu6z+aK08U25T/PKCxDoft0fX83aA GbulZ9OlLkY2aC+EYsCqD+JEX2eM89DF8S+5vnRvM1ZNycF7/WNrbBv5anKty6U+XV4IpdZdCBd On4AeDipF2vj1QWsxNrPT8N5fA7ruDriTzzRYlKZc2aQHNOxMbywPU73hlVdmEC6x05YNQnKYAA JEPAnoO7R3yZ61HZFFKzKir2ai1/DMZCcbjiC1gAAPcGxRMu5FHI3cGQImrjf8Jc+2za2GLMiPN 7SXOCZIDejoby9YMbbT0uM0JdOvI45HqY6fKWukltYKOGGjdT5J4hJFAFBPXieKEhfiL5FsG7l+ 6DXi3RLzlhfixRgITMvBHMdhCzU7oVmAjC/24HibKEKaIrxJkS+w8U7T3 X-Received: by 2002:a05:620a:4087:b0:93e:c12c:4416 with SMTP id af79cd13be357-940ef9cee5amr1607326085a.82.1793129323384; Tue, 27 Oct 2026 12:28:43 -0700 (PDT) X-Received: by 2002:a05:620a:4087:b0:93e:c12c:4416 with SMTP id af79cd13be357-940ef9cee5amr1607322885a.82.1793129322706; Tue, 27 Oct 2026 12:28:42 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 44/59] hw/net/lan9118_phy: Trace with QOM path Date: Tue, 27 Oct 2026 20:23:25 +0100 Message-ID: <20261027192341.9197-45-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX1LDdR6lCISha 8vocTjpq5dGqU6WOhkNWBvmuZeIESZ93kvwWk7hf4Un3Ol764o/ibCYVr6ughCmupJW8R2aSZj2 DTOJFfcXMpmxGNAwZCIyYtGC0yQ20ME= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfXxR+aYUTzKkyu Jl/9yKyYSYI6nn851J/L4V1ZNpWDBN8uDkFvbOoJQby6FMIPncDloDc3R7iZLkNtUYB1hV3TkvK 1eUqx5cYr+h7jBsFVGImqujKSFl9FtK4kcH/1pEljhZEqw2PUGPCnLhK3XxxGogrJnh61xYAdYk +nLXy/7PyqE2LCGnfZKMW06oZbloxEsd+x2Gi1lg1wIFkIfZfjCodYFJ219g+cdIpkh4FYJH2vI ZQHRTgMsY+ufig8D6rHLdF/VcqVix2TRNSSI0HVjAkAE3UydMxrHrEq5dPRD97K6zAr4gwuiPuq QpaK05rMXE6KpTz0Z/2nBb/3OmLAmB5XqEymCJdVDL+D6NfMKieZdHPGGmuScnj0Dpi5zjaGIeo skfijo5r8tSXZgbLfm+4F1eoZNlDWJUFNUxnZtO5Izzoarz1sY2cLv1dzEVPqnsi+gV3nN0Hy4e ksvetskkjW8aFA4baEw== X-Proofpoint-ORIG-GUID: Ip6hiOQD2K71FHtKQ1L0gHx8z0Ex212f X-Proofpoint-GUID: Ip6hiOQD2K71FHtKQ1L0gHx8z0Ex212f X-Authority-Analysis: v=2.4 cv=XaIcX455 c=1 sm=1 tr=0 ts=6ae0fb6b cx=c_pps a=UgVkIMxJMSkC9lv97toC5g==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=fDfDFZYEbvkheSTyqaYA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=1HOtulTD9v-eNWfpl4qZ:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 phishscore=0 spamscore=0 bulkscore=0 priorityscore=1501 clxscore=1015 lowpriorityscore=0 suspectscore=0 impostorscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129377671158500 From: Bernhard Beschow Some i.MX SoCs have multiple i.MX network IP blocks which in QEMU use the LAN9118 Phy. Allow to distinguish them via their QOM path when tracing. Signed-off-by: Bernhard Beschow Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-ID: <20260921214710.29422-42-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/net/lan9118_phy.c | 10 +++++----- hw/net/trace-events | 9 +++++---- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/hw/net/lan9118_phy.c b/hw/net/lan9118_phy.c index 2fc027d112cc..ee87a51241d1 100644 --- a/hw/net/lan9118_phy.c +++ b/hw/net/lan9118_phy.c @@ -85,14 +85,14 @@ uint16_t lan9118_phy_read(Lan9118PhyState *s, int reg) break; } =20 - trace_lan9118_phy_read(val, reg); + trace_lan9118_phy_read(DEVICE(s)->canonical_path, val, reg); =20 return val; } =20 void lan9118_phy_write(Lan9118PhyState *s, int reg, uint16_t val) { - trace_lan9118_phy_write(val, reg); + trace_lan9118_phy_write(DEVICE(s)->canonical_path, val, reg); =20 switch (reg) { case MII_BMCR: @@ -138,11 +138,11 @@ void lan9118_phy_update_link(Lan9118PhyState *s, bool= link_down) =20 /* Autonegotiation status mirrors link status. */ if (link_down) { - trace_lan9118_phy_update_link("down"); + trace_lan9118_phy_link_down(DEVICE(s)->canonical_path); s->status &=3D ~(MII_BMSR_AN_COMP | MII_BMSR_LINK_ST); s->ints |=3D PHY_INT_DOWN; } else { - trace_lan9118_phy_update_link("up"); + trace_lan9118_phy_link_up(DEVICE(s)->canonical_path); s->status |=3D MII_BMSR_AN_COMP | MII_BMSR_LINK_ST; s->ints |=3D PHY_INT_ENERGYON; s->ints |=3D PHY_INT_AUTONEG_COMPLETE; @@ -152,7 +152,7 @@ void lan9118_phy_update_link(Lan9118PhyState *s, bool l= ink_down) =20 void lan9118_phy_reset(Lan9118PhyState *s) { - trace_lan9118_phy_reset(); + trace_lan9118_phy_reset(DEVICE(s)->canonical_path); =20 s->control =3D MII_BMCR_AUTOEN | MII_BMCR_SPEED100; s->status =3D MII_BMSR_100TX_FD diff --git a/hw/net/trace-events b/hw/net/trace-events index 81af808044e1..839a612d3569 100644 --- a/hw/net/trace-events +++ b/hw/net/trace-events @@ -11,10 +11,11 @@ allwinner_sun8i_emac_read(uint64_t offset, uint64_t val= ) "MMIO read: offset=3D0x%" allwinner_sun8i_emac_write(uint64_t offset, uint64_t val) "MMIO write: off= set=3D0x%" PRIx64 " value=3D0x%" PRIx64 =20 # lan9118_phy.c -lan9118_phy_read(uint16_t val, int reg) "[0x%02x] -> 0x%04" PRIx16 -lan9118_phy_write(uint16_t val, int reg) "[0x%02x] <- 0x%04" PRIx16 -lan9118_phy_update_link(const char *s) "%s" -lan9118_phy_reset(void) "" +lan9118_phy_read(const char *path, uint16_t val, int reg) "%s: [0x%02x] ->= 0x%04" PRIx16 +lan9118_phy_write(const char *path, uint16_t val, int reg) "%s: [0x%02x] <= - 0x%04" PRIx16 +lan9118_phy_link_down(const char *path) "%s" +lan9118_phy_link_up(const char *path) "%s" +lan9118_phy_reset(const char *path) "%s" =20 # lance.c lance_mem_readw(uint64_t addr, uint32_t ret) "addr=3D0x%"PRIx64"val=3D0x%0= 4x" --=20 2.55.0 From nobody Mon Nov 23 04:26:25 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129381; cv=none; d=zohomail.com; s=zohoarc; b=HqE/MI876FsNiHtACw1hExjH6TK0SYEPK2Ius8MCFVZd+9a+1YxGsfTgtavtiDFX4ZDxgKsPnjFosokpp3aEfdvz7o29d5IMTYYiGKvd0BTNT+nk9MnjB1R3JCLXu0wo9KjTa3AvBwnGwrKI9L/XTQN0/Z8Oib9quWXct2CrClA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129381; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=KGtboOQOOdqOnEdyTBcrFbLqK8xKlDhoziyQ2g4T6Tg=; b=VS3w9csYINn+4ew4zV+Y914Fz2gBSVH+Ph4VijVtH5YUvxxZpKcQMHxmoiMT0yoXOLDCc+5cGMViLRHGwtzNRkfjyd1bYurX4XR4wyGAb5nxONz5xTlC8hzwnzAY75VOe2dMyT2gIuvNFK7CJAMyBT1vR/U8uku/7g0ZBqEZvVo= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129381829939.7322251073986; Tue, 27 Oct 2026 12:29:41 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmrI-0004IT-JT; Tue, 27 Oct 2026 15:29:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmqu-0003ky-2j for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:29:00 -0400 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 1xLmqr-0002Pw-2Y for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:28:54 -0400 Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHRl72639301 for ; Tue, 27 Oct 2026 19:28:52 GMT Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjqf5u21k-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:28:51 +0000 (GMT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-93f2373e9b4so14224585a.1 for ; Tue, 27 Oct 2026 12:28:51 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e3ebc3bdbsm20040331f8f.19.2026.10.27.12.28.48 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:28:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= KGtboOQOOdqOnEdyTBcrFbLqK8xKlDhoziyQ2g4T6Tg=; b=nIOK24wwIm+uKYIW +ZgTs1m83O5AuOOhnqkMmbK3Nn9xPAifIvcYemgZ12gBd10/BSD5p0UgErC8pk1h pV6PaWBbkHRDMxvBpBSNl9NjgjhGxcLwzyczXxA6vKSlUVxLLI0M5sUIxy4jd9KM IM7xuNGa3MEA6AkXVhPygy09eazbmVqTbu2euGljcQjB3VlSMjCAShW+lxWXamOi hKmYrSnUSMZlX2U4SD2I90eAnjYEL783ACtPfslu+6u7P4M7Hb6uDM5zIoLdnLSC 8Btb+RQ/SLbhximCOTIKU3NZSapd+Js8U3ngeqcQ0AoB91K6v7JvBlLWKWpNPMnu uKnqow== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129331; x=1793734131; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=KGtboOQOOdqOnEdyTBcrFbLqK8xKlDhoziyQ2g4T6Tg=; b=fVv18hfSwUvZ05b8cC5xVyW6AJXSPD5b9X46ZWs39OPGeuH5iM+rbrsvkw0m6Dvdig jN4RAI62UiVwzcYnHShMqyZKfj+xdwJarhW2AQ2u9SG/Mlm0TXt8jvIo/iHrXZPZg4zT Q6j0LdsQKSyCJKZCDuzuD4uuobPY6rglH9T5Zc8oM0edSxyupRkrCfrAuBopO3BZJ9SH 9CUJSh27mkpqBlViXVVzK/ohojbHXeYBYfRwDWgnfR0lI9Wo3KBnAJ2uU1QMvZ1sq9Ai xTVq3g4C5GgQjPHnII1ysM38tLAS+VzYh3vY1nWO0K6xBMktLanwkfICtHtcXcUahMZe XZNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129331; x=1793734131; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=KGtboOQOOdqOnEdyTBcrFbLqK8xKlDhoziyQ2g4T6Tg=; b=A+AU7cqr3YkLfCOoO9wF1eTj9SyHkqOVS3s1fzOWu+wqqolXd6rRG8QByVvPInQKmB /xMB5O8hurUsUaz1ftkH+jcujnjW+kLcdybjm+1JpkfX4ZJ21pPQRAA/wQYym89C7LeE dLc1dufa1xvLGN9eII2ZP0adeipnzOrSSd11K094AcvCVIbd2W32pkUsZWnrXRykYsZp 5P4bmGU6X3jDuGRUFvSptClibIXmwsZLWRhMvx1KYkqS6tEebddbrVbVf7ypmJJotHBs qBdoIZ50RaquZHP3UXu5JEA/Q76qWVdFrwrXqd08SU/GXaZ7wj3YCJyneUywDvKrZEeO kPxA== X-Gm-Message-State: AFq9FYLY7Ef+c5kpu756NpaAR/5LVCz/lTn7T1ekvj4QHeEGkHgBKx9j O0xyrKgFgbBHpI17+J/yv0JPZsLG858DFeCJfvb/gQVFyuZiIYG8ZuIEcj2Xn0Ujs1ROFvF11xm K2ovYGZt7M9v4lDkYEGZLILRGm31fftPv9ISdDqVP5aq/E0/da2i3dO4WeulqrPjq/A== X-Gm-Gg: AYBFou2YuCxLKAUfyiCtDVo6QELbBSs+JdaihYjPDqwA+yy+hd5y7D3/HQsZQvWhCaH hrQDlOEKsUwy/mLxMFIIhvTwMciT+U6eWpvIZ9TMEQ5oU96vLK9twuvDLNFbWH2bi5d04R7pAw8 rxrAq7s/pvTo95RrElvjhGBqNXyWg1dtrsXNonolt1YYIaH/T6vquBQW+pxkSLrm9ijGWsrDz23 3Ygdi8z2DrZeXlT6g0o3B+j14lJNqPFJ8Brmzv4O8HDBjcEobFmARa/V/5r5B4quke+oFMQ+LNP uOPn9J4c2m4Fc5IfVCCFDl/JJykPbDYHTQ4Udjz0679orU5pShWLGjMkX3j+OEgQgREC3rve3Wl CwO3D1CRO+6rH70r35doFN3BJqDkDUHRKYDcYwZhEvcmcvfT4vChAsCCF X-Received: by 2002:a05:620a:2621:b0:93d:23b3:5088 with SMTP id af79cd13be357-940ef914145mr1689459285a.16.1793129331230; Tue, 27 Oct 2026 12:28:51 -0700 (PDT) X-Received: by 2002:a05:620a:2621:b0:93d:23b3:5088 with SMTP id af79cd13be357-940ef914145mr1689455485a.16.1793129330709; Tue, 27 Oct 2026 12:28:50 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 45/59] hw/watchdog/wdt_imx2: Trace with QOM path Date: Tue, 27 Oct 2026 20:23:26 +0100 Message-ID: <20261027192341.9197-46-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfXxHmW7v8vshwd Uw8GM3fDzHJ4ZrbBdZ0S/5xG2jBaGDQxVPh0RGEXfB/k6QVSE2LHw5wURO/OqZGLHL2uFjeWgvm lcS3ynQ9i9fRGg3a6s8VNmiOGDE8fEE= X-Proofpoint-ORIG-GUID: ECUG8sedOkrRe6BVZ7XkawwP_skMLNng X-Proofpoint-GUID: ECUG8sedOkrRe6BVZ7XkawwP_skMLNng X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX54Sd+04IalDk ul8Eicm8Fzbnh3B2if5rWWQK1kDTWvswRhEbyS+d3qnzEL0IDFtalCtSxlfcqOvRydz0DJwD47L 47FJ7csrbgqqdD54ufxcqFHi0t9qni22o8Uu4z0ZRjQRs+ca8127+tdlVgRZTxAED74xPs/HpV4 J0JmBFN9dt1LI5Op1Qx/KCQ/xaVXwRMZ01+BPhidkcQCWB7OZt9fsFXeYu8IM3+6+vyxpFSOvtb Ym+oE6dCgL7jDKnjCLDvFhd4vpZQz5SP6xgKiQQ1cvRPA9/fSA7N2njUvzVKs5f3lO8riv1PK5n cPUUF8fBiIwWmf9QfQnWoOHmoHUydZjcM6LOiSVOlaQ6tp9hyZz0gKOu5moxKXszMg2wAdEi0pV XvsByx6qSmueG4F3mZdjpIRQ59GSPWxmGYaSmr1IBv0/bY2Y/FlxZqNyazE8z0gHpGOA2wcOVCX V8ORh49NJ9QOVb3V5Jw== X-Authority-Analysis: v=2.4 cv=UOFIjyfy c=1 sm=1 tr=0 ts=6ae0fb73 cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=3Yd6l86sBrAyeg_TsFQA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=IoWCM6iH3mJn3m4BftBB:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 adultscore=0 clxscore=1015 impostorscore=0 spamscore=0 phishscore=0 malwarescore=0 bulkscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129384040154100 From: Bernhard Beschow SoCs such as the i.MX8M Plus have several of these watchdog devices. Allow to distinguish the instances when tracing. Signed-off-by: Bernhard Beschow Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-ID: <20260921214710.29422-43-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/watchdog/wdt_imx2.c | 8 ++++---- hw/watchdog/trace-events | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/hw/watchdog/wdt_imx2.c b/hw/watchdog/wdt_imx2.c index c19f0383ad74..f8129625e582 100644 --- a/hw/watchdog/wdt_imx2.c +++ b/hw/watchdog/wdt_imx2.c @@ -23,7 +23,7 @@ static void imx2_wdt_interrupt(void *opaque) { IMX2WdtState *s =3D IMX2_WDT(opaque); =20 - trace_imx2_wdt_interrupt(); + trace_imx2_wdt_interrupt(DEVICE(s)->canonical_path); =20 s->wicr |=3D IMX2_WDT_WICR_WTIS; qemu_set_irq(s->irq, 1); @@ -33,7 +33,7 @@ static void imx2_wdt_expired(void *opaque) { IMX2WdtState *s =3D IMX2_WDT(opaque); =20 - trace_imx2_wdt_expired(); + trace_imx2_wdt_expired(DEVICE(s)->canonical_path); =20 s->wrsr =3D IMX2_WDT_WRSR_TOUT; =20 @@ -90,7 +90,7 @@ static uint64_t imx2_wdt_read(void *opaque, hwaddr addr, = unsigned int size) break; } =20 - trace_imx2_wdt_read(addr, value); + trace_imx2_wdt_read(DEVICE(s)->canonical_path, addr, value); =20 return value; } @@ -149,7 +149,7 @@ static void imx2_wdt_write(void *opaque, hwaddr addr, { IMX2WdtState *s =3D IMX2_WDT(opaque); =20 - trace_imx2_wdt_write(addr, value); + trace_imx2_wdt_write(DEVICE(s)->canonical_path, addr, value); =20 switch (addr) { case IMX2_WDT_WCR: diff --git a/hw/watchdog/trace-events b/hw/watchdog/trace-events index b388f7b2506f..5963943d5dc2 100644 --- a/hw/watchdog/trace-events +++ b/hw/watchdog/trace-events @@ -18,10 +18,10 @@ aspeed_wdt_read(uint64_t addr, uint32_t size) "@0x%" PR= Ix64 " size=3D%d" aspeed_wdt_write(uint64_t addr, uint32_t size, uint64_t data) "@0x%" PRIx6= 4 " size=3D%d value=3D0x%"PRIx64 =20 # wdt_imx2.c -imx2_wdt_read(uint32_t addr, uint16_t data) "[0x%" PRIx32 "] -> 0x%" PRIx16 -imx2_wdt_write(uint32_t addr, uint16_t data) "[0x%" PRIx32 "] <- 0x%" PRIx= 16 -imx2_wdt_interrupt(void) "" -imx2_wdt_expired(void) "" +imx2_wdt_read(const char *qom_path, uint32_t addr, uint16_t data) "%s: [0x= %" PRIx32 "] -> 0x%" PRIx16 +imx2_wdt_write(const char *qom_path, uint32_t addr, uint16_t data) "%s: [0= x%" PRIx32 "] <- 0x%" PRIx16 +imx2_wdt_interrupt(const char *qom_path) "%s" +imx2_wdt_expired(const char *qom_path) "%s" =20 # spapr_watchdog.c spapr_watchdog_start(uint64_t flags, uint64_t num, uint64_t timeout) "Flag= s 0x%" PRIx64 " num=3D%" PRId64 " %" PRIu64 "ms" --=20 2.55.0 From nobody Mon Nov 23 04:26:25 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129381; cv=none; d=zohomail.com; s=zohoarc; b=jGY6g7ssej4/MkV0lsR40eEm54ZF7o5bZYwPMY+Vv8N0QTUcbyHEf47dJo7pwy8GsFt2fVKca2JOpbnsIeEfmbcidBpv3T5rZhi/pU/pRuqP9wggSjlDgYSZDXA+R/YDzZniRgw9cX+7YYoQ1gzaV85yxCpKOwR5FNrbe7imOS8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129381; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=asW0fnKgIrl3DPjD+Lpdh6jkySRQYntuOG0pcCHmNCo=; b=fsmKYIi1JWtS803utRtg0usWqNwp79n0xt1hLNrRTA6dy+EdZE79oGjPeS4Mcv9/RTSRFLRm60Gdyv7YDDKTIoyASjx3XzXXZ/EZg/Kakl5Wdy+8Gv3AD9LKAbqPtQiU6lPHUB+khW7WAw8Gav0VPp7znhI3J+6zzrOnaUIWDHI= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129381803462.5366868831277; Tue, 27 Oct 2026 12:29:41 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmrJ-0004PB-V5; Tue, 27 Oct 2026 15:29:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmr5-0003qr-4h for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:29:10 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmr3-0002QR-HE for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:29:06 -0400 Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHV5u2088774 for ; Tue, 27 Oct 2026 19:29:04 GMT Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjp2tbb90-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:28:59 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-93c5ab5c136so18734885a.3 for ; Tue, 27 Oct 2026 12:28:59 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e3eb8f37csm19873557f8f.8.2026.10.27.12.28.56 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:28:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= asW0fnKgIrl3DPjD+Lpdh6jkySRQYntuOG0pcCHmNCo=; b=GMc0Ku1BDH0CDEi6 nnQVecmmVL6n3+22v7yZeFpHr2JUVR+S5mVw/OXuoTWug451ZBLu6JRscoOr3MB7 d48trJrOiPMn6dwXDVi36qy8YyYpuybBl/fZpXwfcHKIZNfXwqk4uV01Nwr37Zmn ylm9KjDgoR8l2p+NJatHwDOX6SXr7MiPVdN5WwZZaTUc7/4l5vShwgXJ7kQwaGX9 gqHLYgi0MjOyybTCdJzlPGuPWHukyYvaNVTMcIyOAsLhvtWlD7RvP0GJGzid2pw6 wH+4UqtiGgKj4hsABgXUbHrjr2/F0/5mWrOpl7mQ4EW9QS+tsxndIBR+kOrA97dt MKumcA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129338; x=1793734138; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=asW0fnKgIrl3DPjD+Lpdh6jkySRQYntuOG0pcCHmNCo=; b=K3OkIILwKluWfSIOhBV2pDdfIJ+pI1NUmR6lJm8GkynCfM0UxzGZdY+C1yIk3cioC/ YSKR2fJlG1zD+enxN1fDIs80XAMlOYxmgEOl7dqq9bD7iDyx2pMsxWO2YQI4igMzRT3y IK9ghjppo43KAm2nTEy8dGnaH+I2zmYmrcR5e7tKLV7teUpycT8eFTBlXm/OofqE6TEr FSepB8zQff/7/JD1vkixNaZ1NQ3vCuGRIs40GSxkh0w37gpQ9qFV8v63djACpy60pcY7 ZxrqT687qtDXYKY6k0mde908ORZx8tQR3ZPbN6ZZeWKRX6QipWzo2DXuMoshTB2Oj8bb 4Cyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129338; x=1793734138; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=asW0fnKgIrl3DPjD+Lpdh6jkySRQYntuOG0pcCHmNCo=; b=RKmsNQb/AhZZU+UGSUM9S/x38/Uh54xTRf0ItexSIBwF2tFKwfeSbzKpNnlTLEVYC8 BsEMekf0Tspg2NjUjQ7opEGMz99BzWuFOiXednOq6LdOQ/UJQ7Xf1D1eE26jlEUCiUjV KTvPnPx13OdgzCoGXJrsLq6nd757g5Jpltxd8u2fQmwJaUOoU4XAdvaipg5qo6VOYHRR UYBkFEFD4WTix73vf13aoRBQQg1nPVEwIQxUyN5uDaNOq0ts1E1khQKu/dKCYMgzJJ+S l14PfR5OwmEHa0SgetCis4JyrTzC8RGukoBEicgnGe1jaM/YCd4clteaScU1xXsbfWG6 YDDg== X-Gm-Message-State: AFq9FYICAYvcdwZVgXAH3657F2gsj78OMRmCT82iQzLupcMy/DxGIDJ6 hn958LQx7KDF7qK8k9VgMy5rNN/7DDKQdGVuaT9z5P4oLNdQZHmJoMtGFpWfMxqmbd068q5zv73 72js2GTQ7lVEKwVAhf5ZZyco04nP5ttQ0Z78Eh8JV2md5b5f5Ld2szgtk528SwC5jSA== X-Gm-Gg: AYBFou2ginEzrxKgcEN5lsjy29BfHFfsNCxUXIiWglazBqLveQbngmlZNXWv9hUBU7v 4SK9cO2mJHgV33K3AWNac8U79Ag8jfSqZhY850oH659GnplsS7YkZ9zh4A+RrypoZVRUu7z8K+i 0DbTs+21RMP7fqwHfBXaqR3M7aIN17P1Ax/L4Rr4R6toGMb/cudHM5JCMg2UHnUslNisWXyMiY4 EqGagtz+AUBeSLxjBI5Yytvylq5YhOmFW/GlAaE2bFM4hyGnObA5KZLgm3+3FXY9PAp716SAS65 KY1vl+ZCs9F6/c7NttnNmdzsGgVauhjiQTUmqVimNUppbaUgLvZ5bLg7oBnjMFaCPLa74rHH0Ze Re/f1bw4MiUCFHsEBNS+x3R169W6j4sbvGU4+hT/W1cwVK3AkRmxt+DYS X-Received: by 2002:a05:620a:2a03:b0:93f:3a43:2771 with SMTP id af79cd13be357-940ef9c0385mr1738137085a.78.1793129338315; Tue, 27 Oct 2026 12:28:58 -0700 (PDT) X-Received: by 2002:a05:620a:2a03:b0:93f:3a43:2771 with SMTP id af79cd13be357-940ef9c0385mr1738134185a.78.1793129337776; Tue, 27 Oct 2026 12:28:57 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 46/59] hw/arm: remove pci-bridge/pci_expander_bridge.h from virt.c Date: Tue, 27 Oct 2026 20:23:27 +0100 Message-ID: <20261027192341.9197-47-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=AJjzCM5L c=1 sm=1 tr=0 ts=6ae0fb7b cx=c_pps a=qKBjSQ1v91RyAK45QCPf5w==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22 a=20KFwNOVAAAA:8 a=EUspDBNiAAAA:8 a=Z-43qC4QWUjs9AUqhlYA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=NFOGd7dJGGMPyQGDc5-O:22 X-Proofpoint-GUID: aRGcJJ_ThBjJ388tBH0fZJMvQdKmnHBa X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfXyEDi04ygvMrV KQLk5GIxjryX4NAgJE6FyOxajHf6Czts41oPYwcG47hN2L3Fu2c6XUwMIFHhEymlw+AQFoU+vzT lVqqWZjMriXaqcfW00QpIHSmZPHGd4s= X-Proofpoint-ORIG-GUID: aRGcJJ_ThBjJ388tBH0fZJMvQdKmnHBa X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfXwaL8NRGyErPY 81Z3KVdbQLr9lwBlWPJMmru6WxGXDJBop1rzBD/AD9C/5E6XGMlQxsL9+QxvsUZKHLo9wTihyiV RShsU2nRBVIIIX7BD625KoBRSzzgZnQJ3YJrg8ABFxeISaV6iAn32LSm+pCHKKZUB/4fmJ645gJ dMpFvLlizAfvuv6VfXAbooddhaYGfFplBbXZ/GhE5cUGVI8NxjHvXVQjPwvwcO/FtMjUhEqlTKz KTJNy1TdyjMbVjyb2tSAciuMlZ5Rzp4meeSnMkjBsbqZyKD7giyGg0cWgBKdHtBYGmvyRq/Hjzp 7rc6T40bvCJtWcNsqE5u5gj64hiaiJacJ14WTfaPdQLkI1Z1D0Bp8MitN30MXwqXsuLhT+igL/X 34o6Qj27j5XOlt2tU01XwO0uKle1L8y2cur2EZ4VZyydO1MGT2AzwkegdyFci8KYQ1VelB5b43i 0EnpRG8/2DoTmRZb3Kg== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 bulkscore=0 malwarescore=0 spamscore=0 clxscore=1015 priorityscore=1501 adultscore=0 lowpriorityscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129384009154100 From: Daniel P. Berrang=C3=A9 This include is redundant as the function is declares is not referenced. Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-ID: <20260928095646.3555447-2-berrange@redhat.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/arm/virt.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 0d56197dacee..3ab3ad8c3b64 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -58,7 +58,6 @@ #include "qemu/module.h" #include "hw/pci/pci_bus.h" #include "hw/pci-host/gpex.h" -#include "hw/pci-bridge/pci_expander_bridge.h" #include "hw/virtio/virtio-pci.h" #include "hw/core/sysbus-fdt.h" #include "hw/core/platform-bus.h" --=20 2.55.0 From nobody Mon Nov 23 04:26:25 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129412; cv=none; d=zohomail.com; s=zohoarc; b=UoBmwJNEnS5xT+S+RPIvsAy8gs/ZgvcKqNTAZ6oQtiNgO+Y97OLzm3LwMXnr8mH+0WT3k5IFlxRo37aDAH0hFPYWpLzvThjS2UWty4X49yF/rl0uRTGxjF9DqcAMZmczUnRMrhcbRyXP+0uI0DiiZQprHMJfONMxjYFipy6HDj0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129412; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=253dRkduAVc/eEwh/kxEYX+xTtZVH9d9xeh7sb3jD18=; b=ido+VXbSvbyxHmIveGbhtynauMu3x5n1KZq6eydoGRqvdtcNi/mkTrr71Tsrk3Zz6KpQJVumrNMlYGrMM2xDjAHB2z/RLpgcopR8HEJDuacMEVt6rn1kbXpldB/qY686Cz+NN/fVD2bB0A/Qipg6q7D3B5autiaYsPhn3QUTYlc= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129412269740.3131760451504; Tue, 27 Oct 2026 12:30:12 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmrO-000518-SG; Tue, 27 Oct 2026 15:29:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmr7-0003x5-Cr for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:29:12 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmr5-0002Qc-MU for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:29:09 -0400 Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHEco2087937 for ; Tue, 27 Oct 2026 19:29:06 GMT Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjp2tbb97-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:29:06 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-934963b2bc0so20731085a.3 for ; Tue, 27 Oct 2026 12:29:06 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a92e103d91sm4821995e9.0.2026.10.27.12.29.03 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:29:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 253dRkduAVc/eEwh/kxEYX+xTtZVH9d9xeh7sb3jD18=; b=QZcr/FZQezbfemJA FY/ivnLAvoQB0xs7Ed3DvXWHwvrhWZOk3olN2599eVcEphFLlhECBeJn+EUWqUKC 6GRGmBREzRYtq4GLGo4v1ol2ZV1tmTPampXMM9ftqziWRTmzEhCkc9Lqv+oEgLwq 8Y18kIYBrBi1jgUtlOWNVpNKOp/IALNJELDNZ5izOee6yI9622v0xgbJAACq0lc3 zfbNPIEDCSPRuQYlj1t4ZpmiWL+1tOKUj5KAUtDTEEx0T+s0ZYWvUPwdwTwxx2iK s0nbjxrjJXasMqx0k+ylC3PVVOHa9DCM6yKzDCXmBUXK68kzx6k/fRHP8Q+whaPu uO1UmQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129345; x=1793734145; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=253dRkduAVc/eEwh/kxEYX+xTtZVH9d9xeh7sb3jD18=; b=Tp9pMZPeYa/VjtJgVc/mm0Izut1bA4p1HwAaKevrJ1EFJChYf4JoA+KyOwT8kc44JD TLzYv1YW7odpN/qF2JxbI96SLZg1Kd6q3GsD5bplO19cDDSnbXi6ATdwb9xZo35IdOeA mbihK0LcITkQcRxFrLQLMAUb6oJHGJNUpsQqj3bs+lJHsbRhPFWtVirnvZqDgP71intV Fr2YsHCDhlmQNQM+XO8G2MFJRWzxeABo3END2j8RVhPPBICnBfBQjhQNIl0Y5Nx4VO5N AdHrV5koOr6otOMtwOy0WbSPK/H2N4LmzHsnECCOPHGrSvutWhtSrAY5ywDAKKIpkziJ H0zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129345; x=1793734145; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=253dRkduAVc/eEwh/kxEYX+xTtZVH9d9xeh7sb3jD18=; b=lc43WHXMSylTpJKmrXafkXmUm98bnc0h3SbETvFrE4HjVCoavCa3puTZYy7zPQuLW0 gRzWF75dUdH/p9MwRR82Per95TTDLzjnVEXlO5lX5AqmuKw4iVwXbm0LlyhFsV9KSY5T YY2KCicmCaputKVK3RGhH4lbXrKPCkqVgXjcH1o3dOxMamqKcVW6iSpsUoOSj7RORyMC NJ+V+tOIViGLJNXISC7FevglcE3yjRLuggFO6fQeq/UQD7OSN58RIhiuYDLHPxrtpe1O wkbFmBUBOAIkhFA6MipWEMY9zRsD+Aw88mDixyJcUz1yDVClc6TPSbM6+DRCeS+oLmk9 x3JA== X-Gm-Message-State: AFq9FYIfXam/kHTQy4aWt9YEE3MkkMTsCqVQfW0yRvqUq6xViFEneWbg hrEsHTfER26VXsKqYk964nR6mhy1rnSHYdZ5BlWjE0As/azeZznF49Ru2746DXAz8LcnZB9F+DG JnCXQfBen2R9GxYh6Uoq1AhlDoBTJ51IK+3IjVD5EWdTXenMOgnoGTICwYF1me3JzqQ== X-Gm-Gg: AYBFou3AURgliutQk+4DgRcVQ4TshFNZYnwj7C5afLbpY+GvLyxKOPG6VsemsTYf4eB 9vxlgUegiFkkGUbn4+7eKsH59ABINv+y7Q0ZpeocZs+bJsKwNhBL6ZHHXcapL4mwFt4WfUehvJE lRy+oL2kZ65rQHiM6+8sGBrqWCkKbJgUibmniSlmpibNQeHKlLHaP9b/kD4HrHHD/DV8EQAWuKA p7mzqDu7IEvlRBJPkYUzbkPqzeAdYncZgjMuEwJ+qZILrunCWdACuQkfeTvIH+PG3bmtD4023JK dVAQRQTxbo9ycV6klF1hrxp8eg0o2z38IG2GIXchWujHLtwxtQSReaWEz648OAHmXmMq5lO4VgP KREt48QxTfgp8fNsZCz/prkfKh4YxmEUoSpMJfrUCzz8gN1I5k2Qdxsch X-Received: by 2002:a05:620a:6499:b0:939:7683:33d5 with SMTP id af79cd13be357-940ef914b1emr1624155985a.19.1793129345197; Tue, 27 Oct 2026 12:29:05 -0700 (PDT) X-Received: by 2002:a05:620a:6499:b0:939:7683:33d5 with SMTP id af79cd13be357-940ef914b1emr1624151485a.19.1793129344602; Tue, 27 Oct 2026 12:29:04 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 47/59] MAINTAINERS: Update Gustavo's email address Date: Tue, 27 Oct 2026 20:23:28 +0100 Message-ID: <20261027192341.9197-48-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=AJjzCM5L c=1 sm=1 tr=0 ts=6ae0fb82 cx=c_pps a=qKBjSQ1v91RyAK45QCPf5w==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22 a=20KFwNOVAAAA:8 a=EUspDBNiAAAA:8 a=KKAkSRfTAAAA:8 a=69wJf7TsAAAA:8 a=PksdBkdXNVpGbhbxESsA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=NFOGd7dJGGMPyQGDc5-O:22 a=cvBusfyB2V15izCimMoJ:22 a=Fg1AiH1G6rFz08G2ETeA:22 X-Proofpoint-GUID: q8zvC3mndRK3Bepe-6GNCk6vQ6xxrzkj X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX85qujnwtxjl1 P51XuSvoRiVHo3s9yQICfoRFr6fIfBFEDMDrySrmMYGimTQuWdPPRRRfCWyosZrq2RJuLMfXn9V cOEZLLWlZ+zTzHaqRNVMi9xw9YYFQZs= X-Proofpoint-ORIG-GUID: q8zvC3mndRK3Bepe-6GNCk6vQ6xxrzkj X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX9ThC/voMz9qb FZZv09XkgOwfMSkYeLFXctVybv3ky8un01sfZqQhdSD/VcVE50JKDpcRFgVO7jFys6AT3re4LFT ucLRxN0Rv4KfIQF+yHpSbRBMzN5LD5SZ1yTj+fSILZ/704R7jPXA3NGORqk2sJRnJjDza5Qp7+s OzNur+cpJ04aCzGD26G12avk+r/6yUvm6y+nBXis1g6qvtUZKq3oOXCTBr/LFDlvQORfQ/Ym5MI z0ZdPAf8xLMYpzcILQpAoW3/6lW+nOwQUf2FfH/3lyHGTfmQmXcCPK9+Ux1bBO/c2YQ/rMKZV0u W5TQNFYbGEfWvIbOwKK6BSVOCVAkqgrkOpCGN0Q797wJHfmMSQWCOpposVI59Z38mFXALWB19gW 4HuqgilYpsl1SVZozeOmAm6A/IchLVFU86nd27LHkeBTdll6bERcSK6uw2g4aBRFe64zm31FTRw YReEepshE+BUvfBVIwg== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 bulkscore=0 malwarescore=0 spamscore=0 clxscore=1015 priorityscore=1501 adultscore=0 lowpriorityscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129414199158500 From: Gustavo Romero Update my email address to my current Red Hat address. Signed-off-by: Gustavo Romero Reviewed-by: Pierrick Bouvier Message-ID: <20261002185538.1020233-1-gromero@redhat.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 78d1663f09b4..13c21595e61e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2307,7 +2307,7 @@ F: docs/specs/*pci* F: docs/system/sriov.rst =20 ARM PCI Hotplug -M: Gustavo Romero +M: Gustavo Romero L: qemu-arm@nongnu.org S: Supported F: tests/functional/aarch64/test_hotplug_pci.py @@ -3183,7 +3183,7 @@ F: include/hw/hyperv/dynmem-proto.h F: include/hw/hyperv/hv-balloon.h =20 ivshmem-flat -M: Gustavo Romero +M: Gustavo Romero S: Maintained F: hw/misc/ivshmem-flat.c F: include/hw/misc/ivshmem-flat.h --=20 2.55.0 From nobody Mon Nov 23 04:26:25 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129411; cv=none; d=zohomail.com; s=zohoarc; b=R0Y/5z0VwAvAEW3AvGyJ9ROb3z5TMiaKUo7Ln3IIxMB4kA8CtUFLKeLLsESUQEISR68Xk9JmrrXg3ZPngOLGmxvCospx6vyhvemglm2JtmkyOoo1j/ve57E/TSXiP+ikQ5vIh1A07HHvUkjW8kGw5JWY7z5sychboYldINx72xA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129411; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=7lg+o0kA/rhimQBx5HVSu3kWS7Q/Ap7h7SVIDwWUOrI=; b=ZdI3nhdb1nBBj0TF61fIoEpv/QNY5NwdKdDr3a9P6FatZdeB4v23oEzzyw9F7NIl5FhC44++wLTmDteSMeJL8n+4GqIqxeTkFkZYAO22GJn3GLrGFBx53TK2Yzf7V+ZSsPVobBCwOAzUbReO9JiUqi9eVD2nkmXOPPfbgY6ZAWk= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129411658230.71096241622638; Tue, 27 Oct 2026 12:30:11 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmrL-0004cg-Rr; Tue, 27 Oct 2026 15:29:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmrF-00044m-T3 for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:29:18 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmrE-0002RG-8a for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:29:17 -0400 Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHPnU2997794 for ; Tue, 27 Oct 2026 19:29:13 GMT Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjst1jcth-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:29:13 +0000 (GMT) Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-93f559420f3so14092385a.0 for ; Tue, 27 Oct 2026 12:29:13 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e3eb8f36asm24758527f8f.1.2026.10.27.12.29.10 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:29:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 7lg+o0kA/rhimQBx5HVSu3kWS7Q/Ap7h7SVIDwWUOrI=; b=WIFZ5MQyqFmK/CHG YlHaAfYHwyRoQVjuAU+wvca/LGSaU/8VV+fYVbtjTY5cd1G+imlqPaMCyLHxT0q8 IbPdVS7W5mfQCE0R3wnUjLz5mwMR0tqVxHzy8DWGDwpWju9X6EOwM64j8eBMCt6X TKOfFDLBVwQyCXQQPK+PWC3K5UBsYayVaEyGUwPEEZq8XtgN2S69RVCv1rP2YH3M gvMAxardaY0u0T6AeBBlU2Y2ntYwtDYWD93+WlTff3ayR6qi1Qtm5f6o+ioS7gTg VbW3fxm+uokTm51RxCSk+rLdD1ukjEVf6MVMzrIoOTqsJbofO5WzwpbC8sYfuglK nBNTBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129352; x=1793734152; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=7lg+o0kA/rhimQBx5HVSu3kWS7Q/Ap7h7SVIDwWUOrI=; b=b/n6Rcp4tOQnIan3mrBYrOUp73DicL3Z2/8W9s7SrA7y92g/GwS84IKHPubo4AryB6 khR4b6WW+4l8zdhNnDHLCYNphaWtlnB8mjq34RHKKSE+k6dS6ZbFs03AWS9mv0f2m9oD rOBQ0bG1X1amWRDZQlpgyfj4RflgTqKOIrf+ynLN+indPi8jwECPe09I3zW5R7WUncIF P7WU4Da97FavY88lSZi9qMybNINtogplx8Vu+q4cug3AdjzbfMmqzbWNx1tyyAEh3BWh 1JDVkkHN8SuSe3T6rIOBquzOA51jCzJ0Co6z0d9PQCkuipI1Vz4mmYP+2wjRehsZTTKr jvZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129352; x=1793734152; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=7lg+o0kA/rhimQBx5HVSu3kWS7Q/Ap7h7SVIDwWUOrI=; b=Uloca3hZUEefx6kds+tXVGi8aZ0LyOlJWVTdFsN3/6rImGd0GeAzpToNsAzys95D/Q utdfAJt3kqjx8Ck8xIzNVf8VDZ8EM6hSSd0jaJCWTeWor+Gk+os/A9erQzAAJqIfUJKr HIHaitIWvHNwKWlMB1k1P3QwDwjZZnhdxDEUlCsqhJMrTa8N0xAQg0nXoip3hiX9W6uy ROReCcAkCqBC09dbsb+Go+j09JWV3USKoDTn257xqpAvbbz29TE77RpsUu/TRoatqRKV M/1bv1+c6sXZSwELe/Mh0e3Q4glSjGYVAoKXXpk+goZpH13pNjI2TtCK/C1QvHlg7pJZ tG+A== X-Gm-Message-State: AFq9FYITK22mGUGwDjV/MTNXQsepSYdeOcwUme2FnCDQn85eT54hR8Fv WarEXV30z/FIZT3MgvGGROhObo4nfNWkNBHpPm9uVrmPjrnGbDkmUvyj4egjmZQ8jd/Ou4X+0rZ PFcCVWWX8olE0YRw9vHarDGYCbRIVgyLqzkX0Y0H/JaUN5BeYjyzWc8EKuHgc5Ut96g== X-Gm-Gg: AYBFou3qq3XTMafwjf+n9FF9/dC+IUU/lWp0G/pMm118Wn0vRXMnit8dOZj54NIzSqE EwD10Gqzpw6SR68ZqvR5Ulu+XUhW5SMhQ8k7xIo47+UtiXPiE5KRe/yQuoDCCZFnoFNz85NLCPE i3Jaiio/ZlCtjIeD/W7v8GbGnd2CGHLrrRR/rdUc/B7Fed5j8KFqp78h5VWGCz2pGBjvtDDohmb zw4LRHBrBxC0lTqoy9VYwZ2YFEH5/VzQbWiGKlSh0AR9QYACN3TU5OtceQ2z5piGN+2SZys/xDm cCoTe41o9CQnADJFVxhgT8Rb1eu2C8NzcLs2cS3mX5/whXZ397lfDwcliBKUf5h07UMlm1zzS3/ YvTCWcOeVvPGEYZWT6kwijsSsDa7vYLXPAiqoLbvM/IqyVJz/3AXGbHNz X-Received: by 2002:a05:620a:4725:b0:93f:3163:3e37 with SMTP id af79cd13be357-940ef9140e5mr1773918685a.28.1793129352097; Tue, 27 Oct 2026 12:29:12 -0700 (PDT) X-Received: by 2002:a05:620a:4725:b0:93f:3163:3e37 with SMTP id af79cd13be357-940ef9140e5mr1773914085a.28.1793129351432; Tue, 27 Oct 2026 12:29:11 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 48/59] hw/char/sh_serial: fix RDF flag clear on FIFO reset Date: Tue, 27 Oct 2026 20:23:29 +0100 Message-ID: <20261027192341.9197-49-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=HJ1WhYtv c=1 sm=1 tr=0 ts=6ae0fb89 cx=c_pps a=hnmNkyzTK/kJ09Xio7VxxA==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=20KFwNOVAAAA:8 a=1XWaLZrsAAAA:8 a=YEB5RgzmAAAA:8 a=EUspDBNiAAAA:8 a=BwcDH0jRu0kHEOYv7QEA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=PEH46H7Ffwr30OY-TuGO:22 X-Proofpoint-ORIG-GUID: 9EKliPLyhc-7-_Lr5e-9v62DikGh2rdW X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfXxWJGoiwxDz5g 22u2QsxCzuMTOaFGOcdL1NZCawGDLON0mmGlQYnYo2SNjw7m7aB6YUu4ff+3CvwhYtJzlxIMou9 Jf8BHoVOwK6uy9PAGs1RGa5uQH2Qh/E= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX9ko+OQk9hVn4 M+vm94BojcDqDyu0+CJE5X5iw+w5W+h7hUIzI2Yq3bBHAljjyPVtRwCWTR6Si96WUDu0zQuCrOo ONoS48Aa2U2K8QQAr6PbOMmWpuO5kcVtiK+THs3UMhpQSE0dqbOtHdwDEYyxAy3zLKoOSoM8ZSE 8rWqJRNxsftY3FukrhEGjhi9yyjRBGCDkU2aXxDFvA9kWW/2yCt3f2BvPYmRg5mUJ3hz9Bh1xPa oulLoPwcYPQo+zco6Nq1rNGZ/NfIk937ifwzS2WrNQVksmMqn7xO4HA6KlnC9Yc7UlUlYOqhSyY IHoqXmsheAYIVVcKaGfoO+GnpBIKt58DyDV2J5xKL591iYEYLmrR7sfe5ZIwmwkbeJLSGd4ed8z /PdIo/DCTYgPtlERGaj4dJYVyV96RaW6XWl99q6jD+R9FYxsVCCglm/pJ7KJXxKh+seoNCO0BkG 4wN7x8KunqTnCXAZRGw== X-Proofpoint-GUID: 9EKliPLyhc-7-_Lr5e-9v62DikGh2rdW X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 priorityscore=1501 suspectscore=0 lowpriorityscore=0 impostorscore=0 adultscore=0 spamscore=0 phishscore=0 clxscore=1015 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129412912154100 From: Marc-Andr=C3=A9 Lureau The FCR write handler cleared bit 1 of the status register (sr) instead of the SH_SERIAL_FLAG_RDF flag in the flags field. This meant the "receive data full" condition was never actually cleared when the guest reset the FIFO. Reported-by: Pavee Hui Fixes: 63242a007a18 ("SH4: Serial controller improvement") Signed-off-by: Marc-Andr=C3=A9 Lureau Reviewed-by: Yoshinori Sato Message-ID: <20261004-issue-4560-v1-36-ccbef537cbeb@redhat.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/char/sh_serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/char/sh_serial.c b/hw/char/sh_serial.c index 10f96e3a44bc..30a22ea2d1c0 100644 --- a/hw/char/sh_serial.c +++ b/hw/char/sh_serial.c @@ -175,7 +175,7 @@ static void sh_serial_write(void *opaque, hwaddr offs, } if (val & (1 << 1)) { sh_serial_clear_fifo(s); - s->sr &=3D ~(1 << 1); + s->flags &=3D ~SH_SERIAL_FLAG_RDF; } =20 return; --=20 2.55.0 From nobody Mon Nov 23 04:26:25 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129380; cv=none; d=zohomail.com; s=zohoarc; b=OxnpG7CRaAqi7GIjZsZB/U/bWkqg9vByTCieHpWp1xhO8+7O6FmkDfdlyqMa+OmrB4D6J4Qozc4ntvHBNuGd0F+iPEfKotyT+ztThHYc1w50L+yRb2d4wo6bbP0MM/qQbj/CVPoMlwIy6AnjdIgcooB0vpRn8n3dVLYOXBomPg0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129380; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=jF66YvahWYKuX9FvRtpmRLZLO+ne1wfECjuR6GMRhV4=; b=SiVvStR0jjwfhVSiBsaak+KmavF213vLMSLWQASBMOckbWg+53ZastdgHhWXpoHt8BmtWqBx8EREg6FUNdr9nMDQLnG5uNw+LeQmRADvVCYMCM/M/c3MckfU5T+svKVHHI6cJAm/2ySifTWg46MEfSpmkbQGxB7HOtCeJ0wFZlY= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 179312937993334.21703071430625; Tue, 27 Oct 2026 12:29:39 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmrV-0005oO-2H; Tue, 27 Oct 2026 15:29:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmrL-0004eZ-Ax for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:29:23 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmrJ-0002Ro-B7 for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:29:22 -0400 Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHCfl2087833 for ; Tue, 27 Oct 2026 19:29:19 GMT Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjp2tbb9t-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:29:19 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-93f37c94ceeso269181785a.1 for ; Tue, 27 Oct 2026 12:29:19 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a9493bc4a8sm8300215e9.0.2026.10.27.12.29.17 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:29:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= jF66YvahWYKuX9FvRtpmRLZLO+ne1wfECjuR6GMRhV4=; b=bYuCVlcaIBPRrYOG LFutFltV3BqFub9AvJ9vQLfhiYYsnYEww0DXk/cGWj0DrCwcK+grDKc+NDGhH4Yr RSpy9b5JvqQi9cq7nrryFAFLXkrULabc85KMvDgb3LzUuTeHS2cGenXZZpxIY6AH iirAFqC1Iff5HXDxrGAJN6g+i42EKEeaJC4e5pzpz5CbPJWv/ZlJzmsqOYup8hmz zD8ljdEg5K1CeKmH36qark8YZb7l4KEMUzrR4/z6YKiU1z9AL1BOoV8tQo5LXJis odU39gY4S5tG919Ahub3/DG94ctyUwdV2ySVpQcfJczrZ/qXkCDULzI1iuh+NvnM tgb0qw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129359; x=1793734159; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=jF66YvahWYKuX9FvRtpmRLZLO+ne1wfECjuR6GMRhV4=; b=B3Ws680VWj6tk4KL2u/ncAD1+UL8e7QNyFQEf3Z02QPnSOca8OsO0oQvvqBfG37J8Z FIN1TAmyQQ/kEyos9fTjnahPqbWpT8fFMavr+loes3CHERqb1hKTZD0SCY26Fa3F9zy2 2D2aQHlz1mUvTP5KueksKD9ks8PhUfC09mlhL1svKvi0hhDk3d9J5C9Lm5Ism/6ouWo6 wAl0GMc74o49MP88mZi9OlRz4NonlOiDSQfmxiaa6Qhkmn7kGkqHoeMkHq03UuQRwPg+ 8MQf7cabnhJcBYbEKlmwSAoBInYqwptN6ui86keihCdoREt9kcbFazdnC+s0pi6UufTv 5Vuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129359; x=1793734159; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=jF66YvahWYKuX9FvRtpmRLZLO+ne1wfECjuR6GMRhV4=; b=IXGXUrI+un0GyVZjTxjh7Mfd97zu30XMnQhsT6li64RDeIjLpYEw3G99t99SQKSI12 Xq3w15c/Bc82vxFG6kp6rQ80JyFSBS1gxoJ6N76b58FS3hF1btCh7KPfdifKZ47R0Rl8 IJC+kRrZdMT54un/FHEAve/q3PD+qIo8XgCpjQ/Jarovo00MzA+TsubzuEMIHoNyZidO IGT5MmyRFir8GSCLxoq3zPmIymv4K6UDl3sRIBeV/6OC/+AszyO60rPqJ9kqZcGH39pG NswFG4jL5+jS4X6XZ6C34Y5hAYPNxyJRV5Zzm2MA4u4jl0eAfCmnj68dRwuYua+tFgvN o6XA== X-Gm-Message-State: AFq9FYKpa1vlqFLeeUg1Vy4N0IyFY9T9dUGvCIx4ueNx/Ky2BnPG+uDu JRsIi/sjSM9hln9CnCWaryf9vMbJj0QK5DLUmeXJH6jOOQQhoQkkUIt65IFPhxBQnPLOehOct3v Ir4ii4My9K1+bkXOteqlb3b7wRxIZWWgad5Ro7KVU5Qihvo4/+ZAc/8kabDZTp/3e5Q== X-Gm-Gg: AYBFou2IqTF/IVKczXy1GbZz/bJOCUzEJbr6Nj0Z28Z0tywF5FFVTRTuQstde/4GysE qGhrify3Ofe0QGfb/pTrolATWwWTqckfCEtxQBbL0m9CrhLhzk4E/+NNuRot+AxUyHFm+LvuVoq ftKCVjBj9L3a4TbAiNdnGi5kuU4+WPKYY9bUDtknHZiJCtSiJOWwWkljFXYscKI52RyMO8KH8KE ZN41aKTfu8fERMWmtrqQO8wg7uDTq7mt8fTHj12ZkHDlJvVFLgK8VCbFI2oxVXOc7iCRSt2Ynkl 1D+TuTJMb5YnA70UiLLywfa/HHTj9Sj1qJ07Xjv+B/W//VejzsaUztEolaPFbVjkDb85x4ld1RY jsdYqfBu+uDc+bBAKQro+Y666YCC8SWuZa3l6hsfOiqpL4TwD5uoD/b1/ X-Received: by 2002:a05:620a:400c:b0:93e:64ac:5dfd with SMTP id af79cd13be357-943f4a0489amr583439085a.3.1793129358672; Tue, 27 Oct 2026 12:29:18 -0700 (PDT) X-Received: by 2002:a05:620a:400c:b0:93e:64ac:5dfd with SMTP id af79cd13be357-943f4a0489amr583435985a.3.1793129358163; Tue, 27 Oct 2026 12:29:18 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 49/59] hw/char/sh_serial: use rx_cnt for available FIFO space Date: Tue, 27 Oct 2026 20:23:30 +0100 Message-ID: <20261027192341.9197-50-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=AJjzCM5L c=1 sm=1 tr=0 ts=6ae0fb8f cx=c_pps a=qKBjSQ1v91RyAK45QCPf5w==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22 a=20KFwNOVAAAA:8 a=1XWaLZrsAAAA:8 a=YEB5RgzmAAAA:8 a=EUspDBNiAAAA:8 a=FF89FASyZ2sclMI0Zw4A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=NFOGd7dJGGMPyQGDc5-O:22 X-Proofpoint-GUID: uECX0UWptpv47BWMaIfbj3siYpycd4bf X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX53M44hDU70qL 8l0xoKRMh1gcB5d+NEW1sdB+zceXoWagMHGvyVfVB3n6AjUcsGu9AkBflxOSWGVZHD8MWJ6kTfp 4oJtgGRbjKTRgujeb53LujPDBMWrtQ4= X-Proofpoint-ORIG-GUID: uECX0UWptpv47BWMaIfbj3siYpycd4bf X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfXw7cCnS4Dscht 7bHNAyKrOzbPaQyv1cZPYgxJdxGoPDwDegeD8xl3CQfqjcFn+qQuKhXNXTGpeqsvhb9vp8ctj38 6dKIR8KwT04+Ue7cVKnQaeJPjMm7N6dQByD1/gLJ1SqqzIJ/1vJ4mHSjPR+de2Fq+GACCd5VX/5 3KHuro2LIj1wSh8GHpJ6Ufmtu3ItLxD1ihUqgy/ARSxGxBbUxBwyNGe5jWze0qFXt8vadf3oJkQ nBcq7++NR3DbWmTcugAFXs7CvibG8s2jk17arPS4FFySYBWnEUZutOJJpaGh3geQYZ6OO5MvGKT ftzlLycvgfDM1ryvlWtPZyUpyOdcRG/M+9GDrxtQLVPG5zXArsK/zldznTUpUBglvI38ek1ZV6T 7EFdPBI5vk/ffHMBqgDKkZ2xkASm6eWmBjB0bI+o0vyfgtGcj0Pz/aGT14DNYN8K/M/fO+6SYIQ Knp10B4DWt78FbNdFOQ== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 bulkscore=0 malwarescore=0 spamscore=0 clxscore=1015 priorityscore=1501 adultscore=0 lowpriorityscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129381745158500 From: Marc-Andr=C3=A9 Lureau sh_serial_can_receive() used rx_head (the circular buffer write pointer) to compute available space. Since rx_head wraps around, this could overestimate or underestimate the remaining capacity. Use rx_cnt, which tracks the actual number of buffered bytes. Reported-by: Pavee Hui Fixes: 543671d9907f ("hw/char/sh_serial: Return correct number of empty RX = FIFO elements") Signed-off-by: Marc-Andr=C3=A9 Lureau Reviewed-by: Yoshinori Sato Message-ID: <20261004-issue-4560-v1-37-ccbef537cbeb@redhat.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/char/sh_serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/char/sh_serial.c b/hw/char/sh_serial.c index 30a22ea2d1c0..8728842b84e0 100644 --- a/hw/char/sh_serial.c +++ b/hw/char/sh_serial.c @@ -316,7 +316,7 @@ static uint64_t sh_serial_read(void *opaque, hwaddr off= s, =20 static int sh_serial_can_receive(SHSerialState *s) { - return s->scr & (1 << 4) ? SH_RX_FIFO_LENGTH - s->rx_head : 0; + return s->scr & (1 << 4) ? SH_RX_FIFO_LENGTH - s->rx_cnt : 0; } =20 static void sh_serial_receive_break(SHSerialState *s) --=20 2.55.0 From nobody Mon Nov 23 04:26:25 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129399; cv=none; d=zohomail.com; s=zohoarc; b=lCUfIPa1avYMAHMHKKmWKxyOGXXd4qYeDZLMrH1utRY7vo+oGjVBRmup1ockG9hfp0PkF+2pBgbu6Q32APuL4WI8XORIocfqV21q1HnHiFygsF60HN34GC1OWPaPyPVW1s19ef25OSL6K/OewfQgcM8TE0fracWzQLiSBa2NlLU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129399; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=L1C+mEyTBY0xij6sEJ89Xe5A9VlyoX9PKY0o51G191Q=; b=AUnsLx78VGy//EaPRwCpa9d6MwBfAfjAmOdhqcc7QK7XzDKe8Hm9XfUZQ5NG8VrcZYPMIFzoeV5E9knAfoQlaWqfNosEAcFa6BamUzXcHzQaAUCjOP3NVSwdrd3FKH3KTcy2OTfa0WWd7mDe9m5lJOC7q074+Lm8/NLdjFKFRAs= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129399145523.5673628425119; Tue, 27 Oct 2026 12:29:59 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmrX-00067r-Ki; Tue, 27 Oct 2026 15:29:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmrS-0005W8-6E for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:29:30 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmrP-0002SC-VP for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:29:29 -0400 Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHPnV2997794 for ; Tue, 27 Oct 2026 19:29:26 GMT Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjst1jcu7-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:29:26 +0000 (GMT) Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-93f2005ce21so20794785a.3 for ; Tue, 27 Oct 2026 12:29:26 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a93103e72dsm6189845e9.2.2026.10.27.12.29.24 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:29:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= L1C+mEyTBY0xij6sEJ89Xe5A9VlyoX9PKY0o51G191Q=; b=W6KM72RFikQfXFvu ZKyg8DSXfQXD3yTPN4BngXAoMI2+/8Dg56Liey71wDIyea4a8gbMT9Srdh3T03p5 oKQmNW6J4GMAKPkkbHWQQQDdoO2W4q2ht1M1FBbzU5NWxosTMYQmhCtP2JmIAnKv BbYk9rs+yEuX+2VRUQmYOjK5vN40T6cK7ZhWMJUzkV5/DTPPQm8fVVfs6YMngHOB 5PTL438SWLXDtHTP7KzQFk8xaO0F4FUJ6MWPSQrG9mWLnYxZsyW20qLpGpy/JZkU 9bV0/OBCmvzii5gHJy0DvSEs9ivs1B7ihnS+YavtV8fHtnf5eDy6r7/Bu7DmRaMz v9/rVw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129365; x=1793734165; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=L1C+mEyTBY0xij6sEJ89Xe5A9VlyoX9PKY0o51G191Q=; b=VKH7taxYljTQUnj/hAyFRku7hhgBJu2FbMjMUnj8fR3uhwDTLn8MIDWcNMqFbqACF+ aAA7QtBHMtBvOY2QWoafG5/bBAZ9AcbKLPgYwtld1VVDYfLg1xv1fp2WTQXFskMWTs+z 9jZbKrMS9EKeQ5BgquiYo8wu5Pjq6hHtnFJt9BVu4duBTPdnNFklLcN2YM6KItEqoeT0 rrIirXw/mDUv6UjJJTy8OGGgnXajPX17q1nwOOHPuW6ML8t+Jg0WtPM71sa6Rwua/dUx srSlRhZvF5rWGIYL+2FwG2BtWr/QxRfuh/nwlG33XoUCGn5ZZ9kZUWOQBebEDnjzQQ/B qkyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129365; x=1793734165; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=L1C+mEyTBY0xij6sEJ89Xe5A9VlyoX9PKY0o51G191Q=; b=PEtDAI3YOdAGi5qz2xfYq8X76v5QqrbnEtWqmz2Y5OMwLy87pUIdKz5aqaH1VHaNo5 tvoDpdycs0heoHNzHAUzUjXyDmK0xjC96Hx8ErC4K9CdmXW5nyUvUzPapyzhkm0MT0yZ F/Soc0gp24Zn2DyFHci1uNpRd+osG9trSdWhwY8wiQ0y/Gm58ipdaT6QRDdIIbV6iHYu nkNNjRCQSy2sYHiNNxMvTXm/O4sfxKdueAcoVmEox1i9vgsjO3/X+OJhpncoqnX1j/Y0 X3DZJPy0h2otP1XZlNNnu/HRn7PbgaqTD5bJH4Sb4BND1rZeTWiKHsdCPQ87dmvnmqCF 3xFw== X-Gm-Message-State: AFq9FYIkVFZMhBYYXxbJggVIHyHA93u+mQ3jWrb6C8Y4MnGxkhuHPGoB CZ3kkqUP2Me7hRlctNdTso9oMMMwZVulhsl6gx1m5RzUoAds260o/MhIW/WSfhXAXeIBGL509fV er3H0jeJZ7oWu8zBNSxXUtYJ+MlISocrboRDj0g5/0OvHndkPk1c07g5FmUhhUTJ2hg== X-Gm-Gg: AYBFou39rxnHYa/A1ajUv7o86Kimj8Id490byNnrjcSDFBMNTYpEUMH3FnD1vuXYlG7 4ZVe3+fOhUiqCtl08+YbTBo6OXwe62RKG4QqLUbP5uSi2wkJ1rjAZBHDu/PIwukRIRrozniOhVG NrbYDTQiRSIOwA/S5Uzb38JO0HgGd0nPkMDxR3SZSxvPWAgD36BFWfTszWUzxP0gDsQZTzmyV7j rzvpPi4hLdgxLG+AwJLvmzPgVPYa0NRQLcg9pz+YxfKG2yTJXFe5/sx4w5SxX6uu5sClHAXjrvY jBflf+1ENlDRGneH/GpN6k26S5eGgMj+WSNSZtdyAuP51AokSKMrOGCzhIToohED3WNg2bCqUKK yM9KmTBWEZViKf/qpAFetIEpb1nif93+CmDxwf0ldtIlryT4Otw8VtRV1 X-Received: by 2002:a05:620a:25c7:b0:93f:6182:53d with SMTP id af79cd13be357-940ef7d39c8mr1650686985a.3.1793129365447; Tue, 27 Oct 2026 12:29:25 -0700 (PDT) X-Received: by 2002:a05:620a:25c7:b0:93f:6182:53d with SMTP id af79cd13be357-940ef7d39c8mr1650681985a.3.1793129364928; Tue, 27 Oct 2026 12:29:24 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 50/59] hw/char/sh_serial: fix break detection flag Date: Tue, 27 Oct 2026 20:23:31 +0100 Message-ID: <20261027192341.9197-51-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=HJ1WhYtv c=1 sm=1 tr=0 ts=6ae0fb96 cx=c_pps a=HLyN3IcIa5EE8TELMZ618Q==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=20KFwNOVAAAA:8 a=1XWaLZrsAAAA:8 a=YEB5RgzmAAAA:8 a=EUspDBNiAAAA:8 a=BwcDH0jRu0kHEOYv7QEA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=bTQJ7kPSJx9SKPbeHEYW:22 X-Proofpoint-ORIG-GUID: zo-RlXm_U88SIQSyD2BvVcN01U-9Gp21 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX0jZASKQmWfBx JRXr2ZQvXDKEFWU1ffcaDI+vzCIORdrVuPGv87xe4rWnCn0L2u7Wli9AufFOkH1eZe3KWaqQwIZ zgyOhNmhXJpCkBOUuEQn6R3Y+tF25nc= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX3EtUZBSzQhdJ R+ErF9mOs4Ymvx7bMB2OL0rw7KLyFntlxVnox1FV/PFDixeDVnyuE6JN4FHKYarR0JzY4hUFhUm R7k2e5fs5Rc4wTS1zO8OzejckbZE6MOAU9YcFd4xyXn7Uc+bUhzTo+u/0VKucFVDUvfWxylyVhZ m8oFBZGi+m8VHaQmipRzdVvJ3KrAAbesX2v+ITLpT4RJznQLjo60D9EIvgvnqir57zuWb39yriT TqTUQIT0i987PzKNSnUZy4REr51pPRcsMT2WUwqdCu62xe1OKJ/JtaL5djMK2z2zerCPJ7TwBup 8rdApcd6UKjr8jMdtjTT9fSn7zbzNnCucvGm11gV23sRy2TGrhasvd1h4sSalUhEj87BcltRIar KpKHGSnedhBCfxZtwcWHpBX2RKHtwbnJxMxYZOq7cHrmgnL5v5lrNgaZn3ayOKnzv/HtQAxmMi1 6paePOTqr5K/OZMbhOA== X-Proofpoint-GUID: zo-RlXm_U88SIQSyD2BvVcN01U-9Gp21 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 priorityscore=1501 suspectscore=0 lowpriorityscore=0 impostorscore=0 adultscore=0 spamscore=0 phishscore=0 clxscore=1015 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129400333154100 From: Marc-Andr=C3=A9 Lureau sh_serial_receive_break() set bit 4 of the status register (sr) instead of SH_SERIAL_FLAG_BRK (bit 3) in the flags field. The read path checks flags, not sr, so break events were never visible to the guest. Fixes: 63242a007a18 ("SH4: Serial controller improvement") Reported-by: Pavee Hui Signed-off-by: Marc-Andr=C3=A9 Lureau Reviewed-by: Yoshinori Sato Message-ID: <20261004-issue-4560-v1-38-ccbef537cbeb@redhat.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/char/sh_serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/char/sh_serial.c b/hw/char/sh_serial.c index 8728842b84e0..8933af24be10 100644 --- a/hw/char/sh_serial.c +++ b/hw/char/sh_serial.c @@ -322,7 +322,7 @@ static int sh_serial_can_receive(SHSerialState *s) static void sh_serial_receive_break(SHSerialState *s) { if (s->feat & SH_SERIAL_FEAT_SCIF) { - s->sr |=3D (1 << 4); + s->flags |=3D SH_SERIAL_FLAG_BRK; } } =20 --=20 2.55.0 From nobody Mon Nov 23 04:26:25 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129387; cv=none; d=zohomail.com; s=zohoarc; b=ecFF3sllCeugvFdtoYiwiDBLr755XZ6AETn2fwfOyvR+uqy6yXFRo5kyifA+cN9/RXRNQ+sEZiXyHiO7APcZCtq4Ntod0ni3r939IVMj+OEfofy20jKDm8dU5ixasfDPlVlXQBkgN1R/BLZirTreKZ8K9JrQfJz5OaTwoo16IMo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129387; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=pCLF3qARxKPjszPwebyr7j8AOoYU3m1TDLjxq95k2yA=; b=XRZApTEjou/gQazrRMPYXI22lHsYCl/GBK5P/UOomkTcKBLyOvO7qtvRICX86vnLa4vqfhNqFWr4oIHKbeJsRls6U45bdN6dXro35lb5LXPjbusj1wL719TLjicUM8FSYl+DttDmC4TUbIr0dIiHf0RBqr09m9aFKB85X6F4A2Y= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129387450146.54938394846943; Tue, 27 Oct 2026 12:29:47 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmrb-0006c2-R7; Tue, 27 Oct 2026 15:29:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmrY-0006Jf-Rz for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:29:37 -0400 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 1xLmrW-0002Th-Ew for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:29:36 -0400 Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIIAuT3486333 for ; Tue, 27 Oct 2026 19:29:33 GMT Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjjbtc390-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:29:33 +0000 (GMT) Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-9308eafb465so29068185a.2 for ; Tue, 27 Oct 2026 12:29:33 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a94e6b8290sm3218015e9.9.2026.10.27.12.29.30 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:29:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= pCLF3qARxKPjszPwebyr7j8AOoYU3m1TDLjxq95k2yA=; b=KKRPO3XanqAAKqLq 1ZJlv5zDA8vCKiV1QB//wp1tFjA8jxJHLDqRwwFWYX3mgAhVY8EI0teLHKCWnCPv K/mL+cLp+lqS8S3ofOlONOG5C7LrxG9B2LcGMT9EdNHxLoHY6WlzCXygQLLH5DLh 2DPTphe05WGwswglN92Q9HuI7mI3aJ5aOSspnQSkynhpp8JWB3EHr2HxNgnNyaZ7 +O34qla06URJ4QZ8ux/LPteDYww/JYYxen4IRZ0cDNWRtYlZefLw5fa6epTlTYni UU4Li8ciig5rgsveGYehUVXXwElyg00qzm0Q1dsnGxy4xSqUC2lUES8/et9Sr/6S BrmHfg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129373; x=1793734173; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=pCLF3qARxKPjszPwebyr7j8AOoYU3m1TDLjxq95k2yA=; b=JqYyvoaoW2hK4IP4oA2jXsmKeHJEQRmh0hUuDmaU5EAUu76k1008vDVbAwadgPD8f4 WCtq8f5fyFHI5B+FPfNMaaPRKUETIcaJnzaid+qFHZRWzFhxtxC4Gtkhlb/Gcutfdy9I WGEKauXBAfHtzZjILC09EyptAUD29dQ0xGuReixezXFtOCdRJ83nbPZVFA0kJHKuKx5K dujloyq/uCqesGQppMwsmwYcnQEuPMTvLYde1FirLWzeG3tDIcbJnwMcJuLe0fyqGGYI s2W7zTe/acP3lvAfAn1Z/RHKMIyqGK/WyOkp1YVhzCcN0lyDOJBO5b+Tz6ViYKJdhmpE U+0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129373; x=1793734173; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=pCLF3qARxKPjszPwebyr7j8AOoYU3m1TDLjxq95k2yA=; b=p/tqI1kon2ItTDXUTZNyH8PVhkUz157AkNfTJQqJiBW6z0bA34bBhk4gxrbv5f5zOR qGXYx+6hCtLcogjOIJ34p8Dmg9698vhOVyJGWrmHO4ZzdvS3t4ZMAy4mlRoOb4k+G3Co CoNIb0bnIwhNnvcAKlS5XWb7/Bz7ROUxTgDBINS5Cpw2kucOaKiaaEniWXFIV4AdE9WL Cz8FFKBIh5uRUdolhlGW8A/XF63hXWPbVJqhlR6aDxOh7/KZz/uWKu6wb0rfsLAEa88/ IMwbGLfM6QhfIMrb+FISSST5LyajK3opYhcL4ehMa4v10JSIAmeuf3n1yAS2OIG7odxt FgZg== X-Gm-Message-State: AFq9FYJU8zvCt7kNN1y/oWkcJHQ7gryjeFojd6CMbaTMX/Ed3P+neHUt 9KYMF79VZbKXvqFkTnna5w9jxr31uSVMn6zqe5wBC8+Hxlpm7tjnuYcM6qlI2eK+OV7oFvPc2mn mus/6GfzitSMx0p858MqY9cfJswpnUbpfO83KEMgzjLQKckgR4KgwqVDyawUjWZWhmQ== X-Gm-Gg: AYBFou3OGiHhPFLmrS58jOQGQqpC/vkTM+HxmNw9X5LQktYkE/ebiatc8/CP0iT/BAr LSn4zTFuxa8ZWNCpMw2hlCjr4op5mb6mkvBLJcJDB5e/5i0TlL/pXd0hYEayYn6a0mM1OqPb9vJ kMrOV/XmEqEpLFA5E7y45wdTtAWZmsa7HfVpTGBKXhQYsrRm5VGO1iU1uhoIlV3czymZ9imcIyc Tq3mp0Qxb98OcH7XGQecb2XauIhj8t5N7pbKgjmS2FDxs85jxV+Meva47bmSzfGve2ZBFVDMnQ2 J6BLNedevpzNHlP4yrQFPoMB7PzwX7zwAYqRbyS3eqHt0d34ICf/DkVLkqJnIy3ZI19k9VWA8ja /xI86iKooX6rRVkpRqrvoURrmaIKWb1E7y0nwAS8HlqNcDJAALezZNGZ0 X-Received: by 2002:a05:620a:2955:b0:93f:611d:a18e with SMTP id af79cd13be357-940ef913527mr1638864785a.55.1793129372513; Tue, 27 Oct 2026 12:29:32 -0700 (PDT) X-Received: by 2002:a05:620a:2955:b0:93f:611d:a18e with SMTP id af79cd13be357-940ef913527mr1638861085a.55.1793129371844; Tue, 27 Oct 2026 12:29:31 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 51/59] system: Remove deprecated 'debug-threads' option for -name Date: Tue, 27 Oct 2026 20:23:32 +0100 Message-ID: <20261027192341.9197-52-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfXxMpqW5kBzWyF 3HLxg41k7WFimbO3yes89d76ZYkU0E1pohsyC7gQ+Ag707x6ELWgiElFPHjXd6Jy23WWJJksdMT Lo8qxdQog8SqbDjQoCZ9RTOEXaowd7c= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX4BAC5n7IeN9P ioucZm0hECeI1sQ/O4ohxNnKtOSRtA/lRT0tMRNdwU6WwJ//TqZjPFI2zjfMDHzQOK/pAJrRtSC ktDmeSM6lEk25RApo2tq9qRm8ZEogtdnY1lqR93VPV1c79w2+763NMPOt/OAHyKDt4rEZ+ot/6h B34hXtmgO3u1j66L37zDzkpAVRD3GSzqiFc7GYZu5apN8B/aFKoTHE3YC/9amm5/6rEVrp748Um t2pr/DJp3tdkt5XcTFcMaEDQYSV/57ekoSPiyDKwbciMplwFCjBlajMoYbu3N0YYQaD1WRm7tyX qDpVuhhRKhsUogMBgoI8b542UA/YqamWfIlXqV4CY4xdV8ltYhKkZx3G7clxqxr2rD88+uT0Y/b F79j52R9STAniQkQ47ptxLFPWGbMn3J0UQNZ5Anwjh04XwZATZzspwJEfwppDXh5B5uZ2GS1pZH gHlp0Wvtdltxo2oh1nA== X-Proofpoint-ORIG-GUID: -wXhfrxCEvWHNvFzPMBpZ2cPGiQIRW6Y X-Proofpoint-GUID: -wXhfrxCEvWHNvFzPMBpZ2cPGiQIRW6Y X-Authority-Analysis: v=2.4 cv=XaIcX455 c=1 sm=1 tr=0 ts=6ae0fb9d cx=c_pps a=hnmNkyzTK/kJ09Xio7VxxA==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=EUspDBNiAAAA:8 a=20KFwNOVAAAA:8 a=3WJfbomfAAAA:8 a=LQmNBL1JU3umNfIF-20A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=PEH46H7Ffwr30OY-TuGO:22 a=1cNuO-ABBywtgFSQhe9S:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 phishscore=0 spamscore=0 bulkscore=0 priorityscore=1501 clxscore=1015 lowpriorityscore=0 suspectscore=0 impostorscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129388314158500 'debug-threads' option for -name was deprecated in v11.0 (commit 1b65aeed2a0 "system: unconditionally enable thread naming") thus can now be removed. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier Reviewed-by: J=C3=A1n Tomko Reviewed-by: Dr. David Alan Gilbert Message-Id: <20261018232917.7716-1-philmd@oss.qualcomm.com> --- docs/about/deprecated.rst | 7 ------- docs/about/removed-features.rst | 9 +++++++-- system/vl.c | 11 ----------- tests/qtest/migration/framework.c | 4 ++-- tests/qtest/migration/precopy-tests.c | 2 +- qemu-options.hx | 7 +++---- 6 files changed, 13 insertions(+), 27 deletions(-) diff --git a/docs/about/deprecated.rst b/docs/about/deprecated.rst index 153fe118151c..ffcbe624a4e9 100644 --- a/docs/about/deprecated.rst +++ b/docs/about/deprecated.rst @@ -54,13 +54,6 @@ as short-form boolean values, and passed to plugins as `= `arg_name=3Don``. However, short-form booleans are deprecated and full explicit ``arg_name= =3Don`` form is preferred. =20 -``debug-threads`` option for ``-name`` (since 11.0) -''''''''''''''''''''''''''''''''''''''''''''''''''' - -The ``debug-threads`` option of the ``-name`` argument is now -ignored. Thread naming is unconditionally enabled for all platforms -where it is supported. - ``-mon`` option (since 11.1) '''''''''''''''''''''''''''' =20 diff --git a/docs/about/removed-features.rst b/docs/about/removed-features.= rst index 6a9944a0c794..cd4f3338bccf 100644 --- a/docs/about/removed-features.rst +++ b/docs/about/removed-features.rst @@ -578,6 +578,11 @@ kernel since 2001. None of the board types QEMU suppor= ts need Keeping 32-bit host support alive was a substantial burden for the QEMU project. Thus QEMU dropped all support for all 32-bit host systems. =20 +``debug-threads`` option for ``-name`` (removed in 11.2) +'''''''''''''''''''''''''''''''''''''''''''''''''''''''' + +Thread naming is unconditionally enabled for all platforms where it +is supported. =20 User-mode emulator command line arguments ----------------------------------------- @@ -779,8 +784,8 @@ values could be assigned to integer device properties o= r vice versa. Removed with no replacement, as it reported only a limited set of threads (for example, it only reported source side of multifd threads, without reporting any destination threads, or non-multifd source -threads). For debugging purpose, please use ``-name -$VM,debug-threads=3Don`` instead. +threads). For debugging purpose, thread names are unconditionally +enabled where supported. =20 ``migrate`` argument ``detach`` (removed in 11.0) '''''''''''''''''''''''''''''''''''''''''''''''''' diff --git a/system/vl.c b/system/vl.c index 468a9fc247ac..e766402f7e19 100644 --- a/system/vl.c +++ b/system/vl.c @@ -403,11 +403,6 @@ static QemuOptsList qemu_name_opts =3D { .name =3D "process", .type =3D QEMU_OPT_STRING, .help =3D "Sets the name of the QEMU process, as shown in top = etc", - }, { - .name =3D "debug-threads", - .type =3D QEMU_OPT_BOOL, - .help =3D "Enable thread names" - "(deprecated, always enabled where supported)", }, { /* End of list */ } }, @@ -556,12 +551,6 @@ static int parse_name(void *opaque, QemuOpts *opts, Er= ror **errp) { const char *proc_name; =20 - if (qemu_opt_get(opts, "debug-threads") && - !qemu_opt_get_bool(opts, "debug-threads", false)) { - fprintf(stderr, "Ignoring deprecated 'debug-threads=3Dno' option, = " \ - "thread naming is unconditionally enabled\n"); - } - qemu_name =3D qemu_opt_get(opts, "guest"); =20 proc_name =3D qemu_opt_get(opts, "process"); diff --git a/tests/qtest/migration/framework.c b/tests/qtest/migration/fram= ework.c index b7aef6b21cbb..fbe1e1f247d6 100644 --- a/tests/qtest/migration/framework.c +++ b/tests/qtest/migration/framework.c @@ -413,7 +413,7 @@ int migrate_args(char **from, char **to, MigrateStart *= args) =20 cmd_source =3D g_strdup_printf("-accel kvm%s -accel tcg " "-machine %s,%s " - "-name source,debug-threads=3Don " + "-name source " "%s " "-serial file:%s/src_serial " "%s %s %s", @@ -433,7 +433,7 @@ int migrate_args(char **from, char **to, MigrateStart *= args) =20 cmd_target =3D g_strdup_printf("-accel kvm%s -accel tcg " "-machine %s,%s " - "-name target,debug-threads=3Don " + "-name target " "%s " "-serial file:%s/dest_serial " "-incoming defer " diff --git a/tests/qtest/migration/precopy-tests.c b/tests/qtest/migration/= precopy-tests.c index d57ffcac234d..3298bf026a1a 100644 --- a/tests/qtest/migration/precopy-tests.c +++ b/tests/qtest/migration/precopy-tests.c @@ -807,7 +807,7 @@ static QTestState *dirtylimit_start_vm(void) =20 bootpath =3D bootfile_create(qtest_get_arch(), tmpfs, false); cmd =3D g_strdup_printf("-accel kvm,dirty-ring-size=3D4096 " - "-name dirtylimit-test,debug-threads=3Don " + "-name dirtylimit-test " "-m 150M -smp 1 " "-serial file:%s/vm_serial " "-drive file=3D%s,format=3Draw ", diff --git a/qemu-options.hx b/qemu-options.hx index f72f30e246d6..c9653ca69daf 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -1376,18 +1376,17 @@ SRST ERST =20 DEF("name", HAS_ARG, QEMU_OPTION_name, - "-name string1[,process=3Dstring2][,debug-threads=3Don|off]\n" + "-name string1[,process=3Dstring2]\n" " set the name of the guest\n" " string1 sets the window title and string2 the process= name\n" - " When debug-threads is enabled, individual threads are= given a separate name\n" " NOTE: The thread names are for debugging and not a st= able API.\n", QEMU_ARCH_ALL) SRST ``-name name`` Sets the name of the guest. This name will be displayed in the SDL window caption. The name will also be used for the VNC server. Also - optionally set the top visible process name in Linux. Naming of - individual threads can also be enabled on Linux to aid debugging. + where supported, set the top visible process name (individual threads + are always given a separate name to aid debugging). ERST =20 DEF("uuid", HAS_ARG, QEMU_OPTION_uuid, --=20 2.55.0 From nobody Mon Nov 23 04:26:25 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129451; cv=none; d=zohomail.com; s=zohoarc; b=bhe6rU6+MttwuLgzRYS67SxnQefIDEHnN7m/NLlBebN7jBTVk43S/s02Pb1BzXpMLdblbbW29NZlrULhBMTcIr9IMMzO6OP6SE4J90uKgSiBdA05RmlMIGgsrAlZgMmCxLunARXpiXudCytWuHl8WWm/tsZNhgySKAj7Dv2NJ00= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129451; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=CVhDegPFKUcv8kLWfaQdFtFZrjF/nPi0UG6I+sjHSAw=; b=ewAKvXuZ3mW7Q7WppFL0pt4bzbJqwAsZRnsPvTmS5jTa3zSCEBdrXsBxxGGdWMq9c9SR27Cp9XGomUJWkrzQyt6Y3jbhmfZlM/e4cAJ3CJzIKLCoBEXzLHi7I4OnDyjcBxEFIkVMLDdTE+GTapVMvdol5vGPribEAuLZP6X9lUw= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129451077983.6006344247553; Tue, 27 Oct 2026 12:30:51 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmri-0007Ne-B5; Tue, 27 Oct 2026 15:29:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmrg-00077X-20 for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:29:44 -0400 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 1xLmrd-0002Uz-VC for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:29:43 -0400 Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHWZh1917333 for ; Tue, 27 Oct 2026 19:29:40 GMT Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjux99vc9-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:29:40 +0000 (GMT) Received: by mail-qv1-f71.google.com with SMTP id 6a1803df08f44-91b7e7d5f56so5252626d6.3 for ; Tue, 27 Oct 2026 12:29:40 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e3ebd49afsm24627395f8f.35.2026.10.27.12.29.37 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:29:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= CVhDegPFKUcv8kLWfaQdFtFZrjF/nPi0UG6I+sjHSAw=; b=MqXdufIm9zmHPh37 MuHfQ0/v/hvk720b6sxPAeHJTEfSOj8mkJIeAiyQ5AgtRFDoCYWttzwfpFWDm4dI HyEJjM7dUbCrZl+0HCkxEqgkMOjM+AAy3UVNurgiZC2SpfyUqVNPqOJ3jU/o0hIZ VAVVxx/Ka6sRDwmCF8tbVWz3Lypzj9yEAxxqFG+0AMqElVQSGMh/b2uQS/Jjcya7 9x22/8VxmEeNSkzZ5Qd4qIkPdhp0jQv2kFuBbWl8GSYkMpheAILKJIE/2JXmeJQg walSkrZqi9IytCa7+oH6A4w/wDV2XawWGcvV86VXH36J9GV0vqGbE9+ADq0ZMQ4O hCVyHg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129380; x=1793734180; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=CVhDegPFKUcv8kLWfaQdFtFZrjF/nPi0UG6I+sjHSAw=; b=eA4kJ3vwwKMstMZZBM2+sZ3lQCrfDpplnNQNy1RFz4DJ9JDv2+EAgj92u8LHSif1Wu 9yVVqVui0/+/yzS4ngiDXvBkrBDMGcVH5w1AjChYttKXIPIdgudBNayCFyTp2sQS5L4n N+ZgFoOecvZ8iwJ3E87BJT18ouQhgrwL0WmZc84xodK1mpri46QwGcihIkUOjuMqia4c RhAu93XVaqVOojc9j4Lkn8Ztju5tvkXrbimF5uEeiEEjUL9a1BMYLE7MZyjMZzFLjlOp wE4seXwEbeoLjd2LnT9Y7Y4Re+aEyoxd4n351KKyiwNQ0aZ0ytl88uRvBzYERfOnMrCm yoXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129380; x=1793734180; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=CVhDegPFKUcv8kLWfaQdFtFZrjF/nPi0UG6I+sjHSAw=; b=ktjbO9KE/tYVJPD7Dtnd9lVvECI+AX63hwhDiWj0QPdDluBAV7EwlWro8mn58XS83w 9RtClL+3s233+c/xCNwqJq1Btxi1u6Jf7EO9LPAJ/VHwqWas4rSwnEw7EXnsHhmVdBSe ycIbwQ4z1hRtv/lw5yO54qGK9jar68D6O3p+9ttlKOfu1wDi0iglCGXeMvlyBwQG1s94 SPSoAytQNrEXvLQQkeBqPJUZKQMX2ghh1V+1F2Pdi+7sO+1OMn6jTBp4zeyL2PPwcQfw 1usYGKB6PmDHwpNDW8VziuahPWDsfiRZ7HyObsoHqSogy4/J5fN8AKgNiQlODtLaFU7h wBFA== X-Gm-Message-State: AFq9FYKwTNjbBmMhVEEvdcQIQfKKG5P0PK1d/prUStAaXq3KJrqMxfU3 dH3jmypD9zeBAJ9507ntWuY78Q5E+dFbFQi9MTNmxkfZGUFM0Y4IzJDIoqEOQUtgFJV/Ab2Sukj x26Nf3AF92FuiJnVQRZ2nGF8w0AcEyO+EhRexzO/CmMtxjygDV7PXJPa6zGAlhrb5ZQ== X-Gm-Gg: AYBFou17W+BpnDqN4x0VztVKJqSHXUlSajqLuT0Jlf5iaTwsb5orcCVlNd6EriplPem VsAowVOauIeCn9JerhTkRLEd7OYpGxz9pDaC7drqExIxD8s0h8Tu5N9b1g2SN5hfLAPt4srhkTR um6/OjlilNbvYUqBXUkaBY12QkBQYXggWhCFsL8hX9DO3HoSYgc7sFz9nsbXDmaEEtW53zVxS3j xY9bLRE8FPlOeNMLC7w+Qva0JgwAhT2lJTkTjuQuKIotOwAMQltgRdfauNsmCsqoktdtKLex4p8 vNkXq8TivDg0bBzFa846+QMVgiOypRc0moctYXDTT0/bKPkrFTOUv6xQrM3J3kJzoWhv0i6puOf h7L3bNX718s6tYFv1qNOQhJRDJSyxTy65LeWKkeq+wpBOVzPI0miym0Yh X-Received: by 2002:a05:620a:4043:b0:93f:2d10:ea44 with SMTP id af79cd13be357-940ef90dadcmr1676375685a.52.1793129379850; Tue, 27 Oct 2026 12:29:39 -0700 (PDT) X-Received: by 2002:a05:620a:4043:b0:93f:2d10:ea44 with SMTP id af79cd13be357-940ef90dadcmr1676372185a.52.1793129379390; Tue, 27 Oct 2026 12:29:39 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 52/59] hw/pci-host/aspeed_pcie: Fix global MSI setting during class initialization Date: Tue, 27 Oct 2026 20:23:33 +0100 Message-ID: <20261027192341.9197-53-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=GYyCDgXL c=1 sm=1 tr=0 ts=6ae0fba4 cx=c_pps a=UgVkIMxJMSkC9lv97toC5g==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=V2NxCb60AAAA:8 a=69wJf7TsAAAA:8 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=KKAkSRfTAAAA:8 a=Oz4jNdGFPLS9ddvAwioA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=1HOtulTD9v-eNWfpl4qZ:22 a=3L6qF29SlnrayQqPM2jZ:22 a=Fg1AiH1G6rFz08G2ETeA:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-ORIG-GUID: mWL_UYw9H37OVAmDKJey3ZSb4F9zrHZA X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfXx8h4UXGUKzBD YaQ1fWLMobks/5Xn1q0piVRHPCU6YWlfZKXkkpXSV7GpkIF6VNopeCLqhVf8n6PZDB0CZJphIYM FjJmjNkwVF+2PCGNzoH6lV4RH1EASVfU66S+Y0beOdAcQ6zfZlDI3Z5GD7tQveQYbCWPNBUiv5E /PRyHFg9obX3r/rmsZO//TmbVD9UJXQ5JKLOsGsrdCX9ZfIocnV3+ZJN3d2BwCJSb2ByeHS1s1M 3CoDYMwVE1+q2N2rPcqMkktzPZZtxBTe+cUiIZFqx+/I9eeTN/FdxlwPqmuHqswEmX548FhtgaH nqDATySInUZYSrh7m8FRNcz/qHawuXFUb3GJ2+aGqKxHwq6U6JNX3NFej/8/s0x+QvNHlYcr2Yn AMu3gQvwsGLIez0/4o/GCkIhIWrARcM6QqJs8NkmZFXRgdHpiIZlh5O+dYEL/7jrLq53t+rVQ7U XrIhROXpQoHZNCrjKyw== X-Proofpoint-GUID: mWL_UYw9H37OVAmDKJey3ZSb4F9zrHZA X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX1GtVwfs+rtqh tqchqN21wFQWU8uMxGpznsHs732pAXUFDLFt2bV4jlG2w3lyJfWXzVlNDiORyXqOBKcLBXVN/v0 5HZh+BM3L/lqKZmQslWZMAGM/KLg27U= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 spamscore=0 lowpriorityscore=0 adultscore=0 bulkscore=0 malwarescore=0 impostorscore=0 phishscore=0 clxscore=1015 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129452602158500 From: Jamin Lin The ASPEED PCIe class may be registered for machines that do not instantiate a PCIe root complex. Updating the global msi_nonbroken flag from class_init() therefore affects unrelated machines. Defer the update to the per-device realize handler, so the flag changes only when an ASPEED PCIe root complex is actually instantiated. Cc: qemu-stable@nongnu.org Fixes: f002aa35f320 ("hw/pci-host/aspeed: Add AST2600 PCIe config space and= host bridge") Reported-by: Marcelo Manzo Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Peter Maydell Signed-off-by: Jamin Lin Reviewed-by: Marcelo Manzo Tested-by: Marcelo Manzo Message-ID: <20261020033755.2618640-1-jamin_lin@aspeedtech.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/pci-host/aspeed_pcie.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/pci-host/aspeed_pcie.c b/hw/pci-host/aspeed_pcie.c index b46eb74234bb..ceb010f21338 100644 --- a/hw/pci-host/aspeed_pcie.c +++ b/hw/pci-host/aspeed_pcie.c @@ -181,6 +181,8 @@ static void aspeed_pcie_rc_realize(DeviceState *dev, Er= ror **errp) g_autofree char *dram_alias_name =3D NULL; g_autofree char *root_bus_name =3D NULL; =20 + msi_nonbroken =3D true; + /* PCI configuration space */ pcie_host_mmcfg_init(pex, PCIE_MMCFG_SIZE_MAX); sysbus_init_mmio(sbd, &pex->mmio); @@ -294,8 +296,6 @@ static void aspeed_pcie_rc_class_init(ObjectClass *klas= s, const void *data) =20 hc->root_bus_path =3D aspeed_pcie_rc_root_bus_path; device_class_set_props(dc, aspeed_pcie_rc_props); - - msi_nonbroken =3D true; } =20 /* --=20 2.55.0 From nobody Mon Nov 23 04:26:25 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129406; cv=none; d=zohomail.com; s=zohoarc; b=Pr8TXmnvaVCho1i0a0niTiodQ2bUd/a9ny5tqAX+51WbkeBGyCidwcDzyXhittifZYeTIWLm26mVX2eOrlqMIHfL1t3WlAeHjTbPxFSCVJK91h0UFGpl1r+gbDzMk8azZI17CwoviCUBqypShzzL8145B9cSa3fGAUjMslitSjo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129406; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=BM32ASZC66MaXMj/nErIJMNbaVaFkoVKYSuaBNe6pSc=; b=jHKamrStYXi11melcaCiEi0huEBnoBKFHN4WkdBJVdkZ247IgSPG9IRDM/2FjcbJ7f7DU8BHbPOiLfMcKm95aZS15hwykASh1fqRT9DUOIsuNl1c3og/9Kk6apAEbbdNLHAL0xluwmprTzm6cemisQ8SwPFN50sD1XQB2UKvWL4= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129406670817.5225121376033; Tue, 27 Oct 2026 12:30:06 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmru-0008Al-T5; Tue, 27 Oct 2026 15:30:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmrm-0007ty-FV for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:29:50 -0400 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 1xLmrk-0002WH-L2 for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:29:50 -0400 Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHpiZ2960453 for ; Tue, 27 Oct 2026 19:29:47 GMT Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjy670vmp-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:29:47 +0000 (GMT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-93cb98809caso22951185a.1 for ; Tue, 27 Oct 2026 12:29:47 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a94ed7b33esm3109745e9.14.2026.10.27.12.29.45 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:29:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= BM32ASZC66MaXMj/nErIJMNbaVaFkoVKYSuaBNe6pSc=; b=Xg4xnbx9ijei9gWY alFVh9rSr1k959zNSZTQGMh1h87eZ4n033/ady9s+azdS5+CTJm5nUecZ14ypFYR 967DcEV1Vr1VQlgG8+vtT9WRvAfZHlP48yvYmTIP38ZfZFaAGUbhvE96W67jneoN e2Pc2OMfnlsduIu9Xzr2fq7WfAnN3LFzREc5LK+DCUDhTqVtTsYdbW6I865of6Gs rt0YyyWdSRBh3dTmZagLuLIA9zmvrNj/cE0yrNElUfs9d9tcidq8S2HjlL5KiU0s RVVG0sqGLNRRO3UP4dEjBpPkujYmtwc5aLuyREeDXzdcNdJ+mjTJUPeyVrw9Zq20 i53ILg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129387; x=1793734187; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=BM32ASZC66MaXMj/nErIJMNbaVaFkoVKYSuaBNe6pSc=; b=XvmmjcGrSvQqgm77caXXNC9/EB24HfoV9kyhRyr938KieGK4l3TYIt5dmJ4+AUPypV 86ycn0Ope79Ho+0BJ00iT1lld0+Kd3/aGraSi0H/6lcA/wSH1r3c5RvH9KGbIkCs+P/h 8Z32/nT7XQ0warKi4eltMIea3YjYjvFw15F/wQ+lexKbxG+TRlqj1sA5qj+6DFMBZo2z QTmwDv/nOrq5CvUgFfXPSxdDidkuhBV8SUlSWate6CVNL8/f4nsuR2UdI0Wz1xyPl5WT jjlUm0Rgsc+nmI1rnHGCznOdq3/Q/tmT3d750dcFiQ7v4vVlGkFhAs1JM8kfjMTxFp+o QpQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129387; x=1793734187; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=BM32ASZC66MaXMj/nErIJMNbaVaFkoVKYSuaBNe6pSc=; b=mbkbJOQ0+roKOYXW3MrSfEdjmtB7Ga7QUfBPCMyN3lw91Xqsq7ikVFFHfwxT2dBPgk CDQXRCVGGXmkqxwbNwGNWGJCZ9jp8CHISPgL1ymuyWGmkNEkR01tXp9iaa5z4r/0UEwq VkO0kZRxtN2EDYbF9YnDu2H+rHLUV60OqcpsuzjDiJiNxJ5/LUiDrYoAo7W4JDBARhR2 vc5fa6EBrHiXxejhDeAMpwX2oob2/UX4twu3YOpd1c0+YU37pdaxojti/600j6GyiYCB gRar1agBIpSkUYTt9zSrxz+ZWphU6nNU4mGFsnqwN1t7saXeH1BH9lcJBKrVRqbGaCIl rSMg== X-Gm-Message-State: AFq9FYKCadL6n9aYB6jg6eIAUB0o6k768p3c7DzFHfDTN8ydBXN35FOi FkMgc90n1TmyWY62vMWglGa11eyPPuHi0arsnAK08mPSdPvpDghH5vUjheiF+ZqWsNkxr5oiuhk svKmpFOa3mVNOYn1GUFDJBqVb/BSxco7SdLNp+/Uk6pNQ8UNbBQ+oStVwbRsZ5nDUyg== X-Gm-Gg: AYBFou38sX2SdQGolWcJIhqqc2yfxU3xmoC9L7ffrpLKRqvgv2vDB5eLl9vqt0xtdEg ol8R89EYKEQY+497gYHEflvQBgkhDZUiLjO1EVlPhFxY9G8bBZcXPlDL1zdlMP/qCKj1Cm3PV8o whD3yEV9NFSjzBeytrjuLKseqayehi1sQF3m7U/t7EYrMi2PdL+H4BKX1Im0v/lLTgVW+/JY4MU CsY+XS6Wdy2YJEPJ4S49lfUdvakFnsbWIiQdNd/O0Y99M3BrUwjwSsJsIsA0Zzh+Y2r2s1tnA/3 XjVvVdK79fIyhYQ2OwU2l78tqvlfZ8yQCDXeorU6SM97Y55rh0DQVM7UyD6THkdNX+b2mMrnFwl SxVFy3QvDuo+Y57PC1rIbqQ8Xg010kkWNr0aI4n0saWiV7Ynh9LV2ee4L X-Received: by 2002:a05:620a:370b:b0:93f:31bb:e3c with SMTP id af79cd13be357-940ef939f5emr1728373085a.68.1793129386781; Tue, 27 Oct 2026 12:29:46 -0700 (PDT) X-Received: by 2002:a05:620a:370b:b0:93f:31bb:e3c with SMTP id af79cd13be357-940ef939f5emr1728369485a.68.1793129386150; Tue, 27 Oct 2026 12:29:46 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 53/59] hw/net/can/flexcan: Fix FLEXCAN_CRCR_MBCRC definition Date: Tue, 27 Oct 2026 20:23:34 +0100 Message-ID: <20261027192341.9197-54-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: kCb0fqOSeZ57daFgLbABEvu75U8fmkl9 X-Authority-Analysis: v=2.4 cv=QvfLTlyd c=1 sm=1 tr=0 ts=6ae0fbab cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=KKAkSRfTAAAA:8 a=69wJf7TsAAAA:8 a=pGLkceISAAAA:8 a=zd2uoN0lAAAA:8 a=EUspDBNiAAAA:8 a=oiMVlQNTWfm3mpZXvQsA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=IoWCM6iH3mJn3m4BftBB:22 a=cvBusfyB2V15izCimMoJ:22 a=Fg1AiH1G6rFz08G2ETeA:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX9dPbJcYYIi5A K4xZGjU2qyM7sv2NWf7qtP7WLIIgQNt91VXXbdmfKbbVjWXCWwsTM59FsNAm2xTwQot7HZimVEf 3YH0Xr//5UQkoqP3YXyPTNBGUOqezcY= X-Proofpoint-GUID: kCb0fqOSeZ57daFgLbABEvu75U8fmkl9 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX4agU1uPDhEJn TbLY/095OQYVNoXjo3ek5CAw82zgAmkg2aDdEU0iSarGvwTtStDm8yHC7V3jt32ZuE3H3hVPmj3 JH784H883CYX91oWkoGpFgBQmuT+Mnu/CsNFqlqjQWZsAjPL2zoSxBqwaTZb6Iyp7u8RqHbVff2 oRxUOauZKrNQ49Q/rv5/czBhaZ0mnEtcaW3Acb8v0gBdAafC3frk6ZYHcukSNfO5usRz8j0VQxz ru8vomsSCJu6A/p4uPllgJzCJnEwad4/7adP1d2tQGfJJu85ty1ED/7w5s8cvzqDt0vEQf72I2u XvM9l0WI8xMHgZaxpeG1/7ScY8yaOCJUTi3BqH+yOQquZ/+tHsJOgzqCKTLW+51hLMJLUDANnnj bh/E52NLYTfRAC92PvpgEffUPJ1rfojkZ5IeNxFSbJ6/UHDwEEMk9bqANbGoJDSiEddfs1XZG2n 3cSdwKEn7L2GouVsxPQ== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 lowpriorityscore=0 malwarescore=0 bulkscore=0 spamscore=0 impostorscore=0 clxscore=1015 adultscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129408108158500 From: Peter Maydell FLEXCAN_CRC_MBCRC is defined as (((x) & FLEXCAN_CRCR_MBCRC_MASK) << 16) but FLEXCAN_CRCRC_MBCRC_MASK is (like the other _MASK values in this header) defined to be an in-place mask FLEXCAN_GENMASK(22, 16) (a value with bits set from 16 to 22). The mask and shift operations are done in the wrong order, and so the result of the macro can only ever be zero. Fix the macro to shift first and mask second. Cc: qemu-stable@nongnu.org Fixes: 3c4e23cbb597 ("hw/net/can/flexcan: NXP FlexCAN core emulation") Resolves: Coverity CID 1662973 Signed-off-by: Peter Maydell Reviewed-by: Matyas Bobek Reviewed-by: Francisco Iglesias Message-ID: <20261022195924.672606-1-peter.maydell@linaro.org> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/net/can/flexcan_regs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/net/can/flexcan_regs.h b/hw/net/can/flexcan_regs.h index c18bc4736e5b..7923bf836ff8 100644 --- a/hw/net/can/flexcan_regs.h +++ b/hw/net/can/flexcan_regs.h @@ -150,7 +150,7 @@ =20 /* FLEXCAN CRC Register (CRCR) bits */ #define FLEXCAN_CRCR_MBCRC_MASK FLEXCAN_GENMASK(22, 16) -#define FLEXCAN_CRCR_MBCRC(x) (((x) & FLEXCAN_CRCR_MBCRC_MASK) <= < 16) +#define FLEXCAN_CRCR_MBCRC(x) (((x) << 16) & FLEXCAN_CRCR_MBCRC_= MASK) #define FLEXCAN_CRCR_TXCRC_MASK FLEXCAN_GENMASK(14, 0) #define FLEXCAN_CRCR_TXCRC(x) ((x) & FLEXCAN_CRCR_TXCRC_MASK) =20 --=20 2.55.0 From nobody Mon Nov 23 04:26:25 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129464; cv=none; d=zohomail.com; s=zohoarc; b=bf8GFLFJHjoeS3N4a12D5d/NiBM01cOaoEjY19/jb8N2bD5tThBKUjFIjFxb+RDmlC86mIlUvuBEhYWOuh6ElvFerdGPwqGwobRxCpDzUp5YzNB5b7adRJR9iaWnAf0WexIyMRO/S1IUnWxdqgtTOnfHAW639J7IkBtg3hPyrHk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129464; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=wV58a87elWPn1qKA2O8/j56++37MwVM7H5xRVH3BlGM=; b=feYNUnE3OoVFSHMxjlVGLxLpI2b/uI13PLjAv5ZKapKqGvuHUCmoStEQs/5TkTrzYQiBkqBYj3Kva6ypZRCQoyEKz4qb31ZgPNqj8GwHFc63+Ixsl57ea/sDFr2dT0ZZ7PY8Z6acCQ4PgA4B/CyRe3JizjruQr/s3b/M9EcBp74= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129464379582.7668909782934; Tue, 27 Oct 2026 12:31:04 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLms5-0000G9-RD; Tue, 27 Oct 2026 15:30:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmru-0008Ed-2R for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:29:58 -0400 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 1xLmrs-0002XN-9w for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:29:57 -0400 Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHqVV2960454 for ; Tue, 27 Oct 2026 19:29:54 GMT Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjy670vn5-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:29:54 +0000 (GMT) Received: by mail-qv1-f70.google.com with SMTP id 6a1803df08f44-91c70349f65so5386956d6.3 for ; Tue, 27 Oct 2026 12:29:54 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e3ecd3555sm24000291f8f.42.2026.10.27.12.29.52 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:29:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= wV58a87elWPn1qKA2O8/j56++37MwVM7H5xRVH3BlGM=; b=ohCELvP7PP2HqyU3 WqVU7lLH77x8JWVD52xGbJ7lnN7D571Nc2jFqGL+KHC3gH6fvrP8mJRfNhX8eSyn xi96jmyxLyxfe/0qjnqdQ1WrvHTb5EgVWrUKBC5klWmfwNPCMOqHcBMzDdV8Xi7k h/ts0+53w/AGup+byiFiw+G9C7Pn+qQJVk0tWz9G9Mst4OrIf9doLP+KZtbPk+5E RwOzPbaY0vAvwMlSSMHxLM8OLUMjnelnNxmQL0Gw6gRIfJXwn+AII2hck1l0dA5u PUYOULXqLCbzNx7e0VwfreiU+vgD2/fQ8yKOw3B3WqkBMfjW/MhWPGA6qJaGeW29 xrLRoQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129394; x=1793734194; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=wV58a87elWPn1qKA2O8/j56++37MwVM7H5xRVH3BlGM=; b=BHD/9G5TKeHVlfhjwrX3bLa1Inu9dqHPSMrCrtrWqK2aInkhWHGFDUge3BlslqrkDv hxPp4RJpz6E8adf/nzidkoiN/tH4DMW8ZPiDhxTS+f9bi/Pg1KSnoEFFHrrj8gxFawFa mpXNV7v/qeTvNeP70khkBV8F5/PvZKoV2oWi+ENYp10u3OVSLr3Wzka/OjjCLzeXHIqg 9nkg1AelZQlPuF2KJp+FFXfKYbSu0tZbgyxuvl6Do2LNtnPtnBuCrqiDuSazBYtw/fH9 OJGjJI2k73r+PwZG/sTsrQFaxpkTdjbGY1d5zfi6/0l5i5bauXuLTVtUYGy/98qPhIpC U6Nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129394; x=1793734194; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=wV58a87elWPn1qKA2O8/j56++37MwVM7H5xRVH3BlGM=; b=s6NjO5NJYqf41sQOcsw8cer4YvsSNuniCzI+NA82JvHyUDm72gvhhPbHDUGkEhQO1B f2+2/UlHVytPfCpIPeNPOujC8Ux9p2/oo8NDtMtwq92BwD8Xb5IXCixhWPLedhxxCXQ+ 6LWR5lfo5vjDtzaAXgECrDfFLV9jrO3Y6pq0+DkR2ZnnhcrQSC42MtQX6pro57TQ+cVe PkifTHuVXxeXLLxXZsB+cP0v8fAjVd7+Mr8HkrlZe8Yr4j6PmY28EIYra1HSkY6KQUHW zDETY2JQxGBbZZh8RR/VEJrFnmUobobIREcuuXbIroKnDU7Fy+I1pFCSCfHyg1QnGXba o7AA== X-Gm-Message-State: AFq9FYLXnnmvGmLfG9pOiMwFhqcdQJCqhGo2uCDewletBsov8naXZFZq zcu/FPPWRr338yzTKpNh6+wIAMX9UF4ARsbqUQLqKmdsgJbIGcn0hdZ6AOCszF/23WGvo12lk8f KeDKysvuNfxmRrddvuFtfVKKkW+zhz+1ddCuBSA9Y2KdSytp8VXgK6FoNTiOzeE9Ysg== X-Gm-Gg: AYBFou2astyDjDOiZbNp1hzTuCuIpLxWOp/zFnligBiCkJ2lkGXA9071dWEkmgDj6Re TgL+6FOBOJ8Xt1TaU/il5gn96lnQXzWz3aRHLrgLa+o4CPIyxEdFGhFbR2K3PEvnBUu1CQr5Ibc //1clYGVDPFv7V9imBNPKKnyHMjAzAeSAF3cO5yBPFsHZagJbb/SOzEIjBT7cIhDRWjp3L6wN1l Dm2ZGV1fCkl1ZXU+vTNssI3uwLecImVbGGg8iMa3RFax6Bxj4YCEpqavLANj73PgKpUAwv938Uw hn5KUf6frnowzM3A71WlMMARALsBIO3FmGRnL+nh2a0QpaCQ1J+0L9e8IVFIIUG1SJfDpP2N5xD TBSSZ5jgfFRdJDZ8VEJN7Xx3HTUhT/pkB9+PQelANwj1eDPCpfYHWWUvKp1/e1llpgk78mwjB4w Bgrgh+6sUEqA54VWGL8jMi3iF1URqjzg== X-Received: by 2002:a05:620a:4586:b0:93f:94b:81ce with SMTP id af79cd13be357-940ef9dfc23mr1708673685a.81.1793129393798; Tue, 27 Oct 2026 12:29:53 -0700 (PDT) X-Received: by 2002:a05:620a:4586:b0:93f:94b:81ce with SMTP id af79cd13be357-940ef9dfc23mr1708669685a.81.1793129393174; Tue, 27 Oct 2026 12:29:53 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 54/59] hw/net/cadence_gem: Check guest-provided queue numbers in screening registers Date: Tue, 27 Oct 2026 20:23:35 +0100 Message-ID: <20261027192341.9197-55-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: J9_LKXnmZSOzWfqC4JFVWQst7ItozpG7 X-Authority-Analysis: v=2.4 cv=QvfLTlyd c=1 sm=1 tr=0 ts=6ae0fbb2 cx=c_pps a=oc9J++0uMp73DTRD5QyR2A==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=p0WdMEafAAAA:8 a=KKAkSRfTAAAA:8 a=69wJf7TsAAAA:8 a=EUspDBNiAAAA:8 a=pCXGLztfb9cvn6Qfzu8A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=iYH6xdkBrDN1Jqds4HTS:22 a=cvBusfyB2V15izCimMoJ:22 a=Fg1AiH1G6rFz08G2ETeA:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX3W+9gSDSi+hn NqnzV2+Pv3EU37cT2CiIvp7jfmHMIEK/qYRevuxDPrdebX9qCkZi/87ciAataxzBxzrhj9kB27I B1hzi+pVPWlCm7wnaA/dwvlktmUgEkI= X-Proofpoint-GUID: J9_LKXnmZSOzWfqC4JFVWQst7ItozpG7 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX4Re7ITxOD0Ra YXIMmWXymWnZwcS6R3cMbkzVAV6cdJRfkIa5kdtkAHC/po+Y4McDMIGVbUUZ5kzzjeYRasRT/wX uS+iYvK34WMR49E9EMC806U8GAj0OMqtBbx+IzDvWVqrLuzlikmha4fPPSE29rzbAuJu20dI5w/ R8YNqY654LiYGVtsjj+gFYSw/bTmydzIBSQc9xc+juDENPN5Smy9GK2401SBZk6Yu/4dVJrNGc4 4oc1zL/qYdvcn26S/xSlVwdkMP7MSXsu7k+UVMzYBzq3QcRZjq/wRF2T5znB8m5ApJi64E4lnni ruAu+LPe5FJjj1Y7jg/DnA5uRqfGNl3KIn0AF/NYlq+9LraFKfUJv5L2oVCUcoEumxM21zsotF3 q0K+99pVdPQLMZPW0R/D8PnSj89rjWIzkc98kxPvc2sUWtLYkxOwMrolw5/7hGpjMsRcyBCTy7U 2jE8pJcsTnmN0ZjPW0g== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 lowpriorityscore=0 malwarescore=0 bulkscore=0 spamscore=0 impostorscore=0 clxscore=1015 adultscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129464750158500 From: Peter Maydell The Cadence GEM allows the guest to program "screening registers" which control which queue received network data should be sent to. The field for the queue number in these registers is 4 bits, but the device might not actually have that many queues. We weren't checking this, which meant the guest could program a value that caused us to index off the end of various arrays. Check against num_priority_queues, and treat out-of-range values as if the screen didn't match (i.e. go to queue 0). (This is a best guess at reasonable behaviour since I don't have access to a datasheet for this device.) Cc: qemu-stable@nongnu.org Fixes: e8e4994313b7 ("cadence_gem: Add support for screening") Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/4363 Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-ID: <20261023153106.1710228-1-peter.maydell@linaro.org> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/net/cadence_gem.c | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/hw/net/cadence_gem.c b/hw/net/cadence_gem.c index 39e3620ef5ba..9a94b3b8ca4c 100644 --- a/hw/net/cadence_gem.c +++ b/hw/net/cadence_gem.c @@ -854,6 +854,7 @@ static int get_queue_from_screen(CadenceGEMState *s, ui= nt8_t *rxbuf_ptr, uint32_t reg; bool matched, mismatched; int i, j; + int queue =3D 0; /* default to queue 0 if no match */ =20 for (i =3D 0; i < s->num_type1_screeners; i++) { reg =3D s->regs[R_SCREENING_TYPE1_REG0 + i]; @@ -881,7 +882,8 @@ static int get_queue_from_screen(CadenceGEMState *s, ui= nt8_t *rxbuf_ptr, } =20 if (matched && !mismatched) { - return FIELD_EX32(reg, SCREENING_TYPE1_REG0, QUEUE_NUM); + queue =3D FIELD_EX32(reg, SCREENING_TYPE1_REG0, QUEUE_NUM); + goto out; } } =20 @@ -974,12 +976,23 @@ static int get_queue_from_screen(CadenceGEMState *s, = uint8_t *rxbuf_ptr, } =20 if (matched && !mismatched) { - return FIELD_EX32(reg, SCREENING_TYPE2_REG0, QUEUE_NUM); + queue =3D FIELD_EX32(reg, SCREENING_TYPE2_REG0, QUEUE_NUM); + break; } } =20 - /* We made it here, assume it's queue 0 */ - return 0; +out: + if (queue >=3D s->num_priority_queues) { + qemu_log_mask(LOG_GUEST_ERROR, + "Screening register selected out of range queue %d\n= ", + queue); + /* + * This is a best guess at reasonable behaviour in the absence + * of a datasheet to confirm it. + */ + queue =3D 0; + } + return queue; } =20 static uint32_t gem_get_queue_base_addr(CadenceGEMState *s, bool tx, int q) --=20 2.55.0 From nobody Mon Nov 23 04:26:25 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129536; cv=none; d=zohomail.com; s=zohoarc; b=D+HUHg5i4ONwssI13UctCX+uW1u2Z0VDoR7BXhHTMdaHMO5DY/5TRostkN0FGIVMkhY+r40ZnTtNZOnuQEmxZ3w9G5a85lrOJPvvLR6da6wdXoisU9HYXIgHvyXWmB7AWQH3nSanZKTCbFgi9xogC0aTkNDF5RSWJV9j9XZG15w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129536; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=2RLoKFsF5KTr7y+MMw+BrLv5fkcYSr8YBUTMTlQcnFY=; b=A/7iNro+ivnTFjxj2lXd7wdFpl7SVusqf2bT9HqFUBRtIy4wXWt7y799CF4c4t3qqC1lKbgmowS1LtpwSDT+rtawuFRX8K1vWPjxgr5rfx0SxCp+9oTyopaDLVN5OUGuCydiy+ZcWfL/FdtvyikOap6+bdHUzMs6XzBG/LSjeM8= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129536320543.7360485291736; Tue, 27 Oct 2026 12:32:16 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLms6-0000RF-PH; Tue, 27 Oct 2026 15:30:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLms0-0008Qb-9h for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:30:04 -0400 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 1xLmry-0002YR-Bh for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:30:04 -0400 Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHVkx1917309 for ; Tue, 27 Oct 2026 19:30:01 GMT Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjux99vdb-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:30:01 +0000 (GMT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-92e82060977so40449085a.1 for ; Tue, 27 Oct 2026 12:30:01 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e3ebd48e0sm25042081f8f.38.2026.10.27.12.29.59 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:29:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 2RLoKFsF5KTr7y+MMw+BrLv5fkcYSr8YBUTMTlQcnFY=; b=dJorhETDuW5ncED5 vejDmjjOsgrhj5EG3aeiSz6D+M9LOa2ruIzoLlwWv4Dzg3niB2sXWyP//45S/OBN DbTCGOGgk3+RD8VZC0hUevAspwLmtddwiccGcxSImbfWgc+69AstXlnpqnV5z+aj gbGTJoyQZFXaZp+0qdNrc9beWh4RH/dEvZXdUhVHLaEkN7+W5zEInTd23WzQB9O7 jHCFixiegfRpVSarYZLVeiDsPe9fIPMfLLVznhg6OZ9K0mSnjCmvF9QVGRzbB+Tn T+0BxOUQpKvM8+Zsr8brML/noszdB+JdhynoIA9DQFGj6ckdayJjPU4EjuX1qpuz lQ6xfQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129401; x=1793734201; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=2RLoKFsF5KTr7y+MMw+BrLv5fkcYSr8YBUTMTlQcnFY=; b=ilnQVXdeuo4lywhozAkOkB57PU4M7YKifqHrKtE03MHsHHJo8cB1U2f0SSVUP9vCSV l72vI0Z+9mYk1zcaj3WyBPib/4se7O7N0zx7vpoRD+71/qrWZXF3/3xLnC95xmiWLOrd FLMhBe0BQKQk4PaAhZ7ec+VD765wWk2ALwA45eI/fKgsr6H2r8gWCpQ9Q7X5oRJHgDZi 8Aw1Og1gXzubLBAMVR7fL60Sx/CIk/SaArxePtH/MQ/eyz1uCaspKixsWjc/qusiHTAo tvG6ZweOIvIGSYcuHrBQgeYdzRieEz5JX2IUf5ASdU7QONN1YeZZGuWX3QtdcCDVYskJ aa9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129401; x=1793734201; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=2RLoKFsF5KTr7y+MMw+BrLv5fkcYSr8YBUTMTlQcnFY=; b=GvGGISz/4o+J+py5A7PdjllzpeDC3bjMmptoJ8pvcUeOdZe/8IfAghKjEuSmprf/ym K64fmHonddCjPiRb6fleYprAa80X96S5Ax13g9qUwX1BaacqudFtefAq8VkzelK0ILkn n87daA7K6xI+QebCiE01ZJUUiCLLoqUTvgYIjWe2y6gx9Lrh4xMo+lrLy8ezmUooMEIj opQjIorFpumdBIW7FqsRi8PeY1AFuXCGSMjFSI9i2HZ2aorHxAmzHudbBbkENDw3oIZM 9ClnKwxNFLpmw0B7lN/3r5SsEtthu4RJOjayRk9QK4IeefijhFDlILZ1kpqnSjuzY3uO 1Qlg== X-Gm-Message-State: AFq9FYJ1jLTD9Y/4TTMNcd+lQK4Jufy6EXiJrWRm/t4R+eNKPwm/MPLs LDWyG+ntMQ8U1ZPuCi/r1Ac1BUyIGW4w5D8j2f0WRqdncwvxKvlUzbZd7tlzQLWR/JmKAqlgam8 k6sr0cXwYE1H74aFtim9cDOypbuqa6kCN6KIGoknccs6fubNqDPIUS7rng+3jqRv2qg== X-Gm-Gg: AYBFou2Wbf+7lThK1Upj2IbrNhBzPucxnFxn05+aroullujmMCjVfu5sVkzN0fFgqfl t+w1ek52a8p1iOzjQKZcGJk/EoWyVa7dj7EWK1jzA06cRPILJmbKQUFN5/q4fkMlGhT4eqrBoeK tAoaDaKI2b2jhidjZ6yMyrDfdzoUtcUGusLcIYTNorncc9Jn3Oa1Uj+Rm2/ljoi32BNvXVeqpjr FWgNvjmAIXpF0Booi8gbKfa3D/TW3pNM2ZBwmFbjtp47yux01HZHfRZqDrP0PJF6U/acogWJ/BA Xdlw1/VP8wcfpryeanTgX2BlyJCYnplKlVYJunu38XfyO4XewVznoNKa4DKzftVyJmcd9BHKIr4 4+Vj8P0WOMyJ0J0zUyyK81YTvxsy67BGMvKVvjXUTfONJEaLTcjSbQ3p4 X-Received: by 2002:a05:620a:2690:b0:93f:2479:2b4 with SMTP id af79cd13be357-943f4b4189bmr587017685a.10.1793129400582; Tue, 27 Oct 2026 12:30:00 -0700 (PDT) X-Received: by 2002:a05:620a:2690:b0:93f:2479:2b4 with SMTP id af79cd13be357-943f4b4189bmr587012685a.10.1793129399993; Tue, 27 Oct 2026 12:29:59 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 55/59] hw/misc/allwinner-h3-dramc: Avoid shift by negative amount Date: Tue, 27 Oct 2026 20:23:36 +0100 Message-ID: <20261027192341.9197-56-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=GYyCDgXL c=1 sm=1 tr=0 ts=6ae0fbb9 cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=p0WdMEafAAAA:8 a=KKAkSRfTAAAA:8 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=fgD2yzb7X4CZDJEX5icA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=IoWCM6iH3mJn3m4BftBB:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-ORIG-GUID: Gk2qLQ5j39l_DPrbwBhfpopEMaca6yHs X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX1IkbvMKQ5jO0 1EejLlpxaGhLgO0bx+L3+ySaqyZHHHP0ZGU646q90jeZOQF3Fo0Vgy/CDVjQeRJ8O80SQWa1j8v ndZeUrV5O6wM6gC/yyTrix9MilezOeTEBJtxuaAa7GAfUA3NmDWnrBN/CdGGTr9fCb7O9BbNZJf b8z8Gisf/Tm7FzSe1fSQGSBNVx/3HPZX7tzYSrfjSgQQ0kgeFoEg9CabHe5egi5DsVA453oMX6k eaWg+l1ANVaw39FNjD1vL4MUYqRcJsguyU+4rKiKr6C2/qHYEgRRFFwyBl3fXkKxB0Z3pK6lKs4 1HkirNpoECFUDHaR9iEpRnSKi9gt7lPEDEYAeG/o2bmxLGBlTUmq68oStL6dhc/VrDViYkHxX6X z5fZA6RZCiNRMXfjtj1+rp76FXDQ68oHNNHrttu95VEejfWozmaRFigzbEUI4kHhw8jc88LUXUC 4EARkgwrdwZ+LNYSd0w== X-Proofpoint-GUID: Gk2qLQ5j39l_DPrbwBhfpopEMaca6yHs X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX8VmbEHzkAG2/ Z45oxONhELfAbNfaTHOHzoQlHfbJClU1PRbCKT5oZEK6HjnA+CueG3JI0KPILBSfGjj9inZwoJf IqhgiIx9XXqJUN9+gxxjfKJwZ4IJuH4= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 spamscore=0 lowpriorityscore=0 adultscore=0 bulkscore=0 malwarescore=0 impostorscore=0 phishscore=0 clxscore=1015 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129538499154100 From: Peter Maydell In allwinner_h3_dramc_map_rows(), we take a row_bits count from a register, and calculate (1 << (row_bits - 3)). If the guest programs row_bits to less than 3 then this is undefined behaviour. Treat overly small row_bits values as "doesn't match actual RAM size". Fixes: b71d0385e97e ("hw/arm/allwinner-h3: add SDRAM controller device") Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/4210 Signed-off-by: Peter Maydell Reviewed-by: Strahinja Jankovic Message-ID: <20261023153150.1710372-1-peter.maydell@linaro.org> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/misc/allwinner-h3-dramc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/misc/allwinner-h3-dramc.c b/hw/misc/allwinner-h3-dramc.c index 10d929a3039b..2a4b33aa1826 100644 --- a/hw/misc/allwinner-h3-dramc.c +++ b/hw/misc/allwinner-h3-dramc.c @@ -78,7 +78,7 @@ static void allwinner_h3_dramc_map_rows(AwH3DramCtlState = *s, uint8_t row_bits, } } =20 - if (s->ram_size =3D=3D (1 << (row_bits - 3))) { + if (row_bits >=3D 3 && s->ram_size =3D=3D (1 << (row_bits - 3))) { /* When row bits is the expected value, remove the mirror */ memory_region_set_enabled(&s->row_mirror_alias, false); trace_allwinner_h3_dramc_rowmirror_disable(); --=20 2.55.0 From nobody Mon Nov 23 04:26:25 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129533; cv=none; d=zohomail.com; s=zohoarc; b=Po9CSkZwQk+LZpnuuqFU0F3CYw0mHToDfXvj1QD8/itvGVF/nH7JxJxED7IwOfpj0SHAyO5LCIHOLlO607eGN6jhbaRbkmSHxm/6sf4phamUYXogInzjUB9lfDuTVznQZx/JhVVuKCYgcnCzDai1dkNhxLgCNA44iWD97XFb5ME= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129533; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=rb4lC6DFBQgmCNM2zBL6kDy1oDECORzC5qj0IKwInZ4=; b=EZIbN/2ERgovdTI5mvJH/emvbNdjMKqWcVADDgWIxerptpotSARdULwVfD7JamfludW7BPcEzgzzHlOzVfVPm+EgoM6Kxt0QEdTGJv5Kl3a50a25jWMAT4JYXVTZWoUrS43uDePAHf8gY1K456j+64zvsz8N5kkNcwmg7FxS/us= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129533784120.3996140036445; Tue, 27 Oct 2026 12:32:13 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmsa-00019s-69; Tue, 27 Oct 2026 15:30:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLms9-0000iT-EA for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:30:14 -0400 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 1xLms6-0002lN-P2 for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:30:12 -0400 Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHQbl2639079 for ; Tue, 27 Oct 2026 19:30:09 GMT Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjqf5u261-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:30:09 +0000 (GMT) Received: by mail-qv1-f70.google.com with SMTP id 6a1803df08f44-91c70349f65so5394306d6.3 for ; Tue, 27 Oct 2026 12:30:09 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e3ebd4d8dsm25963697f8f.36.2026.10.27.12.30.05 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:30:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= rb4lC6DFBQgmCNM2zBL6kDy1oDECORzC5qj0IKwInZ4=; b=YVipPBBtJD4hPyR3 YzWmx1ZNAajY4JnqQ9H4edrlrTRqrU2oButwCPvTTgYy+ZkZQ5WaNH6X4RFh4b3B DfuRPuR14mZxo50e1bM7tikgD/BQhPifm3uUHjZRU/goJg5hICJOETBq2aQOSsJQ rmCba6uUbFuNz3UR2FIfDbhohqs57kAx9sFKaDTiX2t2wFCk7F7tAoVcVpaGMYD9 7ZCkQEFS+3DfAddIjBTcQTkOG52z3Fc/rQAFtnMbsOx22F1cXKo5OFsa7EAu8tPz arebTIG6B27yfeGwbJEx4yILEamTZjZ0gNkBt5ph18NOKTiTqpoSKVphGlWRWbEZ e0l1Iw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129409; x=1793734209; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=rb4lC6DFBQgmCNM2zBL6kDy1oDECORzC5qj0IKwInZ4=; b=X/cFaEkEJgdfWNS13V0BJ9VLLGz5XVuqQyS4t+ONnJF2vLwa/4PS3L2dQQ92eMYuHh EZyTyZLpBRUPD/LFyEc9ndC7mHvYXmQfeVw4XEYgySFkDaRKEPu581kEj0bZBOs57hZO LLhok8H66CnOISpsMM7Gn+tqh1IcNTt34AWgQcacedzXEzXoXThJOdYgAMODh3/2Styn WJPup53inIbeSyHGrdJMD/5oUmR3DfShE73+SiknzenWtBG6930s//oICQvHO6T7V29Q e9ZMyw0ox9rru6XZre/p7qKvQ0DOPndIY18XO5VQyhgY/zFAfjczY9oapW2h3I6EkQWu ol0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129409; x=1793734209; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=rb4lC6DFBQgmCNM2zBL6kDy1oDECORzC5qj0IKwInZ4=; b=yDtEAV0ETteKJq8BoTyCoCJE7ZEMWRDDFd/Cf9DIgm4TRiKwrsfItd0Htz/4LslU6U 45QWWs14y/9aI/hy6dcw6ex9EEc16ZElK9AO5PzKdNqWj+ysktWwOQNKJEup0Sg5uYvR E8utFaRZuJaBdGdVrs4YMTUh/xSOXWoONg43fXNqazXuSDgCTXjnrjRyndUQUYyhOIOu kApx7TqeHG2J5w5DNsaEWiWehyNAsClNdDMszr2gX3KtOdBYGnbaFUy+CZ4XCbb4TqUF qdszJqlle6C5jSha6/RFDJARWTiz3NGTqhwHi7Fk5qWXmRRr+R0KHeT4ZZWYw3YMu1ob PKbw== X-Gm-Message-State: AFq9FYKN/rxB8wFPxk1szsdRsOwvpwHM0AfcvSiTNVyi1sOQbBxEejGK EIOgdFepSYxOKj0dqfUbOMIxjE9NjE1lNSTMOdKEKedQsfgVQwLFWAgxO45NVGwAUlOwtnweDwL 1u7JyHEUHcNqMsXLzsa0jewrVhivy2adAS8OqKLP5jnPyBP7+b42bblq0tPbQpblg3g== X-Gm-Gg: AYBFou32nvMUFgB03PX7UAxAPjKD73TGOymIXqtgpTlFRW9kOs6p2XqN9NsbLtFsGrQ rVT23hgSJ1wMEx2ZS/js5gEp1THg/+Zf7kg9A+my7/FC1xUjHUGFcmlsl+9i/2KxiF9UIi7ek8Z gBNbBxBvgDcyX0b8uBSkpEqzVX59MQqi19znKo2LfGQYk+dfd0O6h8yiJ3fFcNMUW6Owsme7zIv a7HCWHjM/sg8mDZfsGnIDUygAkVsRNTsDQcAIlnG4Ddv5tDw5G8i6kjM/f7ULS44y+gVWlPq3yH iUtdIH1fVvqyFAUIlHaYypF2qzHe8KYVYe9y+weL/HXLNNoyKHbQ9djIw4vUKkVOM/QuL8pbai8 6jAlI3BnDDpYUniO7Q1MWficmETIn5WC1NTwJiUavdvHBwPEHMntIMMFI X-Received: by 2002:a05:620a:4151:b0:93f:167e:d98d with SMTP id af79cd13be357-940ef955128mr1736537985a.43.1793129408839; Tue, 27 Oct 2026 12:30:08 -0700 (PDT) X-Received: by 2002:a05:620a:4151:b0:93f:167e:d98d with SMTP id af79cd13be357-940ef955128mr1736515485a.43.1793129406766; Tue, 27 Oct 2026 12:30:06 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 56/59] hw/display/xlnx_dp: Make assertions clearer Date: Tue, 27 Oct 2026 20:23:37 +0100 Message-ID: <20261027192341.9197-57-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX/iuMVD9eFiaz nd+Jg1jkY4DY4axJI/SlQckqZXpeCoItFbBq4XHdxj10YdjPOIttdXfHjzmgNPSHIkXVgC4hado pFl+WiitvJH328YM41iBV7z6/EuLw9o= X-Proofpoint-ORIG-GUID: 7g8iexN0pCKUSwIYRtmJs2yrA5l93UjG X-Proofpoint-GUID: 7g8iexN0pCKUSwIYRtmJs2yrA5l93UjG X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX+SLElpdXegBV zZX94yArL6ryaX4gPyei5CrEr7VlbVw/Oi1Ew4EALtTeZ7FyEB5CZ/RNwPfDJxTagWbPUR4HMoI pkxoDk7k1/mhkHREEoXZUcvb17G/P8WawdU16ZgD4Ix/f4rZ8uyECWn5v0MF95VPimG6ebPRQKN OsXcutNqGcLj5pb/mrP7x4sbnHcSmpqIqbLrjz5+cx9G/1IJVAy5s2KRb5J3GpmPx/Hronje1lo 1FGBadKsb8+4BO2Lcgx0Q9w7D1f7NxScXMgQIXaBmktMQymhpmOxrNf0ToEzOMh2IEIYTEdgc89 b5+R1W+69M3QoYxB2ze/2c7e9KhHulCR4tzg7GufZj3HW8EMOraJou3lvC/Oeso9g1XssRLWjKJ RDwKtFmLBGHLagIC6W4rb6sS5H2xLe1sqwnjzD3hnb1KyAcRbVTguuve6JRHEipUR3AP8ZMilc/ vf5nLbbqvL95v3uSymg== X-Authority-Analysis: v=2.4 cv=UOFIjyfy c=1 sm=1 tr=0 ts=6ae0fbc1 cx=c_pps a=oc9J++0uMp73DTRD5QyR2A==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=p0WdMEafAAAA:8 a=KKAkSRfTAAAA:8 a=JF9118EUAAAA:8 a=EUspDBNiAAAA:8 a=PEBbLlxAREG-V7KBnm0A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=iYH6xdkBrDN1Jqds4HTS:22 a=cvBusfyB2V15izCimMoJ:22 a=xVlTc564ipvMDusKsbsT:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 adultscore=0 clxscore=1015 impostorscore=0 spamscore=0 phishscore=0 malwarescore=0 bulkscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129534460154100 From: Peter Maydell The xlnx_dp code has some assertions in its read and write functions guarding the fallback "read from core_registers[]" codepath. The array can't be overrun because of the defined size of the memory region, but the read assert is confusingly written and the write assert seems to be completely garbled. Replace both with a simple check against the size the array, which makes it clear that we're asserting that we won't overflow it. Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/4586 Signed-off-by: Peter Maydell Reviewed-by: Alistair Francis Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-ID: <20261026152409.2869104-1-peter.maydell@linaro.org> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/display/xlnx_dp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/display/xlnx_dp.c b/hw/display/xlnx_dp.c index 98126ef320d4..d6b4e7bba612 100644 --- a/hw/display/xlnx_dp.c +++ b/hw/display/xlnx_dp.c @@ -795,10 +795,10 @@ static uint64_t xlnx_dp_read(void *opaque, hwaddr off= set, unsigned size) ret =3D 0; break; default: - assert(offset <=3D (0x3AC >> 2)); if (offset =3D=3D (0x3A8 >> 2) || offset =3D=3D (0x3AC >> 2)) { ret =3D s->core_registers[DP_INT_MASK]; } else { + assert(offset < ARRAY_SIZE(s->core_registers)); ret =3D s->core_registers[offset]; } break; @@ -969,7 +969,7 @@ static void xlnx_dp_write(void *opaque, hwaddr offset, = uint64_t value, xlnx_dp_update_irq(s); break; default: - assert(offset <=3D (0x504C >> 2)); + assert(offset < ARRAY_SIZE(s->core_registers)); s->core_registers[offset] =3D value; break; } --=20 2.55.0 From nobody Mon Nov 23 04:26:25 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129529; cv=none; d=zohomail.com; s=zohoarc; b=bufePtl/BvyPsAqQa1u5ciM+dI5xh24eBSYpTxEBYlY+TSfvvDfOXr+4cAYLKbe1EEhzdmajQxAmnlJwwWKsJNrAfmaH/N9S46BWUFImaHJ/yzuUxpPDuZyN+juuX2ooZP4x1fqINW2u1893VZybOLYberyvh6NcLMPtpC3tb3Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129529; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=pYFz2ET16ahR18lCzCSXFnEqciJrGqt1hPPiM19mu/o=; b=LZ6R8ct9M8eczFBwuTwFmvtJVyvH9t5S7HDlEjK4hVIN+JVcQBOQeBCCMj0l2Z+yscwTuVLIfdIeQ5v51PiK1PSCwxljEPHlTG3RMOvCk9cEnwaVmaq0EX/6+ePIhGjhDjW7ahsxf557Nompheafx9x+niyDoNflAVblRdm7/ME= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129529745727.5795839608774; Tue, 27 Oct 2026 12:32:09 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmte-0001d5-Mw; Tue, 27 Oct 2026 15:31:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmsF-000199-Fr for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:30:24 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmsD-0002mB-5J for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:30:19 -0400 Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHCp82087863 for ; Tue, 27 Oct 2026 19:30:15 GMT Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjp2tbbe6-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:30:15 +0000 (GMT) Received: by mail-qv1-f72.google.com with SMTP id 6a1803df08f44-91c75523074so5466786d6.0 for ; Tue, 27 Oct 2026 12:30:15 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a94e6b8656sm2770205e9.10.2026.10.27.12.30.12 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:30:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= pYFz2ET16ahR18lCzCSXFnEqciJrGqt1hPPiM19mu/o=; b=h6xDujrPCS5Z4fvC 3WM/2b2D6meV06YeYHMO2C9UvxRAObbAC7yPoJzT1TZnR+4NhZLvO6EEWLqSTiaD BEEx2Qhu4j462IGoExSDo+dpAIOvm4D8NAcwrCpvrlTpIQ3MzbwpFZ5gvLL7oj6x Hx1yoe2y7vY4M1OKgIVzy/RkZOCVw7Z6ELRQo+yKRkiugMY1ucmtN1nOt+o9EbcS +alekfwF9mDP4DvXn44+RtXoWFi116SlatMqeNLdjHmPqFs5w2e5bb8GAvnQnnfN t2SHp2KQ6tkMka4t/W9BIMAPbzVdNLSk1NhYm5xgXatFWP/SJPXpf8tUfNr6M+OX W6pmwg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129414; x=1793734214; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=pYFz2ET16ahR18lCzCSXFnEqciJrGqt1hPPiM19mu/o=; b=N4tp7f17zDOvYq7w0CpE6QgU2zKaAzJySQNU3u8a0IUdo0JyDuL3hEfP1YrqqCW1He wMxtnXIb3RZESwLnGGMAzjKV5wDXckFQ6oJTTLIbYD5IArIKQRzGkuxm0MZXk4TcANu0 QF/Nr1lcYNvGPBdqDHOHP+CjbdHpgk6U52Fl73eWDONA3Tk6PlSdg+YkkvHFGoxb+acR MgYKzczZUsraZtiqh1ZQBz1yjYcZN3O2j4zG4ZzmDgcrVpaaQWmRni4pZcoQQAM3dYZA 4sf9KJ7oT/mjy9BbwCPETdYd0gx5oKbvhbeePxBUrR1MYG5fhAjHOmm5v4zbHRW6VOIB hXVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129414; x=1793734214; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=pYFz2ET16ahR18lCzCSXFnEqciJrGqt1hPPiM19mu/o=; b=OqPRknyPCHDtd+aTpD0DDOAAUTOcH23SgZ//Yxo+Eg+nkNQk5nTvvKl1F5CRHmoqA4 am8R5MdSgmCK/mTw3rSGnju8x9xEnyTSdSW7vpLozXhk1uf5Qlpg9YBmSnQCo0cLt8lx qrMtjRQiKWYkdkah3xDS1KQBHhPMYCyPdpBAJbE9Sq5lsFa88sk1d6MIuG+QUX3d0X34 09plKvGl7kSoEPiyvHmh07gZ4xr9tnTHs7B4H8H/mVZbfVHnt0pNMLiOFkaeH/Ps829A J7+goK5G3dMd6fD/h0KpunOfTRcWl2YRLqH15bsDPSIlOCvYch1n3PaoEHU4g0CBN8Tu Mc+Q== X-Gm-Message-State: AFq9FYLv4vrBSzl28SznHg9Lgdp0MHlR1bcpbOK+v+gww1WB4sNSOxqN r6LxYZolhMV+cSnr2m2pOFK9+mXwQhWzkuCNrr4S6lpin0O1CUs6bfp92PSWJSABPeErbx8dDGk cX5mlp2YZXQbQCfydC21ZBj5k8eFoD+TkdeDGtvYQ58hj9ymOxS95RY/DLsgigu80nw== X-Gm-Gg: AYBFou3f1knsRhaIu4Hi7CkqCKwy6d4YZjrd+a4ff9m80lQYLYez2ngmnTXRK//lPV6 Ppmb3J4Ka6/qmdkNGgeUo5XkL6EkOoPo7RZQGBkfZfTy5uvltXMFzQ9xKO+nxgFD+ayiUnfWZna 3ZoysheFh3YSPGtvEPRqaf2ROzOL4qyMFr5334RWK9+B96ikMu8mhEhxYLnf2iaWzQ6qPs1pTiQ s6jguXjxRM5Az0vZ+EUGDMQb8MrFP6ncTdxChh8iGZZB7S2YHVjU9MWDQUnNRM62eVGJ3u/M+oj c58KgleoNicTs8OVQrbWSafVzU2cm9uTg3gz0Sj//T0ji03lw5/m6I4CerFWoYMGSmsum1cQBFk ceBfR75RVGXsI25BWRyjYRvR5G2QYsF7Hq2mFTDiGKO5y4KMR/8+p9WMR3RDwPOy5HqIAED4MDT QM7ShwHymX3Ta4tN8Rm0FGqQ8tT0r+qA== X-Received: by 2002:a05:620a:4542:b0:93f:19c2:da4 with SMTP id af79cd13be357-940ef94b224mr1501601885a.70.1793129414337; Tue, 27 Oct 2026 12:30:14 -0700 (PDT) X-Received: by 2002:a05:620a:4542:b0:93f:19c2:da4 with SMTP id af79cd13be357-940ef94b224mr1501596485a.70.1793129413724; Tue, 27 Oct 2026 12:30:13 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 57/59] qemu/arch-defs: extract QEMU_ARCH_BIT for QEMU_ARCH_* enums Date: Tue, 27 Oct 2026 20:23:38 +0100 Message-ID: <20261027192341.9197-58-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=AJjzCM5L c=1 sm=1 tr=0 ts=6ae0fbc7 cx=c_pps a=7E5Bxpl4vBhpaufnMqZlrw==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=kAGlr9DBaqhD0l0nM9oA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=pJ04lnu7RYOZP9TFuWaZ:22 X-Proofpoint-GUID: naLFjf3Sjhjj0rmlkkPPYiV8fBkiTccv X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX3BCdU4lkGn0F FRJOXQphPiGv/NgHuor6W0wTy3vatYT0xrZOE8NmVWHTHLS/3a3NtDcKWLBg+xL6jlsE7cb82tg m+6sJPcKIaWMo4ad1tatuLPjaD8hZ88= X-Proofpoint-ORIG-GUID: naLFjf3Sjhjj0rmlkkPPYiV8fBkiTccv X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX18QqFyESz9EJ b2nhXMczkAy085IB0ZsG170NvxNP0ddamCHCJ84pBqJ1rrHk5zE6JjPJXgiak5Cxdq4sa+9Zv1U nsx+xwJWCZYU2cVjgADbHau1v2Z3dx2EdcJ8mnCYhnGdHe10bpGiRiH2cy4COq09mTi+VqFmwZS yzsZCR0CiwA4gSWj/bVjfZa3Lp0T0TBOC9cK0KNyXRQTjATdthNBDYO7rzqLUfnZDjhfbkmmMSf 3g69eytYS8EUqZFDiYPcR2CUFN4yuE7xFJ3D9FD1VRKYPNLOrv1+9zDKV4ZOnDarixlFYnc9/oJ f+/Bsb39UR00e79jdWTXW7CB6p16nmdZFnnS4Nf/Ib6o2gynL9RhHyfwhvrIwP6VspJkhbWxpei 3sADN1KzJ+PmZeItiX7Ipuv8Sh25ViPJYU9MYG72cKQr7RjlIBLMVcpLnWenS8N9Ch7Jjvk1ZVA PtT63TwVV+zf7zUHBXA== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 bulkscore=0 malwarescore=0 spamscore=0 clxscore=1015 priorityscore=1501 adultscore=0 lowpriorityscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, UPPERCASE_50_75=0.008 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129532470154100 From: Yonggang Luo Signed-off-by: Yonggang Luo Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier Message-ID: <20261027061504.2213-2-luoyonggang@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- include/qemu/base-arch-defs.h | 60 ++++++++++++++++++----------------- 1 file changed, 31 insertions(+), 29 deletions(-) diff --git a/include/qemu/base-arch-defs.h b/include/qemu/base-arch-defs.h index f33465738c9c..806ad8094a41 100644 --- a/include/qemu/base-arch-defs.h +++ b/include/qemu/base-arch-defs.h @@ -9,36 +9,38 @@ =20 #include "qapi/qapi-types-machine.h" =20 +#define QEMU_ARCH_BIT(target) (1UL << (target)) + enum { - QEMU_ARCH_ALPHA =3D (1UL << SYS_EMU_TARGET_ALPHA), - QEMU_ARCH_ARM =3D (1UL << SYS_EMU_TARGET_ARM) | - (1UL << SYS_EMU_TARGET_AARCH64), - QEMU_ARCH_I386 =3D (1UL << SYS_EMU_TARGET_I386) | - (1UL << SYS_EMU_TARGET_X86_64), - QEMU_ARCH_M68K =3D (1UL << SYS_EMU_TARGET_M68K), - QEMU_ARCH_MICROBLAZE =3D (1UL << SYS_EMU_TARGET_MICROBLAZE), - QEMU_ARCH_MIPS =3D (1UL << SYS_EMU_TARGET_MIPS) | - (1UL << SYS_EMU_TARGET_MIPSEL) | - (1UL << SYS_EMU_TARGET_MIPS64) | - (1UL << SYS_EMU_TARGET_MIPS64EL), - QEMU_ARCH_PPC =3D (1UL << SYS_EMU_TARGET_PPC) | - (1UL << SYS_EMU_TARGET_PPC64), - QEMU_ARCH_S390X =3D (1UL << SYS_EMU_TARGET_S390X), - QEMU_ARCH_SH4 =3D (1UL << SYS_EMU_TARGET_SH4) | - (1UL << SYS_EMU_TARGET_SH4EB), - QEMU_ARCH_SPARC =3D (1UL << SYS_EMU_TARGET_SPARC) | - (1UL << SYS_EMU_TARGET_SPARC64), - QEMU_ARCH_XTENSA =3D (1UL << SYS_EMU_TARGET_XTENSA) | - (1UL << SYS_EMU_TARGET_XTENSAEB), - QEMU_ARCH_OR1K =3D (1UL << SYS_EMU_TARGET_OR1K), - QEMU_ARCH_TRICORE =3D (1UL << SYS_EMU_TARGET_TRICORE), - QEMU_ARCH_HPPA =3D (1UL << SYS_EMU_TARGET_HPPA), - QEMU_ARCH_RISCV =3D (1UL << SYS_EMU_TARGET_RISCV32) | - (1UL << SYS_EMU_TARGET_RISCV64), - QEMU_ARCH_RX =3D (1UL << SYS_EMU_TARGET_RX), - QEMU_ARCH_AVR =3D (1UL << SYS_EMU_TARGET_AVR), - QEMU_ARCH_HEXAGON =3D (1UL << SYS_EMU_TARGET_HEXAGON), - QEMU_ARCH_LOONGARCH =3D (1UL << SYS_EMU_TARGET_LOONGARCH64), + QEMU_ARCH_ALPHA =3D QEMU_ARCH_BIT(SYS_EMU_TARGET_ALPHA), + QEMU_ARCH_ARM =3D QEMU_ARCH_BIT(SYS_EMU_TARGET_ARM) | + QEMU_ARCH_BIT(SYS_EMU_TARGET_AARCH64), + QEMU_ARCH_I386 =3D QEMU_ARCH_BIT(SYS_EMU_TARGET_I386) | + QEMU_ARCH_BIT(SYS_EMU_TARGET_X86_64), + QEMU_ARCH_M68K =3D QEMU_ARCH_BIT(SYS_EMU_TARGET_M68K), + QEMU_ARCH_MICROBLAZE =3D QEMU_ARCH_BIT(SYS_EMU_TARGET_MICROBLAZE), + QEMU_ARCH_MIPS =3D QEMU_ARCH_BIT(SYS_EMU_TARGET_MIPS) | + QEMU_ARCH_BIT(SYS_EMU_TARGET_MIPSEL) | + QEMU_ARCH_BIT(SYS_EMU_TARGET_MIPS64) | + QEMU_ARCH_BIT(SYS_EMU_TARGET_MIPS64EL), + QEMU_ARCH_PPC =3D QEMU_ARCH_BIT(SYS_EMU_TARGET_PPC) | + QEMU_ARCH_BIT(SYS_EMU_TARGET_PPC64), + QEMU_ARCH_S390X =3D QEMU_ARCH_BIT(SYS_EMU_TARGET_S390X), + QEMU_ARCH_SH4 =3D QEMU_ARCH_BIT(SYS_EMU_TARGET_SH4) | + QEMU_ARCH_BIT(SYS_EMU_TARGET_SH4EB), + QEMU_ARCH_SPARC =3D QEMU_ARCH_BIT(SYS_EMU_TARGET_SPARC) | + QEMU_ARCH_BIT(SYS_EMU_TARGET_SPARC64), + QEMU_ARCH_XTENSA =3D QEMU_ARCH_BIT(SYS_EMU_TARGET_XTENSA) | + QEMU_ARCH_BIT(SYS_EMU_TARGET_XTENSAEB), + QEMU_ARCH_OR1K =3D QEMU_ARCH_BIT(SYS_EMU_TARGET_OR1K), + QEMU_ARCH_TRICORE =3D QEMU_ARCH_BIT(SYS_EMU_TARGET_TRICORE), + QEMU_ARCH_HPPA =3D QEMU_ARCH_BIT(SYS_EMU_TARGET_HPPA), + QEMU_ARCH_RISCV =3D QEMU_ARCH_BIT(SYS_EMU_TARGET_RISCV32) | + QEMU_ARCH_BIT(SYS_EMU_TARGET_RISCV64), + QEMU_ARCH_RX =3D QEMU_ARCH_BIT(SYS_EMU_TARGET_RX), + QEMU_ARCH_AVR =3D QEMU_ARCH_BIT(SYS_EMU_TARGET_AVR), + QEMU_ARCH_HEXAGON =3D QEMU_ARCH_BIT(SYS_EMU_TARGET_HEXAGON), + QEMU_ARCH_LOONGARCH =3D QEMU_ARCH_BIT(SYS_EMU_TARGET_LOONGARCH64), QEMU_ARCH_ALL =3D UINT32_MAX, }; =20 --=20 2.55.0 From nobody Mon Nov 23 04:26:25 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129538; cv=none; d=zohomail.com; s=zohoarc; b=fPR9IXJ5PALBtRpq3dvaZvzGqty4q9SV5fI+GEAOHcaWaLPycsQiRprEyWvnNq+b3Pm7E57Z5hpAzZi3c9UhiEI3fWcN/x/JpBxnlKhX4GPsRlAihaV5EEMIJpGjA9QuOLwS1bFPXHxv/Aw7Vrdo5gtO3JDDRKWY3txzjQJJons= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129538; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=QHqqBbaliFnB99gQymbuZMNdc1lJfMvoM2sK3tOO2gw=; b=LCAiqOa96W1XAtUNHZu3igTQVwIhFQJk17YuFZhDcUwN9n272P7EYn3lIKvb1ON1P/p7WFWR8L+Vpu4fPz5cAhoE6nQaiZGGo1hRoPZU68p/7mzzgE4s3euaBogP5720l1sQM8Dzz+hYskHkWOsKZjZ28cWuHvm5w2YdhT/Mm4g= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 17931295381811000.9574818634586; Tue, 27 Oct 2026 12:32:18 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmu2-0002B7-IO; Tue, 27 Oct 2026 15:32:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmsN-0001EX-W2 for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:30:35 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmsL-0002n1-3Q for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:30:26 -0400 Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHMgR2088124 for ; Tue, 27 Oct 2026 19:30:23 GMT Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjp2tbbek-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:30:23 +0000 (GMT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-93f62934ef6so25699685a.3 for ; Tue, 27 Oct 2026 12:30:23 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a92e103d91sm4852085e9.0.2026.10.27.12.30.19 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:30:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= QHqqBbaliFnB99gQymbuZMNdc1lJfMvoM2sK3tOO2gw=; b=csy0U42vH7l4z0Ty j1F9Zo45Z3kS2E/fih366rbNh+I9uKogJ2oY6Ao30EWez+H7UXBOA76MivDCoroN QFyjBGU64o52rTTB1/mPxuhnIV6fvOO5jlBONyqMoqJGu8ysjSKnhRCP/zkA5Ivu f0VIbUm3t+5/fbVCHJzKYwx/BOE/ktpftqGk0mK5jQLr/h2AGk+cGnGex8koZCXE gOXx/+f8rpuuW0i7NTd5iWupE2wiu/mDSBvoT1fpfjvmK7zK0HsAmZHnVsgA63Zp Te7jrAjhp3v0ksmN9dVGGVPU21po8gQaVEi1OpZQep1nhhIXrRNwm/PJko1KIB6K R7X7Mw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129422; x=1793734222; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=QHqqBbaliFnB99gQymbuZMNdc1lJfMvoM2sK3tOO2gw=; b=No1CLEQgPL5es6YMSABjQncV5D4tQU5cVZrocGaJC6bPmI1lpK7iF4wTStCDFeVNud CM72ue8jcdzGHsQO1aplJyfaxBrpBUyJcjK1QWLfC3xzeCxd8CLKYOKekrxggtaAp5Yt wM2fCRmYwE9Fr5oJDkI23AAJxdnU7vjy/yQAk70kjen4h4Xs9X6uGXjj2y9+DdO8DTFT u6p/JjlUonLSITqUz+w7jsWAP/r0BAQYqcPENrec8soOk8iYsGdeMJqmkQTQHovomp0F 1hNoyXxPnfYvBP+vtYVvWRoBhVeA++DsK/OxD2zaGBQF/2O/C3JNCphyKoyMV4pL8Eb5 IOgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129422; x=1793734222; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=QHqqBbaliFnB99gQymbuZMNdc1lJfMvoM2sK3tOO2gw=; b=znRMu+PrdYiul81GKnCjU/YnGmraqZ68gQO+XWZEuR6PSlwsuI+YzzVgIZJpPfuRzE fFReLHZvofCW8ap/d2NA/N1xZUrkhyR2kjKaccMgV5fwWihmPSX2xnfBBWBBvBWEn7eO d6OKUkxoY3Sp8QZ8PeeZUAibDose1G2mWwE2z3Ng01exVRI9Fp+6MLfR/Lw+H8Vdah8h FTgPSmNMB/iidzvfWPT7wWmgeF3qUIRq+76d2A2XZ9vgMX2a42VsPUN7WINxE42fgoW2 4I35KUaU111rff522I+kEQbnIatHDtZKbF/cbNsP4Fw2cJUT057snQimtPW4JsbmFylV v/XQ== X-Gm-Message-State: AFq9FYLOUw8xKXc/35bZjPMen+F3PVaSsPRvP0SRYrJMo1LTVRi7h9jm Q/41C9LJCzFaO2zvoB84elo7HVt+fb+0dF0gfe8OsZyxhCWVp1k8L7BJOSgz9xIDgHOB7DHOAY0 mv0i5qBes8xMMWUXeC8tOX74S5pMaFflyaP1C82abLS95BMMDD37cLLlUe2CygjfbtQ== X-Gm-Gg: AYBFou1zX/fY3FJnLQanzJO4AwxqsZu1N4z5SaA2rSIMkbSB3x3zGbq39Xi1RWYyiGe gnwqnvviYTCd+Pg3321BY7usUyQ1uRlkEzjeIilytfHf48Vx+mofzumVAh4hd7h9/sAhAp/32oT SdC8majBF7LDUocJoCz0ZLqh/mB6YE6ir4D2Rt6osZCwVQkU1yeGn/41s17L0dNeBsKzKRASITO efeoAAT0/eNFIbysG+mUTr5frBwOStX/aA0Bh/MTrVspxPOxmtgWl9dl/T923CA1ZmbG9Y4RkHP yW9rylzr3Fiy+EbwCeJ/ASipyrfah34JK94e1xS6gtqyrpn7lWBpf7ORE+ES6BgcEjd6uVw6Pwy sazoaDUp0gIcbSsvhgII4YuMyB6oYFfvaLf4RxWmDeKXwcd8swMELPKRy X-Received: by 2002:a05:620a:31a1:b0:93b:db80:e0cf with SMTP id af79cd13be357-940ef9141a7mr1616439185a.60.1793129421757; Tue, 27 Oct 2026 12:30:21 -0700 (PDT) X-Received: by 2002:a05:620a:31a1:b0:93b:db80:e0cf with SMTP id af79cd13be357-940ef9141a7mr1616434285a.60.1793129421275; Tue, 27 Oct 2026 12:30:21 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 58/59] qemu/arch-defs: Use SYS_EMU_TARGET__MAX to define QEMU_ARCH_ALL Date: Tue, 27 Oct 2026 20:23:39 +0100 Message-ID: <20261027192341.9197-59-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=AJjzCM5L c=1 sm=1 tr=0 ts=6ae0fbcf cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=Kwhbg8pJGtqcix1HUGwA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=IoWCM6iH3mJn3m4BftBB:22 X-Proofpoint-GUID: iImLIB4GGtFvUAxN6c9bgIadicq_5T42 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX/ML/9hNaZUrM A02HYZkxSz87vIHq6y7GqbgsbFVF3EMHosyjxALcfTnoXoLyt67mlVnwpdYqah315o1L795vsfj egojxEGiEkAiYTLti8YgW/g1m8Z5aXA= X-Proofpoint-ORIG-GUID: iImLIB4GGtFvUAxN6c9bgIadicq_5T42 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX8hCfcpLtfldz 8Qecg+YFgMXMN0rol5gPOdxoawS733YshLHI9Y//cK1nB4S1vacistlNevXGscpV1s2CEQzbnAi qRXGHdynvVbMRsDkEZvPys3mzby8aCfU3d2GCrbqMyiJzCyE41+Q6uFw7NmzfaMC9Ku3DtK6xU+ RS90FJQgk4/45seWbkBDtf645CihXHV/xkmdFKdsNK74K7ZVMrr60lGgEdIWCWStamzth1vHeEQ IWIZMvMHQ29H0K/pBI5/z57LI/Zbiwdzi/OzBul2xNB80apgZLkR6B7InNczw8LyC5yhoXjYpys HbRoPiHoTb6PanIWQhh9q/eGF0KyfK5EzG8DaGx5h4IySdAKFgXffx08Trs8iiNFdhDVG5SNLhY P2g/K8OCDZQalN7t+bI5PTjHF8ONviD0YS3SaQSS3rtz3wKN6sjDoMv48hXgXxE1Vb9vWJMt0gO qSsWfqyODOGLSW72fCg== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 bulkscore=0 malwarescore=0 spamscore=0 clxscore=1015 priorityscore=1501 adultscore=0 lowpriorityscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129539935158500 From: Yonggang Luo This is more precise, so we can iterate all target_arch with QEMU_ARCH_ALL Signed-off-by: Yonggang Luo Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier Message-ID: <20261027061504.2213-3-luoyonggang@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- include/qemu/base-arch-defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/qemu/base-arch-defs.h b/include/qemu/base-arch-defs.h index 806ad8094a41..a6478c2d3fff 100644 --- a/include/qemu/base-arch-defs.h +++ b/include/qemu/base-arch-defs.h @@ -41,7 +41,7 @@ enum { QEMU_ARCH_AVR =3D QEMU_ARCH_BIT(SYS_EMU_TARGET_AVR), QEMU_ARCH_HEXAGON =3D QEMU_ARCH_BIT(SYS_EMU_TARGET_HEXAGON), QEMU_ARCH_LOONGARCH =3D QEMU_ARCH_BIT(SYS_EMU_TARGET_LOONGARCH64), - QEMU_ARCH_ALL =3D UINT32_MAX, + QEMU_ARCH_ALL =3D QEMU_ARCH_BIT(SYS_EMU_TARGET__MAX) - 1, }; =20 QEMU_BUILD_BUG_ON(SYS_EMU_TARGET__MAX > 32); --=20 2.55.0 From nobody Mon Nov 23 04:26:25 2026 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=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793129553; cv=none; d=zohomail.com; s=zohoarc; b=hGRfB+HYuaBDHwbriizgsLOZhlsmvJncXNTNFp64MupcSyN8ZGnTbeDPIgReJRwbtVLXXODfjCWvwSObbqWG9aharA1WsBxEROkAPlKJkHD4uxU1iXSxYrUsxu1LA7q8Kfh2Xe5DGtWs1y7t3+9ZNjZvGAcl12U9UPSUaC8PXPE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793129553; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To: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:Cc; bh=iuy5kmfyJfbVBoIPLk2UIrcSnRiKJcgu8ySMSx0JkWs=; b=SLd8X4NosAjZ1IaZhJk4lpCQgcQJ7nBrBGwhEDrRpC+w4h2EmolLxq9zUKkRarDJqLWhllKr8YPQTPeDUcZ5KpQt1ZdnFTcqh63GqUc1tIKVoIA0RE/N8rpxlE0XzoMgGeLi1i59Ih5qQIZsvemFadXo0I9zhneDQbjgy2CppPY= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793129553241892.752799047431; Tue, 27 Oct 2026 12:32:33 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLmtr-0001qI-Vt; Tue, 27 Oct 2026 15:32:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmsU-0001I1-EA for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:30:46 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLmsR-0002ne-PU for qemu-devel@nongnu.org; Tue, 27 Oct 2026 15:30:33 -0400 Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69RIHWsj2452042 for ; Tue, 27 Oct 2026 19:30:30 GMT Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hjy6g0v86-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Oct 2026 19:30:30 +0000 (GMT) Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-93f2005ce21so20983385a.3 for ; Tue, 27 Oct 2026 12:30:30 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e3ecdd5b3sm24304761f8f.53.2026.10.27.12.30.27 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Oct 2026 12:30:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= iuy5kmfyJfbVBoIPLk2UIrcSnRiKJcgu8ySMSx0JkWs=; b=aXciUVncvEygCdXS FtjzFNCxFMVm8w+dH47AmA6xuDTA1bSQQpTKBIhaQiwT/yz4cSV4Iseai5nU6rq3 rBZ26VPCJlPLYecfLh5qj06jZm75PRH5NhNqG93tCbt+TrEBmAe3VIG+kC6gsKaB Did91rp8Xwui6GXze7YgGH4EBR+D3+J+YdzzOTROtTohVExHHKr/IJtad6kMm+dy Ov0Q5dza5xIR1jj52gmMmC9OzpzwWV3lVPNUULf3a8oZWSsi3KuNly3YDJHQ9DWG NEykRwlPDR75L1ksZRPdAzj8ESiv2WXaORpKG+VyaAlKJUc14j7rGGMx34w4NAY4 FWX3tA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793129429; x=1793734229; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=iuy5kmfyJfbVBoIPLk2UIrcSnRiKJcgu8ySMSx0JkWs=; b=Rev8sqFEQabv1TlK6B9GDM+dd+La7JB3VM498qF6q6L2PXaLkL2X+rrE9rOg0peWr6 roacsmlRpR66ABqvxO6JVGieRhFs1G/+owwsoUMvWPJLjeUEdU0wcsooKCGOI1554hzI TVtgOddkBIaYcsoYMkhYkBilSIBkwX8XZPtbQANuBYK9jts0yeiXW+HB/NjTOzIWt9Ft TyT2xv+QSLFQye4VTkwyGr9RDFm3p+jXBWySM0N8RXq4HqNSTOOx5FV/C67Xa5LaCU9x pK4MOHOEckc2aS372kE5ehrqqd/xM8dGnZRw7i1XZO8wy0Ogrmr9yYEKiFqfyHjFaRDk 5STA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793129429; x=1793734229; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=iuy5kmfyJfbVBoIPLk2UIrcSnRiKJcgu8ySMSx0JkWs=; b=cBVgl9SpiBDTw+LmvOcpyTGGkmFetjRwIyciwUPLB8Ggf9sbrlkQzxUOAPjRckjz8M pVphO7hxoH3YIrbNNtmEPOxMoM/MnoFDsh85jAPpBxj/5i3p15FCXpJA24v51jki9MOl JP+BZhlaY0al+M7D0T90OmRHM57n5Ub2VDb2OSMdXmRw1HGN29x7YGAIPaZ4PQFHonap ayee25RCMVQ2G5jTEsu2O2beMuw+lVQR99gh6/O+WOD95QFJxGKJGWltbqhNG2DpYibr h98XLyhr6TAJP9wZUbC9KoBXtRYmET+2620oNuRjK1e2ZqgDR+2+8Fyg4TOq6MWlLsZS o6dA== X-Gm-Message-State: AFq9FYKvTp4PQPgdJGex/uqrVHs6RzyS4d1QBNuYlCAZuuFhdB2zlQd8 nwVrJE22Kvzpe3NCFSMjKSHiCTAipi4ocdgRiQCkOWK1ga5N+CPbPQxDEg5WCtpPGiiZdD30FOe evo5COn8oUuU9g0xQurialyceWr1lrkrumrUZgjx/ay8WTLJZuCa+/ICIvSLjxuSOYw== X-Gm-Gg: AYBFou0wC9lLrykcH/HgYhztLRTa34iIkn0qpCJDHdxjkKJn19bfzCD/zHQloTr/4a/ xVh/TIyi+CP9a9ZJZGeE3WLtWweCk47fb4496s4I0hpnxMd1W73jM9B8hEBwK7mxP2Hy0t8lyFJ RJBseLeF2a/DkMHElpNqQAzN2ClXdQLOA7+KaRbTJk9is+JOSYrQJ0Pj+ZPjXOTI+o5D498PYTx 2qP2Q8xAYtA/x1X88oi6FmnJ9W84ciVTPJ9yXZCIQ/Nqasj9UYqVP125qRrv4iYO/M7wz8yrVxO QPD9nR59wLsftwlwwo3e44tWBaG9QFOXUVQTvgUsSJtonyJVRXQhfL0MEVHNTxzutjNRrqNdBkO A9afImAmsKQ+6f7Ge3F2DMdo8CcntVesNa4YCyAdCwGAtWSa6+BLMvTVZ X-Received: by 2002:a05:620a:2b91:b0:93e:fc4e:c48d with SMTP id af79cd13be357-940ef99945emr1540576285a.61.1793129429194; Tue, 27 Oct 2026 12:30:29 -0700 (PDT) X-Received: by 2002:a05:620a:2b91:b0:93e:fc4e:c48d with SMTP id af79cd13be357-940ef99945emr1540565385a.61.1793129428055; Tue, 27 Oct 2026 12:30:28 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 59/59] qemu/arch-defs: increase width of QEMU_ARCH_* masks enums to be 64 bits Date: Tue, 27 Oct 2026 20:23:40 +0100 Message-ID: <20261027192341.9197-60-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027192341.9197-1-philmd@oss.qualcomm.com> References: <20261027192341.9197-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX9HDt3g4yfHWu Rsq6qtgNB4wxwvcECeF7A30WVQTj0O4DvxqF9DY0hqc/Rb6jvPLhZ5q09WpziRSkajG8I5Ilc1b EpYA7k9+z4+Lf+cnvUa4aTgDSSa3Kkc0zSq9D58HfoMK8pynCb6F9Q6x+lGBdXbI8xGAy5vO5Jp gRNxxm8D7NWB4qUhYGzkGruvrnWSWMRT0QCJTWZNc2Ct8Z/KTIrq06nESnScp0wgYDQy5aUY7YY i7R9m2rcjks4cTLHroeuLDzzKqRCVSV+Ibj4hrJRjFN8HHN6l2afcqnnqwkdN+cURIOI6K/oDy0 idHFE95INZgsSBj91QRq2ALlMuMK1pbwYS6sfOnFae5IVC3rw53DFJFPTF0Qt1npnVEf14chCRG sxpiMrcaL1whymKoMIoU4Bd84Ldk7/bsY+QRhn1CE83j69S3fDcx8HN4m5EXRvMB/1GpDToOIFi lvR45zw8HO03GLyjLFQ== X-Proofpoint-GUID: xWVLvpvQccjpaZVRFvyORsyaiiiCYtyA X-Proofpoint-ORIG-GUID: xWVLvpvQccjpaZVRFvyORsyaiiiCYtyA X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI3MDA3OCBTYWx0ZWRfX5uXs+H07+Em+ 250ydRYwvLZRmRMOXp2V5GkNTIBEHBl70h8M3U+hBHTauxV847OuGfNrsihzrYdSaIYioG7Owhv XgYY22Moo0B94VhZ9wuM/rUteSY+S3s= X-Authority-Analysis: v=2.4 cv=dKgzC+Zb c=1 sm=1 tr=0 ts=6ae0fbd6 cx=c_pps a=hnmNkyzTK/kJ09Xio7VxxA==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=mgfkhx_GbAYBFjwR9pIA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=PEH46H7Ffwr30OY-TuGO:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-27_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 lowpriorityscore=0 bulkscore=0 adultscore=0 spamscore=0 suspectscore=0 priorityscore=1501 clxscore=1015 impostorscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610270078 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development 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 @qualcomm.com) X-ZM-MESSAGEID: 1793129554222158500 From: Yonggang Luo SYS_EMU_TARGET__MAX is already 29, nearing the 32-target limit. So increase width of QEMU_ARCH_* masks enums and related types; So that we can add needed Linux user-mode targets to EmuTarget; And also enabled the possibility add more system-mode targets in future. Signed-off-by: Yonggang Luo Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier Message-ID: <20261027061504.2213-4-luoyonggang@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- include/qemu/base-arch-defs.h | 7 ++++--- monitor/monitor-hmp-internal.h | 2 +- system/arch_init.c | 4 ++-- system/qdev-monitor.c | 2 +- system/vl.c | 2 +- 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/include/qemu/base-arch-defs.h b/include/qemu/base-arch-defs.h index a6478c2d3fff..f2e3bc542030 100644 --- a/include/qemu/base-arch-defs.h +++ b/include/qemu/base-arch-defs.h @@ -9,7 +9,7 @@ =20 #include "qapi/qapi-types-machine.h" =20 -#define QEMU_ARCH_BIT(target) (1UL << (target)) +#define QEMU_ARCH_BIT(target) (1ULL << (target)) =20 enum { QEMU_ARCH_ALPHA =3D QEMU_ARCH_BIT(SYS_EMU_TARGET_ALPHA), @@ -44,7 +44,8 @@ enum { QEMU_ARCH_ALL =3D QEMU_ARCH_BIT(SYS_EMU_TARGET__MAX) - 1, }; =20 -QEMU_BUILD_BUG_ON(SYS_EMU_TARGET__MAX > 32); +/* Keep target-specific masks within qemu_opt_set_number()'s int64_t range= . */ +QEMU_BUILD_BUG_ON(SYS_EMU_TARGET__MAX > 63); =20 /** * qemu_arch_available: @@ -52,6 +53,6 @@ QEMU_BUILD_BUG_ON(SYS_EMU_TARGET__MAX > 32); * * Return whether the current target architecture is contained in @arch_bi= tmask */ -bool qemu_arch_available(uint32_t arch_bitmask); +bool qemu_arch_available(uint64_t arch_bitmask); =20 #endif diff --git a/monitor/monitor-hmp-internal.h b/monitor/monitor-hmp-internal.h index 4e2430551abf..b61d27170767 100644 --- a/monitor/monitor-hmp-internal.h +++ b/monitor/monitor-hmp-internal.h @@ -69,7 +69,7 @@ typedef struct HMPCommand { * Allow to restrict the command for a particular set of * target architectures. */ - uint32_t arch_bitmask; + uint64_t arch_bitmask; bool coroutine; } HMPCommand; =20 diff --git a/system/arch_init.c b/system/arch_init.c index 1ad2f3d6f78b..b8362b12a6d2 100644 --- a/system/arch_init.c +++ b/system/arch_init.c @@ -26,7 +26,7 @@ #include "qemu/bitops.h" #include "qemu/target-info-qapi.h" =20 -bool qemu_arch_available(uint32_t arch_bitmask) +bool qemu_arch_available(uint64_t arch_bitmask) { - return extract32(arch_bitmask, target_arch(), 1); + return extract64(arch_bitmask, target_arch(), 1); } diff --git a/system/qdev-monitor.c b/system/qdev-monitor.c index 8185822daa71..b3ca619f3c9f 100644 --- a/system/qdev-monitor.c +++ b/system/qdev-monitor.c @@ -54,7 +54,7 @@ typedef struct QDevAlias { const char *typename; const char *alias; - uint32_t arch_mask; + uint64_t arch_mask; } QDevAlias; =20 /* default virtio transport per architecture */ diff --git a/system/vl.c b/system/vl.c index e766402f7e19..c40c0596fde3 100644 --- a/system/vl.c +++ b/system/vl.c @@ -917,7 +917,7 @@ typedef struct QEMUOption { const char *name; int flags; int index; - uint32_t arch_mask; + uint64_t arch_mask; } QEMUOption; =20 static const QEMUOption qemu_options[] =3D { --=20 2.55.0