lkml.org 
[lkml]   [2021]   [Nov]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Subjectremoteproc: rproc_va_to_pa returns invalid physical address when using sparse memory model
    Date
    On my arm platform with CONFIG_SPARSEMEM=y, when the virtual address comes
    from ioremap, which map to a reserved memory region, rproc_va_to_pa
    returns a invalid address. (no iommu)

    It's because the corresponding struct page and section not present.
    And then __page_to_pfn read the page->flags in the returned page which
    is actually an invalid address.
    (When CONFIG_SPARSMEM=y && CONFIG_SPARSEMEM_VMEMMAP=n, kernel get the
    section the page belong to in flags field.)

    I'm looking for suggestion to properly fix this problem.
    Could you please give us some suggestion?

    \
     
     \ /
      Last update: 2021-11-08 10:48    [W:4.281 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site