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=-5.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 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 5A351C433DB for ; Fri, 8 Jan 2021 17:24:48 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 1F91A23A05 for ; Fri, 8 Jan 2021 17:24:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1F91A23A05 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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=VlFtR8snL9vE80lEf9sG4yxN3Plyc+boNoLa75RQQYI=; b=t9c8v9OvffRJeKuHXsDfdtFaX OzHLDoJ9esTdrKeXwx85fsXdfOyXcsqFAXm8oPtAnpCEMIDSMguLeBqJ/NPqeE+PDakIEpa/VGuts pw7kbVvy5vGhWm1kew5BEqI743m4MmyOQgL2gDzLpr83ELdtaLVjn+APL32VT4WjcxIGo4uENNOFE ZRjEZLdqeXlsMjbnnqogsYY2LLJDRVpUcLR8Xcf9ICFqvUAdogNUNI+eJq6O34fERSs2OGd/kL3V2 FxMyQaY8Q/E77cHs8/W1UsF0OZecFApEEfA7Cw+CEZ/XeSDRi/ZQqah9EsHyHFGxn8sHiWF+YHYgc Wc6lu20yQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kxvTV-0006fj-PP; Fri, 08 Jan 2021 17:22:57 +0000 Received: from foss.arm.com ([217.140.110.172]) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kxvT7-0006bZ-By for linux-arm-kernel@lists.infradead.org; Fri, 08 Jan 2021 17:22:34 +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 662B111FB; Fri, 8 Jan 2021 09:22:32 -0800 (PST) Received: from [10.37.8.22] (unknown [10.37.8.22]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 16B6F3F70D; Fri, 8 Jan 2021 09:22:29 -0800 (PST) Subject: Re: [PATCH 2/4] arm64: mte: Add asynchronous mode support To: Andrey Konovalov References: <20210106115519.32222-1-vincenzo.frascino@arm.com> <20210106115519.32222-3-vincenzo.frascino@arm.com> From: Vincenzo Frascino Message-ID: <1e1e9d66-32da-6bb8-b4cf-91c03ea90180@arm.com> Date: Fri, 8 Jan 2021 17:26:10 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210108_122233_494373_0BD1569A X-CRM114-Status: GOOD ( 12.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Branislav Rankov , Marco Elver , Catalin Marinas , Evgenii Stepanov , Will Deacon , LKML , kasan-dev , Alexander Potapenko , Linux ARM , Andrey Ryabinin , Dmitry Vyukov 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 Hi Andrey, On 1/8/21 1:36 PM, Andrey Konovalov wrote: > Perhaps we could add a generic arch-agnostic enum to > include/linux/kasan.h and use it in both arm64 and KASAN code? > > enum kasan_hw_tags_mode { > KASAN_HW_TAGS_SYNC, > KASAN_HW_TAGS_ASYNC > } > > Assuming other architectures that support memory tagging will end up > with sync/async mode separation as well, this should work. But even if > that doesn't happen, this interface can be adjusted later. I am fine with this solution, I will add it in my v3. As part of the enumeration I will add READ_SYNC mode as well, so we have all the possible combinations. -- Regards, Vincenzo _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel