From patchwork Thu Apr 11 16:42:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Noralf_Tr=C3=B8nnes?= X-Patchwork-Id: 10896423 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4F7F9186E for ; Thu, 11 Apr 2019 16:43:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3A46E28D98 for ; Thu, 11 Apr 2019 16:43:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 38B1E28D9B; Thu, 11 Apr 2019 16:43:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9975228D9E for ; Thu, 11 Apr 2019 16:42:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726911AbfDKQm7 (ORCPT ); Thu, 11 Apr 2019 12:42:59 -0400 Received: from smtp.domeneshop.no ([194.63.252.55]:42164 "EHLO smtp.domeneshop.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726856AbfDKQm6 (ORCPT ); Thu, 11 Apr 2019 12:42:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tronnes.org; s=ds201810; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject:Cc:To:From; bh=hc3WZaDFfKs7KlcXf8Ge7kT/wMd1DrOJkNM1erR4b7Q=; b=pyR0ibZyxGbzMKqlJjCx6HJll0dKBpLOBxHqeLtOYdD0GQON0Xw77RsmPfY/bITaXndCGaaPtRK1cLALb8E6H3Jsbc3lA2iTYpgzqX+S2b2IvwA87bgydPOYdR+ZmDe3B5v2wfsEygXT4lLvVR8RXmQUDBL8128J2bkB3Pp4f6Y2i5RRQV4sSZCUIOU6nKTrYaus2dbJk78xIzxW0Tm2VC+hDErOKiQiLnzxHQ1mf1AQeglK0f62vCnNTw+5ZDl7grwJCcsLZHPQZ+gAJmgaOlQhZqHBW8SAagQJiO8YzBEtxeuDJyp7OVzVVYoGlpjfk1+NbUdKRvFvaB3Mshe7/A==; Received: from 211.81-166-168.customer.lyse.net ([81.166.168.211]:49732 helo=localhost.localdomain) by smtp.domeneshop.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.84_2) (envelope-from ) id 1hEcmv-0007LK-1r; Thu, 11 Apr 2019 18:42:57 +0200 From: =?utf-8?q?Noralf_Tr=C3=B8nnes?= To: linux-spi@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: broonie@kernel.org, eric@anholt.net, stefan.wahren@i2se.com, kernel@martin.sperl.org, meghana.madhyastha@gmail.com, linux-rpi-kernel@lists.infradead.org, =?utf-8?q?Noralf_Tr=C3=B8nnes?= Subject: [PATCH v4 0/4] Chunk splitting of spi transfers Date: Thu, 11 Apr 2019 18:42:31 +0200 Message-Id: <20190411164235.49771-1-noralf@tronnes.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP spi-bcm2835 has a ~64kB upper limit on DMA transfers. Drivers in drivers/gpu/drm/tinydrm work around this limitation by splitting the buffer into multiple transfers. This patchset lifts this limitation by splitting affected transfers in the SPI core using spi_split_transfers_maxsize(). This work[1] was begun by Meghana Madhyastha. Main changes in this version: - Remove warning in spi_split_transfers_maxsize() - Split SPI patch into core patch and driver patch Noralf. [1] https://patchwork.freedesktop.org/series/38913/ Meghana Madhyastha (3): spi: Split spi message into max_dma_len size chunks spi/spi-bcm2835: Remove DMA transfer size cap drm/tinydrm: Remove chunk splitting in tinydrm_spi_transfer Noralf Trønnes (1): spi: Remove warning in spi_split_transfers_maxsize() .../gpu/drm/tinydrm/core/tinydrm-helpers.c | 83 ++----------------- drivers/gpu/drm/tinydrm/mipi-dbi.c | 10 +-- drivers/spi/spi-bcm2835.c | 15 +--- drivers/spi/spi.c | 10 +-- 4 files changed, 13 insertions(+), 105 deletions(-)