From: Grant Grundler Date: Wed, 11 Jan 2006 01:47:57 +0000 (-0500) Subject: [PARISC] Fix BLK_BOUNCE_HIGH on parisc by initializing max_low_pfn X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5cdb8205e917c09fd1348e4b22e26492e8c45b36;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [PARISC] Fix BLK_BOUNCE_HIGH on parisc by initializing max_low_pfn max_low_pfn was not being set in arch/parisc/mm/init.c, causing severe problems whenever anything tried to use BLK_BOUNCE_HIGH. Set it to max_pfn like other similar architectures do. Signed-off-by: Grant Grundler Signed-off-by: Kyle McMartin --- diff --git a/arch/parisc/mm/init.c b/arch/parisc/mm/init.c index f2e7f13ddee..720287d46e5 100644 --- a/arch/parisc/mm/init.c +++ b/arch/parisc/mm/init.c @@ -300,6 +300,13 @@ static void __init setup_bootmem(void) max_pfn = start_pfn + npages; } + /* IOMMU is always used to access "high mem" on those boxes + * that can support enough mem that a PCI device couldn't + * directly DMA to any physical addresses. + * ISA DMA support will need to revisit this. + */ + max_low_pfn = max_pfn; + if ((bootmap_pfn - bootmap_start_pfn) != bootmap_pages) { printk(KERN_WARNING "WARNING! bootmap sizing is messed up!\n"); BUG();