Skip to content

Commit e617fce

Browse files
Hidetoshi Setoaegl
authored andcommitted
[IA64] bugfix: nptcg breaks cpu-hotadd
If "max_purges" from PAL is 0, it actually means 1. However it was not handled later when a hot-added cpu pass the max_purges from PAL. This makes systems easy to go BUG_ON(). Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
1 parent 7663c1e commit e617fce

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎arch/ia64/mm/tlb.c‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,10 @@ setup_ptcg_sem(int max_purges, int nptcg_from)
168168
static int firstcpu = 1;
169169

170170
if (toolatetochangeptcgsem) {
171-
BUG_ON(max_purges < nptcg);
171+
if (nptcg_from == NPTCG_FROM_PAL && max_purges == 0)
172+
BUG_ON(1 < nptcg);
173+
else
174+
BUG_ON(max_purges < nptcg);
172175
return;
173176
}
174177

0 commit comments

Comments
 (0)