Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp376579pxb; Tue, 15 Feb 2022 15:55:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJwiHSQqufvw1/oa2pQysgGk54Qv9djEvD9tCsh2Od7o/836pCoHniUI6ynvB8iNRtPdVCex X-Received: by 2002:a17:906:2715:b0:6ce:6b5d:3bdf with SMTP id z21-20020a170906271500b006ce6b5d3bdfmr332735ejc.424.1644969325055; Tue, 15 Feb 2022 15:55:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644969325; cv=none; d=google.com; s=arc-20160816; b=A2urvHtjJN54R+TAJnKqQnIV8ULVcb83V2bKVkahXbMwN16V3uKUWsIGBLD2z4btpM D1FHRpLnhramNKyVwhpZNGWPaemDX0bbukZX/sqIKKPt1+LQEMC4/Gw3+ejrZaTMj+tU EoE8HuJ8SYOKmksscGdQXcpt0c/ictddpKRpR7KA5AolSbKnsQbRnO68P3KaAhz+Fj+q iNwWv+he4skeOo0/WYK6qFEIlloia8bqWmtCJD8UKHf78p/CmwB17x2AbrOVhh7dM2Bz sucoyMHvxJwX9LEFDs23XkNmZ/xPDWVkrt7Iad0gIZYDC+gE3ZGUKRvgJpH95XBndeQ9 u27A== 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=VGa3oCsCDm0R2QE32ynzHVQmQs9uQ3ubWMnYmBZfUtU=; b=BGnr+rpJIWB+X/goZBes0SyJrwzBri2WtJFyCVmTgiPJQ5Ht2slaaNXM4YCH/bcqZF SfaXR9gGIX/p7U1SdxBuWca/vChlq704OAn3ek0nswnJLo36ME/vrqYg5Zl1VpfE4S5E hHZAxtzoV83luHLAAGM/rGlSlup0oUiyAMUXgqVQIuggeJ9RLuMGxsnc4f1yto4Ui2ZF 9fkH2GrY+qqulRWGNy4wEpDW9MGFxLuTHy6B9S++7pRSqrNiaQ+y3pLgR1dyaKQWiydY bbAZb86LH2K/jhF8jXAFfYcIz+pUgUQ0IhKx35Kqa4MUDFpnPD1IIAvi1cFlEQ8pLbRL ExWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="b5AuXe/a"; dkim=neutral (no key) header.i=@linutronix.de; 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 w11si858478edj.308.2022.02.15.15.55.02; Tue, 15 Feb 2022 15:55:25 -0800 (PST) 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="b5AuXe/a"; dkim=neutral (no key) header.i=@linutronix.de; 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 S241520AbiBOQXm (ORCPT + 99 others); Tue, 15 Feb 2022 11:23:42 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:51738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235027AbiBOQXk (ORCPT ); Tue, 15 Feb 2022 11:23:40 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7DF127170 for ; Tue, 15 Feb 2022 08:23:29 -0800 (PST) From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1644942208; 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=VGa3oCsCDm0R2QE32ynzHVQmQs9uQ3ubWMnYmBZfUtU=; b=b5AuXe/aARjeX5fjNLRuvi7BCXK1xKsBXXx8pqm9uDCmW1oSq4NPu2Ntr+cMDzooZojhRA Mo/BtgXQpJVQ4xvkZOhZXSZ4kA+0a/2BpGls+2efBUpHnpXJ//b4L16TynasJXnsckeJFy 1Z/E7bVtGhTPRXYSY6TSOURJCrkCr64AE2r3nAbJ8e7/7xD91Kh7eLv8L4PD26V93M3IEL xRg4jafV0o8Jm+ZsJ73v37eC+81tcmET2Yo6NbJ642yyTY6W4m639aCIt4S3Sw5G3yk1zT J9auPgiRZwm4BbnAHxy926Ez1CsiEqwODQyEc5C/x5LbiecOT61lXAo/9tWdrg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1644942208; 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=VGa3oCsCDm0R2QE32ynzHVQmQs9uQ3ubWMnYmBZfUtU=; b=oDGLoR+EdHIqdeEfijeVg9bXDhKnweL8w/ARhGpB5nK6PhRveeKOU0KcdBtcxtWm4hbg4r nrsqpYR5X0nQP3AQ== To: Sebastian Siewior , Jiri Kosina Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm: fb-helper: Avoid nesting spinlock_t into raw_spinlock_t In-Reply-To: References: Date: Tue, 15 Feb 2022 17:29:27 +0106 Message-ID: <87o8382j5s.fsf@jogness.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,INVALID_DATE_TZ_ABSURD, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 2022-02-15, Sebastian Siewior wrote: >> From: Jiri Kosina >> >> drm_fb_helper_damage() is acquiring spinlock_t (helper->damage_lock), >> while it can be called from contexts where raw_spinlock_t is held (e.g. >> console_owner lock obtained on vprintk_emit() codepath). >> >> As the critical sections protected by damage_lock are super-tiny, let's >> fix this by converting it to raw_spinlock_t in order not to violate >> PREEMPT_RT-imposed lock nesting rules. >> >> This fixes the splat below. >> >> ============================= >> [ BUG: Invalid wait context ] >> 5.17.0-rc4-00002-gd567f5db412e #1 Not tainted > > rc4. Is this also the case in the RT tree which includes John's printk > changes? In the RT tree, the fbcon's write() callback is only called in preemptible() contexts. So this is only a mainline issue. The series I recently posted to LKML [0] should also address this issue (if/when it gets accepted). John [0] https://lore.kernel.org/lkml/20220207194323.273637-1-john.ogness@linutronix.de