Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3413607rwa; Tue, 23 Aug 2022 04:29:53 -0700 (PDT) X-Google-Smtp-Source: AA6agR7pUCPDhaj2j6xne7wARzAD9Oo+EOXNhhwxedOhzNRm+aLs6UKoLEeDvBSssxUtrQPpyOaM X-Received: by 2002:aa7:dc10:0:b0:440:b446:c0cc with SMTP id b16-20020aa7dc10000000b00440b446c0ccmr3286116edu.34.1661254192916; Tue, 23 Aug 2022 04:29:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661254192; cv=none; d=google.com; s=arc-20160816; b=Xy4k0guLYo3+m6Nwtiy4ggJWfZONvmzKcJdrw0nHjEws+0QsQYc48nkr1o8rhRBAD/ 3tYj6P3frgpmwrcI7+QOeZJ9x1yscInYhf5njLBZ5reARsW3g3NgoSJAlcVIDCvD6dyC vvef9ZA0fs8BUVsMiNvJRdxnqJBFGKPPNGvNmT+cnechPOSTV3oWwbT6h0GXss7qWmZQ f4pouYmzs6421iHdnXDYP8rPuxvktxVvrD32/yMgr0SP94zRCODhvGJmhn5qVj0h8Y+6 PCrwE3bNvCrI8HWbVJx+XQhNPk3ic6Fi2IqrfrEw3Z7lZaJv7GcE0NDWmuQtpqJ2psRW uUKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=2rUww97t0SL4LphsSbeZDWliu6UkPmfSgAY2KKBnbVg=; b=FYfm1i1zWl3nZSDKIzxTH74MUP0ZFEFFTnEMDxBQhSL77itesaV4de+4RDgfq8cEhv XBxfprbuQBbqtlPW6LgHYqScInLRqKy70m1DsyhK5+PORLBGF1HC/b5wT2c3XgzVyC5H dGX9vKYs0t6LYv5/LQ2813b2xnrE87s9hhWewFzrLuxsuRjeoRdbQTDelSh8ufAsi0oc ch/mapiBAbmWmp/WFamkY80kB2wgzdcIiionRRfVVKtdJN9RvdRDBN58hsjMqzpo8QIn vhjM/ItZTWa7eQnX9qGyNWKWJiiIAivYNn8hXXlzXn8nQRpZ4RNksVyZkk/mvqsboS61 kIXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NVZo5BgA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz16-20020a1709077d9000b00732f74749ccsi11079336ejc.581.2022.08.23.04.29.27; Tue, 23 Aug 2022 04:29:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NVZo5BgA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239151AbiHWJW6 (ORCPT + 99 others); Tue, 23 Aug 2022 05:22:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350315AbiHWJVl (ORCPT ); Tue, 23 Aug 2022 05:21:41 -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 4CFF88D3C5; Tue, 23 Aug 2022 01:34:41 -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 F3B0F614C5; Tue, 23 Aug 2022 08:33:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E395FC433C1; Tue, 23 Aug 2022 08:33:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661243592; bh=KbyObKk7cSByvvXNFKtPxO7zqzi0cCyZ20ssVNoXFdQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NVZo5BgAgalAZtFPUOhQMX8cUA1j4p7qbmgukDNareRa7mZ0AiNHL19NxQerqT06S zbs8K3VquBzYmSogO+RT/Gfp+uunHiVvCeliEpkjaoY6yuEGzIvaSm55SK3FFFUgFC yq7VKRb5p1EAibvdSiVBRduYEgK6V6lzBPBfKQi8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= , Cezary Rojewski , Mark Brown , Sasha Levin Subject: [PATCH 5.19 325/365] ASoC: Intel: avs: Set max DMA segment size Date: Tue, 23 Aug 2022 10:03:46 +0200 Message-Id: <20220823080131.771177793@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080118.128342613@linuxfoundation.org> References: <20220823080118.128342613@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Amadeusz Sławiński [ Upstream commit 8544eebc78c96f1834a46b26ade3e7ebe785d10c ] Apparently it is possible for code to allocate large buffers which may cause warnings as reported in [1]. This was fixed for HDA, SOF and skylake in patchset [2], fix it also for avs driver. [1] https://github.com/thesofproject/linux/issues/3430 [2] https://lore.kernel.org/all/20220215132756.31236-1-tiwai@suse.de/ Signed-off-by: Amadeusz Sławiński Signed-off-by: Cezary Rojewski Link: https://lore.kernel.org/r/20220707124153.1858249-8-cezary.rojewski@intel.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/intel/avs/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/intel/avs/core.c b/sound/soc/intel/avs/core.c index 3a0997c3af2b..cf373969bb69 100644 --- a/sound/soc/intel/avs/core.c +++ b/sound/soc/intel/avs/core.c @@ -445,6 +445,7 @@ static int avs_pci_probe(struct pci_dev *pci, const struct pci_device_id *id) dma_set_mask(dev, DMA_BIT_MASK(32)); dma_set_coherent_mask(dev, DMA_BIT_MASK(32)); } + dma_set_max_seg_size(dev, UINT_MAX); ret = avs_hdac_bus_init_streams(bus); if (ret < 0) { -- 2.35.1