From mboxrd@z Thu Jan 1 00:00:00 1970 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 8B055C6FA8A for ; Wed, 14 Sep 2022 09:06:47 +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 B66421EF; Wed, 14 Sep 2022 11:05:55 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz B66421EF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1663146405; bh=K5zgYV/7GaG+y0WBw/d/eCyCEW8yIjqULs6WqBDVQHc=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=vnyfEVWt4q22gX5FI0cCb2IpyzB4qPmf0qvt/66JBQpcbRU/lFkTdyUGLbTnAfgYj JWPYiYxOW8Fn6zusoDiD/zTsosi1f7jLK0jSVOl+mA8+TOKdo+A+QA6LCP4saqekui +Ks3q29YX4mvWKiuICiZZmtetexry9O5IL/BjoX8= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 10CF2F80566; Wed, 14 Sep 2022 11:04:36 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 98169F80566; Wed, 14 Sep 2022 11:04:34 +0200 (CEST) Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 6CDFEF8016E for ; Wed, 14 Sep 2022 11:04:28 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 6CDFEF8016E Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="oZizKrIs" 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 ams.source.kernel.org (Postfix) with ESMTPS id B6FEEB8170C; Wed, 14 Sep 2022 09:04:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 528A8C433C1; Wed, 14 Sep 2022 09:04:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663146266; bh=K5zgYV/7GaG+y0WBw/d/eCyCEW8yIjqULs6WqBDVQHc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oZizKrIsfO+heHgqdEFn1yGA2MOjOQAsuIhd9rk2wYn0s452DHchNQ/wPQoMl0z/n kanDmciZqEx5StrEdm08A8P+uD2c5LZRbCu10ztL9SVy4ZbmD+zjdehHWEjlIJ43YE 30JHXVtQuHkVgk1BqwJ4b2Ycfz9/MVjFvyJnzA5aS18FhPjPsPiliFNhpc5l89U3W4 AFRweYU7+Is9mWP8nhqNEqk8hnCiQ4Pb6Jn4/9PRhWCG4uItdH/yFt1Rt6ENUPVISn Nd46vg9k8M3zUOI/RUMvvrkLNgHwidAbvvFLIxtGDQl5CdCbdV97aYa2rWEsefaupf FudzL2PLOcZEA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH AUTOSEL 5.4 06/12] ALSA: hda/tegra: Align BDL entry to 4KB boundary Date: Wed, 14 Sep 2022 05:03:59 -0400 Message-Id: <20220914090407.471328-6-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220914090407.471328-1-sashal@kernel.org> References: <20220914090407.471328-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 2971b34c87c1a..e235c3ec634db 100644 --- a/sound/pci/hda/hda_tegra.c +++ b/sound/pci/hda/hda_tegra.c @@ -428,7 +428,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 From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D0124ECAAD8 for ; Wed, 14 Sep 2022 09:11:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231420AbiINJLi (ORCPT ); Wed, 14 Sep 2022 05:11:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231220AbiINJK6 (ORCPT ); Wed, 14 Sep 2022 05:10:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 490C8DE94; Wed, 14 Sep 2022 02:05:00 -0700 (PDT) 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 1B383619F2; Wed, 14 Sep 2022 09:04:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 528A8C433C1; Wed, 14 Sep 2022 09:04:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663146266; bh=K5zgYV/7GaG+y0WBw/d/eCyCEW8yIjqULs6WqBDVQHc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oZizKrIsfO+heHgqdEFn1yGA2MOjOQAsuIhd9rk2wYn0s452DHchNQ/wPQoMl0z/n kanDmciZqEx5StrEdm08A8P+uD2c5LZRbCu10ztL9SVy4ZbmD+zjdehHWEjlIJ43YE 30JHXVtQuHkVgk1BqwJ4b2Ycfz9/MVjFvyJnzA5aS18FhPjPsPiliFNhpc5l89U3W4 AFRweYU7+Is9mWP8nhqNEqk8hnCiQ4Pb6Jn4/9PRhWCG4uItdH/yFt1Rt6ENUPVISn Nd46vg9k8M3zUOI/RUMvvrkLNgHwidAbvvFLIxtGDQl5CdCbdV97aYa2rWEsefaupf FudzL2PLOcZEA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Mohan Kumar , Takashi Iwai , Sasha Levin , perex@perex.cz, tiwai@suse.com, thierry.reding@gmail.com, jonathanh@nvidia.com, spujar@nvidia.com, digetx@gmail.com, alsa-devel@alsa-project.org, linux-tegra@vger.kernel.org Subject: [PATCH AUTOSEL 5.4 06/12] ALSA: hda/tegra: Align BDL entry to 4KB boundary Date: Wed, 14 Sep 2022 05:03:59 -0400 Message-Id: <20220914090407.471328-6-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220914090407.471328-1-sashal@kernel.org> References: <20220914090407.471328-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org 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 2971b34c87c1a..e235c3ec634db 100644 --- a/sound/pci/hda/hda_tegra.c +++ b/sound/pci/hda/hda_tegra.c @@ -428,7 +428,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