Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp455867lqh; Fri, 31 May 2024 06:40:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWCPccel3+kKuEzBblRaiZEx4VIk1fw8HzofSHx+dW94QB/wAgqRO2flDvuhygXI4zDlkD7kqfBkTwBB065JTe6W3QlErQEtEcW6zBI2Q== X-Google-Smtp-Source: AGHT+IF9gJbtb22agrzTZsK+SEZpOaRbt+O5AnLU/CuCFEHn3HlaUCXWr8AF5LSouiIcC2ISTwFw X-Received: by 2002:a05:620a:284c:b0:790:77d4:5e7a with SMTP id af79cd13be357-794eaf01e52mr852183385a.20.1717162832198; Fri, 31 May 2024 06:40:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717162832; cv=pass; d=google.com; s=arc-20160816; b=iZ9wSXg99PkXTAox1otYm8FO9vpY278lr7voBhLKVIV+3yEjJgi6FBZMM8pf/trV+r PuQWvXEw++q6Odi/PQxB8j8r2/PnKsooJTZwc8vMMe6za76meWbPoYFfn0vzcoM81Kw/ qaHFiPo8py79K+fc0oFsnV8qJGIolvNdl+YgxoCRP2Tz0+YTQ/MX0O2S1stktOdsHeun btDCH1U7fkzhm0ziWDROloGuuIefbDLRli3dnFgTTa72DTqDH1fk+P+0OP3UT8xcjqS5 NFLFvNcq8I9vxSvXyLtccMB3TskpoS/Wn88kCanIbjhDmIEJygxqxH7cEZZcVhVj5Res L1HQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=6uqNCBW58HbI8xLhYqO66ngC/FRT8MwPLcNE5V/7SJk=; fh=oy/NMnsDlh5qNshU5xBtb4ulVuijHmi+gMD3pQcSw0Y=; b=W5iFitkUwmw6xS/zPRvZIIkdC3B+E/cY6JpuwygfcoFNhnK2YO1oIu0LsdvY3Ff0g9 5CAwosoEhzyqulJmk6ibZmCjOYg9srLkoM34yF1fIPaJygIgT3tGhH3bSKJ5XKQ2nEGD ikyDiy/LjLkrBglfdj53ONk1AD+X57hrXlDyLiQemjPaq3CagwSkpkKRO6jbxOyHwmln sDVE8dyIbJh4Fy/bOUZ9MGiebue+4Y6nLpdZUChN6Sdcs5CHV7JMjeKfUF0KjV+HEm9U 1RkCCW7FMhVXNoeKAgd20gi6xSl//d3rduBmozHnFZFZN+QxNIR2HMz5sNnYe4LmNW3R eq+Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=ghiti.fr); spf=pass (google.com: domain of linux-kernel+bounces-196896-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196896-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-794f32b80eesi193203785a.704.2024.05.31.06.40.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 06:40:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196896-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=ghiti.fr); spf=pass (google.com: domain of linux-kernel+bounces-196896-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196896-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id AD5131C267AE for ; Fri, 31 May 2024 13:37:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CA797158DBA; Fri, 31 May 2024 13:37:46 +0000 (UTC) Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3253B158D9F; Fri, 31 May 2024 13:37:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717162666; cv=none; b=u/kqOuBRCDmMhAqv6jmU2VHhUOKeomXUzSfBkQ/Rm7ryv9HzsNI7ga9jq2hhEk0KMK0TedPk5gIBjrT473AvApM2bxmGWJh4LckA4ST5bt6Ep2St4CiNarrPmR6czlBdxXk6S2//aS9E3jTYAyVL46Zv1dcweC4li7mGbC7OgPw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717162666; c=relaxed/simple; bh=/udGeZpdzNcWFqjbvvd5a2DI+PHGZmgjzwa02jNaJzo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=iuXefBqw/3CjTb8hU738rLHCmkZFpna80wgS6A+oeHNZLfr+PVgrL/CCs9Hu8ANyJDEHmzNZqEjk4XGKam70Ur0Fq1o5kFE+4Ne8+Qe91xGBltC/ygn1bMDKKT8IbF84eESBd3/QJkqW7hKG5GWBVhVujmjfLbVwQ7uddqPDwwY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ghiti.fr; spf=pass smtp.mailfrom=ghiti.fr; arc=none smtp.client-ip=217.70.183.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ghiti.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ghiti.fr Received: by mail.gandi.net (Postfix) with ESMTPSA id 42D571BF207; Fri, 31 May 2024 13:37:38 +0000 (UTC) Message-ID: <39a9b28c-2792-45ce-a8c6-1703cab0f2de@ghiti.fr> Date: Fri, 31 May 2024 15:37:37 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 7/7] riscv: Add qspinlock support based on Zabha extension Content-Language: en-US To: Andrea Parri , Alexandre Ghiti Cc: Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou , Peter Zijlstra , Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng , Arnd Bergmann , Leonardo Bras , Guo Ren , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-arch@vger.kernel.org References: <20240528151052.313031-1-alexghiti@rivosinc.com> <20240528151052.313031-8-alexghiti@rivosinc.com> From: Alexandre Ghiti In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-GND-Sasl: alex@ghiti.fr Hi Andrea, On 29/05/2024 02:55, Andrea Parri wrote: >> + select ARCH_USE_QUEUED_SPINLOCKS if TOOLCHAIN_HAS_ZABHA > IIUC, we should make sure qspinlocks run with ARCH_WEAK_RELEASE_ACQUIRE, > perhaps a similar select for the latter? (not a kconfig expert) Where did you see this dependency? And if that is really a dependency of qspinlocks, shouldn't this be under CONFIG_QUEUED_SPINLOCKS? (not a Kconfig expert too). > > Andrea > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv