diff options
| author | Heiko Carstens <hca@linux.ibm.com> | 2025-02-07 15:48:58 +0100 |
|---|---|---|
| committer | Vasily Gorbik <gor@linux.ibm.com> | 2025-03-04 17:18:06 +0100 |
| commit | a1a8da0dec77e0149b482698a2c1daab3a02ef7a (patch) | |
| tree | 00b2806b47a302162551dfbb8421c7263cbf26e6 /arch/s390/boot | |
| parent | e4da8249cf1e2aac1f2ca3d8bbe6c7589b4a7a13 (diff) | |
s390/pci: Get rid of MACHINE_HAS_PCI_MIO
Remove MACHINE_FLAG_PCI_MIO/MACHINE_HAS_PCI_MIO and implement the identical
functionality with set_machine_feature(), clear_machine_feature() and
test_machine_feature().
Acked-by: Niklas Schnelle <schnelle@linux.ibm.com>
Tested-by: Niklas Schnelle <schnelle@linux.ibm.com>
Reviewed-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390/boot')
| -rw-r--r-- | arch/s390/boot/startup.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/s390/boot/startup.c b/arch/s390/boot/startup.c index f8e6d7eb7cc2..8081f06ad258 100644 --- a/arch/s390/boot/startup.c +++ b/arch/s390/boot/startup.c @@ -7,6 +7,7 @@ #include <asm/extmem.h> #include <asm/sections.h> #include <asm/maccess.h> +#include <asm/machine.h> #include <asm/cpu_mf.h> #include <asm/setup.h> #include <asm/kasan.h> @@ -57,6 +58,8 @@ static void detect_facilities(void) segment_noexec_mask &= ~_SEGMENT_ENTRY_NOEXEC; region_noexec_mask &= ~_REGION_ENTRY_NOEXEC; } + if (IS_ENABLED(CONFIG_PCI) && test_facility(153)) + set_machine_feature(MFEATURE_PCI_MIO); } static int cmma_test_essa(void) |
