<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 28, 2021 at 11:58 AM <<a href="mailto:gouhao@uniontech.com">gouhao@uniontech.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <div><div><div id="gmail-m_-854401823071140671MailBelowDiv"></div><div style="overflow-wrap: break-word;"><div>This change makes sense.</div><div><br></div><div>On my computer, the last CPU can't be offline, which causes the execution of this testcase to fail.</div></div></div></div></blockquote><div><br></div><div class="gmail_default" style="font-size:small">But the CPU0 on your system will always online, so the last one should be offline safely.</div><div class="gmail_default" style="font-size:small">If it not, that might a kernel issue I guess.</div><div class="gmail_default" style="font-size:small"></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><div style="overflow-wrap: break-word;"><div><br></div><div>However, the testcase makes special treatment to the last CPU. If the last CPU cannot be offline, the execution result of the testcase should not be affected.</div></div></div></div></blockquote><div><br></div><div class="gmail_default" style="font-size:small">Yes, but from cpuhotplug04.sh comment line#84: </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">           # If all the CPUs are hotpluggable, we expect<br>         # that the kernel will refuse to offline the last CPU.<br>                # If only some of the CPUs are hotpluggable,<br>          # they all can be offlined.<br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">How do you think of this description? In your system, it obviously belongs to</div><div class="gmail_default" style="font-size:small">the second scenario that the cpu0 is online and you should be able to offline</div><div class="gmail_default" style="font-size:small">all the remaining hotplugged one, isn't it?</div><div class="gmail_default" style="font-size:small"></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><div style="overflow-wrap: break-word;"><div><br></div><div>Therefore, if cpu0 does not have an online file, it will lead to an error in the judgment of the last CPU.</div></div></div></div></blockquote><div><br></div><div class="gmail_default" style="font-size:small">If cpu0 does not have an online file, that means the last CPU (hotplugged) can be offline as well.</div><div class="gmail_default" style="font-size:small">To verify this assumption, you can try manually offline CPU one by one, this time I suggest you</div><div class="gmail_default" style="font-size:small">try the last one first.</div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Regards,<br></div><div>Li Wang<br></div></div></div></div>