dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Konstantin Sinyuk" <ksinyuk@kernel.org>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [RFC PATCH 02/12] drm/fabric: add query uAPI and generated headers
Date: Tue, 25 Aug 2026 08:10:35 +0000	[thread overview]
Message-ID: <20260825081035.C40DD1F000E9@smtp.kernel.org> (raw)
In-Reply-To: <5e89aa4e8c8cd5febf4146f2e6891272203be3a6.1787552412.git.ksinyuk@kernel.org>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] The Netlink YAML specification uses fixed-width integer types (`u32`, `u64`) and `pad` attributes instead of the preferred variable-width types (`uint`, `sint`).
- [Medium] The `port-peer-create-ntf` and `port-peer-delete-ntf` notifications use custom `event` subsets instead of reusing the `GET` operation shape via `notify`.
--

--- Patch [2]: [RFC PATCH 02/12] drm/fabric: add query uAPI and generated headers ---
commit 180af4ca3a8c57e81df2225599a4c339598edf21
Author: Ilia Levi <ilia.levi@intel.com>

drm/fabric: add query uAPI and generated headers
    
This commit introduces the drm-fabric Generic Netlink family using a YNL
specification, along with generated userspace and kernel headers. It defines
the core object model attributes, operations, and multicast notifications.
The read-only ABI supports lookup, dump, and change notifications for
fabrics, endpoints, and ports.

> diff --git a/Documentation/netlink/specs/drm_fabric.yaml b/Documentation/netlink/specs/drm_fabric.yaml
> new file mode 100644
> index 0000000000000..778443d92a0d4
> --- /dev/null
> +++ b/Documentation/netlink/specs/drm_fabric.yaml

[ ... ]

> +  -
> +    name: fabric
> +    name-prefix: drm-fabric-a-fabric-attrs-
> +    enum-name: drm-fabric-a-fabric-attrs
> +    doc: Attributes describing a fabric object.
> +    attributes:
> +      -
> +        name: pad
> +        type: pad
> +      -
> +        name: fabric-id
> +        type: u32

[Severity: Medium]
Since this is a new Netlink family, should we prefer the variable-width uint
or sint types instead of fixed-width u32 and u64 integers?

The pad attribute is also generally restricted to legacy fixed structs.
Changing this before the uAPI is finalized might be a good idea to maintain
consistency with modern Netlink design guidelines.

[ ... ]

> +    -
> +      name: port-peer-create-ntf
> +      doc: A port's neighbor has been set.
> +      attribute-set: drm-fabric
> +      event:
> +        attributes:
> +          - endpoint-id
> +          - port-index
> +          - peer
> +          - topology-generation
> +
> +    -
> +      name: port-peer-delete-ntf
> +      doc: A port's neighbor has been unset.
> +      attribute-set: drm-fabric
> +      event:
> +        attributes:
> +          - endpoint-id
> +          - port-index
> +          - peer
> +          - topology-generation

[Severity: Medium]
Could we use notify: port-get for these notifications instead of custom event
subsets?

Events are considered less idiomatic than notify operations, which share
contents with the GET op. Since peer information is queryable via port-get,
reusing the port-get shape here would avoid forcing userspace to implement
separate parsing logic for these notifications.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/cover.1787552412.git.ksinyuk@kernel.org?part=2

  reply	other threads:[~2026-08-25  8:10 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-24  8:09 [RFC PATCH 0/12] drm/fabric: vendor-neutral topology infrastructure for scale-up accelerator interconnects Konstantin Sinyuk
2026-08-24  8:09 ` [RFC PATCH 01/12] drm/fabric: add core object model and provider API Konstantin Sinyuk
2026-08-25  8:10   ` sashiko-bot
2026-08-24  8:09 ` [RFC PATCH 02/12] drm/fabric: add query uAPI and generated headers Konstantin Sinyuk
2026-08-25  8:10   ` sashiko-bot [this message]
2026-08-24  8:09 ` [RFC PATCH 03/12] drm/fabric: implement query netlink operations Konstantin Sinyuk
2026-08-25  8:10   ` sashiko-bot
2026-08-24  8:09 ` [RFC PATCH 04/12] drm/fabric: add read-only synthetic provider Konstantin Sinyuk
2026-08-24  8:09 ` [RFC PATCH 05/12] drm/fabric: add object-model KUnit tests Konstantin Sinyuk
2026-08-24  8:09 ` [RFC PATCH 06/12] drm/fabric: add YNL query and policy selftests Konstantin Sinyuk
2026-08-25  8:10   ` sashiko-bot
2026-08-24  8:09 ` [RFC PATCH 07/12] drm/fabric: add topology-provisioning core Konstantin Sinyuk
2026-08-24  8:09 ` [RFC PATCH 08/12] drm/fabric: add provisioning netlink uAPI Konstantin Sinyuk
2026-08-25  8:10   ` sashiko-bot
2026-08-24  8:09 ` [RFC PATCH 09/12] drm/fabric: implement mutation netlink operations Konstantin Sinyuk
2026-08-25  8:10   ` sashiko-bot
2026-08-24  8:09 ` [RFC PATCH 10/12] drm/fabric: make the synthetic provider writable Konstantin Sinyuk
2026-08-24  8:09 ` [RFC PATCH 11/12] drm/fabric: add mutation KUnit tests Konstantin Sinyuk
2026-08-25  8:10   ` sashiko-bot
2026-08-24  8:09 ` [RFC PATCH 12/12] drm/fabric: add mutation netlink selftests Konstantin Sinyuk
2026-08-26  9:32 ` [RFC PATCH 0/12] drm/fabric: vendor-neutral topology infrastructure for scale-up accelerator interconnects Leon Romanovsky
2026-08-26 15:38   ` Konstantin Sinyuk
2026-08-27 17:09     ` Leon Romanovsky
2026-08-27 12:35 ` Jiri Pirko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260825081035.C40DD1F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=ksinyuk@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox