Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35649883rwd; Mon, 10 Jul 2023 10:21:53 -0700 (PDT) X-Google-Smtp-Source: APBJJlHVM6XSWMN5qFCvEidVgwbWZsmvTVyTc+jHndMMQ+CSg2AOByjuVNIKsMk5c49nX6OIATQ1 X-Received: by 2002:a05:6a00:18a8:b0:654:4a24:d787 with SMTP id x40-20020a056a0018a800b006544a24d787mr17643851pfh.12.1689009712958; Mon, 10 Jul 2023 10:21:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689009712; cv=none; d=google.com; s=arc-20160816; b=OpNCf+5wvyrpHNwSutqO3tOlsMHF3hDfMsYtpHiPZbEwzh9MYdxtZmkXcY8TFsUO7M ZXFiVgYsZMiih5o8mmrAQY55/OteGauPWF+1bAc12UQnpKDRSl9doY+/XRWu+4zuiAVm 9lM4QkVC4nyqeVJwWsVNsnpBkPG0Br3SeXUgXwWOmMIu5ATmC+tjccEWf/RNLnDF+3wR ko0zeHtqjIQMAWBNqCycvvu0U01F696DBe+W7WnXxqs1QAppNfh1dEgrsbDcRvH6mu8T rmp+z7QwM9seqeM7biVRn2p8y5qWZTjYBHMSk4jZ1Wh/AlBExcvqondWFHTY52czhI1q d4hA== 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=JFiJJ5dbjIQyhn/1V3HmOxfq92ME+mqCcHpsxzYuehw=; fh=91imTS2KYKcW6NNp8AkdUBL3P4ay/jfLxFKwHEKt2Og=; b=raCmsTN6wjTfQfFtdXGGbGK3lot31FsFA6JqPqkcq5Cuk9EMEc+tR8NJW1hY9ryf3T yQ9ylZ67egg3GjRygWbQnyU2w0MSi4t9qLM6YoMYEQHCATq6csU6i6e0rpCk3s044vj2 SJ/kOZKCMnbPI4t5rxdmZLDwG/846lKjUsTSgxNGZWRtzF/Q9CVt/aZ9yHet7oaKT9Fe wiFG3unADK5lBeIWrypgLQjnfPeRHnWeCr0lIGzYpW0TsuJ9UL6hejHUIrjsYQYReJly D+LM84Slv04MypzocbWbiyY/BeZaghpaKLGmOGfVh8RWAIuTjAhBEepWT3EnHv68OuPa Dycw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mnFzUs11; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a2-20020a056a001d0200b006762f8fe108si57580pfx.111.2023.07.10.10.21.41; Mon, 10 Jul 2023 10:21:52 -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=@kernel.org header.s=k20201202 header.b=mnFzUs11; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230472AbjGJQvx (ORCPT + 99 others); Mon, 10 Jul 2023 12:51:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230417AbjGJQvv (ORCPT ); Mon, 10 Jul 2023 12:51:51 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B4B9E3; Mon, 10 Jul 2023 09:51:47 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B0A4A6112C; Mon, 10 Jul 2023 16:51:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 463C9C433C8; Mon, 10 Jul 2023 16:51:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689007906; bh=5z3WsJxJGTtWjrX2KHLkkdeETGptB61J+3QAspj8jBw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mnFzUs11tjzs+9ReI3FmujHvobKv5/wZaFYYlv72apTaj5q+5nJjG3Xvck7oyN0Bb 3r44Ru3KtKzPCZgCsOL43nG19l61vH11QqTchheHpnKzoOF/dVEenhPlN7QrlfjL2c FeX3O0mEnPMK13b8PlAUX6IiOnBOVP4/wLoDDuUj4ZMDIksPVrHBzd1QOTy9kmahwx eobFZLlT4bSmSj1mrHmB1i/EikuL3cWQ95AmcH8Dqn1YdcXFE0GbnrJEJjvnJhy8yW ZKEcOl6J/0mSWQsL0oTMC9iBItuU/lUz+vZp71BaggN8U1ScOprjLHgJij04ThusAj TUT5ije+zaq+w== Date: Mon, 10 Jul 2023 10:51:43 -0600 From: Keith Busch To: Ming Lei Cc: Christoph Hellwig , Jens Axboe , linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, Wen Xiong , 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: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 On Mon, Jul 10, 2023 at 05:14:15PM +0800, Ming Lei wrote: > 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. Is the problem that the managed interrupt sets the effective irq affinity to an offline CPU? You mentioned observed timeouts; are you seeing the "completion polled" nvme message?