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 X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D78A0C433ED for ; Fri, 21 May 2021 12:21:16 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8B74B61132 for ; Fri, 21 May 2021 12:21:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8B74B61132 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=oPlTUZ8J/lTYSptrdh1TG/YHM2JtF0CGf4kF7lmQFKc=; b=ftmtGELjNtdyFFK8QX9HaO4KCn Iof2OeWM9xWOsMaLyJKVQz1oZX8N5k34fTKYCd0y6Z9eysNHUsSqNIH6ofjoEYgJjkJRhOmxU4OpH kz3OvCMD5dhq9EvXlGyUQvU90um2EIKqUO3KA+ag4DLEGoaXnI42bcHPjVYHF1BMlxCbkETs27Dkc hlsQlPaJDB4+LS1JUxFczmZS7MTjqK96lEWnAElQkNnPmk+fD9prcz91uWuibxONKdeY3yQgnzBHm r26xFVfr7vIYj4xLzFCX3oB1Lre35YnHOUi4BKO5XVc0AY5BpPeHulWrn3PE//AoWXPMPt4SB5fVf PWRny39Q==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lk47J-005HWI-Pz; Fri, 21 May 2021 12:19:02 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lk47F-005HVk-OX for linux-arm-kernel@desiato.infradead.org; Fri, 21 May 2021 12:18:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=F9ndr3yf9hnVl0eRSE5VGRwbbacWqU8Gn14sJohsl/s=; b=If2mEB+4MwZ1tJMZuF5yY0ll2k 2SDeW5+aqq/LQ5/AkHJT+BK0z+B18HfGHTXj/FzLn6vT52Uj6ytSwfuDJj/Mw8L3qssByQuS+T6Vu atlL+4YyVGaje1UGi8oH+4VeWlelKtXdYLKuEySQPblmIRabUu86Xo3PG9qVZI2CMgUltCtXmrA6e DAWbxpMcvOs220Vp3cAMQHA56rmMEtSHR4EQuMnctOJpk0/uuGNUpYfh30s0/JB/Cl+g23sptpBVX jTeoFJSeAkf4JxDuaIwNcTKN+l/iWWFPm5hJVFowDFjXpr2XAWw4tNpYrxHd92HunT6vjdMhiSjvQ BmaRKirg==; Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lk47D-00H5om-8W for linux-arm-kernel@lists.infradead.org; Fri, 21 May 2021 12:18:56 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9FB4F1424; Fri, 21 May 2021 05:18:51 -0700 (PDT) Received: from C02TD0UTHF1T.local (unknown [10.57.33.243]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3EF9F3F719; Fri, 21 May 2021 05:18:49 -0700 (PDT) Date: Fri, 21 May 2021 13:18:46 +0100 From: Mark Rutland To: Fuad Tabba Cc: linux-arm-kernel@lists.infradead.org, will@kernel.org, catalin.marinas@arm.com, maz@kernel.org, ardb@kernel.org, james.morse@arm.com, alexandru.elisei@arm.com, suzuki.poulose@arm.com, robin.murphy@arm.com Subject: Re: [PATCH v3 05/18] arm64: Do not enable uaccess for flush_icache_range Message-ID: <20210521121846.GB1040@C02TD0UTHF1T.local> References: <20210520124406.2731873-1-tabba@google.com> <20210520124406.2731873-6-tabba@google.com> <20210520140216.GG17233@C02TD0UTHF1T.local> <20210520153735.GM17233@C02TD0UTHF1T.local> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210520153735.GM17233@C02TD0UTHF1T.local> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210521_051855_366412_72F0F92B X-CRM114-Status: UNSURE ( 8.81 ) X-CRM114-Notice: Please train this message. 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-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, May 20, 2021 at 04:37:35PM +0100, Mark Rutland wrote: > On Thu, May 20, 2021 at 03:02:16PM +0100, Mark Rutland wrote: > Having thought about this a bit more, it's simple enough to do that now: > > | alternative_if ARM64_HAS_CACHE_IDC > | dsb ishst > | b .Ldc_skip_\@ > | alternative_else_nop_endif > | mov x0, x2 > | add x3, x0, x1 > | dcache_by_line_op cvau, ishst, x2, x3, x4, x5, \fixup > | .Ldc_skip_\@ Looking at this again, that "ishst" should be "ish", but otherwise this stands. Mark. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel