Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5271520rdb; Wed, 13 Dec 2023 04:16:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IFbXL6QOZH0/OfQ24eupmVeiJ5+B8W67hmgwLTS0H6Wz/cg6vsozXKwcIOaOt7LiJ7DK9Hk X-Received: by 2002:a05:6e02:1c24:b0:35e:6ac3:2d7d with SMTP id m4-20020a056e021c2400b0035e6ac32d7dmr9487574ilh.23.1702469812792; Wed, 13 Dec 2023 04:16:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702469812; cv=none; d=google.com; s=arc-20160816; b=cgvmQ277/Zl3PlDzyAVipdm11IXZ4PJ77IjUBXtejBTyndVPy2PP+lS1E0NVnFK1sm W93Ne++2sPWiM0O7kNZ4Dhho0z1yg6DN4fM1/55li1paVEODsmtQe38fLyReQ0hjvsuG CFy1kr4z2OKa61xQPuQ4WFzX7kpgqS2aDwBzPMwdDhQ97kXOu7Jkk3FlIf0W6sUBIbJT hJd+2x7tdxpsQlpjCwc+E3qpAxv1wd0OqB17T8HiS9Gi+z3ORR85nghGxVDlOiOySGQW 6wkxEv6WlWf+UEMHpTT9k1nAYYKpd6jVqdsVTMqPtf8EKX3qUMs5tNvBh2ubPOJI5Lqa m6SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=JCyntcnUvkvC6PY+QewmlGqv1vyw04R1SvG30iMGWfg=; fh=cIWKI0HYsEA7kiFbHu72OKEzicORWAq8GZp2MpfT7fw=; b=zP95TPMens8nmrcLlXgB2reT/4ir07Km4pfSucbN012pnfUbF01bdBe/ep1pPiBkRN ou7bpSxVqoXtjA+5Hy+v5jfTkaUEjQSDKexv3TDXhkFHUnyXM3am7Wgx77hzjD0KVMZl Q3/hOmlUbKvwLfq1qG0kg6lgh0TjNWU7UwGIqBEqQOsy7OitIUi/hEp24Jru7Ug1SxNh ZbC1f67BosXNDaZv1/tQqDcHqbmlv1fW3Pce5tgYPNsjj4zZ1TOucK1T32GyBReoqAAO O0Zdmr3gsmkqrxkl9Lia7T0AZXdVm+sJLZIexFaKGubOG5z0YPkFVDxAImdUzrgzF/8f Qh9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="IjhFz/VD"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id t14-20020a63eb0e000000b0056959099f46si9188080pgh.856.2023.12.13.04.16.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 04:16:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="IjhFz/VD"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id E8CF6806CC0B; Wed, 13 Dec 2023 04:16:18 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233391AbjLMMQG (ORCPT + 99 others); Wed, 13 Dec 2023 07:16:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233364AbjLMMQF (ORCPT ); Wed, 13 Dec 2023 07:16:05 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6AE3D5 for ; Wed, 13 Dec 2023 04:16:11 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0788C433C7; Wed, 13 Dec 2023 12:16:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702469771; bh=FqzyTNak1M7GLTbKygDFdAG7bdZ6TRCmwCyv2gpQrOM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IjhFz/VDOcVnE8XbtuP1EplU8kstgfiHicAUzy5nobzNK6FfAm/SnCfdqRdlBPeEn C0THqgjPppFmPbKOy3mzvlpsD1eAoK+nsYyOzjCx/Sw4NXgLRniP6MWXY2BhwUBmWM gJ5fJRWhNs1MqorUbu4GvbU4sNVXsL/bYOlr8S5weu2reRwk2g0uUCpVpJdZVjHwTH t9xUvdq/BzFsoSBEytRcOb26LDud0Dn5R2vJrhJlr47V3nTBUIYHxvTjE9HAte1ppc GC4f7dy7xJmxnFnLldw3XVzuTYXPY8CCrbWaK122BJSnF+zast3r36vWOPMBjIte7s A19QhL9Ib7yIA== Date: Wed, 13 Dec 2023 12:16:05 +0000 From: Will Deacon To: Catalin Marinas Cc: Alexander Potapenko , pcc@google.com, andreyknvl@gmail.com, andriy.shevchenko@linux.intel.com, aleksander.lobakin@intel.com, linux@rasmusvillemoes.dk, yury.norov@gmail.com, alexandru.elisei@arm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, eugenis@google.com, syednwaris@gmail.com, william.gray@linaro.org Subject: Re: [PATCH v9 1/4] arm64: mte: implement CONFIG_ARM64_MTE_COMP Message-ID: <20231213121605.GB31326@willie-the-truck> References: <20231113105234.32058-1-glider@google.com> <20231113105234.32058-2-glider@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 13 Dec 2023 04:16:19 -0800 (PST) On Tue, Dec 12, 2023 at 05:16:15PM +0000, Catalin Marinas wrote: > On Mon, Nov 13, 2023 at 11:52:30AM +0100, Alexander Potapenko wrote: > > The config implements the algorithm compressing memory tags for ARM MTE > > during swapping. > > > > The algorithm is based on RLE and specifically targets buffers of tags > > corresponding to a single page. In many cases a buffer can be compressed > > into 63 bits, making it possible to store it without additional memory > > allocation. > > > > Suggested-by: Evgenii Stepanov > > Signed-off-by: Alexander Potapenko > > Acked-by: Catalin Marinas > > > +void mte_tags_to_ranges(u8 *tags, u8 *out_tags, unsigned short *out_sizes, > > + size_t *out_len) > > +{ > [...] > > +} > > +EXPORT_SYMBOL_NS(mte_tags_to_ranges, MTECOMP); > > I may have asked before, what the reason for EXPORT_SYMBOL_NS? Is it for > the kunit tests? Otherwise we don't expect those to be accessed from > modules. It looks like it. The Kconfig option for the test is tristate and it calls this symbol directly. Will