From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mathew McBride To: development@lists.ipfire.org Subject: [PATCH 1/1] kernel: enable ACPI support on ARM64 Date: Mon, 14 Sep 2020 11:32:49 +1000 Message-ID: <20200914013249.30733-2-matt@traverse.com.au> In-Reply-To: <20200914013249.30733-1-matt@traverse.com.au> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6511356082400882966==" List-Id: --===============6511356082400882966== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable ACPI (with EFI) is used on ARM systems conforming to the Server Base Boot Requirements (SBBR) and is an optional on embedded systems (EBBR). Up to now the ARM64 boards supported by IPFire use U-Boot and device tree so ACPI was not turned on. The immediate use case here is to run under virtualization, using my muvirt project[1] I can run IPFire on our Traverse Ten64 system. For reasons I'll explain separately it is not currently possible to run stock IPFire on this system. This change also enables the EFI RTC driver which is presented by the qemu arm64 virt machine. Signed-off-by: Mathew McBride [1] - https://gitlab.com/traversetech/muvirt --- config/kernel/kernel.config.aarch64-ipfire | 99 +++++++++++++++++++++- 1 file changed, 96 insertions(+), 3 deletions(-) diff --git a/config/kernel/kernel.config.aarch64-ipfire b/config/kernel/kerne= l.config.aarch64-ipfire index c616cbb85..da5d7d9f1 100644 --- a/config/kernel/kernel.config.aarch64-ipfire +++ b/config/kernel/kernel.config.aarch64-ipfire @@ -185,6 +185,7 @@ CONFIG_KALLSYMS_ALL=3Dy # CONFIG_KALLSYMS_ABSOLUTE_PERCPU is not set CONFIG_KALLSYMS_BASE_RELATIVE=3Dy CONFIG_PRINTK=3Dy +CONFIG_PRINTK_NMI=3Dy CONFIG_BUG=3Dy CONFIG_ELF_CORE=3Dy CONFIG_BASE_FULL=3Dy @@ -232,6 +233,7 @@ CONFIG_UPROBES=3Dy CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=3Dy CONFIG_HAVE_KPROBES=3Dy CONFIG_HAVE_KRETPROBES=3Dy +CONFIG_HAVE_NMI=3Dy CONFIG_HAVE_ARCH_TRACEHOOK=3Dy CONFIG_HAVE_DMA_CONTIGUOUS=3Dy CONFIG_GENERIC_SMP_IDLE_THREAD=3Dy @@ -246,6 +248,7 @@ CONFIG_HAVE_PERF_REGS=3Dy CONFIG_HAVE_PERF_USER_STACK_DUMP=3Dy CONFIG_HAVE_ARCH_JUMP_LABEL=3Dy CONFIG_HAVE_RCU_TABLE_FREE=3Dy +CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG=3Dy CONFIG_HAVE_ALIGNED_STRUCT_PAGE=3Dy CONFIG_HAVE_CMPXCHG_LOCAL=3Dy CONFIG_HAVE_CMPXCHG_DOUBLE=3Dy @@ -613,6 +616,7 @@ CONFIG_ARM64_MODULE_CMODEL_LARGE=3Dy # # Boot options # +# CONFIG_ARM64_ACPI_PARKING_PROTOCOL is not set CONFIG_CMDLINE=3D"console=3DttyAM0,115200 root=3D/dev/sda1 rootdelay=3D20" # CONFIG_CMDLINE_FORCE is not set CONFIG_EFI_STUB=3Dy @@ -663,7 +667,14 @@ CONFIG_ARCH_SUSPEND_POSSIBLE=3Dy # # CPU Idle # -# CONFIG_CPU_IDLE is not set +CONFIG_CPU_IDLE=3Dy +# CONFIG_CPU_IDLE_GOV_LADDER is not set +CONFIG_CPU_IDLE_GOV_MENU=3Dy + +# +# ARM CPU Idle Drivers +# +# CONFIG_ARM_CPUIDLE is not set # CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED is not set =20 # @@ -694,6 +705,7 @@ CONFIG_CPUFREQ_DT_PLATDEV=3Dy CONFIG_ARM_BIG_LITTLE_CPUFREQ=3Dm CONFIG_ARM_DT_BL_CPUFREQ=3Dm # CONFIG_ARM_KIRKWOOD_CPUFREQ is not set +CONFIG_ACPI_CPPC_CPUFREQ=3Dm CONFIG_QORIQ_CPUFREQ=3Dy CONFIG_NET=3Dy CONFIG_COMPAT_NETLINK_MESSAGES=3Dy @@ -1577,6 +1589,13 @@ CONFIG_PARPORT=3Dm # CONFIG_PARPORT_AX88796 is not set CONFIG_PARPORT_1284=3Dy CONFIG_PARPORT_NOT_PC=3Dy +CONFIG_PNP=3Dy +# CONFIG_PNP_DEBUG_MESSAGES is not set + +# +# Protocols +# +CONFIG_PNPACPI=3Dy CONFIG_BLK_DEV=3Dy # CONFIG_BLK_DEV_NULL_BLK is not set # CONFIG_BLK_DEV_PCIESSD_MTIP32XX is not set @@ -1793,6 +1812,8 @@ CONFIG_HAVE_PATA_PLATFORM=3Dy CONFIG_ATA=3Dy # CONFIG_ATA_NONSTANDARD is not set CONFIG_ATA_VERBOSE_ERROR=3Dy +CONFIG_ATA_ACPI=3Dy +# CONFIG_SATA_ZPODD is not set CONFIG_SATA_PMP=3Dy =20 # @@ -1884,6 +1905,7 @@ CONFIG_SATA_MV=3Dm # # Generic fallback / legacy drivers # +# CONFIG_PATA_ACPI is not set # CONFIG_ATA_GENERIC is not set # CONFIG_PATA_LEGACY is not set CONFIG_MD=3Dy @@ -2272,6 +2294,7 @@ CONFIG_DWC_XLGMAC=3Dm CONFIG_DWC_XLGMAC_PCI=3Dm # CONFIG_FDDI is not set # CONFIG_HIPPI is not set +# CONFIG_NET_SB1000 is not set CONFIG_MDIO_DEVICE=3Dy CONFIG_MDIO_BUS=3Dy CONFIG_MDIO_BCM_UNIMAC=3Dm @@ -2617,6 +2640,7 @@ CONFIG_USB_NET_RNDIS_WLAN=3Dm # # CONFIG_WAN is not set CONFIG_VMXNET3=3Dm +# CONFIG_FUJITSU_ES is not set # CONFIG_ISDN is not set CONFIG_NVM=3Dy # CONFIG_NVM_DEBUG is not set @@ -2794,6 +2818,7 @@ CONFIG_DEVMEM=3Dy CONFIG_SERIAL_EARLYCON=3Dy CONFIG_SERIAL_8250=3Dy CONFIG_SERIAL_8250_DEPRECATED_OPTIONS=3Dy +CONFIG_SERIAL_8250_PNP=3Dy # CONFIG_SERIAL_8250_FINTEK is not set CONFIG_SERIAL_8250_CONSOLE=3Dy CONFIG_SERIAL_8250_DMA=3Dy @@ -2872,6 +2897,7 @@ CONFIG_HW_RANDOM_CAVIUM=3Dy # CONFIG_RAW_DRIVER=3Dy CONFIG_MAX_RAW_DEVS=3D8192 +# CONFIG_HPET is not set # CONFIG_TCG_TPM is not set CONFIG_DEVPORT=3Dy # CONFIG_XILLYBUS is not set @@ -2880,6 +2906,7 @@ CONFIG_DEVPORT=3Dy # I2C support # CONFIG_I2C=3Dy +CONFIG_ACPI_I2C_OPREGION=3Dy CONFIG_I2C_BOARDINFO=3Dy CONFIG_I2C_COMPAT=3Dy CONFIG_I2C_CHARDEV=3Dm @@ -2925,6 +2952,11 @@ CONFIG_I2C_ALGOPCA=3Dm # CONFIG_I2C_VIA is not set # CONFIG_I2C_VIAPRO is not set =20 +# +# ACPI drivers +# +# CONFIG_I2C_SCMI is not set + # # I2C system bus drivers (mostly embedded / system-on-chip) # @@ -3050,6 +3082,7 @@ CONFIG_PINCTRL_SUN50I_A64_R=3Dy CONFIG_PINCTRL_SUN50I_H5=3Dy CONFIG_GPIOLIB=3Dy CONFIG_OF_GPIO=3Dy +CONFIG_GPIO_ACPI=3Dy CONFIG_GPIOLIB_IRQCHIP=3Dy # CONFIG_DEBUG_GPIO is not set CONFIG_GPIO_SYSFS=3Dy @@ -3060,6 +3093,7 @@ CONFIG_GPIO_GENERIC=3Dy # # CONFIG_GPIO_74XX_MMIO is not set # CONFIG_GPIO_ALTERA is not set +# CONFIG_GPIO_AMDPT is not set CONFIG_GPIO_AXP209=3Dy # CONFIG_GPIO_DWAPB is not set # CONFIG_GPIO_EXAR is not set @@ -3336,6 +3370,12 @@ CONFIG_SENSORS_W83L785TS=3Dm CONFIG_SENSORS_W83L786NG=3Dm # CONFIG_SENSORS_W83627HF is not set # CONFIG_SENSORS_W83627EHF is not set +# CONFIG_SENSORS_XGENE is not set + +# +# ACPI drivers +# +# CONFIG_SENSORS_ACPI_POWER is not set CONFIG_THERMAL=3Dy CONFIG_THERMAL_EMERGENCY_POWEROFF_DELAY_MS=3D0 CONFIG_THERMAL_HWMON=3Dy @@ -3378,6 +3418,7 @@ CONFIG_WATCHDOG_HANDLE_BOOT_ENABLED=3Dy # CONFIG_SOFT_WATCHDOG=3Dm CONFIG_GPIO_WATCHDOG=3Dm +# CONFIG_WDAT_WDT is not set # CONFIG_XILINX_WATCHDOG is not set # CONFIG_ZIIRAVE_WATCHDOG is not set CONFIG_ARM_SP805_WATCHDOG=3Dm @@ -3521,6 +3562,7 @@ CONFIG_MFD_SYSCON=3Dy # CONFIG_MFD_TPS65086 is not set # CONFIG_MFD_TPS65090 is not set # CONFIG_MFD_TPS65217 is not set +# CONFIG_MFD_TPS68470 is not set # CONFIG_MFD_TI_LP873X is not set # CONFIG_MFD_TI_LP87565 is not set # CONFIG_MFD_TPS65218 is not set @@ -3603,10 +3645,14 @@ CONFIG_IR_MCE_KBD_DECODER=3Dm CONFIG_IR_XMP_DECODER=3Dm CONFIG_RC_DEVICES=3Dy # CONFIG_RC_ATI_REMOTE is not set +# CONFIG_IR_ENE is not set # CONFIG_IR_HIX5HD2 is not set CONFIG_IR_IMON=3Dm CONFIG_IR_MCEUSB=3Dm +# CONFIG_IR_ITE_CIR is not set +# CONFIG_IR_FINTEK is not set # CONFIG_IR_MESON is not set +# CONFIG_IR_NUVOTON is not set CONFIG_IR_REDRAT3=3Dm CONFIG_IR_STREAMZAP=3Dm # CONFIG_IR_IGORPLUGUSB is not set @@ -4918,6 +4964,7 @@ CONFIG_USB_DWC3_DUAL_ROLE=3Dy # # Platform Glue Driver Support # +# CONFIG_USB_DWC3_PCI is not set CONFIG_USB_DWC3_OF_SIMPLE=3Dm CONFIG_USB_DWC2=3Dy # CONFIG_USB_DWC2_HOST is not set @@ -5118,6 +5165,7 @@ CONFIG_MMC_ARMMMCI=3Dm CONFIG_MMC_SDHCI=3Dy CONFIG_MMC_SDHCI_IO_ACCESSORS=3Dy # CONFIG_MMC_SDHCI_PCI is not set +# CONFIG_MMC_SDHCI_ACPI is not set CONFIG_MMC_SDHCI_PLTFM=3Dy CONFIG_MMC_SDHCI_OF_ARASAN=3Dm # CONFIG_MMC_SDHCI_OF_AT91 is not set @@ -5291,7 +5339,7 @@ CONFIG_RTC_DRV_DS1553=3Dm # CONFIG_RTC_DRV_DS1685_FAMILY is not set CONFIG_RTC_DRV_DS1742=3Dm CONFIG_RTC_DRV_DS2404=3Dm -# CONFIG_RTC_DRV_EFI is not set +CONFIG_RTC_DRV_EFI=3Dm CONFIG_RTC_DRV_STK17TA8=3Dm # CONFIG_RTC_DRV_M48T86 is not set CONFIG_RTC_DRV_M48T35=3Dm @@ -5327,6 +5375,7 @@ CONFIG_DMADEVICES=3Dy CONFIG_ASYNC_TX_ENABLE_CHANNEL_SWITCH=3Dy CONFIG_DMA_ENGINE=3Dy CONFIG_DMA_VIRTUAL_CHANNELS=3Dy +CONFIG_DMA_ACPI=3Dy CONFIG_DMA_OF=3Dy # CONFIG_ALTERA_MSGDMA is not set CONFIG_AMBA_PL08X=3Dy @@ -5535,6 +5584,7 @@ CONFIG_HWSPINLOCK=3Dy # Clock Source drivers # CONFIG_TIMER_OF=3Dy +CONFIG_TIMER_ACPI=3Dy CONFIG_TIMER_PROBE=3Dy CONFIG_CLKSRC_MMIO=3Dy CONFIG_ROCKCHIP_TIMER=3Dy @@ -5556,6 +5606,7 @@ CONFIG_MAILBOX=3Dy # CONFIG_PLATFORM_MHU is not set CONFIG_PL320_MBOX=3Dy CONFIG_ROCKCHIP_MBOX=3Dy +CONFIG_PCC=3Dy # CONFIG_ALTERA_MBOX is not set CONFIG_BCM2835_MBOX=3Dy # CONFIG_MAILBOX_TEST is not set @@ -5805,6 +5856,7 @@ CONFIG_HID_SENSOR_IIO_TRIGGER=3Dm # # Light sensors # +# CONFIG_ACPI_ALS is not set # CONFIG_ADJD_S311 is not set # CONFIG_AL3320A is not set # CONFIG_APDS9300 is not set @@ -5993,6 +6045,7 @@ CONFIG_PHY_MESON_GXL_USB2=3Dy # Performance monitor support # CONFIG_ARM_PMU=3Dy +CONFIG_ARM_PMU_ACPI=3Dy CONFIG_RAS=3Dy =20 # @@ -6032,6 +6085,7 @@ CONFIG_ARM_PSCI_FW=3Dy # CONFIG_FIRMWARE_MEMMAP is not set CONFIG_DMIID=3Dy # CONFIG_DMI_SYSFS is not set +# CONFIG_ISCSI_IBFT is not set CONFIG_RASPBERRYPI_FIRMWARE=3Dy # CONFIG_FW_CFG_SYSFS is not set CONFIG_HAVE_ARM_SMCCC=3Dy @@ -6051,12 +6105,50 @@ CONFIG_EFI_BOOTLOADER_CONTROL=3Dm # CONFIG_EFI_CAPSULE_LOADER is not set # CONFIG_EFI_TEST is not set # CONFIG_RESET_ATTACK_MITIGATION is not set +CONFIG_UEFI_CPER=3Dy +# CONFIG_EFI_DEV_PATH_PARSER is not set CONFIG_MESON_SM=3Dy =20 # # Tegra firmware driver # -# CONFIG_ACPI is not set +CONFIG_ACPI=3Dy +CONFIG_ACPI_GENERIC_GSI=3Dy +CONFIG_ACPI_CCA_REQUIRED=3Dy +# CONFIG_ACPI_DEBUGGER is not set +CONFIG_ACPI_SPCR_TABLE=3Dy +# CONFIG_ACPI_EC_DEBUGFS is not set +CONFIG_ACPI_BUTTON=3Dm +CONFIG_ACPI_FAN=3Dm +# CONFIG_ACPI_DOCK is not set +CONFIG_ACPI_PROCESSOR_IDLE=3Dy +CONFIG_ACPI_MCFG=3Dy +CONFIG_ACPI_CPPC_LIB=3Dy +CONFIG_ACPI_PROCESSOR=3Dm +# CONFIG_ACPI_IPMI is not set +CONFIG_ACPI_HOTPLUG_CPU=3Dy +CONFIG_ACPI_THERMAL=3Dm +# CONFIG_ACPI_CUSTOM_DSDT is not set +CONFIG_ARCH_HAS_ACPI_TABLE_UPGRADE=3Dy +CONFIG_ACPI_TABLE_UPGRADE=3Dy +# CONFIG_ACPI_DEBUG is not set +# CONFIG_ACPI_PCI_SLOT is not set +CONFIG_ACPI_CONTAINER=3Dy +CONFIG_ACPI_HED=3Dy +# CONFIG_ACPI_CUSTOM_METHOD is not set +# CONFIG_ACPI_BGRT is not set +CONFIG_ACPI_REDUCED_HARDWARE_ONLY=3Dy +CONFIG_HAVE_ACPI_APEI=3Dy +CONFIG_ACPI_APEI=3Dy +CONFIG_ACPI_APEI_GHES=3Dy +CONFIG_ACPI_APEI_PCIEAER=3Dy +CONFIG_ACPI_APEI_SEA=3Dy +# CONFIG_ACPI_APEI_EINJ is not set +# CONFIG_ACPI_APEI_ERST_DEBUG is not set +# CONFIG_PMIC_OPREGION is not set +CONFIG_ACPI_CONFIGFS=3Dm +CONFIG_ACPI_IORT=3Dy +CONFIG_ACPI_GTDT=3Dy =20 # # File systems @@ -6467,6 +6559,7 @@ CONFIG_DYNAMIC_FTRACE=3Dy CONFIG_FUNCTION_PROFILER=3Dy CONFIG_FTRACE_MCOUNT_RECORD=3Dy # CONFIG_FTRACE_STARTUP_TEST is not set +# CONFIG_HIST_TRIGGERS is not set # CONFIG_TRACEPOINT_BENCHMARK is not set CONFIG_RING_BUFFER_BENCHMARK=3Dm # CONFIG_RING_BUFFER_STARTUP_TEST is not set --=20 2.19.1 --===============6511356082400882966==--