Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934531AbaGQPlc (ORCPT ); Thu, 17 Jul 2014 11:41:32 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:37762 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933145AbaGQPla (ORCPT ); Thu, 17 Jul 2014 11:41:30 -0400 X-AuditID: cbfec7f4-b7fac6d000006cfe-d5-53c7eea7e88a Message-id: <53C7EE82.6040803@samsung.com> Date: Thu, 17 Jul 2014 17:40:50 +0200 From: Tomasz Figa Organization: Samsung R&D Institute Poland User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-version: 1.0 To: Jason Cooper Cc: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kukjin Kim , Thomas Gleixner , Tomasz Figa , Marek Szyprowski , Bartlomiej Zolnierkiewicz , Lorenzo Pieralisi Subject: Re: [PATCH] irqchip: gic: Fix core ID calculation when topology is read from DT References: <1405610624-18722-1-git-send-email-t.figa@samsung.com> <20140717153236.GS13108@titan.lakedaemon.net> In-reply-to: <20140717153236.GS13108@titan.lakedaemon.net> Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrELMWRmVeSWpSXmKPExsVy+t/xK7rL3x0PNnhz3sxi44z1rBaNSy6z WPQuuMpmsenxNVaLy7vmsFnMOL+PyeLN7xfsFmuP3GW32LxpKrPFql1/GB24PNbMW8PosXPW XXaPhgPnWTzenTvH7rF5Sb1H35ZVjB6fN8kFsEdx2aSk5mSWpRbp2yVwZTQv7GIsmMZbsf/h ItYGxptcXYycHBICJhK/nk9ggbDFJC7cW8/WxcjFISSwlFHi9P42JgjnM6PEqTtX2EGqeAW0 JJatvsYGYrMIqEqcO3wbLM4moCbxueERWJwfqGZN03WgqRwcogIREo8vCEG0Ckr8mHwPbJmI gLrEuc2tYMuYBb4wSVye/AEsISwQJXH6dRPYHCGBIolbDVcYQWxOASuJ59sngO1iFtCR2N86 jQ3ClpfYvOYt8wRGwVlIdsxCUjYLSdkCRuZVjKKppckFxUnpuYZ6xYm5xaV56XrJ+bmbGCHx 8mUH4+JjVocYBTgYlXh4Oz8fCxZiTSwrrsw9xCjBwawkwpt9/3iwEG9KYmVValF+fFFpTmrx IUYmDk6pBsbUCw2T7AXe1iYZLnqbdOzAzAdPJ5R6npLN/LNCQYDzeL19+cQjlm/inx3TW37x T8LB6ed2zl+4aoG4YD6bwsH5LqEp25bYrKl9orNrsW9d+uw3T/aaFN66MGvFjRO7FPMPVvhf XhBi6bRnbsaM+oNHniVeO8z6udEp+CwzR+e3rh2i2fNNmXaFKbEUZyQaajEXFScCAMBw+/F1 AgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jason, On 17.07.2014 17:32, Jason Cooper wrote: > On Thu, Jul 17, 2014 at 05:23:44PM +0200, Tomasz Figa wrote: >> Certain GIC implementation, namely those found on earlier, single >> cluster, Exynos SoCs, have registers mapped without per-CPU banking, >> which means that the driver needs to use different offset for each CPU. >> >> Currently the driver calculates the offset by multiplying value returned >> by cpu_logical_map() by CPU offset parsed from DT. This is correct when >> CPU topology is not specified in DT and aforementioned function returns >> core ID alone. However when DT contains CPU topology, the function >> changes to return cluster ID as well, which is non-zero on mentioned >> SoCs and so breaks the calculation in GIC driver. >> >> This patch fixes this by masking out cluster ID in CPU offset >> calculation so that only core ID is considered. Multi-cluster Exynos >> SoCs already have banked GIC implementations, so this simple fix should >> be enough. >> >> Reported-by: Lorenzo Pieralisi >> Reported-by: Bartlomiej Zolnierkiewicz >> Signed-off-by: Tomasz Figa >> --- >> drivers/irqchip/irq-gic.c | 5 ++++- >> 1 file changed, 4 insertions(+), 1 deletion(-) > > iiuc, this was introduced by: > > db0d4db22a78d ARM: gic: allow GIC to support non-banked setups > > and so should be for v3.3 and up, correct? Could be, although there was and still is no topology data specified in DT for affected Exynos SoCs. The need for it showed up just recently, so I'm not sure this is a regression to fix in older kernels. Best regards, Tomasz -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/