Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp454612rwl; Wed, 9 Aug 2023 17:59:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGknIJsK+tgsnVkGBnyM6573mGzxv/GSOKRDeJ6Nwd0rrckQ7rqdUxvW4PWlmSVKfIU7gkI X-Received: by 2002:a17:906:30cc:b0:99c:c8ec:bd4a with SMTP id b12-20020a17090630cc00b0099cc8ecbd4amr668340ejb.60.1691629167851; Wed, 09 Aug 2023 17:59:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691629167; cv=none; d=google.com; s=arc-20160816; b=PmwULR72tinW7CaCybX6ZIePaRrrmJY7EQiSPWpLllwBy88/ZfSzgcyjeROrQlg2DF 3IrgA2dVLkfAGw3UXw0a4vuHZaHidr6hH5B/EeEnuAhvz9oXx3+jWOk6eYX0TBIxIr68 YeldCZbIfKocJRTI1IiAsanxl+IcfDqeoNGfP1psSxsfD+P4gkW0wlXQIpap2p+ug1WQ /OfBaaALVruzPQ/SIlBiuSvK23+Or8Y6k3lZoSIIiDIDqVKwDkYISA0uHOzzVbZO/SRM n1r+BsqE2P4qKWy+tuE/L+pboRTMmEDuuT93kEuBqUUudJCz7dcbEdywCdAfkjdp6wh7 Fb0A== 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=RhYjGeDQjHaify9fYveKNlg3W8+1+0vVy9IFYKIMw0M=; fh=SKGeSLOt5PwGIkbAamrQMRpiWVoakjdqwwAqqTB6ghU=; b=b9ldyAtil1UAHUdTbwelwtMQXBlRuEkC1/N1LVn9HKaQA6eDQskc2xVsK33WGRUIhB p4VFqBRhBgdRPhC94j/k4kLpZ4VLMNFT2KpX0B1YOhUQT6XaRAgwu8rtWKQ1KCfC9Xjm nwEhnf2n1tazks7eHBEazdxtUZZlcbnd3gL+8MBE9BU6J4IHulhBjVOXXW+AM5S8qA/i sSIPMPuMD67jFo9cuu43TqVQiUgfFNkNOkMWmlfueCHSvTsta6+NqGtw1YGljToLfHro hdk36hfYDi3p87W8XRgnop+QkqqRo1GGq+9rfuS1DNm+TTBTHnrvB5fOlAWcgvajQoIw Izfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TmcJYfCn; 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 lj27-20020a170906f9db00b00991f4e7f49asi402354ejb.215.2023.08.09.17.59.04; Wed, 09 Aug 2023 17:59:27 -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=TmcJYfCn; 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 S231351AbjHJAKc (ORCPT + 99 others); Wed, 9 Aug 2023 20:10:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230019AbjHJAKa (ORCPT ); Wed, 9 Aug 2023 20:10:30 -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 7DFE610CF for ; Wed, 9 Aug 2023 17:09:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1691626183; 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=RhYjGeDQjHaify9fYveKNlg3W8+1+0vVy9IFYKIMw0M=; b=TmcJYfCnmq5zm2wFuGcK6rUmvlVg3sl4aFa4zHaQ07CgaJElz1jsrwAHeWA1/uDfmIMaHH fGArd4a4vA6Efd7mstjHs7u0Br+8rdqXQOgoElYrgCudRx+zM5HZ/JvFZ1ckxkxLYI4mh1 ODS/lnFKoMPRb7ik0mlhQQ/hYsuCOAc= Received: from mimecast-mx02.redhat.com (66.187.233.73 [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-583-dBjPouXWOO-yZ4G5_5ahoA-1; Wed, 09 Aug 2023 20:09:40 -0400 X-MC-Unique: dBjPouXWOO-yZ4G5_5ahoA-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 0557D3802BBC; Thu, 10 Aug 2023 00:09:40 +0000 (UTC) Received: from fedora (unknown [10.72.120.3]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EA7C02026D4B; Thu, 10 Aug 2023 00:09:32 +0000 (UTC) Date: Thu, 10 Aug 2023 08:09:27 +0800 From: Ming Lei To: Christoph Hellwig Cc: Jens Axboe , linux-nvme@lists.infradead.org, "Martin K . Petersen" , linux-scsi@vger.kernel.org, linux-block@vger.kernel.org, Wen Xiong , Keith Busch , linuxppc-dev@lists.ozlabs.org, Dave Young , kexec@lists.infradead.org, linux-kernel@vger.kernel.org, Baoquan He , Pingfan Liu Subject: Re: [PATCH V3 01/14] blk-mq: add blk_mq_max_nr_hw_queues() Message-ID: References: <20230808104239.146085-1-ming.lei@redhat.com> <20230808104239.146085-2-ming.lei@redhat.com> <20230809134401.GA31852@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230809134401.GA31852@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 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 Wed, Aug 09, 2023 at 03:44:01PM +0200, Christoph Hellwig wrote: > I'm starting to sound like a broken record, but we can't just do random > is_kdump checks, and it's not going to get better by resending it again and > again. If kdump kernels limit the number of possible CPUs, it needs to > reflected in cpu_possible_map and we need to use that information. > Can you look at previous kdump/arch guys' comment about kdump usage & num_possible_cpus? https://lore.kernel.org/linux-block/CAF+s44RuqswbosY9kMDx35crviQnxOeuvgNsuE75Bb0Y2Jg2uw@mail.gmail.com/ https://lore.kernel.org/linux-block/ZKz912KyFQ7q9qwL@MiWiFi-R3L-srv/ The point is that kdump kernels does not limit the number of possible CPUs. 1) some archs support 'nr_cpus=1' for kdump kernel, which is fine, since num_possible_cpus becomes 1. 2) some archs do not support 'nr_cpus=1', and have to rely on 'max_cpus=1', so num_possible_cpus isn't changed, and kernel just boots with single online cpu. That causes trouble because blk-mq limits single queue. Documentation/admin-guide/kdump/kdump.rst Thanks, Ming