Skip to content

Commit 9d2f3db

Browse files
committed
Merge commit 'v3.6.10' into rpi-3.6.y
2 parents 9900679 + a63a7cf commit 9d2f3db

29 files changed

Lines changed: 278 additions & 165 deletions

File tree

‎Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
VERSION = 3
22
PATCHLEVEL = 6
3-
SUBLEVEL = 9
3+
SUBLEVEL = 10
44
EXTRAVERSION =
55
NAME = Terrified Chipmunk
66

‎arch/arm/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,7 @@ config ARCH_KIRKWOOD
585585
bool "Marvell Kirkwood"
586586
select CPU_FEROCEON
587587
select PCI
588+
select PCI_QUIRKS
588589
select ARCH_REQUIRE_GPIOLIB
589590
select GENERIC_CLOCKEVENTS
590591
select NEED_MACH_IO_H

‎arch/arm/mach-dove/include/mach/pm.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ static inline int pmu_to_irq(int pin)
4545

4646
static inline int irq_to_pmu(int irq)
4747
{
48-
if (IRQ_DOVE_PMU_START < irq && irq < NR_IRQS)
48+
if (IRQ_DOVE_PMU_START <= irq && irq < NR_IRQS)
4949
return irq - IRQ_DOVE_PMU_START;
5050

5151
return -EINVAL;

‎arch/arm/mach-dove/irq.c‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,20 @@ static void pmu_irq_ack(struct irq_data *d)
4545
int pin = irq_to_pmu(d->irq);
4646
u32 u;
4747

48+
/*
49+
* The PMU mask register is not RW0C: it is RW. This means that
50+
* the bits take whatever value is written to them; if you write
51+
* a '1', you will set the interrupt.
52+
*
53+
* Unfortunately this means there is NO race free way to clear
54+
* these interrupts.
55+
*
56+
* So, let's structure the code so that the window is as small as
57+
* possible.
58+
*/
4859
u = ~(1 << (pin & 31));
49-
writel(u, PMU_INTERRUPT_CAUSE);
60+
u &= readl_relaxed(PMU_INTERRUPT_CAUSE);
61+
writel_relaxed(u, PMU_INTERRUPT_CAUSE);
5062
}
5163

5264
static struct irq_chip pmu_irq_chip = {

‎arch/arm/mach-kirkwood/pcie.c‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,14 +225,19 @@ static int __init kirkwood_pcie_setup(int nr, struct pci_sys_data *sys)
225225
return 1;
226226
}
227227

