Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1675812 > unrolled thread

[PATCH 4.11 00/58] 4.11.8-stable review

Started byGreg Kroah-Hartman <gregkh@linuxfoundation.org>
First post2017-06-27 16:40 +0200
Last post2017-06-28 17:30 +0200
Articles 9 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH 4.11 00/58] 4.11.8-stable review Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-06-27 16:40 +0200
    [PATCH 4.11 05/58] xen-blkback: dont leak stack data via response ring Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-06-27 16:40 +0200
    [PATCH 4.11 13/58] fs/dax.c: fix inefficiency in dax_writeback_mapping_range() Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-06-27 16:40 +0200
    [PATCH 4.11 02/58] clk: sunxi-ng: v3s: Fix usb otg device reset bit Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-06-27 16:40 +0200
    [PATCH 4.11 03/58] clk: sunxi-ng: sun5i: Fix ahb_bist_clk definition Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-06-27 16:40 +0200
    Re: [PATCH 4.11 00/58] 4.11.8-stable review Guenter Roeck <linux@roeck-us.net> - 2017-06-27 21:10 +0200
      Re: [PATCH 4.11 00/58] 4.11.8-stable review Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-06-28 14:10 +0200
    Re: [PATCH 4.11 00/58] 4.11.8-stable review Shuah Khan <shuahkh@osg.samsung.com> - 2017-06-28 16:00 +0200
      Re: [PATCH 4.11 00/58] 4.11.8-stable review Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-06-28 17:30 +0200

#1675812 — [PATCH 4.11 00/58] 4.11.8-stable review

FromGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Date2017-06-27 16:40 +0200
Subject[PATCH 4.11 00/58] 4.11.8-stable review
Message-ID<tWZvr-1FM-5@gated-at.bofh.it>
This is the start of the stable review cycle for the 4.11.8 release.
There are 58 patches in this series, all will be posted as a response
to this one.  If anyone has any issues with these being applied, please
let me know.

Responses should be made by Thu Jun 29 14:10:56 UTC 2017.
Anything received after that time might be too late.

The whole patch series can be found in one patch at:
	kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.11.8-rc1.gz
or in the git tree and branch at:
  git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.11.y
and the diffstat can be found below.

thanks,

greg k-h

-------------
Pseudo-Shortlog of commits:

Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Linux 4.11.8-rc1

Arend Van Spriel <arend.vanspriel@broadcom.com>
    brcmfmac: fix uninitialized warning in brcmf_usb_probe_phase2()

Willem de Bruijn <willemb@google.com>
    netfilter: xtables: fix build failure from COMPAT_XT_ALIGN outside CONFIG_COMPAT

Willem de Bruijn <willemb@google.com>
    netfilter: xtables: zero padding in data_to_user

Russell King <rmk+kernel@armlinux.org.uk>
    net: phy: fix marvell phy status reading

Hauke Mehrtens <hauke@hauke-m.de>
    spi: double time out tolerance

William Wu <william.wu@rock-chips.com>
    usb: gadget: f_fs: avoid out of bounds access on comp_desc

Daniel Vetter <daniel.vetter@ffwll.ch>
    drm: Fix GETCONNECTOR regression

David Howells <dhowells@redhat.com>
    rxrpc: Fix several cases where a padded len isn't checked in ticket decode

Jarkko Nikula <jarkko.nikula@linux.intel.com>
    ACPI / scan: Fix enumeration for special SPI and I2C devices

Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    ACPI / scan: Apply default enumeration to devices with ACPI drivers

Junshan Fang <Junshan.Fang@amd.com>
    drm/amdgpu: add Polaris12 DID

Alex Deucher <alexander.deucher@amd.com>
    drm/amdgpu: adjust default display clock

Alex Deucher <alexander.deucher@amd.com>
    drm/amdgpu/atom: fix ps allocation size for EnableDispPowerGating

Alex Deucher <alexander.deucher@amd.com>
    drm/radeon: add a quirk for Toshiba Satellite L20-183

Alex Deucher <alexander.deucher@amd.com>
    drm/radeon: add a PX quirk for another K53TK variant

Nicholas Bellinger <nab@linux-iscsi.org>
    iscsi-target: Reject immediate data underflow larger than SCSI transfer length

Nicholas Bellinger <nab@linux-iscsi.org>
    iscsi-target: Fix delayed logout processing greater than SECONDS_FOR_LOGOUT_COMP

Nicholas Bellinger <nab@linux-iscsi.org>
    target: Fix kref->refcount underflow in transport_cmd_finish_abort

Will Deacon <will.deacon@arm.com>
    arm64/vdso: Fix nsec handling for CLOCK_MONOTONIC_RAW

John Stultz <john.stultz@linaro.org>
    time: Fix CLOCK_MONOTONIC_RAW sub-nanosecond accounting

John Stultz <john.stultz@linaro.org>
    time: Fix clock->read(clock) race around clocksource changes

Arend Van Spriel <arend.vanspriel@broadcom.com>
    brcmfmac: unbind all devices upon failure in firmware callback

Arend Van Spriel <arend.vanspriel@broadcom.com>
    brcmfmac: use firmware callback upon failure to load

Arend Van Spriel <arend.vanspriel@broadcom.com>
    brcmfmac: add parameter to pass error code in firmware callback

Daniel Drake <drake@endlessm.com>
    Input: i8042 - add Fujitsu Lifebook AH544 to notimeout list

Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
    powerpc/64s: Handle data breakpoints in Radix mode

Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
    powerpc/kprobes: Pause function_graph tracing during jprobes handling

Eric W. Biederman <ebiederm@xmission.com>
    signal: Only reschedule timers on signals timers have sent

Jason A. Donenfeld <Jason@zx2c4.com>
    random: silence compiler warnings and fix race

Sebastian Parschauer <sparschauer@suse.de>
    HID: Add quirk for Dell PIXART OEM mouse

Raju Rangoju <rajur@chelsio.com>
    cxgb4: notify uP to route ctrlq compl to rdma rspq

Christophe Jaillet <christophe.jaillet@wanadoo.fr>
    CIFS: Fix some return values in case of error in 'crypt_message'

Pavel Shilovsky <pshilov@microsoft.com>
    CIFS: Improve readdir verbosity

Paul Mackerras <paulus@ozlabs.org>
    KVM: PPC: Book3S HV: Save/restore host values of debug registers

Paul Mackerras <paulus@ozlabs.org>
    KVM: PPC: Book3S HV: Restore critical SPRs to host values on guest exit

Paul Mackerras <paulus@ozlabs.org>
    KVM: PPC: Book3S HV: Context-switch EBB registers properly

Paul Mackerras <paulus@ozlabs.org>
    KVM: PPC: Book3S HV: Ignore timebase offset on POWER9 DD1

Paul Mackerras <paulus@ozlabs.org>
    KVM: PPC: Book3S HV: Preserve userspace HTM state properly

Paul Mackerras <paulus@ozlabs.org>
    KVM: PPC: Book3S HV: Cope with host using large decrementer mode

Heiko Carstens <heiko.carstens@de.ibm.com>
    KVM: s390: gaccess: fix real-space designation asce handling for gmap shadows

James Cowgill <James.Cowgill@imgtec.com>
    KVM: MIPS: Fix maybe-uninitialized build failure

Paolo Bonzini <pbonzini@redhat.com>
    KVM: x86: fix singlestepping over syscall

Björn Töpel <bjorn.topel@intel.com>
    perf probe: Fix probe definition for inlined functions

Kan Liang <Kan.liang@intel.com>
    perf/x86/intel: Add 1G DTLB load/store miss support for SKL

Ilya Matveychikov <matvejchikov@gmail.com>
    lib/cmdline.c: fix get_options() overflow while parsing ranges

Jan Kara <jack@suse.cz>
    fs/dax.c: fix inefficiency in dax_writeback_mapping_range()

NeilBrown <neilb@suse.com>
    autofs: sanity check status reported with AUTOFS_DEV_IOCTL_FAIL

Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com>
    powerpc/perf: Fix oops when kthread execs user process

Kees Cook <keescook@chromium.org>
    fs/exec.c: account for argv/envp pointers

Takashi Iwai <tiwai@suse.de>
    ALSA: hda - Apply quirks to Broxton-T, too

Megha Dey <megha.dey@intel.com>
    ALSA: hda - Add Coffelake PCI ID

Takashi Iwai <tiwai@suse.de>
    ALSA: pcm: Don't treat NULL chmap as a fatal error

Takashi Sakamoto <o-takashi@sakamocchi.jp>
    ALSA: firewire-lib: Fix stall of process context at packet error

Jan Beulich <jbeulich@suse.com>
    xen-blkback: don't leak stack data via response ring

Juergen Gross <jgross@suse.com>
    xen/blkback: fix disconnect while I/Os in flight

Boris Brezillon <boris.brezillon@free-electrons.com>
    clk: sunxi-ng: sun5i: Fix ahb_bist_clk definition

Yong Deng <iemdey@gmail.com>
    clk: sunxi-ng: v3s: Fix usb otg device reset bit

Chen-Yu Tsai <wens@csie.org>
    clk: sunxi-ng: a31: Correct lcd1-ch1 clock register offset


-------------

Diffstat:

 Makefile                                           |  4 +-
 arch/arm64/kernel/vdso.c                           |  5 +-
 arch/arm64/kernel/vdso/gettimeofday.S              |  1 -
 arch/mips/kvm/tlb.c                                |  6 +-
 arch/powerpc/kernel/exceptions-64s.S               | 11 ++--
 arch/powerpc/kernel/kprobes.c                      | 11 ++++
 arch/powerpc/kvm/book3s_hv.c                       | 51 +++++++++++++++
 arch/powerpc/kvm/book3s_hv_interrupts.S            | 12 +++-
 arch/powerpc/kvm/book3s_hv_rmhandlers.S            | 75 ++++++++++++++++------
 arch/powerpc/perf/perf_regs.c                      |  3 +-
 arch/s390/kvm/gaccess.c                            | 15 ++---
 arch/x86/events/intel/core.c                       |  4 +-
 arch/x86/include/asm/kvm_emulate.h                 |  1 +
 arch/x86/kvm/emulate.c                             |  1 +
 arch/x86/kvm/x86.c                                 | 62 +++++++++---------
 drivers/acpi/scan.c                                | 63 ++++++++++--------
 drivers/block/xen-blkback/blkback.c                | 23 +++----
 drivers/block/xen-blkback/common.h                 | 26 ++------
 drivers/block/xen-blkback/xenbus.c                 |  7 +-
 drivers/char/random.c                              | 12 ++--
 drivers/clk/sunxi-ng/ccu-sun5i.c                   |  2 +-
 drivers/clk/sunxi-ng/ccu-sun6i-a31.c               |  2 +-
 drivers/clk/sunxi-ng/ccu-sun8i-v3s.c               |  2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c       |  4 ++
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c            |  1 +
 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c         |  4 +-
 drivers/gpu/drm/drm_connector.c                    | 38 +++++------
 drivers/gpu/drm/radeon/radeon_combios.c            |  7 ++
 drivers/gpu/drm/radeon/radeon_device.c             |  4 ++
 drivers/hid/hid-ids.h                              |  3 +
 drivers/hid/usbhid/hid-quirks.c                    |  1 +
 drivers/input/serio/i8042-x86ia64io.h              |  7 ++
 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c    | 10 +--
 drivers/net/phy/marvell.c                          |  2 -
 .../broadcom/brcm80211/brcmfmac/firmware.c         | 35 +++++-----
 .../broadcom/brcm80211/brcmfmac/firmware.h         |  4 +-
 .../wireless/broadcom/brcm80211/brcmfmac/pcie.c    | 17 +++--
 .../wireless/broadcom/brcm80211/brcmfmac/sdio.c    | 18 ++++--
 .../net/wireless/broadcom/brcm80211/brcmfmac/usb.c |  9 +--
 drivers/spi/spi.c                                  |  2 +-
 drivers/target/iscsi/iscsi_target.c                | 22 ++++++-
 drivers/target/target_core_internal.h              |  2 +-
 drivers/target/target_core_tmr.c                   | 16 ++---
 drivers/target/target_core_transport.c             |  9 ++-
 drivers/usb/gadget/function/f_fs.c                 | 10 +--
 fs/autofs4/dev-ioctl.c                             |  2 +-
 fs/cifs/smb1ops.c                                  |  9 ++-
 fs/cifs/smb2ops.c                                  |  8 ++-
 fs/dax.c                                           |  1 +
 fs/exec.c                                          | 28 ++++++--
 include/acpi/acpi_bus.h                            |  3 +-
 include/linux/netfilter/x_tables.h                 |  2 +-
 include/linux/timekeeper_internal.h                |  5 +-
 kernel/signal.c                                    | 20 ++++--
 kernel/time/timekeeping.c                          | 71 ++++++++++++--------
 lib/cmdline.c                                      |  6 +-
 net/bridge/netfilter/ebtables.c                    |  9 ++-
 net/netfilter/x_tables.c                           | 24 ++++---
 net/rxrpc/key.c                                    | 64 +++++++++---------
 sound/core/pcm_lib.c                               |  4 +-
 sound/firewire/amdtp-stream.c                      |  8 ++-
 sound/firewire/amdtp-stream.h                      |  2 +-
 sound/pci/hda/hda_intel.c                          | 11 +++-
 tools/perf/util/probe-event.c                      |  2 +-
 64 files changed, 581 insertions(+), 322 deletions(-)

