Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 77471C433FE for ; Wed, 10 Nov 2021 20:03:47 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 238C4611AD for ; Wed, 10 Nov 2021 20:03:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 238C4611AD Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kerneltoast.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 448DF6E51B; Wed, 10 Nov 2021 20:03:46 +0000 (UTC) Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3D3D36E51B for ; Wed, 10 Nov 2021 20:03:45 +0000 (UTC) Received: by mail-pl1-f170.google.com with SMTP id y1so3893609plk.10 for ; Wed, 10 Nov 2021 12:03:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=cIlvWeNZo6S7NB8/mVE36tUxBBajUlrl42axwAlyXyk=; b=KwEE6s88T5Lxa6y2mLMP72t9Qsi41kIX9JmLaSXXroYMsnObuMtwCe+PLOfO7tHUdE cN7rRy0u6CBJYsTUADZbOn7Ta90SFeW9C84dUsI8NAkq9vFaFclLfIL+vxmE6+sETH7h c4a8J8Oyi2HiO8PavbefuYkBE2AZ2Rpo21IgFc0vqa0EuJxTAv1EK7+8aXZgbcWtSEg+ mxq31kv6Q9QVlv+2SUaMUjMCTpHRsew266socNmzguFApj+9eqr7n2NQOZdrf8GTMeN9 Er2gfbkjwTzrAwJRDd7e1d+5ccB8OzG/c6j4biqVgde/BqxMIWNIo2kwO0GOvNj96d+a x78Q== X-Gm-Message-State: AOAM530Q7U8VpKZB5qo/zgE5z58/7z281CyE6cVFPamQ5I7aHoAZ5qP5 7jPOlAlsB3BUCbVCVinHZfI= X-Google-Smtp-Source: ABdhPJxbf0ym4tQoEUXmUhiY1kni30w1bAq/gA3YYv9+uo4kA2qpDC0AcveRpv3V8lpBfX+icly3mw== X-Received: by 2002:a17:90a:ce02:: with SMTP id f2mr1771441pju.77.1636574624742; Wed, 10 Nov 2021 12:03:44 -0800 (PST) Received: from sultan-box.localdomain ([199.116.118.235]) by smtp.gmail.com with ESMTPSA id e7sm317936pgk.90.2021.11.10.12.03.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Nov 2021 12:03:44 -0800 (PST) Date: Wed, 10 Nov 2021 12:03:40 -0800 From: Sultan Alsawaf To: John Ogness Subject: Re: printk deadlock due to double lock attempt on current CPU's runqueue Message-ID: References: <20211109213847.GY174703@worktop.programming.kicks-ass.net> <87fss4wcgm.fsf@jogness.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87fss4wcgm.fsf@jogness.linutronix.de> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Juri Lelli , Peter Zijlstra , dri-devel@lists.freedesktop.org, Ben Segall , Vincent Guittot , Anton Vorontsov , David Airlie , Ingo Molnar , Mel Gorman , Petr Mladek , Kees Cook , Steven Rostedt , Dietmar Eggemann , Tony Luck , linux-kernel@vger.kernel.org, Sergey Senozhatsky , mkoutny@suse.com, Thomas Zimmermann , Colin Cross , Daniel Bristot de Oliveira Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Wed, Nov 10, 2021 at 11:13:37AM +0106, John Ogness wrote: > Even after we introduce kthread printers, there will still be situations > where direct printing is used: booting (before kthreads exist) and > shutdown/suspend/crash situations, when the kthreads may not be > active. Although I'm unaware of any ongoing kthread printer work, I'm curious to know how a kthread approach wouldn't employ a try_to_wake_up() from directly inside printk(), since the try_to_wake_up() hit from inside the fbcon code is what caused my deadlock. Sultan