Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4708985pxb; Tue, 28 Sep 2021 02:12:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQcIbNU0mqV3zvPG31yKJW9KIZqSyhbjwwyXpc80Fjvk7FiDxL1MKCmKCF1uzPaPHom1aB X-Received: by 2002:a17:902:ed8a:b0:13b:7a09:5215 with SMTP id e10-20020a170902ed8a00b0013b7a095215mr4214573plj.56.1632820335042; Tue, 28 Sep 2021 02:12:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632820335; cv=none; d=google.com; s=arc-20160816; b=zxv0W26Wplp9R3k1/UNz23mLgGfkkTOeYxZ9iAlVFoyTl4JkVy/CmO1EUvNkTisYUc LIktUOidNYUT5UjcD49TU9DGwpO3OnvhqNMAK9DjRbr+99n2LHlcL9Y7I0HbPfqGHxpn Wf7zsI+91Ubu98ribtMTw1HD8tbZ/W29FU49NFGlFrB5GtFxCM8yd2mg4/ZCxl2Z2t+q pyfEcDF2oj6cjRnahycy7/XQxPIQhTu8ROoAX+tuPKcUxG3xpqKX7/ff/uX/18/qR2+t sD36rCiGZl17reVUHE8LrorYZgViyMg25fYn7stX8PC70z4TwCVWEmbRzav4BeLh/97J tRSg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=R+P4cBKXdJO+xG6l1csZAZ/OMU54h76NWhwkSTf2hkU=; b=aSgsG0sR3GN0LClLg6VG6Ul4ZXG3Ap6vlyGhYVoij4kUczDQvSKOVB/4kGgE6+K+Js YuWUebEz6wsRMKIMeC9Jb0PGCpMvZbMaAcvOz9SBR/D+3J9FVCmkakXJ04osIdNI41M5 lHDvJMHrJrqxlXyNhM436JlDyTSSHmmpEMMyOHUJGG1C/1FLmg8ardqN2sMsfv9ShKDF 8FdJvjZAdUtdFHoj7vy3JpfVeh1F1jK19VymZyZ8Y0NRBRmOK53kHgWROIpFPQvj2yhQ vNLYZirSwXaR6KMI6dM4YmkWqrenM44G3UGOc0ZSXJzNJ8lQU24VKI4IK3dyX11vho33 4T6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hY8T7xys; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u1si25151813pls.99.2021.09.28.02.12.01; Tue, 28 Sep 2021 02:12:15 -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=@linuxfoundation.org header.s=korg header.b=hY8T7xys; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239795AbhI1JMC (ORCPT + 99 others); Tue, 28 Sep 2021 05:12:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:48750 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239694AbhI1JMB (ORCPT ); Tue, 28 Sep 2021 05:12:01 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3D77460F44; Tue, 28 Sep 2021 09:10:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632820222; bh=nNUQ2Cbdi2wqZSMi5rvMuU/y79v+XzSHTSCiCh87I6Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hY8T7xysw2mQ+OnEHAdCVU7YyS+exjH7oqrCv8gxeBVL3jpcKKaFuhDxLwJBXk+NB gkuPg8isIOQ/Zf2fyuSxyrCoqT/OoybjwdqXgBRUhYMD9pEEJuVypu1d+vYMp/MOp/ mKbIun/KpaLJN3Z2tZE6Pyv8WZjxWumR5lwTHB8c= Date: Tue, 28 Sep 2021 11:10:20 +0200 From: Greg KH To: Lee Jones Cc: "David E. Box" , bhelgaas@google.com, andy.shevchenko@gmail.com, mgross@linux.intel.com, srinivas.pandruvada@intel.com, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH v3 2/5] MFD: intel_pmt: Support non-PMT capabilities Message-ID: References: <20210922213007.2738388-1-david.e.box@linux.intel.com> <20210922213007.2738388-3-david.e.box@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 28, 2021 at 08:54:45AM +0100, Lee Jones wrote: > On Mon, 27 Sep 2021, David E. Box wrote: > > > On Mon, 2021-09-27 at 19:36 +0200, Greg KH wrote: > > > On Wed, Sep 22, 2021 at 02:30:04PM -0700, David E. Box wrote: > > > > Intel Platform Monitoring Technology (PMT) support is indicated by presence > > > > of an Intel defined PCIe DVSEC structure with a PMT ID. However DVSEC > > > > structures may also be used by Intel to indicate support for other > > > > capabilities unrelated to PMT.? OOBMSM is a device that can have both PMT > > > > and non-PMT capabilities. In order to support these capabilities it is > > > > necessary to modify the intel_pmt driver to handle the creation of platform > > > > devices more generically. > > > > > > I said this on your other driver submission, but why are you turning a > > > PCIe device into a set of platform devices and craming it into the MFD > > > subsystem? > > > > > > PCIe devices are NOT platform devices. > > > > But they *are* used to create platform devices when the PCIe device is multi-functional, which is > > what intel_pmt is. > > > > > > > > Why not use the auxiliary bus for this thing if you have individual > > > drivers that need to "bind" to the different attributes that this single > > > PCIe device is exporting. > > > > It wasn't clear in the beginning how this would evolve. MFD made sense for the PMT (platform > > monitoring technology) driver. PMT has 3 related but individually enumerable devices on the same IP, > > like lpss. But the same IP is now being used for other features too like SDSi. We could work on > > converting this to the auxiliary bus and then covert the cell drivers. > > I see this as subsequent work. It should not affect this submission. > > FWIW, I still plan to review this set for inclusion into MFD. That's fine, but as the add-on submission that builds on top of this is a broken mess (which is what caused me to have to review this series), I can't recommend that be taken yet as it needs work to prevent systems from doing bad things. thanks, greg k-h