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


Groups > linux.kernel > #1429759 > unrolled thread

[PATCH] arm:swiotlb:keep disabled in default configuration

Started byManjeet Pawar <manjeet.p@samsung.com>
First post2016-06-23 14:30 +0200
Last post2016-06-23 18:10 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] arm:swiotlb:keep disabled in default configuration Manjeet Pawar <manjeet.p@samsung.com> - 2016-06-23 14:30 +0200
    Re: [PATCH] arm:swiotlb:keep disabled in default configuration Stefano Stabellini <sstabellini@kernel.org> - 2016-06-23 18:10 +0200

#1429759 — [PATCH] arm:swiotlb:keep disabled in default configuration

FromManjeet Pawar <manjeet.p@samsung.com>
Date2016-06-23 14:30 +0200
Subject[PATCH] arm:swiotlb:keep disabled in default configuration
Message-ID<rNbVE-1sW-15@gated-at.bofh.it>
From: Rohit Thapliyal <r.thapliyal@samsung.com>

swiotlb implementation not required to be enabled in arm and
disabling it reduces uImage size by 16KB.

Signed-off-by: Rohit Thapliyal <r.thapliyal@samsung.com>
Signed-off-by: Ajeet Kumar Yadav <ajeet.y@samsung.com>
---
 arch/arm/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 90542db..ae65f29 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1754,7 +1754,7 @@ config SECCOMP
 	  defined by each seccomp mode.
 
 config SWIOTLB
-	def_bool y
+	def_bool n
 
 config IOMMU_HELPER
 	def_bool SWIOTLB
-- 
1.7.9.5

[toc] | [next] | [standalone]


#1429946

FromStefano Stabellini <sstabellini@kernel.org>
Date2016-06-23 18:10 +0200
Message-ID<rNfmy-41u-7@gated-at.bofh.it>
In reply to#1429759
On Thu, 23 Jun 2016, Stefano Stabellini wrote:
> On Jun 23, 2016 8:27 AM, "Manjeet Pawar" <manjeet.p@samsung.com> wrote:
> >
> > From: Rohit Thapliyal <r.thapliyal@samsung.com>
> >
> > swiotlb implementation not required to be enabled in arm and
> > disabling it reduces uImage size by 16KB.
> >
> 
> How so? There are no DMA operations on ARM?

Xen actively uses the swiotlb on ARM, see

arch/arm64/include/asm/dma-mapping.h:get_dma_ops
arch/arm/xen/mm.c:xen_swiotlb_dma_ops


> > Signed-off-by: Rohit Thapliyal <r.thapliyal@samsung.com>
> > Signed-off-by: Ajeet Kumar Yadav <ajeet.y@samsung.com>
> > ---
> >  arch/arm/Kconfig |    2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> > index 90542db..ae65f29 100644
> > --- a/arch/arm/Kconfig
> > +++ b/arch/arm/Kconfig
> > @@ -1754,7 +1754,7 @@ config SECCOMP
> >           defined by each seccomp mode.
> >
> >  config SWIOTLB
> > -       def_bool y
> > +       def_bool n
> >
> >  config IOMMU_HELPER
> >         def_bool SWIOTLB
> > --
> > 1.7.9.5
> >
> 

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web