Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4FC48C433EF for ; Wed, 1 Jun 2022 13:51:34 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 22E8884287; Wed, 1 Jun 2022 15:51:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="UKCTEeVt"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C51C482169; Wed, 1 Jun 2022 09:57:40 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 49EB482169 for ; Wed, 1 Jun 2022 09:57:36 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=dinesh.maniyam@intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654070256; x=1685606256; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=sUWRSV6txqVMeBuj1XUIfHn037JwQb0Fq0I+I+CGjOI=; b=UKCTEeVta5rI+uqYsOXTLAVbNRduF1H5fggEi1nqsEBxuSndlzMumyyj cxBlz49B2QE8GSNPzDnAmle62q2y7sAvTjkIpS6hMwuLAYesCC6HOsK1K efETj6gQ9CBZoq2G4WU98Jb24AWBqyOpxFRgnm8tRsGLVZbgM3DSYTXwg SGC6/mkYXS8ZtSU2x1eTA3bgF/jVcOpB6Oba8pl67CE3YnIGWXall9gIw QH3abiwXcxK+JZG+5VAqvIQhjP/QrchjUIsdJzjJfsVM4Xdb3AS64bWd2 f4MLqju1VuL8Jdi3GUmS+rfL34PSHNP1lr0pF5JbfmcWlQTlESjQ0mekw w==; X-IronPort-AV: E=McAfee;i="6400,9594,10364"; a="263145867" X-IronPort-AV: E=Sophos;i="5.91,266,1647327600"; d="scan'208";a="263145867" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jun 2022 00:57:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,266,1647327600"; d="scan'208";a="562695754" Received: from pglc00514.png.intel.com ([10.221.239.206]) by orsmga002.jf.intel.com with ESMTP; 01 Jun 2022 00:57:32 -0700 From: dinesh.maniyam@intel.com To: u-boot@lists.denx.de Cc: Marek Vasut , Simon Goldschmidt , Tien Fong Chee , Kok Kiang , Yau Wai , Sin Hui , Raaj , Dinesh Subject: [PATCH] drivers: cache: ncore: Disable snoop filter Date: Wed, 1 Jun 2022 15:57:25 +0800 Message-Id: <20220601075725.32435-1-dinesh.maniyam@intel.com> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Wed, 01 Jun 2022 15:51:12 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean From: Dinesh Maniyam There is hardware bug in NCORE CCU IP and it is causing an issue in the coherent directory tracking of outstanding cache lines. The workaround is disabling snoop filter. Signed-off-by: Dinesh Maniyam --- drivers/cache/cache-ncore.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/cache/cache-ncore.c b/drivers/cache/cache-ncore.c index 3beff780de..117d2b91ab 100644 --- a/drivers/cache/cache-ncore.c +++ b/drivers/cache/cache-ncore.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 /* - * Copyright (C) 2019 Intel Corporation + * Copyright (C) 2019-2022 Intel Corporation * */ #include @@ -81,8 +81,8 @@ static void ncore_ccu_init_dirs(void __iomem *base) hang(); } - /* Enable snoop filter, a bit per snoop filter */ - setbits_le32((ulong)CCU_DIR_REG_ADDR(base, DIRUSFER, i), + /* Disable snoop filter, a bit per snoop filter */ + clrbits_le32((ulong)CCU_DIR_REG_ADDR(base, DIRUSFER, i), BIT(f)); } } -- 2.25.1