setup.c (6f50fa2a6f1395ad5f59ce7b87730f1f3ea19d76) setup.c (d5394c059da9786043934bed474562cde124e7d3)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * 64-bit pSeries and RS/6000 setup code.
4 *
5 * Copyright (C) 1995 Linus Torvalds
6 * Adapted from 'alpha' version by Gary Thomas
7 * Modified by Cort Dougan (cort@cs.nmt.edu)
8 * Modified by PPC64 Team, IBM Corp

--- 55 unchanged lines hidden (view full) ---

64#include <asm/eeh.h>
65#include <asm/reg.h>
66#include <asm/plpar_wrappers.h>
67#include <asm/kexec.h>
68#include <asm/isa-bridge.h>
69#include <asm/security_features.h>
70#include <asm/asm-const.h>
71#include <asm/swiotlb.h>
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * 64-bit pSeries and RS/6000 setup code.
4 *
5 * Copyright (C) 1995 Linus Torvalds
6 * Adapted from 'alpha' version by Gary Thomas
7 * Modified by Cort Dougan (cort@cs.nmt.edu)
8 * Modified by PPC64 Team, IBM Corp

--- 55 unchanged lines hidden (view full) ---

64#include <asm/eeh.h>
65#include <asm/reg.h>
66#include <asm/plpar_wrappers.h>
67#include <asm/kexec.h>
68#include <asm/isa-bridge.h>
69#include <asm/security_features.h>
70#include <asm/asm-const.h>
71#include <asm/swiotlb.h>
72#include <asm/svm.h>
72
73#include "pseries.h"
74#include "../../../../drivers/pci/pci.h"
75
76int CMO_PrPSP = -1;
77int CMO_SecPSP = -1;
78unsigned long CMO_PageSize = (ASM_CONST(1) << IOMMU_PAGE_SHIFT_4K);
79EXPORT_SYMBOL(CMO_PageSize);

--- 212 unchanged lines hidden (view full) ---

292static inline int alloc_dispatch_logs(void)
293{
294 return 0;
295}
296#endif /* CONFIG_VIRT_CPU_ACCOUNTING_NATIVE */
297
298static int alloc_dispatch_log_kmem_cache(void)
299{
73
74#include "pseries.h"
75#include "../../../../drivers/pci/pci.h"
76
77int CMO_PrPSP = -1;
78int CMO_SecPSP = -1;
79unsigned long CMO_PageSize = (ASM_CONST(1) << IOMMU_PAGE_SHIFT_4K);
80EXPORT_SYMBOL(CMO_PageSize);

--- 212 unchanged lines hidden (view full) ---

293static inline int alloc_dispatch_logs(void)
294{
295 return 0;
296}
297#endif /* CONFIG_VIRT_CPU_ACCOUNTING_NATIVE */
298
299static int alloc_dispatch_log_kmem_cache(void)
300{
301 void (*ctor)(void *) = get_dtl_cache_ctor();
302
300 dtl_cache = kmem_cache_create("dtl", DISPATCH_LOG_BYTES,
303 dtl_cache = kmem_cache_create("dtl", DISPATCH_LOG_BYTES,
301 DISPATCH_LOG_BYTES, 0, NULL);
304 DISPATCH_LOG_BYTES, 0, ctor);
302 if (!dtl_cache) {
303 pr_warn("Failed to create dispatch trace log buffer cache\n");
304 pr_warn("Stolen time statistics will be unreliable\n");
305 return 0;
306 }
307
308 return alloc_dispatch_logs();
309}

--- 710 unchanged lines hidden ---
305 if (!dtl_cache) {
306 pr_warn("Failed to create dispatch trace log buffer cache\n");
307 pr_warn("Stolen time statistics will be unreliable\n");
308 return 0;
309 }
310
311 return alloc_dispatch_logs();
312}

--- 710 unchanged lines hidden ---