From: Jeremy Kerr <jk@codeconstruct.com.au>
To: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Cc: Wolfram Sang <wsa+renesas@sang-engineering.com>,
Matt Johnston <matt@codeconstruct.com.au>,
linux-i2c@vger.kernel.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 0/4] i2c: SMBus ARP support
Date: Wed, 28 Jan 2026 18:28:24 +0800 [thread overview]
Message-ID: <189d4a03f32ace3fd995596e8b5415ced6ae9c3a.camel@codeconstruct.com.au> (raw)
In-Reply-To: <aXjDENOsmWe5_VqS@kuha>
Hi Heikki,
> Uh, no. You should only use interfaces like new_device with the
> devices that really can't be detected in kernel, which isn't the case
> here.
Who is deciding this "you should only" case? If the facility works, it's
suitable. You raise some good points that may mean it is not a suitable
approach for an ARP implementation, but we should still make sure we're
taking the right approach.
[You seem pretty defensive here? I'm not saying no to the kernel
implementation, just doing our homework before agreeing to it]
> So why would you want involve the user space at all since it would
> just add complexity and limitations without any benefits?
Because we have fewer risks implementing this in userspace.
As an example, you currently seem to have a stack information leak in
the proposed Get UDID implementation, which would be much less of an
issue for the equivalent protocol handling implemented in userspace.
> - You still need to deliver the UDID to the kernel because of things
> like the PEC flag, and the drivers will also need information from
> it.
That seems like the main reason for requiring a kernel approach, in that
we need more information than just the assigned address. It's not
possible (at present) to specify the PEC flag through existing
interfaces, right?
For me, this would be the deciding factor to go for a kernel approach,
in that we otherwise cannot properly describe ARPed devices to the i2c
subsystem. We *could* push a new_device with a UDID, but I'm not sure
that's a great idea.
> - With the static (not hotplugged) devices you need to assign the
> correct ACPI node (or what ever fwnode) to the ARP-device.
Is that possible at present? how are you planning to represent ARPed
devices in the DT - or more importantly, correlate DT (or other fwnode)
nodes to discovered devices?
> - When the device is hotplugged, you would need new ABI, like I think
> you already noticed, but this really does not make any sense. We
> simply don't need it, because the kernel can process this
> information on its own very simply.
Even this "very simple" implementation may have bugs.
Assuming we go with a kernel approach: For the MCTP case, for full ARP
support of MCTP endpoints, we would still need to consume a hotplug
event that indicates that the device is available at its new address
- there is no kernel driver bound for the remote MCTP endpoints. This
event would be consumed by the (existing) MCTP infrastructure in order
to start MCTP enumeration. Is this something you have looked at
already? If so, if you can send an example of an actual event, I will
look at the mctpd part of this.
Cheers,
Jeremy
next prev parent reply other threads:[~2026-01-28 10:28 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-21 9:23 [PATCH v2 0/4] i2c: SMBus ARP support Heikki Krogerus
2026-01-21 9:23 ` [PATCH v2 1/4] i2c: SMBus Address Resolution Protocol implementation for host side Heikki Krogerus
2026-01-21 9:23 ` [PATCH v2 2/4] i2c: Sysfs attribute files for the Unique Device Identifier fields Heikki Krogerus
2026-01-21 9:23 ` [PATCH v2 3/4] mctp i2c: Enable SMBus ARP discovery Heikki Krogerus
2026-01-22 14:36 ` Paolo Abeni
2026-01-22 16:05 ` Jakub Kicinski
2026-01-23 0:18 ` Jeremy Kerr
2026-01-23 8:46 ` Heikki Krogerus
2026-01-23 18:12 ` Jakub Kicinski
2026-01-21 9:23 ` [PATCH v2 4/4] i2c: Add SMBus ARP target mode test driver Heikki Krogerus
2026-01-24 5:32 ` [PATCH v2 0/4] i2c: SMBus ARP support Jeremy Kerr
2026-01-26 13:56 ` Heikki Krogerus
2026-01-27 0:32 ` Jeremy Kerr
2026-01-27 13:52 ` Heikki Krogerus
2026-01-28 10:28 ` Jeremy Kerr [this message]
2026-01-28 15:02 ` Heikki Krogerus
2026-01-29 13:43 ` Jeremy Kerr
2026-02-02 13:29 ` Heikki Krogerus
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=189d4a03f32ace3fd995596e8b5415ced6ae9c3a.camel@codeconstruct.com.au \
--to=jk@codeconstruct.com.au \
--cc=heikki.krogerus@linux.intel.com \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=matt@codeconstruct.com.au \
--cc=netdev@vger.kernel.org \
--cc=wsa+renesas@sang-engineering.com \
/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