From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id gWg6Cvf/fGkuah4AWB0awg (envelope-from ) for ; Fri, 30 Jan 2026 14:01:11 -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=agaZea+r; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 242761E08D; Fri, 30 Jan 2026 14:01:11 -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 A2CDC1E08D for ; Fri, 30 Jan 2026 14:01:10 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 2F0914BA2E2F for ; Fri, 30 Jan 2026 19:01:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2F0914BA2E2F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1769799670; bh=hPh3ZuKwj2bdr/nwum49hWTJhixyJvgtAsQQMIWTX+k=; 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=agaZea+rtfwXiXqM2r1ak7QNFtvwRQ8c8tM9qteSBvwMsVuT4D7/Nsr78o5eVqAbk RVwu2Le/sMAs9a5auBUUFXFRR1dtJrhunfT+0klBB+VCToLiJGdxsCgAWoxeyBki+v kkzh9M4qFV47Z9PyjlCFI30D33QhRVTqhcIa+rpc= Received: from mail-dy1-x132a.google.com (mail-dy1-x132a.google.com [IPv6:2607:f8b0:4864:20::132a]) by sourceware.org (Postfix) with ESMTPS id 89B834BB3BC8 for ; Fri, 30 Jan 2026 18:59:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 89B834BB3BC8 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 89B834BB3BC8 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1769799564; cv=none; b=f/WPooADuwLmsGmYlJTV1nzz5ZJwq09acbT1v2g7vSLhUKJlK+/6rn4sZbE1r1RyJn6kHy27vh5MMBL3P1wor92Ggb1bzDdsa5vvIJDzyS9eiHbtAfDdtgcnh7oAc7aEI4rnb0u5GWSJmykaf2UepX8KVbxZxTRfmtbt4mWRXoU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1769799564; c=relaxed/simple; bh=B/pK/0x2o4Q0GEDHUuybQ3vP1bjGdfHtkQAck5O2lMU=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Z2nEh7TaUKmORQcmFZ2O/ObnYdvAKyA1HW5pjsQ0ZW8aUGE3xwLL+mlLyMg1VvswyhRATMLt+Pz/5ORDPXcTrnw+AwSIM5O01CU2RJbnfuevBClDdtSH7azgbi8k366pDI4+geKpXI90gR5rsZBYukNHzMi6T/M4Ha8v2VECF6k= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-dy1-x132a.google.com with SMTP id 5a478bee46e88-2b4520f6b32so4927971eec.0 for ; Fri, 30 Jan 2026 10:59:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769799563; x=1770404363; 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=hPh3ZuKwj2bdr/nwum49hWTJhixyJvgtAsQQMIWTX+k=; b=gtoAk+bQnXfwVa1Os/QnCK0t+oH/NCAadVa/vdwQDVP2+2DVWJflg5QL7YSjdCIc1u 8qvI6KraLvg+3EIM0oUuZRdq5xj6yx+Lq3dDKi2kf9W42FhfrQN2Rsbci1HR6fKBb82W D2rPU6esTxMvk11YDunw0IIYCgEa+CHHLFZt/Duks7sn+porkSc/5U4PkAkCo9dFAgl0 /BpK9ju1udypB9tyv2J8mMXvM5QuL7HrKKpWXserW3y/EVc/JE5QJ12IPVMGApXxphk8 YifST8MTyxdhB7JuHE+1bYBiBxAWp/MBYOPtaONlt6A2/+rjX9QBbV9ZAubLpZlUBQjK qj9w== X-Forwarded-Encrypted: i=1; AJvYcCUQmM851qo2Rq/m891QcGuXC8DQK5xAkj0fgFvHLvnkA4Fewm6wfx8g12x3ukWRHlkxBSw=@sourceware.org X-Gm-Message-State: AOJu0YzlM71YKGaqP7LxYZxZOaNtgMwyEKDp6IzNTbLiyEbiIk1sKX4d 9o+MIgi9XKquOKntwbSU3Ad5/l1sdUYa924jWWlnUd9scDLZGCVN8LsFMxpF1oNnhdQ= X-Gm-Gg: AZuq6aJs/vG0cUj0XgKwe7LvW4m73Auo6F7Tsy/72rELt+LQs8XUE79j7N4oDlY5gjk cDh3OlxFTDT9p0JQLWk0tjB64IOdtix9lq/yGFlK2nMv8EKxv4CeoQPptBJ5kNdb0vNCDBNb/jI vDfbBkvQ5ZFgk+LE4hcAQbnrgn2So0/OLCZ2a0ya78UudddwqJGPcjZ0mmVVg/UyHLWZw29+Sx2 +zNndo4qYfKtpUvFgx2fIm7H9IrA5hzJ2skCZ0m6WEPw2CMU5+xnU1NCT4V+ASTKqbaei+ebLfU Wb48rN0sYYHHgwaaYrRCUsAvOX6zE7g36y4cubmMuCDVA/mGEdIIiaKNHEEN/4g8fB2JF2E/Kfh YlOSUC2ey/YLFx3Dj+J+DfIhLyruJlXUChP4BL/6AjT10S23yYU4vRadIYshCmc5nR/aPjZX+Ze hmqTSMkluqAk9gzdnbsK6kbLh9QV77f8eF X-Received: by 2002:a05:693c:2b13:b0:2ae:614a:330e with SMTP id 5a478bee46e88-2b7c8943db0mr2157651eec.41.1769799562720; Fri, 30 Jan 2026 10:59:22 -0800 (PST) Received: from localhost ([2804:14d:7e39:8083:f04c:42e3:5943:38f6]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2b7a1abe57csm14516186eec.22.2026.01.30.10.59.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jan 2026 10:59:22 -0800 (PST) To: Peter Maydell Cc: Luis , gdb@sourceware.org, Manos Pitsidianakis Subject: Re: gdb support for SME-without-SVE ? In-Reply-To: <87ms1v7xmh.fsf@linaro.org> (Thiago Jung Bauermann's message of "Fri, 30 Jan 2026 18:40: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> <87ms1v7xmh.fsf@linaro.org> User-Agent: mu4e 1.12.15; emacs 30.2 Date: Fri, 30 Jan 2026 18:59:20 +0000 Message-ID: <87h5s37wqf.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" Thiago Jung Bauermann writes: > 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 I was able to enable SME2p1 by adding these options: -C cluster0.sve.sme2_version : 1 -C cluster1.sve.sme2_version : 1 Now my features list shows sme2p1: 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 sme2 sme2p1 smei16i32 smebi32i32 mops hbc poe lsfe I still get only passes in the testcase, but more tests were run now: === gdb Summary === # of expected passes 286 The sme2_version option goes all the way to SME2p3, but I didn't try that one. -- Thiago