Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp637699iog; Mon, 13 Jun 2022 09:38:03 -0700 (PDT) X-Google-Smtp-Source: AGRyM1viY9EQrn08l0OmybKLI1WL192bwBWpzazPNhDZl9EKRarvqrUIzNImRKsyOeukThfNke0i X-Received: by 2002:a17:902:e851:b0:166:381f:633 with SMTP id t17-20020a170902e85100b00166381f0633mr440740plg.163.1655138282835; Mon, 13 Jun 2022 09:38:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655138282; cv=none; d=google.com; s=arc-20160816; b=zymkwOB9kqwjWWZmCSFwXDmw3Oq2da3invjK6wT6BmVV99NcwYSRY2VAGiqtNNvykD bDWXfYXF86gAz3qVtMyvYJ1nAyybgRQVt4w7trpYKUBoBlEOhFaA5TUpDBditj4Snkmw UkVQ6g2tPvkrZbIJBh1oxHCJ+ZKUd1ipW4fn3eBC4lMa6e6Jeho1jFMTQjfHGcYqvNBu MkiR3IS0B8SVHd9jzs7Dcgh/Sf8xf5uA82UwEvg1+0ehIz6QJ+Acxzo3HQIb97C+0Ptc DanpbLXdLBkiEbp0qZH+TccYYyMMyL6rqMo7nOrUE80tOAVaL03jYzgWh+HVhLhIvc5p OcRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:date:message-id:cc:to:subject:from; bh=VKOJDeq0S7YpEuklm7hbA1skg9njH68n2BNo5fhADL0=; b=vAfLC8o9XmjoA52OVguk+/jbdl0wXmAVH7wegyFDYAin0hin0oUSsA9ZiojmoCyQpt nPrg7by4vCP4ww5wHb+8ZpkODPA+oVYyNrPL1JjTgPcU3Zx6NZ+8uBT1J8KS9VOOxYoH cqCG4n9/7Yjc+w4TNW+W82dPL6VPvlFvCL/B/6zJB42u0vS1nmXbomtMJ0zz6NPVG2zA 7xqZxlmbZ6ZU/VPBl8hdkIWWNNsM/CwtrfO7vBU0u5oXEYuSrbh1vN5A++w2n5uKMIi+ 7O5JkNpcgQ5YhTxw+LFMS7u6WoNEd3OnrnEtnZ4xTFWhfD6kgzzvf7HZ4Lq7Oi2p84s7 9IaA== 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=hisilicon.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n66-20020a632745000000b003fda3856f04si9821969pgn.157.2022.06.13.09.37.51; Mon, 13 Jun 2022 09:38:02 -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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=hisilicon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354093AbiFMPMS (ORCPT + 99 others); Mon, 13 Jun 2022 11:12:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351297AbiFMPMI (ORCPT ); Mon, 13 Jun 2022 11:12:08 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62E4F113A0B for ; Mon, 13 Jun 2022 05:26:37 -0700 (PDT) Received: from kwepemi500016.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4LM9l02wydzjXZw; Mon, 13 Jun 2022 20:25:32 +0800 (CST) Received: from [10.40.193.166] (10.40.193.166) by kwepemi500016.china.huawei.com (7.221.188.220) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Mon, 13 Jun 2022 20:26:35 +0800 From: "chenxiang (M)" Subject: [Bug] Take more 150s to boot qemu on ARM64 To: CC: , , Message-ID: <36a0c658-ee5d-3a1c-416c-c041dc344bff@hisilicon.com> Date: Mon, 13 Jun 2022 20:26:34 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.40.193.166] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To kwepemi500016.china.huawei.com (7.221.188.220) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,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 all, I encounter a issue with kernel 5.19-rc1 on a ARM64 board: it takes about 150s between beginning to run qemu command and beginng to boot Linux kernel ("EFI stub: Booting Linux Kernel..."). But in kernel 5.18-rc4, it only takes about 5s. I git bisect the kernel code and it finds c2445d387850 ("srcu: Add contention check to call_srcu() srcu_data ->lock acquisition"). The qemu (qemu version is 6.2.92) command i run is : ./qemu-system-aarch64 -m 4G,slots=4,maxmem=8g \ --trace "kvm*" \ -cpu host \ -machine virt,accel=kvm,gic-version=3 \ -machine smp.cpus=2,smp.sockets=2 \ -no-reboot \ -nographic \ -monitor unix:/home/cx/qmp-test,server,nowait \ -bios /home/cx/boot/QEMU_EFI.fd \ -kernel /home/cx/boot/Image \ -device pcie-root-port,port=0x8,chassis=1,id=net1,bus=pcie.0,multifunction=on,addr=0x1 \ -device vfio-pci,host=7d:01.3,id=net0 \ -device virtio-blk-pci,drive=drive0,id=virtblk0,num-queues=4 \ -drive file=/home/cx/boot/boot_ubuntu.img,if=none,id=drive0 \ -append "rdinit=init console=ttyAMA0 root=/dev/vda rootfstype=ext4 rw " \ -net none \ -D /home/cx/qemu_log.txt I am not familiar with rcu code, and don't know how it causes the issue. Do you have any idea about this issue? Best Regard, Xiang Chen