Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1852757rwi; Sat, 15 Oct 2022 04:16:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4QbD72UCa2RnJqcAu+MxjGZDKu0K6YD7ZRF/257gj3GrQ/g3iRCq42r2ZO31N8hQexUVD0 X-Received: by 2002:a63:5322:0:b0:44e:11f7:b414 with SMTP id h34-20020a635322000000b0044e11f7b414mr2169945pgb.226.1665832585352; Sat, 15 Oct 2022 04:16:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665832585; cv=none; d=google.com; s=arc-20160816; b=k0QBAvcTsnfVniT7nBfbG1SpMwIGgauFxCu/IkpCFbaS5KUF77ABmrjG/qLM37jx2J DSdqWshUw/a+g4cjnNMEyp+Gl/5DZuc2vz+pRKoe2mQ4qjtZ4373yuWWFfu2P1A1yZ+G ovxW7zfSM8aBHfEq0IzHucgdz95/W1213DOeYe86zPzLUrXX2c15VoAWGXzahRUw5BXL u0LFEXzxg0GDBp+rLm+Ja+uukBhcRM2OwBo42jHSPwc7O5il+hkl03tcWlRbLde7OG9e +EhxarQMcyMemLU8FdJKMa7JOkGPT+OFAo/xjPmEIi96UB76pJMgAF19MrWA0rEwLZnm DYCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=O2r2z/z0hDoo2fh70QGYrUogL6TlcVgEKV7x78z66rk=; b=rET7VlT5Eke70YHydLB7K4P+4eJvb7Yy4/UChbSXgwhmrLuEqM0oluwNMfwhLS9pPi EDqkkObwvjrgakjFumcbsy5zGoT7uzCENYYhHVd2T3RJu+HdT/JE9eB+LEF8M3dZOj6/ YhSsvEuxmknarHmWDe+pb34JOV04uVM0Mr4R2R9ZEM8KujGwrP2WQmywk/LsYw4CyUdz xu6VYI2cQ+lmNrm7VCWuOv519up63VD8tjbzkbXkP5kACVRH6h8FshFeoGGi4DEbLhFZ pLfyPO7zplB5eiqZfXYhO/f/WyYXIoJmYFNcqtwmEpaV3hvtPlME4CY5l2YR+nbY6SKf hBJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="wZ3A/EFb"; dkim=neutral (no key) header.i=@linutronix.de header.b=Aduh0A0c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d1-20020a170902cec100b00176be2315dcsi7040202plg.260.2022.10.15.04.15.53; Sat, 15 Oct 2022 04:16:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="wZ3A/EFb"; dkim=neutral (no key) header.i=@linutronix.de header.b=Aduh0A0c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229694AbiJOJE6 (ORCPT + 99 others); Sat, 15 Oct 2022 05:04:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229679AbiJOJEy (ORCPT ); Sat, 15 Oct 2022 05:04:54 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B9F51AF21 for ; Sat, 15 Oct 2022 02:04:50 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1665824688; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=O2r2z/z0hDoo2fh70QGYrUogL6TlcVgEKV7x78z66rk=; b=wZ3A/EFb4G6uurDA8QKXiizxdoxYR3Jam1s3WZDYV9AObyHEPUyugqKotgGPGlttpyyqbZ 00CYpl+9rAbhzgpo5OEbXraxPEry/QZhxbNDaQXpaN9HXZ6qzRd0FVBn8P43g8E7BmSENn 1jln89FlJtjTWT78Ie4yq6ppn+aa0g9pXTGAg+CggXj0qaq1QSor9+tCjlxixo2J/6RqT5 XGHvewENPpjNtEzTJiWGAF+U9W6OXxpHldZoJ/3rcjIeeMMLuEWPWMj83FusJ0vVWoKPUM /XKixrvwt8PUouDljQLgmXXAkkTZesN2jyn40BPx2Gm36cCscOkcBIZvItMVag== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1665824688; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=O2r2z/z0hDoo2fh70QGYrUogL6TlcVgEKV7x78z66rk=; b=Aduh0A0cNaJ8nQRyYpvXMx8W9EFOUe8/aIlhdsZRrdSd91ovdKPL4JuxWEfVfJ6qnyXeSn IAeKSJxHo4/48yAg== To: Victor Hassan , daniel.lezcano@linaro.org, wens@csie.org, jernej.skrabec@gmail.com, samuel@sholland.org, maxime@cerno.tech Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: Re: [RESEND] clocksource: sun4i: Fix the bug that tick_resume stucks In-Reply-To: <20221009032507.39145-1-victor@allwinnertech.com> References: <20221009032507.39145-1-victor@allwinnertech.com> Date: Sat, 15 Oct 2022 11:04:47 +0200 Message-ID: <87zgdxa24w.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 09 2022 at 11:25, Victor Hassan wrote: > Currently syscore_resume() will stuck on tick_resume(). This lacks a clear explanation of the problem, i.e. WHY the current implementation is not working. > Fix this by changing `.tick_resume` from > sun4i_clkevt_shutdown() to a new function sun4i_tick_resume(). > > -static struct timer_of to = { > - .flags = TIMER_OF_IRQ | TIMER_OF_CLOCK | TIMER_OF_BASE, How is switching from a statically allocated struct to a runtime allocated struct related to the problem? Thanks, tglx