Skip to content

Commit 16d72dd

Browse files
committed
Merge branch 'parisc-5.2-3' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux
Pull parisc fixes from Helge Deller: - Fix crashes when accessing PCI devices on some machines like C240 and J5000. The crashes were triggered because we replaced cache flushes by nops in the alternative coding where we shouldn't for some machines. - Dave fixed a race in the usage of the sr1 space register when used to load the coherence index. - Use the hardware lpa instruction to to load the physical address of kernel virtual addresses in the iommu driver code. - The kernel may fail to link when CONFIG_MLONGCALLS isn't set. Solve that by rearranging functions in the final vmlinux executeable. - Some defconfig cleanups and removal of compiler warnings. * 'parisc-5.2-3' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux: parisc: Fix crash due alternative coding for NP iopdir_fdc bit parisc: Use lpa instruction to load physical addresses in driver code parisc: configs: Remove useless UEVENT_HELPER_PATH parisc: Use implicit space register selection for loading the coherence index of I/O pdirs parisc: Fix compiler warnings in float emulation code parisc/slab: cleanup after /proc/slab_allocators removal parisc: Allow building 64-bit kernel without -mlong-calls compiler option parisc: Kconfig: remove ARCH_DISCARD_MEMBLOCK
2 parents ae87660 + 527a1d1 commit 16d72dd

14 files changed

Lines changed: 50 additions & 28 deletions

File tree

‎arch/parisc/Kconfig‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ config PARISC
3636
select GENERIC_STRNCPY_FROM_USER
3737
select SYSCTL_ARCH_UNALIGN_ALLOW
3838
select SYSCTL_EXCEPTION_TRACE
39-
select ARCH_DISCARD_MEMBLOCK
4039
select HAVE_MOD_ARCH_SPECIFIC
4140
select VIRT_TO_BUS
4241
select MODULES_USE_ELF_RELA
@@ -195,7 +194,8 @@ config PREFETCH
195194

196195
config MLONGCALLS
197196
bool "Enable the -mlong-calls compiler option for big kernels"
198-
default y
197+
default y if !MODULES || UBSAN || FTRACE
198+
default n
199199
depends on PA8X00
200200
help
201201
If you configure the kernel to include many drivers built-in instead

‎arch/parisc/configs/712_defconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ CONFIG_INET_DIAG=m
3434
CONFIG_NETFILTER=y
3535
CONFIG_LLC2=m
3636
CONFIG_NET_PKTGEN=m
37-
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
3837
CONFIG_DEVTMPFS=y
3938
CONFIG_DEVTMPFS_MOUNT=y
4039
# CONFIG_STANDALONE is not set

‎arch/parisc/configs/a500_defconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ CONFIG_IP_DCCP=m
7070
# CONFIG_IP_DCCP_CCID3 is not set
7171
CONFIG_LLC2=m
7272
CONFIG_NET_PKTGEN=m
73-
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
7473
CONFIG_DEVTMPFS=y
7574
CONFIG_DEVTMPFS_MOUNT=y
7675
# CONFIG_STANDALONE is not set

‎arch/parisc/configs/b180_defconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ CONFIG_INET=y
2424
CONFIG_IP_MULTICAST=y
2525
CONFIG_IP_PNP=y
2626
CONFIG_IP_PNP_BOOTP=y
27-
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
2827
CONFIG_DEVTMPFS=y
2928
CONFIG_DEVTMPFS_MOUNT=y
3029
# CONFIG_PREVENT_FIRMWARE_BUILD is not set

‎arch/parisc/configs/c3000_defconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ CONFIG_INET6_IPCOMP=m
3232
CONFIG_IPV6_TUNNEL=m
3333
CONFIG_NETFILTER=y
3434
CONFIG_NET_PKTGEN=m
35-
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
3635
CONFIG_DEVTMPFS=y
3736
CONFIG_DEVTMPFS_MOUNT=y
3837
# CONFIG_STANDALONE is not set

‎arch/parisc/configs/c8000_defconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ CONFIG_IP_DCCP=m
5757
CONFIG_TIPC=m
5858
CONFIG_LLC2=m
5959
CONFIG_DNS_RESOLVER=y
60-
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
6160
CONFIG_DEVTMPFS=y
6261
CONFIG_DEVTMPFS_MOUNT=y
6362
# CONFIG_STANDALONE is not set

‎arch/parisc/configs/default_defconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ CONFIG_INET6_AH=y
4444
CONFIG_INET6_ESP=y
4545
CONFIG_INET6_IPCOMP=y
4646
CONFIG_LLC2=m
47-
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
4847
CONFIG_DEVTMPFS=y
4948
CONFIG_DEVTMPFS_MOUNT=y
5049
# CONFIG_STANDALONE is not set

‎arch/parisc/configs/generic-32bit_defconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ CONFIG_INET_ESP=m
4747
CONFIG_INET_DIAG=m
4848
CONFIG_LLC2=m
4949
# CONFIG_WIRELESS is not set
50-
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
5150
CONFIG_DEVTMPFS=y
5251
CONFIG_DEVTMPFS_MOUNT=y
5352
# CONFIG_STANDALONE is not set

‎arch/parisc/include/asm/special_insns.h‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,30 @@
22
#ifndef __PARISC_SPECIAL_INSNS_H
33
#define __PARISC_SPECIAL_INSNS_H
44

5+
#define lpa(va) ({ \
6+
unsigned long pa; \
7+
__asm__ __volatile__( \
8+
"copy %%r0,%0\n\t" \
9+
"lpa %%r0(%1),%0" \
10+
: "=r" (pa) \
11+
: "r" (va) \
12+
: "memory" \
13+
); \
14+
pa; \
15+
})
16+
17+
#define lpa_user(va) ({ \
18+
unsigned long pa; \
19+
__asm__ __volatile__( \
20+
"copy %%r0,%0\n\t" \
21+
"lpa %%r0(%%sr3,%1),%0" \
22+
: "=r" (pa) \
23+
: "r" (va) \
24+
: "memory" \
25+
); \
26+
pa; \
27+
})
28+
529
#define mfctl(reg) ({ \
630
unsigned long cr; \
731
__asm__ __volatile__( \

‎arch/parisc/kernel/alternative.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ void __init_or_module apply_alternatives(struct alt_instr *start,
5656
* time IO-PDIR is changed in Ike/Astro.
5757
*/
5858
if ((cond & ALT_COND_NO_IOC_FDC) &&
59-
(boot_cpu_data.pdc.capabilities & PDC_MODEL_IOPDIR_FDC))
59+
((boot_cpu_data.cpu_type <= pcxw_) ||
60+
(boot_cpu_data.pdc.capabilities & PDC_MODEL_IOPDIR_FDC)))
6061
continue;
6162

6263
/* Want to replace pdtlb by a pdtlb,l instruction? */

0 commit comments

Comments
 (0)