Received: by 10.223.185.116 with SMTP id b49csp395777wrg; Tue, 20 Feb 2018 00:57:32 -0800 (PST) X-Google-Smtp-Source: AH8x226nADD9hyjEgG9/wvfJ8pE7cH+N5U56mKvMzQpVnlxExOMav3Jh9xY9GEUYkLZNj9YcYHft X-Received: by 2002:a17:902:3303:: with SMTP id a3-v6mr1824165plc.399.1519117052725; Tue, 20 Feb 2018 00:57:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519117052; cv=none; d=google.com; s=arc-20160816; b=NO6fmPbvmsSNcNDF+MqQCRZefZpqKxGaVh9L7YpNF7l0LdbFXqCAbg8qzGezuMuIUx 9w6m4BHOOHhI702rg2nNgXJ9i8sjqmtQ+VZ5qkbCGuekWtNK+qCdaJsv/KI7nYJcF9Ot yXY+tdQoLImbL0QkMP//8N03khzLaIVSxIfv79Ax+S293YFWBC3sLJvOT5k/+2bunOKy hGXGcuAJZPeboOoWrHWS7/X3aPWo4KYpt+ldXtvWeT7nQ8WWvirxyXMz+tWWNb4Q1EBf 00Kce1g8PM1yrG/73IBtmt8kbsB9AxrR+Mb8LuTHcJ0rFDRGkJeayie65U/BkvnFwlM8 HrhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:arc-authentication-results; bh=FWmt8KlIGF/UhCw0DfAFkLN3s9GSM01S3UGzGXw5lBY=; b=de2cvbPshwWzYE5vwbxDUjopTIb632ghSDZ7QkBFPNuWz1BOLBZdnNP0zwsJNUrWc2 B9TTlH+Wr281Aoru38FwDSe968JT9GpqxIidp7dUOJonfiX0soJvNzd7dpNQoQ0NJJH2 Pmty5aKi+ZmsPcz439Ex0FtyRp5yR8AAyBPhGzxYe4TjtbJgF4IxK3ySa4929UZe2H1o ERKsPeEynRf97Uvkbhcp5xww1mdjf6gey900k8fPj6yI3TmsxP2YIX2M3nwBBjbgxCqg p1/tZm+XKF0hycnPb2aTF8CQKVvP6kyIgLwm3Qwy6alXI6LmtJkPsmkKO03bOpohOjp3 +kuw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q11si6165067pfd.242.2018.02.20.00.57.18; Tue, 20 Feb 2018 00:57:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751387AbeBTI4j (ORCPT + 99 others); Tue, 20 Feb 2018 03:56:39 -0500 Received: from ozlabs.org ([103.22.144.67]:51203 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750781AbeBTI4i (ORCPT ); Tue, 20 Feb 2018 03:56:38 -0500 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 3zlvcN2mrBz9ryQ; Tue, 20 Feb 2018 19:56:36 +1100 (AEDT) From: Michael Ellerman To: Vaibhav Jain , "Manoj N . Kumar" Cc: linux-scsi@vger.kernel.org, "Matthew R . Ochs" , Vaibhav Jain , Frederic Barrat , linux-kernel@vger.kernel.org, Uma Krishnan , linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] scsi: cxlflash: Select SCSI_SCAN_ASYNC In-Reply-To: <20180219071037.27938-1-vaibhav@linux.vnet.ibm.com> References: <20180219071037.27938-1-vaibhav@linux.vnet.ibm.com> Date: Tue, 20 Feb 2018 19:56:35 +1100 Message-ID: <87sh9wrqd8.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Vaibhav Jain writes: > The cxlflash driver uses "Asynchronous SCSI scanning" enabled by > CONFIG_SCSI_SCAN_ASYNC. Without this enabled the modprobe of cxlflash > module gets hung with following backtrace: > > Call Trace: > __switch_to+0x2cc/0x470 > __schedule+0x288/0xab0 > schedule+0x40/0xc0 > schedule_timeout+0x254/0x4f0 > wait_for_common+0xdc/0x260 > flush_work+0x140/0x2a0 > work_on_cpu+0x88/0xb0 > pci_device_probe+0x1d0/0x220 > driver_probe_device+0x408/0x5b0 > __driver_attach+0x16c/0x1a0 > bus_for_each_dev+0xb8/0x110 > driver_attach+0x3c/0x60 > bus_add_driver+0x1d8/0x370 > driver_register+0x9c/0x180 > __pci_register_driver+0x74/0xa0 > init_cxlflash+0x158/0x1cc > do_one_initcall+0x68/0x1e0 > do_init_module+0x90/0x254 > load_module+0x2f8c/0x3720 > SyS_finit_module+0xcc/0x140 > system_call+0x58/0x6c Why does it "hang"? That's kind of bizarre, I would expect either a build or runtime failure if a feature the driver requires is missing. > diff --git a/drivers/scsi/cxlflash/Kconfig b/drivers/scsi/cxlflash/Kconfig > index a011c5dbf214..f054c1b0fff3 100644 > --- a/drivers/scsi/cxlflash/Kconfig > +++ b/drivers/scsi/cxlflash/Kconfig > @@ -6,6 +6,7 @@ config CXLFLASH > tristate "Support for IBM CAPI Flash" > depends on PCI && SCSI && CXL && EEH > select IRQ_POLL > + select SCSI_SCAN_ASYNC It's user configurable, so it's rude to select it. It can also be disabled on the kernel command line, so this seems like a fragile solution. cheers