Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2465180imj; Mon, 11 Feb 2019 03:23:46 -0800 (PST) X-Google-Smtp-Source: AHgI3Ia2YKsiXLkLqXo9ySZpEPdvFlzf4ri6FLLDTHAhl63mSd1+58yBbh992cKhQyNejkOQld/N X-Received: by 2002:a63:bf4c:: with SMTP id i12mr29147713pgo.382.1549884226303; Mon, 11 Feb 2019 03:23:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549884226; cv=none; d=google.com; s=arc-20160816; b=037Wu/RozOMR1VR2cgt85zffVvXVV7ADwoJ17gGzrWk4NyIeDk26Ns/rtb+IGI1Wkg f+1vZzVe9OVVG06Dd1cXA46kyAagl/pTTllnaixVUxOuBI3cE9ygml/f+mOCwWtB6IQ0 OzdESGgWxRI64HQlO4+OMaBN6837LzLaZNoWSH8EhsOQMWGs+Dc8Pa5m/FwW4HYkf+qy WPhmGWTR03xoSrZjXz9A+EKGqzaqTjaqd6BCetxKgcQkgT2zAOj1FaW4iM3foZm45cGp miuF5eMah0WYo/Yo2n3waZDusnfR6MRKt3gva1xJ54puh8BxujL05nJBRm5sAqRIEf1+ yE1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=1j8bbri+HycsAw075of8V538dATVxD2rYwR0snuO0hQ=; b=FdlvOTfaskyo1YeGkIJ+kh1QiTMru4eWRbtp2z8g5xcpnKuGp1m47aMjliKFVnGKwO my5FNXOnVmeurc3eyrgOo2pijQhraXtdyywcRJsNpHzpNyBCv+kpg/vG7TWlI9gY5Lsx r9BhODNYhsl9CktKTD0vKn4VjltHkZsViCXecgy+eBHXN9FcSeAxYWuXVcCK1yseLlZd FZnxYhJ+LlH9RN4vuqCJPMjxUS0J707LAlzwZz9O7KocY2KZ2lCnMmX81OD6p5h7CVLH NMe8/E67KzYgEREyWZT6ldeSLzpW4vLw7yLZZPEaSkgWHPrRvt/Di61Ztwg5w5om4UG8 i+CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HZ68djD0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i90si10477095pli.135.2019.02.11.03.23.30; Mon, 11 Feb 2019 03:23:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HZ68djD0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726228AbfBKLXZ (ORCPT + 99 others); Mon, 11 Feb 2019 06:23:25 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:40457 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726046AbfBKLXY (ORCPT ); Mon, 11 Feb 2019 06:23:24 -0500 Received: by mail-wm1-f67.google.com with SMTP id q21so16667642wmc.5 for ; Mon, 11 Feb 2019 03:23:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=1j8bbri+HycsAw075of8V538dATVxD2rYwR0snuO0hQ=; b=HZ68djD0khJp7NqjFVusFF7uYDgrF1G9z0vyIMxB/DAx4aDZ2JjkywosAfGts5cceW +SVb4+RH58RAoiVt8rznPdRKGDVtoUlWnXgU7mK628VyABLx4bmpQl9yWo4Zd+2bgWgr 5zDVR7pSFA7Gk/wJEJzgdagoEmzR5efLefBq/1fCKd/W6RyCYDHXLO98RH4zQemg2uI/ oktf8nhGnl61Gq8EIvYlucYmbQH2EpDZmuFXbR6Wr9DSWyQ/sLIMdPwDZq68lZJAitGS tTk47U2e7eihwe8BJzH65uOvOi7YfDdxcQcJuxeXwELHQOsv9ffscw7nssEEpJJUr1Os gHiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=1j8bbri+HycsAw075of8V538dATVxD2rYwR0snuO0hQ=; b=AbkgHwYInUly5yRi91rf0hIVryMX4JNlqhyzIPJtooO8pzLvOBu6wICeDartku2hyA PPSa92ELR1I9FUZnnzJRjReXN031MtudXVK5D2K34ZBMtIm+IRkalHWkc7ktSqcWTl6R fVqDgA3nZv05wP8IZE0LxxV461qgoeljKp2ozcrKI0agcubzFc/bGzEQymwZ6oumO3/s jfoJVHTzxZlLqd8soAiZU9utGyhgEW/Zuw+Gj2inv0jyGzkIzqADPT0aao6UwhxfSNpk qJnEuuZ7Mot42B2+HUE/XzJFx4oRoZWT+N5d/jO0J0fto0kWGwPKvQenirETVI+Jre35 6D2A== X-Gm-Message-State: AHQUAuZl9FQKFi9jXGiMvu21JtvjAN18ldPzUxAxRL6FhcA8oVQb+sAm 3Sy+x3EGr2puq0XDBhheLC8iAQ== X-Received: by 2002:a5d:4e8c:: with SMTP id e12mr17846964wru.21.1549884202298; Mon, 11 Feb 2019 03:23:22 -0800 (PST) Received: from [192.168.0.41] (13.50.92.92.rev.sfr.net. [92.92.50.13]) by smtp.googlemail.com with ESMTPSA id o18sm14814644wrg.40.2019.02.11.03.23.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Feb 2019 03:23:21 -0800 (PST) Subject: Re: [PATCH 0/2] Subject: [PATCH 0/2] clocksource: exynos_mct: Clear timer interrupt when shutting down To: Marek Szyprowski , Stuart Menefy , linux-samsung-soc@vger.kernel.org, Thomas Gleixner , Kukjin Kim , Krzysztof Kozlowski , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20190210225114.20110-1-stuart.menefy@mathembedded.com> From: Daniel Lezcano Message-ID: Date: Mon, 11 Feb 2019 12:23:20 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/02/2019 08:14, Marek Szyprowski wrote: > Hi Stuart > > On 2019-02-10 23:51, Stuart Menefy wrote: >> When debugging suspend problems on Exynos 5260, I had a large number >> of debugging prints going to the serial port after interrupts >> had been disabled but before the timer interrupt was shutdown. This >> was long enough for a timer tick to occur, but as interrupts were >> disabled the ISR didn't run, and so the interrupt wasn't cleared. >> Later when the timer was shutdown the interrupt was left asserted and >> so the wfi at the heart of the suspend code didn't wait, causing >> the suspend to fail. >> >> Currently the code which stops the timer when it is on one-shot mode >> and the interrupt occurs is in exynos4_mct_tick_clear(), meaning if we >> called this from the shutdown code exynos4_mct_tick_stop() could be >> called twice. So first restructure the existing code, so the check for >> one-shot mode and stopping the timer is moved to the ISR, leaving >> exynos4_mct_tick_clear() just clearing the interrupt flag. >> >> Once this has been done simply call exynos4_mct_tick_clear() from >> set_state_shutdown(). > > This also fixes mysterious suspend failures on Odroid XU3/XU4/HC1 :) > > Tested-by: Marek Szyprowski Applied. Shall I add the stable@ tag? -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog