Received: by 2002:a05:6359:1:b0:b5:5b93:8e8b with SMTP id en1csp11204rwb; Fri, 19 Aug 2022 15:24:56 -0700 (PDT) X-Google-Smtp-Source: AA6agR7hfuq6Hg2MhZiYyczsRWHy0zB6GOpY8HHRTWSf36wLx1kMA79ZAHtr9/+4B/BrHA2bX8Ht X-Received: by 2002:a17:907:a0c6:b0:730:f081:6e8e with SMTP id hw6-20020a170907a0c600b00730f0816e8emr6050116ejc.479.1660947896699; Fri, 19 Aug 2022 15:24:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660947896; cv=none; d=google.com; s=arc-20160816; b=m3mAfOMgDWO0ha7S/rRu87Wj5Bhgmr4B+odxDxFavPKOTmKj1i5bva5pAHgwER7y6G aoAcxQlFpIPn3hZGBn5a4Fglq8v8N2ZpAIuf4yKLvxhjLKGm2bENFrWdsxrW7sY0kfnV kZIpiXaR9TgKw0agVV9dV3VDhW3j/u1DNula0uT4VLz3/2KuOb8ARwo1EQ3FlEoc0Fei 1YkRUqMe6GdkWCqnlMgpRRp4LVjvnNCIEmnuNQzCygHDb07UMbq73LzsSZb/7TAfzO4a wCqvV74qpwgGL8aNjubyhatuYcEnpLJdef+Xaberk65ef+BXvSI9eRr1Omcyu6MzKSap Dykg== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=cLkatCr2VyGfSQl50/DhzPmM9OxUG+Dr4hhXiugtgZs=; b=Ud0lOBiquc7Fore94yT96YY2EVcQ4284Wcpb2FnVi19tnUKiICIVjPon8mmr7K07ri vPdNkVNjIkzemScx/asteAsYzuguVGyNwa7W3Qqipp99Lqao6Iccyd2J145TLBjgu1Q/ 4ZZufE33lAJlYsPxFGeXt4g6DgIUZj37KVBpti0GzZ7+ON/oKqH/rWlZm+BKqMPbT0Go Q8KoJLpsaaqTeSiRkDK0nbn+3DPOEwf/xRKg8rH3CRnH2lbyu1M7ofUZmtU9NmonJcLk hCeDUQCvjMNn1n/oIfeRI7x0rtiMdS8QRdxTdeT80Ti8iMwYi5ESD0RpAFNk1k8rQg4V zEmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=m9DvhnoR; 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 sd36-20020a1709076e2400b0072f1e648893si3963199ejc.714.2022.08.19.15.24.29; Fri, 19 Aug 2022 15:24:56 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=m9DvhnoR; 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 S235275AbiHSWIv (ORCPT + 99 others); Fri, 19 Aug 2022 18:08:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237526AbiHSWIq (ORCPT ); Fri, 19 Aug 2022 18:08:46 -0400 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2C054D817 for ; Fri, 19 Aug 2022 15:08:44 -0700 (PDT) Received: by mail-pf1-x435.google.com with SMTP id y127so2471064pfy.5 for ; Fri, 19 Aug 2022 15:08:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc; bh=cLkatCr2VyGfSQl50/DhzPmM9OxUG+Dr4hhXiugtgZs=; b=m9DvhnoRuWxhnNFRKFtv34M69lxSh9GYstL3O5+XaAY9wMVKi3KKVWCJFEF3ybl8u/ YiPJxiFWBgXwWia7JSVhmE9kQbYpNR9gCofvYZ/iWIfNmyjdVyhKXIz3F/tE5gRKP7hC V8D8yiuAeyG/FcH/gekAq5hS6z8nenrcYVsaj0QHl9Lh+KcYRmJ9gWwOEc+DRaSu98cg 0D8AE7n7+J9huuJzARLg/g5pjym8qXBr36zIP3gZgoArGmjefmDDjF7B/ClZHdLgn1dC 8BxCf4YfEKrYH3y1sm7naH99r+kHTmnSRXfPyF632YukNIWZWvGuDVNNCS1GnNgmLJT+ F8yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc; bh=cLkatCr2VyGfSQl50/DhzPmM9OxUG+Dr4hhXiugtgZs=; b=PHQKG6e4ffzVAVpuUnSwLHcGqoNgDqwaePIoiz94WGEocHHh6bptgU4BeySD4TaT2g 2eYmBBLZkbnCApyeqD5JMXPIdoOqRPGs68sUJE7LTv12mF6uKcOirouUKKKKCoJyDwRZ CWKPBRRZcOISF7KK5ZD7RJZQdY6sX/04IJRWu13ekd+ybPAmzi0H+MsktYO1fkjf+pIv WIpwFR3R1ZYjVQcSQ/teSxS1iQd3pbGhMPFmuXFf601W3QHzxJPVtQm6xPgAhXP7ODtR pRvBMKcZ+Q33ZKEwATNS6MlwGT5vZh0i4Y6+o1rDGx8iG5wn9DRTxEgyjnwssDjny8It 3dmg== X-Gm-Message-State: ACgBeo3dHw41eY0w9rEqw5sX1HRKOiijAazgNbsIwPkuwuoTGn6MuYvq LyUL0jM5F46jE8T4gmiCvpw= X-Received: by 2002:a63:491f:0:b0:41d:89d5:b3e7 with SMTP id w31-20020a63491f000000b0041d89d5b3e7mr7882177pga.18.1660946924018; Fri, 19 Aug 2022 15:08:44 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id z62-20020a623341000000b005360dc9c45csm1792192pfz.43.2022.08.19.15.08.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Aug 2022 15:08:42 -0700 (PDT) Sender: Guenter Roeck Date: Fri, 19 Aug 2022 15:08:41 -0700 From: Guenter Roeck To: Bart Van Assche Cc: Isaac Manjarres , Greg Kroah-Hartman , "Rafael J. Wysocki" , Ulf Hansson , Tomeu Vizoso , Russell King , Marek Szyprowski , Saravana Kannan , stable@kernel.org, kernel-team@android.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] driver core: Fix bus_type.match() error handling Message-ID: <20220819220841.GA3230067@roeck-us.net> References: <20220816111311.GC1108868@roeck-us.net> <20220817010559.GA1880847@roeck-us.net> <20220818225932.GA3433999@roeck-us.net> <20220819112832.GA3106213@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Fri, Aug 19, 2022 at 01:01:29PM -0700, Bart Van Assche wrote: > On 8/19/22 10:45, Isaac Manjarres wrote: > > It seems that the patches mentioned in [1] are causing a hang during > > reboot for various ARM emulations when booting from USB. Can you please > > take a look? There's more information about what defconfig, rootfs, and > > qemu commandline to use at [2]. > > Unfortunately I can't reproduce this hang in an x86 VM with kernel v6.0-rc1 > and a USB disk attached via virt-manager. The lsscsi -v output shows that a > USB disk has been attached: > > [9:0:0:0] disk QEMU QEMU HARDDISK 2.5+ /dev/sdd > dir: /sys/bus/scsi/devices/9:0:0:0 [/sys/devices/pci0000:00/0000:00:07.0/usb2/2-2/2-2:1.0/host9/target9:0:0/9:0:0:0] > > Rebooting that VM happens in the expected time and without triggering any > kernel warnings. > > Since the issue has been observed in qemu, how about sharing the sysrq-t > output? I recommend to collect that output as follows: > * Send the serial console output to a file. This involves adding > console=ttyS0,115200n8 to the kernel command line and using the proper qemu > options to save the serial console output into a file. > * Reproduce the hang and send the sysrq-t key sequence to qemu, e.g. as > follows: virsh send-key ${vm_name} KEY_LEFTALT KEY_SYSRQ KEY_T > Unless I am missing something, this requires a virtio keyboard. So far I have been unable to get this to work with qemu arm emulations. Guenter