Linux-Next Archive on lore.kernel.org
 help / color / Atom feed
* linux-next: manual merge of the csky tree with the dma-mapping tree
@ 2019-08-30  0:16 Stephen Rothwell
  0 siblings, 0 replies; only message in thread
From: Stephen Rothwell @ 2019-08-30  0:16 UTC (permalink / raw)
  To: Guo Ren, Christoph Hellwig
  Cc: Linux Next Mailing List, Linux Kernel Mailing List

[-- Attachment #1: Type: text/plain, Size: 1940 bytes --]

Hi all,

Today's linux-next merge of the csky tree got a conflict in:

  arch/csky/mm/dma-mapping.c

between commit:

  8e3a68fb55e0 ("dma-mapping: make dma_atomic_pool_init self-contained")

from the dma-mapping tree and commit:

  4af9027d3f40 ("csky/dma: Fixup cache_op failed when cross memory ZONEs")

from the csky tree.

I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging.  You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.

-- 
Cheers,
Stephen Rothwell

diff --cc arch/csky/mm/dma-mapping.c
index 602a60d47a94,106ef02a8f89..000000000000
--- a/arch/csky/mm/dma-mapping.c
+++ b/arch/csky/mm/dma-mapping.c
@@@ -14,33 -14,12 +14,6 @@@
  #include <linux/version.h>
  #include <asm/cache.h>
  
- void arch_dma_prep_coherent(struct page *page, size_t size)
 -static int __init atomic_pool_init(void)
--{
- 	if (PageHighMem(page)) {
- 		unsigned int count = PAGE_ALIGN(size) >> PAGE_SHIFT;
- 
- 		do {
- 			void *ptr = kmap_atomic(page);
- 			size_t _size = (size < PAGE_SIZE) ? size : PAGE_SIZE;
- 
- 			memset(ptr, 0, _size);
- 			dma_wbinv_range((unsigned long)ptr,
- 					(unsigned long)ptr + _size);
- 
- 			kunmap_atomic(ptr);
- 
- 			page++;
- 			size -= PAGE_SIZE;
- 			count--;
- 		} while (count);
- 	} else {
- 		void *ptr = page_address(page);
- 
- 		memset(ptr, 0, size);
- 		dma_wbinv_range((unsigned long)ptr, (unsigned long)ptr + size);
- 	}
 -	return dma_atomic_pool_init(GFP_KERNEL, pgprot_noncached(PAGE_KERNEL));
--}
 -postcore_initcall(atomic_pool_init);
--
  static inline void cache_op(phys_addr_t paddr, size_t size,
  			    void (*fn)(unsigned long start, unsigned long end))
  {

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-30  0:16 linux-next: manual merge of the csky tree with the dma-mapping tree Stephen Rothwell

Linux-Next Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-next/0 linux-next/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-next linux-next/ https://lore.kernel.org/linux-next \
		linux-next@vger.kernel.org linux-next@archiver.kernel.org
	public-inbox-index linux-next


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-next


AGPL code for this site: git clone https://public-inbox.org/ public-inbox