Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp1115897ybh; Sat, 3 Aug 2019 18:21:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqz4oRALy/YAfpU33ca6e8Vk/4P7Xb7LNt0lT6PxVCCppi+ZG6WnFtJctgKTaC9rkHn2gSbQ X-Received: by 2002:a17:90a:1a45:: with SMTP id 5mr11788564pjl.43.1564881717316; Sat, 03 Aug 2019 18:21:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564881717; cv=none; d=google.com; s=arc-20160816; b=UxQoIr70HnkPTG/Po0jNthMkuvO+T+QoBkAfdU22T0lAlYZVK/3rMXbcNL3YlLxvkQ kr0ij6afypuGbSbWU7f1Y7BCa4SLnaC1VkbmBRkANj/hibMjmclPxZp8up7dnmftL0d5 V2e1zITA+60E22ObW/4Pc4EqGbmSB/1IitMxRO2myrlIMSGur0uKCLs/CBw90FCOP8iQ Uum6Di5JkzvgGc1LY3I/YldmVM5le5fLH2wS8z8puKABhfSN/Skh0C9qaciKJwnFAhcf Shuonw0IG7UvyV6M9iWKn7h2RGn+hJFoAHCz4NtTxAaG0AdxBNtBar/7h7FMJUVqzc9i GGJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature; bh=2MTBTXM1Lg5vogB4evU1IwkNP6cSEKbLGHBZeFAtHlA=; b=JzGclV9pvDiDsFC51AlYoSpHD5zp5NS4ycIk/qFNn2O59udYQbHHF+ttureqLLkOKk 3EkicPL2H9vCTaUCuyWWp2MewoIuN67XPVAGV1Fk+FXMAq4Rds5Xa88XzzNdhpfQVoXq ZO1K/f2hWX3r5OWkRcgPnuKJr3ehzMNpz6B6qIXBnNoWSZoF6fRHI50W9yq2lQLhKi+B Fk5LIByWsfxg/1ExJ06mvaf8syXjcLqIInFdGof7pbeKp/Gi8mAOoM+20oNwex0y7kek A2VCFhkitOi2vWvP9CTzc5zj8XFemkpFbwwkbAjpGBFXRPz/Eomr3Kg4EwhaU0wqdRQL yvvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b="q/JOmaCH"; 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 x9si43610977pfi.211.2019.08.03.18.21.42; Sat, 03 Aug 2019 18:21:57 -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="q/JOmaCH"; 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 S2387553AbfHBTAh (ORCPT + 99 others); Fri, 2 Aug 2019 15:00:37 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:40658 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727670AbfHBTAh (ORCPT ); Fri, 2 Aug 2019 15:00:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=2MTBTXM1Lg5vogB4evU1IwkNP6cSEKbLGHBZeFAtHlA=; b=q/JOmaCHOITS elP6G1oTsXB2kg22rxY6jvkIu7JkJ9A2lddpuLb3P11ZfRPHF5YXWxypj1MruMKHNJOTV9zRvuZE1 9cVyoLgASHKNrSpiyhmQ2SAmX/UzejFdOLj5B2eSXUeidSi+EW04tqka7hkcRkmJCQvYTqhT1SSpy s12VI=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=ypsilon.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1htcmq-0000AB-7c; Fri, 02 Aug 2019 19:00:20 +0000 Received: by ypsilon.sirena.org.uk (Postfix, from userid 1000) id 6070B2742E86; Fri, 2 Aug 2019 20:00:19 +0100 (BST) From: Mark Brown To: Vijendar Mukunda Cc: Alexander.Deucher@amd.com, alsa-devel@alsa-project.org, "Cc:"@sirena.org.uk, "Cc:"@sirena.org.uk, Colin Ian King , Jaroslav Kysela , Liam Girdwood , Mark Brown , Maruthi Bayyavarapu , moderated@sirena.org.uk, "list:SOUND"@sirena.org.uk, -@sirena.org.uk, SOC@sirena.org.uk, LAYER@sirena.org.uk, /@sirena.org.uk, DYNAMIC@sirena.org.uk, open list , Ravulapati Vishnu vardhan rao , Takashi Iwai , Vijendar Mukunda , YueHaibing Subject: Applied "ASoC: amd: acp3x: use dma_ops of parent device for acp3x dma driver" to the asoc tree In-Reply-To: <1564753899-17124-1-git-send-email-Vijendar.Mukunda@amd.com> X-Patchwork-Hint: ignore Message-Id: <20190802190019.6070B2742E86@ypsilon.sirena.org.uk> Date: Fri, 2 Aug 2019 20:00:19 +0100 (BST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: amd: acp3x: use dma_ops of parent device for acp3x dma driver has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.3 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From 88639051017fb61a414b636dd0fc490da2b62b64 Mon Sep 17 00:00:00 2001 From: Vijendar Mukunda Date: Fri, 2 Aug 2019 19:21:23 +0530 Subject: [PATCH] ASoC: amd: acp3x: use dma_ops of parent device for acp3x dma driver AMD platform device acp3x_rv_i2s created by parent PCI device driver. Pass struct device of the parent to snd_pcm_lib_preallocate_pages() so dma_alloc_coherent() can use correct dma_ops. Otherwise, it will use default dma_ops which is nommu_dma_ops on x86_64 even when IOMMU is enabled and set to non passthrough mode. Signed-off-by: Vijendar Mukunda Link: https://lore.kernel.org/r/1564753899-17124-1-git-send-email-Vijendar.Mukunda@amd.com Signed-off-by: Mark Brown --- sound/soc/amd/raven/acp3x-pcm-dma.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sound/soc/amd/raven/acp3x-pcm-dma.c b/sound/soc/amd/raven/acp3x-pcm-dma.c index a4ade6bb5beb..905ed2f1861b 100644 --- a/sound/soc/amd/raven/acp3x-pcm-dma.c +++ b/sound/soc/amd/raven/acp3x-pcm-dma.c @@ -385,9 +385,11 @@ static snd_pcm_uframes_t acp3x_dma_pointer(struct snd_pcm_substream *substream) static int acp3x_dma_new(struct snd_soc_pcm_runtime *rtd) { + struct snd_soc_component *component = snd_soc_rtdcom_lookup(rtd, + DRV_NAME); + struct device *parent = component->dev->parent; snd_pcm_lib_preallocate_pages_for_all(rtd->pcm, SNDRV_DMA_TYPE_DEV, - rtd->pcm->card->dev, - MIN_BUFFER, MAX_BUFFER); + parent, MIN_BUFFER, MAX_BUFFER); return 0; } -- 2.20.1