linux-s390.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] net/smc and s390/ism: Improve log messages
@ 2025-09-01 14:58 Alexandra Winter
  2025-09-01 14:58 ` [PATCH net-next 1/2] s390/ism: Log module load/unload Alexandra Winter
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Alexandra Winter @ 2025-09-01 14:58 UTC (permalink / raw)
  To: D. Wythe, Dust Li, Sidraya Jayagond, Wenjia Zhang,
	Aswin Karuvally, David Miller, Jakub Kicinski, Paolo Abeni,
	Eric Dumazet, Andrew Lunn
  Cc: Mahanta Jambigi, Tony Lu, Wen Gu, netdev, linux-s390,
	Heiko Carstens, Vasily Gorbik, Alexander Gordeev,
	Christian Borntraeger, Sven Schnelle, Simon Horman

Separate these two improvements from the dibs layer series [1], as they are
actually unrelated.

Link: https://lore.kernel.org/netdev/20250806154122.3413330-1-wintera@linux.ibm.com/ [1]

Alexandra Winter (2):
  s390/ism: Log module load/unload
  net/smc: Improve log message for devices w/o pnetid

 drivers/s390/net/ism_drv.c |  7 ++++++-
 net/smc/smc_ib.c           | 18 +++++++++++-------
 net/smc/smc_ism.c          | 13 +++++++++----
 3 files changed, 26 insertions(+), 12 deletions(-)

-- 
2.48.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH net-next 1/2] s390/ism: Log module load/unload
  2025-09-01 14:58 [PATCH net-next 0/2] net/smc and s390/ism: Improve log messages Alexandra Winter
@ 2025-09-01 14:58 ` Alexandra Winter
  2025-09-02  8:54   ` Simon Horman
  2025-09-03 23:42   ` Jakub Kicinski
  2025-09-01 14:58 ` [PATCH net-next 2/2] net/smc: Improve log message for devices w/o pnetid Alexandra Winter
  2025-09-04 16:00 ` [PATCH net-next 0/2] net/smc and s390/ism: Improve log messages patchwork-bot+netdevbpf
  2 siblings, 2 replies; 9+ messages in thread
From: Alexandra Winter @ 2025-09-01 14:58 UTC (permalink / raw)
  To: D. Wythe, Dust Li, Sidraya Jayagond, Wenjia Zhang,
	Aswin Karuvally, David Miller, Jakub Kicinski, Paolo Abeni,
	Eric Dumazet, Andrew Lunn
  Cc: Mahanta Jambigi, Tony Lu, Wen Gu, netdev, linux-s390,
	Heiko Carstens, Vasily Gorbik, Alexander Gordeev,
	Christian Borntraeger, Sven Schnelle, Simon Horman

Add log messages to visualize timeline of module loads and unloads.

Signed-off-by: Alexandra Winter <wintera@linux.ibm.com>
---
 drivers/s390/net/ism_drv.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/drivers/s390/net/ism_drv.c b/drivers/s390/net/ism_drv.c
index 6cd60b174315..a543e59818bb 100644
--- a/drivers/s390/net/ism_drv.c
+++ b/drivers/s390/net/ism_drv.c
@@ -718,8 +718,12 @@ static int __init ism_init(void)
 	debug_register_view(ism_debug_info, &debug_hex_ascii_view);
 	ret = pci_register_driver(&ism_driver);
 	if (ret)
-		debug_unregister(ism_debug_info);
+		goto err_dbg_unreg;
+	pr_info("module loaded\n");
+	return 0;
 
+err_dbg_unreg:
+	debug_unregister(ism_debug_info);
 	return ret;
 }
 
@@ -727,6 +731,7 @@ static void __exit ism_exit(void)
 {
 	pci_unregister_driver(&ism_driver);
 	debug_unregister(ism_debug_info);
+	pr_info("module unloaded\n");
 }
 
 module_init(ism_init);
-- 
2.48.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH net-next 2/2] net/smc: Improve log message for devices w/o pnetid
  2025-09-01 14:58 [PATCH net-next 0/2] net/smc and s390/ism: Improve log messages Alexandra Winter
  2025-09-01 14:58 ` [PATCH net-next 1/2] s390/ism: Log module load/unload Alexandra Winter
@ 2025-09-01 14:58 ` Alexandra Winter
  2025-09-02  8:54   ` Simon Horman
  2025-09-04 16:00 ` [PATCH net-next 0/2] net/smc and s390/ism: Improve log messages patchwork-bot+netdevbpf
  2 siblings, 1 reply; 9+ messages in thread
