Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp628973rwd; Thu, 1 Jun 2023 04:52:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6lB2+I3wlNNf19738br0uHp4WE/trewcFptlSM/FWjgWdMrPJHSYEWd4JQBuY5Bp3bTJJ1 X-Received: by 2002:a92:dc52:0:b0:33a:353d:bafa with SMTP id x18-20020a92dc52000000b0033a353dbafamr5466576ilq.10.1685620340909; Thu, 01 Jun 2023 04:52:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685620340; cv=none; d=google.com; s=arc-20160816; b=Tc2K31H12xcwHNMbBmIhT4F4KRye0jmiHRBJ9WkJjbRQbMEbAEGSMVq+hhGunwgXw3 s1+sHsQr9n7AWza4KDbgjWwbe6uDujN1CuEeF1zmF+eYt1+JyDpdorCoJncOwL154Ad6 cqRleh7gPRaYEorpRTV+NjDf2epVLMmZaHncc3jhklKbC/qpvnDpVyyncqsDu8hHpEzV EKp2xMs8B21Z+VlluZ47/ejGrR7P8mW3senuO7DploxSNvbNzW6Br8Qj2DGyJMam0x2y PqgrGlqta8ZR8KzrTAoYKepZ5DzYQgooys4owrevvLcuhcB3Jcwmb+QLnUNyzz7b9DOw k46g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=5mdmvCLqIvvCo77ERBQvzmyaVSWtyKId6+P59bvhtLs=; b=eWf2JAmnKe6dqLC3cGtjO4qPPlriWIGQQkcIL6IzKTWRYWqrh8/Ff0HEcRhOhL8UR2 kW7PIYeGfQxBAgdFR2SFlmf66Y7Dd3Z4Zzgs3YQoAUzuYvvIKQxPvA6qXnlbJ6xFlr0e QdcwuvfUM+7v5lUf1JhKiFcraDHdpgSnLihygjvZMnl333dER7qUnM+0w32RcFHZZYwY ETMVh/sEsuEkbXK7hLp0wv/kZ88RqHrG4szKnjU1vSYjIf7EFC8KK0ahUQF//gBTBsd4 go/e1N5B1ZY2KxOPHB++jmlODXomqwxayXVqHincSbAv8rpd9XNzGl9Grso+QseC0Qqy t01g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o25-20020a637319000000b0051b29733bc9si2596432pgc.715.2023.06.01.04.52.06; Thu, 01 Jun 2023 04:52:20 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232329AbjFALL5 (ORCPT + 99 others); Thu, 1 Jun 2023 07:11:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232380AbjFALLu (ORCPT ); Thu, 1 Jun 2023 07:11:50 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E0693107; Thu, 1 Jun 2023 04:11:48 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 3E08380F1; Thu, 1 Jun 2023 11:11:48 +0000 (UTC) Date: Thu, 1 Jun 2023 14:11:47 +0300 From: Tony Lindgren To: Marek Szyprowski Cc: Greg Kroah-Hartman , Jiri Slaby , Andy Shevchenko , Dhruva Gole , Ilpo =?utf-8?B?SsOkcnZpbmVu?= , John Ogness , Johan Hovold , Sebastian Andrzej Siewior , Vignesh Raghavendra , linux-omap@vger.kernel.org, Andy Shevchenko , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: Re: [PATCH v12 1/1] serial: core: Start managing serial controllers to enable runtime PM Message-ID: <20230601111147.GA14287@atomide.com> References: <20230525113034.46880-1-tony@atomide.com> <88d9edfe-2f39-b15f-f513-463eac6bf473@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <88d9edfe-2f39-b15f-f513-463eac6bf473@samsung.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,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 Hi, * Marek Szyprowski [230601 11:00]: > Hi Tony, > > On 25.05.2023 13:30, Tony Lindgren wrote: > > We want to enable runtime PM for serial port device drivers in a generic > > way. To do this, we want to have the serial core layer manage the > > registered physical serial controller devices. > > > > To manage serial controllers, let's set up a struct bus and struct device > > for the serial core controller as suggested by Greg and Jiri. The serial > > core controller devices are children of the physical serial port device. > > The serial core controller device is needed to support multiple different > > kind of ports connected to single physical serial port device. > > > > Let's also set up a struct device for the serial core port. The serial > > core port instances are children of the serial core controller device. > > > > With the serial core port device we can now flush pending TX on the > > runtime PM resume as suggested by Johan. > > > > Suggested-by: Andy Shevchenko > > Suggested-by: Greg Kroah-Hartman > > Suggested-by: Jiri Slaby > > Suggested-by: Johan Hovold > > Signed-off-by: Tony Lindgren > > This patch landed in today's linux next-20230601 as commit 84a9582fd203 > ("serial: core: Start managing serial controllers to enable runtime > PM"). Unfortunately it breaks booting some of my test boards. This can > be easily reproduced with QEMU and ARM64 virt machine. The last message > I see in the log is: > > [    3.084743] Run /sbin/init as init process OK thanks for the report. I wonder if this issue is specific to ttyAM serial port devices somehow? > I've tried a hack posted here by Steven Price, but unfortunately it > doesn't fix my issue. Reverting $subject on top of next-20230601 fixes > the boot. OK > Here is my qemu test command (nothing really special...): > > qemu-system-aarch64 -kernel Image -append "console=ttyAMA0 > no_console_suspend root=/dev/vda rootwait ip=::::target::off" -M virt > -cpu cortex-a57 -smp 2 -m 1024 -device > virtio-blk-device,drive=virtio-blk0 -device > virtio-blk-device,drive=virtio-blk1 -drive > file=qemu-virt-rootfs.raw,id=virtio-blk1,if=none,format=raw -drive > file=initrd,id=virtio-blk0,if=none,format=raw -netdev user,id=user > -device virtio-net-device,netdev=user -display none OK thanks I'll try to reproduce it. Regards, Tony