From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (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 079291AE870 for ; Wed, 31 Jul 2024 12:20:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722428411; cv=none; b=mSCAgPYVkI7G8moXerQEHPNHivF/dvQxnjDtPxEzoPKWrLYX/krjyk9gBr66bYMdjqfesg4iXeBGyxytk0vf+QpC+oVl+gPtSS6vxf0lGun34DD4P7cT/AXJ9CGc8crgJtxeDs+P7CnmOJyI4KHAhhdILcdNMAkG3/tjKtptVN8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722428411; c=relaxed/simple; bh=VLyIEhkLnhz9rx8+f5UQQQG3xPqtwVjtpvKYHmmZm3A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=boE+QGj+COlukRc1MUdz+8BzurrnM+LriOZdu8jtAGsp6H0AB8X9GE/FL74fTmDy3hfCiSr1UYz/BSag2jV3ej1t/oXmdX6PFVPznbb8WP4oCdxRTTT0qa6FtEpUj1VRENWKfYK3bOopLyK6SGE6fwIKAmpNEUkgFOp16zC1f5E= 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=lcLgK2bw; arc=none smtp.client-ip=209.85.167.52 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="lcLgK2bw" Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-52fc14d6689so5980309e87.1 for ; Wed, 31 Jul 2024 05:20:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1722428407; x=1723033207; 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=nOIxnk7407zYgmcLnWaUjuP+BwjeEvDM3LSUzPdgUOk=; b=lcLgK2bwjT7dSj4YRuCAfOC8fe0caPTnrwZNL5tqKqeGpe1wiXBk8+cOCHC2X39j2r F32ITX27th9hXIrMt7fv0+/mpimU1anYHH3g1nfcI/LCKSkWlq/mu6z/Ncy13vaOYY5l tO/BrBhHp7XM4hTwu5wrJYyAkhXrxlJbKargpbeorD+91VrjRkJ6fjOo5Z36/N5+osYV VwypqvdUCtGWVblB8kZkIDA8t+vmntQds0SnMrcgCAyFJMyT55n7BjL7wWKR14w9qMXX 039AThqwj9dplPOBxBM0dJJJ1pRB3fgC0AZG67yYtbubS/JL1O/1Txt95qLgb9HHQNZO nseg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722428407; x=1723033207; 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=nOIxnk7407zYgmcLnWaUjuP+BwjeEvDM3LSUzPdgUOk=; b=JSm/yzB/UUl9zZUcJ3FXGbcofDioAd7HAVgHpl6zc4z3dPaCl+jx80ZUUMaIistoxg 38MkgLz7UPw8kbB2bqdp3FzskhAx0sgidiaRmhwmGuFK+OimIQlS52yC/is3x99F4daW M3BTe0RmGEG20B+OrytFgakXV21xunfYSa6jwuLOiDOTAmpfv5TEtf3N3VRdeuBNDaeC Y28jwTI6ffNbfwDkGwEM13LmNpwX9OJOW1JKsQzAwItoS/skEmoUiv3OHzs+g4r/aYrF C9gYTEg6SM1sGJFNP5OSjK0z2+PIIMoQysGMFkxlJKXw39bgbEWVd5a/uvttYAnlgdB7 U9pg== X-Forwarded-Encrypted: i=1; AJvYcCVSPG4vJMFYxS00HNJYZ+YICy9EbU0VvLrB6hTX7koHMooe0IC648KKSE7Xa69wNQ+d9MrDcc17wf8oD11CwcPwFYCzNEQ2Io0n X-Gm-Message-State: AOJu0Yz8IOefydHy89x/YYfKEqFCqZx6fGZvE1ePnAmAJ8Qv7LRZFDbh Ih5HGrO23Tjb3JacqaiLREVxyuCgMfAXXFv6s6lBg8wFooxjzixjm56CoY2zN1w= X-Google-Smtp-Source: AGHT+IHyNIB5ow4TlUDHNH1tkbFmcks/+EVzVky0lfsDx0PedtHsujag8S9TeJckFJO9ghO9Oafw5A== X-Received: by 2002:ac2:5b89:0:b0:52c:db0a:a550 with SMTP id 2adb3069b0e04-5309b2bcbe0mr9592703e87.42.1722428406890; Wed, 31 Jul 2024 05:20:06 -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 4fb4d7f45d1cf-5ac631b04e1sm8624673a12.12.2024.07.31.05.20.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jul 2024 05:20:06 -0700 (PDT) Date: Wed, 31 Jul 2024 14:20:05 +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 08/13] riscv: Implement xchg8/16() using Zabha Message-ID: <20240731-60c5ad3ae9ec128886aed802@orel> References: <20240731072405.197046-1-alexghiti@rivosinc.com> <20240731072405.197046-9-alexghiti@rivosinc.com> Precedence: bulk X-Mailing-List: linux-doc@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-9-alexghiti@rivosinc.com> On Wed, Jul 31, 2024 at 09:24:00AM GMT, Alexandre Ghiti wrote: > This adds runtime support for Zabha in xchg8/16() operations. > > Signed-off-by: Alexandre Ghiti > --- > arch/riscv/include/asm/cmpxchg.h | 65 ++++++++++++++++++++------------ > 1 file changed, 41 insertions(+), 24 deletions(-) > Reviewed-by: Andrew Jones