From patchwork Mon Mar 18 07:51:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Packham X-Patchwork-Id: 1057716 X-Patchwork-Delegate: sr@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="IcHeIa3y"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 44N7gn5xxMz9sBF for ; Mon, 18 Mar 2019 18:52:21 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 8602BC21EFD; Mon, 18 Mar 2019 07:52:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 26CD9C21DB5; Mon, 18 Mar 2019 07:52:17 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id D50F5C21DB5; Mon, 18 Mar 2019 07:52:15 +0000 (UTC) Received: from mail-pg1-f195.google.com (mail-pg1-f195.google.com [209.85.215.195]) by lists.denx.de (Postfix) with ESMTPS id 2F2F4C21D8E for ; Mon, 18 Mar 2019 07:52:15 +0000 (UTC) Received: by mail-pg1-f195.google.com with SMTP id h34so10795353pgh.11 for ; Mon, 18 Mar 2019 00:52:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NentvRZfceBb9AAtojrDHWGROpG0yI2O5zFyYqiLyFI=; b=IcHeIa3yivSA2RdT1GlR7ieWBoSXkxK7VVjf9+S/t4M+cEa8Ibb+IOyaa8et75oXKx g38YwMfBd6GVlMG++recCvDbYBGKaWBVxQaAexfZyktIRQ+phJ8trlB3eSoRe/xz+x0j 3hJh4jm844h9oTDt5vDGHs7cbWqa+UnOI4f1ul+FLm86zO0gudgNXWGkSxm/IorIk5vy 5Gpdy9T+DpyBd3y87tN3Wb/6AKGPkh9HlIYXZNCgJ3IhsMKc8JTjZXeQdrIwCNnGaxAf BSRnIVgDulGKsHgEtSrGih+PDHszfbe+7LM86FFdu0KJ9qGMWtHj5xMYuwzYFyyPkCHM Gdhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NentvRZfceBb9AAtojrDHWGROpG0yI2O5zFyYqiLyFI=; b=HEygb8NVxSWx0WV3XlWRbbclXs94kuGpO0zpMZou3o6rGwGZHMuoDERw41fOZ4Nw9u ZEiocwevxvfiyl1Mq6/yW+BTn7PbkI5+z10xRu9azDahm9hBqLJaDZ7pF6qkZ+oWU6/e V+3F3aH2a6sT+tOc/kgLPp5SqMXG2/lwuHnfbC+vxPzSDiTbMK/6QMUm2gA3Y3CDWF+P 9rNm/W7k6eYV4wyaH5rel1da3j8n+l8ZpwLJBeQw0iY3Wq0vdQQdoSEdUJY1e79NBgH8 9V+AxbLxSNPSpCOLVzjBjN1qg3vPWsmxLnkAyVzdSE4AWjLQqa96jEhWyOyre6xHrRI8 J/qA== X-Gm-Message-State: APjAAAUvb6yMDELCrCOLSPJsnWXQ5Fq6xjPuUsSROdvSaQXX+E74trU3 0PRQ05t/52P7A2U5c57q/r90DK9z9f4= X-Google-Smtp-Source: APXvYqwC1u4Y28aIC9wHn7jMjC4SFPwue/pnEAXXMxEJeAvcu4AysgeAl8DOmaRocLfFp32eCn+HBQ== X-Received: by 2002:aa7:9099:: with SMTP id i25mr17999282pfa.102.1552895533475; Mon, 18 Mar 2019 00:52:13 -0700 (PDT) Received: from chrisp-dl.ws.atlnz.lc ([2001:df5:b000:22:3a2c:4aff:fe70:2b02]) by smtp.gmail.com with ESMTPSA id q7sm14083453pfa.119.2019.03.18.00.52.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Mar 2019 00:52:12 -0700 (PDT) From: Chris Packham To: u-boot@lists.denx.de Date: Mon, 18 Mar 2019 20:51:58 +1300 Message-Id: <20190318075158.21784-1-judge.packham@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Cc: Tom Rini , Prafulla Wadaskar , Chris Packham , Joe Hershberger , Luka Perkov , Stefan Roese Subject: [U-Boot] [PATCH v2] ARM: kirkwood: disable dcache for Kirkwood boards X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Prior to commit 93b283d49f93 ("ARM: CPU: arm926ejs: Consolidate cache routines to common file") the kirkwood boards didn't have and dcache support. The network and usb drivers rely on this. Set CONFIG_SYS_DCACHE_OFF in the Kirkwood specific config.h. Reported-by: Leigh Brown Signed-off-by: Chris Packham Reviewed-by: Stefan Roese --- Changes in v2: - expand the comment in config.h to provide more info arch/arm/mach-kirkwood/include/mach/config.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-kirkwood/include/mach/config.h b/arch/arm/mach-kirkwood/include/mach/config.h index fcd903887bff..aea60688c2d3 100644 --- a/arch/arm/mach-kirkwood/include/mach/config.h +++ b/arch/arm/mach-kirkwood/include/mach/config.h @@ -26,6 +26,12 @@ #define CONFIG_KIRKWOOD_EGIGA_INIT /* Enable GbePort0/1 for kernel */ #define CONFIG_KIRKWOOD_RGMII_PAD_1V8 /* Set RGMII Pad voltage to 1.8V */ #define CONFIG_KIRKWOOD_PCIE_INIT /* Enable PCIE Port0 for kernel */ +/* + * Disable the dcache. Currently the network driver (mvgbe.c) and USB + * EHCI driver (ehci-marvell.c) and possibly others rely on the data + * cache being disabled. + */ +#define CONFIG_SYS_DCACHE_OFF /* * By default kwbimage.cfg from board specific folder is used