<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/ia64/include/asm/machvec.h, branch linux-4.8.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.8.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.8.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2016-08-04T12:50:07Z</updated>
<entry>
<title>dma-mapping: use unsigned long for dma_attrs</title>
<updated>2016-08-04T12:50:07Z</updated>
<author>
<name>Krzysztof Kozlowski</name>
</author>
<published>2016-08-03T20:46:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=00085f1efa387a8ce100e3734920f7639c80caa3'/>
<id>urn:sha1:00085f1efa387a8ce100e3734920f7639c80caa3</id>
<content type='text'>
The dma-mapping core and the implementations do not change the DMA
attributes passed by pointer.  Thus the pointer can point to const data.
However the attributes do not have to be a bitfield.  Instead unsigned
long will do fine:

1. This is just simpler.  Both in terms of reading the code and setting
   attributes.  Instead of initializing local attributes on the stack
   and passing pointer to it to dma_set_attr(), just set the bits.

2. It brings safeness and checking for const correctness because the
   attributes are passed by value.

Semantic patches for this change (at least most of them):

    virtual patch
    virtual context

    @r@
    identifier f, attrs;

    @@
    f(...,
    - struct dma_attrs *attrs
    + unsigned long attrs
    , ...)
    {
    ...
    }

    @@
    identifier r.f;
    @@
    f(...,
    - NULL
    + 0
     )

and

    // Options: --all-includes
    virtual patch
    virtual context

    @r@
    identifier f, attrs;
    type t;

    @@
    t f(..., struct dma_attrs *attrs);

    @@
    identifier r.f;
    @@
    f(...,
    - NULL
    + 0
     )

Link: http://lkml.kernel.org/r/1468399300-5399-2-git-send-email-k.kozlowski@samsung.com
Signed-off-by: Krzysztof Kozlowski &lt;k.kozlowski@samsung.com&gt;
Acked-by: Vineet Gupta &lt;vgupta@synopsys.com&gt;
Acked-by: Robin Murphy &lt;robin.murphy@arm.com&gt;
Acked-by: Hans-Christian Noren Egtvedt &lt;egtvedt@samfundet.no&gt;
Acked-by: Mark Salter &lt;msalter@redhat.com&gt; [c6x]
Acked-by: Jesper Nilsson &lt;jesper.nilsson@axis.com&gt; [cris]
Acked-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt; [drm]
Reviewed-by: Bart Van Assche &lt;bart.vanassche@sandisk.com&gt;
Acked-by: Joerg Roedel &lt;jroedel@suse.de&gt; [iommu]
Acked-by: Fabien Dessenne &lt;fabien.dessenne@st.com&gt; [bdisp]
Reviewed-by: Marek Szyprowski &lt;m.szyprowski@samsung.com&gt; [vb2-core]
Acked-by: David Vrabel &lt;david.vrabel@citrix.com&gt; [xen]
Acked-by: Konrad Rzeszutek Wilk &lt;konrad.wilk@oracle.com&gt; [xen swiotlb]
Acked-by: Joerg Roedel &lt;jroedel@suse.de&gt; [iommu]
Acked-by: Richard Kuo &lt;rkuo@codeaurora.org&gt; [hexagon]
Acked-by: Geert Uytterhoeven &lt;geert@linux-m68k.org&gt; [m68k]
Acked-by: Gerald Schaefer &lt;gerald.schaefer@de.ibm.com&gt; [s390]
Acked-by: Bjorn Andersson &lt;bjorn.andersson@linaro.org&gt;
Acked-by: Hans-Christian Noren Egtvedt &lt;egtvedt@samfundet.no&gt; [avr32]
Acked-by: Vineet Gupta &lt;vgupta@synopsys.com&gt; [arc]
Acked-by: Robin Murphy &lt;robin.murphy@arm.com&gt; [arm64 and dma-iommu]
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>ia64/xen: Remove Xen support for ia64</title>
<updated>2013-12-11T00:11:07Z</updated>
<author>
<name>Boris Ostrovsky</name>
</author>
<published>2013-12-05T18:47:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d52eefb47d4eb6fe40d4c92bc711dd34a8ce1747'/>
<id>urn:sha1:d52eefb47d4eb6fe40d4c92bc711dd34a8ce1747</id>
<content type='text'>
ia64 has not been supported by Xen since 4.2 so it's time to drop
Xen/ia64 from Linux as well.

