Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp1113419rwj; Sun, 18 Dec 2022 02:20:17 -0800 (PST) X-Google-Smtp-Source: AA0mqf4HqVJiXIQSC7RFW615SBTXpUnEWkKQ+XgWk+HDZHVJcgCL2IafcPSu0Z72Z02iDSDABCXt X-Received: by 2002:a17:906:3604:b0:78d:f456:1ed0 with SMTP id q4-20020a170906360400b0078df4561ed0mr32437028ejb.33.1671358816866; Sun, 18 Dec 2022 02:20:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671358816; cv=none; d=google.com; s=arc-20160816; b=G4YOwGKbohIlSwPyniXBIvmVdbT39MjN/mcWaR3gBGAiyLMGYq4GGTa+wQFveipRp/ qDO8bSLD7yxsnV8sqJjB8FW6dTi5A6aMCcDWVSXUZ87EhVaEJD2tahoCdx+RvkCm1PKT YhmXZKHIGtWPBKPm9gA9ZuTH4d6jKGWhIDUgVKcl4Jbgu1yQpFuSI09Wev+gqCRbf2Y0 1OmPcMn/7NsJp0rkl0DP3bSfyoiJ0e8eTYvx4uPvuZdGKaOV5UrrzMP/LA6Ddebf2hTM mV2vADVgu13rzVoBaCVyNdxsGs364kgcBKSVUW4DFBSwi9BWhKA05sltlx6waAVGFDT1 hFaw== 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=feXyjPnurnVK4gBbaA/CLk1KFtdbFztkGmhfaSD2l/U=; b=DHxch3EFo7O0gYuPZt1vRFNFs7eWqLfC/3CJTxf1O8tzpUGs9adxGQPDFoHteH9v2H LdQKA1UuBHkpbtm6K2RC8ecPuMt46rVsAhPUyI6RwiMhmws7A5IFP6TVaLGUrhqp0wm3 mm5yzIYYqtjYognLQaM5QAqq1aKHUAXI/YIdG/E1T2LT0NYF5XL4PzWRoXtauE2oewfP nwmBBq8174QlSx/ItERERkvLqEsYs/NH3k4uo9IqyS9k1H3M/ipbjmQEBtjUdOUzob1R TSQDI022At4FNz9xhE+sXKu77s/dIq5GxPhKxJ4s+TVXZ6p6iRlOEAUctNttZIzCkG/T ZFjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XwlP15Rd; 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 sh38-20020a1709076ea600b007c1031ebabasi6950215ejc.49.2022.12.18.02.20.00; Sun, 18 Dec 2022 02:20:16 -0800 (PST) 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=XwlP15Rd; 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 S230211AbiLRJxe (ORCPT + 70 others); Sun, 18 Dec 2022 04:53:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229455AbiLRJxc (ORCPT ); Sun, 18 Dec 2022 04:53:32 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 793FABDF; Sun, 18 Dec 2022 01:53:31 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 24CB5B80A49; Sun, 18 Dec 2022 09:53:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD4E6C433EF; Sun, 18 Dec 2022 09:53:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671357208; bh=RuYdwQB4ZI3x6re4FTlh0ngNIRbofnQu9Y6HdzOfg/g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XwlP15RdOfhkmn8EmvJKQVjdxzqrBoJ6mA6Po1gX72xDCmUc4VKQDnouTl48gQ5Ea YITjhSRBTdv2ivDtkauv4APqm/lwDzb+UR1NTQfwIL0+OAt/mu2dvX4m+jHRbyIqzm 3NCHiqjatJNIPJN317/dsyU6wVQZQBfvpLsJii4+AAwkeYWP0RKsGSADz6h7m1r7pb Oo9RLX6EacXjhSMzS/rmTfahIb2DsOnQPME9awLTGEtHI1SXN6+XfhNrGMiHUEPdRM bzH8kr5s/6H5XLHyim6Ya5OefAWwBqgptNUA34/G/HJJ7xqdnzl9ul0t3NtwGTkJ0o SK3/mkLZVoRlQ== Date: Sun, 18 Dec 2022 11:53:23 +0200 From: Leon Romanovsky To: Petr Pavlu Cc: tariqt@nvidia.com, yishaih@nvidia.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: Part of devices not initialized with mlx4 Message-ID: References: <0a361ac2-c6bd-2b18-4841-b1b991f0635e@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0a361ac2-c6bd-2b18-4841-b1b991f0635e@suse.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Thu, Dec 15, 2022 at 10:51:15AM +0100, Petr Pavlu wrote: > Hello, > > We have seen an issue when some of ConnectX-3 devices are not initialized > when mlx4 drivers are a part of initrd. <...> > * Systemd stops running services and then sends SIGTERM to "unmanaged" tasks > on the system to terminate them too. This includes the modprobe task. > * Initialization of mlx4_en is interrupted in the middle of its init function. And why do you think that this systemd behaviour is correct one? > The module remains inserted but only some eth devices are initialized and > operational. <...> > One idea how to address this issue is to model the mlx4 drivers using an > auxiliary bus, similar to how the same conversion was already done in mlx5. > This leaves all module loads to udevd which better integrates with the systemd > processing and a load of mlx4_en doesn't get interrupted. > > My incomplete patches implementing this idea are available at: > https://github.com/petrpavlu/linux/commits/bsc1187236-wip-v1 > > The rework turned out to be not exactly straightforward and would need more > effort. Right, I didn't see any ROI of converting mlx4 to aux bus. > > I realize mlx4 is only used for ConnectX-3 and older hardware. I wonder then > if this kind of rework would be suitable and something to proceed with, or if > some simpler idea how to address the described issue would be better and > preferread. Will it help if you move mlx4_en to rootfs? Thanks > > Thank you, > Petr >