From patchwork Tue Apr 22 08:28:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sekhar Nori X-Patchwork-Id: 28767 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qg0-f72.google.com (mail-qg0-f72.google.com [209.85.192.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F2E0D203C3 for ; Tue, 22 Apr 2014 08:28:55 +0000 (UTC) Received: by mail-qg0-f72.google.com with SMTP id q107sf9862315qgd.11 for ; Tue, 22 Apr 2014 01:28:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=0dO8crSTAQR+3Dq6uXn8InJ853IUp30w+HZlQYUoPG4=; b=BM6LFwp9D0fxxWH27SfVJKpess5sU4jcjNanIU2PrvO2wpec7KjiNFgpZ3MfDcNjoC DKeiUmkNdT9s8mA8RGhW/wKBCUjzdJ/W3gVr3re9LXgiM9uWfQF2EQsmkECMX6PlrGhm 2emN44Uc3LmS7x8t3iDM4eNbGKt0AxFYqM4YIcW7g+FH+IrGbAxWmEyYKXfAaJKOXF/L X7LU3JGe1IXNLBOLSrSwUVzhZdPW7X0SvWn4tHD3B/0US8k/f5TkKm/TEVs9XQjlT3s/ dMt6+TWSJJ6sKAvMhG8XC32GhC0dOj9rJKhdzzi5XTCfmu7JStiCsZPLLAjHDv5Inwp6 oPvw== X-Gm-Message-State: ALoCoQlVvrLs+gyO1dVsbbLTX72bWqJAMJ9DKDqVWxVheu8vAnpVu0QyTmYiIZ/CKbrY9yR0fy5F X-Received: by 10.58.77.204 with SMTP id u12mr20128356vew.24.1398155335703; Tue, 22 Apr 2014 01:28:55 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.40.74 with SMTP id w68ls756094qgw.53.gmail; Tue, 22 Apr 2014 01:28:55 -0700 (PDT) X-Received: by 10.52.144.42 with SMTP id sj10mr28985923vdb.19.1398155335580; Tue, 22 Apr 2014 01:28:55 -0700 (PDT) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id c6si6282342veo.108.2014.04.22.01.28.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 22 Apr 2014 01:28:55 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.175; Received: by mail-vc0-f175.google.com with SMTP id lh14so2145179vcb.6 for ; Tue, 22 Apr 2014 01:28:55 -0700 (PDT) X-Received: by 10.52.253.75 with SMTP id zy11mr30633179vdc.10.1398155335491; Tue, 22 Apr 2014 01:28:55 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp6218vcb; Tue, 22 Apr 2014 01:28:55 -0700 (PDT) X-Received: by 10.66.142.201 with SMTP id ry9mr42633380pab.14.1398155334732; Tue, 22 Apr 2014 01:28:54 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zt8si22316925pbc.445.2014.04.22.01.28.54; Tue, 22 Apr 2014 01:28:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753024AbaDVI2p (ORCPT + 5 others); Tue, 22 Apr 2014 04:28:45 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:40321 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754040AbaDVI2k (ORCPT ); Tue, 22 Apr 2014 04:28:40 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s3M8SDRI003391; Tue, 22 Apr 2014 03:28:13 -0500 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s3M8SDNt021533; Tue, 22 Apr 2014 03:28:13 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.174.1; Tue, 22 Apr 2014 03:28:13 -0500 Received: from psplinux063.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s3M8S6ge016954; Tue, 22 Apr 2014 03:28:11 -0500 From: Sekhar Nori To: Tony Lindgren , Russell King CC: Santosh Shilimkar , Linux OMAP Mailing List , Linux ARM Mailing List , Sekhar Nori Subject: [PATCH v3 2/3] ARM: OMAP2+: L2 cache: git rid of redundant cache replacement policy setting Date: Tue, 22 Apr 2014 13:58:02 +0530 Message-ID: <8bcc6d587cd1f320b59806dbdee9018b76c04e4f.1398149526.git.nsekhar@ti.com> X-Mailer: git-send-email 1.7.10.1 In-Reply-To: References: MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: nsekhar@ti.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , L2 cache initialization for OMAP4 redundantly sets the cache policy to Round-Robin. This is not needed since thats the PL310 default anyway. Removing this reduces the number of platform specific aux control settings. Signed-off-by: Sekhar Nori --- arch/arm/mach-omap2/omap4-common.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-omap2/omap4-common.c b/arch/arm/mach-omap2/omap4-common.c index 1230975..c41ff8b 100644 --- a/arch/arm/mach-omap2/omap4-common.c +++ b/arch/arm/mach-omap2/omap4-common.c @@ -206,16 +206,15 @@ int __init omap_l2_cache_init(void) return -ENOMEM; /* 16-way associativity, parity disabled, way size - 64KB (es2.0 +) */ - aux_ctrl = L310_AUX_CTRL_CACHE_REPLACE_RR | - L2C_AUX_CTRL_SHARED_OVERRIDE | + aux_ctrl = L2C_AUX_CTRL_SHARED_OVERRIDE | L310_AUX_CTRL_DATA_PREFETCH | L310_AUX_CTRL_INSTR_PREFETCH; outer_cache.write_sec = omap4_l2c310_write_sec; if (of_have_populated_dt()) - l2x0_of_init(aux_ctrl, 0xcd9fffff); + l2x0_of_init(aux_ctrl, 0xcf9fffff); else - l2x0_init(l2cache_base, aux_ctrl, 0xcd9fffff); + l2x0_init(l2cache_base, aux_ctrl, 0xcf9fffff); return 0; }