Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1144593pxb; Wed, 6 Apr 2022 09:45:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwGOXKuRjf+keCXCy/l1snhYzDq8su0JIy3+KuMne4Ud5PFExe6goqCuQXjwQewHZsVIMl X-Received: by 2002:a17:90a:5d89:b0:1ca:8687:843d with SMTP id t9-20020a17090a5d8900b001ca8687843dmr10809154pji.28.1649263527452; Wed, 06 Apr 2022 09:45:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1649263527; cv=pass; d=google.com; s=arc-20160816; b=cgUh49h2Rd7cc/fOLBM61vW0wDrEgFR5zgX/Kxq+yFS9NnBfmRdlTnhvWCsg1ZbzJj ZDVNRoN/15gLTNZsvzR2dDgV2FelvAS2tNB1eAsl/dgaRtwJSZgcvlgiI9eqJ2R89zIM +Xy9KlZXz5Jc4j8mPaeOKWHwCufFQZU/jKGuMzuo+6onf46noCaKE2jk78dzKvDCJUCG jJunCRcYuYhGwT18/oFl8tujB7SMGdTKzPGXbOFFy8iYj2DeCkEYH49kc+wKtXxildCR 5u6KiaCqnECHabmCkL99lDU2j20qUFyXLxABIUerE2zm8ozLaawC+g1KYSiF6jgFjZa9 3uHQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=wwR7bU/LqezBbEgTJDf+iEsMymzvGIHgAIteyu5Psh0=; b=jROHFRRqutbRryuSwTJj8ZsFBDVFkq/ra/Zue5bZMzpFv4e0AUI4YUtnzT6tL3rzbw q0yPQkxCx1fl2x7IZECRfjp+QXhMwgShXZgDUys9qr1pvcxCFekiF6sr9476AuSnOAb1 n+V8eu7CkOqE1l6UMtzuvCIiaIwUdCva/skcOXgK36+IUC2lE+oqgsavi+OuGdk9KE7j NowSkd5Z/l7P+gxXPHY6ytu/4UDygU8Y4ydVx9CWm67+eJDl4I9JqyTTz0M96LqOupgD r7owT8qNX3JwjZbIGg+wnI27StHyOkZYVjKxBVDV6svo12MfmB+84xM3FHFrpnwqOtON dkhQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@iki.fi header.s=lahtoruutu header.b=eQ8xzLBJ; arc=pass (i=1); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id fz21-20020a17090b025500b001c685d1da8csi5511179pjb.25.2022.04.06.09.45.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 09:45:27 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@iki.fi header.s=lahtoruutu header.b=eQ8xzLBJ; arc=pass (i=1); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 736CB100760; Wed, 6 Apr 2022 08:56:32 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236692AbiDFP5I (ORCPT + 99 others); Wed, 6 Apr 2022 11:57:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236759AbiDFP4z (ORCPT ); Wed, 6 Apr 2022 11:56:55 -0400 Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [IPv6:2a0b:5c81:1c1::37]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8CD156ED5D; Wed, 6 Apr 2022 06:21:56 -0700 (PDT) Received: from darkstar.musicnaut.iki.fi (85-76-76-218-nat.elisa-mobile.fi [85.76.76.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: aaro.koskinen) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 67FC71B000E0; Wed, 6 Apr 2022 16:21:51 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1649251312; 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=wwR7bU/LqezBbEgTJDf+iEsMymzvGIHgAIteyu5Psh0=; b=eQ8xzLBJMgXjtwB7Yzjx/LojJlTidJ/nTLI5pX0s3cY3Zpsn8b7BqqyMs3XT0RDiE5x3gs VxYcG9eYTL2ti5Y7V7hFYM+rqV7NikHD3H+p5eERqlQfhhkziGxt5EzkIqEux9pVT/63ct 9RZefQzE5i14yPjKv+zCKIJs/eTPZg90LntJxUwFkLpuxJfeJHGC27x/eapHvMw+3QBCfO gmU++itRdwNwFQooc8+77js9RrGrUrR+mkDgelpwUoV/wq1kCEziaeZMKg/gpUDKVDqGmb sdmlvWnhCTYcYS7NFr9PDY7i6KlEk5IH1VV/If5zeEdFsCEIB7hDvyObaWz3Xw== Date: Wed, 6 Apr 2022 16:21:49 +0300 From: Aaro Koskinen To: Janusz Krzysztofik Cc: Tony Lindgren , Paul Walmsley , Alan Stern , Greg Kroah-Hartman , Helge Deller , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, Ulf Hansson , Arnd Bergmann , Felipe Balbi , Peter Ujfalusi , Liam Girdwood , Mark Brown , linux-mmc@vger.kernel.org, alsa-devel@alsa-project.org Subject: Re: [PATCH v2] ARM: OMAP1: Prepare for conversion of OMAP1 clocks to CCF Message-ID: <20220406132149.GC594699@darkstar.musicnaut.iki.fi> References: <20220310233307.99220-3-jmkrzyszt@gmail.com> <20220322163646.GD297526@darkstar.musicnaut.iki.fi> <20220322190753.GF297526@darkstar.musicnaut.iki.fi> <1810824.tdWV9SEqCh@dell> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1810824.tdWV9SEqCh@dell> ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1649251312; a=rsa-sha256; cv=none; b=G3rkvREcvYSgPILWjB5NXkPEwDB12zuDb/aFmiEvpjUFHoIPAJkYCg4gSvydBuXsCOrASV qwVzzbSSEMx9mt98MsnoQGVKzIanrO0nr1oceqozsnLldbYtfYofM5nMCz1ygfNCoiqH+K IgUw/j2ZP7FR0vbtq7AE6gODdl7vMQ3Vfs+C4Xr8gfhiKcLrcewjnyFbLJ8VzM6wBTdU7t gGydIzbI/MdPmrFnVpcq2dLpYJlLq8V5O5cFhpaQPPezxVpgC6QZLcN3upxt341r2aPWzQ DGmnbA4hUe8LZaRUfUkOTNHA0z69SzxLRjRbScNwYpTyKIoK+T6Q5ps5tgqjKw== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=aaro.koskinen smtp.mailfrom=aaro.koskinen@iki.fi ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1649251312; 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=wwR7bU/LqezBbEgTJDf+iEsMymzvGIHgAIteyu5Psh0=; b=vWn818AHWtvsq5cDnlrJUnWE79qMNnj8xFj19jFSqwBPLeAtdZ43oHVi70bcMK+nMmLrSK egs3u5wrj9LuerZbuMRnIpytvyvxIRPPV7q5I7a2AsQUHhbykzAHVVpq/9fp7ydLJC4BkE /j7PyMCSQ8gsrfNhsiwPPt7loNA6QMRRlDk5Z6QZ2s9NdMXLpTvDXdFyETUiIH9yQ6N8ZV UA7Ohf8mDgm8uV/Dx1bNcCT7oIamV8mar/PlKoL+fP1XJy/PNu3ZxCz87uc5NkMQwotWIp I92ppcKhR83XiGqTSWPAjd1EkDpGjMI2CtDXW+kr0FIUmivOhk5Ny7zCGfDavA== X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi, On Sat, Mar 26, 2022 at 10:17:49PM +0100, Janusz Krzysztofik wrote: > Dnia wtorek, 22 marca 2022 20:07:53 CET Aaro Koskinen pisze: > > On Tue, Mar 22, 2022 at 06:36:48PM +0200, Aaro Koskinen wrote: > > > Something is still broken. When doing kexec (using CCF kernel), the > > > kexec'ed kernel now hangs early (on 770): > > [...] > > > [ 0.928863] calling omap1_init_devices+0x0/0x2c @ 1 > > > > It hangs in omap_sram_reprogram_clock() (<- omap1_select_table_rate() > > <- omap1_clk_late_init()). > > I've reviewed my changes but haven't found anything suspicious. The below change is fixing the kexec boot. Based on the comment in the code, it seems this clock is needed for the SRAM to work. diff --git a/arch/arm/mach-omap1/clock_data.c b/arch/arm/mach-omap1/clock_data.c index e33e11f826af..b8b4876ff935 100644 --- a/arch/arm/mach-omap1/clock_data.c +++ b/arch/arm/mach-omap1/clock_data.c @@ -285,7 +285,7 @@ static struct omap1_clk tc1_ck = { */ static struct omap1_clk tc2_ck = { - .hw.init = CLK_HW_INIT("tc2_ck", "tc_ck", &omap1_clk_gate_ops, 0), + .hw.init = CLK_HW_INIT("tc2_ck", "tc_ck", &omap1_clk_gate_ops, CLK_IS_CRITICAL), .ops = &clkops_generic, .enable_reg = OMAP1_IO_ADDRESS(ARM_IDLECT3), .enable_bit = EN_TC2_CK, A.