1. 02 Sep, 2019 1 commit
    • Max Filippov's avatar
      xtensa: virt: move PCI root complex to KIO range · 982792f4
      Max Filippov authored
      
      
      Move PCI configuration space, MMIO and memory to the KIO range to free
      vmalloc area and use static TLB to access them. Move MMIO to the
      beginning of KIO and define PCI_IOBASE as XCHAL_KIO_BYPASS_VADDR to
      match it. Reduce number of supported PCI buses to 0x3f so that ECAM
      window fits into first 64MB of the KIO. Reduce size of the PCI memory
      window to 128MB so that it fits into KIO.
      Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
      982792f4
  2. 07 May, 2019 1 commit
  3. 22 Feb, 2018 1 commit
  4. 11 Jan, 2016 1 commit
  5. 02 Nov, 2015 1 commit
    • Max Filippov's avatar
      xtensa: nommu: provide correct KIO addresses · 260c64bb
      Max Filippov authored
      
      
      KIO region location is different for noMMU cores. Provide different
      default physical address and make KIO virtual address equal to physical.
      
      Move xtensa_get_kio_paddr function close to XCHAL_KIO_PADDR definition
      and define it not only for MMUv3, but for all MMU options except MMUv2.
      Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
      260c64bb
  6. 14 Aug, 2015 1 commit
    • Dan Williams's avatar
      arch: introduce memremap() · 92281dee
      Dan Williams authored
      
      
      Existing users of ioremap_cache() are mapping memory that is known in
      advance to not have i/o side effects.  These users are forced to cast
      away the __iomem annotation, or otherwise neglect to fix the sparse
      errors thrown when dereferencing pointers to this memory.  Provide
      memremap() as a non __iomem annotated ioremap_*() in the case when
      ioremap is otherwise a pointer to cacheable memory. Empirically,
      ioremap_<cacheable-type>() call sites are seeking memory-like semantics
      (e.g.  speculative reads, and prefetching permitted).
      
      memremap() is a break from the ioremap implementation pattern of adding
      a new memremap_<type>() for each mapping type and having silent
      compatibility fall backs.  Instead, the implementation defines flags
      that are passed to the central memremap() and if a mapping type is not
      supported by an arch memremap returns NULL.
      
      We introduce a memremap prototype as a trivial wrapper of
      ioremap_cache() and ioremap_wt().  Later, once all ioremap_cache() and
      ioremap_wt() usage has been removed from drivers we teach archs to
      implement arch_memremap() with the ability to strictly enforce the
      mapping type.
      
      Cc: Arnd Bergmann <arnd@arndb.de>
      Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
      Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
      92281dee
  7. 07 Jun, 2015 1 commit
    • Toshi Kani's avatar
      arch/*/io.h: Add ioremap_wt() to all architectures · 556269c1
      Toshi Kani authored
      
      
      Add ioremap_wt() to all arch-specific asm/io.h headers which
      define ioremap_wc() locally. These headers do not include
      <asm-generic/iomap.h>. Some of them include <asm-generic/io.h>,
      but ioremap_wt() is defined for consistency since they define
      all ioremap_xxx locally.
      
      In all architectures without Write-Through support, ioremap_wt()
      is defined indentical to ioremap_nocache().
      
      frv and m68k already have ioremap_writethrough(). On those we
      add ioremap_wt() indetical to ioremap_writethrough() and defines
      ARCH_HAS_IOREMAP_WT in both architectures.
      
      The ioremap_wt() interface is exported to drivers.
      Signed-off-by: default avatarToshi Kani <toshi.kani@hp.com>
      Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Andy Lutomirski <luto@amacapital.net>
      Cc: Elliott@hp.com
      Cc: H. Peter Anvin <hpa@zytor.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Luis R. Rodriguez <mcgrof@suse.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: arnd@arndb.de
      Cc: hch@lst.de
      Cc: hmh@hmh.eng.br
      Cc: jgross@suse.com
      Cc: konrad.wilk@oracle.com
      Cc: linux-mm <linux-mm@kvack.org>
      Cc: linux-nvdimm@lists.01.org
      Cc: stefan.bader@canonical.com
      Cc: yigal@plexistor.com
      Link: http://lkml.kernel.org/r/1433436928-31903-9-git-send-email-bp@alien8.de
      
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      556269c1
  8. 20 Oct, 2014 1 commit
  9. 19 Jan, 2014 1 commit
  10. 14 Jan, 2014 2 commits
  11. 25 Oct, 2012 1 commit
  12. 03 Oct, 2012 2 commits
  13. 23 Apr, 2012 1 commit
  14. 03 Apr, 2009 1 commit
  15. 06 Nov, 2008 1 commit
  16. 21 Oct, 2008 1 commit
  17. 27 Aug, 2007 1 commit
    • Chris Zankel's avatar
      [XTENSA] Add support for cache-aliasing · 6656920b
      Chris Zankel authored
      
      
      Add support for processors that have cache-aliasing issues, such as
      the Stretch S5000 processor. Cache-aliasing means that the size of
      the cache (for one way) is larger than the page size, thus, a page
      can end up in several places in cache depending on the virtual to
      physical translation. The method used here is to map a user page
      temporarily through the auto-refill way 0 and of of the DTLB.
      We probably will want to revisit this issue and use a better
      approach with kmap/kunmap.
      Signed-off-by: default avatarChris Zankel <chris@zankel.net>
      6656920b
  18. 24 Jul, 2007 1 commit
    • Adrian Bunk's avatar
      include/asm-xtensa/io.h must #include <asm/page.h> · c51aea80
      Adrian Bunk authored
      
      
        CC      kernel/time/clocksource.o
      In file included from
      /home/bunk/linux/kernel-2.6/linux-2.6.22-rc6-mm1/include/linux/clocksource.h:18,
                       from
      /home/bunk/linux/kernel-2.6/linux-2.6.22-rc6-mm1/kernel/time/clocksource.c:27:
      include2/asm/io.h: In function 'virt_to_phys':
      include2/asm/io.h:46: error: implicit declaration of function '__pa'
      include2/asm/io.h: In function 'phys_to_virt':
      include2/asm/io.h:51: error: implicit declaration of function '__va'
      include2/asm/io.h:51: warning: return makes pointer from integer without a cast
      make[3]: *** [kernel/time/clocksource.o] Error 1
      Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
      Cc: Christian Zankel <chris@zankel.net>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      c51aea80
  19. 10 Dec, 2006 1 commit
  20. 26 Apr, 2006 1 commit
  21. 05 Sep, 2005 1 commit
  22. 24 Jun, 2005 1 commit