On 07/28/2014 11:02 PM, Hauke Mehrtens wrote: > On 07/17/2014 11:26 PM, Rafał Miłecki wrote: >> So far BCM47XX can only detect amount of HIGHMEM. It still requires >> adding (registering) and well-testing before enabling by default. >> >> Signed-off-by: Rafał Miłecki <zajec5@xxxxxxxxx> >> --- >> Changes since RFC: >> 1) Use pgtable-32.h instead of ugly "extern" in .c file >> 2) Make it clear it needs work & testing before enabling > > NACK > > I tested this on my ASUS RT-66U with 256 MB ram and it panics. These > patches are looking similar to the code the Broadcom SDK, but I do not > know where the error is. > > Sorry this was wrong, I assumed this was the same version as the one I got privately. highmem still does not work, because the memory does not get registered, but it does not panic any more. For this patch: Acked-by: Hauke Mehrtens <hauke@xxxxxxxxxx> Here is a log output: [ 0.000000] Linux version 3.16.0-rc7+ (hauke@hauke-desktop) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r41527) ) #369 Mon Jul 28 23:48:54 CEST 2014 [ 0.000000] CPU0 revision is: 00019749 (MIPS 74Kc) [ 0.000000] bcm47xx: using bcma bus [ 0.000000] bcma: bus0: Found chip with id 0x5300, rev 0x01 and package 0x00 [ 0.000000] bcma: bus0: Core 0 found: BCM4706 ChipCommon (manuf 0x4BF, id 0x500, rev 0x1F, class 0x0) [ 0.000000] bcma: bus0: Core 3 found: MIPS 74K (manuf 0x4A7, id 0x82C, rev 0x00, class 0x0) [ 0.000000] bcma: bus0: Early bus registered [ 0.000000] Found 128 MiB of extra memory, but highmem is unsupported yet! [ 0.000000] MIPS: machine is Asus RT-N66U [ 0.000000] Determined physical RAM map: [ 0.000000] memory: 07fff000 @ 00000000 (usable) [ 0.000000] Initrd not found or empty - disabling initrd [ 0.000000] Zone ranges: [ 0.000000] Normal [mem 0x00000000-0x07ffefff] [ 0.000000] HighMem empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x00000000-0x07ffefff]