Re: [patch 07/11] PAT x86: pat-conflict resolution using linear list

From: Andi Kleen
Date: Thu Jan 10 2008 - 14:13:20 EST


venkatesh.pallipadi@xxxxxxxxx writes:
>
> /* Reset the direct mapping. Can block */
> - if (p->flags >> 20)
> - ioremap_change_attr(p->phys_addr, p->size, 0);
> + if (p->flags >> 20) {
> + free_mattr(p->phys_addr, p->phys_addr + get_vm_area_size(p),
> + p->flags>>20);
> + ioremap_change_attr(p->phys_addr, get_vm_area_size(p), 0);

If you really unmap all holes and forbid (or let it just return the
__va address) ioremap on anything mapped (which is probably ok) then
you can eliminate that completely.

-Andi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/