Skip to content

Commit fb3b806

Browse files
committed
Merge branch 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86, AMD IOMMU: include amd_iommu_last_bdf in device initialization x86: fix IBM Summit based systems' phys_cpu_present_map on 32-bit kernels x86, RDC321x: remove gpio.h complications x86, RDC321x: add to mach-default crashdump: fix undefined reference to `elfcorehdr_addr' flag parameters: fix compile error of sys_epoll_create1
2 parents 7f268a2 + 3a61ec3 commit fb3b806

File tree

7 files changed

+22
-31
lines changed

7 files changed

+22
-31
lines changed

arch/x86/Kconfig

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ config X86
2424
select HAVE_IOREMAP_PROT
2525
select HAVE_GET_USER_PAGES_FAST
2626
select HAVE_KPROBES
27-
select ARCH_WANT_OPTIONAL_GPIOLIB if !X86_RDC321X
27+
select ARCH_WANT_OPTIONAL_GPIOLIB
2828
select HAVE_KRETPROBES
2929
select HAVE_DYNAMIC_FTRACE
3030
select HAVE_FTRACE
@@ -333,20 +333,6 @@ config X86_BIGSMP
333333

334334
endif
335335

336-
config X86_RDC321X
337-
bool "RDC R-321x SoC"
338-
depends on X86_32
339-
select M486
340-
select X86_REBOOTFIXUPS
341-
select GENERIC_GPIO
342-
select LEDS_CLASS
343-
select LEDS_GPIO
344-
select NEW_LEDS
345-
help
346-
This option is needed for RDC R-321x system-on-chip, also known
347-
as R-8610-(G).
348-
If you don't have one of these chips, you should say N here.
349-
350336
config X86_VSMP
351337
bool "Support for ScaleMP vSMP"
352338
select PARAVIRT
@@ -370,6 +356,16 @@ config X86_VISWS
370356
A kernel compiled for the Visual Workstation will run on general
371357
PCs as well. See <file:Documentation/sgi-visws.txt> for details.
372358

359+
config X86_RDC321X
360+
bool "RDC R-321x SoC"
361+
depends on X86_32
362+
select M486
363+
select X86_REBOOTFIXUPS
364+
help
365+
This option is needed for RDC R-321x system-on-chip, also known
366+
as R-8610-(G).
367+
If you don't have one of these chips, you should say N here.
368+
373369
config SCHED_NO_NO_OMIT_FRAME_POINTER
374370
def_bool y
375371
prompt "Single-depth WCHAN output"

arch/x86/Makefile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,6 @@ mflags-$(CONFIG_X86_GENERICARCH):= -Iinclude/asm-x86/mach-generic
118118
fcore-$(CONFIG_X86_GENERICARCH) += arch/x86/mach-generic/
119119
mcore-$(CONFIG_X86_GENERICARCH) := arch/x86/mach-default/
120120

121-
# RDC R-321x subarch support
122-
mflags-$(CONFIG_X86_RDC321X) := -Iinclude/asm-x86/mach-rdc321x
123-
mcore-$(CONFIG_X86_RDC321X) := arch/x86/mach-default/
124-
core-$(CONFIG_X86_RDC321X) += arch/x86/mach-rdc321x/
125-
126121
# default subarch .h files
127122
mflags-y += -Iinclude/asm-x86/mach-default
128123

arch/x86/kernel/amd_iommu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ static int get_device_resources(struct device *dev,
667667
_bdf = calc_devid(pcidev->bus->number, pcidev->devfn);
668668

669669
/* device not translated by any IOMMU in the system? */
670-
if (_bdf >= amd_iommu_last_bdf) {
670+
if (_bdf > amd_iommu_last_bdf) {
671671
*iommu = NULL;
672672
*domain = NULL;
673673
*bdf = 0xffff;
@@ -1085,7 +1085,7 @@ void prealloc_protection_domains(void)
10851085

10861086
while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
10871087
devid = (dev->bus->number << 8) | dev->devfn;
1088-
if (devid >= amd_iommu_last_bdf)
1088+
if (devid > amd_iommu_last_bdf)
10891089
continue;
10901090
devid = amd_iommu_alias_table[devid];
10911091
if (domain_for_device(devid))

arch/x86/kernel/amd_iommu_init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ static int __init init_exclusion_range(struct ivmd_header *m)
732732
set_device_exclusion_range(m->devid, m);
733733
break;
734734
case ACPI_IVMD_TYPE_ALL:
735-
for (i = 0; i < amd_iommu_last_bdf; ++i)
735+
for (i = 0; i <= amd_iommu_last_bdf; ++i)
736736
set_device_exclusion_range(i, m);
737737
break;
738738
case ACPI_IVMD_TYPE_RANGE:
@@ -934,7 +934,7 @@ int __init amd_iommu_init(void)
934934
/*
935935
* let all alias entries point to itself
936936
*/
937-
for (i = 0; i < amd_iommu_last_bdf; ++i)
937+
for (i = 0; i <= amd_iommu_last_bdf; ++i)
938938
amd_iommu_alias_table[i] = i;
939939

940940
/*

include/asm-x86/gpio.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@
1616
#ifndef _ASM_I386_GPIO_H
1717
#define _ASM_I386_GPIO_H
1818

19-
#ifdef CONFIG_X86_RDC321X
20-
#include <gpio.h>
21-
#else /* CONFIG_X86_RDC321X */
22-
2319
#include <asm-generic/gpio.h>
2420

2521
#ifdef CONFIG_GPIOLIB
@@ -57,6 +53,4 @@ static inline int irq_to_gpio(unsigned int irq)
5753

5854
#endif /* CONFIG_GPIOLIB */
5955

60-
#endif /* CONFIG_X86_RDC321X */
61-
6256
#endif /* _ASM_I386_GPIO_H */

include/asm-x86/mach-summit/mach_apic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ static inline physid_mask_t ioapic_phys_id_map(physid_mask_t phys_id_map)
122122

123123
static inline physid_mask_t apicid_to_cpu_present(int apicid)
124124
{
125-
return physid_mask_of_physid(0);
125+
return physid_mask_of_physid(apicid);
126126
}
127127

128128
static inline void setup_portio_remap(void)

include/linux/crash_dump.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@
88
#include <linux/proc_fs.h>
99

1010
#define ELFCORE_ADDR_MAX (-1ULL)
11+
12+
#ifdef CONFIG_PROC_VMCORE
1113
extern unsigned long long elfcorehdr_addr;
14+
#else
15+
static const unsigned long long elfcorehdr_addr = ELFCORE_ADDR_MAX;
16+
#endif
17+
1218
extern ssize_t copy_oldmem_page(unsigned long, char *, size_t,
1319
unsigned long, int);
1420
extern const struct file_operations proc_vmcore_operations;

0 commit comments

Comments
 (0)