From mboxrd@z Thu Jan 1 00:00:00 1970 From: Clemens Ladisch Subject: Re: Question on arm64 unaligned faults during playback Date: Tue, 09 Dec 2014 09:19:55 +0100 Message-ID: <5486B0AB.7000109@ladisch.de> References: <54856621.8090107@ladisch.de> <54858868.70708@metafoo.de> <20141208122549.GF16185@e104818-lin.cambridge.arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from dehamd003.servertools24.de (dehamd003.servertools24.de [31.47.254.18]) by alsa0.perex.cz (Postfix) with ESMTP id 0EE4A2605B5 for ; Tue, 9 Dec 2014 09:19:56 +0100 (CET) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Abhilash Kesavan , Catalin Marinas Cc: "alsa-devel@alsa-project.org" , Lars-Peter Clausen , "padma.v@samsung.com" , Takashi Iwai , Will Deacon , "lgirdwood@gmail.com" , "broonie@kernel.org" , "p.zabel@pengutronix.de" , "linux-arm-kernel@lists.infradead.org" List-Id: alsa-devel@alsa-project.org 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: clemens@ladisch.de (Clemens Ladisch) Date: Tue, 09 Dec 2014 09:19:55 +0100 Subject: [alsa-devel] Question on arm64 unaligned faults during playback In-Reply-To: References: <54856621.8090107@ladisch.de> <54858868.70708@metafoo.de> <20141208122549.GF16185@e104818-lin.cambridge.arm.com> Message-ID: <5486B0AB.7000109@ladisch.de> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 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