Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D8EC8ECAAD8 for ; Wed, 14 Sep 2022 09:05:48 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 145C81878; Wed, 14 Sep 2022 11:04:57 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 145C81878 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1663146347; bh=Dn/DKRc/PrXcI8LbSmskk3JnKqDNpcqfMd3eGY9QdiE=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=O4AgsZfr/RQrAEQoTD177l5h39HZ4JdxIInxzluxjM3J0Dbw6wnmhKS9bSwXUwjK3 kFztt+AFOEb/LLYZkxE0yEBE+9bbTMoJ2hEUOt7Q7cKpe/lnMEBRtqAKFRWWVzwr7l mLBiQcXHxd2vnRTmOUf5tAvzNOpmJQxQy8+zuzQA= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 5B266F8055C; Wed, 14 Sep 2022 11:03:56 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 47F82F80430; Wed, 14 Sep 2022 11:03:53 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id D6D69F8053A for ; Wed, 14 Sep 2022 11:03:45 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz D6D69F8053A Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pVQbbH27" Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BEC0B61998; Wed, 14 Sep 2022 09:03:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61243C433D6; Wed, 14 Sep 2022 09:03:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663146224; bh=Dn/DKRc/PrXcI8LbSmskk3JnKqDNpcqfMd3eGY9QdiE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pVQbbH27YSC4sD7TGFj3XQD8yMDxO4hz+WA4nOFAgKuQVQSwZ+TgMLpq9iUJxi1zM gc5MX9boJz0mxohzfht7HtsBuZxyxy8aSoefg40VoZ+sE3a4k3W0tbozUu2elH6m1d bMqJX5MreZG1rdsaxc7xeVhrdPPiiRo9AIMRKWG+B2/PcFYIG60w8VH/r7ZIwu4gJV jMML5o0d/klCYJdGN+tJF12q9H02HNRta69xupqDAmCZGV9QAkLRG//5smUXRMqojK w6zmxjWB4cqsuNiqCprPwfoQQnTFfdUSAcdRcNdM7I1CdOpcu/zBhsswveFPnM3kRN xDlJAZiPqc7vg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH AUTOSEL 5.10 07/13] ALSA: hda/tegra: Align BDL entry to 4KB boundary Date: Wed, 14 Sep 2022 05:03:09 -0400 Message-Id: <20220914090317.471116-7-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220914090317.471116-1-sashal@kernel.org> References: <20220914090317.471116-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Cc: Sasha Levin , alsa-devel@alsa-project.org, Takashi Iwai , spujar@nvidia.com, tiwai@suse.com, thierry.reding@gmail.com, linux-tegra@vger.kernel.org, digetx@gmail.com, jonathanh@nvidia.com, Mohan Kumar X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" From: Mohan Kumar [ Upstream commit 8d44e6044a0e885acdd01813768a0b27906d64fd ] AZA HW may send a burst read/write request crossing 4K memory boundary. The 4KB boundary is not guaranteed by Tegra HDA HW. Make SW change to include the flag AZX_DCAPS_4K_BDLE_BOUNDARY to align BDLE to 4K boundary. Signed-off-by: Mohan Kumar Link: https://lore.kernel.org/r/20220905172420.3801-1-mkumard@nvidia.com Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- sound/pci/hda/hda_tegra.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/pci/hda/hda_tegra.c b/sound/pci/hda/hda_tegra.c index 07787698b9738..1e44e337986e8 100644 --- a/sound/pci/hda/hda_tegra.c +++ b/sound/pci/hda/hda_tegra.c @@ -479,7 +479,8 @@ MODULE_DEVICE_TABLE(of, hda_tegra_match); static int hda_tegra_probe(struct platform_device *pdev) { const unsigned int driver_flags = AZX_DCAPS_CORBRP_SELF_CLEAR | - AZX_DCAPS_PM_RUNTIME; + AZX_DCAPS_PM_RUNTIME | + AZX_DCAPS_4K_BDLE_BOUNDARY; struct snd_card *card; struct azx *chip; struct hda_tegra *hda; -- 2.35.1