All of lore.kernel.org
 help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: Abhilash Kesavan <kesavan.abhilash@gmail.com>,
	Catalin Marinas <catalin.marinas@arm.com>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
	Lars-Peter Clausen <lars@metafoo.de>,
	"padma.v@samsung.com" <padma.v@samsung.com>,
	Takashi Iwai <tiwai@suse.de>, Will Deacon <Will.Deacon@arm.com>,
	"lgirdwood@gmail.com" <lgirdwood@gmail.com>,
	"broonie@kernel.org" <broonie@kernel.org>,
	"p.zabel@pengutronix.de" <p.zabel@pengutronix.de>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>
Subject: Re: Question on arm64 unaligned faults during playback
Date: Tue, 09 Dec 2014 09:19:55 +0100	[thread overview]
Message-ID: <5486B0AB.7000109@ladisch.de> (raw)
In-Reply-To: <CAM4voam0h4e1Z8q3eqNpgMhhfw-zJpfh7fi4iznX_Y0bj98nKA@mail.gmail.com>

Abhilash Kesavan wrote:
> Currently, if I continue to use the SRAM allocation driver, two
> options are working:
> 1) ioremap to ioremap_wc in drivers/misc/sram.c.
> 2) copy_from_user to copy_from_user_toio in sound/core/pcm_lib.c
>
> Which would be the preferred option ?

I don't know how to tell the SRAM allocator to hand out WC memory, but
copy_from_user_toio() is what you would put into your .copy callback.


Regards,
Clemens

WARNING: multiple messages have this Message-ID (diff)
From: clemens@ladisch.de (Clemens Ladisch)
To: linux-arm-kernel@lists.infradead.org
Subject: [alsa-devel] Question on arm64 unaligned faults during playback
Date: Tue, 09 Dec 2014 09:19:55 +0100	[thread overview]
Message-ID: <5486B0AB.7000109@ladisch.de> (raw)
In-Reply-To: <CAM4voam0h4e1Z8q3eqNpgMhhfw-zJpfh7fi4iznX_Y0bj98nKA@mail.gmail.com>

Abhilash Kesavan wrote:
> Currently, if I continue to use the SRAM allocation driver, two
> options are working:
> 1) ioremap to ioremap_wc in drivers/misc/sram.c.
> 2) copy_from_user to copy_from_user_toio in sound/core/pcm_lib.c
>
> Which would be the preferred option ?

I don't know how to tell the SRAM allocator to hand out WC memory, but
copy_from_user_toio() is what you would put into your .copy callback.


Regards,
Clemens

  reply	other threads:[~2014-12-09  8:19 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-08  5:40 Question on arm64 unaligned faults during playback Abhilash Kesavan
2014-12-08  8:49 ` Clemens Ladisch
2014-12-08 10:41   ` Takashi Iwai
2014-12-08 11:15     ` Lars-Peter Clausen
2014-12-08 11:15       ` [alsa-devel] " Lars-Peter Clausen
2014-12-08 11:31       ` Will Deacon
2014-12-08 11:31         ` Will Deacon
2014-12-09  2:56         ` Abhilash Kesavan
2014-12-09  2:56           ` [alsa-devel] " Abhilash Kesavan
2014-12-08 12:04       ` Takashi Iwai
2014-12-08 12:04         ` [alsa-devel] " Takashi Iwai
2014-12-08 12:25       ` Catalin Marinas
2014-12-08 12:25         ` Catalin Marinas
2014-12-09  2:56         ` Abhilash Kesavan
2014-12-09  2:56           ` Abhilash Kesavan
2014-12-09  8:19           ` Clemens Ladisch [this message]
2014-12-09  8:19             ` Clemens Ladisch
2014-12-09 11:43           ` Catalin Marinas
2014-12-09 11:43             ` [alsa-devel] " Catalin Marinas
2014-12-10  4:10             ` Abhilash Kesavan
2014-12-10  4:10               ` [alsa-devel] " Abhilash Kesavan
2014-12-09  2:56   ` Abhilash Kesavan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5486B0AB.7000109@ladisch.de \
    --to=clemens@ladisch.de \
    --cc=Will.Deacon@arm.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=catalin.marinas@arm.com \
    --cc=kesavan.abhilash@gmail.com \
    --cc=lars@metafoo.de \
    --cc=lgirdwood@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=p.zabel@pengutronix.de \
    --cc=padma.v@samsung.com \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.