]> git.baikalelectronics.ru Git - kernel.git/commit
[SPARC64]: Fix X server hangs due to large pages.
authorDavid S. Miller <davem@sunset.davemloft.net>
Mon, 28 Aug 2006 07:33:03 +0000 (00:33 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 30 Aug 2006 04:23:31 +0000 (21:23 -0700)
commitd2f491e97e49d4822b402cc84b9fe081c6de15af
treee6801f2664730e13019dd0e23e71ac50c898ca88
parent728d1e1cd1edd9176f068ade1be4974ea71ee817
[SPARC64]: Fix X server hangs due to large pages.

This problem was introduced by changeset
7a079eec3da50759cac67bee01f5a8d0fa75dfcf

Unlike the hugetlb code paths, the normal fault code is not setup to
propagate PTE changes for large page sizes correctly like the ones we
make for I/O mappings in io_remap_pfn_range().

It is absolutely necessary to update all sub-ptes of a largepage
mapping on a fault.  Adding special handling for this would add
considerably complexity to tlb_batch_add().  So let's just side-step
the issue and forcefully dirty any writable PTEs created by
io_remap_pfn_range().

The only other real option would be to disable to large PTE code of
io_remap_pfn_range() and we really don't want to do that.

Much thanks to Mikael Pettersson for tracking down this problem and
testing debug patches.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/mm/generic.c