Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3711086imu; Mon, 28 Jan 2019 09:26:34 -0800 (PST) X-Google-Smtp-Source: ALg8bN4Wb7quFI36yg3WxILT13/zxBqeAOPoJiuNesAE4dBjt3gPQlNqiMh/E7ra8sdIls4+EiM+ X-Received: by 2002:a63:df13:: with SMTP id u19mr20612921pgg.294.1548696394800; Mon, 28 Jan 2019 09:26:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548696394; cv=none; d=google.com; s=arc-20160816; b=y6bf1jGmJ3SGHHnLVazIWAGixSSH9IEe4FZI82m9sPSBBLcqdWZ2d1GhGL+3GCWKvC LjO2RgsVLV1hmK+6KTwY9Y2AV2j/jhC7idis6mnIoew9w/vY1iERzjuN19yGKNwtGsrc l0bgmzRJCnBK9IZZ1Ldtw9Mjom5quXVouGDzsJcZiHRm9Woly8lrpmluTHWRhfFUO24u 2KJ/6zy7xC85T/ju1Uh6wo16pXEj5RJMWpY210IP6MZum1z5/fvY2GU7s++FL6x/2ygf qxpIQziiXhQvCN47RRlsbHkB8b44NyHb2UDIhohnnsvFkbFwXNMh5/JwI2jDKz/tsZud ADHQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=zSKKRQZplR/cA2Sq0/IAURZ3Alv9UYTCsMasFqEf/xA=; b=WmuB40MJX5tD4gNQA2WxLlamoXDkkQ22jvd8SE8VaeQFBBEY/z2hjMUHkE8sNOjSRF gdWh4+pQC1mwzT+hgpL+LAysJqJtpZBkWFoJKECB6FpDJn/cWx0Lb0bVA0hX9d9CXQY4 zn81V43bNyJrWWzLiccdUBSAJKCmsceCFe6jY/nG88rdX5bLLy1RuVE7Agh07rsOac4X hGhRlEnA05IP4eRMPaHr/7jYDuwSKAHU9QAIq+gH3aQ3DCO7+2oW7hJm5as4cUDuInxq uzesXlc2Gub1i2Z2r+YkNzgTt45q5IHwtz25bEauWsfM3vMK2ZpoJsSbnSZiLzM0x+Hc fpJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="SHC04QZ/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z123si28413608pfb.104.2019.01.28.09.26.19; Mon, 28 Jan 2019 09:26:34 -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="SHC04QZ/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730743AbfA1R0M (ORCPT + 99 others); Mon, 28 Jan 2019 12:26:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:46062 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730840AbfA1QAq (ORCPT ); Mon, 28 Jan 2019 11:00:46 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B593F2175B; Mon, 28 Jan 2019 16:00:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548691245; bh=XHvGrq9LUVK3VhEp6c72qxwXepi97IZhYICnHguuWkc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SHC04QZ/Xt6uiqaYq1+c6ae41+nPvb4rsYdnya/vXNd+X+CXPCWk6qQCJ2uE9J4vW NcsWpn0xY14E0CCsm6IooUEWZTU3BViMgciDtGYnnJOhLjdPm4U9Lh7zLoql+/IVf3 7palLnwIjaUzAScVGPemy7tWj1M1Moe6ND0+lBMM= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Paul Burton , linux-mips@linux-mips.org, Sasha Levin , linux-mips@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 031/258] MIPS: Boston: Disable EG20T prefetch Date: Mon, 28 Jan 2019 10:55:37 -0500 Message-Id: <20190128155924.51521-31-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190128155924.51521-1-sashal@kernel.org> References: <20190128155924.51521-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Paul Burton [ 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