From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754449AbbJPT5e (ORCPT ); Fri, 16 Oct 2015 15:57:34 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:50962 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753150AbbJPT5c (ORCPT ); Fri, 16 Oct 2015 15:57:32 -0400 MIME-Version: 1.0 In-Reply-To: <1442944788-17254-1-git-send-email-rric@kernel.org> References: <1442944788-17254-1-git-send-email-rric@kernel.org> Date: Fri, 16 Oct 2015 14:57:30 -0500 Message-ID: Subject: Re: [PATCH] arm64: Increase the max granular size From: Timur Tabi To: Robert Richter Cc: Catalin Marinas , Will Deacon , Robert Richter , Tirumalesh Chalamarla , lkml , "linux-arm-kernel@lists.infradead.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 22, 2015 at 12:59 PM, Robert Richter wrote: > From: Tirumalesh Chalamarla > > Increase the standard cacheline size to avoid having locks in the same > cacheline. > > Cavium's ThunderX core implements cache lines of 128 byte size. With > current granulare size of 64 bytes (L1_CACHE_SHIFT=6) two locks could > share the same cache line leading a performance degradation. > Increasing the size fixes that. > > Increasing the size has no negative impact to cache invalidation on > systems with a smaller cache line. There is an impact on memory usage, > but that's not too important for arm64 use cases. > > Signed-off-by: Tirumalesh Chalamarla > Signed-off-by: Robert Richter Acked-by: Timur Tabi We need this patch, because on our silicon, CTR_EL0[CWG] set to 5, which means that setup_processor() complains with this warning: cls = cache_line_size(); if (L1_CACHE_BYTES < cls) pr_warn("L1_CACHE_BYTES smaller than the Cache Writeback Granule (%d < %d)\n", L1_CACHE_BYTES, cls); -- Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.