Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp202273lqp; Thu, 4 Apr 2024 10:34:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV9IZFFYM4SDJImSXeoKgZAIoAG1k8gYWsTFbxy4H00/WA+kOhkjj2jxk0sM715NifINKn6vz4Au5I1Zg098MlXNv8u8sZ8HF8svB2pzw== X-Google-Smtp-Source: AGHT+IFUq4DKJBl21BIbZF1TDQonLohbbrCYkMZTD5WavQ4azvyDPfNQWIRnCtn/Th49VVqMx+iV X-Received: by 2002:a50:d792:0:b0:56c:17be:5b03 with SMTP id w18-20020a50d792000000b0056c17be5b03mr308543edi.36.1712252067734; Thu, 04 Apr 2024 10:34:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712252067; cv=pass; d=google.com; s=arc-20160816; b=f7ZKLsStPTyH56q93uM6Mv9OhLqAqx/EfgOrmyVpjz2T0gsFY79yyom+7muhmBL6oF LyWCq9ovpUieufNCLGGWqVJYD2U4YDgP2Sjio4QctF82wG2uzBut3aVC8s959NsElQLy XtSrXDME6D10EN2QYcDTDZkvDq/twFX2B3UpTJq5B36IpFYgvOoN/HbHLVlgOZfiBdNv 5NDosxqdQyCyDVWCsJxXEiIQ5K+uvUGXNtpxEKWvIFrqtHP2IjwHzeSlMxeP1fhz2Jf+ nex9lX4uvLCkyj2ybuCR4p9B9697e4Z33mwKadWbz4dPzlopwb4hSDvQA7X2UlVOFfcd W1JA== 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 :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature; bh=HNi7AeL3RDCMNdsVC2Wgi/n+bkOOEO02pN33VdT5XlI=; fh=J7A7OBX81+wSg+aYBQoB4FsYkU0feQ6qjxCcT9vDpZ0=; b=TKX4Qkdda/uGMrTvuvUdATpDN9QvHyWBttSzLEA2olaxu095tQfPXyIf9xMvgnBFPD J8KkHJELwGPdOL46loigoGDEilzuXqBeCMVGeonibhtMxd4vu/TWK/x+Jr83C6zW86qA Ru00ZvOzROLodoaX/suw3ysfKVOlDDQdAuAUMzfl/q12Mb7tkXAexYL07/aT1tfBtp9Q Krb/IqE8YHtqdOnVCCBH1aVIPBfTb8PCifCd94SMv3Q1kD5Deb8q6g68vf4hj4ysY55e znaQ5lEsJ1/SXcLdWjYlqp4S7vF+PA0hNnbjKwfrlKF5FC4BCxc39vH53EkQw/ol9pC4 m3CA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BJke3yiy; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-131890-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131890-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id i3-20020a50d743000000b0056c2c992e79si8114397edj.9.2024.04.04.10.34.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 10:34:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131890-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BJke3yiy; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-131890-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131890-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 5C4A21F2BDDD for ; Thu, 4 Apr 2024 17:33:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 712FE12D768; Thu, 4 Apr 2024 17:33:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BJke3yiy" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.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 9E33A12AAE8 for ; Thu, 4 Apr 2024 17:33:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712252005; cv=none; b=lT6jWJAYjcDhiISoLeImqA2wp7dEXZfcyZh+WmKjKnHFMvmZFDSi65XPMdzZheoLPJnPdI7xtgIt/G6yh7Z7VD3VDVfi0IFeasiPJzDbQiuHmF65/Bai0f/q8OybWYv6eI6hEsQULiRREdJ0VNMYRJrUCVZS0QV0pUXgLNP9Ftk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712252005; c=relaxed/simple; bh=M7LFDxfI+pw4DBIRnlTAAJBqrunuk4w84JpUPz9y0gU=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=hKXMT5eQQAvo3tbV+jst30TtM0T97PprOuSx5Tq7AFaZ771fMssm8vmmQyeOpu0lqj6k33YwJiV4PFNeIwL673BlRAMItCTdgA/F/2CEHDRKDltPbw53afPIGigTdJo61b6O9j59zeB1Sm/N1Q3zQ1u/iAkx8uDA0qebtMCLYUA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BJke3yiy; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44DA8C433F1; Thu, 4 Apr 2024 17:33:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712252005; bh=M7LFDxfI+pw4DBIRnlTAAJBqrunuk4w84JpUPz9y0gU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=BJke3yiy6Tqrtojinr6wwXkx5P0Y95W8EHm7B/G8BSKU0P0C5+C8Nh5+R3d/5sW4d S7G7g4WJwD0crZtFSkNF3BZMfS6d3eQ7MGe8e+kheWsVOER/VIfHBb2IJSTQAfkUxx IYLxPGy3Ol3j5TF2T9VG3ausArqHk7xz1s2G0qpL8ygd6GBZ9OTwZm3rFZqxMXNpzr IJUl1/X1poPjs3n1boRNSHPj7BCq+wdwHzZxeXqYhs6i5LSy+hHyCp+wGF/OS+qpKf S/oEtNUFM54cu56Hez85zena0Xi2slzkqD053xqXdHGUvX83IefXajmseA3n7jwzrj RUq0XF9T4YyTA== Received: from 82-132-213-213.dab.02.net ([82.132.213.213] helo=wait-a-minute.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1rsQxj-001Zu8-Ik; Thu, 04 Apr 2024 18:33:22 +0100 Date: Thu, 04 Apr 2024 18:33:16 +0100 Message-ID: <87frw1rq1v.wl-maz@kernel.org> From: Marc Zyngier To: Gavin Shan Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, catalin.marinas@arm.com, will@kernel.org, akpm@linux-foundation.org, oliver.upton@linux.dev, mark.rutland@arm.com, ryan.roberts@arm.com, apopple@nvidia.com, rananta@google.com, yangyicong@hisilicon.com, v-songbaohua@oppo.com, yezhenyu2@huawei.com, yihyu@redhat.com, shan.gavin@gmail.com Subject: Re: [PATCH v2] arm64: tlb: Fix TLBI RANGE operand In-Reply-To: References: <20240404053624.1485237-1-gshan@redhat.com> <87il0xsdc0.wl-maz@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 82.132.213.213 X-SA-Exim-Rcpt-To: gshan@redhat.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, catalin.marinas@arm.com, will@kernel.org, akpm@linux-foundation.org, oliver.upton@linux.dev, mark.rutland@arm.com, ryan.roberts@arm.com, apopple@nvidia.com, rananta@google.com, yangyicong@hisilicon.com, v-songbaohua@oppo.com, yezhenyu2@huawei.com, yihyu@redhat.com, shan.gavin@gmail.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false On Thu, 04 Apr 2024 11:26:20 +0100, Gavin Shan wrote: > > In summary, we need 3 patches but the one fixing __TLBI_RANGE_NUM needs to be > PATCH[1/3] so that it can be easily picked by stable kernel. PATCH[2/3] would > be to improve __TLBI_VADDR_RANGE with masks. PATCH[3/3] will allow __flush_tlb_range_nosync() > to do range-based TLB flush for MAX_TLBI_RANGE_PAGES. That's about it indeed. M. -- Without deviation from the norm, progress is not possible.