From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8759F7E for ; Sun, 22 Jan 2023 15:10:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B033C433EF; Sun, 22 Jan 2023 15:10:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1674400204; bh=nQlivLKt2/oeXz3ftIZsPhfBjv/pS8PGIbqDqIk+SUc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rLJxrqhsOH4ag8KomdIqeQgeuPmOSCtJs+VBL/2kDdHFHjX1je/Bw/jm9Hqh9BoHS y4jnPmFMB2+eCjawzqO79sELczeu88iiO7CDFlXlw7kDmqXo0osrGd2mH/GR39NE8W u13N30aA6WEAyX5cW9VXBz6a1t30pH8sgXqlDuuY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Takashi Iwai , Ricardo Ribalda , Mathias Nyman Subject: [PATCH 5.4 12/55] xhci-pci: set the dma max_seg_size Date: Sun, 22 Jan 2023 16:03:59 +0100 Message-Id: <20230122150222.755190441@linuxfoundation.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230122150222.210885219@linuxfoundation.org> References: <20230122150222.210885219@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Ricardo Ribalda commit 93915a4170e9defd56a767a18e6c4076f3d18609 upstream. Allow devices to have dma operations beyond 64K, and avoid warnings such as: xhci_hcd 0000:00:14.0: mapping sg segment longer than device claims to support [len=98304] [max=65536] Cc: stable@vger.kernel.org Cc: Takashi Iwai Signed-off-by: Ricardo Ribalda Signed-off-by: Mathias Nyman Link: https://lore.kernel.org/r/20230116142216.1141605-2-mathias.nyman@linux.intel.com Signed-off-by: Greg Kroah-Hartman --- drivers/usb/host/xhci-pci.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c @@ -427,6 +427,8 @@ static int xhci_pci_probe(struct pci_dev if (xhci->quirks & XHCI_DEFAULT_PM_RUNTIME_ALLOW) pm_runtime_allow(&dev->dev); + dma_set_max_seg_size(&dev->dev, UINT_MAX); + return 0; put_usb3_hcd: