From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6E2BD606A32C for ; Thu, 3 Dec 2026 17:09:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=feYIE6we; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=fIyN8U2R Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xZAJN-0007EJ-2j; Thu, 03 Dec 2026 12:09:37 -0500 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 1xZAJL-0007EB-6Q for qemu-devel@nongnu.org; Thu, 03 Dec 2026 12:09:35 -0500 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xZAJI-0006Go-Pq for qemu-devel@nongnu.org; Thu, 03 Dec 2026 12:09:34 -0500 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 6B3FmQ924074265 for ; Thu, 3 Dec 2026 17:09:28 GMT 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= J/RfPhr3Yzc2gBnRICT9CwHBWJ3rsr/JWkbX5vyQF9g=; b=feYIE6we4BeM1kEB tFgyXNaKXezZsTJsPMszXtULYQ6Od2moaZepUNPy7vY67ws4Ib3mUxRayIj+LoKm +sClfhRjILTAud8XXSsjVd1fN6Tp4nj6jzbh52x5CjJEVtgHI4XPTkcpxnLK2iZH 1/VJLRbl+Lv0WU8nab1s3GQoMl+mf1u9tnwZM6XjFk2tajqCjQP3h6zB3qAvE3GT PwXxp2dI4dcThLzKi4i1cTLGUfWco5E1X9qCQmFxnY58CQ14iVxbVcKyjbX8dU9T sF90lADBXYi0cpH8hLOrZ3NSKTnvqEKwyMO7t0EL1/VlEgJ2ecYJedVoanAVCPOL BDMINg== Received: from mail-dy1-f198.google.com (mail-dy1-f198.google.com [74.125.82.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4jb1y7b1xs-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 03 Dec 2026 17:09:28 +0000 (GMT) Received: by mail-dy1-f198.google.com with SMTP id 5a478bee46e88-382af5cfc58so463604eec.0 for ; Thu, 03 Dec 2026 09:09:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796317767; x=1796922567; darn=nongnu.org; h=content-transfer-encoding:content-type:in-reply-to:content-language :from:references:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to:content-type; bh=J/RfPhr3Yzc2gBnRICT9CwHBWJ3rsr/JWkbX5vyQF9g=; b=fIyN8U2RdX6M3GWiChvd2QvRuwgrQ/Yz7r0BVOoRWQnx2PtC5lZhZYF7ESsKoa29nb MYUHWreyOIYbDxzJRMygghJffCw3RHpRnEBEM5ihLltBVMuOkmjyZuSRrtUQ3vr9clwQ 0hGVppN+Bhb9GyCXmm/iBjisRN2ucu31+f78TIHC4B9xZF0rFqdk6kYozbiuJr9BkRHt kIS6XUXEgxU/ilrKkDupkgKslxrrG2NH+b07pyQ+/IDa519IzUQ5TWhRe24BNu03giCj ICjq5fh/DAsV0tnpebCBWEugK7NDMYtsYLMsv8n7gxvfdynkkXMV/oeGIn0ErNqAtFz/ CAcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796317767; x=1796922567; h=content-transfer-encoding:content-type:in-reply-to:content-language :from:references:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=J/RfPhr3Yzc2gBnRICT9CwHBWJ3rsr/JWkbX5vyQF9g=; b=xGJaY5YH7VSy8twdMTV+gue4t+PAWz+ss2aQNCMlyfa+0I5SDrtOro84BKsQixclgm Dsf4t1TSE6VCirPU9WYOcg+HzsyIrGPPdfWiZNSeSiFuX88zIPpKNhhIz0KL4ymK9XLp jdMOEiMufm04ZLOFpDNQU9HLg0JmIaUnlmwxlSa3jWiEXmxp/fcMNRdDu7WGa+nlXGeu 5TAqTy5RRzCSapTH0v+BitzCvyUGNJ2MSf/64z20reBiezK57rpXgPUk6HwWSOTvFVDf oe9rx0JbwpcHyNbMk54SoSKLW0pZLUXXxa5e08cyeXUp25ZrBRDheVtlbRdw1XFYKfTR jkgQ== X-Forwarded-Encrypted: i=1; AL+hErHBSeDuudVPXz3T+CPhWYOACsPoO597hgjtHsi1yzNIFTiWDuHXcrvNrU9yka++Kt0F4/zyYS1c/6Bh@nongnu.org X-Gm-Message-State: APuU4Z/Z9shvI0trLfjtRWva75RlCo8dh8aBw1RlYq2v2M+toCm8D3Ro YTzsTPCH9luj9KlGOVD6VOWjUoDRLE9U72AWuJbQuDCANWei7vuUdb2DP/hXkw3eGUr4VB8cuCp EvN8M/xeJBkURNVrDVNNwaqbfpn4QlIhYnSlT2ClfeDZwrZe7+8al3j0bXw== X-Gm-Gg: AZFdTZe95Jk2wrRjnGPb0wXDFXSUiB3Avp7xvHBDsFRTj/35VM4UW/RBlw9uWeP1iAA jLshVcH6EeiSxB029GwhooiEIpn7afwgsGYUOzsXPEei/tq2w4hGVVkfbXNn5uWpgJRteUBqgNu 7vCdj4SwaVQ9KqFyJYXB343eGGzTJqc9ndoqZ+O+P+0duSJlw/9nCJFllIaBlH88NwUUUN/MvWK y0fOb5QKgHdks+Tm7t6YNNO4XCtLGNb3kvt21wU2u417nHPvsyyAag9AQhfamaSiW9Wjmx6XlZA AsVY8tRq1a3KOcpKyjkH9Q2IlhbPskLrKQD098P2UM7lVy670x7CDkMVp6xjFQ/f7VjNnMCiOEM qvRnKXrRVPie4BYxoKx1sHafYoRQMKu4qdfivKl6PUSpr2kZVANlV5P7A0PJJ8x9EBgR42CFZjH m4uw0ocZTLoN3WREuDkRgZPKo/7nVuhqkoW1kKU+fUbw== X-Received: by 2002:a05:7301:4246:b0:387:40ef:7b4 with SMTP id 5a478bee46e88-38740ef0960mr2996336eec.38.1796317767057; Thu, 03 Dec 2026 09:09:27 -0800 (PST) X-Received: by 2002:a05:7301:4246:b0:387:40ef:7b4 with SMTP id 5a478bee46e88-38740ef0960mr2996309eec.38.1796317766288; Thu, 03 Dec 2026 09:09:26 -0800 (PST) Received: from [192.168.1.199] (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-385672ce402sm123337383eec.16.2026.12.03.09.09.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Dec 2026 09:09:25 -0800 (PST) Message-ID: <2f330bb3-e9ba-45dd-a889-2a209b243d88@oss.qualcomm.com> Date: Thu, 3 Dec 2026 09:09:24 -0800 X-Archived-By: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH for-12.0 1/1] tests/functional/hexagon: run the rest of the tests To: Brian Cain , qemu-devel@nongnu.org References: <20261201194839.2764301-1-brian.cain@oss.qualcomm.com> <20261201194839.2764301-2-brian.cain@oss.qualcomm.com> <9132ad6e-2dba-46fa-9e5e-6be4914f559b@oss.qualcomm.com> <20ce2c6f-630b-411c-8f22-f9ff367390f0@oss.qualcomm.com> From: Pierrick Bouvier Content-Language: en-US In-Reply-To: <20ce2c6f-630b-411c-8f22-f9ff367390f0@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAzMDA2OCBTYWx0ZWRfX+hHECV9JDqy2 IQpllh5tTPZxXHo6guXV38Lt2lYeoyW9dOPOGM0cqZtIieGjIvEhWxU71ZiO7ogD7qLyMaO4kMg FB/0C7tGgt1ALqOIjiz0IOzIvZB/S98disb9+6A2hhw8wVy8Sb+q/Y7hT6NKtoWA76iA73fvRR8 6a/Y+2IkHQpl2N51ACeFiOKPgvps6LXLaVqV7XeflRTBq4/OaPXYGZzOurwusInlNonahzhfIau DIQLyRksbAggrR5PXK4oE0OHM7VqU8DQWT0Zpar7/f1mGsFRr7+37bAHOQcOcEgchwHt8yrxhXF k3tORpIFsCNbQjRjVHrXWQxSLzKBIv5UI1WiiOhIEnBCEyvoCskln6Bbp56CmWR3AqUbmvYsYKR XxCuzfh4oOEKMok3JK0KH7UP3u3Ia0rOgvTYLmz75O0cwp6w/fj+F1+JxJfIkjj2TdUtJ9OhK2+ cRF3Wd6Gke6ghjJ5wqQ== X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAzMDA2OCBTYWx0ZWRfX6BHIROLq5lmL Uwnuj3RVYGXPGqosKmmwndAUYZHGGF2lCshYxcFDzG4JlmKQZKiBEIjCxdaRdL5XUMucSrCU6O/ krRjfTlCTA7nk1maaP3cKCFs0JkodSM= X-Proofpoint-ORIG-GUID: LYQ8jPaWHTXT23epal2gslWi1st3sXzI X-Proofpoint-GUID: LYQ8jPaWHTXT23epal2gslWi1st3sXzI X-Authority-Analysis: v=2.4 cv=a+elZkSF c=1 sm=1 tr=0 ts=6b11a248 cx=c_pps a=wEP8DlPgTf/vqF+yE6f9lg==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=EUspDBNiAAAA:8 a=oM-dWBM4g9adDd-8qCcA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=bBxd6f-gb0O0v-kibOvt: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-12-03_04,2026-12-03_04,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 clxscore=1015 lowpriorityscore=0 adultscore=0 suspectscore=0 priorityscore=1501 spamscore=0 bulkscore=0 impostorscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612030068 Received-SPF: pass client-ip=205.220.180.131; envelope-from=pierrick.bouvier@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, 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-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org X-Spam-Status: No, score=-17.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On 12/2/2026 5:30 PM, Brian Cain wrote: > > On 12/2/2026 3:44 PM, Pierrick Bouvier wrote: >> On 12/1/2026 11:48 AM, Brian Cain wrote: >>> The arch and systest tarballs carry more binaries than were being run. >>> Run the missing test cases, and add a Linux boot test for the QCS6490 >>> CDSP machine. >>> >>> With this many tests in the one file, a busy host sometimes stalled the >>> whole file until the test timeout.  The guest starts to print to the >>> console as soon as it is launched, and does so with the BQL held.  If >>> the >>> test has not started to read the console by the time the socket is full, >>> the guest blocks holding the BQL.  QMP is answered by the main loop, >>> which >>> needs the BQL, so the test cannot get a reply to a QMP command until it >>> reads the console, and it cannot read the console while it waits for the >>> reply.  Start the guest paused, and read the console while it is >>> resumed. >>> >>> Signed-off-by: Brian Cain >>> --- >>>   tests/functional/hexagon/meson.build        |   2 + >>>   tests/functional/hexagon/test_arch_tests.py |  96 +++++++- >>>   tests/functional/hexagon/test_linux.py      |  62 +++++ >>>   tests/functional/hexagon/test_systests.py   | 240 +++++++++++++++++++- >>>   4 files changed, 394 insertions(+), 6 deletions(-) >>>   create mode 100755 tests/functional/hexagon/test_linux.py >>> >>> diff --git a/tests/functional/hexagon/meson.build b/tests/functional/ >>> hexagon/meson.build >>> index 3dd40ed0463..565a056a951 100644 >>> --- a/tests/functional/hexagon/meson.build >>> +++ b/tests/functional/hexagon/meson.build >>> @@ -5,6 +5,7 @@ tests_hexagon_system_thorough = [ >>>     'qcom_dsp_firmware', >>>     'systests', >>>     'hlx', >>> +  'linux', >>>     'minivm', >>>   ] >>>   @@ -13,4 +14,5 @@ test_hexagon_timeouts = { >>>     'qcom_dsp_firmware': 240, >>>     'systests': 180, >>>     'hlx': 180, >>> +  'linux': 240, >>>   } >>> diff --git a/tests/functional/hexagon/test_arch_tests.py b/tests/ >>> functional/hexagon/test_arch_tests.py >>> index a437e4d4aac..9f8835e0614 100755 >>> --- a/tests/functional/hexagon/test_arch_tests.py >>> +++ b/tests/functional/hexagon/test_arch_tests.py >>> @@ -4,6 +4,8 @@ >>>   # >>>   # SPDX-License-Identifier: GPL-2.0-or-later >>>   +import threading >>> + >>>   from qemu_test import QemuSystemTest, Asset >>>   from qemu_test.cmd import wait_for_console_pattern >>>   @@ -32,6 +34,23 @@ class ArchTestsUart(QemuSystemTest): >>>           "64053b31e8e3acf7c97e7e82209b6bda", >>>       ) >>>   +    def launch_and_wait_for_pass(self) -> None: >>> +        """ >>> +        Run the guest until it prints PASS on the console. >>> + >>> +        Start the guest paused and read the console while resuming >>> it, so >>> +        that a guest blocked on a full console socket cannot >>> deadlock QMP. >>> +        """ >>> +        self.vm.add_args("-S") >>> +        self.vm.launch() >>> +        resume = threading.Thread(target=self.vm.cmd, args=("cont",), >>> +                                  daemon=True) >>> +        resume.start() >> This looks like a genuine race condition in test framework, no? >> I wonder if it should be the default for vm.launch(). > > I felt like that would change the general testing too much to make it > the default to start halted. > > IIUC Hexagon is the first/only architecture using semihosting for many > functional tests and that could be a factor in why we're uniquely > encountering this.  Then again, it might be plausible that a fast enough > guest could cause a similar issue with a UART. > Fair enough. Reviewed-by: Pierrick Bouvier Regards, Pierrick