Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2319216pxa; Mon, 17 Aug 2020 06:54:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJx42tbOvIN0YQkLnuXXRkzWH+bKzhrq74TkanRM/ez92SuhFxyZzcOJpPGE5F0ShIck78 X-Received: by 2002:a05:6402:1591:: with SMTP id c17mr14746336edv.111.1597672447908; Mon, 17 Aug 2020 06:54:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597672447; cv=none; d=google.com; s=arc-20160816; b=w/ac/e/BFoDNZLpVop7QPK9d0+znroGSi89dV7aRy587yojl1HIprAmFcowaZ7uSs2 qTfgc7wOHlTozxVhjiKTwJQ//4PIVlxJ2WclZ8EiqROdIQ9WQ+UlN34kgMDXOavCzlo+ xjYhsf5rHXBqLufE4f2yoKzAvROaY9uLSfMU92CSZv9W2NRozK9sQhgI24qI2LGROg3/ Ku4Lopokt3wIpq8MRLLBjYkwXQiDt/RmC8mUBG+vzrPCeiuzND4MV4JjMhOFT3dODqb3 dnD2UDDXli2nFsBR3r75Vf44QxETLfe+76CiabZzljfHTlIZvIfhWqhUtheBBDJpamo8 4nwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:mime-version :message-id:subject:cc:to:from:dkim-signature:dkim-signature:date; bh=wZ6DLhs3/Nle2hWXNU/DY83Ezlnj/RloUcwPjKzeXfI=; b=jGSus49F0aBuBfWdObxEra7Momnr/dHZT9Nma47Y1PUn4ki2qytfckY6mNTGSyUcCD hf7no7an3gFEe47B16N3Jl+aDB3wcPXWSLyVhrCMHlvGatVnfb27M5j0otq0n6MqX4ix bN3Jz0WDWCrxlZ50CsghebDldBMqsSgl1y2+Fs4ubfSFUH+nwi71kieVewy8FPjlw4zm /sqMbQKC+QDQapiCRc4QPdPKdFm0ZmWKSPFJXxLPtw8zxsTpFdSoCxaKzH2aCyaW/3wP Yloy3yPkqZkFodjnm5lj+SnFEyp4nfKasd/mtH9AFefj+tJ3Dg/e77NCBRccRUY7gnAw uswg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Zihd5bMM; dkim=neutral (no key) header.i=@vger.kernel.org header.s=2020e header.b=J7GSAWZo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g11si11213398edp.245.2020.08.17.06.53.44; Mon, 17 Aug 2020 06:54:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Zihd5bMM; dkim=neutral (no key) header.i=@vger.kernel.org header.s=2020e header.b=J7GSAWZo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728661AbgHQNuN (ORCPT + 99 others); Mon, 17 Aug 2020 09:50:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727953AbgHQNuM (ORCPT ); Mon, 17 Aug 2020 09:50:12 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4063EC061389 for ; Mon, 17 Aug 2020 06:50:12 -0700 (PDT) Date: Mon, 17 Aug 2020 15:50:11 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1597672210; 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; bh=wZ6DLhs3/Nle2hWXNU/DY83Ezlnj/RloUcwPjKzeXfI=; b=Zihd5bMMlDli86Taj4JtvwpYpUqC7EB6v73VVfmCMWtCf3kotBdF/bAROQfLV0uzZp/W2D 9OyxQ2HH3aAF1w584CRcligr7oDKrBME3pLt5tslArwX5Rkg0R7b+oUXTnpOUoVoLAAfM+ Ii3OlPrxjTDZblfcNDHl+UQDVCoVC2R/8c95co5qZj3xvsGQ+K+PA94sQadXQbZWhM6vdM AqJHvU1CQ17k+rp83/olZR4VVJ5w/ep4IdhOqB9yWd2bb8u9SC6xpfiA4+FBLS92hCixUd YISQ+3bR0vXKyvYeZWUc5H2IlXnnsGzeQizcRRploB8o1ucvtwa6suLiGb5HvQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1597672210; 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; bh=wZ6DLhs3/Nle2hWXNU/DY83Ezlnj/RloUcwPjKzeXfI=; b=J7GSAWZo8tw2hAmp1FL/4OEBW3f0peMwb4DvtSd0zsKCiDLEy/QXi/hws+Cl03z2LybWu1 OJ8AVBIra937b/Cw== From: "Ahmed S. Darwish" To: Keith Busch , Jens Axboe , Sagi Grimberg Cc: Chaitanya Kulkarni , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org Subject: v5.9-rc1 commit reliably breaks pci nvme detection Message-ID: <20200817135011.GA2072@lx-t490> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Below v5.9-rc1 commit reliably breaks my boot on a Thinkpad e480 laptop. PCI nvme detection fails, and the kernel becomes not able anymore to find the rootfs / parse "root=". Bisecting v5.8=>v5.9-rc1 blames that commit. Reverting it *reliably* fixes the problem and makes me able to boot v5.9-rc1. Please advise. commit 61f3b89630973037f67d8e25e5d26e80a51a7b37 Author: Chaitanya Kulkarni Date: Wed Jun 17 10:05:13 2020 +0200 nvme-pci: use unsigned for io queue depth The NVMe PCIe declares module parameter io_queue_depth as int. Change this to u16 as queue depth can never be negative. Now to reflect this update module parameter getter function from param_get_int() -> param_get_uint() and respective setter function with type of n changed from int to u16 with param_set_int() to param_set_ushort(). Finally update struct nvme_dev q_depth member to u16 and use u16 in min_t() when calculating dev->q_depth in the nvme_pci_enable() (since q_depth is now u16) and use unsigned int instead of int when calculating dev->tagset.queue_depth as target variable tagset->queue_depth is of type unsigned int in nvme_dev_add(). Thanks, -- Ahmed S. Darwish Linutronix GmbH