Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp936768pxb; Thu, 21 Apr 2022 14:00:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgoGafFF2yOO/5+vGTqKiLL81OQu9N1cYwdX3frHPGR9ANW60rjFJg2PSHc1WfvTfeQUdx X-Received: by 2002:a17:902:6bc4:b0:154:6b3d:a720 with SMTP id m4-20020a1709026bc400b001546b3da720mr1311927plt.104.1650574812937; Thu, 21 Apr 2022 14:00:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650574812; cv=none; d=google.com; s=arc-20160816; b=nBqOrucXlLJX5l2M97cSztVc9UQfe5wA5bFYOe53D3a2oaP95FjCVEfUh85on/I7Pm Dq3D+Tk3Ir9o0JrYyFxM/49Aq22DMkU8cMlG6xA0RY/zZhU3ZNgn/JETXQn+nGM6Vshq 09G1gb8pjhgW9biQJCfWzwVAa7JrYXBxHBr/enyHr9Y6kj706k2BCVje4mRY6XV5xSKO Ipt14j3QuJprlhg3f/AifTbH8naRpeHyPrG2EPSRtoQSKtEyYcnwoguZZLoiQ7Pyl5i5 k8sYnCywyawuSS6aM0L5hFAMvsE4xv8Pv4XHk72VgQkVjueGLnOxhzIthlKg2JM6PEWh CI0Q== 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:dkim-signature; bh=zpBv9Q1tNkPDBxpwPbLdjbsmA3r5cT/nw1H2p8//7VQ=; b=YPxrwzUdu6hSUGg13xaFt6CSEkBAgtuoXxsftM/WnVYgpy4Tui631sYQa1sYKDW8qe feKpZw7SGugB9vntJfMvJXWgumFFTC3CfnyWElVujBdrsrtKs2YvNYD1Xs7/QDN2Ml9I HhmUCioaTMlveZZ5qzgDYeDzBtP2Bm8F3s9pZ6NfRKPvUt800IVZZsuCGWiL8EQrMY+Q qQ0/1MMKt609zq8n7662kpCzc9jv2GeFCcCKrYccbrBbD+qYHApLYz+XDM3qFAcMOBTa KGh0ZgNRQzQ4nxOmXHe6eEyNsTufaHn4mCtxfzJ6rHeizrlNSYS5FeV7ZMu7enmdmM97 XiGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20210112.gappssmtp.com header.s=20210112 header.b=nZvZCFCB; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y5-20020a62ce05000000b005082e81fc41si5756988pfg.146.2022.04.21.13.59.52; Thu, 21 Apr 2022 14:00:12 -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=@intel-com.20210112.gappssmtp.com header.s=20210112 header.b=nZvZCFCB; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239054AbiDSS0b (ORCPT + 99 others); Tue, 19 Apr 2022 14:26:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357104AbiDSSWp (ORCPT ); Tue, 19 Apr 2022 14:22:45 -0400 Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 233F6419A9 for ; Tue, 19 Apr 2022 11:15:16 -0700 (PDT) Received: by mail-pg1-x532.google.com with SMTP id 203so5821227pgb.3 for ; Tue, 19 Apr 2022 11:15:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zpBv9Q1tNkPDBxpwPbLdjbsmA3r5cT/nw1H2p8//7VQ=; b=nZvZCFCBv0zvPnol4PONdYJwznuBCN/AxhcMZT3PpAg7N/VnQFuPRmc59dVJmZhUZX ECMv/hjCGO+Yo9hPm0IPGeKJ0B6ktiAJyHTxXvVuF2aVbAVF8CuAQHgIJP1LNJMXn9tW pewlp4W+kHkNI1zg56QFlr1V7Y7IC03EodUwq8bmU0cnToRJRtLyABVPCFbP3syCDchx LDjvNXMhS7Xh2ngpvwPQ2GqpF+opYdpOjCsLq6UgJBnYaZhcq7SIJ1v5a7aSd1NogVh6 VSjMR54pFEhQe1/PiG/gXQU8g8fXg+WNaoH+BrDQzIaYm/mRG5gcSrOvz7wSwTEhHzhn RLUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zpBv9Q1tNkPDBxpwPbLdjbsmA3r5cT/nw1H2p8//7VQ=; b=IklZ+5x7iIJCvXUpc2iXlkEmu+NWPWxiJpAiRvC8FskIrnKi5dz3RJJEBLHUhtQnae K649ZpIccwQblSiUnoY7Z0+oaemMsD3prErA2EH5uvkVtkggTSCSEg862aSdYwUWRyci e/hxuX8yy1XPqoWV2FwvSQUOuuc7aei7cgvUeX9KJVTUaZOTUDLAQ1tCnudkgVtybKvS X7cExcAOm+ucHMVPxlkWBEsXK2R4tCUe5Ck3VPz+RiBQF2qeVavu0VYa05QzSpMwSxgl /Zf5TkHTOp/Gc+wyuCH4fxiyrXZXTftQ6QBOZ94uLCNSiyLGbMYJe+b/3s6m6NxCPHus VshA== X-Gm-Message-State: AOAM5307mEjyGU35hXHcCLhCNcnoLcsaPcF+y8Kl13TlT/6BJBPHJp87 uWG3kq1mEFJs6IVf2jPYyHl78RRghDUK2aQY92zBkw== X-Received: by 2002:a65:6e0e:0:b0:399:26d7:a224 with SMTP id bd14-20020a656e0e000000b0039926d7a224mr15704175pgb.437.1650392116287; Tue, 19 Apr 2022 11:15:16 -0700 (PDT) MIME-Version: 1.0 References: <20220407191347.9681-1-jithu.joseph@intel.com> <20220419163859.2228874-1-tony.luck@intel.com> <20220419163859.2228874-10-tony.luck@intel.com> In-Reply-To: From: Dan Williams Date: Tue, 19 Apr 2022 11:15:05 -0700 Message-ID: Subject: Re: [PATCH v3 09/11] platform/x86/intel/ifs: Add IFS sysfs interface To: Greg KH Cc: "Luck, Tony" , Hans de Goede , markgross@kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , X86 ML , "H. Peter Anvin" , Jonathan Corbet , Andy Shevchenko , "Joseph, Jithu" , "Raj, Ashok" , Steven Rostedt , Linux Kernel Mailing List , Linux Doc Mailing List , platform-driver-x86@vger.kernel.org, patches@lists.linux.dev, Ravi V Shankar Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, 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 Tue, Apr 19, 2022 at 11:01 AM Greg KH wrote: > > On Tue, Apr 19, 2022 at 10:35:17AM -0700, Luck, Tony wrote: > > On Tue, Apr 19, 2022 at 07:20:54PM +0200, Greg KH wrote: > > > > +/* > > > > + * Note there is no need for a ->remove() call back. There isn't an > > > > + * "unload" operation to remove the scan binary from the BIOS reserved > > > > + * area. Also ".dev_groups" removal order will guarantee that any in > > > > + * flight tests have completed. > > > > + */ > > > > > > So you are ok with the warning the kernel gives you when you unload the > > > driver? That feels wrong :( > > > > What warning? > > > > # dmesg | tail -5 > > [ 38.084165] virbr0: port 1(virbr0-nic) entered listening state > > [ 38.149621] virbr0: port 1(virbr0-nic) entered disabled state > > [ 38.582054] broken atomic modeset userspace detected, disabling atomic > > [ 43.703321] igc 0000:01:00.0 enp1s0: NIC Link is Up 2500 Mbps Full Duplex, Flow Control: RX > > [ 43.703470] IPv6: ADDRCONF(NETDEV_CHANGE): enp1s0: link becomes ready > > # modprobe intel_ifs > > # ls /sys/devices/platform/intel_ifs.0/ > > details driver_override modalias reload status uevent > > driver image_version power run_test subsystem > > # rmmod intel_ifs > > # dmesg | tail -5 > > [ 38.084165] virbr0: port 1(virbr0-nic) entered listening state > > [ 38.149621] virbr0: port 1(virbr0-nic) entered disabled state > > [ 38.582054] broken atomic modeset userspace detected, disabling atomic > > [ 43.703321] igc 0000:01:00.0 enp1s0: NIC Link is Up 2500 Mbps Full Duplex, Flow Control: RX > > [ 43.703470] IPv6: ADDRCONF(NETDEV_CHANGE): enp1s0: link becomes ready > > # > > If there's no warning when the device goes away, why the crazy comment > trying to justify the lack of a remove callback? The comment clarifies the nuance that driver.dev_groups coordinates flushing access sysfs ops users before ->remove() is called. It can certainly be dropped.