Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757864AbbEVPze (ORCPT ); Fri, 22 May 2015 11:55:34 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:30257 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757129AbbEVPza (ORCPT ); Fri, 22 May 2015 11:55:30 -0400 From: Paul Burton To: CC: , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , "Paul Burton" , , James Hogan , Markos Chandras , "Ralf Baechle" Subject: [PATCH 13/15] MIPS: malta: remove nonsense memory limit Date: Fri, 22 May 2015 16:51:12 +0100 Message-ID: <1432309875-9712-14-git-send-email-paul.burton@imgtec.com> X-Mailer: git-send-email 2.4.1 In-Reply-To: <1432309875-9712-1-git-send-email-paul.burton@imgtec.com> References: <1432309875-9712-1-git-send-email-paul.burton@imgtec.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [192.168.159.131] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1332 Lines: 42 This cap of Malta memory size to 0x7fff0000 was added by commit e6ca4e5bf114 "MIPS: malta: malta-memory: Add support for the 'ememsize' variable" as part of support for EVA, with only the cryptic comment "Last 64K for HIGHMEM arithmetics". However - EVA is used to avoid highmem, both are not enabled at once which makes the comment about highmem macros nonsensical. - I can think of no good reason for it, and nor could anyone else I asked. So remove this memsize limit. Signed-off-by: Paul Burton --- arch/mips/mti-malta/malta-memory.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/mips/mti-malta/malta-memory.c b/arch/mips/mti-malta/malta-memory.c index 5660cd6..831f583 100644 --- a/arch/mips/mti-malta/malta-memory.c +++ b/arch/mips/mti-malta/malta-memory.c @@ -94,10 +94,6 @@ void __init fw_meminit(void) else memsize = physical_memsize; - /* Last 64K for HIGHMEM arithmetics */ - if (memsize > 0x7fff0000) - memsize = 0x7fff0000; - add_memory_region(PHYS_OFFSET, 0x00001000, BOOT_MEM_RESERVED); /* -- 2.4.1 -- 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/