From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5E3AE1AB50D for ; Wed, 31 Jul 2024 09:21:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722417677; cv=none; b=l0dxlxM8/E2OAfduy/gjKOKGM79WaMXEMQGRx0VCg8JE/chPiHFDTgEXX3x13XbJoZCYVzBkdRkK1Vh1d2U9sOtHvV2d0YgBr7xjP+mJvkJpnx55Sx3bdhKmSdNkb45WXC2Jhsznegi73wM6Zx6IJt3eAX617LhOddp9GqK5wbo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722417677; c=relaxed/simple; bh=cnT5wqUVzDuz/5cZp8Yjlz64Hy6NEUy0SoJibqkgiPM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LwaA1fNFSIrw9N8JwOzrXLr/WBXkkXgNNWJtTL0mhxOKG4gxjAvfqpKO663yqQgCaF7+mYeRJLUSUvJYnaTrQafFB7b3dRJZWqpBhj0QZlVVb7eyUPDBBZ26ILeSbfgAmY2LISwEHV64FRGrajSx6itiMfYS8OnQ0mW5A4+eGMY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com; spf=pass smtp.mailfrom=ventanamicro.com; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b=ilXaq/dB; arc=none smtp.client-ip=209.85.221.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="ilXaq/dB" Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-367ab76d5e1so2004273f8f.3 for ; Wed, 31 Jul 2024 02:21:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1722417674; x=1723022474; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=u/qpTJRAl+gvdV7bUrhFzBBY9zM/wQim6oqoBtynaYM=; b=ilXaq/dBTfrnJjqnloNU/2tMCO9QYU4DvFHHYtGtJRZ77yx6Bo/qiOAZ5Zlrbgwyod lKX/61ULB8iijUF39t7KdMMGoYjYTke11WBmkJp5Mwv7759krRPmacsR/zb6PJxwTOGk GrlLvkSy9ApsJuhHbqPEfcfbbGb0hK4ViDy6PoIIAwKb4Ug79wpD3sshX9XjcCBLBObn Yn9XY4In14Xdt15BM9gYsZ8/0kzjx7bgsUnjQuOBcKI7bGAjul7zlLs9W9Cj+gsmJUHe supKBtxpo8Oi7q09Ydj7Bsq/DExNqxr/DKFa8VOvKBy9fZw2dS7fip7fjAvwvOiF006D GROw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722417674; x=1723022474; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=u/qpTJRAl+gvdV7bUrhFzBBY9zM/wQim6oqoBtynaYM=; b=OIFUlBjUclX7UehdZoiFtvwwGkKvZWgfbz+TF1JxKnC+p2e90GeW1SdwzqRF07s+gc gKqNjw1eQU9OqF3YUeOZSFw9VHNJ25jQKsY60Ea+fLw1w0JkkcTO0IQnUkmiqJG8/h+L mna4GIEmTq4VJAzCzMvnPDC6dgPxUNaXxQM50htysejyiXQWO6ma+cqMd026sgLyDiH+ CkZIp4kKoFuIHmcIMJO5EbyGUCLJfsMyZjJqOx8xS/L1dqnIf+kQnA7XiOu+HEfFspL/ 3wZEtaCv0WmNo3GeYgyIeYLeomxBOLjS9vKp3a36pyAcvzKfW6HIrITFaP7CSiMOvVfc NzLw== X-Forwarded-Encrypted: i=1; AJvYcCU8Tk9S950SQf1hKP8/25rh1DmfuaOIj9v9PDXHcAuwVU8wuThDYvmvRKxtfF9O72DnzicIW3ucZWFuyFuXSXz4bU41+TBsQB7ijg== X-Gm-Message-State: AOJu0YwdU7yUDqfehllbo5PHRJYTf+K1f9Gxc5Cgucwh6UQwY4julkhf 5NhKKX1ih2ImIJ4IYj1YZChRonD8lqs8OZeZc+VYlzk2b8H0HySsqth2tpDolxU= X-Google-Smtp-Source: AGHT+IFNedUVNOOS5mp++68QmWlLVDtW+9dpvo4dm4U/i/Dgou2+lFIJYCAAaKRlPzCMYiIRYjEZww== X-Received: by 2002:a5d:6787:0:b0:362:d382:2569 with SMTP id ffacd0b85a97d-36b5d08f68bmr8441211f8f.44.1722417673355; Wed, 31 Jul 2024 02:21:13 -0700 (PDT) Received: from localhost (2001-1ae9-1c2-4c00-20f-c6b4-1e57-7965.ip6.tmcz.cz. [2001:1ae9:1c2:4c00:20f:c6b4:1e57:7965]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36b36416e2esm16592253f8f.0.2024.07.31.02.21.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jul 2024 02:21:12 -0700 (PDT) Date: Wed, 31 Jul 2024 11:21:12 +0200 From: Andrew Jones To: Alexandre Ghiti Cc: Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Andrea Parri , Nathan Chancellor , Peter Zijlstra , Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng , Arnd Bergmann , Leonardo Bras , Guo Ren , linux-doc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-arch@vger.kernel.org Subject: Re: [PATCH v4 03/13] riscv: Implement cmpxchg32/64() using Zacas Message-ID: <20240731-a49ee87a149ba9bf333378d0@orel> References: <20240731072405.197046-1-alexghiti@rivosinc.com> <20240731072405.197046-4-alexghiti@rivosinc.com> Precedence: bulk X-Mailing-List: linux-arch@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240731072405.197046-4-alexghiti@rivosinc.com> On Wed, Jul 31, 2024 at 09:23:55AM GMT, Alexandre Ghiti wrote: > This adds runtime support for Zacas in cmpxchg operations. > > Signed-off-by: Alexandre Ghiti > --- > arch/riscv/Kconfig | 16 +++++++++++ > arch/riscv/Makefile | 3 ++ > arch/riscv/include/asm/cmpxchg.h | 48 +++++++++++++++++++++----------- > 3 files changed, 50 insertions(+), 17 deletions(-) Reviewed-by: Andrew Jones