* [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
2025-09-01 14:58 ` [PATCH net-next 2/2] net/smc: Improve log message for devices w/o pnetid Alexandra Winter
0 siblings, 2 replies; 5+ 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] 5+ 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-01 14:58 ` [PATCH net-next 2/2] net/smc: Improve log message for devices w/o pnetid Alexandra Winter
1 sibling, 1 reply; 5+ 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] 5+ 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
1 sibling, 1 reply; 5+ 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] 5+ 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
0 siblings, 0 replies; 5+ 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] 5+ 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; 5+ 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] 5+ messages in thread
end of thread, other threads:[~2025-09-02 8:54 UTC | newest]
Thread overview: 5+ 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-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
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).