diff options
-rw-r--r-- | arch/parisc/include/asm/cache.h | 18 | ||||
-rw-r--r-- | arch/parisc/include/uapi/asm/unistd.h | 4 | ||||
-rw-r--r-- | arch/parisc/kernel/syscall_table.S | 2 | ||||
-rw-r--r-- | drivers/parisc/lba_pci.c | 12 | ||||
-rw-r--r-- | drivers/tty/serial/mux.c | 9 | ||||
-rw-r--r-- | include/linux/netdevice.h | 4 |
6 files changed, 20 insertions, 29 deletions
diff --git a/arch/parisc/include/asm/cache.h b/arch/parisc/include/asm/cache.h index 47f11c707b65..3d0e17bcc8e9 100644 --- a/arch/parisc/include/asm/cache.h +++ b/arch/parisc/include/asm/cache.h | |||
@@ -7,20 +7,12 @@ | |||
7 | 7 | ||
8 | 8 | ||
9 | /* | 9 | /* |
10 | * PA 2.0 processors have 64-byte cachelines; PA 1.1 processors have | 10 | * PA 2.0 processors have 64 and 128-byte L2 cachelines; PA 1.1 processors |
11 | * 32-byte cachelines. The default configuration is not for SMP anyway, | 11 | * have 32-byte cachelines. The L1 length appears to be 16 bytes but this |
12 | * so if you're building for SMP, you should select the appropriate | 12 | * is not clearly documented. |
13 | * processor type. There is a potential livelock danger when running | ||
14 | * a machine with this value set too small, but it's more probable you'll | ||
15 | * just ruin performance. | ||
16 | */ | 13 | */ |
17 | #ifdef CONFIG_PA20 | 14 | #define L1_CACHE_BYTES 16 |
18 | #define L1_CACHE_BYTES 64 | 15 | #define L1_CACHE_SHIFT 4 |
19 | #define L1_CACHE_SHIFT 6 | ||
20 | #else | ||
21 | #define L1_CACHE_BYTES 32 | ||
22 | #define L1_CACHE_SHIFT 5 | ||
23 | #endif | ||
24 | 16 | ||
25 | #ifndef __ASSEMBLY__ | 17 | #ifndef __ASSEMBLY__ |
26 | 18 | ||
diff --git a/arch/parisc/include/uapi/asm/unistd.h b/arch/parisc/include/uapi/asm/unistd.h index 2e639d7604f6..33170384d3ac 100644 --- a/arch/parisc/include/uapi/asm/unistd.h +++ b/arch/parisc/include/uapi/asm/unistd.h | |||
@@ -358,8 +358,10 @@ | |||
358 | #define __NR_memfd_create (__NR_Linux + 340) | 358 | #define __NR_memfd_create (__NR_Linux + 340) |
359 | #define __NR_bpf (__NR_Linux + 341) | 359 | #define __NR_bpf (__NR_Linux + 341) |
360 | #define __NR_execveat (__NR_Linux + 342) | 360 | #define __NR_execveat (__NR_Linux + 342) |
361 | #define __NR_membarrier (__NR_Linux + 343) | ||
362 | #define __NR_userfaultfd (__NR_Linux + 344) | ||
361 | 363 | ||
362 | #define __NR_Linux_syscalls (__NR_execveat + 1) | 364 | #define __NR_Linux_syscalls (__NR_userfaultfd + 1) |
363 | 365 | ||
364 | 366 | ||
365 | #define __IGNORE_select /* newselect */ | 367 | #define __IGNORE_select /* newselect */ |
diff --git a/arch/parisc/kernel/syscall_table.S b/arch/parisc/kernel/syscall_table.S index 8eefb12d1d33..78c3ef8c348d 100644 --- a/arch/parisc/kernel/syscall_table.S +++ b/arch/parisc/kernel/syscall_table.S | |||
@@ -438,6 +438,8 @@ | |||
438 | ENTRY_SAME(memfd_create) /* 340 */ | 438 | ENTRY_SAME(memfd_create) /* 340 */ |
439 | ENTRY_SAME(bpf) | 439 | ENTRY_SAME(bpf) |
440 | ENTRY_COMP(execveat) | 440 | ENTRY_COMP(execveat) |
441 | ENTRY_SAME(membarrier) | ||
442 | ENTRY_SAME(userfaultfd) | ||
441 | 443 | ||
442 | 444 | ||
443 | .ifne (. - 90b) - (__NR_Linux_syscalls * (91b - 90b)) | 445 | .ifne (. - 90b) - (__NR_Linux_syscalls * (91b - 90b)) |
diff --git a/drivers/parisc/lba_pci.c b/drivers/parisc/lba_pci.c index a32c1f6c252c..42844c2bc065 100644 --- a/drivers/parisc/lba_pci.c +++ b/drivers/parisc/lba_pci.c | |||
@@ -624,6 +624,10 @@ extend_lmmio_len(unsigned long start, unsigned long end, unsigned long lba_len) | |||
624 | { | 624 | { |
625 | struct resource *tmp; | 625 | struct resource *tmp; |
626 | 626 | ||
627 | /* exit if not a C8000 */ | ||
628 | if (boot_cpu_data.cpu_type < mako) | ||
629 | return end; | ||
630 | |||
627 | pr_debug("LMMIO mismatch: PAT length = 0x%lx, MASK register = 0x%lx\n", | 631 | pr_debug("LMMIO mismatch: PAT length = 0x%lx, MASK register = 0x%lx\n", |
628 | end - start, lba_len); | 632 | end - start, lba_len); |
629 | 633 | ||
@@ -631,10 +635,6 @@ extend_lmmio_len(unsigned long start, unsigned long end, unsigned long lba_len) | |||
631 | 635 | ||
632 | pr_debug("LBA: lmmio_space [0x%lx-0x%lx] - original\n", start, end); | 636 | pr_debug("LBA: lmmio_space [0x%lx-0x%lx] - original\n", start, end); |
633 | 637 | ||
634 | if (boot_cpu_data.cpu_type < mako) { | ||
635 | pr_info("LBA: Not a C8000 system - not extending LMMIO range.\n"); | ||
636 | return end; | ||
637 | } | ||
638 | 638 | ||
639 | end += lba_len; | 639 | end += lba_len; |
640 | if (end < start) /* fix overflow */ | 640 | if (end < start) /* fix overflow */ |
@@ -1557,9 +1557,9 @@ lba_driver_probe(struct parisc_device *dev) | |||
1557 | pci_add_resource_offset(&resources, &lba_dev->hba.lmmio_space, | 1557 | pci_add_resource_offset(&resources, &lba_dev->hba.lmmio_space, |
1558 | lba_dev->hba.lmmio_space_offset); | 1558 | lba_dev->hba.lmmio_space_offset); |
1559 | if (lba_dev->hba.gmmio_space.flags) { | 1559 | if (lba_dev->hba.gmmio_space.flags) { |
1560 | /* Not registering GMMIO space - according to docs it's not | ||
1561 | * even used on HP-UX. */ | ||
1560 | /* pci_add_resource(&resources, &lba_dev->hba.gmmio_space); */ | 1562 | /* pci_add_resource(&resources, &lba_dev->hba.gmmio_space); */ |
1561 | pr_warn("LBA: Not registering GMMIO space %pR\n", | ||
1562 | &lba_dev->hba.gmmio_space); | ||
1563 | } | 1563 | } |
1564 | 1564 | ||
1565 | pci_add_resource(&resources, &lba_dev->hba.bus_num); | 1565 | pci_add_resource(&resources, &lba_dev->hba.bus_num); |
diff --git a/drivers/tty/serial/mux.c b/drivers/tty/serial/mux.c index dd26511ad875..8a4be4b73723 100644 --- a/drivers/tty/serial/mux.c +++ b/drivers/tty/serial/mux.c | |||
@@ -412,19 +412,14 @@ static int mux_console_setup(struct console *co, char *options) | |||
412 | return 0; | 412 | return 0; |
413 | } | 413 | } |
414 | 414 | ||
415 | struct tty_driver *mux_console_device(struct console *co, int *index) | ||
416 | { | ||
417 | *index = co->index; | ||
418 | return mux_driver.tty_driver; | ||
419 | } | ||
420 | |||
421 | static struct console mux_console = { | 415 | static struct console mux_console = { |
422 | .name = "ttyB", | 416 | .name = "ttyB", |
423 | .write = mux_console_write, | 417 | .write = mux_console_write, |
424 | .device = mux_console_device, | 418 | .device = uart_console_device, |
425 | .setup = mux_console_setup, | 419 | .setup = mux_console_setup, |
426 | .flags = CON_ENABLED | CON_PRINTBUFFER, | 420 | .flags = CON_ENABLED | CON_PRINTBUFFER, |
427 | .index = 0, | 421 | .index = 0, |
422 | .data = &mux_driver, | ||
428 | }; | 423 | }; |
429 | 424 | ||
430 | #define MUX_CONSOLE &mux_console | 425 | #define MUX_CONSOLE &mux_console |
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 4ac653b7b8ac..a9e3bf42d287 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -718,8 +718,8 @@ struct xps_map { | |||
718 | u16 queues[0]; | 718 | u16 queues[0]; |
719 | }; | 719 | }; |
720 | #define XPS_MAP_SIZE(_num) (sizeof(struct xps_map) + ((_num) * sizeof(u16))) | 720 | #define XPS_MAP_SIZE(_num) (sizeof(struct xps_map) + ((_num) * sizeof(u16))) |
721 | #define XPS_MIN_MAP_ALLOC ((L1_CACHE_BYTES - sizeof(struct xps_map)) \ | 721 | #define XPS_MIN_MAP_ALLOC ((L1_CACHE_ALIGN(offsetof(struct xps_map, queues[1])) \ |
722 | / sizeof(u16)) | 722 | - sizeof(struct xps_map)) / sizeof(u16)) |
723 | 723 | ||
724 | /* | 724 | /* |
725 | * This structure holds all XPS maps for device. Maps are indexed by CPU. | 725 | * This structure holds all XPS maps for device. Maps are indexed by CPU. |