Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2064961imm; Sat, 13 Oct 2018 09:21:15 -0700 (PDT) X-Google-Smtp-Source: ACcGV635E/unOxNDusufnogwC3sgLDqHHaDirVzTAC3W+LP+yVJqkYd6tFsllrCvKILKHj1n9J01 X-Received: by 2002:a63:4cb:: with SMTP id 194-v6mr9822528pge.183.1539447675008; Sat, 13 Oct 2018 09:21:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539447674; cv=none; d=google.com; s=arc-20160816; b=ogYYYgoaaWg2HhexKwqBFL7DvuIJyVAeYhBdzMHEDPQGW5ZPwDw5wqbkwpxSIOM4ZA Nrbl7/3EQ3YpRaUFJM6nzJtverQGBH6aFsFLY6xoIR9llSqqIe7AFxHsw18YEn+sbjjF /TbbXVg/jfMATjesk0P+hNvAVSqcpovR7V7W4sRPszdKMlUkxN4X3eNVuBYQiCjpZV4y g8jAV5nWLSM/oCz+N0IDwDw2rkExSNl/O8YrqaGvtFdCLpazG+GBl/RSqQ3QT+272brK mQU1c0QyrGx5Uiba07+1EpmSQvzHfXqVnzPgCT0ntgN8G9uTGm1N30Vp+gOhj/rhPiwO wZ7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date; bh=ugpUaG8PmC58t68DZ1+O0LxwExu6IUCd3k0d0G/LlWU=; b=sOEXzDV7MllqypxGGY6pdYhh7j5yZVxUKYQI7dfSKqifXDVPNHPFsCeNx67vycsY8h rHqmIr5rp0xaY6/TPDW/xvOzLuQ+HN5OafuIW690tSrz/SnbrQWlsyy76daU+qBUscGt P6Nnbu8AM/D4kzfFXMtoT+JYmwiF0dpIyn6d1nQRo3+SrAiSqzX96BfN7e/PsC7Ih4Mj de1I8C+Z5/BO82yMjLp9/7YXvLYFKh4z1gba1Ea4O6P3uftCnb4nok7PqpO3H7AO3G/Y 5L4J+OtGNsFkob/6eBeMkXlXrtVJ4sYP1da0uXBJsZ6DBLDUIVm+h9QiWI595m6dC7y5 f1NQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k123-v6si5227719pfc.150.2018.10.13.09.20.59; Sat, 13 Oct 2018 09:21:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726736AbeJMX6X (ORCPT + 99 others); Sat, 13 Oct 2018 19:58:23 -0400 Received: from mx2.suse.de ([195.135.220.15]:44378 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725919AbeJMX6X (ORCPT ); Sat, 13 Oct 2018 19:58:23 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id CEA73AF66; Sat, 13 Oct 2018 16:20:35 +0000 (UTC) Date: Sat, 13 Oct 2018 18:20:35 +0200 Message-ID: From: Takashi Iwai To: Christoph Hellwig Cc: linux-pm@vger.kernel.org, linux-tegra@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org, linux-spi@vger.kernel.org, linux-fbdev@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [alsa-devel] [PATCH 5/8] sound: intel/sst: don't pass GFP_DMA32 to dma_alloc_coherent In-Reply-To: <20181013151707.32210-6-hch@lst.de> References: <20181013151707.32210-1-hch@lst.de> <20181013151707.32210-6-hch@lst.de> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/26 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 13 Oct 2018 17:17:04 +0200, Christoph Hellwig wrote: > > The DMA API does its own zone decisions based on the coherent_dma_mask. > > Signed-off-by: Christoph Hellwig Reviewed-by: Takashi Iwai thanks, Takashi > --- > sound/soc/intel/common/sst-firmware.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sound/soc/intel/common/sst-firmware.c b/sound/soc/intel/common/sst-firmware.c > index 11041aedea31..1e067504b604 100644 > --- a/sound/soc/intel/common/sst-firmware.c > +++ b/sound/soc/intel/common/sst-firmware.c > @@ -355,7 +355,7 @@ struct sst_fw *sst_fw_new(struct sst_dsp *dsp, > > /* allocate DMA buffer to store FW data */ > sst_fw->dma_buf = dma_alloc_coherent(dsp->dma_dev, sst_fw->size, > - &sst_fw->dmable_fw_paddr, GFP_DMA | GFP_KERNEL); > + &sst_fw->dmable_fw_paddr, GFP_KERNEL); > if (!sst_fw->dma_buf) { > dev_err(dsp->dev, "error: DMA alloc failed\n"); > kfree(sst_fw); > -- > 2.19.1 > > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel >