Thread (7 messages) flat view 7 messages, 3 authors, 2020-05-18

Re: [PATCH v5 2/2] powerpc/rtas: Implement reentrant rtas call

From: Nicholas Piggin <npiggin@gmail.com>
Date: 2020-05-17 22:52:16
Also in: lkml

Excerpts from Nicholas Piggin's message of May 16, 2020 5:36 pm:
Excerpts from Leonardo Bras's message of May 16, 2020 3:21 pm:
quoted
@@ -202,6 +220,7 @@ void __init __nostackprotector initialise_paca(struct paca_struct *new_paca, int
 	/* For now -- if we have threads this will be adjusted later */
 	new_paca->tcd_ptr = &new_paca->tcd;
 #endif
+	new_paca->reentrant_args = NULL;
 }
 
 /* Put the paca pointer into r13 and SPRG_PACA */
@@ -274,6 +293,7 @@ void __init allocate_paca(int cpu)
 #ifdef CONFIG_PPC_BOOK3S_64
 	paca->slb_shadow_ptr = new_slb_shadow(cpu, limit);
 #endif
+	paca->reentrant_args = new_rtas_args(cpu, limit);
Good, I think tihs should work as you want now. Can you allocate it like 
lppacas? Put it under PSERIES (and in the paca) and check for !HV?
Oh and while there, could you prefix the name with rtas_?

Thanks,
Nick
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help