Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp551050pxb; Wed, 25 Aug 2021 09:14:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxa4xKxrHsSl2OSDOysxz3eR06RhgttRi2kqNnxOj/VLO6Al7FJV6xSHmDBuAOPers54cwu X-Received: by 2002:a17:907:76ee:: with SMTP id kg14mr6405580ejc.90.1629908095068; Wed, 25 Aug 2021 09:14:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629908095; cv=none; d=google.com; s=arc-20160816; b=G83LhimELMV27Qnl5qzmxov+rj5b4Ex6RlQ2my5jbdtjp5ag+K0CY/yuaINV4T0Hii t0iWDgMJ4WfQehvF2b5HaeZT6JpyuMs8kyPwbVzPcuhl4hLfiqDbP3ZYnrUmje9ep7pB 29nTpoM4ekTvhmd0Nxm2xUiyUT6M4QV+AQ/P0bWy4ss+Fv5RxZ4Ia0d+/QSkaf0s/ntU UZi7gU4xPdJF3w6ssGOtY65mzkvKH5pc/TE5y7g73OynXn04qPBdIVZnmuE6ahD3zcF0 OA27SuUEIU8p6QH6TMqEmvRNR3rzPQaeJOZz+geBlB0psBS9mF2g/egWjoHe45YumvWw rYoA== ARC-Message-Signature: i=1; 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=EVMcSyzLWCJbPhaXzVam6/a6dBjGlpQ372IsbwtfVxk=; b=We62grYO9BAkzT8JIi+zbaCieI1zJXvNPK4OzfNJVSj60E44KMCHaEc7XiJ5NY55pu u73kMHtbwkSFGmBwCsQcrQ5yN0lUHSI/dSFXyLsBVNV/TLVWOcklIfbfUvGG+BBUXkmX FNKG3sb6iqUxDAI378DbqBuxb9bI5X4/bTqfhkNK2eR4AnOJiAjSW4kHWboajmRkuKXV cgrrRXT/uS6Fn+lLZr8hQEiQ/yTQ6a+YSsWEB2cSkynCgbQkbyWqD0eJLOcfPpDQknJj tciOgLVzTitC6NyRxP5OTvLg9YyWh5F+7bFYj0znCw/kn95BgusOKya25RDycUXxtbGs C0pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=D06ZT5x4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bj25si201279ejb.201.2021.08.25.09.14.28; Wed, 25 Aug 2021 09:14:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=D06ZT5x4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240825AbhHYQEZ (ORCPT + 99 others); Wed, 25 Aug 2021 12:04:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236374AbhHYQEX (ORCPT ); Wed, 25 Aug 2021 12:04:23 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F269C061757 for ; Wed, 25 Aug 2021 09:03:37 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id n11so8543363edv.11 for ; Wed, 25 Aug 2021 09:03:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=EVMcSyzLWCJbPhaXzVam6/a6dBjGlpQ372IsbwtfVxk=; b=D06ZT5x477gq/rdgUndPpPpqolkunQ0Lm+fcM+BVH9xsClA537zE4gTkymgV9SOneE Z4wFUwKjmpg5WO4xHmlKEx8ZKBhIwhrI/xCO76zsFp6S+yskcz6PkbIpJbWCfJUVAdjf ydcPHRjPKF5RLELwCO25YvR57zMie8CdsZB0LNG1G4dztOSz3ZCalccB89E92CSLulGv 2Lu6SvQCsk3+Q8nKSLtzb0AKw6IuLcp/Ce6ZP9Cq28l3MaS1f5ronpiO6DWvdxqImOnD g9q3mhRfVn2DTDFh5tCdORUzZR98nMkke7pzzxMpdDNDzb442XS8wLkn/6MQIuVf7VYy 3Img== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=EVMcSyzLWCJbPhaXzVam6/a6dBjGlpQ372IsbwtfVxk=; b=LBTXnd27g7Ck3855yyr4gbtUC1Jyx+Phs8TcutQ8UIWHNH15Gg3hEw/xVZgXLtWXLb dURNOuHP5dLe8CA911AvuRUkK0GaX6CgULjNwRFhvQ8QiPRqc9zNe0dYMgnlOrxf4Jrr 64ElP1DsYwyOQbwVTRFo3p2/9xGy6SNIFC1zU6900uUSUnJWS2XLKHJiNlP3oq8OFJr8 nY45t2cTCj/rKHU3YmVIWd9a/vXbKBC0NB/12d8qVlReF3S0iIAGz4yiUwpm5Xn83y4c a3HI799ndY9LCcAVTtH/KcB27I6/UPlahJdKPL4znNGKlSllTrexcierl+jkvl776dNA pmuQ== X-Gm-Message-State: AOAM532xXBUZ+jIUunjvw0YVjpuWMcJk7uVh6+I0PZ6ojofniqt7bQHD MS6mdqy/DdsDtz/pNmeSEIg= X-Received: by 2002:a05:6402:2751:: with SMTP id z17mr23305428edd.290.1629907415912; Wed, 25 Aug 2021 09:03:35 -0700 (PDT) Received: from skbuf ([82.78.148.104]) by smtp.gmail.com with ESMTPSA id f26sm254814edu.4.2021.08.25.09.03.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Aug 2021 09:03:35 -0700 (PDT) Date: Wed, 25 Aug 2021 19:03:34 +0300 From: Vladimir Oltean To: Mark Brown Cc: Rasmus Villemoes , Lee Jones , Arnd Bergmann , Thomas Gleixner , Marc Zyngier , linux-kernel@vger.kernel.org Subject: Re: "BUG: Invalid wait context" in ls_extirq_set_type Message-ID: <20210825160334.zffm2ctcklo66qkx@skbuf> References: <20210825135438.ubcuxm5vctt6ne2q@skbuf> <20210825155427.GK5186@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210825155427.GK5186@sirena.org.uk> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 25, 2021 at 04:54:27PM +0100, Mark Brown wrote: > > I did google for fixes for this kind of issues that were sent in the > > past, but in my limited search I did not find any other driver which > > uses regmap while under a raw spinlock. > > No problem with adding raw spinlocks to regmap, I think it's just nobody > needed them before. I've not looked at the problem in sufficient detail > to figure out if that's actually the best solution here but from an initial > pass through it looks reasonableit looks reasonable The question becomes how will syscon be told that one of its consumers needs the regmap to use raw spinlock locking? The syscon regmap is initialized before any of its consumers probe, AFAIU.