Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4787587rdb; Tue, 12 Dec 2023 09:16:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IF9nVFB8vh3c+FgO2JmPpx44VGj4SQM3hxC52B1Lm4gcqz9lgYwGXBboekVnosPgpF8yHsd X-Received: by 2002:a17:90a:898c:b0:286:bc8c:a23d with SMTP id v12-20020a17090a898c00b00286bc8ca23dmr5191196pjn.45.1702401389440; Tue, 12 Dec 2023 09:16:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702401389; cv=none; d=google.com; s=arc-20160816; b=gGhyrugcwZ+zeSEm0oSTjlr7kgcb1t89lq8eTFI9POHquwm8ZIwuIf23LU9OpnVMI+ PYZbfsU7FnlSGiCEHz66gjroUhqT0+zl74ACrX7BF0k9Vn9nHOwW1xktKtm58Rv6PY04 BFvTBEYZimyRnTpx/67GTFeUxSUHciHQ45c8yDLGEEFqGekdEORGkQEqDbGtkKlGiUrC ekilFujFdYUw+8yF8ycWv7V0VGIJ4U5QNKQiSpHhIkZ757hwtc/1pHYSwtS/6i/5jiDV ZjIFz6+B6MYP493mmqiZALxHwdA5Cqg8sS37cv/XzblW++MZco2nQdiDYYFWM5CriHGA 2XZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=+QIzEN05oTNCw5+wmdPcl4vYNpVu6f0YixArPHJyc9o=; fh=0JQmW7xdAE/XjsRtMti+IKQwjHH3yd/qowBnwzDBl7U=; b=Pln9jRRMaHlmF8wRrF4HNZgnq6EKtc/FzVbDni8RLCBfaclZxmTQMt3plc+Ygfna/3 JULoPjrfgmTzSc6E1a2q720phpUvrnDU5Y10NUphOxWzZvcnTmY6VW2SwFbMuvvEG+jv j0A3/H59DNfvwAQelGSeshBN6JGywynVwW5XJuGJy2tLUSx4xPJ3TveG9wmz9gIFdtgP 1lP+qVu8b6Fb21JFpeFMyMQPG+ufvMj5yqV9ASAdH1tiMF1xwvMGFlIlXvxpZVshQzlg 2BANopoRqyBsP4g2QGTymzFMZeSiurWr/PBEw70Dj+UE52kOXz2LhPyekd59y319uE6e XMLQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id d90-20020a17090a6f6300b0028ac926cd0fsi792572pjk.141.2023.12.12.09.16.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 09:16:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 5A562801B332; Tue, 12 Dec 2023 09:16:27 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233105AbjLLRQP (ORCPT + 99 others); Tue, 12 Dec 2023 12:16:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232546AbjLLRQO (ORCPT ); Tue, 12 Dec 2023 12:16:14 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0FCF99 for ; Tue, 12 Dec 2023 09:16:20 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0C55EC433C8; Tue, 12 Dec 2023 17:16:17 +0000 (UTC) Date: Tue, 12 Dec 2023 17:16:15 +0000 From: Catalin Marinas To: Alexander Potapenko Cc: will@kernel.org, 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: 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: <20231113105234.32058-2-glider@google.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email 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 (morse.vger.email [0.0.0.0]); Tue, 12 Dec 2023 09:16:27 -0800 (PST) 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. -- Catalin