From: Takashi Iwai Subject: Re: [PATCH v2 01/20] ASoC: SOF: Intel: Add BYT, CHT and BSW DSP HW support. Date: Thu, 14 Feb 2019 14:43:26 +0100 Message-ID: References: <20190213220847.10567-1-pierre-louis.bossart@linux.intel.com> <20190213220847.10567-2-pierre-louis.bossart@linux.intel.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20190213220847.10567-2-pierre-louis.bossart@linux.intel.com> 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: Pierre-Louis Bossart Cc: alsa-devel@alsa-project.org, andriy.shevchenko@intel.com, Pan Xiuli , Daniel Baluta , liam.r.girdwood@linux.intel.com, vkoul@kernel.org, broonie@kernel.org, Alan Cox , Rander Wang , sound-open-firmware@alsa-project.org List-Id: alsa-devel@alsa-project.org On Wed, 13 Feb 2019 23:08:28 +0100, Pierre-Louis Bossart wrote: > > +static irqreturn_t byt_irq_thread(int irq, void *context) > +{ > + struct snd_sof_dev *sdev = (struct snd_sof_dev *)context; > + u64 ipcx, ipcd; > + u64 imrx; > + > + imrx = snd_sof_dsp_read64(sdev, BYT_DSP_BAR, SHIM_IMRX); > + ipcx = snd_sof_dsp_read64(sdev, BYT_DSP_BAR, SHIM_IPCX); > + > + /* reply message from DSP */ > + if (ipcx & SHIM_BYT_IPCX_DONE && > + !(imrx & SHIM_IMRX_DONE)) { > + /* Mask Done interrupt before first */ > + snd_sof_dsp_update_bits64_unlocked(sdev, BYT_DSP_BAR, > + SHIM_IMRX, > + SHIM_IMRX_DONE, > + SHIM_IMRX_DONE); Is it safe to use unlocked call here? It's a question also in general for other places found in this patch. thanks, Takashi