From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (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 6BD2C20485B for ; Thu, 20 Feb 2025 18:12:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740075126; cv=none; b=mLPKbJ7DrmBMfPCRmRWNMuO+EAcZbmhTbTyfRy7ZFtO1wlk0bRC7T+sHwBpflMybQzR2Z2BTIROJUJCcZb52c/VxYGDpRxVZyzO6NisSql0uDcRxFlM7fBgIhpe0JY8nMDFn77sfnrsVVoIihaHB70t8aHOKpfzNdXIKkSpe5Tk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740075126; c=relaxed/simple; bh=U7NEU5p+86CmS2ot4xSRm3tLGJInLZjdrsEntbaiLRA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ukLVbyD2rasYqMFoLguJfHnM4BRWL6wgdQ6UMVIvmiVjW2JNbzCg+EMnZWh5tJPOjJVkPJ+ZOl/w3yTL5d5MJfEU94HcPaby3vCQLTJ6cG9qJ6W69BEirxPm13dSHjx3LiktA3vROssMGMZZZ/Ik5u0wYpnBG++eVE9Gm33jTVM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=gBxOHilS; arc=none smtp.client-ip=209.85.214.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="gBxOHilS" Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-220e989edb6so34463215ad.1 for ; Thu, 20 Feb 2025 10:12:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1740075125; x=1740679925; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=JPYGV4/Ybq5Qlp+Qgl6PHP0uBHTPtS+cFplKODIBa0c=; b=gBxOHilSHraDFl9BFQwNJSKLd67RETnveFaNS20138PAxx2tYixi7JSDodM9pNOSUJ rMI+hrJ8k8WOV+nc2W0DzjE+Hv9rdV1hIYUuw8gWt7WKH1Y3BIUFfyYxMU046y4apTeN NDpiMNJRvr/gW9SxxYhFxSuqmaGZsjjOu91SV/Kw5tofvvsr0GI4RNiMjvMhjnQZxu6J tfUCd5gIexSDEU0EwXDrv+ZJ9hcEwAi/pvWd3qDWmknOghcahhrXpg/JmYeADxiFtxUo 1k/BuosOD4kb+mEHSX1wg4geCeu0/TaUKhLIxVLNlf+NS4Z8LwXaStIUDY7gEZDRn2Ia nvwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740075125; x=1740679925; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JPYGV4/Ybq5Qlp+Qgl6PHP0uBHTPtS+cFplKODIBa0c=; b=JjHOQRZSxSLKGJFsQR6t2C9CFMeE1pwPUj/11HlB77lNdS33vNDsdSXaHagxZMWKGH HIznDaNQmpqwy8AC3ChCjrc0XtiTK1aGoyPi8THTek+DoTSZIFa32iZYszJ6ZjjB4lYh ecCcxz5iQRnLKFm9P4+wndPd08Wm4idcmov6Ud/7DaqrZjhaBDkYUGmUILxoSI1qPczi d2bDyoZCJ3WODZ3CMOf9Tu2GdyKBCUeRkBHJN3nVFy11GQakezaCHD+sL2ujTOeiJE8i Wcxy5Nc4b2LCKRA1VxpHf4J7UzgncGW7SQRgbF5do6OCmpcqU0eE4zPohM0hjX7sAJ1k MQPA== X-Forwarded-Encrypted: i=1; AJvYcCXnjcOj3Uw6D6vuTzSDCzzgstp/bvOGtaVSeAZxvEZ+pjSSoKWjPIkJA9HvT37ZHkCDO/Oy8oKVcGWmHc8=@vger.kernel.org X-Gm-Message-State: AOJu0YxFxGlEDdZDmX42ixWC95XCc2qIT+KdVfegO4xFE4eryqpG9XR8 obvLEugFUt6mNqzLCFKr/qt0bgEHLJj4jmd+TboiUu0ib1jtK6JMlsV487xdC3o= X-Gm-Gg: ASbGncu6V6i3JiIoJeOiZqhMSTFVezS0wpmR1WsBd9vfP3HN8vSEh6MjKQGv9wpxt+g mCw7Us/w9kRXlygLVVE/AbemSWJ4I8+k5EFnyzzqPsbYvADmjlCn14g8cJGhmnzkF43wju8jbYN 8ssQtKEpg5f9Ne3WSXPfnZJE2mufUJiSYoCPwBcHN/L3i1N/tAEJdS+5+w7I15xyqEgneHw0zs6 Eh5d2jGumsgwEob1GS+qNo2Z9p7XQT0/VbbGZn/kNW7HInv7mQ7o60TJN8s6jixUg8AxUy0HmXH w5fNxsYSesS9kgHLBKiMQroyuC8TZxwBesWLUk7KxXjVgSFmPqo/41k= X-Google-Smtp-Source: AGHT+IEYJgTH2xijRGZv7IRxIjgPMGI3m3DAMNwwlL4W85cg6VLecg7jKjF0QGzCafBl8PC63PSroA== X-Received: by 2002:a05:6a21:7011:b0:1ee:d860:61eb with SMTP id adf61e73a8af0-1eef3deaa0amr134496637.39.1740075124654; Thu, 20 Feb 2025 10:12:04 -0800 (PST) Received: from [192.168.0.4] (71-212-39-66.tukw.qwest.net. [71.212.39.66]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-adb58618700sm13027051a12.36.2025.02.20.10.12.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 Feb 2025 10:12:04 -0800 (PST) Message-ID: Date: Thu, 20 Feb 2025 10:12:02 -0800 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] Alpha: Emulate unaligned LDx_L/STx_C for data consistency To: Linus Torvalds Cc: "Maciej W. Rozycki" , Ivan Kokshaysky , Matt Turner , Arnd Bergmann , John Paul Adrian Glaubitz , Magnus Lindholm , "Paul E. McKenney" , Al Viro , linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org References: <45155869-1490-49ab-8df1-7ad13f79c09a@linaro.org> Content-Language: en-US From: Richard Henderson In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2/20/25 09:59, Linus Torvalds wrote: > On Thu, 20 Feb 2025 at 09:54, Richard Henderson > wrote: >> >> Crucially, when emulating non-aligned, you should not strive to make it atomic. No other >> architecture promises atomic non-aligned stores, so why should you do that here? > > I'm not disagreeing with the "it doesn't necessarily have to be > atomic", but I will point out that x86 does indeed promise atomic > non-aligned accesses. I should have been more expansive with that statement: I didn't mean "no unaligned atomics" (e.g. lock orw), but "unaligned normal stores may be non-atomic" (e.g. movw across a cacheline). My guess about the gcc patches is that it's the latter that wanted emulation here. r~