RE: [PATCH] tree wide: Use kvfree() than conditional kfree()/vfree()

2015-11-09 Thread Luck, Tony
> ACK for the ACPI changes (and CCing Tony and Boris for the heads-up as they > are way more famailiar with the APEI code than I am). Sure. If kvfree() really is smart enough to figure it out then there it no point in the if (blah) kfree() else vfree(). The drivers/acpi/apei/erst.c code isn't doi

RE: [PATCH] i386: Fix a couple busy loops in mach_wakecpu.h:wait_for_init_deassert()

2007-08-24 Thread Luck, Tony
>> static inline void wait_for_init_deassert(atomic_t *deassert) >> { >> -while (!atomic_read(deassert)); >> +while (!atomic_read(deassert)) >> +cpu_relax(); >> return; >> } > > For less-than-briliant people like me, it's totally non-obvious that > cpu_relax() is needed

RE: [PATCH 0/24] make atomic_read() behave consistently across all architectures

2007-08-16 Thread Luck, Tony
>> 6674: while (atomic_read(&j->DSPWrite) > 0) >> 6675- atomic_dec(&j->DSPWrite); > > If the maintainer of this code doesn't see a compelling reason to add > cpu_relax() in this loop, then it should be patched. Shouldn't it be just re-written without the loop: if ((tmp = atom

RE: [PATCH 9/24] make atomic_read() behave consistently on ia64

2007-08-10 Thread Luck, Tony
> Here are the functions in which they occur in the object file. You > may have to chase down some inlining to find the function that > actually uses atomic_*(). Ignore this ... Andreas' patch was only two lines so I thought I'd "save time" by just hand-editing the source over on my build machine.

RE: [PATCH 9/24] make atomic_read() behave consistently on ia64

2007-08-10 Thread Luck, Tony
> Possibly. Either that or we've uncovered some latent bugs. Maybe a > combination of the two. Can you list those 19 changes so we can evaluate them? Here are the functions in which they occur in the object file. You may have to chase down some inlining to find the function that actually uses

RE: [PATCH 9/24] make atomic_read() behave consistently on ia64

2007-08-10 Thread Luck, Tony
> Use atomic64_read to read an atomic64_t. Thanks Andreas! Chris: This bug is why the 8-byte loads got changed to 4-byte + sign-extend by your change to atomic_read(). With this applied together with shuffling the volatile from the declaration to the usage (in both atomic_read() and atomic_set()

RE: [PATCH 9/24] make atomic_read() behave consistently on ia64

2007-08-10 Thread Luck, Tony
> That's distressing. I'm about to resubmit with a volatile cast in > atomic_set as well, since people expect that behavior and I've been > shown a legitimate case where it could matter. Does the assembly look > right with that cast in atomic_set() as well? No. With the casts to volatile in

RE: [PATCH 9/24] make atomic_read() behave consistently on ia64

2007-08-09 Thread Luck, Tony
> +#define atomic_read(v) (*(volatile __s32 *)&(v)->counter) > +#define atomic64_read(v) (*(volatile __s64 *)&(v)->counter) > > #define atomic_set(v,i) (((v)->counter) = (i)) > #define atomic64_set(v,i)(((v)->counter) = (i)) Losing the volatile from the "set"

RE: [2/2] 2.6.23-rc2: known regressions with patches

2007-08-06 Thread Luck, Tony
> > Caused-By : Thomas Renninger <[EMAIL PROTECTED]> > > commit 29b71a1ca74491fab9fed09e9d835d840d042690 > A patch was sent to Tony. AFAIK it got accepted, not sure whether it > already is in any and which git tree... The suggested patch adds manual padding to the acpi_dev