Skip to contentSkip to conversation

s390/net: updates 2022-02-21

PATCH Applied Alexandra Winter 2 participants 4 messages Feb 21, 2022 – Feb 23, 2022

Subsystems (5)
lore
Share & tools
lore

Alexandra Winter

author maintainer
#0 lore raw

cover s390/net: updates 2022-02-21

Hello Dave & Jakub,

please apply the following patches to netdev's net-next tree.

Just cleanup. No functional changes, as currently virt=phys in s390.

Thank you
Alexandra

Alexander Gordeev (2):
s390/iucv: sort out physical vs virtual pointers usage s390/net: sort out physical vs virtual pointers usage

 drivers/s390/net/lcs.c            | 8 ++++----
 drivers/s390/net/qeth_core_main.c | 2 +-
 net/iucv/iucv.c                   | 2 +-
 3 files changed, 6 insertions(+), 6 deletions(-)
Signature · 1 line
2.32.0
author maintainer
#1 lore raw

PATCH 1/2 s390/iucv: sort out physical vs virtual pointers usage

From: Alexander Gordeev <[email protected]>

Fix virtual vs physical address confusion (which currently are the same).

---
 net/iucv/iucv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/iucv/iucv.c +1 -1
index 8f4d49a7d3e8..eb0295d90039 100644
@@ -319,7 +319,7 @@ static inline int iucv_call_b2f0(int command, union iucv_param *parm)
  */
 static int __iucv_query_maxconn(void *param, unsigned long *max_pathid)
 {
-	unsigned long reg1 = (unsigned long)param;
+	unsigned long reg1 = virt_to_phys(param);
 	int cc;
 
 	asm volatile (
Signature · 1 line
2.32.0
author maintainer
#2 lore raw

PATCH 2/2 s390/net: sort out physical vs virtual pointers usage

In reply to Alexandra Winter

From: Alexander Gordeev <[email protected]>

Fix virtual vs physical address confusion (which currently are the same).

---
 drivers/s390/net/lcs.c            | 8 ++++----
 drivers/s390/net/qeth_core_main.c | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)
drivers/s390/net/lcs.c +4 -4
index a61d38a1b4ed..bab9b34926c6 100644
@@ -223,7 +223,7 @@ lcs_setup_read_ccws(struct lcs_card *card)
 		 * we do not need to do set_normalized_cda.
 		 */
 		card->read.ccws[cnt].cda =
-			(__u32) __pa(card->read.iob[cnt].data);
+			(__u32)virt_to_phys(card->read.iob[cnt].data);
 		((struct lcs_header *)
 		 card->read.iob[cnt].data)->offset = LCS_ILLEGAL_OFFSET;
 		card->read.iob[cnt].callback = lcs_get_frames_cb;
@@ -236,7 +236,7 @@ lcs_setup_read_ccws(struct lcs_card *card)
 	/* Last ccw is a tic (transfer in channel). */
 	card->read.ccws[LCS_NUM_BUFFS].cmd_code = LCS_CCW_TRANSFER;
 	card->read.ccws[LCS_NUM_BUFFS].cda =
-		(__u32) __pa(card->read.ccws);
+		(__u32)virt_to_phys(card->read.ccws);
 	/* Setg initial state of the read channel. */
 	card->read.state = LCS_CH_STATE_INIT;
 
@@ -278,12 +278,12 @@ lcs_setup_write_ccws(struct lcs_card *card)
 		 * we do not need to do set_normalized_cda.
 		 */
 		card->write.ccws[cnt].cda =
-			(__u32) __pa(card->write.iob[cnt].data);
+			(__u32)virt_to_phys(card->write.iob[cnt].data);
 	}
 	/* Last ccw is a tic (transfer in channel). */
 	card->write.ccws[LCS_NUM_BUFFS].cmd_code = LCS_CCW_TRANSFER;
 	card->write.ccws[LCS_NUM_BUFFS].cda =
-		(__u32) __pa(card->write.ccws);
+		(__u32)virt_to_phys(card->write.ccws);
 	/* Set initial state of the write channel. */
 	card->read.state = LCS_CH_STATE_INIT;
 
drivers/s390/net/qeth_core_main.c +1 -1
index 29f0111f8e11..d99c5b773e22 100644
@@ -426,7 +426,7 @@ static void qeth_setup_ccw(struct ccw1 *ccw, u8 cmd_code, u8 flags, u32 len,
 	ccw->cmd_code = cmd_code;
 	ccw->flags = flags | CCW_FLAG_SLI;
 	ccw->count = len;
-	ccw->cda = (__u32) __pa(data);
+	ccw->cda = (__u32)virt_to_phys(data);
 }
 
 static int __qeth_issue_next_read(struct qeth_card *card)
Signature · 1 line
2.32.0
#3 lore raw
In reply to Alexandra Winter
This series was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:

Hello:

This series was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:

Quoted 10 lines · On Mon, 21 Feb 2022 15:56:31 +0100 you wrote:

Hello Dave & Jakub,

please apply the following patches to netdev's net-next tree.

Just cleanup. No functional changes, as currently virt=phys in s390.

Thank you
Alexandra

[...]

Here is the summary with links:
- [net-next,1/2] s390/iucv: sort out physical vs virtual pointers usage

    https://git.kernel.org/netdev/net-next/c/ab847d03a5e4
  - [net-next,2/2] s390/net: sort out physical vs virtual pointers usage
    https://git.kernel.org/netdev/net-next/c/1bb7e8dff896

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html