[toc] | [next] | [standalone]


#1675828 — [PATCH 4.11 05/58] xen-blkback: dont leak stack data via response ring

FromGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Date2017-06-27 16:40 +0200
Subject[PATCH 4.11 05/58] xen-blkback: dont leak stack data via response ring
Message-ID<tWZOP-1NK-39@gated-at.bofh.it>
In reply to#1675812
4.11-stable review patch.  If anyone has any objections, please let me know.

------------------

From: Jan Beulich <jbeulich@suse.com>

commit 089bc0143f489bd3a4578bdff5f4ca68fb26f341 upstream.

Rather than constructing a local structure instance on the stack, fill
the fields directly on the shared ring, just like other backends do.
Build on the fact that all response structure flavors are actually
identical (the old code did make this assumption too).

This is XSA-216.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
 drivers/block/xen-blkback/blkback.c |   23 ++++++++++++-----------
 drivers/block/xen-blkback/common.h  |   25 +++++--------------------
 2 files changed, 17 insertions(+), 31 deletions(-)

--- a/drivers/block/xen-blkback/blkback.c
+++ b/drivers/block/xen-blkback/blkback.c
@@ -1436,34 +1436,35 @@ static int dispatch_rw_block_io(struct x
 static void make_response(struct xen_blkif_ring *ring, u64 id,
 			  unsigned short op, int st)
 {
-	struct blkif_response  resp;
+	struct blkif_response *resp;
 	unsigned long     flags;
 	union blkif_back_rings *blk_rings;
 	int notify;
 
-	resp.id        = id;
-	resp.operation = op;
-	resp.status    = st;
-
 	spin_lock_irqsave(&ring->blk_ring_lock, flags);
 	blk_rings = &ring->blk_rings;
 	/* Place on the response ring for the relevant domain. */
 	switch (ring->blkif->blk_protocol) {
 	case BLKIF_PROTOCOL_NATIVE:
-		memcpy(RING_GET_RESPONSE(&blk_rings->native, blk_rings->native.rsp_prod_pvt),
-		       &resp, sizeof(resp));
+		resp = RING_GET_RESPONSE(&blk_rings->native,
+					 blk_rings->native.rsp_prod_pvt);
 		break;
 	case BLKIF_PROTOCOL_X86_32:
-		memcpy(RING_GET_RESPONSE(&blk_rings->x86_32, blk_rings->x86_32.rsp_prod_pvt),
-		       &resp, sizeof(resp));
+		resp = RING_GET_RESPONSE(&blk_rings->x86_32,
+					 blk_rings->x86_32.rsp_prod_pvt);
 		break;
 	case BLKIF_PROTOCOL_X86_64:
-		memcpy(RING_GET_RESPONSE(&blk_rings->x86_64, blk_rings->x86_64.rsp_prod_pvt),
-		       &resp, sizeof(resp));
+		resp = RING_GET_RESPONSE(&blk_rings->x86_64,
+					 blk_rings->x86_64.rsp_prod_pvt);
 		break;
 	default:
 		BUG();
 	}
+
+	resp->id        = id;
+	resp->operation = op;
+	resp->status    = st;
+
 	blk_rings->common.rsp_prod_pvt++;
 	RING_PUSH_RESPONSES_AND_CHECK_NOTIFY(&blk_rings->common, notify);
 	spin_unlock_irqrestore(&ring->blk_ring_lock, flags);
--- a/drivers/block/xen-blkback/common.h
+++ b/drivers/block/xen-blkback/common.h
@@ -75,9 +75,8 @@ extern unsigned int xenblk_max_queues;
 struct blkif_common_request {
 	char dummy;
 };
-struct blkif_common_response {
-	char dummy;
-};
+
+/* i386 protocol version */
 
 struct blkif_x86_32_request_rw {
 	uint8_t        nr_segments;  /* number of segments                   */
@@ -129,14 +128,6 @@ struct blkif_x86_32_request {
 	} u;
 } __attribute__((__packed__));
 
-/* i386 protocol version */
-#pragma pack(push, 4)
-struct blkif_x86_32_response {
-	uint64_t        id;              /* copied from request */
-	uint8_t         operation;       /* copied from request */
-	int16_t         status;          /* BLKIF_RSP_???       */
-};
-#pragma pack(pop)
 /* x86_64 protocol version */
 
 struct blkif_x86_64_request_rw {
@@ -193,18 +184,12 @@ struct blkif_x86_64_request {
 	} u;
 } __attribute__((__packed__));
 
-struct blkif_x86_64_response {
-	uint64_t       __attribute__((__aligned__(8))) id;
-	uint8_t         operation;       /* copied from request */
-	int16_t         status;          /* BLKIF_RSP_???       */
-};
-
 DEFINE_RING_TYPES(blkif_common, struct blkif_common_request,
-		  struct blkif_common_response);
+		  struct blkif_response);
 DEFINE_RING_TYPES(blkif_x86_32, struct blkif_x86_32_request,
-		  struct blkif_x86_32_response);
+		  struct blkif_response __packed);
 DEFINE_RING_TYPES(blkif_x86_64, struct blkif_x86_64_request,
-		  struct blkif_x86_64_response);
+		  struct blkif_response);
 
 union blkif_back_rings {
 	struct blkif_back_ring        native;

[toc] | [prev] | [next] | [standalone]


#1675831 — [PATCH 4.11 13/58] fs/dax.c: fix inefficiency in dax_writeback_mapping_range()

FromGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Date2017-06-27 16:40 +0200
Subject[PATCH 4.11 13/58] fs/dax.c: fix inefficiency in dax_writeback_mapping_range()
Message-ID<tWZOP-1NK-47@gated-at.bofh.it>
In reply to#1675812
4.11-stable review patch.  If anyone has any objections, please let me know.

------------------

From: Jan Kara <jack@suse.cz>

commit 1eb643d02b21412e603b42cdd96010a2ac31c05f upstream.

dax_writeback_mapping_range() fails to update iteration index when
searching radix tree for entries needing cache flushing.  Thus each
pagevec worth of entries is searched starting from the start which is
inefficient and prone to livelocks.  Update index properly.

Link: http://lkml.kernel.org/r/20170619124531.21491-1-jack@suse.cz
Fixes: 9973c98ecfda3 ("dax: add support for fsync/sync")
Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
 fs/dax.c |    1 +
 1 file changed, 1 insertion(+)

--- a/fs/dax.c
+++ b/fs/dax.c
@@ -875,6 +875,7 @@ int dax_writeback_mapping_range(struct a
 			if (ret < 0)
 				return ret;
 		}
+		start_index = indices[pvec.nr - 1] + 1;
 	}
 	return 0;
 }

