Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2774326imj; Mon, 11 Feb 2019 08:15:50 -0800 (PST) X-Google-Smtp-Source: AHgI3Ibr0wcnF/da46KNOQRqpBkYNxYzskvBYd3STbo4929lh5srB4WM/MCAmYT3rBSFG5GTzsB2 X-Received: by 2002:a63:fa51:: with SMTP id g17mr29379685pgk.66.1549901750375; Mon, 11 Feb 2019 08:15:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549901750; cv=none; d=google.com; s=arc-20160816; b=rlKyh1OiLtdYGMfsHQOz8MfbcE/qW670EXl5r4UjAPQzzCACrydJDuEIfmIMVUqWKd lCw3l+KSue+NQVAAEXrOl79O+sLDOB8MpWo/DL3nW2bognLOuMdM0UO0MV4GKzJlyJ5s oJLOXTKu2VeQj97v8Y4CCRn+RwxNkN48p8hNplfdttFlLUf7ptnZpUc6TwPcZ8mbhqIY SALcwOxOykveDZhcs4588Rt6IrlKBc8NEbQizmde3BrfiqfJ/k1c8QRf4LdFlnjwCdwB nA/bNzqC+cCUmFh5Yp975HsxWYd1zuHw/ye6zmuYgkH+dGlDaf32D1rQML0J2Kb8Dgzs fGTw== 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=+aoI/ophoAoJJtY8gX9XD8v+V2KukNXAFkjR2n/Rqk4=; b=cPVJv4K7fuVzlDVroTZu2pWR2vQGn0RjvHlprj42Pm2iR1KBtwDqv5S3PxuWxdnRc0 oG/rWJLn7klki4Mp9RgUgNlAvQ0fUv9FExd7DWnG1S8rRhdM5r2hgLZatiIlTh3GDGPf r8qn872Dep/1ThTEiPn/yi15Uw9N8cR6h07PzpyCY6xmWVP0Cpv8oqdSmV0ZQ8L2zlVo hVfUFnqWPnQYJn22vPAbO1qK8ogkmRSI09zWzo9BUD/MZuyz+NlyCQ3y2QgOAiAvho8w wSMN0jyul2l4pX2tshNYoDUtobnPGC7AMuLZaW81/ge4U2ahAHYf15O+pCVfuZPjxSJc EBGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IIA45Q03; 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 s14si2866450plq.159.2019.02.11.08.15.25; Mon, 11 Feb 2019 08:15:50 -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=IIA45Q03; 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 S1728676AbfBKOWJ (ORCPT + 99 others); Mon, 11 Feb 2019 09:22:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:55006 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727375AbfBKOWH (ORCPT ); Mon, 11 Feb 2019 09:22:07 -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 0642E20838; Mon, 11 Feb 2019 14:22:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549894926; bh=acPA05ksUwwd+JZIXw0ObUm/pHn8Vx/V8X+9UoydjqM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IIA45Q03xMqHGZFTg2tdZ3p2eg/gEuJrzo++GDhRSUkspnrF432LrITu6p82iuHum 10HCzPCVkMqYmTnvvM9Ge7gRjqBb44l+ZqOjKY1NK/to/ySDCeFXuDCLXjvDcHiPBc vFfNhXjfyOLugSBCmpnKVNiePuOiD3/pLhwd0fhk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Paul Burton , linux-mips@linux-mips.org, Sasha Levin Subject: [PATCH 4.20 033/352] MIPS: Boston: Disable EG20T prefetch Date: Mon, 11 Feb 2019 15:14:20 +0100 Message-Id: <20190211141848.446543525@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141846.543045703@linuxfoundation.org> References: <20190211141846.543045703@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.20-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 5ec17af7ead09701e23d2065e16db6ce4e137289 ] The Intel EG20T Platform Controller Hub used on the MIPS Boston development board supports prefetching memory to optimize DMA transfers. Unfortunately for unknown reasons this doesn't work well with some MIPS CPUs such as the P6600, particularly when using an I/O Coherence Unit (IOCU) to provide cache-coherent DMA. In these systems it is common for DMA data to be lost, resulting in broken access to EG20T devices such as the MMC or SATA controllers. Support for a DT property to configure the prefetching was added a while back by commit 549ce8f134bd ("misc: pch_phub: Read prefetch value from device tree if passed") but we never added the DT snippet to make use of it. Add that now in order to disable the prefetching & fix DMA on the affected systems. Signed-off-by: Paul Burton Patchwork: https://patchwork.linux-mips.org/patch/21068/ Cc: linux-mips@linux-mips.org Signed-off-by: Sasha Levin --- arch/mips/boot/dts/img/boston.dts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/mips/boot/dts/img/boston.dts b/arch/mips/boot/dts/img/boston.dts index 65af3f6ba81c..84328afa3a55 100644 --- a/arch/mips/boot/dts/img/boston.dts +++ b/arch/mips/boot/dts/img/boston.dts @@ -141,6 +141,12 @@ #size-cells = <2>; #interrupt-cells = <1>; + eg20t_phub@2,0,0 { + compatible = "pci8086,8801"; + reg = <0x00020000 0 0 0 0>; + intel,eg20t-prefetch = <0>; + }; + eg20t_mac@2,0,1 { compatible = "pci8086,8802"; reg = <0x00020100 0 0 0 0>; -- 2.19.1