From: Alexandra Winter @ 2025-09-01 14:58 UTC (permalink / raw)
  To: D. Wythe, Dust Li, Sidraya Jayagond, Wenjia Zhang,
	Aswin Karuvally, David Miller, Jakub Kicinski, Paolo Abeni,
	Eric Dumazet, Andrew Lunn
  Cc: Mahanta Jambigi, Tony Lu, Wen Gu, netdev, linux-s390,
	Heiko Carstens, Vasily Gorbik, Alexander Gordeev,
	Christian Borntraeger, Sven Schnelle, Simon Horman

Explicitly state in the log message, when a device has no pnetid.
"with pnetid" and "has pnetid" was misleading for devices without pnetid.

Signed-off-by: Alexandra Winter <wintera@linux.ibm.com>
Reviewed-by: Dust Li <dust.li@linux.alibaba.com>
---
 net/smc/smc_ib.c  | 18 +++++++++++-------
 net/smc/smc_ism.c | 13 +++++++++----
 2 files changed, 20 insertions(+), 11 deletions(-)

diff --git a/net/smc/smc_ib.c b/net/smc/smc_ib.c
index 53828833a3f7..f2de12990b5b 100644
--- a/net/smc/smc_ib.c
+++ b/net/smc/smc_ib.c
@@ -971,13 +971,17 @@ static int smc_ib_add_dev(struct ib_device *ibdev)
 					   smcibdev->pnetid[i]))
 			smc_pnetid_by_table_ib(smcibdev, i + 1);
 		smc_copy_netdev_ifindex(smcibdev, i);
-		pr_warn_ratelimited("smc:    ib device %s port %d has pnetid "
-				    "%.16s%s\n",
-				    smcibdev->ibdev->name, i + 1,
-				    smcibdev->pnetid[i],
-				    smcibdev->pnetid_by_user[i] ?
-				     " (user defined)" :
-				     "");
+		if (smc_pnet_is_pnetid_set(smcibdev->pnetid[i]))
+			pr_warn_ratelimited("smc:    ib device %s port %d has pnetid %.16s%s\n",
+					    smcibdev->ibdev->name, i + 1,
+					    smcibdev->pnetid[i],
+					    smcibdev->pnetid_by_user[i] ?
+						" (user defined)" :
+						"");
+		else
+			pr_warn_ratelimited("smc:    ib device %s port %d has no pnetid\n",
+					    smcibdev->ibdev->name, i + 1);
+
 	}
 	schedule_work(&smcibdev->port_event_work);
 	return 0;
diff --git a/net/smc/smc_ism.c b/net/smc/smc_ism.c
index 84f98e18c7db..a58ffb7a0610 100644
--- a/net/smc/smc_ism.c
+++ b/net/smc/smc_ism.c
@@ -518,10 +518,15 @@ static void smcd_register_dev(struct ism_dev *ism)
 	}
 	mutex_unlock(&smcd_dev_list.mutex);
 
-	pr_warn_ratelimited("smc: adding smcd device %s with pnetid %.16s%s\n",
-			    dev_name(&ism->dev), smcd->pnetid,
-			    smcd->pnetid_by_user ? " (user defined)" : "");
-
+	if (smc_pnet_is_pnetid_set(smcd->pnetid))
+		pr_warn_ratelimited("smc: adding smcd device %s with pnetid %.16s%s\n",
+				    dev_name(&ism->dev), smcd->pnetid,
+				    smcd->pnetid_by_user ?
+					" (user defined)" :
+					"");
+	else
+		pr_warn_ratelimited("smc: adding smcd device %s without pnetid\n",
+				    dev_name(&ism->dev));
 	return;
 }
 
-- 
2.48.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH net-next 1/2] s390/ism: Log module load/unload
  2025-09-01 14:58 ` [PATCH net-next 1/2] s390/ism: Log module load/unload Alexandra Winter
@ 2025-09-02  8:54   ` Simon Horman
  2025-09-03 23:42   ` Jakub Kicinski
  1 sibling, 0 replies; 9+ messages in thread
From: Simon Horman @ 2025-09-02  8:54 UTC (permalink / raw)
  To: Alexandra Winter
  Cc: D. Wythe, Dust Li, Sidraya Jayagond, Wenjia Zhang,
	Aswin Karuvally, David Miller, Jakub Kicinski, Paolo Abeni,
	Eric Dumazet, Andrew Lunn, Mahanta Jambigi, Tony Lu, Wen Gu,
	netdev, linux-s390, Heiko Carstens, Vasily Gorbik,
	Alexander Gordeev, Christian Borntraeger, Sven Schnelle

On Mon, Sep 01, 2025 at 04:58:41PM +0200, Alexandra Winter wrote:
> Add log messages to visualize timeline of module loads and unloads.
> 
> Signed-off-by: Alexandra Winter <wintera@linux.ibm.com>

Reviewed-by: Simon Horman <horms@kernel.org>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH net-next 2/2] net/smc: Improve log message for devices w/o pnetid
  2025-09-01 14:58 ` [PATCH net-next 2/2] net/smc: Improve log message for devices w/o pnetid Alexandra Winter
