From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5508CC001E0 for ; Fri, 11 Aug 2023 03:16:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=nr8yScRMM/QPUoUYRTCEMLodJ0oJCVG6GRL2uLibnT4=; b=IKaPDfdUzNdoRM cG97+tycnp9Ypy7pbyjtCKxB4cBysM/eSs82z+RA5vopX9hKUwUsPTYcupmEHso2AntmTHUtv8vTc P75ugpGgzzne03+9g6ETLGdyTUGVGAFjYbbDETjOv2bNdzVueT8ktmiH76N5bITAQD4gZeXSKpizo a0/cfJZP2syxJIX6tb7+ZRWgRqlzTiVCy+Qhlj+wRnu+5tpr8Tp0c3yquL2+bO13yat7Af4y7i3le RF0YrLtXp54xuHuQHaO9pYBZjb840f9p22uqPIwyXyy2pBiZD1eG7xJFd968bvaaYog8l49pe9tbh 2IrKyTvvwyigAE34IEnA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qUIdR-009GAH-2l; Fri, 11 Aug 2023 03:16:21 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qUIdN-009G8S-1j for linux-arm-kernel@lists.infradead.org; Fri, 11 Aug 2023 03:16:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1691723776; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pxVuMV7NfVels7NbA1UkuP4mEMIntZymXRlB6RKGCA0=; b=UnsyHOwkneVM7dx6SCMwpg92cMAEkBIslBnukU7hQaQCYrR7lP6TxIQrywYGkNE2iKCqcm 97fWROoyKylF6AzaW9MHKyqclPizsfRYEmfg4QSCHzli35Xjf6+9rQho9tHY1Ch/u4MfzE 4sywXyE3v7QaKczA7/lzybIA+vqMGi0= Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-477-COFlcCjyPoq1qgeAlJR9EA-1; Thu, 10 Aug 2023 23:16:15 -0400 X-MC-Unique: COFlcCjyPoq1qgeAlJR9EA-1 Received: by mail-pl1-f197.google.com with SMTP id d9443c01a7336-1bdb620e631so436915ad.1 for ; Thu, 10 Aug 2023 20:16:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691723774; x=1692328574; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=pxVuMV7NfVels7NbA1UkuP4mEMIntZymXRlB6RKGCA0=; b=M/itB/S18PGj4+fnQzlKqE1GKd/3TVMjbOjy3y8UCs2hpDr+xlIEfiO1RJDVViJ41P VUBI6cUm+uQpHeL7lAZMGl/tdvxLX+AnuqdYt4YZ7qj5JP604/Pug0NyOVpUue4bR+Tq W6POx6cMDFxSfyx+aIKHlzKdWJtlOfRcjvpZqYtLXObR7BXToPhA2/3WLMiv4+rui1/V OlQuZR2uwHiYkqgTd9fMLwQ9NeM0j4NxJUyE6+16fcdRZX0g2hJGywJZvdCFHzR3viIj wgkJ2yg3rD247QtyRmQU2WPkcBiJwFYyt/VVYK9tmB8EysLXRbGBnrM5ji2FiaYqlB2Z yYkw== X-Gm-Message-State: AOJu0YxSTH5tFlnBVsjHmsDKBnSgGHNHF+fRZsNKuwya/BgEXY7e2CSh N8bAqraCseo3sj+myAyCM1FdWr+LfqWwt5xDFDzPF5+h9n3OgeO+DGHPwx/Y1lKY0SCOSOfVEg4 3DXV+ZpXUfk85tjbENkzQQtjoryCQEpI/6E8= X-Received: by 2002:a17:902:d4ce:b0:1b1:9272:55e2 with SMTP id o14-20020a170902d4ce00b001b1927255e2mr857213plg.3.1691723774431; Thu, 10 Aug 2023 20:16:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHh/vwl3upbeZ36WYfzpIGbtQYzH/ApexffsIYFu0eUp+KR2cyRBkYjBzFNVTGEHb4hVszsqw== X-Received: by 2002:a17:902:d4ce:b0:1b1:9272:55e2 with SMTP id o14-20020a170902d4ce00b001b1927255e2mr857201plg.3.1691723774115; Thu, 10 Aug 2023 20:16:14 -0700 (PDT) Received: from [10.72.112.92] ([43.228.180.230]) by smtp.gmail.com with ESMTPSA id s88-20020a17090a69e100b00265c742a262sm2400175pjj.4.2023.08.10.20.16.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Aug 2023 20:16:13 -0700 (PDT) Message-ID: <60a2cc0e-df09-4305-6bfc-25b3d864040a@redhat.com> Date: Fri, 11 Aug 2023 11:16:06 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v8 08/14] arm64: tlb: Implement __flush_s2_tlb_range_op() To: Raghavendra Rao Ananta , 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 , 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 References: <20230808231330.3855936-1-rananta@google.com> <20230808231330.3855936-9-rananta@google.com> From: Shaoqin Huang In-Reply-To: <20230808231330.3855936-9-rananta@google.com> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230810_201617_662418_E04EA803 X-CRM114-Status: GOOD ( 13.56 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 8/9/23 07:13, Raghavendra Rao Ananta wrote: > 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, -- Shaoqin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel