diff options
| author | Takashi Iwai <tiwai@suse.de> | 2013-07-24 05:42:34 -0400 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2013-07-24 05:42:34 -0400 |
| commit | 43cbd286fbba4bfb0c2ef05dc62522dfd5a2c000 (patch) | |
| tree | 7184a24f04c72987e725e50e66db530e6f618220 /arch/s390/kernel | |
| parent | fee4b700a4e9e446151eb5a03874ca8666323113 (diff) | |
| parent | c5ae4dca11523dff15cfb1763b64a71b805976aa (diff) | |
Merge tag 'asoc-v3.11-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Updates for v3.11
A few small updates again, the sgtl5000 one fixes some newly triggered
issues due to some probe ordering changes which were introduced in the
last merge window.
Diffstat (limited to 'arch/s390/kernel')
| -rw-r--r-- | arch/s390/kernel/cache.c | 15 | ||||
| -rw-r--r-- | arch/s390/kernel/crash_dump.c | 51 | ||||
| -rw-r--r-- | arch/s390/kernel/perf_cpum_cf.c | 4 | ||||
| -rw-r--r-- | arch/s390/kernel/processor.c | 2 | ||||
| -rw-r--r-- | arch/s390/kernel/ptrace.c | 50 | ||||
| -rw-r--r-- | arch/s390/kernel/smp.c | 17 | ||||
| -rw-r--r-- | arch/s390/kernel/sysinfo.c | 2 | ||||
| -rw-r--r-- | arch/s390/kernel/vtime.c | 6 |
8 files changed, 108 insertions, 39 deletions
diff --git a/arch/s390/kernel/cache.c b/arch/s390/kernel/cache.c index 64b24650e4f8..dd62071624be 100644 --- a/arch/s390/kernel/cache.c +++ b/arch/s390/kernel/cache.c | |||
| @@ -173,7 +173,7 @@ error: | |||
| 173 | } | 173 | } |
| 174 | } | 174 | } |
| 175 | 175 | ||
| 176 | static struct cache_dir *__cpuinit cache_create_cache_dir(int cpu) | 176 | static struct cache_dir *cache_create_cache_dir(int cpu) |
| 177 | { | 177 | { |
| 178 | struct cache_dir *cache_dir; | 178 | struct cache_dir *cache_dir; |
| 179 | struct kobject *kobj = NULL; | 179 | struct kobject *kobj = NULL; |
| @@ -289,9 +289,8 @@ static struct kobj_type cache_index_type = { | |||
| 289 | .default_attrs = cache_index_default_attrs, | 289 | .default_attrs = cache_index_default_attrs, |
| 290 | }; | 290 | }; |
| 291 | 291 | ||
| 292 | static int __cpuinit cache_create_index_dir(struct cache_dir *cache_dir, | 292 | static int cache_create_index_dir(struct cache_dir *cache_dir, |
| 293 | struct cache *cache, int index, | 293 | struct cache *cache, int index, int cpu) |
| 294 | int cpu) | ||
| 295 | { | 294 | { |
| 296 | struct cache_index_dir *index_dir; | 295 | struct cache_index_dir *index_dir; |
| 297 | int rc; | 296 | int rc; |
| @@ -313,7 +312,7 @@ out: | |||
| 313 | return rc; | 312 | return rc; |
| 314 | } | 313 | } |
| 315 | 314 | ||
| 316 | static int __cpuinit cache_add_cpu(int cpu) | 315 | static int cache_add_cpu(int cpu) |
| 317 | { | 316 | { |
| 318 | struct cache_dir *cache_dir; | 317 | struct cache_dir *cache_dir; |
| 319 | struct cache *cache; | 318 | struct cache *cache; |
| @@ -335,7 +334,7 @@ static int __cpuinit cache_add_cpu(int cpu) | |||
| 335 | return 0; | 334 | return 0; |
| 336 | } | 335 | } |
| 337 | 336 | ||
| 338 | static void __cpuinit cache_remove_cpu(int cpu) | 337 | static void cache_remove_cpu(int cpu) |
| 339 | { | 338 | { |
| 340 | struct cache_index_dir *index, *next; | 339 | struct cache_index_dir *index, *next; |
| 341 | struct cache_dir *cache_dir; | 340 | struct cache_dir *cache_dir; |
| @@ -354,8 +353,8 @@ static void __cpuinit cache_remove_cpu(int cpu) | |||
| 354 | cache_dir_cpu[cpu] = NULL; | 353 | cache_dir_cpu[cpu] = NULL; |
| 355 | } | 354 | } |
| 356 | 355 | ||
| 357 | static int __cpuinit cache_hotplug(struct notifier_block *nfb, | 356 | static int cache_hotplug(struct notifier_block *nfb, unsigned long action, |
| 358 | unsigned long action, void *hcpu) | 357 | void *hcpu) |
| 359 | { | 358 | { |
| 360 | int cpu = (long)hcpu; | 359 | int cpu = (long)hcpu; |
| 361 | int rc = 0; | 360 | int rc = 0; |
diff --git a/arch/s390/kernel/crash_dump.c b/arch/s390/kernel/crash_dump.c index f703d91bf720..d8f355657171 100644 --- a/arch/s390/kernel/crash_dump.c +++ b/arch/s390/kernel/crash_dump.c | |||
| @@ -21,6 +21,48 @@ | |||
| 21 | #define PTR_SUB(x, y) (((char *) (x)) - ((unsigned long) (y))) | 21 | #define PTR_SUB(x, y) (((char *) (x)) - ((unsigned long) (y))) |
| 22 | #define PTR_DIFF(x, y) ((unsigned long)(((char *) (x)) - ((unsigned long) (y)))) | 22 | #define PTR_DIFF(x, y) ((unsigned long)(((char *) (x)) - ((unsigned long) (y)))) |
| 23 | 23 | ||
| 24 | |||
| 25 | /* | ||
| 26 | * Return physical address for virtual address | ||
| 27 | */ | ||
| 28 | static inline void *load_real_addr(void *addr) | ||
| 29 | { | ||
| 30 | unsigned long real_addr; | ||
| 31 | |||
| 32 | asm volatile( | ||
| 33 | " lra %0,0(%1)\n" | ||
| 34 | " jz 0f\n" | ||
| 35 | " la %0,0\n" | ||
| 36 | "0:" | ||
| 37 | : "=a" (real_addr) : "a" (addr) : "cc"); | ||
| 38 | return (void *)real_addr; | ||
| 39 | } | ||
| 40 | |||
| 41 | /* | ||
| 42 | * Copy up to one page to vmalloc or real memory | ||
| 43 | */ | ||
| 44 | static ssize_t copy_page_real(void *buf, void *src, size_t csize) | ||
| 45 | { | ||
| 46 | size_t size; | ||
| 47 | |||
| 48 | if (is_vmalloc_addr(buf)) { | ||
| 49 | BUG_ON(csize >= PAGE_SIZE); | ||
| 50 | /* If buf is not page aligned, copy first part */ | ||
| 51 | size = min(roundup(__pa(buf), PAGE_SIZE) - __pa(buf), csize); | ||
| 52 | if (size) { | ||
| 53 | if (memcpy_real(load_real_addr(buf), src, size)) | ||
| 54 | return -EFAULT; | ||
| 55 | buf += size; | ||
| 56 | src += size; | ||
| 57 | } | ||
| 58 | /* Copy second part */ | ||
| 59 | size = csize - size; | ||
| 60 | return (size) ? memcpy_real(load_real_addr(buf), src, size) : 0; | ||
| 61 | } else { | ||
| 62 | return memcpy_real(buf, src, csize); | ||
| 63 | } | ||
| 64 | } | ||
| 65 | |||
| 24 | /* | 66 | /* |
| 25 | * Copy one page from "oldmem" | 67 | * Copy one page from "oldmem" |
| 26 | * | 68 | * |
| @@ -32,6 +74,7 @@ ssize_t copy_oldmem_page(unsigned long pfn, char *buf, | |||
| 32 | size_t csize, unsigned long offset, int userbuf) | 74 | size_t csize, unsigned long offset, int userbuf) |
| 33 | { | 75 | { |
| 34 | unsigned long src; | 76 | unsigned long src; |
| 77 | int rc; | ||
| 35 | 78 | ||
| 36 | if (!csize) | 79 | if (!csize) |
| 37 | return 0; | 80 | return 0; |
| @@ -43,11 +86,11 @@ ssize_t copy_oldmem_page(unsigned long pfn, char *buf, | |||
| 43 | src < OLDMEM_BASE + OLDMEM_SIZE) | 86 | src < OLDMEM_BASE + OLDMEM_SIZE) |
| 44 | src -= OLDMEM_BASE; | 87 | src -= OLDMEM_BASE; |
| 45 | if (userbuf) | 88 | if (userbuf) |
| 46 | copy_to_user_real((void __force __user *) buf, (void *) src, | 89 | rc = copy_to_user_real((void __force __user *) buf, |
| 47 | csize); | 90 | (void *) src, csize); |
| 48 | else | 91 | else |
| 49 | memcpy_real(buf, (void *) src, csize); | 92 | rc = copy_page_real(buf, (void *) src, csize); |
| 50 | return csize; | 93 | return (rc == 0) ? csize : rc; |
| 51 | } | 94 | } |
| 52 | 95 | ||
| 53 | /* | 96 | /* |
diff --git a/arch/s390/kernel/perf_cpum_cf.c b/arch/s390/kernel/perf_cpum_cf.c index 390d9ae57bb2..fb99c2057b85 100644 --- a/arch/s390/kernel/perf_cpum_cf.c +++ b/arch/s390/kernel/perf_cpum_cf.c | |||
| @@ -639,8 +639,8 @@ static struct pmu cpumf_pmu = { | |||
| 639 | .cancel_txn = cpumf_pmu_cancel_txn, | 639 | .cancel_txn = cpumf_pmu_cancel_txn, |
| 640 | }; | 640 | }; |
| 641 | 641 | ||
| 642 | static int __cpuinit cpumf_pmu_notifier(struct notifier_block *self, | 642 | static int cpumf_pmu_notifier(struct notifier_block *self, unsigned long action, |
| 643 | unsigned long action, void *hcpu) | 643 | void *hcpu) |
| 644 | { | 644 | { |
| 645 | unsigned int cpu = (long) hcpu; | 645 | unsigned int cpu = (long) hcpu; |
| 646 | int flags; | 646 | int flags; |
diff --git a/arch/s390/kernel/processor.c b/arch/s390/kernel/processor.c index 753c41d0ffd3..24612029f450 100644 --- a/arch/s390/kernel/processor.c +++ b/arch/s390/kernel/processor.c | |||
| @@ -21,7 +21,7 @@ static DEFINE_PER_CPU(struct cpuid, cpu_id); | |||
| 21 | /* | 21 | /* |
| 22 | * cpu_init - initializes state that is per-CPU. | 22 | * cpu_init - initializes state that is per-CPU. |
| 23 | */ | 23 | */ |
| 24 | void __cpuinit cpu_init(void) | 24 | void cpu_init(void) |
| 25 | { | 25 | { |
| 26 | struct s390_idle_data *idle = &__get_cpu_var(s390_idle); | 26 | struct s390_idle_data *idle = &__get_cpu_var(s390_idle); |
| 27 | struct cpuid *id = &__get_cpu_var(cpu_id); | 27 | struct cpuid *id = &__get_cpu_var(cpu_id); |
diff --git a/arch/s390/kernel/ptrace.c b/arch/s390/kernel/ptrace.c index a314c57f4e94..e9fadb04e3c6 100644 --- a/arch/s390/kernel/ptrace.c +++ b/arch/s390/kernel/ptrace.c | |||
| @@ -47,7 +47,7 @@ enum s390_regset { | |||
| 47 | REGSET_GENERAL_EXTENDED, | 47 | REGSET_GENERAL_EXTENDED, |
| 48 | }; | 48 | }; |
| 49 | 49 | ||
| 50 | void update_per_regs(struct task_struct *task) | 50 | void update_cr_regs(struct task_struct *task) |
| 51 | { | 51 | { |
| 52 | struct pt_regs *regs = task_pt_regs(task); | 52 | struct pt_regs *regs = task_pt_regs(task); |
| 53 | struct thread_struct *thread = &task->thread; | 53 | struct thread_struct *thread = &task->thread; |
| @@ -56,17 +56,25 @@ void update_per_regs(struct task_struct *task) | |||
| 56 | #ifdef CONFIG_64BIT | 56 | #ifdef CONFIG_64BIT |
| 57 | /* Take care of the enable/disable of transactional execution. */ | 57 | /* Take care of the enable/disable of transactional execution. */ |
| 58 | if (MACHINE_HAS_TE) { | 58 | if (MACHINE_HAS_TE) { |
| 59 | unsigned long cr0, cr0_new; | 59 | unsigned long cr[3], cr_new[3]; |
| 60 | 60 | ||
| 61 | __ctl_store(cr0, 0, 0); | 61 | __ctl_store(cr, 0, 2); |
| 62 | /* set or clear transaction execution bits 8 and 9. */ | 62 | cr_new[1] = cr[1]; |
| 63 | /* Set or clear transaction execution TXC/PIFO bits 8 and 9. */ | ||
| 63 | if (task->thread.per_flags & PER_FLAG_NO_TE) | 64 | if (task->thread.per_flags & PER_FLAG_NO_TE) |
| 64 | cr0_new = cr0 & ~(3UL << 54); | 65 | cr_new[0] = cr[0] & ~(3UL << 54); |
| 65 | else | 66 | else |
| 66 | cr0_new = cr0 | (3UL << 54); | 67 | cr_new[0] = cr[0] | (3UL << 54); |
| 67 | /* Only load control register 0 if necessary. */ | 68 | /* Set or clear transaction execution TDC bits 62 and 63. */ |
| 68 | if (cr0 != cr0_new) | 69 | cr_new[2] = cr[2] & ~3UL; |
| 69 | __ctl_load(cr0_new, 0, 0); | 70 | if (task->thread.per_flags & PER_FLAG_TE_ABORT_RAND) { |
| 71 | if (task->thread.per_flags & PER_FLAG_TE_ABORT_RAND_TEND) | ||
| 72 | cr_new[2] |= 1UL; | ||
| 73 | else | ||
| 74 | cr_new[2] |= 2UL; | ||
| 75 | } | ||
| 76 | if (memcmp(&cr_new, &cr, sizeof(cr))) | ||
| 77 | __ctl_load(cr_new, 0, 2); | ||
| 70 | } | 78 | } |
| 71 | #endif | 79 | #endif |
| 72 | /* Copy user specified PER registers */ | 80 | /* Copy user specified PER registers */ |
| @@ -100,14 +108,14 @@ void user_enable_single_step(struct task_struct *task) | |||
| 100 | { | 108 | { |
| 101 | set_tsk_thread_flag(task, TIF_SINGLE_STEP); | 109 | set_tsk_thread_flag(task, TIF_SINGLE_STEP); |
| 102 | if (task == current) | 110 | if (task == current) |
| 103 | update_per_regs(task); | 111 | update_cr_regs(task); |
| 104 | } | 112 | } |
| 105 | 113 | ||
| 106 | void user_disable_single_step(struct task_struct *task) | 114 | void user_disable_single_step(struct task_struct *task) |
| 107 | { | 115 | { |
| 108 | clear_tsk_thread_flag(task, TIF_SINGLE_STEP); | 116 | clear_tsk_thread_flag(task, TIF_SINGLE_STEP); |
| 109 | if (task == current) | 117 | if (task == current) |
| 110 | update_per_regs(task); | 118 | update_cr_regs(task); |
| 111 | } | 119 | } |
| 112 | 120 | ||
| 113 | /* | 121 | /* |
| @@ -447,6 +455,26 @@ long arch_ptrace(struct task_struct *child, long request, | |||
| 447 | if (!MACHINE_HAS_TE) | 455 | if (!MACHINE_HAS_TE) |
| 448 | return -EIO; | 456 | return -EIO; |
| 449 | child->thread.per_flags |= PER_FLAG_NO_TE; | 457 | child->thread.per_flags |= PER_FLAG_NO_TE; |
| 458 | child->thread.per_flags &= ~PER_FLAG_TE_ABORT_RAND; | ||
| 459 | return 0; | ||
| 460 | case PTRACE_TE_ABORT_RAND: | ||
| 461 | if (!MACHINE_HAS_TE || (child->thread.per_flags & PER_FLAG_NO_TE)) | ||
| 462 | return -EIO; | ||
| 463 | switch (data) { | ||
| 464 | case 0UL: | ||
| 465 | child->thread.per_flags &= ~PER_FLAG_TE_ABORT_RAND; | ||
| 466 | break; | ||
| 467 | case 1UL: | ||
| 468 | child->thread.per_flags |= PER_FLAG_TE_ABORT_RAND; | ||
| 469 | child->thread.per_flags |= PER_FLAG_TE_ABORT_RAND_TEND; | ||
| 470 | break; | ||
| 471 | case 2UL: | ||
| 472 | child->thread.per_flags |= PER_FLAG_TE_ABORT_RAND; | ||
| 473 | child->thread.per_flags &= ~PER_FLAG_TE_ABORT_RAND_TEND; | ||
| 474 | break; | ||
| 475 | default: | ||
| 476 | return -EINVAL; | ||
| 477 | } | ||
| 450 | return 0; | 478 | return 0; |
| 451 | default: | 479 | default: |
| 452 | /* Removing high order bit from addr (only for 31 bit). */ | 480 | /* Removing high order bit from addr (only for 31 bit). */ |
diff --git a/arch/s390/kernel/smp.c b/arch/s390/kernel/smp.c index 15a016c10563..d386c4e9d2e5 100644 --- a/arch/s390/kernel/smp.c +++ b/arch/s390/kernel/smp.c | |||
| @@ -165,7 +165,7 @@ static void pcpu_ec_call(struct pcpu *pcpu, int ec_bit) | |||
| 165 | pcpu_sigp_retry(pcpu, order, 0); | 165 | pcpu_sigp_retry(pcpu, order, 0); |
| 166 | } | 166 | } |
| 167 | 167 | ||
| 168 | static int __cpuinit pcpu_alloc_lowcore(struct pcpu *pcpu, int cpu) | 168 | static int pcpu_alloc_lowcore(struct pcpu *pcpu, int cpu) |
| 169 | { | 169 | { |
| 170 | struct _lowcore *lc; | 170 | struct _lowcore *lc; |
| 171 | 171 | ||
| @@ -616,10 +616,9 @@ static struct sclp_cpu_info *smp_get_cpu_info(void) | |||
| 616 | return info; | 616 | return info; |
| 617 | } | 617 | } |
| 618 | 618 | ||
| 619 | static int __cpuinit smp_add_present_cpu(int cpu); | 619 | static int smp_add_present_cpu(int cpu); |
| 620 | 620 | ||
| 621 | static int __cpuinit __smp_rescan_cpus(struct sclp_cpu_info *info, | 621 | static int __smp_rescan_cpus(struct sclp_cpu_info *info, int sysfs_add) |
| 622 | int sysfs_add) | ||
| 623 | { | 622 | { |
| 624 | struct pcpu *pcpu; | 623 | struct pcpu *pcpu; |
| 625 | cpumask_t avail; | 624 | cpumask_t avail; |
| @@ -685,7 +684,7 @@ static void __init smp_detect_cpus(void) | |||
| 685 | /* | 684 | /* |
| 686 | * Activate a secondary processor. | 685 | * Activate a secondary processor. |
| 687 | */ | 686 | */ |
| 688 | static void __cpuinit smp_start_secondary(void *cpuvoid) | 687 | static void smp_start_secondary(void *cpuvoid) |
| 689 | { | 688 | { |
| 690 | S390_lowcore.last_update_clock = get_tod_clock(); | 689 | S390_lowcore.last_update_clock = get_tod_clock(); |
| 691 | S390_lowcore.restart_stack = (unsigned long) restart_stack; | 690 | S390_lowcore.restart_stack = (unsigned long) restart_stack; |
| @@ -708,7 +707,7 @@ static void __cpuinit smp_start_secondary(void *cpuvoid) | |||
| 708 | } | 707 | } |
| 709 | 708 | ||
| 710 | /* Upping and downing of CPUs */ | 709 | /* Upping and downing of CPUs */ |
| 711 | int __cpuinit __cpu_up(unsigned int cpu, struct task_struct *tidle) | 710 | int __cpu_up(unsigned int cpu, struct task_struct *tidle) |
| 712 | { | 711 | { |
| 713 | struct pcpu *pcpu; | 712 | struct pcpu *pcpu; |
| 714 | int rc; | 713 | int rc; |
| @@ -964,8 +963,8 @@ static struct attribute_group cpu_online_attr_group = { | |||
| 964 | .attrs = cpu_online_attrs, | 963 | .attrs = cpu_online_attrs, |
| 965 | }; | 964 | }; |
| 966 | 965 | ||
| 967 | static int __cpuinit smp_cpu_notify(struct notifier_block *self, | 966 | static int smp_cpu_notify(struct notifier_block *self, unsigned long action, |
| 968 | unsigned long action, void *hcpu) | 967 | void *hcpu) |
| 969 | { | 968 | { |
| 970 | unsigned int cpu = (unsigned int)(long)hcpu; | 969 | unsigned int cpu = (unsigned int)(long)hcpu; |
| 971 | struct cpu *c = &pcpu_devices[cpu].cpu; | 970 | struct cpu *c = &pcpu_devices[cpu].cpu; |
| @@ -983,7 +982,7 @@ static int __cpuinit smp_cpu_notify(struct notifier_block *self, | |||
| 983 | return notifier_from_errno(err); | 982 | return notifier_from_errno(err); |
| 984 | } | 983 | } |
| 985 | 984 | ||
| 986 | static int __cpuinit smp_add_present_cpu(int cpu) | 985 | static int smp_add_present_cpu(int cpu) |
| 987 | { | 986 | { |
| 988 | struct cpu *c = &pcpu_devices[cpu].cpu; | 987 | struct cpu *c = &pcpu_devices[cpu].cpu; |
| 989 | struct device *s = &c->dev; | 988 | struct device *s = &c->dev; |
diff --git a/arch/s390/kernel/sysinfo.c b/arch/s390/kernel/sysinfo.c index 62f89d98e880..811f542b8ed4 100644 --- a/arch/s390/kernel/sysinfo.c +++ b/arch/s390/kernel/sysinfo.c | |||
| @@ -418,7 +418,7 @@ void s390_adjust_jiffies(void) | |||
| 418 | /* | 418 | /* |
| 419 | * calibrate the delay loop | 419 | * calibrate the delay loop |
| 420 | */ | 420 | */ |
| 421 | void __cpuinit calibrate_delay(void) | 421 | void calibrate_delay(void) |
| 422 | { | 422 | { |
| 423 | s390_adjust_jiffies(); | 423 | s390_adjust_jiffies(); |
| 424 | /* Print the good old Bogomips line .. */ | 424 | /* Print the good old Bogomips line .. */ |
diff --git a/arch/s390/kernel/vtime.c b/arch/s390/kernel/vtime.c index 3fb09359eda6..9b9c1b78ec67 100644 --- a/arch/s390/kernel/vtime.c +++ b/arch/s390/kernel/vtime.c | |||
| @@ -371,14 +371,14 @@ EXPORT_SYMBOL(del_virt_timer); | |||
| 371 | /* | 371 | /* |
| 372 | * Start the virtual CPU timer on the current CPU. | 372 | * Start the virtual CPU timer on the current CPU. |
| 373 | */ | 373 | */ |
| 374 | void __cpuinit init_cpu_vtimer(void) | 374 | void init_cpu_vtimer(void) |
| 375 | { | 375 | { |
| 376 | /* set initial cpu timer */ | 376 | /* set initial cpu timer */ |
| 377 | set_vtimer(VTIMER_MAX_SLICE); | 377 | set_vtimer(VTIMER_MAX_SLICE); |
| 378 | } | 378 | } |
| 379 | 379 | ||
| 380 | static int __cpuinit s390_nohz_notify(struct notifier_block *self, | 380 | static int s390_nohz_notify(struct notifier_block *self, unsigned long action, |
| 381 | unsigned long action, void *hcpu) | 381 | void *hcpu) |
| 382 | { | 382 | { |
| 383 | struct s390_idle_data *idle; | 383 | struct s390_idle_data *idle; |
| 384 | long cpu = (long) hcpu; | 384 | long cpu = (long) hcpu; |
