Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5862419rdb; Thu, 14 Dec 2023 01:28:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IHg/AhOSsb2VjkTIH0pLAjph3/yB9X0zU+TcR0o/ql9DSVaaeJN8MizfyhZE0KVGZ3VWmJZ X-Received: by 2002:a17:902:7809:b0:1cf:bf7b:adf2 with SMTP id p9-20020a170902780900b001cfbf7badf2mr8163999pll.32.1702546082709; Thu, 14 Dec 2023 01:28:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702546082; cv=none; d=google.com; s=arc-20160816; b=z9uNRomWKQper6CblTH3oqZy7PEt1miq3vbAIKth8ePEbvYvtLdIZhbFeGKP1MKm53 6X0mTiB8JfAJL/QLC9sogTd/Gln4F+Hh8Tx8bKXdoVsIIoa7R9yl1MaETDTLhiK9JDHs dcNeevZCE468cCe+KbzmlMo/bhORO+I0RTNSrJX5IGW5/56DgeDAstt83QL0zo3qQIuS iK/7/C12HmV33VxneV2ZAmNhG9aZJhAIML6VtE5/ICvmU7orKFp4ogEzyqRf6QYhegdN V0Mfa5568hsgne7ZYksiNi9C6NL+oakNSVtlZzDJvjTRLqkL6nIVChdLI8447ecEKZsq Af6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=HhYfjmCuo+1PmykwAbTfpZ2TUHkUhq4/jZFz8YOijBE=; fh=uCSpBP/E5sl6FH32VM1fI1rFt2VmEaDt358qiKCxxn0=; b=minukv4u5+njXnVNuFh/nMpqnrq80lQ8t3fpn0YRQwdLUPAypn8YlyBDMPpynpkZBL VikkConmg8v+mPbS0Q97vRehvnLLzlXc6Pyfjh18WwWHv9pY2Hd+1KQ8ChC4iWJC7nX/ P5xA1rD1FW98nI5Z1RLEm6+69TNZlznhx158mK5E5VqGOe2rFBjdchXOS7ZbWE+3Gu05 w8igzuTs4XdIWJAriSUWJ4bdbNmk5Vw17UNsbGJkRkf0Dgg/3I5ErWHV1gMpVknsLkux Bq2tcfkbQfZwC8X4no+dhsb2VDACpxNfDZ9KjasoViEjTBgKmjHqcvTfS98wEmFEP4c6 Fr1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=4b0PGEy6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id x9-20020a170902820900b001cfb971ee07si8547613pln.165.2023.12.14.01.28.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 01:28:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=4b0PGEy6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 58865802749F; Thu, 14 Dec 2023 01:28:00 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235521AbjLNJ1s (ORCPT + 99 others); Thu, 14 Dec 2023 04:27:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235450AbjLNJ1r (ORCPT ); Thu, 14 Dec 2023 04:27:47 -0500 Received: from mail-qk1-x72c.google.com (mail-qk1-x72c.google.com [IPv6:2607:f8b0:4864:20::72c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA20811A for ; Thu, 14 Dec 2023 01:27:53 -0800 (PST) Received: by mail-qk1-x72c.google.com with SMTP id af79cd13be357-77f642b9a22so34348585a.0 for ; Thu, 14 Dec 2023 01:27:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1702546073; x=1703150873; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=HhYfjmCuo+1PmykwAbTfpZ2TUHkUhq4/jZFz8YOijBE=; b=4b0PGEy6Ck3efn81p1R6h4Mz8IPgnfLmCDc2bqA05UYp4Iby39EIbzJmD+T/HklIqx IM75z4yxQ+Nclcp5+aO5PwBe7BejZaJ9W5slbQrleprMfAImmD7ZN6AA6lPsLRIAq0dD InnqG1gVSHVLqb0KyA1pEtEsocRwvXi7MqPEC/oEAdUquUNcZnrY6gqxQgbQ9AuV/0/H fIlLYthAXTDeN41cc67WeykfRCt5FsD6vWvtF+DHk5uMTpMde7k6xWrKm+mMeBxZcwG1 uVkNyUJ361X1zyYPoxuBBkssWFEesakEhyYkBAJaWk2pDXhSNzDBgrscDItS3uC4o3lL Hcug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702546073; x=1703150873; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HhYfjmCuo+1PmykwAbTfpZ2TUHkUhq4/jZFz8YOijBE=; b=pSORvK2/KuAZrz5lejTXUcOEhXJxHzeDWl+CNrZdK5hmmLMvdoxoHjjSXaodMb48s8 6fcgGDYdJoCAhLIzZC739ldXFyx5ki6Ql/NEU0F9rlLs+qY3syDjNwuN/v7VP9ay6q9J ZBUvPv0JJX+awvdZHHZcI0+/2JNYMQqazSB2QBhVNjQv5GF0+rCc7CFSfkVTbSwmbqv0 XLo/ke5YpOvYIeZ9tSp0b2PeSQs5gzPvfPFT42VEfJoFDFvSI4cStYfhq5z3oymSK4Hd RPsTJcwBxRW7TxzsU7HZzA9WAqbGYKlzIuPMoN90hYkDksfnuj8k6PW6CDLJMVcdLR5o uwsw== X-Gm-Message-State: AOJu0YzeMMZL+2b8pjkEu2wmUiZwZv9Fr/umesNLSqRUFeRU0ndWU9QN JvKDGxnsdu+r547tec4uLpNbHKIk2YCSL+NKAb+ESA== X-Received: by 2002:a05:6214:411:b0:67a:11bb:50ab with SMTP id z17-20020a056214041100b0067a11bb50abmr13759578qvx.23.1702546072745; Thu, 14 Dec 2023 01:27:52 -0800 (PST) MIME-Version: 1.0 References: <20231113105234.32058-1-glider@google.com> <20231113105234.32058-2-glider@google.com> <20231213121605.GB31326@willie-the-truck> In-Reply-To: <20231213121605.GB31326@willie-the-truck> From: Alexander Potapenko Date: Thu, 14 Dec 2023 10:27:12 +0100 Message-ID: Subject: Re: [PATCH v9 1/4] arm64: mte: implement CONFIG_ARM64_MTE_COMP To: Will Deacon Cc: Catalin Marinas , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, 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 fry.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 (fry.vger.email [0.0.0.0]); Thu, 14 Dec 2023 01:28:00 -0800 (PST) On Wed, Dec 13, 2023 at 1:16=E2=80=AFPM Will Deacon wrote= : > > 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 M= TE > > > during swapping. > > > > > > The algorithm is based on RLE and specifically targets buffers of tag= s > > > corresponding to a single page. In many cases a buffer can be compres= sed > > > into 63 bits, making it possible to store it without additional memor= y > > > 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 fo= r > > 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 call= s > this symbol directly. > > Will What Will said.