lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <s5hfuzjn635.wl-tiwai@suse.de>
Date:	Thu, 03 Dec 2015 12:07:26 +0100
From:	Takashi Iwai <tiwai@...e.de>
To:	Mark Brown <broonie@...nel.org>
Cc:	Koro Chen <koro.chen@...iatek.com>, lgirdwood@...il.com,
	alsa-devel@...a-project.org, srv_heupstream@...iatek.com,
	s.hauer@...gutronix.de, linux-kernel@...r.kernel.org,
	linux-mediatek@...ts.infradead.org,
	linux-arm-kernel@...ts.infradead.org
Subject: Re: [alsa-devel] [PATCH] ASoC: mediatek: Use current HW pointer for pointer callback

On Thu, 03 Dec 2015 12:01:58 +0100,
Mark Brown wrote:
> 
> On Thu, Dec 03, 2015 at 10:41:38AM +0100, Takashi Iwai wrote:
> 
> > While reading this patch, I wondered how regmap can be used safely in
> > an irq-disabled context.  Mark, do we have any API for that?
> 
> We can use user supplied locks or spin_lock_irqsave().

I meant how to guarantee to make regmap_read() working in an already
spin-locked context, typically in an irq handler?  regmap_read()
involves with the regcache and it may invoke kmalloc().


Takashi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