linux-stable/arch/powerpc/include/asm
Shrikanth Hegde 12ea1ec137 powerpc/pseries: Add failure related checks for h_get_mpp and h_get_ppp
[ Upstream commit 6d43416385 ]

Couple of Minor fixes:

- hcall return values are long. Fix that for h_get_mpp, h_get_ppp and
parse_ppp_data

- If hcall fails, values set should be at-least zero. It shouldn't be
uninitialized values. Fix that for h_get_mpp and h_get_ppp

Signed-off-by: Shrikanth Hegde <sshegde@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240412092047.455483-3-sshegde@linux.ibm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-06-16 13:32:24 +02:00
..
book3s mm: rename p4d_page_vaddr to p4d_pgtable and make it return pud_t * 2023-07-27 08:43:58 +02:00
nohash powerpc/40x: Remove stale PTE_ATOMIC_UPDATES macro 2023-11-20 11:06:53 +01:00
8xx_immap.h
accounting.h
agp.h
archrandom.h powerpc: Mark archrandom.h functions __must_check 2020-01-25 12:18:51 -05:00
asm-compat.h
asm-const.h powerpc/uaccess: Don't use "m<>" constraint with GCC 4.9 2020-10-22 14:26:09 +11:00
asm-offsets.h
asm-prototypes.h powerpc/security: Fix link stack flush instruction 2020-10-08 12:50:52 +11:00
async_tx.h
atomic.h powerpc updates for 5.9 2020-08-07 10:33:50 -07:00
backlight.h
barrier.h powerpc/barrier: Avoid collision with clang's __lwsync macro 2021-07-19 09:44:56 +02:00
bitops.h powerpc/bitops: Fix possible undefined behaviour with fls() and fls64() 2020-12-30 11:54:16 +01:00
bootx.h
bpf_perf_event.h powerpc/bpf: Fix use of user_pt_regs in uapi 2022-07-07 17:52:15 +02:00
btext.h
bug.h powerpc: Refactor BUG/WARN macros 2019-11-18 22:27:51 +11:00
cache.h treewide: Convert macro and uses of __section(foo) to __section("foo") 2020-10-25 14:51:49 -07:00
cacheflush.h powerpc: Rewrite 4xx flush_cache_instruction() in C 2020-09-02 11:00:21 +10:00
cell-pmu.h
cell-regs.h
checksum.h ppc: propagate the calling conventions change down to csum_partial_copy_generic() 2020-08-20 15:45:22 -04:00
cmpxchg.h powerpc: Remove IBM405 Erratum #77 2020-05-28 23:24:36 +10:00
code-patching-asm.h
code-patching.h powerpc/lib: Add helper to check if offset is within conditional branch range 2021-11-18 14:04:29 +01:00
compat.h compat: lift compat_s64 and compat_u64 to <asm-generic/compat.h> 2020-09-17 13:00:46 -04:00
context_tracking.h
copro.h
cpm.h soc: fsl: move cpm.h from powerpc/include/asm to include/soc/fsl 2019-12-09 13:54:34 -06:00
cpm1.h powerpc/8xx: Fix early debug when SMC1 is relocated 2020-12-30 11:54:16 +01:00
cpm2.h
cpu_has_feature.h powerpc: Force inlining of cpu_has_feature() to avoid build failure 2021-03-25 09:04:14 +01:00
cpu_setup_power.h powerpc/64s: Convert some cpu_setup() and cpu_restore() functions to C 2022-01-27 10:54:05 +01:00
cpufeature.h
cpuidle.h
cputable.h powerpc/feature: Add CPU_FTR_NOEXECUTE to G2_LE 2020-12-30 11:54:16 +01:00
cputhreads.h KVM: PPC: Book3S HV: Fix TLB management on SMT8 POWER9 and POWER10 processors 2021-07-14 16:55:55 +02:00
cputime.h powerpc/cputime.h: delete duplicated word 2020-07-27 00:01:31 +10:00
crashdump-ppc64.h powerpc/kexec_file: Setup backup region for kdump kernel 2020-07-29 23:47:54 +10:00
current.h
dbdma.h
dbell.h powerpc: Inline doorbell sending functions 2020-07-29 21:02:09 +10:00
dcr-generic.h
dcr-mmio.h
dcr-native.h powerpc/4xx: Fix build errors from mfdcr() 2021-03-30 14:31:47 +02:00
dcr-regs.h
dcr.h
debug.h powerpc/watchpoint: Provide DAWR number to __set_breakpoint 2020-05-19 00:11:04 +10:00
debugfs.h
delay.h powerpc/time: Avoid using get_tbl() and get_tbu() internally 2020-10-08 21:17:15 +11:00
device.h IOMMU Updates for Linux v5.9 2020-08-11 14:13:24 -07:00
disassemble.h
dma-direct.h dma-direct: rename and cleanup __phys_to_dma 2020-09-11 09:14:43 +02:00
dma.h powerpc/32: drop unused ISA_DMA_THRESHOLD 2020-04-01 14:30:50 +11:00
drmem.h powerpc/drmem: Make lmb_size 64 bit 2020-10-08 12:50:52 +11:00
dt_cpu_ftrs.h
dtl.h powerpc64: Break asm/percpu.h vs spinlock_types.h dependency 2020-07-10 12:00:01 +02:00
edac.h
eeh.h powerpc/eeh: Delete eeh_pe->config_addr 2020-10-07 22:34:47 +11:00
eeh_event.h
ehv_pic.h
elf.h kill elf_fpxregs_t 2020-07-27 14:29:23 -04:00
elfnote.h powerpc: Add PowerPC Capabilities ELF note 2019-08-30 09:40:15 +10:00
emergency-restart.h
emulated_ops.h
epapr_hcalls.h powerpc/epapr_hcalls.h: delete duplicated words 2020-07-27 00:01:31 +10:00
exception-64e.h powerpc/64e: Drop dead BOOK3E_MMU_TLB_STATS code 2020-07-29 21:08:12 +10:00
exception-64s.h powerpc/64s: fix scv entry fallback flush vs interrupt 2021-01-27 11:55:12 +01:00
exec.h
extable.h
fadump-internal.h powerpc/fadump: use static allocation for reserved memory ranges 2020-05-04 22:29:58 +10:00
fadump.h powerpc/fadump: add support to preserve crash data on FADUMP disabled kernel 2019-09-14 00:04:45 +10:00
fb.h
feature-fixups.h powerpc/64s: fix scv entry fallback flush vs interrupt 2021-01-27 11:55:12 +01:00
firmware.h powerpc/pseries: Add support for FORM2 associativity 2023-04-20 12:10:28 +02:00
fixmap.h powerpc/fixmap: Fix VM debug warning on unmap 2022-02-16 12:54:19 +01:00
floppy.h floppy: use symbolic register names in the powerpc port 2020-05-12 19:34:53 +03:00
fs_pd.h
fsl_85xx_cache_sram.h
fsl_gtm.h
fsl_hcalls.h
fsl_lbc.h
fsl_pamu_stash.h
fsl_pm.h
ftrace.h powerpc/ftrace: Remove ftrace init tramp once kernel init is complete 2022-07-02 16:39:25 +02:00
futex.h powerpc: Remove IBM405 Erratum #77 2020-05-28 23:24:36 +10:00
grackle.h
hardirq.h powerpc/64s: Move HMI IRQ stat from percpu variable to paca. 2020-07-29 23:47:53 +10:00
head-64.h powerpc/64s: system call support for scv/rfscv instructions 2020-07-22 23:00:27 +10:00
heathrow.h
highmem.h kmap: consolidate kmap_prot definitions 2020-06-04 19:06:22 -07:00
hmi.h
hugetlb.h powerpc/hugetlb/cma: Allocate gigantic hugetlb pages using CMA 2020-07-29 21:09:37 +10:00
hvcall.h powerpc/pseries: Add failure related checks for h_get_mpp and h_get_ppp 2024-06-16 13:32:24 +02:00
hvconsole.h
hvcserver.h
hvsi.h
hw_breakpoint.h powerpc/watchpoint: Fix exception handling for CONFIG_HAVE_HW_BREAKPOINT=N 2020-09-15 22:13:20 +10:00
hw_irq.h powerpc/perf: Fix PMU callbacks to clear pending PMI before resetting an overflown PMC 2022-01-27 10:54:05 +01:00
hydra.h powerpc: Replace HTTP links with HTTPS ones 2020-07-22 00:01:23 +10:00
i8259.h
ibmebus.h
icswx.h powerpc/nx: Don't pack struct coprocessor_request_block 2020-08-25 01:31:33 +10:00
ide.h
idle.h powerpc/sysfs: Show idle_purr and idle_spurr for every CPU 2020-04-30 12:35:26 +10:00
ima.h
imc-pmu.h powerpc/imc-pmu: Fix use of mutex in IRQs disabled section 2023-01-18 11:44:58 +01:00
immap_cpm2.h
inst.h powerpc: Add a ppc_inst_as_str() helper 2020-07-23 17:41:36 +10:00
io-defs.h
io-workarounds.h
io.h powerpc: Fix build errors with newer binutils 2022-04-08 14:40:37 +02:00
io_event_irq.h
iommu.h dma-mapping: split <linux/dma-mapping.h> 2020-10-06 07:07:03 +02:00
ipic.h
irq.h powerpc/irq: Drop forward declaration of struct irqaction 2020-09-02 11:00:19 +10:00
irq_work.h
irqflags.h
isa-bridge.h
jump_label.h
kasan.h powerpc/kasan: Fix KASAN_SHADOW_START on BOOK3S_32 2020-08-18 13:39:52 +10:00
Kbuild local64.h: make <asm/local64.h> mandatory 2021-01-12 20:18:16 +01:00
kdebug.h
kdump.h
kexec.h powerpc/kexec_file: fix FDT size estimation for kdump kernel 2021-03-04 11:38:39 +01:00
kexec_ranges.h powerpc/kexec_file: Avoid stomping memory used by special regions 2020-07-29 23:47:53 +10:00
keylargo.h
kgdb.h
kmap_types.h
kprobes.h powerpc: Add prefixed instructions to instruction data type 2020-05-19 00:10:39 +10:00
kup.h powerpc: Only include kup-radix.h for 64-bit Book3S 2020-11-19 23:47:20 +11:00
kvm_asm.h KVM: PPC: Book3S HV: Treat TM-related invalid form instructions on P9 like the valid ones 2020-03-19 16:39:52 +11:00
kvm_book3s.h MIPS: 2020-06-12 11:05:52 -07:00
kvm_book3s_32.h
kvm_book3s_64.h powerpc/book3s64/kvm: Fix secondary page table walk warning during migration 2020-05-29 16:09:27 +10:00
kvm_book3s_asm.h KVM: PPC: Book3S HV: Save/restore new PMU registers 2020-07-22 21:56:41 +10:00
kvm_book3s_uvmem.h KVM: PPC: Book3S HV: Migrate hot plugged memory 2020-07-28 12:34:52 +10:00
kvm_booke.h powerpc: Inline doorbell sending functions 2020-07-29 21:02:09 +10:00
kvm_booke_hv_asm.h
kvm_fpu.h
kvm_guest.h powerpc: Fix is_kvm_guest() / kvm_para_available() 2021-11-18 14:04:17 +01:00
kvm_host.h KVM: PPC: Book3S HV: XICS: Replace the 'destroy' method by a 'release' method 2020-09-03 14:12:48 +10:00
kvm_para.h powerpc: Reintroduce is_kvm_guest() as a fast-path check 2021-11-18 14:04:17 +01:00
kvm_ppc.h KVM: PPC: Clean up redundant kvm_run parameters in assembly 2020-07-23 15:50:01 +10:00
libata-portmap.h
linkage.h
livepatch.h
local.h powerpc: Add const qual to local_read() parameter 2019-11-24 15:06:33 -08:00
lppaca.h powerpc/pseries: Rework lppaca_shared_proc() to avoid DEBUG_PREEMPT 2023-09-19 12:20:15 +02:00
lv1call.h
machdep.h powerpc/pci: Add ppc_md.discover_phbs() 2021-03-17 17:06:23 +01:00
macio.h
mc146818rtc.h
mce.h powerpc/kernel: Cleanup machine check function declarations 2020-08-17 14:13:18 +10:00
mediabay.h
mem_encrypt.h powerpc/pseries/svm: Force SWIOTLB for secure guests 2019-08-30 09:55:41 +10:00
membarrier.h
mm-arch-hooks.h
mman.h powerpc/64s: Disallow PROT_SAO in LPARs by default 2020-08-24 14:12:54 +10:00
mmiowb.h
mmu.h powerpc/mm: Fix build failures due to arch_reserved_kernel_pages() 2024-02-23 08:42:02 +01:00
mmu_context.h powerpc: select ARCH_WANT_IRQS_OFF_ACTIVATE_MM 2020-09-16 12:24:37 +10:00
mmzone.h powerpc/mm: Fix build failures due to arch_reserved_kernel_pages() 2024-02-23 08:42:02 +01:00
module.h powerpc updates for 5.8 2020-06-05 12:39:30 -07:00
module.lds.h kbuild: preprocess module linker script 2020-09-25 00:36:41 +09:00
mpc5xxx.h
mpc6xx.h
mpc52xx.h
mpc52xx_psc.h
mpc85xx.h
mpc5121.h
mpc8260.h
mpic.h
mpic_msgr.h
mpic_timer.h
msi_bitmap.h
nmi.h
nvram.h
ohare.h
opal-api.h powerpc/powernv: Add explicit fast-reboot support 2020-03-04 22:44:27 +11:00
opal.h powerpc/powernv: Add OPAL API interface to access secure variable 2019-11-13 00:33:22 +11:00
oprofile_impl.h
paca.h powerpc: Don't include lppaca.h in paca.h 2023-09-19 12:20:15 +02:00
page.h powerpc/64: Only WARN if __pa()/__va() called with bad addresses 2022-06-09 10:21:17 +02:00
page_32.h
page_64.h mm/vma: define a default value for VM_DATA_DEFAULT_FLAGS 2020-04-10 15:36:21 -07:00
paravirt.h powerpc: Don't include lppaca.h in paca.h 2023-09-19 12:20:15 +02:00
parport.h
pasemi_dma.h
pci-bridge.h Revert "powerpc/pci: unmap legacy INTx interrupts when a PHB is removed" 2020-10-15 13:42:49 +11:00
pci.h dma-mapping: split <linux/dma-mapping.h> 2020-10-06 07:07:03 +02:00
percpu.h powerpc: Fix circular dependency between percpu.h and mmu.h 2020-08-04 23:15:59 +10:00
perf_event.h powerpc/perf: Add support for outputting extended regs in perf intr_regs 2020-08-17 13:11:22 +10:00
perf_event_fsl_emb.h
perf_event_server.h powerpc/perf: Add support for outputting extended regs in perf intr_regs 2020-08-17 13:11:22 +10:00
pgalloc.h mm: remove quicklist page table caches 2019-09-24 15:54:09 -07:00
pgtable-be-types.h
pgtable-types.h
pgtable.h mm: consolidate pte_index() and pte_offset_*() definitions 2020-06-09 09:39:14 -07:00
pkeys.h powerpc/book3s64/pkeys: Use MMU_FTR_PKEY instead of pkey_disabled static key 2020-07-20 22:57:59 +10:00
plpar_wrappers.h powerpc: Don't include lppaca.h in paca.h 2023-09-19 12:20:15 +02:00
pmac_feature.h
pmac_low_i2c.h
pmac_pfunc.h
pmc.h KVM: PPC: Book3S HV Nested: Reflect guest PMU in-use to L0 when guest SPRs are live 2021-09-18 13:40:15 +02:00
pmi.h
pnv-ocxl.h ocxl: Remove custom service to allocate interrupts 2020-08-25 01:31:31 +10:00
pnv-pci.h powerpc/powernv/ioda: Find opencapi slot for a device node 2020-01-23 21:31:17 +11:00
powernv.h
ppc-opcode.h powerpc/mm: Switch obsolete dssall to .long 2022-06-14 18:32:46 +02:00
ppc-pci.h
ppc4xx.h
ppc_asm.h powerpc: Remove support for PowerPC 601 2020-10-08 21:17:13 +11:00
probes.h
processor.h Merge branch 'work.set_fs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2020-10-22 09:59:21 -07:00
prom.h powerpc/pseries: Add support for FORM2 associativity 2023-04-20 12:10:28 +02:00
ps3.h powerpc/ps3: Add dma_mask to ps3_dma_region 2021-07-20 16:05:42 +02:00
ps3av.h
ps3gpu.h
ps3stor.h
pte-walk.h
ptrace.h powerpc/64s/syscall: Fix ptrace syscall info with scv syscalls 2021-05-26 12:06:53 +02:00
qspinlock.h powerpc/qspinlock: Optimised atomic_try_cmpxchg_lock() that adds the lock hint 2020-07-27 00:01:29 +10:00
qspinlock_paravirt.h powerpc/pseries: Implement paravirt qspinlocks for SPLPAR 2020-07-27 00:01:29 +10:00
reg.h powerpc/perf: MMCR0 control for PMU registers under PMCC=00 2022-01-27 10:54:05 +01:00
reg_8xx.h powerpc/hw_breakpoints: Rewrite 8xx breakpoints to allow any address range size. 2020-01-23 21:31:14 +11:00
reg_a2.h
reg_booke.h powerpc/time: Remove ifdef in get_dec() and set_dec() 2020-10-08 21:17:14 +11:00
reg_fsl_emb.h powerpc/fsl: Fix mfpmr build errors with newer binutils 2024-04-13 12:58:15 +02:00
rheap.h
rio.h
rtas-types.h powerpc/rtas: Move type/struct definitions from rtas.h into rtas-types.h 2020-06-02 20:59:08 +10:00
rtas.h powerpc/pseries: remove memory "re-add" implementation 2020-07-16 13:12:40 +10:00
runlatch.h
seccomp.h
sections.h powerpc: Remove in_kernel_text() 2024-01-25 14:37:39 -08:00
secure_boot.h powerpc: Detect the trusted boot state of the system 2019-11-12 12:25:49 +11:00
security_features.h powerpc/security: Add a helper to query stf_barrier type 2021-11-18 14:04:30 +01:00
secvar.h powerpc/powernv: Add OPAL API interface to access secure variable 2019-11-13 00:33:22 +11:00
serial.h
setjmp.h powerpc: Make setjmp/longjmp signature standard 2020-04-01 14:30:51 +11:00
setup.h powerpc/64s: flush L1D after user accesses 2020-11-19 23:47:18 +11:00
sfp-machine.h
shmparam.h
signal.h powerpc/64/sycall: Implement syscall entry/exit logic in C 2020-04-01 13:42:13 +11:00
simple_spinlock.h powerpc: Move spinlock implementation to simple_spinlock 2020-07-26 23:34:26 +10:00
simple_spinlock_types.h powerpc: Move spinlock implementation to simple_spinlock 2020-07-26 23:34:26 +10:00
slice.h powerpc/8xx: MM_SLICE is not needed anymore 2020-05-26 22:22:21 +10:00
smp.h powerpc/smp: Reintroduce cpu_core_mask 2021-05-14 09:50:39 +02:00
smu.h powerpc/smu.h: delete duplicated word 2020-07-27 00:01:32 +10:00
sparsemem.h mm: fix phys_to_target_node() and memory_add_physaddr_to_nid() exports 2020-11-22 10:48:22 -08:00
spinlock.h powerpc/pseries: Implement paravirt qspinlocks for SPLPAR 2020-07-27 00:01:29 +10:00
spinlock_types.h powerpc/64s: Implement queued spinlocks and rwlocks 2020-07-27 00:01:23 +10:00
spu.h
spu_csa.h
spu_info.h
spu_priv1.h
sstep.h Merge branch 'scv' support into next 2020-07-23 17:43:44 +10:00
stackprotector.h
stacktrace.h
string.h x86, powerpc: Rename memcpy_mcsafe() to copy_mc_to_{user, kernel}() 2020-10-06 11:18:04 +02:00
svm.h powerpc/pseries/svm: Allocate SWIOTLB buffer anywhere in memory 2020-09-14 23:07:14 +10:00
swab.h
swiotlb.h
switch_to.h powerpc: Fix missing declaration of [en/dis]able_kernel_vsx() 2021-03-17 17:06:35 +01:00
synch.h powerpc/64s: Add cp_abort after tlbiel to invalidate copy-buffer address 2020-10-06 23:22:23 +11:00
syscall.h powerpc/64s/syscall: Fix ptrace syscall info with scv syscalls 2021-05-26 12:06:53 +02:00
syscalls.h
task_size_32.h
task_size_64.h
tce.h
termios.h
thread_info.h powerpc: add support for TIF_NOTIFY_SIGNAL 2023-01-04 11:39:19 +01:00
time.h powerpc/time: Make get_tb() common to PPC32 and PPC64 2020-10-08 21:17:16 +11:00
timex.h powerpc: define get_cycles macro for arch-override 2022-05-30 09:33:41 +02:00
tlb.h powerpc/64s/radix: Fix mm_cpumask trimming race vs kthread_use_mm 2020-09-16 12:24:37 +10:00
tlbflush.h
tm.h
topology.h powerpc/pseries: Add a helper for form1 cpu distance 2023-04-20 12:10:28 +02:00
trace.h
trace_clock.h
tsi108.h
tsi108_irq.h
tsi108_pci.h
types.h
uaccess.h powerpc: Fix build errors with newer binutils 2022-04-08 14:40:37 +02:00
udbg.h
uic.h
ultravisor-api.h KVM: PPC: Book3S HV: Support reset of secure guest 2019-11-28 17:02:31 +11:00
ultravisor.h KVM: PPC: Book3S HV: Support reset of secure guest 2019-11-28 17:02:31 +11:00
unaligned.h
uninorth.h
unistd.h powerpc: Add back __ARCH_WANT_SYS_LLSEEK macro 2020-04-03 00:09:59 +11:00
uprobes.h powerpc: Add prefixed instructions to instruction data type 2020-05-19 00:10:39 +10:00
user.h
vas.h powerpc/powernv/vas: Assign real address to rx_fifo in vas_rx_win_attr 2022-06-09 10:20:58 +02:00
vdso.h powerpc/vdso: remove deprecated VDS64_HAS_DESCRIPTORS references 2020-03-13 21:13:06 +11:00
vdso_datapage.h powerpc/vdso32: Don't read cache line size from the datapage on PPC32. 2020-01-23 21:31:15 +11:00
vermagic.h arch: split MODULE_ARCH_VERMAGIC definitions out to <asm/vermagic.h> 2020-04-23 10:50:26 +09:00
vga.h
vio.h
vmalloc.h mm/vmalloc: Add empty <asm/vmalloc.h> headers and use them from <linux/vmalloc.h> 2019-12-10 10:12:55 +01:00
word-at-a-time.h word-at-a-time: use the same return type for has_zero regardless of endianness 2023-08-11 11:57:47 +02:00
xics.h
xive-regs.h powerpc/xive: Enforce load-after-store ordering when StoreEOI is active 2020-05-07 22:58:31 +10:00
xive.h powerpc/xive: Remove unused inline function xive_kexec_teardown_cpu() 2020-07-16 13:12:44 +10:00
xmon.h
xor.h
xor_altivec.h