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 93BCC7E for ; Sun, 22 Jan 2023 15:08:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17579C433EF; Sun, 22 Jan 2023 15:08:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1674400092; bh=BycfUCkr70YMcdcGzwP9H86Hq+WAaqFDIhXf6Nx2CDo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Erc/kS5c3gSkVNWC5cVW28tE8EDRBV3/lL+TTh69Mjc78URlFQRaL1GPkMIjpQ/Mj il4FotJNWJ2DkhXA10qKjAeMXvHk7iDXHZFxkJdiIYMXQAUt6WNV4nkuHDxPb9CSKN 1RTvoT4LysswSe+v16MXBJEhUucfh3I52DTBQboM= 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 4.19 07/37] xhci-pci: set the dma max_seg_size Date: Sun, 22 Jan 2023 16:04:04 +0100 Message-Id: <20230122150219.888877618@linuxfoundation.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230122150219.557984692@linuxfoundation.org> References: <20230122150219.557984692@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 @@ -378,6 +378,8 @@ static int xhci_pci_probe(struct pci_dev /* USB-2 and USB-3 roothubs initialized, allow runtime pm suspend */ pm_runtime_put_noidle(&dev->dev); + dma_set_max_seg_size(&dev->dev, UINT_MAX); + return 0; put_usb3_hcd: