From: Tony Lindgren Subject: Re: [PATCH] mmc: core: Lower max_seg_size if too high for DMA Date: Tue, 11 Dec 2018 06:23:43 -0800 Message-ID: <20181211142343.GO6707@atomide.com> References: <20181031155738.18367-1-tony@atomide.com> <20181129191332.GY53235@atomide.com> <20181211131336.GD9507@n2100.armlinux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Peter Ujfalusi Cc: Ulf Hansson , "linux-mmc@vger.kernel.org" , Russell King - ARM Linux , Kishon , linux-omap , Linux ARM List-Id: linux-mmc@vger.kernel.org * Peter Ujfalusi [181211 13:47]: > On 11/12/2018 15.13, Russell King - ARM Linux wrote: > > The only thing I can think of doing is adding into omap_hsmmc: > > > > mmc->max_seg_size = min(mmc->max_req_size, > > min(dma_get_max_seg_size(host->rx_chan->device->dev), > > dma_get_max_seg_size(host->tx_chan->device->dev))); > > > > to limit the maximum segment size to that of the device _and_ dma > > engine's capabilities. > > Make sense. > > > Doing this solves the problem for me. OK sounds good to me too. Thanks, Tony