Hi,
Daniel Phillips wrote:
> Where you ignore the distinction between logical and physical, it costs you
> execution time, as where you wrote page = virt_to_page(phys_to_virt((i <<
> PAGE_SHIFT) + bdata->node_boot_start)) where formerly we just had page++.
> This in generic code too. Unless you have an #ifdef CONFIG_SOMETHING there I
> recommend this code *not* be merged because it penalizes the common case for
> the sake of your arch. And it's unnecessary even for your arch, as I've
> demonstrated.
1. My patch only modifies init code, I don't think it's really a problem
if it's slightly slower.
2. Above can now be written as "page = pfn_to_page(i +
(bdata->node_boot_start >> PAGE_SHIFT))". Nice, isn't it? :)
> > > You do have a config option, it's CONFIG_SINGLE_MEMORY_CHUNK.
> >
> > That was our cheap answer to avoid the loops.
>
> My cheap answer is to turn the option off. So why don't I need a config
> option again?
You know, what that option does?
> > I don't need that, because I create a contiguous _virtual_ address
> > space.
>
> Again, we're arguing about what? So do I. The relationship between virtual
> and logical, for me, is just logical = virtual - PAGE_OFFSET, a meme you'll
> find in many places in the kernel source already, often obscured by the
> impression that physical addresses are really being manipulated when in fact
> nothing of the kind is going on - the simple truth is, the arithmetic gets
> easier then you work zero-based instead of PAGE_OFFSET based.
Why do you want to introduce another abstraction? If the logical address
is basically the same as the virtual address, just use the virtual
address. What difference should that offset make? Could you show me
please one single example?
> So now that we know we're both doing the same thing, could we please stop
> doing the catholics vs the protestants thing and maybe cooperate?
I'm an atheist. >:-)
bye, Roman
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Tue May 14 2002 - 12:00:12 EST