Signed-off-by: Boris Ostrovsky &lt;boris.ostrovsky@oracle.com&gt;
Signed-off-by: Tony Luck &lt;tony.luck@intel.com&gt;
</content>
</entry>
<entry>
<title>[IA64] Rename platform_name to ia64_platform_name</title>
<updated>2012-07-25T18:47:16Z</updated>
<author>
<name>Fengguang Wu</name>
</author>
<published>2012-07-25T07:15:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f9445a382e3b9fdd21db41a4825ca1399cd0a3f4'/>
<id>urn:sha1:f9445a382e3b9fdd21db41a4825ca1399cd0a3f4</id>
<content type='text'>
The macro name is too generic and conflicts with
snd_soc_dai_link.platform_name, which triggers lots of build errors.

Signed-off-by: Fengguang Wu &lt;fengguang.wu@intel.com&gt;
Signed-off-by: Tony Luck &lt;tony.luck@intel.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'linus' into core/iommu</title>
<updated>2009-01-16T09:09:10Z</updated>
<author>
<name>Ingo Molnar</name>
</author>
<published>2009-01-16T09:09:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=af2519fb2298cdf7540082c36f4d8c66bbff103f'/>
<id>urn:sha1:af2519fb2298cdf7540082c36f4d8c66bbff103f</id>
<content type='text'>
Conflicts:
	arch/ia64/include/asm/dma-mapping.h
	arch/ia64/include/asm/machvec.h
	arch/ia64/include/asm/machvec_sn2.h
</content>
</entry>
<entry>
<title>[IA64] SN specific version of dma_get_required_mask()</title>
<updated>2009-01-15T18:42:16Z</updated>
<author>
<name>John Keller</name>
</author>
<published>2008-11-24T22:47:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=175add1981e53d22caba8f42d5f924a4de507b6c'/>
<id>urn:sha1:175add1981e53d22caba8f42d5f924a4de507b6c</id>
<content type='text'>
Create a platform specific version of dma_get_required_mask()
for ia64 SN Altix. All SN Altix platforms support 64 bit DMA
addressing regardless of the size of system memory.
Create an ia64 machvec for dma_get_required_mask, with the
SN version unconditionally returning DMA_64BIT_MASK.

Signed-off-by: John Keller &lt;jpk@sgi.com&gt;
Signed-off-by: Tony Luck &lt;tony.luck@intel.com&gt;
</content>
</entry>
<entry>
<title>convert to use generic dma_map_ops struct, cleanup</title>
<updated>2009-01-07T12:48:21Z</updated>
<author>
<name>FUJITA Tomonori</name>
</author>
<published>2009-01-06T17:13:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c299030765292434b73572f9bcfe84951ff06614'/>
<id>urn:sha1:c299030765292434b73572f9bcfe84951ff06614</id>
<content type='text'>
Ingo Molnar &lt;mingo@elte.hu&gt; wrote:

&gt; looks good on x86 but on ia64 there's a problem with one of the
&gt; prototypes:
&gt;
&gt; In file included from tip/arch/ia64/include/asm/io.h:72,
&gt;                  from tip/arch/ia64/include/asm/smp.h:20,
&gt;                  from tip/include/linux/smp.h:33,
&gt;                  from tip/include/linux/sched.h:68,
&gt;                  from tip/arch/ia64/kernel/asm-offsets.c:9:
&gt; tip/arch/ia64/include/asm/machvec.h:101: warning: parameter has incomplete type
&gt; tip/arch/ia64/include/asm/machvec.h:103: warning: parameter has incomplete type
&gt;
&gt; that's about "enum dma_data_direction".
&gt;
&gt; I dont think enums can be forward declared like that.
&gt;
&gt; machvec.h is a fairly lowlevel include file - so including
&gt; linux/dma-mapping.h probably wont work. We could do a
&gt; linux/dma-mapping-types.h file that is more lowlevel, or we could move the
&gt; machvec_dma_sync_single() and machvec_dma_sync_sg() declarations to a more
&gt; highlevel file - like arch/ia64/include/asm/dma-mapping.h.
&gt;
&gt; To me the latter looks cleaner but no strong feelings.

