Linux s390 Architecture development
 help / color / mirror / Atom feed
From: "Julian Ruess" <julianr@linux.ibm.com>
To: "Alexandra Winter" <wintera@linux.ibm.com>,
	"Julian Ruess" <julianr@linux.ibm.com>, <schnelle@linux.ibm.com>,
	<ts@linux.ibm.com>, <oberpar@linux.ibm.com>,
	<gbayer@linux.ibm.com>
Cc: <mjrosato@linux.ibm.com>, <alifm@linux.ibm.com>,
	<raspl@linux.ibm.com>, <hca@linux.ibm.com>,
	<agordeev@linux.ibm.com>, <gor@linux.ibm.com>,
	<linux390-list@tuxmaker.boeblingen.de.ibm.com>,
	<linux-s390@vger.kernel.org>
Subject: Re: [PATCH 2/4] dibs: introduce dibs peer device bus driver
Date: Mon, 30 Nov 2026 11:24:26 +0100	[thread overview]
Message-ID: <DN8H0FINVGUC.TT8PJ7SEMM4D@linux.ibm.com> (raw)
In-Reply-To: <f04b6a31-1d26-4222-a6ba-77fcd9cd4de6@linux.ibm.com>

On Tue Nov 17, 2026 at 5:21 PM CET, Alexandra Winter wrote:
> This is not a complete review, but I think I read about 80% of the patch.
> The comments were not written in any specific or
>
> Title:
> s/dibs peer device bus/dibs peer bus/g

>
> On 08.10.26 10:08, Julian Ruess wrote:
>> Introduce a dibs peer device bus driver that represents remotely
>> emulated dibs peer devices as kernel devices. 
>
> Wording: Does the bus driver represent the devices?
> In my mind, dibs peer bus driver is used to access a dibs peer bus to which
> dibs peer devices are attached. (is 'dibs peer' the agreed upon wording?
> a reference document would help) The dibs peer bus and dibs peer devices
> are emulated on top of a remote peer's dibs device.
>
> Is that understanding wrong? Is there no peer bus implementation on the
> console server side?
>
> I know the vfio-ism implementation is not really a dibs device, but
> conceptually I think the `dibs peer`stuff is accessed via a remote dibs
> device (with gid etc..)
>
> (Refer to RFC here?)
>
> The driver handles
>> discovery and lifecycle management of remote peer devices and provides
>
> s/remote peer devices/remote peer dibs devices/g
>
>> the foundation for dibs peer device drivers that operate on top of dibs.
>
> What do you mean by 'on top of dibs'?
> Are they dibs clients? Is the dibs peer bus driver a dibs client?
> I guess so.
>
> I'd like some more words, what device discovery provides here:
> Are Linux devices created? where? Is device probing triggered?
>
>> 
>> Two such peer device drivers, hvc_dibs and dibsblk, are added in
>> follow-up patches.
>> 
>> Dibs peer devices are provided by vfio user space tooling (Console
>> Server) and are discovered by the kernel of a target system.
>> 
>
> (target system is mentioned here for the first time without explanation)
>
> I'd rather say: A possible implemetation of dibs bus and dibs devices is
> user space tooling on top of vfio-ism.
>
>
> I'D like to see a bit more about what the dibs peer bus driver provides,
> e.g. /sys/bus/dibs_peer,..
>
>
>> Discovery works by setting e.g. the kernel parameter
>> 'dibs.dibs_peer_address=gid:64000da3-78e8-3931-0000-000000000000'. The
>> UUID must be the GID used by the console server of the remote system.
>> 
>
> Imperative mode. Console server is used here without explanation.
> Use same terminology as above: "gid of remote peer's dibs device'
>
> I'd rather describe this wrt to the dibs peer bus driver "Provide 2 ways
> to trigger discovery .."
>
>
>> Disovery can also be triggered manually by writing the GID of the remote
>> system to the discover attribute like e.g. 'echo
>> gid:04000da5-78e8-3931-0000-000000000000 > /sys/bus/dibs_peer/discover'.
>
> Wording: s/GID of the remote system/gid of the remote peer's dibs device/g
>
>> 
>> Connections can be terminated by unbinding an dibs peer device from its
>> driver.
>> 
>
> What is a connection in this context?
>
>
> General: I think it is Linux style to not uppercase gid, uuid etc.
>
>
> General:
> The basic concepts should be documented somewhere (h file,
> kernel Documentation, commit message, wherever) like:
> - The system can use 1 external dibs peer bus = 1 remote endpoint (?)
> - The dibs peer bus is identified by the gid of the remote dibs device
> it is attached to
> - The dibs peer bus driver is a dibs client (but the peer device drivers
> are not dibs clients)
>
>
> I think you once said that the code is prepared to handle more than 1
> dibs peer bus in the future, but currently only 1 is implemented.
> I don't think that this is a good idea. These preparations cannot be
> properly reviewed or tested. I propose to remove them and thus simplify
> the code - it is complex enough already.
> You can always bring it back in a future extension.
>
>

Agree, commit message will be reworked in next version and we will drop
the support for more than 1 dibs peer bus.

-- snip --

  reply	other threads:[~2026-11-30 10:24 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-08  8:08 [PATCH 0/4] Introduce dibs peer bus driver, dibs console and dibs block device driver Julian Ruess
2026-10-08  8:08 ` [PATCH 1/4] dibs: introduce ring-buffer send/receive API Julian Ruess
2026-10-08  8:21   ` sashiko-bot
2026-10-09 20:47   ` Niklas Schnelle
2026-11-10 17:44   ` Alexandra Winter
2026-10-08  8:08 ` [PATCH 2/4] dibs: introduce dibs peer device bus driver Julian Ruess
2026-10-08  8:27   ` sashiko-bot
2026-11-13 16:30   ` Alexandra Winter
2026-11-17 16:21   ` Alexandra Winter
2026-11-30 10:24     ` Julian Ruess [this message]
2026-10-08  8:08 ` [PATCH 3/4] dibs: introduce dibs console peer device driver Julian Ruess
2026-10-08  8:26   ` sashiko-bot
2026-11-17 16:22   ` Alexandra Winter
2026-10-08  8:08 ` [PATCH 4/4] dibs: introduce dibs block device " Julian Ruess
2026-10-08  8:30   ` sashiko-bot
2026-11-17 16:25   ` Alexandra Winter
2026-11-10 17:44 ` [PATCH 0/4] Introduce dibs peer bus driver, dibs console and dibs block " Alexandra Winter

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=DN8H0FINVGUC.TT8PJ7SEMM4D@linux.ibm.com \
    --to=julianr@linux.ibm.com \
    --cc=agordeev@linux.ibm.com \
    --cc=alifm@linux.ibm.com \
    --cc=gbayer@linux.ibm.com \
    --cc=gor@linux.ibm.com \
    --cc=hca@linux.ibm.com \
    --cc=linux-s390@vger.kernel.org \
    --cc=linux390-list@tuxmaker.boeblingen.de.ibm.com \
    --cc=mjrosato@linux.ibm.com \
    --cc=oberpar@linux.ibm.com \
    --cc=raspl@linux.ibm.com \
    --cc=schnelle@linux.ibm.com \
    --cc=ts@linux.ibm.com \
    --cc=wintera@linux.ibm.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