RFC: mmap patch
Quoted 7 lines · David S. Miller
...
Since about Nov 2002 we have been working on better {copy,clear}_user_page() implementations quietly inside HP. Unfortunately some, uhm, "issues" are taking a long time to resolve before the routines can be published. Once those issues are resolved, I think your trick with temporary TLB entries can get implemented.
The tlb trick for clear_user_page is already implemented. The code for copy_user_page is there, but turned off due to an issue mentioned in my last email. I believe the failure case was not a frequent path, and there are ways of working around that problem.
The address that the copying is done through (e,g. the tlb trick) is independent of the algorithm used to actually do the copying.
John
From: John Marvin <[email protected]>
Date: Sat, 8 Mar 2003 20:51:55 -0700 (MST)
The tlb trick for clear_user_page is already implemented. The code for copy_user_page is there, but turned off due to an issue mentioned in my last email. I believe the failure case was not a frequent path, and there are ways of working around that problem.
Fix it by adding a thread flag, "TIF_NEED_ICACHE_FLUSH" or whatever, and at the end of copy_user_page() if this bit is set you flush the page from the destination instruction cache.
The flag is set in do_parisc_fault() if the fault is for a write and:
((vma->vm_flags & VM_EXEC) != 0 && vma->vm_file != NULL)
See the TIF_BLKCOMMIT logic in arch/sparc64/mm/fault.c
[parisc-linux] unsupported ioctl wrappers?
In reply to John MarvinFYI,
booting 2.4.20-pa31, I get the follow msgs on my console. Not sure if the following ioctl wrappers are new or known to be missing.
...
Loading modules:
Starting raid devices:sys32_ioctl: Unknown cmd fd(3) cmd(40041272) arg(faf01500)sys32_ioctl: Unknown cmd fd(3) cmd(40041272) arg(faf01500)sys32_ioctl: Unknown cmd fd(3) cmd(40041272) arg(faf01500) done.
Starting RAID devices: handling MD device /dev/md0
...
grant