Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp11021674imu; Mon, 31 Dec 2018 11:12:28 -0800 (PST) X-Google-Smtp-Source: ALg8bN7bgdTJar8ej/GRGAyzc1rX0FgRXUptPSHz3RWpygwQzQyZPCSzd1Ttbbvj1ZWvV1yjoJRk X-Received: by 2002:a17:902:4:: with SMTP id 4mr38368415pla.20.1546283548352; Mon, 31 Dec 2018 11:12:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546283548; cv=none; d=google.com; s=arc-20160816; b=xdksOYxhpLw3D79yMEnagCdo0ER6S2HZsn0Al76sCDByjdSBx+e5QbnilRZGQtVtEk FI909AGDHftM3Oi4USyYVmD0y9gRjTEH0bSfexEcKSfpn2euHb9Z91t0Kp51PK9QfLxL 4pcYaNRQ7ceP6HKtGHB2rFPbTV0cyVNMbmzIHDU29eWO+hLNkMHENbOngly1JJrGZYOR 4+IJX8ZrHI4oKmZsFGoj8hlLaohhGAFf60OvJuFjdDUlA0lknowmZVthPMOdzkkWU2CY 2HPsplvqAFnWeH3owec5JAtiZXXT9JgZxIRY5hg0nB0eO6FhNZfLU5ueeQtLEzZmTVTb X06g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=EuxVX4LJYId/8LX28UqFKZnuP20NSGU0ia1Xsei30RY=; b=bH/OO6cjOghFsRThxIGQQQ3nANQxgYQoBe5QkTO4y/vszkM3aHGNHsavjuvNuGuqz1 Vkl0ldV29NsLAet1eJFTPHx5CK6Y2HZ8HUJJtFpQF/jE7oIi5mKVlOr1Uef+CVh9ZsWt ntk6ZYFF9Cybz76FGTamDN++1IMh8l3DV/u0gnzu2Sh0+5flJ+axqweIFlfR0aXrc+Bz BBqNjvUhu8oQmnRw5SUZpX4QOKZeoPmka6ERv+3yz5+X2oV8GVoh+NGulAwD3BRVBzei iXy1yFpukEHtNLU+H826hYItHRaK7qB8wZfWxjutA+R89KyELUtcrUIkliXGwwf6SxSc vzVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=XZe4LPum; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x8si43031814pll.187.2018.12.31.11.12.13; Mon, 31 Dec 2018 11:12:28 -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=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=XZe4LPum; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727649AbeLaRuv (ORCPT + 99 others); Mon, 31 Dec 2018 12:50:51 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:57584 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727482AbeLaRuu (ORCPT ); Mon, 31 Dec 2018 12:50:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=EuxVX4LJYId/8LX28UqFKZnuP20NSGU0ia1Xsei30RY=; b=XZe4LPumYFC3s7XJzACepq9y5 8X+dgydcSTraMgudKh7IJK2UKaNVMDeCinlfgfuHV/ObdbwbaJV2L3KlUaYfHfAGzoIqSoDYwKcIU 84qPyRXgXxD/7MkEOxkaHclr6lEWDYRIjCaLKPgbHUCO8C1AmEnXZlyar1EPp2OTK8JFU=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=finisterre.ee.mobilebroadband) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ge1hz-0002Ny-Nz; Mon, 31 Dec 2018 17:50:35 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id 009E6440080; Mon, 31 Dec 2018 17:50:34 +0000 (GMT) Date: Mon, 31 Dec 2018 17:50:34 +0000 From: Mark Brown To: Andreas =?iso-8859-1?Q?F=E4rber?= Cc: Ben Whitten , devicetree , "David S. Miller" , netdev@vger.kernel.org, Michael Turquette , Stephen Boyd , "linux-lpwan@lists.infradead.org" , linux-kernel@vger.kernel.org, starnight@g.ncu.edu.tw, linux-clk , "linux-spi@vger.kernel.org" , Maxime Ripard , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH v3 lora-next 5/5] net: lora: sx125x sx1301: allow radio to register as a clk provider Message-ID: <20181231175034.GI1846@sirena.org.uk> References: <1539361567-3602-1-git-send-email-ben.whitten@lairdtech.com> <1539361567-3602-6-git-send-email-ben.whitten@lairdtech.com> <491d1a46-c112-1106-9f25-14149f0dcbd0@suse.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nEsDIrWrg+hrB7l1" Content-Disposition: inline In-Reply-To: <491d1a46-c112-1106-9f25-14149f0dcbd0@suse.de> X-Cookie: knowledge, n.: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nEsDIrWrg+hrB7l1 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Dec 30, 2018 at 11:55:46AM +0100, Andreas F=E4rber wrote: > + linux-spi, LAKML > Given that observed symptoms were CPU stalls, workqueue hangs and RCU > problems, requiring a power-cycle to recover, I wonder whether we are > running into some atomic/locking issue with clk_enable()? Is it valid at > all to use SPI/regmap for clk_enable()? If it is, is there a known issue > specific to spi-sun6i (A64) in 4.20.0? > I already tried setting .disable_locking =3D true in both regmap_configs. > Any suggestions how to further debug? You can't use SPI for clk_enable(), clk_enable() needs to be doable in atomic context since we need to wait for the bus operations to complete (you can start SPI transfers in atomic context but you still need to wait for them to complete). Any clocks that are only accessible via a slow bus like I2C or SPI need to do the enable/disable in the prepare/unprepare operations which aren't done in atomic context. regmap can be used in atomic contexts, though you need to configure it to use spinlocks instead of mutexes and ensure that no register cache allocations happen during I/O (eg, by providing defaults for all registers or by not using a cache). --nEsDIrWrg+hrB7l1 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlwqVuoACgkQJNaLcl1U h9B/iwf7BlSQzbOQ0KksQFHM3Zo+w60UAruaEM3FZHfuKjMa19b2GVVEYt6jfcrh tpvudfBIi3vlkx4Z0adtfhOb5oGv8Y3owUOBMWWpS4Bn/ZHOBvZOdh2EWHw85Jvb 6YijmsoqAj1fNooCPEXFD6SCEAGfyRjVz3hANVIZmiBQYKrU2KT32/hNQ/WC6XK2 AG6ZlNDFZJHyuP6dQ9hOhH3fUyYZSYEB7xopOje8ZTCrdO5htJNA17P4C+zojRR8 5KO2RrumYLTaEdeXCIq+qvFaErgsYAg30mJwGVZLb14KPy0z4w8SFriJDNKG/0K3 fcTWnePlEZ7GfuI2t+b9vyV0xJgKxQ== =OefZ -----END PGP SIGNATURE----- --nEsDIrWrg+hrB7l1--