<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How can I get more vmalloc/ioremap space? in P-Series</title>
    <link>https://community.nxp.com/t5/P-Series/How-can-I-get-more-vmalloc-ioremap-space/m-p/339456#M1561</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh sorry, I forgot about TASK_SIZE.&amp;nbsp; It should be set to the same value as PAGE_OFFSET -- the lowmem/highmem split is irrelevant to TASK_SIZE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unless you know that you're pushing against the limits of the user task size, it's probably better to keep lowmem at 768 MiB and get the entire vmalloc increase by reducing the user task size.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Sep 2014 18:09:59 GMT</pubDate>
    <dc:creator>scottwood</dc:creator>
    <dc:date>2014-09-24T18:09:59Z</dc:date>
    <item>
      <title>How can I get more vmalloc/ioremap space?</title>
      <link>https://community.nxp.com/t5/P-Series/How-can-I-get-more-vmalloc-ioremap-space/m-p/339453#M1558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a P1022 board with 256MB of NOR Flash and 2GB of DDR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to map all of the flash, as well as several other devices, and I"m running&lt;/P&gt;&lt;P&gt;out of vmalloc/ioremap space.&lt;/P&gt;&lt;P&gt;Here's what the kernel says at startup:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.000000] Kernel virtual memory layout:&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.000000]&amp;nbsp;&amp;nbsp; * 0xfffbf000..0xfffff000&amp;nbsp; : fixmap&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.000000]&amp;nbsp;&amp;nbsp; * 0xff800000..0xffc00000&amp;nbsp; : highmem PTEs&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.000000]&amp;nbsp;&amp;nbsp; * 0xff7fd000..0xff800000&amp;nbsp; : early ioremap&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.000000]&amp;nbsp;&amp;nbsp; * 0xf1000000..0xff7fd000&amp;nbsp; : vmalloc &amp;amp; ioremap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have less than 256MB.&amp;nbsp; I can map some of flash by cutting&lt;/P&gt;&lt;P&gt;down the defined size in the dtb, but we may need the space.&lt;/P&gt;&lt;P&gt;If I try to define the whole flash the cfi probe routine can't&lt;/P&gt;&lt;P&gt;vmalloc() the space for the flash and nothing is accessible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using vmalloc=1024m and it did nothing&lt;/P&gt;&lt;P&gt;I tried adjusting CONFIG_KERNEL_PHYSICAL_START and&lt;/P&gt;&lt;P&gt;that didn't seem to do anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any guidance on how to adjust these parameters?&amp;nbsp; I'd rather&lt;/P&gt;&lt;P&gt;have a plan than start changing things without understanding&lt;/P&gt;&lt;P&gt;the consequences.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cary O'Brien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 20:05:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/How-can-I-get-more-vmalloc-ioremap-space/m-p/339453#M1558</guid>
      <dc:creator>caryo_brien</dc:creator>
      <dc:date>2014-09-23T20:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get more vmalloc/ioremap space?</title>
      <link>https://community.nxp.com/t5/P-Series/How-can-I-get-more-vmalloc-ioremap-space/m-p/339454#M1559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;arch/powerpc does not use the vmalloc boot parameter.&amp;nbsp; Instead, vmalloc space is what's left over after you subtract the user address space and low memory.&amp;nbsp; These are controlled by CONFIG_PAGE_OFFSET and CONFIG_LOWMEM_SIZE, respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONFIG_PHYSICAL_START is not related to this -- it is used to indicate, with a non-relocatable kernel, that the kernel will be loaded at a physical address other than zero.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 20:47:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/How-can-I-get-more-vmalloc-ioremap-space/m-p/339454#M1559</guid>
      <dc:creator>scottwood</dc:creator>
      <dc:date>2014-09-23T20:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get more vmalloc/ioremap space?</title>
      <link>https://community.nxp.com/t5/P-Series/How-can-I-get-more-vmalloc-ioremap-space/m-p/339455#M1560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent, thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I removed 256MB from CONFIG_PAGE_OFFSET and 246MB from CONFIG_LOWMEM_SIZE.&lt;/P&gt;&lt;P&gt;I got an error about regions overlapping and removed 512MB from USER_TASK_SIZE and&lt;/P&gt;&lt;P&gt;now there is plenty of room for flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be more specifc, in the defconfig I have&lt;/P&gt;&lt;P&gt;#&lt;BR /&gt;# Advanced setup&lt;BR /&gt;#&lt;BR /&gt;CONFIG_ADVANCED_OPTIONS=y&lt;BR /&gt;CONFIG_LOWMEM_SIZE_BOOL=y&lt;BR /&gt;CONFIG_LOWMEM_SIZE=0x20000000&lt;BR /&gt;# CONFIG_LOWMEM_CAM_NUM_BOOL is not set&lt;BR /&gt;CONFIG_LOWMEM_CAM_NUM=3&lt;BR /&gt;# CONFIG_DYNAMIC_MEMSTART is not set&lt;BR /&gt;CONFIG_PAGE_OFFSET_BOOL=y&lt;BR /&gt;CONFIG_PAGE_OFFSET=0xB0000000&lt;BR /&gt;# CONFIG_KERNEL_START_BOOL is not set&lt;BR /&gt;CONFIG_KERNEL_START=0xC0000000&lt;BR /&gt;# CONFIG_PHYSICAL_START_BOOL is not set&lt;BR /&gt;CONFIG_PHYSICAL_START=0x00000000&lt;BR /&gt;CONFIG_PHYSICAL_ALIGN=0x04000000&lt;BR /&gt;CONFIG_TASK_SIZE_BOOL=y&lt;BR /&gt;CONFIG_TASK_SIZE=0xa0000000&lt;BR /&gt;CONFIG_NET=y&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the kernel startup shows.&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.000000]&amp;nbsp;&amp;nbsp; * 0xfffbf000..0xfffff000&amp;nbsp; : fixmap&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.000000]&amp;nbsp;&amp;nbsp; * 0xff800000..0xffc00000&amp;nbsp; : highmem PTEs&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.000000]&amp;nbsp;&amp;nbsp; * 0xff7fd000..0xff800000&amp;nbsp; : early ioremap&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.000000]&amp;nbsp;&amp;nbsp; * 0xd1000000..0xff7fd000&amp;nbsp; : vmalloc &amp;amp; ioremap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which is 512MB more than before.&amp;nbsp; So it all makes sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cary O'Brien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 21:31:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/How-can-I-get-more-vmalloc-ioremap-space/m-p/339455#M1560</guid>
      <dc:creator>caryo_brien</dc:creator>
      <dc:date>2014-09-23T21:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get more vmalloc/ioremap space?</title>
      <link>https://community.nxp.com/t5/P-Series/How-can-I-get-more-vmalloc-ioremap-space/m-p/339456#M1561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh sorry, I forgot about TASK_SIZE.&amp;nbsp; It should be set to the same value as PAGE_OFFSET -- the lowmem/highmem split is irrelevant to TASK_SIZE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unless you know that you're pushing against the limits of the user task size, it's probably better to keep lowmem at 768 MiB and get the entire vmalloc increase by reducing the user task size.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 18:09:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/How-can-I-get-more-vmalloc-ioremap-space/m-p/339456#M1561</guid>
      <dc:creator>scottwood</dc:creator>
      <dc:date>2014-09-24T18:09:59Z</dc:date>
    </item>
  </channel>
</rss>