228+
/*
229+
* The root complex has a hardwired class of PCI_CLASS_MEMORY_OTHER, when it
230+
* is operating as a root complex this needs to be switched to
231+
* PCI_CLASS_BRIDGE_HOST or Linux will errantly try to process the BAR's on
232+
* the device. Decoding setup is handled by the orion code.
233+
*/
228234
static void __devinit rc_pci_fixup(struct pci_dev *dev)
229235
{
230-
/*
231-
* Prevent enumeration of root complex.
232-
*/
233236
if (dev->bus->parent == NULL && dev->devfn == 0) {
234237
int i;
235238

239+
dev->class &= 0xff;
240+
dev->class |= PCI_CLASS_BRIDGE_HOST << 8;
236241
for (i = 0; i < DEVICE_COUNT_RESOURCE; i++) {
237242
dev->resource[i].start = 0;
238243
dev->resource[i].end = 0;

‎arch/x86/include/asm/fpu-internal.h‎

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -334,14 +334,17 @@ static inline void __thread_fpu_begin(struct task_struct *tsk)
334334
typedef struct { int preload; } fpu_switch_t;
335335

336336
/*
337-
* FIXME! We could do a totally lazy restore, but we need to
338-
* add a per-cpu "this was the task that last touched the FPU
339-
* on this CPU" variable, and the task needs to have a "I last
340-
* touched the FPU on this CPU" and check them.
337+
* Must be run with preemption disabled: this clears the fpu_owner_task,
338+
* on this CPU.
341339
*
342-
* We don't do that yet, so "fpu_lazy_restore()" always returns
343-
* false, but some day..
340+
* This will disable any lazy FPU state restore of the current FPU state,
341+
* but if the current thread owns the FPU, it will still be saved by.
344342
*/
343+
static inline void __cpu_disable_lazy_restore(unsigned int cpu)
344+
{
345+
per_cpu(fpu_owner_task, cpu) = NULL;
346+
}
347+
345348
static inline int fpu_lazy_restore(struct task_struct *new, unsigned int cpu)
346349
{
347350
return new == this_cpu_read_stable(fpu_owner_task) &&

‎arch/x86/kernel/cpu/amd.c‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,20 @@ static void __cpuinit init_amd(struct cpuinfo_x86 *c)
631631
}
632632
}
633633

634+
/*
635+
* The way access filter has a performance penalty on some workloads.
636+
* Disable it on the affected CPUs.
637+
*/
638+
if ((c->x86 == 0x15) &&
639+
(c->x86_model >= 0x02) && (c->x86_model < 0x20)) {
640+
u64 val;
641+
642+
if (!rdmsrl_safe(0xc0011021, &val) && !(val & 0x1E)) {
643+
val |= 0x1E;
644+
wrmsrl_safe(0xc0011021, val);
645+
}
646+
}
647+
634648
cpu_detect_cache_sizes(c);
635649

636650
/* Multi core CPU? */

‎arch/x86/kernel/smpboot.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@
6868
#include <asm/mwait.h>
6969
#include <asm/apic.h>
7070
#include <asm/io_apic.h>
71+
#include <asm/i387.h>
72+
#include <asm/fpu-internal.h>
7173
#include <asm/setup.h>
7274
#include <asm/uv/uv.h>
7375
#include <linux/mc146818rtc.h>
@@ -817,6 +819,9 @@ int __cpuinit native_cpu_up(unsigned int cpu, struct task_struct *tidle)
817819

818820
per_cpu(cpu_state, cpu) = CPU_UP_PREPARE;
819821

822+
/* the FPU context is blank, nobody can own it */
823+
__cpu_disable_lazy_restore(cpu);
824+
820825
err = do_boot_cpu(apicid, cpu, tidle);
821826
if (err) {
822827
pr_debug("do_boot_cpu failed %d\n", err);

‎drivers/acpi/processor_driver.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ static void acpi_processor_notify(struct acpi_device *device, u32 event)
409409
acpi_bus_generate_proc_event(device, event, 0);
410410
acpi_bus_generate_netlink_event(device->pnp.device_class,
411411
dev_name(&device->dev), event, 0);
412+
break;
412413
default:
413414
ACPI_DEBUG_PRINT((ACPI_DB_INFO,
414415
"Unsupported event [0x%x]\n", event));

‎drivers/edac/i7300_edac.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ static const char *ferr_fat_fbd_name[] = {
197197
[0] = "Memory Write error on non-redundant retry or "
198198
"FBD configuration Write error on retry",
199199
};
200-
#define GET_FBD_FAT_IDX(fbderr) (fbderr & (3 << 28))
201-
#define FERR_FAT_FBD_ERR_MASK ((1 << 0) | (1 << 1) | (1 << 2) | (1 << 3))
200+
#define GET_FBD_FAT_IDX(fbderr) (((fbderr) >> 28) & 3)
201+
#define FERR_FAT_FBD_ERR_MASK ((1 << 0) | (1 << 1) | (1 << 2) | (1 << 22))
202202

203203
#define FERR_NF_FBD 0xa0
204204
static const char *ferr_nf_fbd_name[] = {
@@ -225,7 +225,7 @@ static const char *ferr_nf_fbd_name[] = {
225225
[1] = "Aliased Uncorrectable Non-Mirrored Demand Data ECC",
226226
[0] = "Uncorrectable Data ECC on Replay",
227227
};
228-
#define GET_FBD_NF_IDX(fbderr) (fbderr & (3 << 28))
228+
#define GET_FBD_NF_IDX(fbderr) (((fbderr) >> 28) & 3)
229229
#define FERR_NF_FBD_ERR_MASK ((1 << 24) | (1 << 23) | (1 << 22) | (1 << 21) |\
230230
(1 << 18) | (1 << 17) | (1 << 16) | (1 << 15) |\
231231
(1 << 14) | (1 << 13) | (1 << 11) | (1 << 10) |\
@@ -464,7 +464,7 @@ static void i7300_process_fbd_error(struct mem_ctl_info *mci)
464464
errnum = find_first_bit(&errors,
465465
ARRAY_SIZE(ferr_nf_fbd_name));
466466
specific = GET_ERR_FROM_TABLE(ferr_nf_fbd_name, errnum);
467-
branch = (GET_FBD_FAT_IDX(error_reg) == 2) ? 1 : 0;
467+
branch = (GET_FBD_NF_IDX(error_reg) == 2) ? 1 : 0;
468468

469469
pci_read_config_dword(pvt->pci_dev_16_1_fsb_addr_map,
470470
REDMEMA, &syndrome);

0 commit comments

Comments
 (0)