Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp810031imu; Tue, 11 Dec 2018 07:57:06 -0800 (PST) X-Google-Smtp-Source: AFSGD/XP1qPV3HDecD3FUW2uqeO55ViPpMBGthTfDNX3GJifW3UUROWjKF16Hi53HeWy4wedtlF7 X-Received: by 2002:a17:902:714c:: with SMTP id u12mr16303389plm.234.1544543826801; Tue, 11 Dec 2018 07:57:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544543826; cv=none; d=google.com; s=arc-20160816; b=GvNBYL9l39kh4KKJlLVQUyc5tBu9eUeCzdOHIUw1YOTNNT6awKxymliu9Vud4gUCjA jpBdsZccIfcYUOJBGxeSW71vyrmSQkDfOudA8x2hHJUsm6NJhaREYC30icqoZVnmR5V6 bctxhBFgV9mdQNXQyWNDs/cnrnw4XAV2ic/wX+8Qr4Z7duPkSI+4+4bD0k1wYNbHcC11 /MYCA7vGRJ1cZ+JEzV1ejEL/O1BjMXbeZIZ+1vcUyXx/4BY+4V2BGQtYqVJO129Nz9Wf +LqduxtNzjT6O2YuQ3rH8yWShwPMKNPLNirC6NPdXxQsF4Y7MKwl0XOt/l6vO5HeMNvw caWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Vil5+5+HWNY1MX7ghmhkgS7Fe/m5H9dtJQiy7H4lOy0=; b=ZVBzu6aSxkEx9D0BOFWkP+L7da6o0xeE7gpy2Ea+yXjrV7nMhHGOggSidCga2oGXye EO8IMNayvtKrr1TQynPcYlQO+ujEjvPGOxpSt/J5AVazBWFP9qL39Q1uNTCi0kMHsfbk G8Vkd40Jqs1i8SVlnCjC0QnNoYWPKN5IF5/d/3qjEGP8WbT99SYZmMHczT5MGmQU0Tin p+BwpJ4o268lUBRLo70rMT60jkJ3kiOBzFYDNQ7nYrJVNRwdxw84dedDbzv9V8WgMBc6 qzgk4osAl+gxnonIHHNan6DTVlAAeWuZZC2vmpEXNzUxiItvxZxEZgXiJ4mc8EYwMkH/ M4CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sdwGPjsR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r14si12318260pgk.75.2018.12.11.07.56.52; Tue, 11 Dec 2018 07:57:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sdwGPjsR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730061AbeLKPyD (ORCPT + 99 others); Tue, 11 Dec 2018 10:54:03 -0500 Received: from mail.kernel.org ([198.145.29.99]:42588 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730035AbeLKPx5 (ORCPT ); Tue, 11 Dec 2018 10:53:57 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EFCF52087F; Tue, 11 Dec 2018 15:53:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544543636; bh=ICRS+M4pDHlOhDRNm7u6NXo4oVULx7SeigPapauqeP8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sdwGPjsR+cKm/oDruLFXnSmhvGuyc+zQxIR2wbLaeohBFOzqXM37R7hs2butiuCx8 7fEADeohBgnzblr4fFRvANDuIEjaTFy0NCZdMqli7dJ6BBWV8Bk8vXRkZ7HHb3Klyo L7d9USBaqysNw2LAfiC54bqAFJGI7gSMXE56svfg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andy Shevchenko , Vinod Koul Subject: [PATCH 4.14 44/67] dmaengine: dw: Fix FIFO size for Intel Merrifield Date: Tue, 11 Dec 2018 16:41:44 +0100 Message-Id: <20181211151632.616412228@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181211151630.378216233@linuxfoundation.org> References: <20181211151630.378216233@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Andy Shevchenko commit ffe843b18211301ad25893eba09f402c19d12304 upstream. Intel Merrifield has a reduced size of FIFO used in iDMA 32-bit controller, i.e. 512 bytes instead of 1024. Fix this by partitioning it as 64 bytes per channel. Note, in the future we might switch to 'fifo-size' property instead of hard coded value. Fixes: 199244d69458 ("dmaengine: dw: add support of iDMA 32-bit hardware") Signed-off-by: Andy Shevchenko Cc: stable@vger.kernel.org Signed-off-by: Vinod Koul Signed-off-by: Greg Kroah-Hartman --- drivers/dma/dw/core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/drivers/dma/dw/core.c +++ b/drivers/dma/dw/core.c @@ -1064,12 +1064,12 @@ static void dwc_issue_pending(struct dma /* * Program FIFO size of channels. * - * By default full FIFO (1024 bytes) is assigned to channel 0. Here we + * By default full FIFO (512 bytes) is assigned to channel 0. Here we * slice FIFO on equal parts between channels. */ static void idma32_fifo_partition(struct dw_dma *dw) { - u64 value = IDMA32C_FP_PSIZE_CH0(128) | IDMA32C_FP_PSIZE_CH1(128) | + u64 value = IDMA32C_FP_PSIZE_CH0(64) | IDMA32C_FP_PSIZE_CH1(64) | IDMA32C_FP_UPDATE; u64 fifo_partition = 0; @@ -1082,7 +1082,7 @@ static void idma32_fifo_partition(struct /* Fill FIFO_PARTITION high bits (Channels 2..3, 6..7) */ fifo_partition |= value << 32; - /* Program FIFO Partition registers - 128 bytes for each channel */ + /* Program FIFO Partition registers - 64 bytes per channel */ idma32_writeq(dw, FIFO_PARTITION1, fifo_partition); idma32_writeq(dw, FIFO_PARTITION0, fifo_partition); }