Re: [PATCH kernel v5 1/4] powerpc/powernv/ioda: Fix race in TCE level allocation

2019-08-22 Thread Michael Ellerman
On Thu, 2019-07-18 at 05:11:36 UTC, Alexey Kardashevskiy wrote: > pnv_tce() returns a pointer to a TCE entry and originally a TCE table > would be pre-allocated. For the default case of 2GB window the table > needs only a single level and that is fine. However if more levels are > requested, it is

[PATCH kernel v5 1/4] powerpc/powernv/ioda: Fix race in TCE level allocation

2019-07-17 Thread Alexey Kardashevskiy
pnv_tce() returns a pointer to a TCE entry and originally a TCE table would be pre-allocated. For the default case of 2GB window the table needs only a single level and that is fine. However if more levels are requested, it is possible to get a race when 2 threads want a pointer to a TCE entry from