Yeah, agreed.

They are generic IA64 DMA operations so I think that it makes sense to
move them to dma-mapping.h.

Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>x86, ia64: convert to use generic dma_map_ops struct</title>
<updated>2009-01-06T13:06:57Z</updated>
<author>
<name>FUJITA Tomonori</name>
</author>
<published>2009-01-05T14:59:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=160c1d8e40866edfeae7d68816b7005d70acf391'/>
<id>urn:sha1:160c1d8e40866edfeae7d68816b7005d70acf391</id>
<content type='text'>
This converts X86 and IA64 to use include/linux/dma-mapping.h.

It's a bit large but pretty boring. The major change for X86 is
converting 'int dir' to 'enum dma_data_direction dir' in DMA mapping
operations. The major changes for IA64 is using map_page and
unmap_page instead of map_single and unmap_single.

Signed-off-by: FUJITA Tomonori &lt;fujita.tomonori@lab.ntt.co.jp&gt;
Acked-by: Tony Luck &lt;tony.luck@intel.com&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>add dma_get_ops to struct ia64_machine_vector</title>
<updated>2009-01-06T13:06:51Z</updated>
<author>
<name>FUJITA Tomonori</name>
</author>
<published>2009-01-05T14:36:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c190ab0b2a5fb5cc97576c5f04f4419b6cf8dc8e'/>
<id>urn:sha1:c190ab0b2a5fb5cc97576c5f04f4419b6cf8dc8e</id>
<content type='text'>
This adds dma_get_ops hook to struct ia64_machine_vector. We use
dma_get_ops() in arch/ia64/kernel/dma-mapping.c, which simply returns
the global dma_ops. This is for removing hwsw_dma_ops.

Signed-off-by: FUJITA Tomonori &lt;fujita.tomonori@lab.ntt.co.jp&gt;
Acked-by: Tony Luck &lt;tony.luck@intel.com&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>remove dma operations in struct ia64_machine_vector</title>
<updated>2009-01-06T13:06:50Z</updated>
<author>
<name>FUJITA Tomonori</name>
</author>
<published>2009-01-05T14:36:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fad6a029c4afa499dddd8e9ff70264bb977ea7bf'/>
<id>urn:sha1:fad6a029c4afa499dddd8e9ff70264bb977ea7bf</id>
<content type='text'>
We don't need dma operation hooks in struct ia64_machine_vector
now. This also removes unused ia64_mv_dma_* typedefs.

Signed-off-by: FUJITA Tomonori &lt;fujita.tomonori@lab.ntt.co.jp&gt;
Acked-by: Tony Luck &lt;tony.luck@intel.com&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>set up dma_ops appropriately</title>
<updated>2009-01-06T13:06:50Z</updated>
<author>
<name>FUJITA Tomonori</name>
</author>
<published>2009-01-05T14:36:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4d9b977ca674dd40cfc1409a75cb73fca2cee423'/>
<id>urn:sha1:4d9b977ca674dd40cfc1409a75cb73fca2cee423</id>
<content type='text'>
This patch introduces a global pointer, dma_ops, which points to an
appropriate dma_mapping_ops that the kernel should use. This is a
common way to handle multiple dma_mapping_ops (X86, POWER, and SPARC).

dma_ops is set in platform_dma_init. We also set it by hand where
machvec_init is callev via subsys_initcall.

- IA64_DIG_VTD uses vtd_dma_ops.
- IA64_HP_ZX1 uses sba_dma_ops.
- IA64_HP_ZX1_SWIOTLB uses hwsw_dma_ops.
- IA64_SGI_SN2 uses sn_dma_ops.
- The rest use swiotlb_dma_ops.

Signed-off-by: FUJITA Tomonori &lt;fujita.tomonori@lab.ntt.co.jp&gt;
Acked-by: Tony Luck &lt;tony.luck@intel.com&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
</feed>
