Re: [patch 5/5] fix sn rw_mmr.h to use intrinsic

From: Jack Steiner <steiner_at_sgi.com>
Date: 2006-02-03 01:18:22
On Thu, Feb 02, 2006 at 04:39:23AM -0500, Jes Sorensen wrote:
> >>>>> "Tony" == Luck, Tony <tony.luck@intel.com> writes:
> 
> Tony> On Tue, Jan 31, 2006 at 11:19:35AM +0000, Christoph Hellwig
> Tony> wrote:
> >> Agreed.  Obsfucating for a propritary and pretty much irrelevant
> >> (for the kernel) compiler is a horrible thing to do.  And the only
> >> reason we do that at all is that the compiler is from the same
> >> company that's behind ia64.  Please fix up your damn compiler.
> >> Even SGI managed to add proper inline as?embly support to Pro64,
> >> and they had much less ressources.
> 
> Tony> How about we un-obfuscate the code by moving these three
> Tony> functions to a ".S" file?  They are reading from uncached
> Tony> physical memory, and are packed full of "srlz.i" and
> Tony> ".acq"/".rel" options, so it doesn't appear that moving them
> Tony> from inline to a full procedure call would make any measurable
> Tony> difference to performance (at least not for any macrobenchmark).

Sounds like a reasonable idea. I'll post the patch within a week. Is that
quick enough?


> 
> Tony,
> 
> We could do this in this particular case, but it doesn't solve the
> fundamental problem. What we really need is Intel showing that it will
> fix it's broken compilers once and for all if Intel wishes to continue
> compiling the kernel with it.
> 
> The way it is right now, it means users who make the mistake of
> compiling with ICC ends up exercising different codepaths than what
> everybody else runs. This makes bug reports and benchmark results
> meaningless.
> 
> What I don't understand is why this is so much more difficult for
> Intel's compiler team to fix when several other, and much smaller,
> teams haven't found it a problem to resolve it in the past.
> 
> Tony> pio_phys_read_mmr() isn't even used anyplace, so we could
> Tony> further clarify the code by dropping it altogether.
> 
> I don't know if there's code in the pipeline which expects to use
> this function. Anyone knows?

Nothing in the pipeline. I don't know of any longterm plans to use the 
function.  If we find a reason, the function is trivial to reinvent & 
add to the assembly function that contains the other function.


-- 
Thanks

Jack Steiner (steiner@sgi.com)          651-683-5302
Principal Engineer                      SGI - Silicon Graphics, Inc.


-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Fri Feb 03 01:20:22 2006

This archive was generated by hypermail 2.1.8 : 2006-02-03 01:20:30 EST