Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2456633imd; Fri, 2 Nov 2018 11:43:22 -0700 (PDT) X-Google-Smtp-Source: AJdET5eDLHoCfbMCjDCSLu46Suf/Cr/h6x151b5IxVdTkduY3exQYcFkjTKmrjt8m9+Z7g38Qtru X-Received: by 2002:a63:5816:: with SMTP id m22-v6mr11715233pgb.332.1541184202874; Fri, 02 Nov 2018 11:43:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541184202; cv=none; d=google.com; s=arc-20160816; b=YjmKiCSQD84+2RA9h9dgALQG51TqC8qkBZL1mIqkUBBYIgkdIcDEu9QhxtpGNRxXym 6D9b9KH9+7U73K5rjYjKwH39lmQYBUDKLelX86ddhgx/0xauQZpvo0Vy9r5yoVmOvD9v MxKk86zUi9UCPY76FLpR45nSFoSusGdNHP8tiGjpotOruxRbflXBr1vJzuITguFNEhzK XB5Qtj5WEDNYjsgpPLDMJ2K9u++fmHnAVOQ3WZwV7sRFnw0/6E0JMtLXux+cX736gwLc kqNdE9pnsSBNbqAIGTMEtfqOxMX4uvM904IjCGf9y4s0t2zMbJ/Och5ppMAje2/12yQM YUvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=nNFyqZzIWvGd3jq/sXBfqPjybtm0WaOBkQKtnOlSriE=; b=a4q6xpFlc/b+cUcoRWRIWcZL7KMsrFLVvAOuHwyJxJEEF3Yrhw++AfAFGEzzTc6kvj mbCTtWaOSW6croFK+ZeeXQtR/oIk1oPSZFxGYaEV/KVeeO4vPcOy8dRvt3EEzcoKQRlz b3gaIq+B13ieRBeMiup3N5MdnEKW21zpq3CH2lvbljKjb0n0WbLX7FvHYU9AUkEBZZwA pQfanUyzgDz4/kOHZaLfwka0K1BQSe1rokMgqlWqFqAIaS6emPYCbcGWui1ZVQUX+h79 ZgfM3i5s9UMUdwuc1F9t/OAGss82u+Op+84d1xCleOnhkifexzclLM1zve7ZXE+rsEAu IulQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nNQ6SKLI; 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 y124-v6si34227175pgy.363.2018.11.02.11.43.03; Fri, 02 Nov 2018 11:43:22 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=nNQ6SKLI; 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 S1729449AbeKCDtB (ORCPT + 99 others); Fri, 2 Nov 2018 23:49:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:43480 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728578AbeKCDtA (ORCPT ); Fri, 2 Nov 2018 23:49:00 -0400 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 28C492082E; Fri, 2 Nov 2018 18:40:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541184048; bh=boofrgXEuuz5fR7QuJ0aVKXs8H0GNpNn6UfMNxndb/Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nNQ6SKLIa2JPYQwwCX9YLYqdwZlEi4y93LWypTJq2sh3jz7PBYu/Dgq3/lRcjmDRF qMxt2WLqEGp3j/lx3ILdr7vGT5dKwjIe72Rd9MMjxZK3wGowT8DbKGVDPiO0dQN+aJ gjk9GDkX5St4g203KWx1c7CMD2Iy4yzfv7mgqhzs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tony Lindgren , Andy Shevchenko , Phil Edworthy , Guenter Roeck , Sasha Levin Subject: [PATCH 4.18 063/150] Revert "serial: 8250_dw: Fix runtime PM handling" Date: Fri, 2 Nov 2018 19:33:45 +0100 Message-Id: <20181102182907.996957210@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181102182902.250560510@linuxfoundation.org> References: <20181102182902.250560510@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit beeeac43b6fae5f5eaf707b6fcc2bf1e09deb785 ] This reverts commit d76c74387e1c978b6c5524a146ab0f3f72206f98. While commit d76c74387e1c ("serial: 8250_dw: Fix runtime PM handling") fixes runtime PM handling when using kgdb, it introduces a traceback for everyone else. BUG: sleeping function called from invalid context at /mnt/host/source/src/third_party/kernel/next/drivers/base/power/runtime.c:1034 in_atomic(): 1, irqs_disabled(): 1, pid: 1, name: swapper/0 7 locks held by swapper/0/1: #0: 000000005ec5bc72 (&dev->mutex){....}, at: __driver_attach+0xb5/0x12b #1: 000000005d5fa9e5 (&dev->mutex){....}, at: __device_attach+0x3e/0x15b #2: 0000000047e93286 (serial_mutex){+.+.}, at: serial8250_register_8250_port+0x51/0x8bb #3: 000000003b328f07 (port_mutex){+.+.}, at: uart_add_one_port+0xab/0x8b0 #4: 00000000fa313d4d (&port->mutex){+.+.}, at: uart_add_one_port+0xcc/0x8b0 #5: 00000000090983ca (console_lock){+.+.}, at: vprintk_emit+0xdb/0x217 #6: 00000000c743e583 (console_owner){-...}, at: console_unlock+0x211/0x60f irq event stamp: 735222 __down_trylock_console_sem+0x4a/0x84 console_unlock+0x338/0x60f __do_softirq+0x4a4/0x50d irq_exit+0x64/0xe2 CPU: 2 PID: 1 Comm: swapper/0 Not tainted 4.19.0-rc5 #6 Hardware name: Google Caroline/Caroline, BIOS Google_Caroline.7820.286.0 03/15/2017 Call Trace: dump_stack+0x7d/0xbd ___might_sleep+0x238/0x259 __pm_runtime_resume+0x4e/0xa4 ? serial8250_rpm_get+0x2e/0x44 serial8250_console_write+0x44/0x301 ? lock_acquire+0x1b8/0x1fa console_unlock+0x577/0x60f vprintk_emit+0x1f0/0x217 printk+0x52/0x6e register_console+0x43b/0x524 uart_add_one_port+0x672/0x8b0 ? set_io_from_upio+0x150/0x162 serial8250_register_8250_port+0x825/0x8bb dw8250_probe+0x80c/0x8b0 ? dw8250_serial_inq+0x8e/0x8e ? dw8250_check_lcr+0x108/0x108 ? dw8250_runtime_resume+0x5b/0x5b ? dw8250_serial_outq+0xa1/0xa1 ? dw8250_remove+0x115/0x115 platform_drv_probe+0x76/0xc5 really_probe+0x1f1/0x3ee ? driver_allows_async_probing+0x5d/0x5d driver_probe_device+0xd6/0x112 ? driver_allows_async_probing+0x5d/0x5d bus_for_each_drv+0xbe/0xe5 __device_attach+0xdd/0x15b bus_probe_device+0x5a/0x10b device_add+0x501/0x894 ? _raw_write_unlock+0x27/0x3a platform_device_add+0x224/0x2b7 mfd_add_device+0x718/0x75b ? __kmalloc+0x144/0x16a ? mfd_add_devices+0x38/0xdb mfd_add_devices+0x9b/0xdb intel_lpss_probe+0x7d4/0x8ee intel_lpss_pci_probe+0xac/0xd4 pci_device_probe+0x101/0x18e ... Revert the offending patch until a more comprehensive solution is available. Cc: Tony Lindgren Cc: Andy Shevchenko Cc: Phil Edworthy Fixes: d76c74387e1c ("serial: 8250_dw: Fix runtime PM handling") Signed-off-by: Guenter Roeck Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/tty/serial/8250/8250_dw.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c index af842000188c..a25f6ea5c784 100644 --- a/drivers/tty/serial/8250/8250_dw.c +++ b/drivers/tty/serial/8250/8250_dw.c @@ -576,10 +576,6 @@ static int dw8250_probe(struct platform_device *pdev) if (!data->skip_autocfg) dw8250_setup_port(p); -#ifdef CONFIG_PM - uart.capabilities |= UART_CAP_RPM; -#endif - /* If we have a valid fifosize, try hooking up DMA */ if (p->fifosize) { data->dma.rxconf.src_maxburst = p->fifosize / 4; -- 2.17.1