OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.3 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../linux26/sparc64-video.patch
  5. # Copyright (C) 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- T2-COPYRIGHT-NOTE-END ---
  16. In 2.6.17 sparc64 kernels, X11 runs _extremely_ slowly with
  17. frequent lock-up like behaviour on my Ultra5 (ATI Mach64).
  18. I finally managed to trace the cause to this change in 2.6.16-git6:
  19. - Mikael Pettersson <mikpe@it.uu.se>
  20. Confirmed to fix ATi@U5 and Creator@U30.
  21. - Rene Rebe <rene@exactcode.de>
  22. --- a/arch/sparc64/mm/generic.c
  23. +++ b/arch/sparc64/mm/generic.c
  24. @@ -140,6 +144,7 @@ int io_remap_pfn_range(struct vm_area_st
  25. vma->vm_flags |= VM_IO | VM_RESERVED | VM_PFNMAP;
  26. vma->vm_pgoff = phys_base >> PAGE_SHIFT;
  27. + prot = __pgprot(pg_iobits);
  28. offset -= from;
  29. dir = pgd_offset(mm, from);
  30. flush_cache_range(vma, beg, end);