Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2665134imj; Mon, 11 Feb 2019 06:42:07 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ3itak/eK5KKC9eaVHFjnNozmri0CzFG0GP4NJIK1VuMlM8gsFzr3393ggszXuyuciOWhI X-Received: by 2002:a62:9657:: with SMTP id c84mr37712894pfe.77.1549896127475; Mon, 11 Feb 2019 06:42:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549896127; cv=none; d=google.com; s=arc-20160816; b=LZz/DJ4kx55r+nTfbPKcnZgihN7DhhG/sqYdLwe4+Rqt1u03g4Z3lzeC95kPU9miem GgxJlBNLFC4Z2NQ/9kCQniJbeKCpxYdyx43J1lq5MkCMtfwDqwImjAXp9En5KsOsLV02 TMn1JDQrSpMAGoVofo3BCa8FfPynVTbYNI6599ilabQX4YVGdJqbfQhWvnTADBlpA56N qVXro/TNLgzeamTgBisiG3sXnW6VJ6K0lh4k4DM0u2jSx0/HK4pZyQ21GdP80en4uj0y nvc/Cycyq4V+qz8psSSirnsInbIr9yMmrOv0pUj0jorKXiYQErfx0dw5MrEIOPe11pnR +JkQ== 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=/ejSb+5V75XvgWPM/fZDtxmvbdGf/Q88iycZeQhUCuo=; b=sk9gt1axuuOBm2yXrYMQtISzlUPi3R+SkXitbG52IY5nKaaqFNGklM8Uq6vVvrJzI8 X6I82RGgORlzKGLc8xXboWAjzyVUunvI0i4ydWBnc8+RCRr9uq6TZOK1TJhOcM2dIV29 EANEszyxk1UvOApVEOXAxFzAn4JgJv/2yY3of+q/AN2/6b0aCy7i1OczLU7gBT/KxamW QyKuFsyFqZECZ2QJL7EhxPz513TAfOCG7qKt8FBnpnPvrfXev6X1IDnk2eDRNHhiZsez eylJSJvazbvJDwlRcDmYBnXsig9gfcl+P39miFhcvXm+COpRUUhqxIOdA3HpFv/HJCpw kPLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wtTX0xQR; 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 y123si9567926pfy.18.2019.02.11.06.41.50; Mon, 11 Feb 2019 06:42:07 -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=wtTX0xQR; 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 S1732146AbfBKOk4 (ORCPT + 99 others); Mon, 11 Feb 2019 09:40:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:51988 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732096AbfBKOky (ORCPT ); Mon, 11 Feb 2019 09:40:54 -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 67DF22082F; Mon, 11 Feb 2019 14:40:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549896053; bh=PydW0YDZknXimo8mvWD/NZEe7P9K2HpG6x63754TK5U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wtTX0xQRcrR/iqPhDAbgalQdVFJvGoylkqxtimopGReJIlZoBuqG9201nZdP0e6ft BLXhJoL66T3+kb5AVg97gcMN3oZZKzDOySig1Sll+LfTDCC7opeRJhsvmA2ZTWIhzr hLg+gqH4DnNFs5SgIjhvJzj+IM1ZneCk1hRElp+k= 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.19 028/313] MIPS: Boston: Disable EG20T prefetch Date: Mon, 11 Feb 2019 15:15:08 +0100 Message-Id: <20190211141855.302860400@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141852.749630980@linuxfoundation.org> References: <20190211141852.749630980@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.19-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