Commit Graph

6 Commits

Author SHA1 Message Date
David Arcari bd38684648 platform/x86/intel/vsec.h: Move to include/linux
JIRA: https://issues.redhat.com/browse/RHEL-65816

commit fc9aef4382c02774662da3d7e1de8ba224e04f80
Author: David E. Box <david.e.box@linux.intel.com>
Date:   Thu Jul 25 08:23:40 2024 -0400

    platform/x86/intel/vsec.h: Move to include/linux

    Some drivers outside of PDX86 need access to the vsec header. Move it to
    include/linux to make it easier to include.

    Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
    Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
    Signed-off-by: David E. Box <david.e.box@linux.intel.com>
    Link: https://lore.kernel.org/r/20240725122346.4063913-2-michael.j.ruhl@intel.com
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>

Signed-off-by: David Arcari <darcari@redhat.com>
2024-11-05 08:53:14 -05:00
David Arcari 7c7474ec6e platform/x86/intel/pmt: Add header to struct intel_pmt_entry
JIRA: https://issues.redhat.com/browse/RHEL-15539

commit 4d1b7efee3fc703c64bacc37c4824888c5f26e8b
Author: David E. Box <david.e.box@linux.intel.com>
Date:   Wed Nov 29 14:21:21 2023 -0800

    platform/x86/intel/pmt: Add header to struct intel_pmt_entry

    The PMT header is passed to several functions. Instead, store the header in
    struct intel_pmt_entry which is also passed to these functions and shorten
    the argument list. This simplifies the calls in preparation for later
    changes. While here also perform a newline cleanup.

    Signed-off-by: David E. Box <david.e.box@linux.intel.com>
    Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
    Link: https://lore.kernel.org/r/20231129222132.2331261-10-david.e.box@linux.intel.com
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>

Signed-off-by: David Arcari <darcari@redhat.com>
2024-01-10 10:01:09 -05:00
David Arcari 359d10a40d platform/x86/intel/pmt: Add INTEL_PMT module namespace
JIRA: https://issues.redhat.com/browse/RHEL-19678

commit d908084385a41cfdb82dca6ab4086e3f1a9dd4ae
Author: David E. Box <david.e.box@linux.intel.com>
Date:   Thu Mar 16 15:57:35 2023 -0700

    platform/x86/intel/pmt: Add INTEL_PMT module namespace

    Since the currently exported symbols in pmt_class are only used by other
    Intel PMT drivers, create an INTEL_PMT module namespace for them.

    Signed-off-by: David E. Box <david.e.box@linux.intel.com>
    Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
    Link: https://lore.kernel.org/r/20230316225736.2856521-1-david.e.box@linux.intel.com
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>

Signed-off-by: David Arcari <darcari@redhat.com>
2023-12-18 07:43:30 -05:00
David Arcari 0f85225b07 platform/x86/intel: Fix pmt_crashlog array reference
Bugzilla: https://bugzilla.redhat.com/2076745

commit 66cb3a2d7ad0d0e9af4d3430a4f2a32ffb9ac098
Author: David Arcari <darcari@redhat.com>
Date:   Thu May 26 16:31:40 2022 -0400

    platform/x86/intel: Fix pmt_crashlog array reference

    The probe function pmt_crashlog_probe() may incorrectly reference
    the 'priv->entry array' as it uses 'i' to reference the array instead
    of 'priv->num_entries' as it should.  This is similar to the problem
    that was addressed in pmt_telemetry_probe via commit 2cdfa0c20d58
    ("platform/x86/intel: Fix 'rmmod pmt_telemetry' panic").

    Cc: "David E. Box" <david.e.box@linux.intel.com>
    Cc: Hans de Goede <hdegoede@redhat.com>
    Cc: Mark Gross <markgross@kernel.org>
    Cc: linux-kernel@vger.kernel.org
    Signed-off-by: David Arcari <darcari@redhat.com>
    Reviewed-by: David E. Box <david.e.box@linux.intel.com>
    Link: https://lore.kernel.org/r/20220526203140.339120-1-darcari@redhat.com
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>

Signed-off-by: David Arcari <darcari@redhat.com>
2022-09-06 09:07:39 -04:00
David Arcari 88a7d8a4f0 platform/x86/intel: Move intel_pmt from MFD to Auxiliary Bus
Bugzilla: https://bugzilla.redhat.com/2058806

commit a3c8f906ed5fc1d4895b5e1a5c6ad6e942d6c0ca
Author: David E. Box <david.e.box@linux.intel.com>
Date:   Tue Dec 7 17:50:12 2021 -0800

    platform/x86/intel: Move intel_pmt from MFD to Auxiliary Bus

    Intel Platform Monitoring Technology (PMT) support is indicated by presence
    of an Intel defined PCIe Designated Vendor Specific Extended Capabilities
    (DVSEC) structure with a PMT specific ID. The current MFD implementation
    creates child devices for each PMT feature, currently telemetry, watcher,
    and crashlog. However DVSEC structures may also be used by Intel to
    indicate support for other features. The Out Of Band Management Services
    Module (OOBMSM) uses DVSEC to enumerate several features, including PMT.
    In order to support them it is necessary to modify the intel_pmt driver to
    handle the creation of the child devices more generically. To that end,
    modify the driver to create child devices for any VSEC/DVSEC features on
    supported devices (indicated by PCI ID).  Additionally, move the
    implementation from MFD to the Auxiliary bus.  VSEC/DVSEC features are
    really multifunctional PCI devices, not platform devices as MFD was
    designed for. Auxiliary bus gives more flexibility by allowing the
    definition of custom structures that can be shared between associated
    auxiliary devices and the parent device. Also, rename the driver from
    intel_pmt to intel_vsec to better reflect the purpose.

    This series also removes the current runtime pm support which was not
    complete to begin with. None of the current devices require runtime pm.
    However the support will be replaced when a device is added that requires
    it.

    Reviewed-by: Mark Gross <markgross@kernel.org>
    Acked-by: Hans de Goede <hdegoede@redhat.com>
    Signed-off-by: David E. Box <david.e.box@linux.intel.com>
    Link: https://lore.kernel.org/r/20211208015015.891275-4-david.e.box@linux.intel.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Signed-off-by: David Arcari <darcari@redhat.com>
2022-03-17 12:15:22 -04:00
David Arcari 09567f2bb2 platform/x86/intel: Move Intel PMT drivers to new subfolder
Bugzilla: https://bugzilla.redhat.com/2058806

commit e184b1e589a7fbb80bfdd0364c11422999a17a26
Author: David E. Box <david.e.box@linux.intel.com>
Date:   Tue Jul 27 09:49:28 2021 -0700

    platform/x86/intel: Move Intel PMT drivers to new subfolder

    Move all Intel Platform Monitoring Technology drivers to
    drivers/platform/x86/intel/pmt.

    Signed-off-by: David E. Box <david.e.box@linux.intel.com>
    Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
    Link: https://lore.kernel.org/r/20210727164928.3171521-1-david.e.box@linux.intel.com
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>

Signed-off-by: David Arcari <darcari@redhat.com>
2022-03-17 12:15:22 -04:00