All of lore.kernel.org
 help / color / mirror / Atom feed
From: Xose Vazquez Perez <xose.vazquez@gmail.com>
To: Martin Wilck <mwilck@suse.com>, Stefan Haberland <sth@linux.ibm.com>
Cc: Nigel Hislop <hislop_nigel@emc.com>,
	Matthias Rudolph <Matthias.Rudolph@hitachivantara.com>,
	Heiko Carstens <hca@linux.ibm.com>,
	Vasily Gorbik <gor@linux.ibm.com>,
	Alexander Gordeev <agordeev@linux.ibm.com>,
	Christian Borntraeger <borntraeger@linux.ibm.com>,
	Sven Schnelle <svens@linux.ibm.com>,
	Hannes Reinecke <hare@suse.de>,
	Benjamin Marzinski <bmarzins@redhat.com>,
	Christophe Varoqui <christophe.varoqui@opensvc.com>,
	S390-ML <linux-s390@vger.kernel.org>,
	DM-DEVEL-ML <dm-devel@lists.linux.dev>,
	Nigel Hislop <hislop_nigel@dell.com>
Subject: Re: [PATCH] multipath-tools: fix default blacklist of s390 devices
Date: Sat, 19 Jul 2025 16:36:45 +0200	[thread overview]
Message-ID: <be0ea1f8-cb4e-4a2d-9902-163d7e6a5863@gmail.com> (raw)
In-Reply-To: <cc3cf74ef6c394b371f4ce0e0dfe09f783403617.camel@suse.com>

On 7/19/25 2:34 PM, Martin Wilck wrote:

> On Fri, 2025-07-18 at 22:54 +0200, Xose Vazquez Perez wrote:

>> On 7/14/25 2:38 PM, Stefan Haberland wrote:
>>
>>>> Is PAV really supported on FBA devices ???
>>>> And other than 3390 and 3380(3390 model 2/3 in track-
>>>> compatibility mode) ECKD types ?

>>> Currently there is no support in the driver for PAV with FBA
>>> devices.
>>> But the devices itself are capable of PAV.

>> If there is no PAV support for FBA devices on Linux, and it looks
>> like it won't be
>> implemented even in the distant future. The detection code, and the
>> device, could
>> be deleted from multipath-tools:

> I agree. @Stefan, it would be appreciated if you or someone from your
> group could send a patch.

Something like (untested!):

diff --git a/libmultipath/discovery.c b/libmultipath/discovery.c
index 31db8758..4fc0c496 100644
--- a/libmultipath/discovery.c
+++ b/libmultipath/discovery.c
@@ -1677,11 +1677,9 @@ ccw_sysfs_pathinfo (struct path *pp, const struct vector_s *hwtable)
  	if (sysfs_get_devtype(parent, attr_buff, FILE_NAME_SIZE) <= 0)
  		return PATHINFO_FAILED;

-	if (!strncmp(attr_buff, "3370", 4)) {
-		sprintf(pp->product_id,"S/390 DASD FBA");
-	} else if (!strncmp(attr_buff, "9336", 4)) {
-		sprintf(pp->product_id,"S/390 DASD FBA");
-	} else {
+	// PAV is only supported on ECKD devices.
+	// Defined in drivers/s390/block/dasd_eckd.c
+	if (!strncmp(attr_buff, "3390", 4) || !strncmp(attr_buff, "3380", 4)) {
  		sprintf(pp->product_id,"S/390 DASD ECKD");
  	}

diff --git a/libmultipath/hwtable.c b/libmultipath/hwtable.c
index 4ca4245c..8e052147 100644
--- a/libmultipath/hwtable.c
+++ b/libmultipath/hwtable.c
@@ -674,7 +674,8 @@ static struct hwentry default_hw[] = {
  		.no_path_retry = NO_PATH_RETRY_QUEUE,
  	},
  	{
-		/* PAV DASD ECKD */
+		// PAV DASD ECKD
+		// "ECKD devices" enumerated in: libmultipath/discovery.c
  		.vendor        = "IBM",
  		.product       = "S/390 DASD ECKD",
  		.bl_product    = "S/390 DASD ECKD",
@@ -683,16 +684,6 @@ static struct hwentry default_hw[] = {
  		.pgpolicy      = MULTIBUS,
  		.checker_name  = DIRECTIO,
  	},
-	{
-		/* PAV DASD FBA */
-		.vendor        = "IBM",
-		.product       = "S/390 DASD FBA",
-		.bl_product    = "S/390 DASD FBA",
-		.uid_attribute = "ID_UID",
-		.no_path_retry = NO_PATH_RETRY_QUEUE,
-		.pgpolicy      = MULTIBUS,
-		.checker_name  = DIRECTIO,
-	},
  	{
  		/* Power RAID */
  		.vendor        = "IBM",


  reply	other threads:[~2025-07-19 14:36 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-12 20:14 [PATCH] multipath-tools: fix default blacklist of s390 devices Xose Vazquez Perez
2025-07-12 22:11 ` Xose Vazquez Perez
2025-07-14 10:50   ` Martin Wilck
2025-07-14 12:38   ` Stefan Haberland
2025-07-18 20:54     ` Xose Vazquez Perez
2025-07-19 12:34       ` Martin Wilck
2025-07-19 14:36         ` Xose Vazquez Perez [this message]
2025-07-14 10:53 ` Martin Wilck
2025-07-14 12:40 ` Stefan Haberland

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=be0ea1f8-cb4e-4a2d-9902-163d7e6a5863@gmail.com \
    --to=xose.vazquez@gmail.com \
    --cc=Matthias.Rudolph@hitachivantara.com \
    --cc=agordeev@linux.ibm.com \
    --cc=bmarzins@redhat.com \
    --cc=borntraeger@linux.ibm.com \
    --cc=christophe.varoqui@opensvc.com \
    --cc=dm-devel@lists.linux.dev \
    --cc=gor@linux.ibm.com \
    --cc=hare@suse.de \
    --cc=hca@linux.ibm.com \
    --cc=hislop_nigel@dell.com \
    --cc=hislop_nigel@emc.com \
    --cc=linux-s390@vger.kernel.org \
    --cc=mwilck@suse.com \
    --cc=sth@linux.ibm.com \
    --cc=svens@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.