Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755015AbbBBIrh (ORCPT ); Mon, 2 Feb 2015 03:47:37 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:36177 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751181AbbBBIrd (ORCPT ); Mon, 2 Feb 2015 03:47:33 -0500 X-AuditID: cbfec7f4-b7f126d000001e9a-f4-54cf3912cb2c Message-id: <54CF39A1.50003@samsung.com> Date: Mon, 02 Feb 2015 09:47:29 +0100 From: Marcin Jabrzyk User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-version: 1.0 To: Daniel Lezcano , Stephen Boyd , Russell King - ARM Linux Cc: Kukjin Kim , Bartlomiej Zolnierkiewicz , linux-kernel@vger.kernel.org, kyungmin.park@samsung.com, linux-samsung-soc@vger.kernel.org, Thomas Gleixner , linux-arm-kernel@lists.infradead.org, Mark Rutland , Chander Kashyap Subject: Re: =?UTF-8?B?UFJPQkxFTTrCoEJVRyAgYXBwZWFyaW5nIHdoZW4gdHJ5aW5nIHQ=?= =?UTF-8?B?byBhbGxvY2F0ZSBpbnRlcnJ1cHQgb24gRXh5bm9zIE1DVCBhZnRlciBDUFUgaG8=?= =?UTF-8?B?dHBsdWc=?= References: <544907D4.1020409@samsung.com> <20141023140644.GI27405@n2100.arm.linux.org.uk> <54494BEE.9020702@codeaurora.org> <544A52B0.9050901@samsung.com> <544EA810.6090502@codeaurora.org> <5450C391.2070007@samsung.com> <54CC2B18.2070809@codeaurora.org> <54CC9EB2.7010409@linaro.org> In-reply-to: <54CC9EB2.7010409@linaro.org> Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrCLMWRmVeSWpSXmKPExsVy+t/xa7pCludDDA4eZ7XYOGM9q8XD9TdZ LOZ9lrXoXXCVzeJs0xt2i02Pr7FaXN41h81ixvl9TBa3L/NaLL1+kcnix5luFovNm6YyO/B4 rJm3htGjpbmHzeNyXy+Tx51re9g83p07x+6xeUm9R9+WVYwenzfJBXBEcdmkpOZklqUW6dsl cGXs+/6cqeC8aMXcC7vYGxi/C3QxcnJICJhIHNj0nhHCFpO4cG89WxcjF4eQwFJGiWevPzFC OB8ZJfa++8wKUsUroCHx6MB7oCoODhYBVYk3l+tBTDYBHYnzqzVAKkQFIiTmH3vNDFEtKPFj 8j0WkDEiQBslNn35wgriMAs8ZJI4Mmc22GZhgc2MEt+28kIsW8Ikse73V3aQBKeAlsTLuyeZ QGxmATOJLy8Ps0LY8hKb17xlnsAoMAvJlllIymYhKVvAyLyKUTS1NLmgOCk911CvODG3uDQv XS85P3cTIyRmvuxgXHzM6hCjAAejEg/vA+5zIUKsiWXFlbmHGCU4mJVEeDUszocI8aYkVlal FuXHF5XmpBYfYmTi4JRqYPSunsFgJH6v92v8/MXBN09s6LyoWPzyY8kTv5Nu008m5B7psGqb 0XusZ9bX7Fipd0wKy949/Ot3PPZ6vNa2wmNPWvMfSu/+JmGb9fraXMVJfVmPYgt4y6bbmGj1 713HrjZvQdGT61tqfI6eyP6y80HZiw2Lt+rdkZxy73Vv03d3LYN6D4ULbX5KLMUZiYZazEXF iQBQhkoZdwIAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2934 Lines: 87 On 31/01/15 10:21, Daniel Lezcano wrote: > On 01/31/2015 02:08 AM, Stephen Boyd wrote: >> Kept meaning to get back to this thread. Have you resolved it? >> >> On 10/29/14 03:38, Marcin Jabrzyk wrote: >>> So I've tried this patch, it resolves one problem but introduces also >>> new ones. As expected the BUG warning is not showing after applying >>> this patch but there are some interesting side effects. >> >> Well that's half good news. >> >>> I was looking on /proc/interrupts output. IRQ for CPU0 have "MCT" name >>> and IRQ for CPU1 has unexpectedly no name at all. >> >> This is pretty confusing. I don't see how the patch could cause this to >> happen. >> >>> After making hotplug cycle of CPU1 I've observed that IRQs attached >>> originally for that CPU are generating on really low count and not in >>> order with IRQ for CPU0. >>> What's more the interrupt for CPU1 is showing to me as being counted >>> for both CPUs, so it's probably not being attached to CPU1. >>> >> >> yeah. Can you give the output of /proc/timer_list in addition to >> /proc/interrupts? It may give some hints on what's going on. It may also >> be interesting to see if irq_force_affinity() is failing. Please check >> the return value and print an error > > Hi Stephen, Marcin, > > can you have a look if the patch [1] fixes this issue ? > > -- Daniel > > [1] https://lkml.org/lkml/2015/1/30/423 > > Hi Daniel, I've checked this patch on the board that have problems and it fixes this issue completely. Everything looks fine after power cycle of the CPU. Best regards, Marcin Jabrzyk >> diff --git a/drivers/clocksource/exynos_mct.c >> b/drivers/clocksource/exynos_mct.c >> index 1800053b4644..3c4538e26731 100644 >> --- a/drivers/clocksource/exynos_mct.c >> +++ b/drivers/clocksource/exynos_mct.c >> @@ -450,6 +450,7 @@ static int exynos4_local_timer_setup(struct >> clock_event_device *evt) >> { >> struct mct_clock_event_device *mevt; >> unsigned int cpu = smp_processor_id(); >> + int ret; >> >> mevt = container_of(evt, struct mct_clock_event_device, evt); >> >> @@ -468,7 +469,9 @@ static int exynos4_local_timer_setup(struct >> clock_event_device *evt) >> if (mct_int_type == MCT_INT_SPI) { >> evt->irq = mct_irqs[MCT_L0_IRQ + cpu]; >> enable_irq(evt->irq); >> - irq_force_affinity(mct_irqs[MCT_L0_IRQ + cpu], cpumask_of(cpu)); >> + ret = irq_force_affinity(mct_irqs[MCT_L0_IRQ + cpu], >> cpumask_of(cpu)); >> + if (ret) >> + pr_err("force failed %d\n", ret); >> } else { >> enable_percpu_irq(mct_irqs[MCT_L0_IRQ], 0); >> } >> > > -- Samsung R&D Institute Poland Samsung Electronics -- 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/