@ 2025-09-02  8:54   ` Simon Horman
  0 siblings, 0 replies; 9+ messages in thread
From: Simon Horman @ 2025-09-02  8:54 UTC (permalink / raw)
  To: Alexandra Winter
  Cc: D. Wythe, Dust Li, Sidraya Jayagond, Wenjia Zhang,
	Aswin Karuvally, David Miller, Jakub Kicinski, Paolo Abeni,
	Eric Dumazet, Andrew Lunn, Mahanta Jambigi, Tony Lu, Wen Gu,
	netdev, linux-s390, Heiko Carstens, Vasily Gorbik,
	Alexander Gordeev, Christian Borntraeger, Sven Schnelle

On Mon, Sep 01, 2025 at 04:58:42PM +0200, Alexandra Winter wrote:
> Explicitly state in the log message, when a device has no pnetid.
> "with pnetid" and "has pnetid" was misleading for devices without pnetid.
> 
> Signed-off-by: Alexandra Winter <wintera@linux.ibm.com>
> Reviewed-by: Dust Li <dust.li@linux.alibaba.com>

Reviewed-by: Simon Horman <horms@kernel.org>


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH net-next 1/2] s390/ism: Log module load/unload
  2025-09-01 14:58 ` [PATCH net-next 1/2] s390/ism: Log module load/unload Alexandra Winter
  2025-09-02  8:54   ` Simon Horman
@ 2025-09-03 23:42   ` Jakub Kicinski
  2025-09-04  7:16     ` Alexandra Winter
  1 sibling, 1 reply; 9+ messages in thread
From: Jakub Kicinski @ 2025-09-03 23:42 UTC (permalink / raw)
  To: Alexandra Winter
  Cc: D. Wythe, Dust Li, Sidraya Jayagond, Wenjia Zhang,
	Aswin Karuvally, David Miller, Paolo Abeni, Eric Dumazet,
	Andrew Lunn, Mahanta Jambigi, Tony Lu, Wen Gu, netdev, linux-s390,
	Heiko Carstens, Vasily Gorbik, Alexander Gordeev,
	Christian Borntraeger, Sven Schnelle, Simon Horman

On Mon,  1 Sep 2025 16:58:41 +0200 Alexandra Winter wrote:
> Add log messages to visualize timeline of module loads and unloads.

How deeply do you care about this patch ? I understand the benefit when
debugging "interface doesn't exist" issues with just logs at hand.
OTOH seeing a litany of "hello" messages on every boot from built-in
drivers, is rather annoying. Perhaps this being an s390 driver makes
it a bit of a special case..

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH net-next 1/2] s390/ism: Log module load/unload
  2025-09-03 23:42   ` Jakub Kicinski
@ 2025-09-04  7:16     ` Alexandra Winter
  2025-09-04 15:59       ` Jakub Kicinski
  0 siblings, 1 reply; 9+ messages in thread
From: Alexandra Winter @ 2025-09-04  7:16 UTC (permalink / raw)
  To: Jakub Kicinski
  Cc: D. Wythe, Dust Li, Sidraya Jayagond, Wenjia Zhang,
	Aswin Karuvally, David Miller, Paolo Abeni, Eric Dumazet,
	Andrew Lunn, Mahanta Jambigi, Tony Lu, Wen Gu, netdev, linux-s390,
	Heiko Carstens, Vasily Gorbik, Alexander Gordeev,
	Christian Borntraeger, Sven Schnelle, Simon Horman



On 04.09.25 01:42, Jakub Kicinski wrote:
> On Mon,  1 Sep 2025 16:58:41 +0200 Alexandra Winter wrote:
>> Add log messages to visualize timeline of module loads and unloads.
> 
> How deeply do you care about this patch ? I understand the benefit when
> debugging "interface doesn't exist" issues with just logs at hand.
> OTOH seeing a litany of "hello" messages on every boot from built-in
> drivers, is rather annoying. Perhaps this being an s390 driver makes
> it a bit of a special case..

