Skip to content

Commit 6a7bf4b

Browse files
committed
Merge remote-tracking branch 'stable/linux-3.10.y' into rpi-3.10.y
2 parents 7193cfe + f512eef commit 6a7bf4b

48 files changed

Lines changed: 412 additions & 169 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
VERSION = 3
22
PATCHLEVEL = 10
3-
SUBLEVEL = 36
3+
SUBLEVEL = 37
44
EXTRAVERSION =
55
NAME = TOSSUG Baby Fish
66

‎arch/arc/boot/dts/nsimosci.dts‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,16 @@
1111

1212
/ {
1313
compatible = "snps,nsimosci";
14-
clock-frequency = <80000000>; /* 80 MHZ */
14+
clock-frequency = <20000000>; /* 20 MHZ */
1515
#address-cells = <1>;
1616
#size-cells = <1>;
1717
interrupt-parent = <&intc>;
1818

1919
chosen {
20-
bootargs = "console=tty0 consoleblank=0";
20+
/* this is for console on PGU */
21+
/* bootargs = "console=tty0 consoleblank=0"; */
22+
/* this is for console on serial */
23+
bootargs = "earlycon=uart8250,mmio32,0xc0000000,115200n8 console=ttyS0,115200n8 consoleblank=0 debug";
2124
};
2225

2326
aliases {
@@ -44,15 +47,14 @@
4447
};
4548

4649
uart0: serial@c0000000 {
47-
compatible = "snps,dw-apb-uart";
50+
compatible = "ns8250";
4851
reg = <0xc0000000 0x2000>;
4952
interrupts = <11>;
50-
#clock-frequency = <80000000>;
5153
clock-frequency = <3686400>;
5254
baud = <115200>;
5355
reg-shift = <2>;
5456
reg-io-width = <4>;
55-
status = "okay";
57+
no-loopback-test = <1>;
5658
};
5759

5860
pgu0: pgu@c9000000 {

‎arch/arc/configs/nsimosci_defconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ CONFIG_SERIO_ARC_PS2=y
5454
CONFIG_SERIAL_8250=y
5555
CONFIG_SERIAL_8250_CONSOLE=y
5656
CONFIG_SERIAL_8250_DW=y
57+
CONFIG_SERIAL_OF_PLATFORM=y
5758
CONFIG_SERIAL_ARC=y
5859
CONFIG_SERIAL_ARC_CONSOLE=y
5960
# CONFIG_HW_RANDOM is not set

‎arch/m68k/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ config M68K
1616
select FPU if MMU
1717
select ARCH_WANT_IPC_PARSE_VERSION
1818
select ARCH_USES_GETTIMEOFFSET if MMU && !COLDFIRE
19+
select HAVE_FUTEX_CMPXCHG if MMU && FUTEX
1920
select HAVE_MOD_ARCH_SPECIFIC
2021
select MODULES_USE_ELF_REL
2122
select MODULES_USE_ELF_RELA

‎arch/s390/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ config S390
116116
select HAVE_FUNCTION_GRAPH_TRACER
117117
select HAVE_FUNCTION_TRACER
118118
select HAVE_FUNCTION_TRACE_MCOUNT_TEST
119+
select HAVE_FUTEX_CMPXCHG if FUTEX
119120
select HAVE_KERNEL_BZIP2
120121
select HAVE_KERNEL_GZIP
121122
select HAVE_KERNEL_LZMA

‎arch/x86/crypto/ghash-clmulni-intel_asm.S‎

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@
2424
.align 16
2525
.Lbswap_mask:
2626
.octa 0x000102030405060708090a0b0c0d0e0f
27-
.Lpoly:
28-
.octa 0xc2000000000000000000000000000001
29-
.Ltwo_one:
30-
.octa 0x00000001000000000000000000000001
3127

3228
#define DATA %xmm0
3329
#define SHASH %xmm1
@@ -134,28 +130,3 @@ ENTRY(clmul_ghash_update)
134130
.Lupdate_just_ret:
135131
ret
136132
ENDPROC(clmul_ghash_update)
137-
138-
/*
139-
* void clmul_ghash_setkey(be128 *shash, const u8 *key);
140-
*
141-
* Calculate hash_key << 1 mod poly
142-
*/
143-
ENTRY(clmul_ghash_setkey)
144-
movaps .Lbswap_mask, BSWAP
145-
movups (%rsi), %xmm0
146-
PSHUFB_XMM BSWAP %xmm0
147-
movaps %xmm0, %xmm1
148-
psllq $1, %xmm0
149-
psrlq $63, %xmm1
150-
movaps %xmm1, %xmm2
151-
pslldq $8, %xmm1
152-
psrldq $8, %xmm2
153-
por %xmm1, %xmm0
154-
# reduction
155-
pshufd $0b00100100, %xmm2, %xmm1
156-
pcmpeqd .Ltwo_one, %xmm1
157-
pand .Lpoly, %xmm1
158-
pxor %xmm1, %xmm0
159-
movups %xmm0, (%rdi)
160-
ret
161-
ENDPROC(clmul_ghash_setkey)

‎arch/x86/crypto/ghash-clmulni-intel_glue.c‎

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ void clmul_ghash_mul(char *dst, const be128 *shash);
3030
void clmul_ghash_update(char *dst, const char *src, unsigned int srclen,
3131
const be128 *shash);
3232

33-
void clmul_ghash_setkey(be128 *shash, const u8 *key);
34-
3533
struct ghash_async_ctx {
3634
struct cryptd_ahash *cryptd_tfm;
3735
};
@@ -58,13 +56,23 @@ static int ghash_setkey(struct crypto_shash *tfm,
5856
const u8 *key, unsigned int keylen)
5957
{
6058
struct ghash_ctx *ctx = crypto_shash_ctx(tfm);
59+
be128 *x = (be128 *)key;
60+
u64 a, b;
6161

6262
if (keylen != GHASH_BLOCK_SIZE) {
6363
crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN);
6464
return -EINVAL;
6565
}
6666

67-
clmul_ghash_setkey(&ctx->shash, key);
67+
/* perform multiplication by 'x' in GF(2^128) */
68+
a = be64_to_cpu(x->a);
69+
b = be64_to_cpu(x->b);
70+
71+
ctx->shash.a = (__be64)((b << 1) | (a >> 63));
72+
ctx->shash.b = (__be64)((a << 1) | (b >> 63));
73+
74+
if (a >> 63)
75+
ctx->shash.b ^= cpu_to_be64(0xc2);
6876

6977
return 0;
7078
}

‎drivers/cpufreq/cpufreq.c‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ static DEFINE_PER_CPU(struct cpufreq_policy *, cpufreq_cpu_data);
4646
static DEFINE_PER_CPU(char[CPUFREQ_NAME_LEN], cpufreq_cpu_governor);
4747
#endif
4848
static DEFINE_RWLOCK(cpufreq_driver_lock);
49+
static DEFINE_MUTEX(cpufreq_governor_lock);
4950

5051
/*
5152
* cpu_policy_rwsem is a per CPU reader-writer semaphore designed to cure
@@ -1563,13 +1564,36 @@ static int __cpufreq_governor(struct cpufreq_policy *policy,
15631564

15641565
pr_debug("__cpufreq_governor for CPU %u, event %u\n",
15651566
policy->cpu, event);
1567+
1568+
mutex_lock(&cpufreq_governor_lock);
1569+
if ((!policy->governor_enabled && (event == CPUFREQ_GOV_STOP)) ||
1570+
(policy->governor_enabled && (event == CPUFREQ_GOV_START))) {
1571+
mutex_unlock(&cpufreq_governor_lock);
1572+
return -EBUSY;
1573+
}
1574+
1575+
if (event == CPUFREQ_GOV_STOP)
1576+
policy->governor_enabled = false;
1577+
else if (event == CPUFREQ_GOV_START)
1578+
policy->governor_enabled = true;
1579+
1580+
mutex_unlock(&cpufreq_governor_lock);
1581+
15661582
ret = policy->governor->governor(policy, event);
15671583

15681584
if (!ret) {
15691585
if (event == CPUFREQ_GOV_POLICY_INIT)
15701586
policy->governor->initialized++;
15711587
else if (event == CPUFREQ_GOV_POLICY_EXIT)
15721588
policy->governor->initialized--;
1589+
} else {
1590+
/* Restore original values */
1591+
mutex_lock(&cpufreq_governor_lock);
1592+
if (event == CPUFREQ_GOV_STOP)
1593+
policy->governor_enabled = true;
1594+
else if (event == CPUFREQ_GOV_START)
1595+
policy->governor_enabled = false;
1596+
mutex_unlock(&cpufreq_governor_lock);
15731597
}
15741598

15751599
/* we keep one module reference alive for

‎drivers/cpufreq/cpufreq_governor.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,9 @@ void gov_queue_work(struct dbs_data *dbs_data, struct cpufreq_policy *policy,
177177
{
178178
int i;
179179

180+
if (!policy->governor_enabled)
181+
return;
182+
180183
if (!all_cpus) {
181184
__gov_queue_work(smp_processor_id(), dbs_data, delay);
182185
} else {

0 commit comments

Comments
 (0)