<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/sound/core/memalloc.c, branch linux-5.0.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.0.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.0.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2018-10-12T07:31:23Z</updated>
<entry>
<title>ALSA: memalloc: Add fall-through annotation</title>
<updated>2018-10-12T07:31:23Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2018-10-04T17:54:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3c4cfa7bf6075be035cff3cac0986395f6fca32b'/>
<id>urn:sha1:3c4cfa7bf6075be035cff3cac0986395f6fca32b</id>
<content type='text'>
As a preparatory patch for the upcoming -Wimplicit-fallthrough
compiler checks, add the "fall through" annotation in
snd_dma_alloc_pages().  Note that this seems necessary to be put
exactly before the next label, so it's outside the ifdef block.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: memalloc: Add non-cached buffer type</title>
<updated>2018-08-28T11:56:47Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2018-08-08T15:01:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=42e748a0b3251cca0de2c269ca106884907eb289'/>
<id>urn:sha1:42e748a0b3251cca0de2c269ca106884907eb289</id>
<content type='text'>
In some cases (mainly for x86), we need the DMA coherent buffer with
non-cached pages.  Although this has been done in each driver side
like HD-audio and intel8x0, it can be done cleaner in the core memory
allocator.

This patch adds the new types, SNDRV_DMA_TYPE_DEV_UC and
SNDRV_DMA_TYPE_DEV_UC_SG, for allocating such non-cached buffer
pages.  On non-x86 architectures, they work as same as the standard
SNDRV_DMA_TYPE_DEV and *_SG.

One additional change by this move is that we can assure to pass the
non-cached pgprot to the vmapped buffer, too.  It eventually fixes the
case like non-snoop mode without mmap access on HD-audio.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: memalloc: Simplify snd_malloc_dev_pages() calls</title>
<updated>2018-08-28T11:56:46Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2018-08-10T12:43:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=28f3f4f685d7d7226ba4ed4f78e04c75dd3a5b27'/>
<id>urn:sha1:28f3f4f685d7d7226ba4ed4f78e04c75dd3a5b27</id>
<content type='text'>
snd_malloc_dev_pages() and snd_free_dev_pages() are local functions
and the parameters passed there are all contained in snd_dma_buffer
object.  As a code-simplification, pass snd_dma_buffer object and
assign the address there like other allocators do (except for
snd_malloc_pages() which is called from outside, hence we can't change
easily).

Only code refactoring, no functional changes.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: memalloc: Don't align the size to power-of-two</title>
<updated>2018-08-28T11:56:46Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2018-08-08T14:56:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=03486830c577d3fe49c1f2c316414552a549ff00'/>
<id>urn:sha1:03486830c577d3fe49c1f2c316414552a549ff00</id>
<content type='text'>
The size passed to dma_alloc_coherent() doesn't have to be aligned
with power-of-two, rather it should be the raw size.  As a minor
optimization, remove the size adjustment in the current code.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: memalloc: Don't exceed over the requested size</title>
<updated>2018-07-23T07:06:33Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2018-07-19T09:01:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=dfef01e150824b0e6da750cacda8958188d29aea'/>
<id>urn:sha1:dfef01e150824b0e6da750cacda8958188d29aea</id>
<content type='text'>
snd_dma_alloc_pages_fallback() tries to allocate pages again when the
allocation fails with reduced size.  But the first try actually
*increases* the size to power-of-two, which may give back a larger
chunk than the requested size.  This confuses the callers, e.g. sgbuf
assumes that the size is equal or less, and it may result in a bad
loop due to the underflow and eventually lead to Oops.

The code of this function seems incorrectly assuming the usage of
get_order().  We need to decrease at first, then align to
power-of-two.

