Re: [PATCH v2 1/2] dcache: allow word-at-a-time name hashing with big-endian CPUs

2013-12-12 Thread Benjamin Herrenschmidt
On Thu, 2013-12-12 at 10:38 -0800, Linus Torvalds wrote: > Ok, looks good. So I'm taking these even though it's outside the merge > window - they're small, and until you enable DCACHE_WORD_ACCESS on > big-endian they don't actually do anything. > > Ben - you might want to check if this makes DCACH

Re: [PATCH v2 1/2] dcache: allow word-at-a-time name hashing with big-endian CPUs

2013-12-12 Thread Linus Torvalds
Ok, looks good. So I'm taking these even though it's outside the merge window - they're small, and until you enable DCACHE_WORD_ACCESS on big-endian they don't actually do anything. Ben - you might want to check if this makes DCACHE_WORD_ACCESS useful on PowerPC too. Right now that requires an eff

[PATCH v2 1/2] dcache: allow word-at-a-time name hashing with big-endian CPUs

2013-12-12 Thread Will Deacon
When explicitly hashing the end of a string with the word-at-a-time interface, we have to be careful which end of the word we pick up. On big-endian CPUs, the upper-bits will contain the data we're after, so ensure we generate our masks accordingly (and avoid hashing whatever random junk may have