Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5058117rdb; Tue, 12 Dec 2023 18:45:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IHKwgnkZKEAILw+l8lwN+AlYaW388EoEF8EPkIWmPBlN+C95XBxbAiAA1hEVWV2cfg8IxDU X-Received: by 2002:a05:6e02:1aaa:b0:35c:c156:f303 with SMTP id l10-20020a056e021aaa00b0035cc156f303mr9367561ilv.21.1702435544159; Tue, 12 Dec 2023 18:45:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702435544; cv=none; d=google.com; s=arc-20160816; b=t6XBR+ASg1umy+d/O8BegT26znaP9TmXyEghuYlmtXj9OkMoVcGYipglrcShcyEOjc kEzVvzdkuKZT8Pxhjo/ngkYgezsw0uiHRjzwZLVE/rgJL+rImrdBhzngy1Tp4yNaUI7P xBbtMOIqH5g3eYMPSECUrYcJjJ/tYLyWP039FPdoumXbYbW/A/YwUKXXVK7F/gMOCCMi PoA4UVyd3stkFAvGWcL6Lb9WT8PNV4ZLGiViYIfvbi/9DlpCDIaqYlA8JTiJIkOwysCn n0HdeR2HU/5zrvtNgdW+sdxQurbaxP2O8jkYDfsEG9HIEkGs3SIm9n5f/CcUE4Sz850g HvwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:in-reply-to:subject :cc:to:from:user-agent:references:dkim-signature; bh=CJ7qwCmvq20mGgi3dRymJGPN14h9pbhwL4VM2txPZCM=; fh=2nPFT/KTslTQ686WgFSojEEZau7G7tqoQ5Zr2uSyW1U=; b=AEB/NtjzuZP1sVDCMFDEqbr5gt08qHjgw0mGdLi6Q/A4e8jq9kV0m75HiC3rmTnIki kuySiAyMIS5vZ8JwrJaxo1W9Ebhi7S4ZcP2t/L0ZRNhSdrUAHvW8GhwebaiF9Elqx9kj f5GP/F8P63s+SIqcjbXvdyE1d44nRZTxHVOaMfh2hx1b7bpxy3+7SW30QMNcJxoYMfp/ 7t6Lkt+eo8vQe6pvffgJq+0phihTLGr/IB6pJ3zk7TM3uHex+eN19tcJw2+Wrw2xMdyq ZRrWTFXz1E/1VKatRaBbhuxqT15geE+qCS8pVTFsXIpLh5yuw1rbYhdaasN5e46lb2KG /gJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZcidFv8J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id x1-20020a631701000000b005c179c0075dsi8731804pgl.883.2023.12.12.18.45.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 18:45:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZcidFv8J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 598508083B1B; Tue, 12 Dec 2023 18:45:30 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378288AbjLMCpG (ORCPT + 99 others); Tue, 12 Dec 2023 21:45:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232295AbjLMCpE (ORCPT ); Tue, 12 Dec 2023 21:45:04 -0500 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D986EA6 for ; Tue, 12 Dec 2023 18:45:09 -0800 (PST) Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-6cebcf8a48aso5181666b3a.3 for ; Tue, 12 Dec 2023 18:45:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702435509; x=1703040309; darn=vger.kernel.org; h=mime-version:message-id:date:in-reply-to:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=CJ7qwCmvq20mGgi3dRymJGPN14h9pbhwL4VM2txPZCM=; b=ZcidFv8JCRaEhFx285fX5LJKtnAW/6xdQ+f7UfXQ943HmZyW9UeCMTAYCaHECv8vLb URWXgHbvPOMeXQuHw0S2vjSjHuBlCXvquyzPVXx4sAqi1JBubDTEmBqHBx1KrJeEMFSr 062t+bhgVI5fKT3UeJt5TWjN/EyiUIycC4uMBVg7+ZpGfANAqH9sq327mW42WX36tCBA EmOhUf9rvG1Eo7TCMc5XNLm9Olzb5gcmAmGaze1GIY+DTTPP25On2mTimeGQpBImvEr/ eUYhQKfZ/0EQF0sRexHfXempTf+gySR6FEDkr6mkUt0DHZ4wXN6L7dp0zbLaL0qsZsT+ vaEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702435509; x=1703040309; h=mime-version:message-id:date:in-reply-to:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=CJ7qwCmvq20mGgi3dRymJGPN14h9pbhwL4VM2txPZCM=; b=vMk9HwqWaBvVI2JcZvtCCB64qTyvqjBQy6j8LoEHt6gMP1KJdgLadaKktpZf+Vxq1N FIudn4BMPLNdKYtjEFFcddyNwXn8Hd+usc2IMzK4ITdzhEdVnLNCweqN13X+YkUGo59b lLLbiWZzGUKZ8Jtmm6UN43VSrG75ZGlDE0mGvZmfmJdnHYh+DKWrxhs/sKHX+n8HHZpx AOlo2W3CDySglDHZJgNFm+Mq4kNTbiqXkHFTN+caQ8n6tQTx9oLb+xJZ0gKnlO7DT/AF +M45iVry7D2bxVudCFb2XbiknVjeGEjFtjOIrE/l90OUz8/tsrhhihlVQTZkBc14wrSK XJFA== X-Gm-Message-State: AOJu0YzcYYD9BBQ1hbO0WYCSrro73AEGZq6n1nXy1R8DDGzxQacyFy43 ovsTA53FEqMwhoz2kSVE7pNgow== X-Received: by 2002:a05:6a00:c81:b0:6cb:a2f4:8579 with SMTP id a1-20020a056a000c8100b006cba2f48579mr8585102pfv.15.1702435509333; Tue, 12 Dec 2023 18:45:09 -0800 (PST) Received: from localhost ([2804:14d:7e39:8470:cddd:ffc9:f19e:a4dc]) by smtp.gmail.com with ESMTPSA id y72-20020a62ce4b000000b006cb7bdbc3besm9528817pfg.17.2023.12.12.18.45.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 18:45:08 -0800 (PST) References: <20231122-arm64-gcs-v7-0-201c483bd775@kernel.org> <20231122-arm64-gcs-v7-37-201c483bd775@kernel.org> User-agent: mu4e 1.10.8; emacs 29.1 From: Thiago Jung Bauermann To: Mark Brown Cc: Catalin Marinas , Will Deacon , Jonathan Corbet , Andrew Morton , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Arnd Bergmann , Oleg Nesterov , Eric Biederman , Kees Cook , Shuah Khan , "Rick P. Edgecombe" , Deepak Gupta , Ard Biesheuvel , Szabolcs Nagy , "H.J. Lu" , Paul Walmsley , Palmer Dabbelt , Albert Ou , Florian Weimer , Christian Brauner , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, kvmarm@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH v7 37/39] kselftest/arm64: Add a GCS stress test In-reply-to: <20231122-arm64-gcs-v7-37-201c483bd775@kernel.org> Date: Tue, 12 Dec 2023 23:45:06 -0300 Message-ID: <87zfyex1l9.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 12 Dec 2023 18:45:30 -0800 (PST) I'm going a bit out-of-order to report a build failure in a test: Mark Brown writes: > +// Recurse x20 times > +.macro recurse id I get an assembler error here: gcc -nostdlib gcs-stress-thread.S -o /home/thiago.bauermann/src/linux/tools/testing/selftests/arm64/gcs/gcs-stress-thread gcs-stress-thread.S: Assembler messages: gcs-stress-thread.S:236: Error: unexpected end of file in macro `recurse' definition make[2]: *** [Makefile:24: /home/thiago.bauermann/src/linux/tools/testing/selftests/arm64/gcs/gcs-stress-thread] Error 1 This is with gas from Ubuntu 22.04, which ships binutils 2.38. > +function recurse\id > + stp x29, x30, [sp, #-16]! > + mov x29, sp > + > + cmp x20, 0 > + beq 1f > + sub x20, x20, 1 > + bl recurse\id > + > +1: > + ldp x29, x30, [sp], #16 > + > + // Do a syscall immediately prior to returning to try to provoke > + // scheduling and migration at a point where coherency issues > + // might trigger. > + mov x8, #__NR_getpid > + svc #0 > + > + ret > +endfunction > +.endmacro > + > +// Generate and use two copies so we're changing the GCS contents > +recurse 1 > +recurse 2 -- Thiago