[toc] | [prev] | [next] | [standalone]


#1675832 — [PATCH 4.11 02/58] clk: sunxi-ng: v3s: Fix usb otg device reset bit

FromGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Date2017-06-27 16:40 +0200
Subject[PATCH 4.11 02/58] clk: sunxi-ng: v3s: Fix usb otg device reset bit
Message-ID<tWZOP-1NK-49@gated-at.bofh.it>
In reply to#1675812
4.11-stable review patch.  If anyone has any objections, please let me know.

------------------

From: Yong Deng <iemdey@gmail.com>

commit 7ffc781ec46ef1e9aedb482f5f04425bd8bb2753 upstream.

V3S's usb otg device reset bit should be 24, not 23.

Signed-off-by: Yong Deng <iemdey@gmail.com>
Reviewed-By: Icenowy Zheng <icenowy@aosc.io>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
 drivers/clk/sunxi-ng/ccu-sun8i-v3s.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/clk/sunxi-ng/ccu-sun8i-v3s.c
+++ b/drivers/clk/sunxi-ng/ccu-sun8i-v3s.c
@@ -537,7 +537,7 @@ static struct ccu_reset_map sun8i_v3s_cc
 	[RST_BUS_EMAC]		=  { 0x2c0, BIT(17) },
 	[RST_BUS_HSTIMER]	=  { 0x2c0, BIT(19) },
 	[RST_BUS_SPI0]		=  { 0x2c0, BIT(20) },
-	[RST_BUS_OTG]		=  { 0x2c0, BIT(23) },
+	[RST_BUS_OTG]		=  { 0x2c0, BIT(24) },
 	[RST_BUS_EHCI0]		=  { 0x2c0, BIT(26) },
 	[RST_BUS_OHCI0]		=  { 0x2c0, BIT(29) },
 

[toc] | [prev] | [next] | [standalone]


#1675838 — [PATCH 4.11 03/58] clk: sunxi-ng: sun5i: Fix ahb_bist_clk definition

FromGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Date2017-06-27 16:40 +0200
Subject[PATCH 4.11 03/58] clk: sunxi-ng: sun5i: Fix ahb_bist_clk definition
Message-ID<tWZOQ-1NK-61@gated-at.bofh.it>
In reply to#1675812
4.11-stable review patch.  If anyone has any objections, please let me know.

------------------

From: Boris Brezillon <boris.brezillon@free-electrons.com>

commit 370d9192719e6c174167888cf9240df2542e3b4b upstream.

AHB BIST gate is actually controlled with bit 7.

This bug was detected while trying to use the NAND controller which is
using the DMA engine to transfer data to the NAND.
Since the ahb_bist_clk gate bit conflicts with the ahb_dma_clk gate bit,
the core was disabling the DMA engine clock as part of its 'disable
unused clks' procedure, which was causing all DMA transfers to fail after
this point.

Fixes: 5e73761786d6 ("clk: sunxi-ng: Add sun5i CCU driver")
Reported-by: Angus Ainslie <angus@akkea.ca>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Tested-by: Angus Ainslie <angus@akkea.ca>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Link: lkml.kernel.org/r/1495643669-28221-1-git-send-email-boris.brezillon@free-electrons.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
 drivers/clk/sunxi-ng/ccu-sun5i.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/clk/sunxi-ng/ccu-sun5i.c
+++ b/drivers/clk/sunxi-ng/ccu-sun5i.c
@@ -243,7 +243,7 @@ static SUNXI_CCU_GATE(ahb_ss_clk,	"ahb-s
 static SUNXI_CCU_GATE(ahb_dma_clk,	"ahb-dma",	"ahb",
 		      0x060, BIT(6), 0);
 static SUNXI_CCU_GATE(ahb_bist_clk,	"ahb-bist",	"ahb",
-		      0x060, BIT(6), 0);
+		      0x060, BIT(7), 0);
 static SUNXI_CCU_GATE(ahb_mmc0_clk,	"ahb-mmc0",	"ahb",
 		      0x060, BIT(8), 0);
 static SUNXI_CCU_GATE(ahb_mmc1_clk,	"ahb-mmc1",	"ahb",

[toc] | [prev] | [next] | [standalone]


#1676089

FromGuenter Roeck <linux@roeck-us.net>
Date2017-06-27 21:10 +0200
Message-ID<tX425-4PK-17@gated-at.bofh.it>
In reply to#1675812
On Tue, Jun 27, 2017 at 04:12:03PM +0200, Greg Kroah-Hartman wrote:
> This is the start of the stable review cycle for the 4.11.8 release.
> There are 58 patches in this series, all will be posted as a response
> to this one.  If anyone has any issues with these being applied, please
> let me know.
> 
> Responses should be made by Thu Jun 29 14:10:56 UTC 2017.
> Anything received after that time might be too late.
> 

Build results:
	total: 145 pass: 145 fail: 0
Qemu test results:
	total: 122 pass: 122 fail: 0

Details are available at http://kerneltests.org/builders.

Guenter

[toc] | [prev] | [next] | [standalone]


#1676599

FromGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Date2017-06-28 14:10 +0200
Message-ID<tXjXc-6DX-11@gated-at.bofh.it>
In reply to#1676089
On Tue, Jun 27, 2017 at 12:04:19PM -0700, Guenter Roeck wrote:
> On Tue, Jun 27, 2017 at 04:12:03PM +0200, Greg Kroah-Hartman wrote:
> > This is the start of the stable review cycle for the 4.11.8 release.
> > There are 58 patches in this series, all will be posted as a response
> > to this one.  If anyone has any issues with these being applied, please
> > let me know.
> > 
> > Responses should be made by Thu Jun 29 14:10:56 UTC 2017.
> > Anything received after that time might be too late.
> > 
> 
> Build results:
> 	total: 145 pass: 145 fail: 0
> Qemu test results:
> 	total: 122 pass: 122 fail: 0
> 
> Details are available at http://kerneltests.org/builders.

Thanks for testing all of these and letting me know.

greg k-h

[toc] | [prev] | [next] | [standalone]


#1676681

FromShuah Khan <shuahkh@osg.samsung.com>
Date2017-06-28 16:00 +0200
Message-ID<tXlFF-7uy-23@gated-at.bofh.it>
In reply to#1675812
On 06/27/2017 08:12 AM, Greg Kroah-Hartman wrote:
> This is the start of the stable review cycle for the 4.11.8 release.
> There are 58 patches in this series, all will be posted as a response
> to this one.  If anyone has any issues with these being applied, please
> let me know.
> 
> Responses should be made by Thu Jun 29 14:10:56 UTC 2017.
> Anything received after that time might be too late.
> 
> The whole patch series can be found in one patch at:
> 	kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.11.8-rc1.gz
> or in the git tree and branch at:
>   git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.11.y
> and the diffstat can be found below.
> 
> thanks,
> 
> greg k-h
> 

Compiled and booted on my test system. No dmesg regressions.

thanks,
-- Shuah

[toc] | [prev] | [next] | [standalone]


#1676837

FromGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Date2017-06-28 17:30 +0200
Message-ID<tXn4L-6m-25@gated-at.bofh.it>
In reply to#1676681
On Wed, Jun 28, 2017 at 07:53:02AM -0600, Shuah Khan wrote:
> On 06/27/2017 08:12 AM, Greg Kroah-Hartman wrote:
> > This is the start of the stable review cycle for the 4.11.8 release.
> > There are 58 patches in this series, all will be posted as a response
> > to this one.  If anyone has any issues with these being applied, please
> > let me know.
> > 
> > Responses should be made by Thu Jun 29 14:10:56 UTC 2017.
> > Anything received after that time might be too late.
> > 
> > The whole patch series can be found in one patch at:
> > 	kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.11.8-rc1.gz
> > or in the git tree and branch at:
> >   git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.11.y
> > and the diffstat can be found below.
> > 
> > thanks,
> > 
> > greg k-h
> > 
> 
> Compiled and booted on my test system. No dmesg regressions.

Thanks for testing all of these and letting me know.

greg k-h

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web