Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3709738pxb; Mon, 1 Feb 2021 02:36:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJwTgthNWlIqw3PUAFT9zUqc/vyC7JarOB0oJIx5gCoGUPfcyTH2E8CUbII4Yg4XneFv940p X-Received: by 2002:a17:906:c446:: with SMTP id ck6mr9464745ejb.491.1612175799088; Mon, 01 Feb 2021 02:36:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612175799; cv=none; d=google.com; s=arc-20160816; b=D0dCtYSTqCs1EnP+IaQ9j1XFIm0EaW4xDQpt1TvIfobQzAVt5nYnNOgD0Oqm6d6+0L 2xE3N10XoH8rBes+gkh54US8y001N3P2bRiYcUAau+jh2DGKcGC0QsaGbfNr8p0HlhK/ ucYGJErQFAOTz/bYfuG3rHTB4W17IvZRV/TduzHRDpDzgsglDsN0VxeUrJDvNNSA/gbv ealvW0rXs/akYup/f5Pttxbw8A/RwiCQU8WYGcja8S3JqtlO4+4BAufp9jisJm8uh7X9 zLvwrtWSrq0TXEBJZVFTCyJE6wEw6TjaCKjtOdIDc7bXZG2VRF0U5p2FMMmXKeTynp5U 6huA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=eEz9JbzZ/AJWyi5cYDNo36zch3xhlNqzSsTkQFyeOLA=; b=gVAoGX63sLYMUqay8GR7dg6DWwX4UjDZGBgM2uNLU5PCX78QiUZwa2EzgutQapPnRB GDEPuQSyEgsvXCrhMmN86Af0cDgM0nX0qXuXtgLSE0yth3UZqQnBF705+dBRVBtJJ4um JsQqjEbw96GE5pdXR26yEzNUvnZYOYgkQoD0WuIj4/hV4p2rfgB2h1nhogIF1Xf/iVf8 nF0BbqQqsUnLUN/V7g4etRjPb1kN4Yc30i1SUohG721q/MTKVmwKiQGnghGBvyzDHgmm sqTFF8z17qMU1Oawl1Ky7fPpEO+RVHV71t6WSjgaQGg4QYTMc0+GBSBm3sxGdVcpTLi5 a8aQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n20si10267919ejr.520.2021.02.01.02.36.14; Mon, 01 Feb 2021 02:36:39 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233167AbhBAKcq (ORCPT + 99 others); Mon, 1 Feb 2021 05:32:46 -0500 Received: from mail-ot1-f51.google.com ([209.85.210.51]:47010 "EHLO mail-ot1-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232392AbhBAKcp (ORCPT ); Mon, 1 Feb 2021 05:32:45 -0500 Received: by mail-ot1-f51.google.com with SMTP id d1so15725848otl.13 for ; Mon, 01 Feb 2021 02:32:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=eEz9JbzZ/AJWyi5cYDNo36zch3xhlNqzSsTkQFyeOLA=; b=hPAMQRtrUUc/u3Gj5InfYq+KnTz/z47AGtnrxNSmciGe/hBRpUXoMkkGaFGrvQTTH8 K8syZ8NRXS4d3Y9J+ISeWLtbhWgfcptrrI3Lcu5rcqhCR3bjpkBzDM5cbLR+l4TrBNtf Zthem8TlnPUEJWU/8R65JhXdxItX4F1X1+RiW8bbstofKjkQ1Pot85tDpnyW/ckJ+aDw 0gOHjRc9HF/9gSKoo1Pla999axEbqrZMlMWUZxmeLUP1fD0BIIO6fo/0wUCGZ6lzVqon 6KZuYuaRmjf2tT8y38742HDmnt4VIcpxncBiWQIpOYxXYvY4AWFvdMTczyfi7PI6jBd2 T19g== X-Gm-Message-State: AOAM533mjo/sDVlMPuy5/NklfbH/UYsNNanp4fYNHFF+mfNCN9JflEQS 3d9Pz6FjM1P6vFFFLFk/wHMR1PP2zTsCMtN+CmM= X-Received: by 2002:a05:6830:15cc:: with SMTP id j12mr11352990otr.145.1612175524376; Mon, 01 Feb 2021 02:32:04 -0800 (PST) MIME-Version: 1.0 References: <20210130040344.2807439-1-saravanak@google.com> <20210130040344.2807439-3-saravanak@google.com> In-Reply-To: <20210130040344.2807439-3-saravanak@google.com> From: Geert Uytterhoeven Date: Mon, 1 Feb 2021 11:31:53 +0100 Message-ID: Subject: Re: [PATCH v1 2/2] driver core: fw_devlink: Handle missing drivers for optional suppliers To: Saravana Kannan Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" , Marek Szyprowski , Marc Zyngier , Tudor Ambarus , Linus Walleij , Bartosz Golaszewski , Linux Kernel Mailing List , Android Kernel Team Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Saravana, On Sat, Jan 30, 2021 at 5:03 AM Saravana Kannan wrote: > After a deferred probe attempt has exhaused all the devices that can be > bound, any device that remains unbound has one/both of these conditions > true: > > (1) It is waiting on its supplier to bind > (2) It does not have a matching driver > > So, to make fw_devlink=on more forgiving of missing drivers for optional > suppliers, after we've done a full deferred probe attempt, this patch > deletes all device links created by fw_devlink where the supplier hasn't > probed yet and the supplier itself is not waiting on any of its > suppliers. This allows consumers to probe during another deferred probe > attempt if they were waiting on optional suppliers. > > When modules are enabled, we can't differentiate between a driver > that'll never be registered vs a driver that'll be registered soon by > loading a module. So, this patch doesn't do anything for the case where > modules are enabled. For the modular case, can't you do a probe regardless? Or limit it to devices where the missing provider is a DMAC or IOMMU driver? Many drivers can handle missing DMAC controller drivers, and are even supposed to work that way. They may even retry obtaining DMA releases later. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds