kernel: update 3.10 to 3.10.32
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 39707v19.07.3_mercusys_ac12_duma
parent
6c8300df3d
commit
f677b1bc7e
@ -1,26 +0,0 @@
|
||||
From e85583b12b023773b488cf8406f11719a4037461 Mon Sep 17 00:00:00 2001
|
||||
From: Jonas Gorski <jogo@openwrt.org>
|
||||
Date: Sun, 1 Dec 2013 16:16:44 +0100
|
||||
Subject: [PATCH 1/2] spi/bcm63xx: don't substract prepend length from total
|
||||
length
|
||||
|
||||
The spi command must include the full message length including any
|
||||
prepended writes, else transfers larger than 256 bytes will be
|
||||
incomplete.
|
||||
|
||||
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
|
||||
---
|
||||
drivers/spi/spi-bcm63xx.c | 2 --
|
||||
1 file changed, 2 deletions(-)
|
||||
|
||||
--- a/drivers/spi/spi-bcm63xx.c
|
||||
+++ b/drivers/spi/spi-bcm63xx.c
|
||||
@@ -180,8 +180,6 @@ static int bcm63xx_txrx_bufs(struct spi_
|
||||
transfer_list);
|
||||
}
|
||||
|
||||
- len -= prepend_len;
|
||||
-
|
||||
init_completion(&bs->done);
|
||||
|
||||
/* Fill in the Message control register */
|
@ -1,46 +0,0 @@
|
||||
From 60b78d28057f9f1ecce39955755d26e4cd3130de Mon Sep 17 00:00:00 2001
|
||||
From: Lior Amsalem <alior@marvell.com>
|
||||
Date: Mon, 25 Nov 2013 17:26:44 +0100
|
||||
Subject: [PATCH 085/203] irqchip: armada-370-xp: fix IPI race condition
|
||||
|
||||
In the Armada 370/XP driver, when we receive an IRQ 0, we read the
|
||||
list of doorbells that caused the interrupt from register
|
||||
ARMADA_370_XP_IN_DRBEL_CAUSE_OFFS. This gives the list of IPIs that
|
||||
were generated. However, instead of acknowledging only the IPIs that
|
||||
were generated, we acknowledge *all* the IPIs, by writing
|
||||
~IPI_DOORBELL_MASK in the ARMADA_370_XP_IN_DRBEL_CAUSE_OFFS register.
|
||||
|
||||
This creates a race condition: if a new IPI that isn't part of the
|
||||
ones read into the temporary "ipimask" variable is fired before we
|
||||
acknowledge all IPIs, then we will simply loose it. This is causing
|
||||
scheduling hangs on SMP intensive workloads.
|
||||
|
||||
It is important to mention that this ARMADA_370_XP_IN_DRBEL_CAUSE_OFFS
|
||||
register has the following behavior: "A CPU write of 0 clears the bits
|
||||
in this field. A CPU write of 1 has no effect". This is what allows us
|
||||
to simply write ~ipimask to acknoledge the handled IPIs.
|
||||
|
||||
Notice that the same problem is present in the MSI implementation, but
|
||||
it will be fixed as a separate patch, so that this IPI fix can be
|
||||
pushed to older stable versions as appropriate (all the way to 3.8),
|
||||
while the MSI code only appeared in 3.13.
|
||||
|
||||
Signed-off-by: Lior Amsalem <alior@marvell.com>
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Cc: stable@vger.kernel.org
|
||||
Cc: Thomas Gleixner <tglx@linutronix.de>
|
||||
---
|
||||
drivers/irqchip/irq-armada-370-xp.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
--- a/drivers/irqchip/irq-armada-370-xp.c
|
||||
+++ b/drivers/irqchip/irq-armada-370-xp.c
|
||||
@@ -407,7 +407,7 @@ armada_370_xp_handle_irq(struct pt_regs
|
||||
ARMADA_370_XP_IN_DRBEL_CAUSE_OFFS)
|
||||
& IPI_DOORBELL_MASK;
|
||||
|
||||
- writel(~IPI_DOORBELL_MASK, per_cpu_int_base +
|
||||
+ writel(~ipimask, per_cpu_int_base +
|
||||
ARMADA_370_XP_IN_DRBEL_CAUSE_OFFS);
|
||||
|
||||
/* Handle all pending doorbells */
|
@ -1,58 +0,0 @@
|
||||
From d587c866f34aa8e59ddc3628969113e725e36eab Mon Sep 17 00:00:00 2001
|
||||
From: Lior Amsalem <alior@marvell.com>
|
||||
Date: Mon, 23 Dec 2013 13:07:35 +0100
|
||||
Subject: [PATCH 196/203] ata: sata_mv: setting PHY speed according to SControl
|
||||
speed
|
||||
|
||||
This patch fixes a SATA hotplug issue on the Armada 370 and Armada XP
|
||||
SoCs. Without it, if a disk is unplugged from a SATA port, then further
|
||||
hotplug notification are now longer received on this port.
|
||||
|
||||
This should be applied to every -stable kernel supporting Armada SoCs.
|
||||
|
||||
Signed-off-by: Lior Amsalem <alior@marvell.com>
|
||||
Signed-off-by: Nadav Haklai <nadavh@marvell.com>
|
||||
Signed-off-by: Simon Guinot <simon.guinot@sequanux.org>
|
||||
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Cc: Jason Cooper <jason@lakedaemon.net>
|
||||
Cc: Andrew Lunn <andrew@lunn.ch>
|
||||
Cc: Gregory Clement <gregory.clement@free-electrons.com>
|
||||
Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
|
||||
Cc: stable@vger.kernel.org
|
||||
---
|
||||
drivers/ata/sata_mv.c | 10 ++++++++++
|
||||
1 file changed, 10 insertions(+)
|
||||
|
||||
--- a/drivers/ata/sata_mv.c
|
||||
+++ b/drivers/ata/sata_mv.c
|
||||
@@ -304,6 +304,7 @@ enum {
|
||||
MV5_LTMODE = 0x30,
|
||||
MV5_PHY_CTL = 0x0C,
|
||||
SATA_IFCFG = 0x050,
|
||||
+ LP_PHY_CTL = 0x058,
|
||||
|
||||
MV_M2_PREAMP_MASK = 0x7e0,
|
||||
|
||||
@@ -1353,6 +1354,7 @@ static int mv_scr_write(struct ata_link
|
||||
|
||||
if (ofs != 0xffffffffU) {
|
||||
void __iomem *addr = mv_ap_base(link->ap) + ofs;
|
||||
+ void __iomem *lp_phy_addr = mv_ap_base(link->ap) + LP_PHY_CTL;
|
||||
if (sc_reg_in == SCR_CONTROL) {
|
||||
/*
|
||||
* Workaround for 88SX60x1 FEr SATA#26:
|
||||
@@ -1369,6 +1371,14 @@ static int mv_scr_write(struct ata_link
|
||||
*/
|
||||
if ((val & 0xf) == 1 || (readl(addr) & 0xf) == 1)
|
||||
val |= 0xf000;
|
||||
+
|
||||
+ /*
|
||||
+ * Setting PHY speed according to SControl speed
|
||||
+ */
|
||||
+ if ((val & 0xf0) == 0x10)
|
||||
+ writelfl(0x7, lp_phy_addr);
|
||||
+ else
|
||||
+ writelfl(0x227, lp_phy_addr);
|
||||
}
|
||||
writelfl(val, addr);
|
||||
return 0;
|
Loading…
Reference in New Issue