Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35106590rwd; Mon, 10 Jul 2023 02:39:01 -0700 (PDT) X-Google-Smtp-Source: APBJJlEIxa8bUuJs1IEnCOXG9vJc4BZ3bY7LHCmk9LZ7nj77KLDCEltLIE7CPFtfJtshTn9dHjIy X-Received: by 2002:a05:6a00:234d:b0:676:399f:346b with SMTP id j13-20020a056a00234d00b00676399f346bmr13683893pfj.1.1688981941169; Mon, 10 Jul 2023 02:39:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688981941; cv=none; d=google.com; s=arc-20160816; b=NAadRMUkHygkujxLmW+00jM3EjIWSCCOYoKm0X4f+sWsCBYGkKkgvcb6NsjQBLUbsT b14oDW614GcZ/SAPYIeTQnFd0BmIFvTuivoz1vGi3PgCrzrmWLsN1WyKi4S8Ke4WYvzd WYeQWOVITNDxAiV2ucaL6+eqThrXiJh4ApkWz0Nm2I5ow2qhmykxL85E59H5/ZQfjJXh Z0UrFnRQV66vN3QV35CO6nwTu2jHaf+l9TjJj/+ZBAISHwL+gTrheoOanxvoKgcR8M0n sfVCwrwXT7YLWu1+aamf4aq8d0c22mVQnZFs/dJTv3AQUhAyVXFNhQqkHtUX8LYfKo5f lgKw== 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:dkim-signature; bh=3ZxZGq4D+R9v/uHRHPVTjCJO+HqCh9drWSD3QE0wPss=; fh=J26Cd+DBCzjzXAPfRwMXdGp2yjIRUjBzGS/7hXJ0MFg=; b=WFWja34cpLq39U4Kx/SKJH124sPBub3TiU9jN68b0u+d8Rt2lWVEVUFfd5cnXyv3EE T5Byhu+ia2EdTkqPv9qNa7er4x8FFCfz6t/F0Je8Eyb4ZyC9WJ7G3+Ofj4cy8ppXenK5 QBH4TwW2dXqi58m33/lz/Ph3u4pAV/7AZUS6+qz6TEU2qi0emymyPRpWV56rvKSPf4TB qJ5xWwLc77ZlqbQaPyxqPjY3nLhfNYc19REqTZr3oh8vvb22a43ysXayBR/gmHPpwylH J3/dcoaE9oEQAlg7b9Af5uro6A42wvyA2asmVHlQc6gCQuvsp4CO3qqYaodraJ+B2lY8 lcBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AVQsQyFu; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cp22-20020a056a00349600b0063d19a45a93si8862451pfb.280.2023.07.10.02.38.48; Mon, 10 Jul 2023 02:39:01 -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=@redhat.com header.s=mimecast20190719 header.b=AVQsQyFu; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231679AbjGJJPT (ORCPT + 99 others); Mon, 10 Jul 2023 05:15:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229663AbjGJJPR (ORCPT ); Mon, 10 Jul 2023 05:15:17 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C93B8BA for ; Mon, 10 Jul 2023 02:14:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688980474; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3ZxZGq4D+R9v/uHRHPVTjCJO+HqCh9drWSD3QE0wPss=; b=AVQsQyFuW/b/VBc9J2Yk2JFnKhQBsXoODx4Wy3HiLp5fyQ4VMr0y06kHisWfQ3Xh8+5AiW yHdWc+KcxFMJC6SDKPAOSS3J4XytusIcF01WiIZnyXhps67dhuU3ivHissKphJGTt/YIuR p486VwbQUSMqnHoJyYrFPs5l7bLUJcc= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-607-dq1Pi2d5OE2_NXrRq89yKg-1; Mon, 10 Jul 2023 05:14:28 -0400 X-MC-Unique: dq1Pi2d5OE2_NXrRq89yKg-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 358492A59568; Mon, 10 Jul 2023 09:14:28 +0000 (UTC) Received: from ovpn-8-31.pek2.redhat.com (ovpn-8-33.pek2.redhat.com [10.72.8.33]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 427E32017DCB; Mon, 10 Jul 2023 09:14:19 +0000 (UTC) Date: Mon, 10 Jul 2023 17:14:15 +0800 From: Ming Lei To: Christoph Hellwig Cc: Jens Axboe , linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, Wen Xiong , Keith Busch , Dave Young , kexec@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, mpe@ellerman.id.au, Thomas Gleixner Subject: Re: [PATCH 2/2] nvme-pci: use blk_mq_max_nr_hw_queues() to calculate io queues Message-ID: References: <20230708020259.1343736-1-ming.lei@redhat.com> <20230708020259.1343736-3-ming.lei@redhat.com> <20230710064109.GB24519@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230710064109.GB24519@lst.de> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, 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 On Mon, Jul 10, 2023 at 08:41:09AM +0200, Christoph Hellwig wrote: > On Sat, Jul 08, 2023 at 10:02:59AM +0800, Ming Lei wrote: > > Take blk-mq's knowledge into account for calculating io queues. > > > > Fix wrong queue mapping in case of kdump kernel. > > > > On arm and ppc64, 'maxcpus=1' is passed to kdump command line, see > > `Documentation/admin-guide/kdump/kdump.rst`, so num_possible_cpus() > > still returns all CPUs. > > That's simply broken. Please fix the arch code to make sure > it does not return a bogus num_possible_cpus value for these That is documented in Documentation/admin-guide/kdump/kdump.rst. On arm and ppc64, 'maxcpus=1' is passed for kdump kernel, and "maxcpu=1" simply keep one of CPU cores as online, and others as offline. So Cc our arch(arm & ppc64) & kdump guys wrt. passing 'maxcpus=1' for kdump kernel. > setups, otherwise you'll have to paper over it in all kind of > drivers. The issue is only triggered for drivers which use managed irq & multiple hw queues. Thanks, Ming