Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp1431076rdb; Sat, 23 Dec 2023 06:31:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IHHossV6US6o9dve9FZgi1NrClCDARDjHJczFsLmb7J+oir4aJY5cwNoiJcRuF87lqFk9zv X-Received: by 2002:a50:d5d6:0:b0:553:620c:89b6 with SMTP id g22-20020a50d5d6000000b00553620c89b6mr1594862edj.10.1703341892185; Sat, 23 Dec 2023 06:31:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703341892; cv=none; d=google.com; s=arc-20160816; b=HnCKmH1KXeUlMCkhcBqfl6HKE0wNZOIgTum0bs9v95SgK3jKnLFFq6s6Os5UnTcvi9 l8kgd8R5LzTCYSc5+hnELV2JSGjICGd/BnFjiIym6UnInCcs9Xt4BR10QiAsFVarzoGY LWT0k0tBUDnLv+vCQ/k1Xv84qFE7qVu10T6Tef35PI59GlQE1hQVeyzWfTuru1OWYVH0 a9i87IVntQltX6Co5J0LEeNiQ4JzAAaRMJZI5lrCyvA6uz9aEgOpnGTz3xnADbNRizdF TzN3A78fJCTCUvhPCp1qm6hwIKRr9uGM+ZGuAQ8jm+IwZOzS0IdjjQjm9lpHpg4YOxco qEFQ== ARC-Message-Signature: i=1; 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=gIuXBFAhmX7nOP0kc6QWCz9O7Z+M+sop4JhP2yXLj2E=; fh=Ct7jLPYMc41foKPf8c8jI5FvJrWExMGAtQq+3grgLyE=; b=z1m/c8LLvCakP5k3k6ppPDT4rZu3PdUPtUdqv3zRPP/27DHF2h+nyBkYA/DRH/v3bz +BlAh3GOG7KT9PCddQcH5lmkquRyIP0QSStgkV7WNNVoud3OxkCB+dV94O0k5v3Grzug uizMN8q7JBc3qeCqnOSSrKGwvrznW5n1Qe/cBug+ZaKND3b1HcHE9ZkYo83dEuUpWRRl wqs8A54o9ytfSe6fKqTS0BaJR1U86UzUxisbzOzVwEqie4iHOcNlywEsb9gw7OUieS+0 hGa+5GIVN897S0WpGDVgERF4vxrVnAdvZEwWZ0J0Y8QrauC8bEiyPFpEA8hRz1VtcPfU lXGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iYsg7m+9; spf=pass (google.com: domain of linux-kernel+bounces-10455-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10455-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id j20-20020a05640211d400b0054c652bd5a9si2884224edw.440.2023.12.23.06.31.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Dec 2023 06:31:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-10455-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iYsg7m+9; spf=pass (google.com: domain of linux-kernel+bounces-10455-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10455-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 80A921F22533 for ; Sat, 23 Dec 2023 14:31:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8344B10798; Sat, 23 Dec 2023 14:31:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="iYsg7m+9" X-Original-To: linux-kernel@vger.kernel.org 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 AAA64F4E2; Sat, 23 Dec 2023 14:31:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4BBC6C433C8; Sat, 23 Dec 2023 14:30:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703341864; bh=5Yw2Br05+dFmIyBnAI8QmbQqjZjSr2mzpPb7WPvWLlI=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=iYsg7m+95Q9TKQgUDW5gyCPibD+P4xxAtCcjZtk2OalbP+O8DDTIKjynI2Nf+xvZ4 R3xEVzVCGTDIpAFsyCEdHSLsldPna0cChecvFaboOiKSIUiVL+g7mEJhNXEatSnm+K 5MebrMXEfo88EwHdeiqzSSwHsSAE1Ui02HxNitxyC4vHX5VgkXSQPWS2TmmB7lgpP6 +F8Sjbo7PW1aXJYMitmq+1r/jjRsF8N2T57wzoUuHvmdglygSvz4Iyh/i26j9TTV+f 0ILzKwcATSdBAmm17mwsPPY+6HihbsBElDyU4Ppg/AYdNnYxfgJLhmdt/3RSCLC4OA U/AeFfiKjK3qQ== Message-ID: <39a33f9b-0290-428d-ab1f-f90856cdb31d@kernel.org> Date: Sat, 23 Dec 2023 15:30:55 +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 v2 17/17] devicetree: Add bindings for ftrace KHO Content-Language: en-US To: Alexander Graf , linux-kernel@vger.kernel.org Cc: linux-trace-kernel@vger.kernel.org, linux-mm@kvack.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kexec@lists.infradead.org, linux-doc@vger.kernel.org, x86@kernel.org, Eric Biederman , "H. Peter Anvin" , Andy Lutomirski , Peter Zijlstra , Rob Herring , Steven Rostedt , Andrew Morton , Mark Rutland , Tom Lendacky , Ashish Kalra , James Gowans , Stanislav Kinsburskii , arnd@arndb.de, pbonzini@redhat.com, madvenka@linux.microsoft.com, Anthony Yznaga , Usama Arif , David Woodhouse , Benjamin Herrenschmidt References: <20231222193607.15474-1-graf@amazon.com> <20231222195144.24532-1-graf@amazon.com> <20231222195144.24532-12-graf@amazon.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/G23PcowM1CwPurC8sAVsQb9KmwT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Poh8WWfRS+xegBxc6hBXahpyUKphAKYkah+m+I0QToCfnGKnPqyYIMDEHCS/RfqA5 t8F+O56+oyLBAeWX7XcmyM6TGeVfb+OZVMJnZzK0s2VYAuI0Rl87FBFYgULdgqKV7R7WHzwD uZwJCLykjad45hsWcOGk3OcaAGQS6NDlfhM6O9aYNwGL6tGt/6BkRikNOs7VDEa4/HlbaSJo 7FgndGw1kWmkeL6oQh7wBvYll2buKod4qYntmNKEicoHGU+x91Gcan8mCoqhJkbqrL7+nXG2 5Q/GS5M9RFWS+nYyJh+c3OcfKqVcZQNANItt7+ULzdNJuhvTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: <20231222195144.24532-12-graf@amazon.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 22/12/2023 20:51, Alexander Graf wrote: > With ftrace in KHO, we are creating an ABI between old kernel and new > kernel about the state that they transfer. To ensure that we document > that state and catch any breaking change, let's add its schema to the > common devicetree bindings. This way, we can quickly reason about the > state that gets passed. Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC (and consider --no-git-fallback argument). 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. Please use subject prefixes matching the subsystem. You can get them for example with `git log --oneline -- DIRECTORY_OR_FILE` on the directory your patch is touching. A nit, subject: drop second/last, redundant "bindings". The "dt-bindings" prefix is already stating that these are bindings. > > Signed-off-by: Alexander Graf > --- > .../bindings/kho/ftrace/ftrace-array.yaml | 46 +++++++++++++++ > .../bindings/kho/ftrace/ftrace-cpu.yaml | 56 +++++++++++++++++++ > .../bindings/kho/ftrace/ftrace.yaml | 48 ++++++++++++++++ > 3 files changed, 150 insertions(+) > create mode 100644 Documentation/devicetree/bindings/kho/ftrace/ftrace-array.yaml > create mode 100644 Documentation/devicetree/bindings/kho/ftrace/ftrace-cpu.yaml > create mode 100644 Documentation/devicetree/bindings/kho/ftrace/ftrace.yaml > > diff --git a/Documentation/devicetree/bindings/kho/ftrace/ftrace-array.yaml b/Documentation/devicetree/bindings/kho/ftrace/ftrace-array.yaml > new file mode 100644 > index 000000000000..9960fefc292d > --- /dev/null > +++ b/Documentation/devicetree/bindings/kho/ftrace/ftrace-array.yaml > @@ -0,0 +1,46 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/kho/ftrace/ftrace-array.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Ftrace trace array > + Missing description. Commit msg also does not tell me much. This must stand on its own and must describe the hardware. Whatever you have in cover letter, does not matter, especially that you did not Cc us on it. > +maintainers: > + - Alexander Graf > + > +properties: > + compatible: > + enum: > + - ftrace,array-v1 > + > + trace_flags: Underscores are not allowed. Does not look like generic property. > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + Bitmap of all the trace flags that were enabled in the trace array at the > + point of serialization. > + > +# Subnodes will be of type "ftrace,cpu-v1", one each per CPU > +additionalProperties: true No, this must be false. And it goes after required: > + > +required: > + - compatible > + - trace_flags > + > +examples: > + - | > + ftrace { > + compatible = "ftrace-v1"; > + events = <1 1 2 2 3 3>; > + > + global_trace { Again, no underscores. > + compatible = "ftrace,array-v1"; > + trace_flags = < 0x3354601 >; > + > + cpu0 { > + compatible = "ftrace,cpu-v1"; > + cpu = < 0x00 >; Drop redundant spaces. > + mem = < 0x101000000ULL 0x38ULL 0x101000100ULL 0x1000ULL 0x101000038ULL 0x38ULL 0x101002000ULL 0x1000ULL>; ? Do you see any of such syntax in DTS? Best regards, Krzysztof