Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp21278ybl; Tue, 7 Jan 2020 13:17:09 -0800 (PST) X-Google-Smtp-Source: APXvYqwR7aO0XgbwCluAsMQSpvWDKNDFU4mdAbwG0N+sH+zvgBdL14CECFSPbXGYjxjrZJA5yJ/t X-Received: by 2002:aca:5083:: with SMTP id e125mr397863oib.96.1578431829011; Tue, 07 Jan 2020 13:17:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578431829; cv=none; d=google.com; s=arc-20160816; b=BpX5rvcNs4x9qhYGFoLVZuDOLEWzFnd8A5Qe/Qkny8hB9ZINN4PcgU9bNDVwyQEO8A 8+K5R3UbB6S4whmTyotR4hH4yHzELZQyOXKo0x52fvx08Bcv7+7p08O1xpjU6Pj8S00L e4kAHJfG1EjSyTN/yO7K3KSybpJGQQAwKvEWZhD35h4TaCHM9UMTNPF+bpQwIjRHZCyb OMVZ9Gc7U0nHi+6PyphPXij7IOZruLNoeF3n+9AVF8be6AtMIa5lS0rU++Md/alpaGDw d/LOUM/2cnQd6uKUTc0BcFL4VrUNpOOFle7BE6R3xiYvyQwJK6euvi/T0etQVFxYu38r eicg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=MddWSqjYR3PvC/zxk9D3zfVR+FPX4ctAbOWWRQ8BdAM=; b=uiO46xPK0pq/DmhzfNBOukhzgKQHndduOiPP9f4ceQdeTaBHwvoG8EKlpP2AiGvJl7 yQAMZnKy3vhRHwGOUY6cARRnrr4tSv/3JWqddc6rpmdVuOZdRNNfJ4zYkNFIKOj2DpDP MUo4prrPiMTVJGLKILG8qlTnWd1fe5FzmhEeEi7I5aeyMq+tb+Jxlv80JzTgc/a1JlFW XR3bnbAZUDD40h3/0vGPglvWPjMkopcVukcIeoAWIN3a5QxJcx4BEdL0yELGeYEkI3ul vnRTGc3ks/falXZt0KY7UqYhh0Ey1RVPe0lVgLvgypaadHYtm4G2dnoP/4zZovxNSASO QXsw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a7si561209otp.284.2020.01.07.13.16.55; Tue, 07 Jan 2020 13:17:08 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729720AbgAGVIh (ORCPT + 99 others); Tue, 7 Jan 2020 16:08:37 -0500 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:37159 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729389AbgAGVIf (ORCPT ); Tue, 7 Jan 2020 16:08:35 -0500 Received: from callcc.thunk.org (guestnat-104-133-0-111.corp.google.com [104.133.0.111] (may be forged)) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 007L7OUj026037 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 7 Jan 2020 16:07:27 -0500 Received: by callcc.thunk.org (Postfix, from userid 15806) id BA95E4207DF; Tue, 7 Jan 2020 16:07:24 -0500 (EST) Date: Tue, 7 Jan 2020 16:07:24 -0500 From: "Theodore Y. Ts'o" To: Qian Cai Cc: arnd@arndb.de, gregkh@linuxfoundation.org, sergey.senozhatsky.work@gmail.com, pmladek@suse.com, rostedt@goodmis.org, catalin.marinas@arm.com, will@kernel.org, dan.j.williams@intel.com, peterz@infradead.org, longman@redhat.com, tglx@linutronix.de, linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] char/random: silence a lockdep splat with printk() Message-ID: <20200107210724.GN3619@mit.edu> References: <1573679785-21068-1-git-send-email-cai@lca.pw> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1573679785-21068-1-git-send-email-cai@lca.pw> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 13, 2019 at 04:16:25PM -0500, Qian Cai wrote: > From: Sergey Senozhatsky > > Sergey didn't like the locking order, > > uart_port->lock -> tty_port->lock > > uart_write (uart_port->lock) > __uart_start > pl011_start_tx > pl011_tx_chars > uart_write_wakeup > tty_port_tty_wakeup > tty_port_default > tty_port_tty_get (tty_port->lock) > > but those code is so old, and I have no clue how to de-couple it after > checking other locks in the splat. There is an onging effort to make all > printk() as deferred, so until that happens, workaround it for now as a > short-term fix. Applied, thanks. - Ted