Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp486259rdb; Fri, 26 Jan 2024 01:26:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IGJ0ASEFsCOa33Bc/MVCotmKHBWDB4k/tGgM77b+x+GcXF/qFPwSjFWDQvLI5xx1bHobysH X-Received: by 2002:a05:6808:191e:b0:3bd:f9c2:60e0 with SMTP id bf30-20020a056808191e00b003bdf9c260e0mr138559oib.27.1706261180699; Fri, 26 Jan 2024 01:26:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706261180; cv=pass; d=google.com; s=arc-20160816; b=jhMFnhAIYbZ0pcFh/g9kDWnoM+FDNvJCToqbtCruzBQnWTK/ZDyjbkbaxn2K7w7pc8 7sOEb4d9UC4DHt0r4fPqWIhjhAcq6Z5txpngUdRJJjwjIx6IWC2huMlomgPab7MxVEVX wY9/tYky2PpEe0qVeZXXGUULan9ZYX0W7TCquXmholoyPpDM23iEo5t8XbRzfyXPjYZu kzr+UhZV+KwT3RHyYXIHaFqk/2D/Rfny4Y0s99u0NgRMX9TUAEAWhCgmlAAnrPhv6fvN E7rq3Fq/DZj+OJF6LCurDEvRs7wP8r9ZcXhXfWfBrRQOb7DFnbZAqT+Zxpq1ONua2AUe 24oQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=D2Ryk3VEYASlPSKxSF/HY288XVsJVskOr842a7WpiO0=; fh=TM4oGcK3R7JGbI9yauX2gK7B013rxwgC/X+Dl+aeNso=; b=q6biID4l4NuaVlTsYcPO2RKGJtXBX+sQYpErcP/mebP9GVA8Dq7JgMltCxKScv+7mm oDd9pTNIeRIlxbnsC09k5zEvP4ZVXQoOwxmldR5rsVh30A7l2v3s4sSsHegKUcFcgZXM 3SxwgQKZ7kIatWB76u6YoXcjQvxfNT0SZUFr3NbT+/1aXfybxvo4jhOWnRIpJRUysNsz MJM+5w/h99Y1ZV9bjoggghbWl4b0dtbzgT2V0tbZ78VYD5WM85o2DoionRXhO8QatBOr UtRBhYQ+qrGQmHE+jmiqDoMya2TTbgGeyzDLEQaC5rIpmDcix4JGlaptnnVOZkjS9OnS zYZQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=J5T251s+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-39793-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39793-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id y19-20020a637d13000000b005ce58684c5asi832557pgc.449.2024.01.26.01.26.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 01:26:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39793-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=J5T251s+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-39793-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39793-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id DE98D28AC64 for ; Fri, 26 Jan 2024 09:25:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F20781EB29; Fri, 26 Jan 2024 08:51:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="J5T251s+" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 267B61EB32; Fri, 26 Jan 2024 08:51:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706259076; cv=none; b=G93pbwk6vSezdnMxYhhHGA5XMAisG8XzTttG3p/Lla5cwKdZ5h4jxTWNn4KMyXP3X8yRLoMWzzczDPaZGtf9pQQSXDsP6DQSyXzSyZtcNOMiCOi56aiFUiAmP9NTeVEXVxwbCJPwxjqtAvqrEZKGl49BNnGbSI8Yhvc5Nqk2DMc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706259076; c=relaxed/simple; bh=3XXsZesR5z3OhQn6zEFimHzAIMaks6mfbzGYjcwVnzI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=BayGc996EgjhhqLaLqZnHuA1UXSxZvMxgf/M90CBx99KHesc0OyK+//uLFEVuO4JgMW6bAGIp25ZMbofs5dphKgbjH14wfAXtPReA6rp7+IYgMl2tgxv1SGUeLFuTj1Rm/7+Udaq3ScFrsdml18BFLgjWxMGLKQrXG8BEZ+q5xg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=J5T251s+; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B9D0C433C7; Fri, 26 Jan 2024 08:51:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706259075; bh=3XXsZesR5z3OhQn6zEFimHzAIMaks6mfbzGYjcwVnzI=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=J5T251s+q/OwxjAgPmVxtcll+74iQnRmWb+BhB3KK5MyL8SMv+TTKWMWq2snsc7EI E1VBQyTib/Vjih2wWfjunpv8SIOlEGf7JLZ9GRK2pB7QBup/WxAC7Azcf0AhYM9ybU JZFaMKbf6okVil/kjHyiE8yl0d4NcnSe5o324okA/FM6f4o5dwOH7kb5GJf9AKy1yD uojpObGHUoEPD93zH6uAja88lzdACNNHiUIGzjks/Hn8FXtphEo+i40HFf/u9WXIup fIqATHk3If1ICrsc69qbc0PYfDi0eqZUSsNIbR7/hg/66L0KbaGoAOjDqZCA03RxKt E004d0i/z+ong== Message-ID: <5b8ce251-0790-4e2c-b5b1-0d2aeacbdd92@kernel.org> Date: Fri, 26 Jan 2024 09:50:58 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC v3 19/35] arm64: mte: Discover tag storage memory Content-Language: en-US To: Alexandru Elisei , catalin.marinas@arm.com, will@kernel.org, oliver.upton@linux.dev, maz@kernel.org, james.morse@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, arnd@arndb.de, akpm@linux-foundation.org, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, mhiramat@kernel.org, rppt@kernel.org, hughd@google.com Cc: pcc@google.com, steven.price@arm.com, anshuman.khandual@arm.com, vincenzo.frascino@arm.com, david@redhat.com, eugenis@google.com, kcc@google.com, hyesoo.yu@samsung.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kvmarm@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-trace-kernel@vger.kernel.org References: <20240125164256.4147-1-alexandru.elisei@arm.com> <20240125164256.4147-20-alexandru.elisei@arm.com> From: Krzysztof Kozlowski Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2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kRikNOs7VDEa4/HlbaSJo 7FgndGw1kWmkeL6oQh7wBvYll2buKod4qYntmNKEicoHGU+x91Gcan8mCoqhJkbqrL7+nXG2 5Q/GS5M9RFWS+nYyJh+c3OcfKqVcZQNANItt7+ULzdNJuhvTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: <20240125164256.4147-20-alexandru.elisei@arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 25/01/2024 17:42, Alexandru Elisei wrote: > Allow the kernel to get the base address, size, block size and associated > memory node for tag storage from the device tree blob. > Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel. Tools like b4 or scripts_getmaintainer.pl provide you proper list of people, so fix your workflow. Tools might also fail if you work on some ancient tree (don't, use mainline), work on fork of kernel (don't, use mainline) or you ignore some maintainers (really don't). Just use b4 and all the problems go away. You missed at least devicetree list (maybe more), so this won't be tested by automated tooling. Performing review on untested code might be a waste of time, thus I will skip this patch entirely till you follow the process allowing the patch to be tested. Please kindly resend and include all necessary To/Cc entries. > A tag storage region represents the smallest contiguous memory region that > holds all the tags for the associated contiguous memory region which can be > tagged. For example, for a 32GB contiguous tagged memory the corresponding > tag storage region is exactly 1GB of contiguous memory, not two adjacent > 512M of tag storage memory, nor one 2GB tag storage region. > > Tag storage is described as reserved memory; future patches will teach the > kernel how to make use of it for data (non-tagged) allocations. > > Signed-off-by: Alexandru Elisei > --- > > Changes since rfc v2: > > * Reworked from rfc v2 patch #11 ("arm64: mte: Reserve tag storage memory"). > * Added device tree schema (Rob Herring) > * Tag storage memory is now described in the "reserved-memory" node (Rob > Herring). > > .../reserved-memory/arm,mte-tag-storage.yaml | 78 +++++++++ Please run scripts/checkpatch.pl and fix reported warnings. Some warnings can be ignored, but the code here looks like it needs a fix. Feel free to get in touch if the warning is not clear. Best regards, Krzysztof