On Mon, 11 Feb 2008, Andi Kleen wrote:The only effective change is: - if (md->attribute & EFI_MEMORY_WB) + if (!(md->attribute & EFI_MEMORY_WB)) I appreciate that you noticed the reverse logic, which I messed up when I fixed up rejects. I pulled this out as it is a real fix. The rest of this patch is just turning code in circles for nothing, simply because it is functionally completely irrelevant whether does simply: if ((end >> PAGE_SHIFT) <= max_pfn_mapped) va = __va(md->phys_addr); else va = efi_ioremap(md->phys_addr, size); if (!(md->attribute & EFI_MEMORY_WB)) set_memory_uc(md->virt_addr, size); or if ((end >> PAGE_SHIFT) <= max_pfn_mapped) { va = __va(md->phys_addr); if (!(md->attribute & EFI_MEMORY_WB)) set_memory_uc(md->virt_addr, size); } else va = efi_ioremap(md->phys_addr, size, !!(md->attribute & EFI_MEMORY_WB)); And you just copied the real bug in that logic as well: set_memory_uc(md->virt_addr, size); ------------------------^^^^^^^^ which is initialized a couple of lines down. md->virt_addr = (u64) (unsigned long) va; The reordering/optimizing needs to be a separate patch. Please keep bugfixes and other changes separate. Can you please use CHECKME/FIXME which is used everywhere else. No need to invent an extra marker. Thanks, tglx --
| debian developer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 002/196] Chinese: rephrase English introduction in HOWTO |
| Jan Engelhardt | intel iommu (Re: -mm merge plans for 2.6.23) |
| Vladislav Bolkhovitin | Re: Integration of SCST in the mainstream Linux kernel |
git: | |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 15/37] dccp: Set per-connection CCIDs via socket options |
| Antonio Almeida | HTB accuracy for high speed |
| David Miller | [GIT]: Networking |