tl dr: I don't care very deeply

I think s390 users care a lot about debugability and are less concerned
about log size. As you said, many other modules (on s390) have these
'hello' messages, so I kind of expected the ism module to show up as well.
But if you want to reject it, we can live without it ;-)

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH net-next 1/2] s390/ism: Log module load/unload
  2025-09-04  7:16     ` Alexandra Winter
@ 2025-09-04 15:59       ` Jakub Kicinski
  0 siblings, 0 replies; 9+ messages in thread
From: Jakub Kicinski @ 2025-09-04 15:59 UTC (permalink / raw)
  To: Alexandra Winter
  Cc: D. Wythe, Dust Li, Sidraya Jayagond, Wenjia Zhang,
	Aswin Karuvally, David Miller, Paolo Abeni, Eric Dumazet,
	Andrew Lunn, Mahanta Jambigi, Tony Lu, Wen Gu, netdev, linux-s390,
	Heiko Carstens, Vasily Gorbik, Alexander Gordeev,
	Christian Borntraeger, Sven Schnelle, Simon Horman

On Thu, 4 Sep 2025 09:16:27 +0200 Alexandra Winter wrote:
> On 04.09.25 01:42, Jakub Kicinski wrote:
> > On Mon,  1 Sep 2025 16:58:41 +0200 Alexandra Winter wrote:  
> >> Add log messages to visualize timeline of module loads and unloads.  
> > 
> > How deeply do you care about this patch ? I understand the benefit when
> > debugging "interface doesn't exist" issues with just logs at hand.
> > OTOH seeing a litany of "hello" messages on every boot from built-in
> > drivers, is rather annoying. Perhaps this being an s390 driver makes
> > it a bit of a special case..  
> 
> tl dr: I don't care very deeply
> 
> I think s390 users care a lot about debugability and are less concerned
> about log size. As you said, many other modules (on s390) have these
> 'hello' messages, so I kind of expected the ism module to show up as well.
> But if you want to reject it, we can live without it ;-)

Let me take only the second patch from the series, then. Thanks!

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH net-next 0/2] net/smc and s390/ism: Improve log messages
  2025-09-01 14:58 [PATCH net-next 0/2] net/smc and s390/ism: Improve log messages Alexandra Winter
  2025-09-01 14:58 ` [PATCH net-next 1/2] s390/ism: Log module load/unload Alexandra Winter
  2025-09-01 14:58 ` [PATCH net-next 2/2] net/smc: Improve log message for devices w/o pnetid Alexandra Winter
@ 2025-09-04 16:00 ` patchwork-bot+netdevbpf
  2 siblings, 0 replies; 9+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-09-04 16:00 UTC (permalink / raw)
  To: Alexandra Winter
  Cc: alibuda, dust.li, sidraya, wenjia, aswin, davem, kuba, pabeni,
	edumazet, andrew+netdev, mjambigi, tonylu, guwen, netdev,
	linux-s390, hca, gor, agordeev, borntraeger, svens, horms

Hello:

This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Mon,  1 Sep 2025 16:58:40 +0200 you wrote:
> Separate these two improvements from the dibs layer series [1], as they are
> actually unrelated.
> 
> Link: https://lore.kernel.org/netdev/20250806154122.3413330-1-wintera@linux.ibm.com/ [1]
> 
> Alexandra Winter (2):
>   s390/ism: Log module load/unload
>   net/smc: Improve log message for devices w/o pnetid
> 
> [...]

Here is the summary with links:
  - [net-next,1/2] s390/ism: Log module load/unload
    (no matching commit)
  - [net-next,2/2] net/smc: Improve log message for devices w/o pnetid
    https://git.kernel.org/netdev/net-next/c/c975e1dfcc92

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-09-04 16:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-01 14:58 [PATCH net-next 0/2] net/smc and s390/ism: Improve log messages Alexandra Winter
2025-09-01 14:58 ` [PATCH net-next 1/2] s390/ism: Log module load/unload Alexandra Winter
2025-09-02  8:54   ` Simon Horman
2025-09-03 23:42   ` Jakub Kicinski
2025-09-04  7:16     ` Alexandra Winter
2025-09-04 15:59       ` Jakub Kicinski
2025-09-01 14:58 ` [PATCH net-next 2/2] net/smc: Improve log message for devices w/o pnetid Alexandra Winter
2025-09-02  8:54   ` Simon Horman
2025-09-04 16:00 ` [PATCH net-next 0/2] net/smc and s390/ism: Improve log messages patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).