<tt><font size=2>Michael Ellerman <mpe@ellerman.id.au> wrote on
07/06/2017 03:41:14 AM:<br></font></tt><br><tt><font size=2>> <br>> Ricardo Marin Matinata <rmm@br.ibm.com> writes:<br>> <br>> > Also, "for the archives", the reason you won't need
rpadlpar_io module <br>> > (and linux-image-extra-*) on 16.10 and onwards is because ppc64-diag
no <br>> > longer requires it in more recent versions.<br>> <br>> No longer requires it under some circumstances AFAICS?<br>> <br>> static int check_kmods(void)<br>> {<br>> struct stat sbuf;<br>> int rc;<br>> <br>> /* We only need to do this for PHB/SLOT/PCI operations
*/<br>> if (usr_drc_type == DRC_TYPE_PCI || usr_drc_type
== DRC_TYPE_PHB ||<br>> usr_drc_type == DRC_TYPE_SLOT)<br>> return 0;<br>> <br>> /* We don't use rpadlar_io/rpaphp for PCI operations
run with the<br>> * -v / virtio flag, which relies on generic PCI
rescan instead<br>> */<br>> if (usr_drc_type == DRC_TYPE_PCI && pci_virtio)<br>> return 0;<br>> <br>> <br>> Or is it always run with "-v" these days?</font></tt><br><br><tt><font size=2>That is my understanding (unless I am missing something
here):</font></tt><br><br><tt><font size=2>void handle_hotplug_event(struct event *re)</font></tt><br><tt><font size=2>{</font></tt><br><tt><font size=2> struct rtas_event_hdr
*rtas_hdr = re->rtas_hdr;</font></tt><br><tt><font size=2> struct rtas_hotplug_scn
*hotplug;</font></tt><br><tt><font size=2> pid_t child;</font></tt><br><tt><font size=2> int status;</font></tt><br><tt><font size=2> char drc_index[11];</font></tt><br><tt><font size=2> char count[4];</font></tt><br><tt><font size=2> char *drmgr_args[] = {
DRMGR_PROGRAM_NOPATH, "-c", NULL, NULL, NULL,</font></tt><br><tt><font size=2>
NULL, NULL, "-d4", "-V",
NULL};</font></tt><br><br><tt><font size=2><br>> <br>> cheers<br>> <br></font></tt><br><font size=3>Saudações / Best Regards,<br>--<br>Ricardo Marin Matinata<br>STSM, Linux, KVM and Cloud on POWER<br>IBM Linux Technology Center | Open Systems Development | IBM Systems</font><BR>