Thread (2 messages) flat view 2 messages, 2 authors, 2018-10-02

question about update mmu table entry when mmu and smmu use one page

From: Jean-Philippe Brucker <hidden>
Date: 2018-10-02 17:22:44

On 30/09/2018 05:06, Zhongmiao wrote:

On 2018/9/30 11:50, Zhongmiao wrote:

Hi Jean:

??? i got it, you are right .? i have another question? about? atc inv cmd .

??? For Example :
?????? application? malloc two VA? the length is 1MB.
?????????????????? VA_0 = 0x22e1f010
?????????????????? VA_1 = 0x22f1f020

?????? when free VA_0 and VA_1 , i see the driver build two CMD_INV_ATC :

???????????? 1.? cmd_0:0x10000001840,cmd_1:0x2200000d (size = 32MB)
???????????? 2.? cmd_0:0x10000001840,cmd_1:0x23000000 (size = 4KB)

??? i think cmd "2" is redundant. How did you think about that?
It does seem redundant, but I don't know where it comes from. Each
INV_ATC command corresponds to one MMU notifier call from core mm, so
we'd need more details about what the mm is doing in order to understand
where this second invalidation comes from. For all we know it could come
from an additional mmap/munmap done internally by the libc.

Thanks,
Jean
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help