<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-dev/arch/csky/mm/ioremap.c, branch linus/master</title>
<subtitle>Linux kernel development work - see feature branches</subtitle>
<id>https://git.zx2c4.com/linux-dev/atom/arch/csky/mm/ioremap.c?h=linus%2Fmaster</id>
<link rel='self' href='https://git.zx2c4.com/linux-dev/atom/arch/csky/mm/ioremap.c?h=linus%2Fmaster'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/'/>
<updated>2019-11-12T10:37:52Z</updated>
<entry>
<title>csky: use generic ioremap</title>
<updated>2019-11-12T10:37:52Z</updated>
<author>
<name>Christoph Hellwig</name>
<email>hch@lst.de</email>
</author>
<published>2019-08-13T09:41:57Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=0055f67b596c3a8963192a42e25797b0e7fc0e92'/>
<id>urn:sha1:0055f67b596c3a8963192a42e25797b0e7fc0e92</id>
<content type='text'>
Use the generic ioremap_prot and iounmap helpers.

Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Acked-by: Guo Ren &lt;guoren@kernel.org&gt;
</content>
</entry>
<entry>
<title>csky: remove ioremap_cache</title>
<updated>2019-11-11T20:18:20Z</updated>
<author>
<name>Christoph Hellwig</name>
<email>hch@lst.de</email>
</author>
<published>2019-10-16T06:11:43Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=1246b8146c550641b3217eef65792685ca2dcdc5'/>
<id>urn:sha1:1246b8146c550641b3217eef65792685ca2dcdc5</id>
<content type='text'>
No driver that can be used on csky uses ioremap_cache, and this
interface has been deprecated in favor of memremap.

Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Acked-by: Guo Ren &lt;guoren@kernel.org&gt;
</content>
</entry>
<entry>
<title>csky: Fixup ioremap function losing</title>
<updated>2019-08-15T11:21:28Z</updated>
<author>
<name>Guo Ren</name>
<email>ren_guo@c-sky.com</email>
</author>
<published>2019-08-15T08:24:56Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=5336c17928cc464845ff765ce45b368c22f848e0'/>
<id>urn:sha1:5336c17928cc464845ff765ce45b368c22f848e0</id>
<content type='text'>
Implement the following apis to meet usage in different scenarios.

 - ioremap          (NonCache + StrongOrder)
 - ioremap_nocache  (NonCache + StrongOrder)
 - ioremap_wc       (NonCache + WeakOrder  )
 - ioremap_cache    (   Cache + WeakOrder  )

Also change flag VM_ALLOC to VM_IOREMAP in get_vm_area_caller.

Signed-off-by: Guo Ren &lt;ren_guo@c-sky.com&gt;
Cc: Arnd Bergmann &lt;arnd@arndb.de&gt;
Cc: Christoph Hellwig &lt;hch@infradead.org&gt;
</content>
</entry>
<entry>
<title>csky: Fixup dma_alloc_coherent with PAGE_SO attribute</title>
<updated>2019-07-31T03:05:25Z</updated>
<author>
<name>Guo Ren</name>
<email>ren_guo@c-sky.com</email>
</author>
<published>2019-07-30T06:43:22Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=7f80fe207de9602aaff028c79345caa68c90cd31'/>
<id>urn:sha1:7f80fe207de9602aaff028c79345caa68c90cd31</id>
<content type='text'>
This bug is from commit: 2b070ccdf8c0 (fixup abiv2 mmap(... O_SYNC)
failed). In that patch we remove the _PAGE_SO for memory noncache
mapping and this will cause problem when drivers use dma descriptors
to control the transcations without dma_w/rmb().

After referencing other archs' implementation, pgprot_writecombine is
introduced for mmap(... O_SYNC).

Signed-off-by: Guo Ren &lt;ren_guo@c-sky.com&gt;
</content>
</entry>
<entry>
<title>csky: Fixup io-range page attribute for mmap("/dev/mem")</title>
<updated>2019-02-13T01:48:14Z</updated>
<author>
<name>Guo Ren</name>
<email>ren_guo@c-sky.com</email>
</author>
<published>2019-01-30T12:13:11Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=76d21d186a65523b08ea5f70302e2c29ee8f6a8d'/>
<id>urn:sha1:76d21d186a65523b08ea5f70302e2c29ee8f6a8d</id>
<content type='text'>
Some user space drivers need accessing IO address and IO remap need
SO(strong order) page-attribute to make IO operation correct. So we
need add SO-page-attr for all non-memory address.

Signed-off-by: Guo Ren &lt;ren_guo@c-sky.com&gt;
Reported-by: Fan Xiaodong &lt;xiaodong.fan@boyahualu.com&gt;
</content>
</entry>
<entry>
<title>csky: fixup abiv2 mmap(... O_SYNC) failed.</title>
<updated>2018-12-31T02:56:45Z</updated>
<author>
<name>Guo Ren</name>
<email>ren_guo@c-sky.com</email>
</author>
<published>2018-12-30T13:47:28Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=2b070ccdf8c020fb6c4911263852c021d8aa843c'/>
<id>urn:sha1:2b070ccdf8c020fb6c4911263852c021d8aa843c</id>
<content type='text'>
Glibc function mmap(... O_SYNC) will make page to _PAGE_UNCACHE +
_PAGE_SO and strong-order page couldn't support unalignment access.
So remove _PAGE_SO from _PAGE_UNCACHE, also sync abiv1 with the macro
of _PAGE_SO.

Signed-off-by: Guo Ren &lt;ren_guo@c-sky.com&gt;
Reported-by: Liu Renwei &lt;Renwei.Liu@verisilicon.com&gt;
Tested-by: Yuan Qiyun &lt;qiyun_yuan@c-sky.com&gt;
</content>
</entry>
<entry>
<title>csky: MMU and page table management</title>
<updated>2018-10-25T15:36:19Z</updated>
<author>
<name>Guo Ren</name>
<email>ren_guo@c-sky.com</email>
</author>
<published>2018-09-05T06:25:12Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=013de2d6671d89de3397904749c86a69ac0686f7'/>
<id>urn:sha1:013de2d6671d89de3397904749c86a69ac0686f7</id>
<content type='text'>
This patch adds files related to memory management and here is our
memory-layout:

   Fixmap       : 0xffc02000 – 0xfffff000       (4 MB - 12KB)
   Pkmap        : 0xff800000 – 0xffc00000       (4 MB)
   Vmalloc      : 0xf0200000 – 0xff000000       (238 MB)
   Lowmem       : 0x80000000 – 0xc0000000       (1GB)

abiv1 CPU (CK610) is VIPT cache and it doesn't support highmem.
abiv2 CPUs are all PIPT cache and they could support highmem.

Lowmem is directly mapped by msa0 &amp; msa1 reg, and we needn't setup
memory page table for it.

Link:https://lore.kernel.org/lkml/20180518215548.GH17671@n2100.armlinux.org.uk/
Signed-off-by: Guo Ren &lt;ren_guo@c-sky.com&gt;
Cc: Christoph Hellwig &lt;hch@infradead.org&gt;
Reviewed-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
</content>
</entry>
</feed>
