Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2338459lqo; Mon, 13 May 2024 15:42:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXW0W1jGuif7qQuMHnNzAUU3nngfy0hnKXbGLqh70DajBJ4MZ8SWA8UBoyGup9E6etHlrwRMT6G7hVetk7wTVMXjVs4x/6SeO0BW8tDnw== X-Google-Smtp-Source: AGHT+IGYxbUcnNuOTYeHOjm+Qon4iFaKfTPtpC0IVZZNcQQKEK5uPRWNuoMSkkcn0kGq2utOEx53 X-Received: by 2002:a05:6a20:6a0e:b0:1af:b0d0:281 with SMTP id adf61e73a8af0-1afde09f71cmr15963830637.6.1715640134541; Mon, 13 May 2024 15:42:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715640134; cv=pass; d=google.com; s=arc-20160816; b=puy+YDuCZfOLxkDM/Y233BNbku9GCblz1XzcaWdCOtpts3uJ+puZ2/AJFvFpmpqJg+ 5B/7z5DELotvFBrlUTCfyMYrfWWn0qy7Nz5WIK/OUJ2j02c4H3sQx6xm537SejkLgMMT Ck2UAwyqYUFMq0+uom/WURtw1DElMlkYrwjL5DmbMGuu02iEaVcBRlcnFbGvuPghRA/q UJuqp5LhmzQFW4bn/SPQ7+SMmjrgbfpWcEhaAxAjyHTaZvbcGQKOVpyNvJpjIjD3zUNn e7kYvPjS5f9vTEZTJPTGIbWUZIoQPY0qy/u6gu4u/yJB3iBl8RlTM/qX4vHsk0xlmgLl pQqQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:in-reply-to:subject:cc:to:from:date; bh=OXHg5pqrBKk14anEW1JsUrrKj6Q2c/i7/4KXu1EeZAY=; fh=cL30p5E8v7LJWhZhdRVpwx1YKHQ277enADCu72/lgZs=; b=Ci6jJvtsoKsb2j1PLTZzEbHpmMi41yGOYB1BkOH7VJdmERkpdMu/8vRjWxCMoYWa75 9Uk6u08PVRqOLo5JrwkqHFXFwtSHMrVGYYPUUwM0r81yrNCVY52y5kfDlbx+wYkeNCOV 8jSflCrWdcsV2IuBuY9UwJpgwacFOKA93txVzXDewSd72/6lL/7MhOIfr9Onv8baUBry UXnOgihISF40tyElbKCa6lAlYJpzgUKJmRjxHzLjCIV6JBNiFgUJ3iRpNzVF15Z6H3B5 qa4bcpGPP8g0HeR+jdg20S6zTbRFGsVUVTVnY2dNnpyiqBZXQWy2n9hZrPkd8seUIgNv 6SwA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-178148-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178148-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linux.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b671471c88si10186187a91.92.2024.05.13.15.42.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 15:42:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178148-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-178148-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178148-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linux.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3335A281CE5 for ; Mon, 13 May 2024 22:42:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B73E985622; Mon, 13 May 2024 22:41:54 +0000 (UTC) Received: from gentwo.org (gentwo.org [62.72.0.81]) (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 2703153E30 for ; Mon, 13 May 2024 22:41:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.72.0.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715640114; cv=none; b=I49rKYKyoElNvbW9oEXoIPtbAJN47S/9FvHx7fS4q2PRt3OasomGnFTbLI49Gxr19ESsPXejeZJ0m2SaA8i67ndkAZVks0Ue+yHCktd1CwEWtHPeWzJxveWa9fJBG/KFtTcu1Aan1GurOx7PnmZ3soH3tbiIAXecQQFBE9MmBGI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715640114; c=relaxed/simple; bh=a4LzCokIiFubFamnVGpZlXQTo+UT76ipM74gha4lRBE=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=Hfmpui9j967HsohSET05jjCHiE7psL+frjL39BEdSnhObeOrv2ww1Q42vToTzUYRcdxYdxPfNrvumH6znylPaj8gnxuL0KbkcjX2YRXZZ2nj0J+4zIsuSMy/n9RYg0Y5+fZKZkhRx0W0MNqEyG7xLnQr3wxBKDzCFY1lw7klqlM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.com; spf=fail smtp.mailfrom=linux.com; arc=none smtp.client-ip=62.72.0.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=linux.com Received: by gentwo.org (Postfix, from userid 1003) id 4F76040A94; Mon, 13 May 2024 15:41:51 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id 4EE054093E; Mon, 13 May 2024 15:41:51 -0700 (PDT) Date: Mon, 13 May 2024 15:41:51 -0700 (PDT) From: "Christoph Lameter (Ampere)" To: Yang Shi cc: Catalin Marinas , will@kernel.org, scott@os.amperecomputing.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: mm: force write fault for atomic RMW instructions In-Reply-To: <6066e0da-f00a-40fd-a5e2-d4d78786c227@os.amperecomputing.com> Message-ID: <8c6cc22a-5e24-ede5-94d9-06064a68403d@linux.com> References: <20240507223558.3039562-1-yang@os.amperecomputing.com> <6066e0da-f00a-40fd-a5e2-d4d78786c227@os.amperecomputing.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed On Fri, 10 May 2024, Yang Shi wrote: > Yeah, I'm confused too. Triggering write fault in the first place should be > fine, right? Can we update the spec? That is certainly the best solution. Howver, there is a large base of machines out there now with this issue.