Reported-and-tested-by: he, bo &lt;bo.he@intel.com&gt;
Reported-by: zhang jun &lt;jun.zhang@intel.com&gt;
Cc: &lt;stable@vger.kernel.org&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: core: Follow standard EXPORT_SYMBOL() declarations</title>
<updated>2017-06-16T14:19:16Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2017-06-16T14:16:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=35f8001415d301ba47124f463f98eee0e7d0792c'/>
<id>urn:sha1:35f8001415d301ba47124f463f98eee0e7d0792c</id>
<content type='text'>
Just a tidy up to follow the standard EXPORT_SYMBOL*() declarations
in order to improve grep-ability.

- Move EXPORT_SYMBOL*() to the position right after its definition
- Remove superfluous blank line before EXPORT_SYMBOL*() lines

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>genalloc: rename of_get_named_gen_pool() to of_gen_pool_get()</title>
<updated>2015-07-01T02:45:01Z</updated>
<author>
<name>Vladimir Zapolskiy</name>
</author>
<published>2015-06-30T22:00:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=abdd4a7025282fbe3737e1bcb5f51afc8d8ea1b8'/>
<id>urn:sha1:abdd4a7025282fbe3737e1bcb5f51afc8d8ea1b8</id>
<content type='text'>
To be consistent with other kernel interface namings, rename
of_get_named_gen_pool() to of_gen_pool_get().  In the original function
name "_named" suffix references to a device tree property, which contains
a phandle to a device and the corresponding device driver is assumed to
register a gen_pool object.

Due to a weak relation and to avoid any confusion (e.g.  in future
possible scenario if gen_pool objects are named) the suffix is removed.

[sfr@canb.auug.org.au: crypto/marvell/cesa - fix up for of_get_named_gen_pool() rename]
Signed-off-by: Vladimir Zapolskiy &lt;vladimir_zapolskiy@mentor.com&gt;
Cc: Nicolas Ferre &lt;nicolas.ferre@atmel.com&gt;
Cc: Philipp Zabel &lt;p.zabel@pengutronix.de&gt;
Cc: Shawn Guo &lt;shawn.guo@linaro.org&gt;
Cc: Sascha Hauer &lt;kernel@pengutronix.de&gt;
Cc: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
Cc: Russell King &lt;linux@arm.linux.org.uk&gt;
Cc: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
Cc: Vinod Koul &lt;vinod.koul@intel.com&gt;
Cc: Takashi Iwai &lt;tiwai@suse.de&gt;
Cc: Jaroslav Kysela &lt;perex@perex.cz&gt;
Signed-off-by: Stephen Rothwell &lt;sfr@canb.auug.org.au&gt;
Cc: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Cc: Boris BREZILLON &lt;boris.brezillon@free-electrons.com&gt;
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>ALSA: core: Use standard printk helpers</title>
<updated>2014-02-14T07:14:15Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2014-02-04T17:21:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f2f9307a4f26a9fbe47fff486a9cee5885af748f'/>
<id>urn:sha1:f2f9307a4f26a9fbe47fff486a9cee5885af748f</id>
<content type='text'>
Use dev_err() &amp; co as much as possible.  If not available (no device
assigned at the calling point), use pr_xxx() helpers instead.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: Merge memalloc code into snd-pcm module</title>
<updated>2014-01-09T07:12:57Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2014-01-09T06:48:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2d82ea2005624a80b18916e37bce921d6e868b59'/>
<id>urn:sha1:2d82ea2005624a80b18916e37bce921d6e868b59</id>
<content type='text'>
Instead of keeping a separate snd-page-alloc module, merge into the
core snd-pcm module, as we don't need to keep it as an individual
module due to the drop of page reservation.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: Remove superfluous header inclusions in memalloc.c</title>
<updated>2014-01-09T06:44:11Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2014-01-09T06:44:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f5d8e6df4bfa749b4d029ba43ac8a027b1003c2a'/>
<id>urn:sha1:f5d8e6df4bfa749b4d029ba43ac8a027b1003c2a</id>
<content type='text'>
After cutting off the proc and page reservation codes, we don't need
many headers any longer.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
</feed>
