From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 9B0OMDz7fGnMYB4AWB0awg (envelope-from ) for ; Fri, 30 Jan 2026 13:41:00 -0500 Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=aUHlG4HD; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id B00881E08D; Fri, 30 Jan 2026 13:41:00 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 154F11E08D for ; Fri, 30 Jan 2026 13:41:00 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 7DB1E4BA23E2 for ; Fri, 30 Jan 2026 18:40:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7DB1E4BA23E2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1769798459; bh=lg15qk6Qs1OXv+FJvu2gobufj/61eyIthquK3AnZAD4=; h=To:Cc:Subject:In-Reply-To:References:Date:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=aUHlG4HDUtiU/rcqZFXb3/aDTMqyULHjRRYB0ONUf1x0oCucTsoydKYH/Y3hPrqBp 9o5lSNXSrw3aHC94nBg6q3YfGo7zMFRYxyNkxB9SzyA8FOnQGmV5i/5JGJNi2LBjQp wRhHrXKKxQppQqbcrcj4r04XySnr3QfGUirS49vE= Received: from mail-dl1-x1233.google.com (mail-dl1-x1233.google.com [IPv6:2607:f8b0:4864:20::1233]) by sourceware.org (Postfix) with ESMTPS id 429314BA23EB for ; Fri, 30 Jan 2026 18:40:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 429314BA23EB ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 429314BA23EB ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1769798413; cv=none; b=qfjsZKWfu9n/05rmj7Y6eq5V75fkjvTiADXv3dH/RU5d6lnZGL97YJp46OY6ybL9RLXsjJC2HqtwSCDoPzTJUcCLIBvUVNer/ZuJLPg8Tp4UdZZj9/jJFh98yyNMwKt34cYfKcfoSPNYifR+VeOvGqyMwyx4Ogcs3rN+kVYCNdg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1769798413; c=relaxed/simple; bh=nSokHeF1qImftkIv1+UlTBtJ81LC8LS59vO2RiZD868=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=qfXKPqt1k47ulxNSpShiPJRdfNRB5NprxJGv+6TAqfM0b0cqEfQiWEqZxW0LF7SuxGAlqoHg53wLT8KNSNvneSZ2BK0CNBrJghQ+0pFZe9wy5IQwLc6dpT3nt6LxMJOi7cCb/wzFj9LJtdg7tg0mo3Pm29w1Xx4U8kbcKtRJ/m0= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 429314BA23EB Received: by mail-dl1-x1233.google.com with SMTP id a92af1059eb24-12460a7caa2so3774641c88.1 for ; Fri, 30 Jan 2026 10:40:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769798409; x=1770403209; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=lg15qk6Qs1OXv+FJvu2gobufj/61eyIthquK3AnZAD4=; b=WUu1WbOJg9VnUKVf+/wjHii9rjCKT3TB+rBC7ODLUyFRd/i+13RAmk4B7Zyo4RPcAI GV2mayfwkUKSD0XRIrcN++F/RdsDSrmGGFct9YyrvVi3wm2c2GCJ4MgMY6VQjCGDPTSF TAacSXlE14KMIhuZEMurAOZ46HreYcouQJVUevMXh2LE4bAcVnKSbDftbv57Ur+1PNR6 snNknOGEiFiM69CXnUybMcFvymC5J1fFJegotifqREFSQ6r1nNO4FJiMj+BrkS+AETbj Y5bOOMWyJRFGb4gLe0yTx5PiF2eRO6Zr0MKRTqWpQr1UsHzFdCpQ5A7Cb4e+uSFNkN7s +eAQ== X-Forwarded-Encrypted: i=1; AJvYcCVvwv1UAGjZRC7yZAYzvvYD/DIO6F8dd3KUX71nyoxCh9ZVkEhtjGUdWhJlDZwmSL2tBSM=@sourceware.org X-Gm-Message-State: AOJu0YymCJlSgvOFd7Ee1DfhhmhgjqcBWKtgN3Yzy2Z0DbUiqIWDdnpr /5AMq78D9tCamWTPAqlqHjj7fRivet2OpNnJ8gvuce7tKl45h83hAoMoIi7yCi0FM72vcNmZDwt WeQvz X-Gm-Gg: AZuq6aKU7rkE1F+sG9lBFBYI9GxB8NtWY+t25+aTnLUWruGfvo5xaFQFVh1SwIF+yjc gbmlPQ0ee839zzJ0za3e2T/jUe7ZCJ+p8wF92FICOI+NYRc5C0F2Z95meyKbTSOyMF4wqho780i LRrAuzq8fcy35VNXQqPy4QCF8GOWSNB1/0oJU4ACc137AO6q39che6wCjQgccVipXBCmZpmi/K3 G6rVKZW0U+Ns3Akl/Zupg1TZ25LzbD/3JqfUrKdjVgkmp+qJvceqER7HGmsca1tY1d3fxCUQ/Uh CwgkytTz9Z8XEMK1b7NxbDdydJ5ywxahNxBbNoWp6pwQ+Z1+QnR4GOWN639bVAaY7OJNH+Z7G9C 98DMnqg1cHUvbklBgP/oYZuAbwtunVyR8tcxeTDbF0IoApWn03A9OXs/CsX3FNOsX+zMAblOAeb 1IDKGFfhWvvnkqb7XQ13X7Eg== X-Received: by 2002:a05:7022:43a7:b0:124:b11f:67ec with SMTP id a92af1059eb24-125c1011659mr1344837c88.39.1769798409065; Fri, 30 Jan 2026 10:40:09 -0800 (PST) Received: from localhost ([2804:14d:7e39:8083:f04c:42e3:5943:38f6]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2b7a1addafesm12562740eec.25.2026.01.30.10.40.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jan 2026 10:40:08 -0800 (PST) To: Peter Maydell Cc: Luis , gdb@sourceware.org, Manos Pitsidianakis Subject: Re: gdb support for SME-without-SVE ? In-Reply-To: (Peter Maydell's message of "Fri, 30 Jan 2026 18:34:06 +0000") References: <87ldhigyao.fsf@linaro.org> <87tsw59hwu.fsf@linaro.org> <87a4xvafmv.fsf@linaro.org> <874io39iuk.fsf@linaro.org> <87y0lf81yt.fsf@linaro.org> <87sebn7ymd.fsf@linaro.org> User-Agent: mu4e 1.12.15; emacs 30.2 Date: Fri, 30 Jan 2026 18:40:06 +0000 Message-ID: <87ms1v7xmh.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Thiago Jung Bauermann via Gdb Reply-To: Thiago Jung Bauermann Errors-To: gdb-bounces~public-inbox=simark.ca@sourceware.org Sender: "Gdb" Peter Maydell writes: > On Fri, 30 Jan 2026 at 18:18, Thiago Jung Bauermann > wrote: >> Peter Maydell writes: >> > With my updated QEMU >> > (which you can find in the new "sme-no-sve-2" in my gitlab repo) >> > that can now run the tests without making the kernel fall over. >> > It reports: >> > >> > # of expected passes 241 >> > # of unexpected failures 37 >> > >> > Is that the same as you see on the fast model, or does this >> > indicate that I still have more QEMU bugs to track down? >> > (Peeking into gdb.log, these failures seem to be run-on >> > failures from the program under test getting a SIGILL >> > in initialize_zt_state(), so my guess is QEMU is still not >> > quite right.) >> >> Indeed, there seems to be something off with QEMU. >> On FVP, all the tests pass: >> >> === gdb Summary === >> >> # of expected passes 278 > > Just to check, does your FVP have the SME2p1 feature ? > (Should show up as "sme2p1" in the feature list in /proc/cpuinfo > in the guest.) It doesn't. Here's my FVP's feature list: Features : fp asimd evtstrm crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop asimddp asimdfhm dit uscat ilrcpc flagm sb paca pacg gcs dcpodp flagm2 frint i8mm bf16 dgh rng bti ecv afp sme smei16i64 smef64f64 smei8i32 smef16f32 smeb16f32 smef32f32 wfxt ebf16 cssc mops hbc poe lsfe > The SIGILL is happening on the attempt to set ZT0: > > /* Initialize ZT0. */ > /* ldr zt0, x0 */ > __asm __volatile (".word 0xe11f8000"); > > because QEMU thinks that EL0 doesn't have access to ZT0. > If your FVP isn't emulating SME2p1 then the test code will > return early before getting to that part of the function. I'm running shrinkwrap using the --overlay option with the following file: run: params: -C cluster0.has_sve : 1 -C cluster1.has_sve : 1 -C cluster0.sve.has_sme2 : 0 -C cluster1.sve.has_sme2 : 0 -C cluster0.sve.has_sme : 1 -C cluster1.sve.has_sme : 1 -C cluster0.sve.has_sve2 : 1 -C cluster1.sve.has_sve2 : 1 -C cluster0.sve.sme_only : 1 -C cluster1.sve.sme_only : 1 The FVP setup was built with: $ shrinkwrap build --overlay=arch/v9.5.yaml ns-edk2.yaml if it makes a difference. I'll see if I can try to turn SME2p1 on. -- Thiago