Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7305649ybi; Thu, 1 Aug 2019 06:18:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqzzlOWlBxOEl7NK6enYWII+svd1B0p5JdcZHDPnj3vnHaPuFgW8gmp14nLLuTjmlXvhFMsp X-Received: by 2002:a17:902:ac87:: with SMTP id h7mr5000015plr.36.1564665489681; Thu, 01 Aug 2019 06:18:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564665489; cv=none; d=google.com; s=arc-20160816; b=W0vKjlw89+BBsrhMU1sfstgahNfazLdHVACRbfgmgmXO5mxck5RvFHxWxzY9KoQT9L 94F/3nKQKxVfPn6y/GsfTgUZTGTlDPLHrw2MbfdlkGP2JT4Gzjb6BFpzWQQSKxqwfoh3 /Ru93pFLoDKqW8z0wnoZ0YaXn/V1U1jMgMNPQeAWWmxa6akA/cib6aAYVrOCRi9WbOCK vA8l5G3GwDoKrj73pLxyAfiCwuvYOHFWxkkPBk7gNuHY6kPnk/U2zJ1dZZdv+r4QkApb NSc4jjlmSxDnhk8ogvFoIu3V0Fp1maC2pSWNl2tx7gPOCZUTdZYq3LrSkWv3JUMy7a3Z SSrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=tZI3KTKjRpHUbTZ9xFHXOBJ2TvEhJBVLT56qlP1UV90=; b=n31rzVkGXD9gnoxtRFPSGd71cPt0YnKcQ/PX+loQaaX9TFvqCmsriIT5i0A5qwuEiZ KbC4WvD73qrMwqYH6G8e0g/r0u6ZQTGSyp6bJBFu0/kWhHXoK4FxPgT+hpSMFhEKN1MI yZJeKDyrVkcVFNBr8jkgHtjt5Cm8wLBIFzBwVvYW+qWGMBsFH72rAkpPaCtx7EjtxWYo vP5zZck+gkAB/mRrlIaw1xKdxZKB5fGGuxykkUSdfhu8qsa770vY9LrwUjuopEPfSjx6 nBErAnGtDe3S8UF211J5m5ZH2D4Zfa2zv4Hv0D5i8isLtv6RhIhaZxDBSFgcLoc395hS 9djg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=W54wwL11; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t19si4034822pjr.68.2019.08.01.06.17.53; Thu, 01 Aug 2019 06:18:09 -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; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=W54wwL11; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731518AbfHANAD (ORCPT + 99 others); Thu, 1 Aug 2019 09:00:03 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:36522 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728756AbfHANAD (ORCPT ); Thu, 1 Aug 2019 09:00:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=tZI3KTKjRpHUbTZ9xFHXOBJ2TvEhJBVLT56qlP1UV90=; b=W54wwL11CImP68WRPJyAxMIh7 wZwd4UHxY8TN0idZpHY/wNLyqUT+eGMt5cgvfmM8ztjgN1ecfkrcm5FKFZI4rmeJFXCjgsHoj3n9x 1BIwoJ3l027hSqtXZS/HQPIMu/t+eLPP91XLfyIyxoUjDRbplTV4kA4jn8uTyFrEwJ8JQ=; Received: from ypsilon.sirena.org.uk ([2001:470:1f1d:6b5::7]) by heliosphere.sirena.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1htAfm-0004hM-AB; Thu, 01 Aug 2019 12:59:10 +0000 Received: by ypsilon.sirena.org.uk (Postfix, from userid 1000) id 13EE12742C48; Thu, 1 Aug 2019 13:59:09 +0100 (BST) Date: Thu, 1 Aug 2019 13:59:08 +0100 From: Mark Brown To: Ravulapati Vishnu vardhan rao Cc: Alexander.Deucher@amd.com, Vijendar Mukunda , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Maruthi Bayyavarapu , YueHaibing , Colin Ian King , "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , open list Subject: Re: [PATCH 1/3] ASoC: amd: use DMA addr rather than CPU pa for audio buffer Message-ID: <20190801125908.GD5488@sirena.org.uk> References: <1564402115-5043-1-git-send-email-Vishnuvardhanrao.Ravulapati@amd.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="RYJh/3oyKhIjGcML" Content-Disposition: inline In-Reply-To: <1564402115-5043-1-git-send-email-Vishnuvardhanrao.Ravulapati@amd.com> X-Cookie: Love thy neighbor, tune thy piano. User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --RYJh/3oyKhIjGcML Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 29, 2019 at 05:38:29PM +0530, Ravulapati Vishnu vardhan rao wro= te: > We shouldn't assume CPU physical address we get from page_to_phys() > is same as DMA address we get from dma_alloc_coherent(). On x86_64, > we won't run into any problem with the assumption when dma_ops is > nommu_dma_ops. However, DMA address is IOVA when IOMMU is enabled. > And it's most likely different from CPU physical address when AMD > IOMMU is not in passthrough mode. This doesn't build for me: sound/soc/amd/raven/acp3x-pcm-dma.c: In function =E2=80=98acp3x_dma_hw_para= ms=E2=80=99: sound/soc/amd/raven/acp3x-pcm-dma.c:356:2: error: =E2=80=98pg=E2=80=99 unde= clared (first use in this function) pg =3D virt_to_page(substream->dma_buffer.area); ^~ sound/soc/amd/raven/acp3x-pcm-dma.c:356:2: note: each undeclared identifier= is reported only once for each function it appears in Please check and resend. --RYJh/3oyKhIjGcML Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl1C4hwACgkQJNaLcl1U h9C3Fwf7BOfEN4vmffpRJH10Vx7KKitOuorUGoZ4MzdoFmDEvZdkppuWO4WKlp1s KoulKALI7savBZjmK+EgHjLCgxfg+hDlXd06YhxKf3RRAA0ocYtbMkjpCbzuu1Oi +9ov2FjktSCXcGTH2/ozG7EBkUsj4BYcMAHRxrjM9RL25BLY0ZnGdBzNfxQUOId4 joH3Z68hx0+X32BPAELE9/8aujIOta+AIeDcMc7mHED2g2HjdeK6IaRRGYAr49CU pDoQe1N+gw+rzO5IYG4E9q4+ptdLGWxMkeX16vPem/21TWsXZJln0ybieo9XRBI0 bd//ujEu7ChIeKelc2b+VjO+A++Ojg== =BI5i -----END PGP SIGNATURE----- --RYJh/3oyKhIjGcML--