From a32a15bd8e05c756349d649abbaf7df6b17513a9 Mon Sep 17 00:00:00 2001 From: jsg Date: Mon, 3 Oct 2022 10:07:01 +0000 Subject: [PATCH] define CONFIG_PCIEASPM, add ltr_path to struct pci_dev for 5.15.70 drm --- sys/dev/pci/drm/include/generated/autoconf.h | 1 + sys/dev/pci/drm/include/linux/pci.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/dev/pci/drm/include/generated/autoconf.h b/sys/dev/pci/drm/include/generated/autoconf.h index 51e806128bb..0a9bd12e0ed 100644 --- a/sys/dev/pci/drm/include/generated/autoconf.h +++ b/sys/dev/pci/drm/include/generated/autoconf.h @@ -39,6 +39,7 @@ #include "pci.h" #if NPCI > 0 #define CONFIG_PCI 1 +#define CONFIG_PCIEASPM 1 #endif #include "agp.h" diff --git a/sys/dev/pci/drm/include/linux/pci.h b/sys/dev/pci/drm/include/linux/pci.h index 944de95e2ea..55733e7f6bc 100644 --- a/sys/dev/pci/drm/include/linux/pci.h +++ b/sys/dev/pci/drm/include/linux/pci.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pci.h,v 1.11 2022/04/11 03:02:40 jsg Exp $ */ +/* $OpenBSD: pci.h,v 1.12 2022/10/03 10:07:01 jsg Exp $ */ /* * Copyright (c) 2015 Mark Kettenis * @@ -67,6 +67,7 @@ struct pci_dev { int irq; int msi_enabled; uint8_t no_64bit_msi; + uint8_t ltr_path; struct pci_acpi dev; }; -- 2.20.1