Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp802771rdg; Thu, 10 Aug 2023 23:13:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF564vBZkAVq+2vTJ4xExIB9BD6gvs52lX+7+u9sROWHAc5TBaAw+A06jKwaU3UzXcCYwtP X-Received: by 2002:a17:907:3e8f:b0:99b:56d4:82bb with SMTP id hs15-20020a1709073e8f00b0099b56d482bbmr5840009ejc.6.1691734425089; Thu, 10 Aug 2023 23:13:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691734425; cv=none; d=google.com; s=arc-20160816; b=vpgoG6nCDQYErmnG+2SJYPdIpFdktR9jwKYn7yQPpl89xv4htIQGkYHLBAgSn6GeoP eMziFLg6C9aNzfAtdjBPgo0OQXJl5Zs39FNuIvkG/9nMsjHhy7aTWJeV3a+k/ftE/Pge m6mK1Z5Mj0oNizHHtHHwplUhHW/CmSxMQ4P00H+mxMul3xJVYjwwFn6LwfBOR6tmXItp 95tzfNtTo/+18xeT9WzZ38wrAOLFxg+qMPu87XDG7qwEDJAdgGG55WFhPOpLE6ZlaEj2 phyan4DqO9YR0BW5zfVVOcXOuP9NZri/uKC5m8Ty5HH1puh+VLZGrb2zRyMZWaf0ydQh S3XA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=OIa9YyTqwhNrd4vOTw3RHcrRyaG5nOQ7ik48y43Y4K8=; fh=gCmhkkXOGzgKShDZ1VA8I9oX8b+8AoHFoFVURxVyzH4=; b=AIAsUMX6DFCxiUUsKrq8DmMUle2OftO0SF/vD4DjlQ8m7rXVThu4Cpm4M5BTswzoIX NJ/NhGg8ZmDC4c6lhKvxmuRfix9WRBeKz3bgdd8MazF256DWpwPF9aUPYV8qkczjqaGN eKjzIMTCnvY2DtnBeW5dSjKFlzx0QZuzeS4gporNcrBJO+Fmsj7PeJaazvFrTMbIcioX TOmFO4Tw7SbIwR4eGk3LGBhHhqti1vUeyrrcFnID89X8Si+0GjdmKt3w2A98dFVB3JFk 67grx3v3uCYyVy40pU6uygkzGhrtdoNd1t2asPap0ZsjQPfq4KrYI5sgPTgUZ2CP/JqZ E9eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=svuT6WkK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z8-20020aa7c648000000b005232de37cf8si2951343edr.275.2023.08.10.23.13.20; Thu, 10 Aug 2023 23:13:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=svuT6WkK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229580AbjHKEwX (ORCPT + 99 others); Fri, 11 Aug 2023 00:52:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232555AbjHKEvq (ORCPT ); Fri, 11 Aug 2023 00:51:46 -0400 Received: from mail-ot1-x34a.google.com (mail-ot1-x34a.google.com [IPv6:2607:f8b0:4864:20::34a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE7132D66 for ; Thu, 10 Aug 2023 21:51:44 -0700 (PDT) Received: by mail-ot1-x34a.google.com with SMTP id 46e09a7af769-6b9c82fe107so1880696a34.2 for ; Thu, 10 Aug 2023 21:51:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1691729504; x=1692334304; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=OIa9YyTqwhNrd4vOTw3RHcrRyaG5nOQ7ik48y43Y4K8=; b=svuT6WkKlP0CJcBY9yHu6f0ZIVXj+TBAwFC4vkyG4qte4KX/hQhTloOdeOotpgH1+T DXpyYVGUloxDx92v1VAZ665bF3PzFTvuogex9H+ez+4kOcSEs1NpPoKrr5j/QVd2rwl6 g2f9NRZm1/rbKvT/4R6+hin2d0V69Zt6Nx474DYbJlUKYFarceVSUjKNMNT4xaVAyiPS urZw2SxeG19jsWZAnALLEXkBB/2p9q8lAuwOxHwws4YfL9owdTZpPTLkoayBgxmdvQOR pgBNB6+4Kx/FfI/gTiUIZ6F5vL9QrNKLOP24qyMOVlYGOsPi0f18WfZOnb7/7uRUapaO 9pDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691729504; x=1692334304; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=OIa9YyTqwhNrd4vOTw3RHcrRyaG5nOQ7ik48y43Y4K8=; b=F0UYuThYqt1mHjiLPdAB1MRTumbVpMc+BVytVoEMlry9zvGqwfQwciVLaqWhIOTx+q WN63aHuFcmxsjVkZ/68TOpn+yYUfsPK+Vwfe6+akdRIB6ym1ZBLbugHqFbtjH3WPUO9z 3Rap60+vu4sCGS49mWOABpOaBwGEWsgW7+k+gCTJa/34gtTENdGId4wnnrXw3n7XOlYy oYkO0El42mhCRYWCPQhQDSkezTjmgvrcGr3hyg0KKTRByzC56qRBaS9BTgNnanb37n1v pOHs5W4wfCdOecrsjH8SH9RDkHo5RBJF+zxFKWr3+bLRg0vPsXNE9CT7ncrgmho31SjI SxbA== X-Gm-Message-State: AOJu0YwO1gczwM/xNnthFtOYoijThnnJroEiBO/J/3PXDhlUOxW5z3pr kXImM3Tve35hLne2FMYolo5kVIoaDYai X-Received: from rananta-linux.c.googlers.com ([fda3:e722:ac3:cc00:2b:ff92:c0a8:22b5]) (user=rananta job=sendgmr) by 2002:a05:6870:8c32:b0:1bb:7b48:32ab with SMTP id ec50-20020a0568708c3200b001bb7b4832abmr11929oab.7.1691729504052; Thu, 10 Aug 2023 21:51:44 -0700 (PDT) Date: Fri, 11 Aug 2023 04:51:21 +0000 In-Reply-To: <20230811045127.3308641-1-rananta@google.com> Mime-Version: 1.0 References: <20230811045127.3308641-1-rananta@google.com> X-Mailer: git-send-email 2.41.0.640.ga95def55d0-goog Message-ID: <20230811045127.3308641-9-rananta@google.com> Subject: [PATCH v9 08/14] arm64: tlb: Implement __flush_s2_tlb_range_op() From: Raghavendra Rao Ananta To: Oliver Upton , Marc Zyngier , James Morse , Suzuki K Poulose Cc: Paolo Bonzini , Sean Christopherson , Huacai Chen , Zenghui Yu , Anup Patel , Atish Patra , Jing Zhang , Reiji Watanabe , Colton Lewis , Raghavendra Rao Anata , David Matlack , Fuad Tabba , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-mips@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Shaoqin Huang Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Define __flush_s2_tlb_range_op(), as a wrapper over __flush_tlb_range_op(), for stage-2 specific range-based TLBI operations that doesn't necessarily have to deal with 'asid' and 'tlbi_user' arguments. Signed-off-by: Raghavendra Rao Ananta Reviewed-by: Shaoqin Huang --- arch/arm64/include/asm/tlbflush.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/include/asm/tlbflush.h b/arch/arm64/include/asm/tlbflush.h index b9475a852d5be..93f4b397f9a12 100644 --- a/arch/arm64/include/asm/tlbflush.h +++ b/arch/arm64/include/asm/tlbflush.h @@ -340,6 +340,9 @@ do { \ } \ } while (0) +#define __flush_s2_tlb_range_op(op, start, pages, stride, tlb_level) \ + __flush_tlb_range_op(op, start, pages, stride, 0, tlb_level, false) + static inline void __flush_tlb_range(struct vm_area_struct *vma, unsigned long start, unsigned long end, unsigned long stride, bool last_level, -- 2.41.0.640.ga95def55d0-goog