Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1625359

Re: [PATCH 1/2] xen/arm, arm64: fix xen_dma_ops after 815dd18 "Consolidate get_dma_ops..."

From Catalin Marinas <catalin.marinas@arm.com>
Newsgroups linux.kernel
Subject Re: [PATCH 1/2] xen/arm, arm64: fix xen_dma_ops after 815dd18 "Consolidate get_dma_ops..."
Date 2017-04-18 16:30 +0200
Message-ID <txCiK-7dQ-13@gated-at.bofh.it> (permalink)
References <tvUa6-b9-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Apr 13, 2017 at 02:04:21PM -0700, Stefano Stabellini wrote:
> The following commit:
> 
>   commit 815dd18788fe0d41899f51b91d0560279cf16b0d
>   Author: Bart Van Assche <bart.vanassche@sandisk.com>
>   Date:   Fri Jan 20 13:04:04 2017 -0800
> 
>       treewide: Consolidate get_dma_ops() implementations
> 
> rearranges get_dma_ops in a way that xen_dma_ops are not returned when
> running on Xen anymore, dev->dma_ops is returned instead (see
> arch/arm/include/asm/dma-mapping.h:get_arch_dma_ops and
> include/linux/dma-mapping.h:get_dma_ops).
> 
> Fix the problem by storing dev->dma_ops in dev_archdata, and setting
> dev->dma_ops to xen_dma_ops. This way, xen_dma_ops is returned naturally
> by get_dma_ops. The Xen code can retrieve the original dev->dma_ops from
> dev_archdata when needed. It also allows us to remove __generic_dma_ops
> from common headers.
> 
> Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
> Tested-by: Julien Grall <julien.grall@arm.com>
> Suggested-by: Catalin Marinas <catalin.marinas@arm.com>
> CC: linux@armlinux.org.uk
> CC: catalin.marinas@arm.com
> CC: will.deacon@arm.com
> CC: boris.ostrovsky@oracle.com
> CC: jgross@suse.com
> CC: Julien Grall <julien.grall@arm.com>

Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/2] xen/arm,arm64: fix xen_dma_ops after 815dd18 "Consolidate get_dma_ops..." Stefano Stabellini <sstabellini@kernel.org> - 2017-04-13 23:10 +0200
  Re: [PATCH 1/2] xen/arm, arm64: fix xen_dma_ops after 815dd18  "Consolidate get_dma_ops..." Catalin Marinas <catalin.marinas@arm.com> - 2017-04-18 16:30 +0200
    Re: [PATCH 1/2] xen/arm, arm64: fix xen_dma_ops after 815dd18  "Consolidate get_dma_ops..." Stefano Stabellini <sstabellini@kernel.org> - 2017-04-19 19:30 +0200
      Re: [PATCH 1/2] xen/arm, arm64: fix xen_dma_ops after 815dd18  "Consolidate get_dma_ops..." Juergen Gross <jgross@suse.com> - 2017-04-19 20:30 +0200
        Re: [PATCH 1/2] xen/arm, arm64: fix xen_dma_ops after 815dd18  "Consolidate get_dma_ops..." Stefano Stabellini <sstabellini@kernel.org> - 2017-04-19 20:40 +0200
      Re: [PATCH 1/2] xen/arm, arm64: fix xen_dma_ops after 815dd18  "Consolidate get_dma_ops..." Stefano Stabellini <sstabellini@kernel.org> - 2017-04-24 21:20 +0200

csiph-web