Skip to content

Commit 7c18b45

Browse files
committed
Merge tag 'parisc-for-6.0-3' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux
Pull parisc architecture fixes from Helge Deller: "Some small parisc architecture fixes for 6.0-rc6: One patch lightens up a previous commit and thus unbreaks building the debian kernel, which tries to configure a 64-bit kernel with the ARCH=parisc environment variable set. The other patches fixes asm/errno.h includes in the tools directory and cleans up memory allocation in the iosapic driver. Summary: - Allow configuring 64-bit kernel with ARCH=parisc - Fix asm/errno.h includes in tools directory for parisc and xtensa - Clean up iosapic memory allocation - Minor typo and spelling fixes" * tag 'parisc-for-6.0-3' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux: parisc: Allow CONFIG_64BIT with ARCH=parisc parisc: remove obsolete manual allocation aligning in iosapic tools/include/uapi: Fix <asm/errno.h> for parisc and xtensa Input: hp_sdc: fix spelling typo in comment parisc: ccio-dma: Add missing iounmap in error path in ccio_probe()
2 parents 38eddee + 805ce86 commit 7c18b45

File tree

5 files changed

+16
-14
lines changed

5 files changed

+16
-14
lines changed

arch/parisc/Kconfig

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,18 @@ config MLONGCALLS
224224
Enabling this option will probably slow down your kernel.
225225

226226
config 64BIT
227-
def_bool "$(ARCH)" = "parisc64"
227+
def_bool y if "$(ARCH)" = "parisc64"
228+
bool "64-bit kernel" if "$(ARCH)" = "parisc"
228229
depends on PA8X00
230+
help
231+
Enable this if you want to support 64bit kernel on PA-RISC platform.
232+
233+
At the moment, only people willing to use more than 2GB of RAM,
234+
or having a 64bit-only capable PA-RISC machine should say Y here.
235+
236+
Since there is no 64bit userland on PA-RISC, there is no point to
237+
enable this option otherwise. The 64bit kernel is significantly bigger
238+
and slower than the 32bit one.
229239

230240
choice
231241
prompt "Kernel page size"

drivers/parisc/ccio-dma.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1546,6 +1546,7 @@ static int __init ccio_probe(struct parisc_device *dev)
15461546
}
15471547
ccio_ioc_init(ioc);
15481548
if (ccio_init_resources(ioc)) {
1549+
iounmap(ioc->ioc_regs);
15491550
kfree(ioc);
15501551
return -ENOMEM;
15511552
}

drivers/parisc/iosapic.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -221,16 +221,7 @@ static size_t irt_num_entry;
221221

222222
static struct irt_entry *iosapic_alloc_irt(int num_entries)
223223
{
224-
unsigned long a;
225-
226-
/* The IRT needs to be 8-byte aligned for the PDC call.
227-
* Normally kmalloc would guarantee larger alignment, but
228-
* if CONFIG_DEBUG_SLAB is enabled, then we can get only
229-
* 4-byte alignment on 32-bit kernels
230-
*/
231-
a = (unsigned long)kmalloc(sizeof(struct irt_entry) * num_entries + 8, GFP_KERNEL);
232-
a = (a + 7UL) & ~7UL;
233-
return (struct irt_entry *)a;
224+
return kcalloc(num_entries, sizeof(struct irt_entry), GFP_KERNEL);
234225
}
235226

236227
/**

include/linux/hp_sdc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ switch (val) { \
180180

181181
#define HP_SDC_CMD_SET_IM 0x40 /* 010xxxxx == set irq mask */
182182

183-
/* The documents provided do not explicitly state that all registers betweem
183+
/* The documents provided do not explicitly state that all registers between
184184
* 0x01 and 0x1f inclusive can be read by sending their register index as a
185185
* command, but this is implied and appears to be the case.
186186
*/

tools/include/uapi/asm/errno.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
#include "../../../arch/alpha/include/uapi/asm/errno.h"
1010
#elif defined(__mips__)
1111
#include "../../../arch/mips/include/uapi/asm/errno.h"
12-
#elif defined(__xtensa__)
13-
#include "../../../arch/xtensa/include/uapi/asm/errno.h"
12+
#elif defined(__hppa__)
13+
#include "../../../arch/parisc/include/uapi/asm/errno.h"
1414
#else
1515
#include <asm-generic/errno.h>
1616
#endif

0 commit comments

Comments
 (0)