Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp526124iol; Sat, 11 Jun 2022 10:15:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3kdqkWysZl4nRBJzOy+KYIF8nOl2lhzyE/b45UFyw5DgxKTbhVd0hL03Oobt47p7chfAL X-Received: by 2002:a65:4501:0:b0:3fc:4895:283b with SMTP id n1-20020a654501000000b003fc4895283bmr44553977pgq.231.1654967730905; Sat, 11 Jun 2022 10:15:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654967730; cv=none; d=google.com; s=arc-20160816; b=VONx90pObOu2Baw8mKop+pz/SXuq5/KdyfNvO091OBsLSK9DGcCrjNdc8C8p+4VO0d o60nZmY7pb3jDiVQYt5xpml94UCx3bM4/h8+T2cC04+lWdgtsy2y+NM51YUIb3K9VMMo rvfvm0SiqWj4DBsYOitrqUFjK2T+OMMAJNVjd6/3aSIgoDB0MwOy5MM8I/+LoQQ/w+60 X3Uv5DyVM2D7zB+bC2hNECx9IyjJwDwEgv7N4bcgYTQjEr3KKo4Z9wBCqW+u6QBXuysV W4TRpB3/ruVkeHRi5AqGztuxnkTqj3iKm99g/PBp+OKkL5D8gXQJy3eQTuQYbzwkmxzJ 2Cog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :mime-version:user-agent:date:message-id:subject:to:from :dkim-signature; bh=eYTjSteehS/9bqxvK9gzpphfN0yym4BeUslPCWcTEyc=; b=iER1PtnxpRtUQls+fXyuLOckQKPgBnDg53O3iMeOLo6yRhqCBtVfAHWTH+L3lcgp0L EdK67lPGk6OucruUfFG25ouJdqnAY/vK4xtNgyy7Ar36yyAn1SsDYDDeMWA47bMbRpCG AyjDd0cX+tfvjlqeaRgTlcHlE1HfZNOI5U6GQHMwopho8nycfMsrKobgBd147CupilaR gUDK2C5QKEuWmZVLpSO4OlqCD+GfOHDd7I2y0LdSAcnV8hkT1zbg3Lrjzu/gNconLQvM +yxEoKmWSSR5Q7lkuWb9zSKboU9J1UoVwOi31nUdp6/C8+ppR0M67sWQaVmaZ1jbBVTD fBEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GZge180I; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ix14-20020a170902f80e00b00163ddc3b77csi3190132plb.573.2022.06.11.10.15.18; Sat, 11 Jun 2022 10:15:30 -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=@linaro.org header.s=google header.b=GZge180I; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235156AbiFKQdM (ORCPT + 99 others); Sat, 11 Jun 2022 12:33:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234231AbiFKQdK (ORCPT ); Sat, 11 Jun 2022 12:33:10 -0400 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAB6B1EC44 for ; Sat, 11 Jun 2022 09:33:07 -0700 (PDT) Received: by mail-pf1-x432.google.com with SMTP id x4so2052986pfj.10 for ; Sat, 11 Jun 2022 09:33:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=eYTjSteehS/9bqxvK9gzpphfN0yym4BeUslPCWcTEyc=; b=GZge180IIjp5LVPkgQj1ZvNfa+ch6obVOQjTApf8noS2ZgqToU6InjNszSiqK0+Sb/ 547r2lrNGxgCyTNq3OugF5oo40xQtOHp/MrhttRNuLXlMJsU2SDuY9saPKvKBc3njSoc H6UjisfS15gRCK1TL7lhhfmRNSGPf5NWLfGx7mOW6hzf+0sVKry4vq8je2cQmuA8f49R z9k0p5NWFjLFuF8Nydm7bcLuO5jSrAZjYvv8cSNsCcMET8n/TdaTolSNSZMgPbPyqOhk +++6jdeGH63BejWmbirWD/xy0L/IitJqOEy7tZToY30elS8pDsAcddWjgMM6SJjWqS0R sCNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=eYTjSteehS/9bqxvK9gzpphfN0yym4BeUslPCWcTEyc=; b=ALfpV0/NMy1gJ6jsUkQ8QiMEasQMSxgzHNGMRS/+8iP9OOMY9242DAJAOB1ZHgv+pv W5xOZM7kltrn7D8Le4R0knBCyGbJLhClPi5hwaC3DUpV8G9pLGwBFkNArrA9rzBBLM4R AJMZFJf3qlLCBZ2sCVWVv08RBQJ70R8T7Y0Cicdf0xmzhyphnTl74m/aQ9c35riCBCjH uoFu+RhJA18IRiGY4YRO2MkSJ5sXQfcK3T/AbZMG1J65u4e1hmet0Pf2MBfgVJbn0Wtt XeTWqLfgDzg7rO3wbdmoUMvqi8WkZtMk2FbLCGB07JhFJeGXXKnqfr3lIW8lIDO4Kv8A ST8Q== X-Gm-Message-State: AOAM530mF9UiMkp/qIpLpHcwRMmCLaObtvoLKIAsY+H4B1m7DQxO+8fU jkdciUJmRsewKmcfwvVwHsMmLKA5fZZ5vQ== X-Received: by 2002:a63:df03:0:b0:405:f5f:345f with SMTP id u3-20020a63df03000000b004050f5f345fmr4285293pgg.195.1654965187257; Sat, 11 Jun 2022 09:33:07 -0700 (PDT) Received: from [10.115.0.6] ([199.101.192.37]) by smtp.gmail.com with ESMTPSA id x13-20020a63aa4d000000b003f66a518e48sm1850810pgo.86.2022.06.11.09.33.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 11 Jun 2022 09:33:06 -0700 (PDT) From: Zhangfei Gao To: "Paul E. McKenney" , "linux-kernel@vger.kernel.org" , rcu@vger.kernel.org, Lai Jiangshan , Josh Triplett , Mathieu Desnoyers , Matthew Wilcox , Shameerali Kolothum Thodi Subject: Commit 282d8998e997 (srcu: Prevent expedited GPs and blocking readers from consuming CPU) cause qemu boot slow Message-ID: <20615615-0013-5adc-584f-2b1d5c03ebfc@linaro.org> Date: Sun, 12 Jun 2022 00:32:59 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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, Paul When verifying qemu with acpi rmr feature on v5.19-rc1, the guest kernel stuck for several minutes. And on 5.18, there is no such problem. After revert this patch, the issue solved. Commit 282d8998e997 (srcu: Prevent expedited GPs and blocking readers from  consuming CPU) qemu cmd: build/aarch64-softmmu/qemu-system-aarch64 -machine virt,gic-version=3,iommu=smmuv3 \ -enable-kvm -cpu host -m 1024 \ -kernel Image -initrd mini-rootfs.cpio.gz -nographic -append \ "rdinit=init console=ttyAMA0 earlycon=pl011,0x9000000 kpti=off acpi=force" \ -bios QEMU_EFI.fd log: InstallProtocolInterface: 5B1B31A1-9562-11D2-8E3F-00A0C969723B 7AA4D040 add-symbol-file /home/linaro/work/edk2/Build/ArmVirtQemu-AARCH64/DEBUG_GCC48/AARCH64/NetworkPkg/IScsiDxe/IScsiDxe/DEBUG/IScsiDxe.dll 0x75459000 Loading driver at 0x00075458000 EntryPoint=0x00075459058 IScsiDxe.efi InstallProtocolInterface: BC62157E-3E33-4FEC-9920-2D3B36D750DF 7AA4DE98 ProtectUefiImageCommon - 0x7AA4D040   - 0x0000000075458000 - 0x000000000003F000 SetUefiImageMemoryAttributes - 0x0000000075458000 - 0x0000000000001000 (0x0000000000004008) SetUefiImageMemoryAttributes - 0x0000000075459000 - 0x000000000003B000 (0x0000000000020008) SetUefiImageMemoryAttributes - 0x0000000075494000 - 0x0000000000003000 (0x0000000000004008) InstallProtocolInterface: 18A031AB-B443-4D1A-A5C0-0C09261E9F71 754952C8 InstallProtocolInterface: 107A772C-D5E1-11D4-9A46-0090273FC14D 75495358 InstallProtocolInterface: 6A7A5CFF-E8D9-4F70-BADA-75AB3025CE14 75495370 InstallProtocolInterface: 18A031AB-B443-4D1A-A5C0-0C09261E9F71 754952F8 InstallProtocolInterface: 107A772C-D5E1-11D4-9A46-0090273FC14D 75495358 InstallProtocolInterface: 6A7A5CFF-E8D9-4F70-BADA-75AB3025CE14 75495370 InstallProtocolInterface: 59324945-EC44-4C0D-B1CD-9DB139DF070C 75495348 InstallProtocolInterface: 09576E91-6D3F-11D2-8E39-00A0C969723B 754953E8 InstallProtocolInterface: 330D4706-F2A0-4E4F-A369-B66FA8D54385 7AA4D728 Not sure it is either reported or solved. Thanks