Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3876191pxt; Tue, 10 Aug 2021 13:34:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdX4o5R3XIwQ502ftmOwL/opzJHenBbJCqHg+Uvn1xBJHVi7CNWw7yPXpJPGTVA0U4gr3G X-Received: by 2002:a6b:730a:: with SMTP id e10mr274897ioh.56.1628627660566; Tue, 10 Aug 2021 13:34:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628627660; cv=none; d=google.com; s=arc-20160816; b=BKA+EGZaEnQfFJvVLO9aN3TpaczCMp1/SeXZhw0BPFzjUHo6xKkZEqITLk2gbTGmsM i/5D7/dES0hIfyUHkacSXzb4VGAWt7NYp3rVCNW7E6ngBvAig6CGxMU1r6EeqLTMwzC+ 97zMCx3kZrk0Ph9JRqJcJ7uA3DkmQCDZYifkB/N0gGOq7jYqxAieRR0/nSugsvTKeIhx PF2QvzhfahHMvs0TLvRkw5WjBQzv+IKWSLTyddLsG1v0p21CoScu/dlzNiXHzG3wnppI rdmW5mU9mEGHdmnehKjVwPZktfAjX2IcWuQGaFFRb8FbD9p8TAO15u1edPfwn90M+kSz x5TQ== 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=VmNO/6PZX/ukpmKUxgFb784BLjZWMf0I28FYYc/qH+Q=; b=Caj52M92HqAuLQO8rWkQqGXBtriNb8MfZlDaTPHhFTvPltJWPd9HeVMGYhj8aPVtos wVnaN48xQ2fw6o8zXJWp76S91A8lqv++ngizXgp5yzYMVCB+gv2rFFkdZU3ohDUm202q +CH3+aoJ+XVNXe0pjRDkWeTpfpJMmXD2YxRrLQplMjdvFciqDXCOZYYMHcCydYE2Q83V n+siRXYz+xIdGY6elLvWagH4Bd822q6hYK7daObrz9AtlgRGH4IouwLYpyUYgqakl08y RdncZwBxqOkCOzRT/pPLRGYxso7nFhJla3srSm+jViSYnmxUF3Hk03VjpXhxeNeqXOzv DTmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=geT0QKa+; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="9RUz3+Q/"; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s8si25994107ilu.146.2021.08.10.13.34.05; Tue, 10 Aug 2021 13:34:20 -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=fail header.i=@linutronix.de header.s=2020 header.b=geT0QKa+; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="9RUz3+Q/"; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233328AbhHJUd3 (ORCPT + 99 others); Tue, 10 Aug 2021 16:33:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233083AbhHJUd2 (ORCPT ); Tue, 10 Aug 2021 16:33:28 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1821AC0613C1; Tue, 10 Aug 2021 13:33:06 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1628627582; 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=VmNO/6PZX/ukpmKUxgFb784BLjZWMf0I28FYYc/qH+Q=; b=geT0QKa+FGH9C4lt7qI+awsmOAPGEPnuKNhteiIPNmgcQaziJdqJBjQY00zPcEFuZmuBmB oOh5oInajQrBVbX67j2q2iD9BWXDlbwu+g8lE5rVLGMCIErd9No4tCqHdEseYSHugHI1zg zHWyd3cFWnmyd3BVs5lJX5LyVJozvZFjkzQaV/wHC6r+3d7TYpJlg2oG+v1mmVFYWDsD/m yJWjYV/irDIoGlQPhZaJOQK49VMOnb5dU12SyIIcmXk83MxnTdGzx+YuXNArtOFDUHB7qb PYtamAOAZKRt461Vh7cGXI2uzw3URsGPaKwXtzw2i4OBmySXjMRNqhkygKAVAg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1628627582; 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=VmNO/6PZX/ukpmKUxgFb784BLjZWMf0I28FYYc/qH+Q=; b=9RUz3+Q/kDOp5LEbghaANWydLhI9VhI74udmE/onDz0uMdyQg6tGx5YzKhMZhoGJCeflAI 3S/vPf9bzVldkWCw== To: Valentin Schneider , linux-kernel@vger.kernel.org, linux-rt-users@vger.kernel.org Cc: Will Deacon , Mark Rutland , Marc Zyngier , Sebastian Andrzej Siewior , Mel Gorman , Linus Walleij , Bartosz Golaszewski , linux-gpio@vger.kernel.org Subject: Re: [SPLAT 3/3] gpio: dwapb: Sleeping spinlocks down IRQ mapping In-Reply-To: <20210810134127.1394269-4-valentin.schneider@arm.com> References: <20210810134127.1394269-1-valentin.schneider@arm.com> <20210810134127.1394269-4-valentin.schneider@arm.com> Date: Tue, 10 Aug 2021 22:33:01 +0200 Message-ID: <87v94doxaa.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 10 2021 at 14:41, Valentin Schneider wrote: > [ 11.549824] rt_spin_lock (kernel/locking/rtmutex.c:1641 (discriminator 4) kernel/locking/spinlock_rt.c:30 (discriminator 4) kernel/locking/spinlock_rt.c:36 (discriminator 4) kernel/locking/spinlock_rt.c:44 (discriminator 4)) > [ 11.549827] dwapb_irq_ack (drivers/gpio/gpio-dwapb.c:151 drivers/gpio/gpio-dwapb.c:233) gpio_dwapb > [ 11.549831] __irq_do_set_handler (kernel/irq/chip.c:414 kernel/irq/chip.c:406 kernel/irq/chip.c:1009) > [ 11.549833] __irq_set_handler (kernel/irq/internals.h:178 kernel/irq/chip.c:1053) This is gpio_chip->bgpio_lock which is a regular spinlock. AFAICT this lock should merely serializing access to MMIO registers, so it should not be a problem to make this lock raw. Except for the obligatory exception: grgpio_irq_handler() holds that lock from the demultiplexing handler and invokes all handlers for the individual GPIOs which have interrupts enabled without ever consulting a pending register. That drivers usage of that lock is interesting in general, see grgpio_map_irq() for illustration. Quality stuff for mission critical systems... But nevertheless it should just work with a raw lock on RT AFACIT. Thanks, tglx