Contributors: 36
Author Tokens Token Proportion Commits Commit Proportion
Nathan Fontenot 143 27.34% 7 10.77%
Michael Ellerman 55 10.52% 10 15.38%
Anton Blanchard 51 9.75% 2 3.08%
Robert Jennings 50 9.56% 1 1.54%
Paul Mackerras 31 5.93% 5 7.69%
Michael Neuling 24 4.59% 1 1.54%
David Rientjes 14 2.68% 1 1.54%
Kleber Sacilotto de Souza 13 2.49% 1 1.54%
Manish Ahuja 11 2.10% 2 3.08%
Nicholas Piggin 11 2.10% 2 3.08%
Benjamin Herrenschmidt 10 1.91% 2 3.08%
Oliver O'Halloran 9 1.72% 2 3.08%
Arnd Bergmann 8 1.53% 1 1.54%
Daniel Axtens 8 1.53% 3 4.62%
Mark Nelson 8 1.53% 1 1.54%
John Allen 7 1.34% 1 1.54%
Alexey Kardashevskiy 7 1.34% 1 1.54%
Jason A. Donenfeld 6 1.15% 1 1.54%
Laurent Dufour 6 1.15% 2 3.08%
Cédric Le Goater 6 1.15% 2 3.08%
Andrew Morton 5 0.96% 1 1.54%
Mahesh Salgaonkar 5 0.96% 1 1.54%
Ian Munsie 5 0.96% 1 1.54%
Rob Herring 4 0.76% 1 1.54%
Tyrel Datwyler 4 0.76% 1 1.54%
Haren Myneni 3 0.57% 1 1.54%
Gavin Shan 3 0.57% 1 1.54%
Daniel Henrique Barboza 3 0.57% 1 1.54%
Rashmica Gupta 3 0.57% 2 3.08%
Thomas Gleixner 2 0.38% 1 1.54%
Ganesh Goudar 2 0.38% 1 1.54%
Pali Rohár 2 0.38% 1 1.54%
David Howells 1 0.19% 1 1.54%
Bharata B Rao 1 0.19% 1 1.54%
Stephen Rothwell 1 0.19% 1 1.54%
Nick Child 1 0.19% 1 1.54%
Total 523 65


/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Copyright 2006 IBM Corporation.
 */

#ifndef _PSERIES_PSERIES_H
#define _PSERIES_PSERIES_H

#include <linux/interrupt.h>
#include <asm/rtas.h>

struct device_node;

void __init request_event_sources_irqs(struct device_node *np,
				       irq_handler_t handler, const char *name);

#include <linux/of.h>

struct pt_regs;

extern int pSeries_system_reset_exception(struct pt_regs *regs);
extern int pSeries_machine_check_exception(struct pt_regs *regs);
extern long pseries_machine_check_realmode(struct pt_regs *regs);
void pSeries_machine_check_log_err(void);

#ifdef CONFIG_SMP
extern void smp_init_pseries(void);

/* Get state of physical CPU from query_cpu_stopped */
int smp_query_cpu_stopped(unsigned int pcpu);
#define QCSS_STOPPED 0
#define QCSS_STOPPING 1
#define QCSS_NOT_STOPPED 2
#define QCSS_HARDWARE_ERROR -1
#define QCSS_HARDWARE_BUSY -2
#else
static inline void smp_init_pseries(void) { }
#endif

extern void pseries_kexec_cpu_down(int crash_shutdown, int secondary);
void pseries_machine_kexec(struct kimage *image);

extern void pSeries_final_fixup(void);

/* Poweron flag used for enabling auto ups restart */
extern unsigned long rtas_poweron_auto;

/* Dynamic logical Partitioning/Mobility */
extern void dlpar_free_cc_nodes(struct device_node *);
extern void dlpar_free_cc_property(struct property *);
extern struct device_node *dlpar_configure_connector(__be32,
						struct device_node *);
extern int dlpar_attach_node(struct device_node *, struct device_node *);
extern int dlpar_detach_node(struct device_node *);
extern int dlpar_acquire_drc(u32 drc_index);
extern int dlpar_release_drc(u32 drc_index);
extern int dlpar_unisolate_drc(u32 drc_index);
extern void post_mobility_fixup(void);

void queue_hotplug_event(struct pseries_hp_errorlog *hp_errlog);
int handle_dlpar_errorlog(struct pseries_hp_errorlog *hp_errlog);

#ifdef CONFIG_MEMORY_HOTPLUG
int dlpar_memory(struct pseries_hp_errorlog *hp_elog);
int dlpar_hp_pmem(struct pseries_hp_errorlog *hp_elog);
#else
static inline int dlpar_memory(struct pseries_hp_errorlog *hp_elog)
{
	return -EOPNOTSUPP;
}
static inline int dlpar_hp_pmem(struct pseries_hp_errorlog *hp_elog)
{
	return -EOPNOTSUPP;
}
#endif

#ifdef CONFIG_HOTPLUG_CPU
int dlpar_cpu(struct pseries_hp_errorlog *hp_elog);
void pseries_cpu_hotplug_init(void);
#else
static inline int dlpar_cpu(struct pseries_hp_errorlog *hp_elog)
{
	return -EOPNOTSUPP;
}
static inline void pseries_cpu_hotplug_init(void) { }
#endif

/* PCI root bridge prepare function override for pseries */
struct pci_host_bridge;
int pseries_root_bridge_prepare(struct pci_host_bridge *bridge);

extern struct pci_controller_ops pseries_pci_controller_ops;
int pseries_msi_allocate_domains(struct pci_controller *phb);
void pseries_msi_free_domains(struct pci_controller *phb);

extern int CMO_PrPSP;
extern int CMO_SecPSP;
extern unsigned long CMO_PageSize;

static inline int cmo_get_primary_psp(void)
{
	return CMO_PrPSP;
}

static inline int cmo_get_secondary_psp(void)
{
	return CMO_SecPSP;
}

static inline unsigned long cmo_get_page_size(void)
{
	return CMO_PageSize;
}

int dlpar_workqueue_init(void);

extern u32 pseries_security_flavor;
void pseries_setup_security_mitigations(void);

#ifdef CONFIG_PPC_64S_HASH_MMU
void pseries_lpar_read_hblkrm_characteristics(void);
#else
static inline void pseries_lpar_read_hblkrm_characteristics(void) { }
#endif

void pseries_rng_init(void);
#ifdef CONFIG_SPAPR_TCE_IOMMU
struct iommu_group *pSeries_pci_device_group(struct pci_controller *hose,
					     struct pci_dev *pdev);
#endif

#endif /* _PSERIES_PSERIES_H */