[PATCH v5 2/2] dt-bindings: usb: rt1711h device tree binding document

2018-04-08 Thread ShuFan Lee
From: ShuFan Lee Add device tree binding document for Richtek RT1711H Type-C chip driver Signed-off-by: ShuFan Lee --- .../devicetree/bindings/usb/richtek,rt1711h.txt | 17 + 1 file changed, 17 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/rich

[PATCH net-next] net/ncsi: Refactor MAC, VLAN filters

2018-04-08 Thread Samuel Mendoza-Jonas
The NCSI driver defines a generic ncsi_channel_filter struct that can be used to store arbitrarily formatted filters, and several generic methods of accessing data stored in such a filter. However in both the driver and as defined in the NCSI specification there are only two actual filters: VLAN ID

[PATCH v5 1/2] staging: typec: rt1711h typec chip driver

2018-04-08 Thread ShuFan Lee
From: ShuFan Lee Richtek RT1711H Type-C chip driver that works with Type-C Port Controller Manager to provide USB PD and USB Type-C functionalities. Add definition of TCPC_CC_STATUS_TOGGLING. Signed-off-by: ShuFan Lee Reviewed-by: Heikki Krogerus Reviewed-by: Guenter Roeck --- drivers/stagin

[PATCH AUTOSEL for 4.9 157/293] s390/pci: improve error handling during interrupt deregistration

2018-04-08 Thread Sasha Levin
From: Sebastian Ott [ Upstream commit 4dfbd3efe3f0cf9ff1325b87491e1b1fe07afaf1 ] When we ask a function to stop creating interrupts this may fail due to the function being already gone (e.g. after hot-unplug). Consequently we don't free associated resources like summary bits and bit vectors use

[PATCH AUTOSEL for 4.9 156/293] powerpc/fadump: avoid duplicates in crash memory ranges

2018-04-08 Thread Sasha Levin
From: Hari Bathini [ Upstream commit a77af552ccc9d4d54459a39f9e5f7ad307aeb4f9 ] fadump sets up crash memory ranges to be used for creating PT_LOAD program headers in elfcore header. Memory chunk RMA_START through boot memory area size is added as the first memory range because firmware, at the t

[PATCH AUTOSEL for 4.9 153/293] ACPI: EC: Fix an EC event IRQ storming issue

2018-04-08 Thread Sasha Levin
From: Lv Zheng [ Upstream commit 1ab69f27cbb57e0f970bcd852d9f22ed34259b57 ] The EC event IRQ (SCI_EVT) can only be handled by submitting QR_EC. As the EC driver handles SCI_EVT in a workqueue, after SCI_EVT is flagged and before QR_EC is submitted, there is a period risking IRQ storming. EC IRQ

[PATCH AUTOSEL for 4.9 155/293] scsi: sun_esp: fix device reference leaks

2018-04-08 Thread Sasha Levin
From: Johan Hovold [ Upstream commit f62f9ffdb5ef683ef8cffb43932fa72cc3713e94 ] Make sure to drop the reference to the dma device taken by of_find_device_by_node() on probe errors and on driver unbind. Fixes: 334ae614772b ("sparc: Kill SBUS DVMA layer.") Signed-off-by: Johan Hovold Signed-off-

[PATCH AUTOSEL for 4.9 150/293] net/mlx5: Fix driver load error flow when firmware is stuck

2018-04-08 Thread Sasha Levin
From: Gal Pressman [ Upstream commit 8ce59b16b4b6eacedaec1f7b652b4781cdbfe15f ] When wait for firmware init fails, previous code would mistakenly return success and cause inconsistency in the driver state. Fixes: 6c780a0267b8 ("net/mlx5: Wait for FW readiness before initializing command interf

[PATCH AUTOSEL for 4.9 149/293] powerpc: Fix /proc/cpuinfo revision for POWER9 DD2

2018-04-08 Thread Sasha Levin
From: Michael Neuling [ Upstream commit 64ebb9a208c6e66316329a6d9101815d1ee06fa9 ] The P9 PVR bits 12-15 don't indicate a revision but instead different chip configurations. From BookIV we have: Bits Configuration 0 :Scale out 12 cores 1 :Scale out 24 cores 2 :Sc

[PATCH AUTOSEL for 4.9 139/293] ocfs2: fix deadlock caused by recursive locking in xattr

2018-04-08 Thread Sasha Levin
From: Eric Ren [ Upstream commit 8818efaaacb78c60a9d90c5705b6c99b75d7d442 ] Another deadlock path caused by recursive locking is reported. This kind of issue was introduced since commit 743b5f1434f5 ("ocfs2: take inode lock in ocfs2_iop_set/get_acl()"). Two deadlock paths have been fixed by co

[PATCH AUTOSEL for 4.9 145/293] sparc64: Fix gup_huge_pmd

2018-04-08 Thread Sasha Levin
From: Nitin Gupta [ Upstream commit dbd2667a4fb9ce4f547982b07cd69dda127c47ea ] The function assumes that each PMD points to head of a huge page. This is not correct as a PMD can point to start of any 8M region with a, say 256M, hugepage. The fix ensures that it points to the correct head of any

[PATCH AUTOSEL for 4.9 146/293] arm64: pass endianness info to sparse

2018-04-08 Thread Sasha Levin
From: Luc Van Oostenryck [ Upstream commit bcde519e8c325f3cc1fcf443eb6466e6bb3a3aca ] ARM64 depends on the macro __AARCH64EB__ being defined or not to correctly select or define endian-specific macros, structures or pieces of code. This macro is predefined by the compiler but sparse knows nothi

[PATCH AUTOSEL for 4.9 144/293] sctp: adjust ssthresh when transport is idle

2018-04-08 Thread Sasha Levin
From: Marcelo Ricardo Leitner [ Upstream commit a02d036c027e9070ca27c156f59eb445d5405480 ] RFC 4960 Errata 3.27 identifies that ssthresh should be adjusted to cwnd because otherwise it could cause the transport to lock into congestion avoidance phase specially if ssthresh was previously reduced

[PATCH AUTOSEL for 4.9 143/293] af_iucv: Move sockaddr length checks to before accessing sa_family in bind and connect handlers

2018-04-08 Thread Sasha Levin
From: Mateusz Jurczyk [ Upstream commit e3c42b61ff813921ba58cfc0019e3fd63f651190 ] Verify that the caller-provided sockaddr structure is large enough to contain the sa_family field, before accessing it in bind() and connect() handlers of the AF_IUCV socket. Since neither syscall enforces a minim

[PATCH AUTOSEL for 4.9 134/293] ASoC: nau8825: fix jack type detection issue after resume

2018-04-08 Thread Sasha Levin
From: John Hsu [ Upstream commit 8fe19795da1b9dea2353f016622842a2f163039e ] Fix the issue that mic type detection error after resume. The microphone type detection procedure will recognize testing signal on JKSLV pin, but before the procedure, JKSLV already had supply voltage, that results in th

[PATCH AUTOSEL for 4.9 142/293] bnx2x: Don't log mc removal needlessly

2018-04-08 Thread Sasha Levin
From: "Mintz, Yuval" [ Upstream commit d0c32a16235aeacd32c9de6ff90f9219614d7e4e ] When mc configuration changes bnx2x_config_mcast() can return 0 for success, negative for failure and positive for benign reason preventing its immediate work, e.g., when the command awaits the completion of a prev

[PATCH AUTOSEL for 4.9 140/293] ext4: require key for truncate(2) of encrypted file

2018-04-08 Thread Sasha Levin
From: Eric Biggers [ Upstream commit 63136858aecbe86dbd3c3289a3f46ba1b5f92239 ] Currently, filesystems allow truncate(2) on an encrypted file without the encryption key. However, it's impossible to correctly handle the case where the size being truncated to is not a multiple of the filesystem b

[PATCH AUTOSEL for 4.9 141/293] media: dvb-frontends/cxd2841er: require STATE_ACTIVE_* for agc readout

2018-04-08 Thread Sasha Levin
From: Daniel Scheller [ Upstream commit 8982735f8dd02096b75255e3c0a0df28aeaa9955 ] When the demod driver puts the demod into sleep or shutdown state and it's status is then polled e.g. via "dvb-fe-tool -m", i2c errors are printed to the kernel log. If the last delsys was DVB-T/T2: cxd2841er:

[PATCH AUTOSEL for 4.9 135/293] iommu/arm-smmu-v3: Increase CMDQ drain timeout value

2018-04-08 Thread Sasha Levin
From: Sunil Goutham [ Upstream commit b847de4e5087fc8577c38a697d14fd2a5ce93352 ] Waiting for a CMD_SYNC to be processed involves waiting for the command queue to drain, which can take an awful lot longer than waiting for a single entry to become available. Consequently, the common timeout value

[PATCH AUTOSEL for 4.9 136/293] i2c: cadance: fix ctrl/addr reg write order

2018-04-08 Thread Sasha Levin
From: Matt Weber [ Upstream commit 8064c616984eaa015f018dba595d78cd24a0cc8c ] The driver was clearing the hold bit in the control register before writing to the address register which resulted in a stop condition being generated rather than a repeated start. This issue was only observed when a

[PATCH AUTOSEL for 4.9 138/293] Docs: Fix breakage with Sphinx 1.5 and upper

2018-04-08 Thread Sasha Levin
From: Mauro Carvalho Chehab [ Upstream commit 633d612bda6a37e1d5f5f878ec5a22a11599f800 ] Commit 85c21e5c3ee7 (docs-rst: better adjust margins and font size) added a \usepackage{geometry} that conflicts with another inclusion deep within the dependencies with newer versions of Sphinx, causing the

[PATCH AUTOSEL for 4.9 132/293] iwlwifi: pcie: fix command completion name debug

2018-04-08 Thread Sasha Levin
From: Johannes Berg [ Upstream commit d490e09784a9d0a63f831e5f1104b4826e666b0c ] When the command name is printed on command completion, the wrong group is used, leading to the wrong name being printed. Fix this by using the group ID without inappropriately mangling it through iwl_cmd_groupid()

[PATCH AUTOSEL for 4.9 137/293] Docs: Include the Latex "ifthen" package

2018-04-08 Thread Sasha Levin
From: Jonathan Corbet [ Upstream commit cc110221918d5564c9dd415cebe62cae4f8d5df5 ] Otherwise we get PDF build failures when LaTeX refused to acknowledge the existence of \ifthenelse Fixes: 41cff161fe99d1c6a773becc2250a1dc3ac035ff Cc: Mauro Carvalho Chehab Signed-off-by: Jonathan Corbet Signed

[PATCH AUTOSEL for 4.9 131/293] Input: synaptics-rmi4 - only read the F54 query registers which are used

2018-04-08 Thread Sasha Levin
From: Andrew Duggan [ Upstream commit 9768935264c4f0e4afd788a185d8e8d89c28e41d ] The F54 driver is currently only using the first 6 bytes of F54 so there is no need to read all 27 bytes. Some Dell systems (Dell XP13 9333 and similar) have an issue with the touchpad or I2C bus when reading report

[PATCH AUTOSEL for 4.9 133/293] iwlwifi: mvm: reset the fw_dump_desc pointer after ASSERT

2018-04-08 Thread Sasha Levin
From: Emmanuel Grumbach [ Upstream commit a509a248bb31ea013c4c2b6801297a2d82eecd43 ] When we get an ASSERT, the fw_dump_desc pointer points to iwl_mvm_dump_desc_assert which can't be freed since it is a global. We still need to NULL'ify the pointer when we call iwl_mvm_free_fw_dump_desc otherwis

[PATCH AUTOSEL for 4.9 124/293] macvlan: Do not return error when setting the same mac address

2018-04-08 Thread Sasha Levin
From: Vlad Yasevich [ Upstream commit e26f43faa0d79dd06e9e94829696b68b9940c2ee ] The user currently gets an EBUSY error when attempting to set the mac address on a macvlan device to the same value. This should really be a no-op as nothing changes. Catch the condition and return early. Signed-

[PATCH AUTOSEL for 4.9 130/293] clk: samsung: audss: Fix silent hang on Exynos4412 due to disabled EPLL

2018-04-08 Thread Sasha Levin
From: Krzysztof Kozlowski [ Upstream commit 5bb4053b5993406935cc3b01cbf8b9f1e5803f4c ] Similarly to commit f1e9203e2366 ("clk: samsung: Fix Exynos 5420 pinctrl setup and clock disable failure due to domain being gated") for Exynos5420, the Exynos4412 also requires that EPLL is not disabled. Othe

[PATCH AUTOSEL for 4.9 129/293] iwlwifi: mvm: don't warn in queue sync on RF-kill

2018-04-08 Thread Sasha Levin
From: Johannes Berg [ Upstream commit 6ad0435991482107664f65b7ae3fd588f10149d4 ] If we happen to be in or get into the queue sync when RF-kill is asserted, we return from there and warn since there are still queue sync notifications outstanding. These can't ever come though, because we're in RF-

[PATCH AUTOSEL for 4.9 126/293] libata: Add the AHCI_HFLAG_YES_ALPM flag

2018-04-08 Thread Sasha Levin
From: Doug Berger [ Upstream commit ef0da1bf767d9e557c6375c7066717eead54cb15 ] Some hardware is capable of supporting Aggresive Link Power Management even though it is not indicated by the Host Capability register. This commit adds the AHCI_HFLAG_YES_ALPM flag to the AHCI library to allow indic

[PATCH AUTOSEL for 4.9 125/293] hv_netvsc: Fix the carrier state error when data path is off

2018-04-08 Thread Sasha Levin
From: Haiyang Zhang [ Upstream commit 53fa1a6f33520f01f9dbee48369074b34d77616b ] When the VF NIC is opened, the synthetic NIC's carrier state is set to off. This tells the host to transitions data path to the VF device. But if startup script or user manipulates the admin state of the netvsc devi

[PATCH AUTOSEL for 4.9 127/293] iwlwifi: mvm: track and report IBSS manager status to mac80211

2018-04-08 Thread Sasha Levin
From: Johannes Berg [ Upstream commit 2f0282db41194c0099a019b2761911d6c69cbdb9 ] Shaul reported that when iwlmvm was sending beacons, it didn't properly also take ownership of the probe responses. This is because the whole mac80211 callback (tx_last_beacon) wasn't implemented. Fix that to make I

[PATCH AUTOSEL for 4.9 121/293] arm64: ptrace: Fix VFP register dumping in compat coredumps

2018-04-08 Thread Sasha Levin
From: Dave Martin [ Upstream commit af66b2d88a76574d55e81d712292abd34beb6178 ] Currently, VFP registers are omitted from coredumps for compat processes, due to a bug in the REGSET_COMPAT_VFP regset implementation. compat_vfp_get() needs to transfer non-contiguous data from thread_struct.fpsimd_

[PATCH AUTOSEL for 4.9 123/293] veth: Be more robust on network device creation when no attributes

2018-04-08 Thread Sasha Levin
From: Serhey Popovych [ Upstream commit 191cdb3822e5df6b3c8b9f8cb8c4bf93f6cc90c7 ] There are number of problems with configuration peer network device in absence of IFLA_VETH_PEER attributes where attributes for main network device shared with peer. First it is not feasible to configure both ne

[PATCH AUTOSEL for 4.9 106/293] platform/x86: dell-laptop: Fix bogus keyboard backlight sysfs interface

2018-04-08 Thread Sasha Levin
From: Kai Heng Feng [ Upstream commit 1b1ffc57a1b2edf58e803e463980b326765a237f ] Dell Latitude 3160 does not have keyboard backlight, but there is a sysfs interface for it, which does nothing at all. KBD_LED_ON_TOKEN is the only token can be found. Since it doesn't have KBD_LED_OFF_TOKEN or KBD

[PATCH AUTOSEL for 4.9 122/293] tcp: Add a tcp_filter hook before handle ack packet

2018-04-08 Thread Sasha Levin
From: Chenbo Feng [ Upstream commit 8fac365f63c866a00015fa13932d8ffc584518b8 ] Currently in both ipv4 and ipv6 code path, the ack packet received when sk at TCP_NEW_SYN_RECV state is not filtered by socket filter or cgroup filter since it is handled from tcp_child_process and never reaches the t

[PATCH AUTOSEL for 4.9 116/293] drm/vc4: Send a VBLANK event when disabling a CRTC

2018-04-08 Thread Sasha Levin
From: Boris Brezillon [ Upstream commit edeb729f7929d1372ab426a7f56fd0b337ba5751 ] VBLANK events are missed when the CRTC is being disabled because the driver does not wait till the end of the frame before stopping the HVS and PV blocks. In this case, we should explicitly issue a VBLANK event if

[PATCH AUTOSEL for 4.9 117/293] i2c: imx: Use correct function to write to register

2018-04-08 Thread Sasha Levin
From: Michail Georgios Etairidis [ Upstream commit 6c782a5ea56a799658e213a78dc1455264938afa ] The i2c-imx driver incorrectly uses readb()/writeb() to read and write to the appropriate registers when performing a repeated start. The appropriate imx_i2c_read_reg()/imx_i2c_write_reg() functions sho

[PATCH AUTOSEL for 4.9 118/293] irqchip/gic-v3-its: Fix MSI alias accounting

2018-04-08 Thread Sasha Levin
From: Robin Murphy [ Upstream commit 3403b0259d152c3ca67b32bb710f826bc17c0d16 ] The call to pci_for_each_dma_alias() in the ITS PCI code has aroused suspicion in the past, and upon closer inspection does turn out to be completely backwards. Rather than iterating through each RID alias of the giv

[PATCH AUTOSEL for 4.9 114/293] brcmfmac: Use separate firmware for revision 0 of the brcm43430 chip

2018-04-08 Thread Sasha Levin
From: Hans de Goede [ Upstream commit 1278bd149839f2281db45a910082ba143546a148 ] The brcm43430 chip needs different firmware files for chip revision 0 and 1. The file currently in linux-firmware is for revision 1 only. This commit makes brcmfmac request brcmfmac43430a0-sdio.bin instead of brcmf

[PATCH AUTOSEL for 4.9 112/293] ARM: 8683/1: ARM32: Support mremap() for sigpage/vDSO

2018-04-08 Thread Sasha Levin
From: Dmitry Safonov [ Upstream commit 280e87e98c09b85b617c7b2752c8b504c4ea98f6 ] CRIU restores application mappings on the same place where they were before Checkpoint. That means, that we need to move vDSO and sigpage during restore on exactly the same place where they were before C/R. Make m

[PATCH AUTOSEL for 4.9 111/293] kselftests: timers: Fix inconsistency-check to not ignore first timestamp

2018-04-08 Thread Sasha Levin
From: Miroslav Lichvar [ Upstream commit 7a5de5512296fd2ab7a497e4a576196b1f046e78 ] When the first timestamp in the list of clock readings was later than the second timestamp and all other timestamps were in order, the inconsistency was not reported because the index of the out-of-order timestam

[PATCH AUTOSEL for 4.9 113/293] Btrfs: send, fix invalid path after renaming and linking file

2018-04-08 Thread Sasha Levin
From: Filipe Manana [ Upstream commit 72c3668fed2b3eec7c6fc059e7b54855361e3011 ] Currently an incremental snapshot can generate link operations which contain an invalid target path. Such case happens when in the send snapshot a file was renamed, a new hard link added for it and some other inode

[PATCH AUTOSEL for 4.9 104/293] arm64: pass machine size to sparse

2018-04-08 Thread Sasha Levin
From: Luc Van Oostenryck [ Upstream commit f5d284900c0f960e318a063f4c40826b6e3aa6a8 ] When using sparse on the arm64 tree we get many thousands of warnings like 'constant ... is so big it is unsigned long long' or 'shift too big (32) for type unsigned long'. This happens because by default spars

[PATCH AUTOSEL for 4.9 110/293] i40evf: assign num_active_queues inside i40evf_alloc_queues

2018-04-08 Thread Sasha Levin
From: Jacob Keller [ Upstream commit 65c7006f234c9ede887d468f595f259a5c5cc552 ] The variable num_active_queues represents the number of active queues we have for the device. We assign this pretty early in i40evf_init_subtask. Several code locations are written with loops over the tx_rings and r

[PATCH AUTOSEL for 4.9 108/293] sctp: uncork the old asoc before changing to the new one

2018-04-08 Thread Sasha Levin
From: Xin Long [ Upstream commit 8cd5c25f2db03306727d2f6b8f28956169dc1123 ] local_cork is used to decide if it should uncork asoc outq after processing some cmds, and it is set when replying or sending msgs. local_cork should always have the same value with current asoc q->cork in some way. The

[PATCH AUTOSEL for 4.9 102/293] sched/fair: WARN() and refuse to set buddy when !se->on_rq

2018-04-08 Thread Sasha Levin
From: Daniel Axtens [ Upstream commit c5ae366e12b2bd56fc7d7e9d484836bec9ddc110 ] If we set a next or last buddy for a se that is not on_rq, we will end up taking a NULL pointer dereference in wakeup_preempt_entity via pick_next_task_fair. Detect when we would be about to do that, throw a warnin

[PATCH AUTOSEL for 4.9 109/293] sfc: remove duplicate up_write on VF filter_sem

2018-04-08 Thread Sasha Levin
From: Edward Cree [ Upstream commit 57f0c9cf58ff7fe479137ab847a886d0eed3ad1d ] Somehow two copies of the line 'up_write(&vf->efx->filter_sem);' got into efx_ef10_sriov_set_vf_vlan(). This would put the mutex in a bad state and cause all subsequent down attempts to hang. Fixes: 671b53eec2ed (

[PATCH AUTOSEL for 4.9 107/293] dccp: call inet_add_protocol after register_pernet_subsys in dccp_v4_init

2018-04-08 Thread Sasha Levin
From: Xin Long [ Upstream commit d5494acb88aa9dd1325079c9b8855008a52c19b3 ] Now dccp_ipv4 works as a kernel module. During loading this module, if one dccp packet is being recieved after inet_add_protocol but before register_pernet_subsys in which v4_ctl_sk is initialized, a null pointer derefer

[PATCH AUTOSEL for 4.9 103/293] x86/nmi: Fix timeout test in test_nmi_ipi()

2018-04-08 Thread Sasha Levin
From: Dan Carpenter [ Upstream commit c133c7615751008f6c32ccae7cdfc5ff6e989c35 ] We're supposed to exit the loop with "timeout" set to zero. Signed-off-by: Dan Carpenter Acked-by: Don Zickus Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: kernel-janit...@vger.kernel.org Fixes

[PATCH AUTOSEL for 4.9 105/293] fib_rules: Resolve goto rules target on delete

2018-04-08 Thread Sasha Levin
From: Serhey Popovych [ Upstream commit bdaf32c3ced3d111b692f0af585f880f82d686c5 ] We should avoid marking goto rules unresolved when their target is actually reachable after rule deletion. Consolder following sample scenario: # ip -4 ru sh 0: from all lookup local 32000: from all

[PATCH AUTOSEL for 4.9 100/293] mmc: sdhci-esdhc-imx: Fix DAT line software reset

2018-04-08 Thread Sasha Levin
From: Benoît Thébaudeau [ Upstream commit 81a0a8bc380d847fc62605c27067b5c1d025bea2 ] On i.MX25, the eSDHC DAT line software reset (SYSCTL.RSTD) unexpectedly clears at least the data transfer width (PROCTL.DTW), which then results in data CRC errors. This behavior is not documented, but it has ac

[PATCH AUTOSEL for 4.9 098/293] ALSA: hda: Fix potential race at unregistration and unsol events

2018-04-08 Thread Sasha Levin
From: Takashi Iwai [ Upstream commit eb8d0eaaf84b0398533a7c091a0b65663f2fd7ea ] When the codec device is unregistered / freed, it may release the resource while being used in an unsolicited event like the jack detection work. This leads to use-after-free. The fix here is to unregister the devi

[PATCH AUTOSEL for 4.9 099/293] mmc: mediatek: Fixed size in dma_free_coherent

2018-04-08 Thread Sasha Levin
From: Phong LE [ Upstream commit 16f2e0c6ffdfaf964bb0a6d5e67253a1c8116f0e ] The dma gpd dma_free_coherent call size in invalid. Fixes: 208489032bdd ("mmc: mediatek: Add Mediatek MMC driver") Signed-off-by: Phong LE Signed-off-by: Neil Armstrong Signed-off-by: Ulf Hansson Signed-off-by: Sasha

[PATCH AUTOSEL for 4.9 091/293] ARM: dts: am57xx-beagle-x15-revb1: Fix supply name used for MMC1 IO lines

2018-04-08 Thread Sasha Levin
From: Kishon Vijay Abraham I [ Upstream commit 8f323f8d8332455b633acabddb15483d64757965 ] The dt binding documentation of omap-hsmmc recommends using "vmmc_aux" for IO supply lines. However commit 0af28cc92690d8c ("ARM: dts: am57xx-beagle-x15: Add support for rev B1") added it as "vmmc-aux". Now

[PATCH AUTOSEL for 4.9 097/293] scsi: lpfc: Fix crash after firmware flash when IO is running.

2018-04-08 Thread Sasha Levin
From: James Smart [ Upstream commit 569dbe84a3e769009aa4a5d1030d000168889580 ] OS crashes after the completion of firmware download. Failure in posting SCSI SGL buffers because number of SGL buffers is less than total count. Some of the pending IOs are not completed by driver. SGL buffers for t

[PATCH AUTOSEL for 4.9 092/293] Btrfs: skip commit transaction if we don't have enough pinned bytes

2018-04-08 Thread Sasha Levin
From: Liu Bo [ Upstream commit 28785f70ef882e4798cd5706066a55dbf7adf80e ] We commit transaction in order to reclaim space from pinned bytes because it could process delayed refs, and in may_commit_transaction(), we check first if pinned bytes are enough for the required space, we then check if t

[PATCH AUTOSEL for 4.9 095/293] perf test llvm: Avoid error when PROFILE_ALL_BRANCHES is set

2018-04-08 Thread Sasha Levin
From: Wang Nan [ Upstream commit 9b57fb7e35957c6838f89f4ed7e3f8433a4bbfc5 ] The 'if' keyword is a define that expands to complex code when CONFIG_PROFILE_ALL_BRANCHES is selected, which causes a 'perf test LLVM' failure like: $ ./perf test LLVM 35: LLVM search and compile

[PATCH AUTOSEL for 4.9 096/293] clk: socfpga: Fix the smplsel on Arria10 and Stratix10

2018-04-08 Thread Sasha Levin
From: Dinh Nguyen [ Upstream commit b7f8101d6e75fefd22c39624a30c9ed3d7a72463 ] The smplsel bits for the SDMMC clock on Arria10 and Stratix10 platforms are offset by 1 additional bit. Add a new macro SYSMGR_SDMMC_CTRL_SET_AS10 for usage on the Arria10 and Stratix10 platforms. Fixes: 5611a5ba8e5

[PATCH v2] f2fs: don't split checkpoint in fstrim

2018-04-08 Thread Chao Yu
Now, we issue discard asynchronously in separated thread instead of in checkpoint, after that, we won't encounter long latency in checkpoint due to huge number of synchronous discard command handling, so, we don't need to split checkpoint to do trim in batch, merge it and obsolete related sysfs ent

[PATCH AUTOSEL for 4.9 094/293] net/hns:bugfix of ethtool -t phy self_test

2018-04-08 Thread Sasha Levin
From: Lin Yun Sheng [ Upstream commit 7fe5b914313ff67d71cb2b5aa4b850e0884e75dd ] This patch fixes the phy loopback self_test failed issue. when Marvell Phy Module is loaded, it will powerdown fiber when doing phy loopback self test, which cause phy loopback self_test fail. Signed-off-by: Lin Yu

[PATCH AUTOSEL for 4.9 085/293] ip_tunnel: fix potential issue in ip_tunnel_rcv

2018-04-08 Thread Sasha Levin
From: Haishuang Yan [ Upstream commit 469f87e158628fe66dcbbce9dd5e7b7acfe934a9 ] When ip_tunnel_rcv fails, the tun_dst won't be freed, so call dst_release to free it in error code path. Fixes: 2e15ea390e6f ("ip_gre: Add support to collect tunnel metadata.") Acked-by: Eric Dumazet Acked-by: Pra

[PATCH AUTOSEL for 4.9 089/293] ip6_tunnel: Correct tos value in collect_md mode

2018-04-08 Thread Sasha Levin
From: Haishuang Yan [ Upstream commit 46f8cd9d2fc1e4e8b82b53a0007f6c92e80c930b ] Same as ip_gre, geneve and vxlan, use key->tos as traffic class value. CC: Peter Dawson Fixes: 0e9a709560db ("ip6_tunnel, ip6_gre: fix setting of DSCP on encapsulated packets”) Signed-off-by: Haishuang Yan Acked-

[PATCH AUTOSEL for 4.9 090/293] cxgb4: fix a NULL dereference

2018-04-08 Thread Sasha Levin
From: Ganesh Goudar [ Upstream commit d427caee5a3f04938f47bec6fdec97a52668ee53 ] Avoid NULL dereference in setup_sge_queues() when the adapter is in non offload mode. Fixes: 0fbc81b3ad51 ('chcr/cxgb4i/cxgbit/RDMA/cxgb4: Allocate resources dynamically for all cxgb4 ULD's') Signed-off-by: Ganesh

[PATCH AUTOSEL for 4.9 087/293] rds: tcp: Set linger when rejecting an incoming conn in rds_tcp_accept_one

2018-04-08 Thread Sasha Levin
From: Sowmini Varadhan [ Upstream commit 10beea7d7408d0b1c9208757f445c5c710239e0e ] Each time we get an incoming SYN to the RDS_TCP_PORT, the TCP layer accepts the connection and then the rds_tcp_accept_one() callback is invoked to process the incoming connection. rds_tcp_accept_one() may rejec

[PATCH AUTOSEL for 4.9 074/293] of: Provide dummy of_device_compatible_match() for compile-testing

2018-04-08 Thread Sasha Levin
From: Geert Uytterhoeven [ Upstream commit 3bc1630774bc9f202308ae04608a32c366b41caf ] Most of_device_*() functions have dummy versions for CONFIG_OF=n, but of_device_compatible_match() hasn't. Fix that to improve the ability to do compile-testing. Fixes: b9c13fe32faaa71c ("dt: Add of_device_co

[PATCH AUTOSEL for 4.9 086/293] ip6_tunnel: fix potential issue in __ip6_tnl_rcv

2018-04-08 Thread Sasha Levin
From: Haishuang Yan [ Upstream commit f1925ca50deb48eddafc01bc12c2a17bfbf54425 ] When __ip6_tnl_rcv fails, the tun_dst won't be freed, so call dst_release to free it in error code path. Fixes: 8d79266bc48c ("ip6_tunnel: add collect_md mode to IPv6 tunnels") CC: Alexei Starovoitov Tested-by: Zh

[PATCH AUTOSEL for 4.9 088/293] NFC: nfcmrvl_uart: fix device-node leak during probe

2018-04-08 Thread Sasha Levin
From: Johan Hovold [ Upstream commit d0607aa4aee88cb097b694caa619e68f1e0a39c6 ] Make sure to release the device-node reference when done parsing the node. Fixes: e097dc624f78 ("NFC: nfcmrvl: add UART driver") Cc: Vincent Cuissard Signed-off-by: Johan Hovold Signed-off-by: Samuel Ortiz Signed

[PATCH AUTOSEL for 4.9 073/293] net_sched: move tcf_lock down after gen_replace_estimator()

2018-04-08 Thread Sasha Levin
From: WANG Cong [ Upstream commit 74030603dfd9f76c0f279f19f1dd1ee3028fee7a ] Laura reported a sleep-in-atomic kernel warning inside tcf_act_police_init() which calls gen_replace_estimator() with spinlock protection. It is not necessary in this case, we already have RTNL lock here so it is enoug

[PATCH AUTOSEL for 4.9 080/293] Revert "dm mirror: use all available legs on multiple failures"

2018-04-08 Thread Sasha Levin
From: Mike Snitzer [ Upstream commit cd15fb64ee56192760ad5c1e2ad97a65e735b18b ] This reverts commit 12a7cf5ba6c776a2621d8972c7d42e8d3d959d20. This commit apparently attempted to fix an issue that didn't really exist, furthermore: this commit is the source of deadlocks and crashes seen in multip

[PATCH AUTOSEL for 4.9 079/293] drm/tegra: dc: Avoid reset asserts on Tegra20

2018-04-08 Thread Sasha Levin
From: Dmitry Osipenko [ Upstream commit 6ac1571b4c60cb73a1f174b15ea93f7e38d74a88 ] Commit 33a8eb8d40ee ("drm/tegra: dc: Implement runtime PM") introduced HW reset control. It causes a hang on Tegra20 if both display controllers are utilized (RGB panel and HDMI). The TRM suggests that each displa

[PATCH AUTOSEL for 4.9 078/293] firmware: dmi_scan: Check DMI structure length

2018-04-08 Thread Sasha Levin
From: Jean Delvare [ Upstream commit a814c3597a6b6040e2ef9459748081a6d5b7312d ] Before accessing DMI data to record it for later, we should ensure that the DMI structures are large enough to contain the data in question. Signed-off-by: Jean Delvare Reviewed-by: Mika Westerberg Cc: Dmitry Toro

[PATCH AUTOSEL for 4.9 081/293] i2c: ismt: fix wrong device address when unmap the data buffer

2018-04-08 Thread Sasha Levin
From: Liwei Song [ Upstream commit 17e83549e199d89aace7788a9f11c108671eecf5 ] Fix the following kernel bug: kernel BUG at drivers/iommu/intel-iommu.c:3260! invalid opcode: [#5] PREEMPT SMP Hardware name: Intel Corp. Harcuvar/Server, BIOS HAVLCRB0.X64.0013.D39.1608311820 08/31/2016 task: f

[PATCH AUTOSEL for 4.9 082/293] i2c: rcar: use correct length when unmapping DMA

2018-04-08 Thread Sasha Levin
From: Wolfram Sang [ Upstream commit 916335036d4fe33f9806240cb0d1900f4975b959 ] Because we need to transfer some bytes with PIO, the msg length is not the length of the DMA buffer. Use the correct value which we used when doing the mapping. Fixes: 73e8b0528346e8 ("i2c: rcar: add DMA support") S

[PATCH AUTOSEL for 4.9 077/293] firmware: dmi_scan: Look for SMBIOS 3 entry point first

2018-04-08 Thread Sasha Levin
From: Jean Delvare [ Upstream commit c9aba14362a6eec583819ec8f4b872c1816f5cbe ] Since version 3.0.0 of the SMBIOS specification, there can be multiple entry points in memory, pointing to one or two DMI tables. If both a 32-bit ("_SM_") entry point and a 64-bit ("_SM3_") entry point are present,

[git pull] m68knommu changes for v4.17

2018-04-08 Thread Greg Ungerer
Hi Linus, Can you please pull the m68knommu git tree, for-next branch. Only a single fix to set the DMA masks in the ColdFire FEC platform data structure. Stops the warning from dma-mapping.h coming out at boot time. Regards Greg The following changes since commit 3eb2ce825ea1ad89d20f7a3b5780

[PATCH AUTOSEL for 4.9 076/293] PCI: Protect pci_error_handlers->reset_notify() usage with device_lock()

2018-04-08 Thread Sasha Levin
From: Christoph Hellwig [ Upstream commit b014e96d1abbd67404bbe2018937b46466299e9e ] Every method in struct device_driver or structures derived from it like struct pci_driver MUST provide exclusion vs the driver's ->remove() method, usually by using device_lock(). Protect use of pci_error_handl

[PATCH AUTOSEL for 4.9 072/293] perf evsel: Fix probing of precise_ip level for default cycles event

2018-04-08 Thread Sasha Levin
From: Arnaldo Carvalho de Melo [ Upstream commit 7a1ac110c22eb726684c837544a2d42c33e07be7 ] Since commit 18e7a45af91a ("perf/x86: Reject non sampling events with precise_ip") returns -EINVAL for sys_perf_event_open() with an attribute with (attr.precise_ip > 0 && attr.sample_period == 0), just l

[PATCH AUTOSEL for 4.9 069/293] ixgbe: avoid permanent lock of *_PTP_TX_IN_PROGRESS

2018-04-08 Thread Sasha Levin
From: Jacob Keller [ Upstream commit 5fef124d9c75942dc5c2445a3faa8ad37cbf4c82 ] The ixgbe driver uses a state bit lock to avoid handling more than one Tx timestamp request at once. This is required because hardware is limited to a single set of registers for Tx timestamps. The state bit lock is

[PATCH AUTOSEL for 4.9 075/293] rdma/cxgb4: Fix memory leaks during module exit

2018-04-08 Thread Sasha Levin
From: Raju Rangoju [ Upstream commit d4702645838c8e04893383b50406249382b4e6bf ] Fix memory leaks of iw_cxgb4 module in the exit path Signed-off-by: Raju Rangoju Reviewed-by: Steve Wise Signed-off-by: Doug Ledford Signed-off-by: Sasha Levin --- drivers/infiniband/hw/cxgb4/device.c | 10

[PATCH AUTOSEL for 4.9 070/293] ixgbe: pci_set_drvdata must be called before register_netdev

2018-04-08 Thread Sasha Levin
From: Jeff Mahoney [ Upstream commit a09c0fc3f5d775231f1884e0e66c495065a461ee ] We call pci_set_drvdata immediately after calling register_netdev, which leaves a window where tasks writing to the sriov_numvfs sysfs attribute can sneak in and crash the kernel. register_netdev cleans up after its

[PATCH AUTOSEL for 4.9 067/293] iio: imu: inv_mpu6050: test whoami first and against all known values

2018-04-08 Thread Sasha Levin
From: Jean-Baptiste Maneyrol [ Upstream commit 881b556f6cf22d37be9340f293f2db10ce7ae8bf ] SPI bus is never generating error during transfer, so to check if a chip is correctly connected on a SPI bus we enforce whoami check to be correct. In this way we can assure SPI probe is failing if there is

[PATCH AUTOSEL for 4.9 066/293] caif: Add sockaddr length check before accessing sa_family in connect handler

2018-04-08 Thread Sasha Levin
From: Mateusz Jurczyk [ Upstream commit 20a3d5bf5e5b13c02450ab6178ec374abd830686 ] Verify that the caller-provided sockaddr structure is large enough to contain the sa_family field, before accessing it in the connect() handler of the AF_CAIF socket. Since the syscall doesn't enforce a minimum si

[PATCH AUTOSEL for 4.9 065/293] iio: buffer-dmaengine: Add missing header buffer_impl.h

2018-04-08 Thread Sasha Levin
From: Phil Reid [ Upstream commit 7981dc07fe317e3506d706e5ef91b94da02656f4 ] Add buffer_impl.h as buffer.h was split into interface for using and for internals. Without this industrialio-buffer-dmaengine.c fails to compile. Fixes: commit 33dd94cb972175249258329c4aaffddcc82c2005 ("iio:buffer.h -

[PATCH AUTOSEL for 4.9 061/293] platform/x86: acer-wmi: Detect RF Button capability

2018-04-08 Thread Sasha Levin
From: João Paulo Rechi Vita [ Upstream commit 3e2bc5c5b3274ec7402fabbfba557ea58084985e ] If a machine reports a RF Button in the communication button device bitmap, we need to remove it before calling Get Device Status otherwise it will return the "Undefined device" (0xE2) error code. Although

[PATCH AUTOSEL for 4.9 064/293] iio: buffer-dma: Add missing header buffer_impl.h

2018-04-08 Thread Sasha Levin
From: Phil Reid [ Upstream commit 838519b89fa7e162f7190c70d888a65ee7889e12 ] Add buffer_impl.h as buffer.h was split into interface for using and for internals. Without this industrialio-buffer-dma.c fails to compile. Fixes: commit 33dd94cb972175249258329c4aaffddcc82c2005 ("iio:buffer.h - split

[PATCH v1 3/3] perf version: Print status for syscall_table

2018-04-08 Thread Jin Yao
This patch doesn't print "libaudit" line if HAVE_SYSCALL_TABLE_SUPPORT is available and add a line for HAVE_SYSCALL_TABLE_SUPPORT. For example, $ ./perf -vv perf version 4.13.rc5.gc2f8af9 dwarf: [ on ] # HAVE_DWARF_SUPPORT dwarf_getlocations: [ on ] # HAVE_DWARF_GETLOCATI

[PATCH v1 0/3] perf version: some follow-up updates

2018-04-08 Thread Jin Yao
1. Remove -DNO_LIBPERL and use -DHAVE_LIBPERL_SUPPORT in C code. 2. Remove -DNO_LIBPYTHON and use -DHAVE_LIBPYTHON_SUPPORT in C code. 3. Rename HAVE_SYSCALL_TABLE to HAVE_SYSCALL_TABLE_SUPPORT. 4. Don't print "libaudit" line if HAVE_SYSCALL_TABLE_SUPPORT is available and add a line for HAVE_S

[PATCH v1 2/3] perf: Rename HAVE_SYSCALL_TABLE to HAVE_SYSCALL_TABLE_SUPPORT

2018-04-08 Thread Jin Yao
To make consistent with other HAVE_XXX_SUPPORT in Makefile.config, this patch renames HAVE_SYSCALL_TABLE to HAVE_SYSCALL_TABLE_SUPPORT and update the C code accordingly. Signed-off-by: Jin Yao --- tools/perf/Makefile.config | 2 +- tools/perf/builtin-help.c | 2 +- tools/perf/

[PATCH AUTOSEL for 4.9 062/293] leds: bcm6328: fix signal source assignment for leds 4 to 7

2018-04-08 Thread Sasha Levin
From: Jonas Gorski [ Upstream commit 4f02b50ece11dcf75263fb7a4cfe8a5df1cfabea ] Each nibble represents 4 LEDs, and in case of the higher register, bit 0 represents LED 4, so we need to use modulus for the LED number as well. Fixes: fd7b025a238d0a5440bfa26c585eb78097bf48dc ("leds: add BCM6328 LE

[PATCH AUTOSEL for 4.9 046/293] hsr: fix incorrect warning

2018-04-08 Thread Sasha Levin
From: "Karicheri, Muralidharan" [ Upstream commit 675c8da049fd6556eb2d6cdd745fe812752f07a8 ] When HSR interface is setup using ip link command, an annoying warning appears with the trace as below:- [ 203.019828] hsr_get_node: Non-HSR frame [ 203.019833] Modules linked in: [ 203.019848] CPU:

[PATCH AUTOSEL for 4.9 060/293] platform/x86: intel_telemetry_debugfs: fix oops when load/unload module

2018-04-08 Thread Sasha Levin
From: Priyalee Kushwaha [ Upstream commit bf5d008164dd84d671ca2dd569a1676051f9faff ] This fixes an oops found while testing load/unload of the intel_telemetry_debugfs module. module_init uses register_pm_notifier for PM callbacks, but unregister_pm_notifier was missing from module_exit. [ 97.4

[PATCH AUTOSEL for 4.9 047/293] selftests: kselftest_harness: Fix compile warning

2018-04-08 Thread Sasha Levin
From: Mickaël Salaün [ Upstream commit 34a048cc06802556e5f96f325dc32cc2f6a11225 ] Do not confuse the compiler with a semicolon preceding a block. Replace the semicolon with an empty block to avoid a warning: gcc -Wl,-no-as-needed -Wall -lpthread seccomp_bpf.c -o /.../linux/tools/testing/self

[PATCH AUTOSEL for 4.9 058/293] mtd: handle partitioning on devices with 0 erasesize

2018-04-08 Thread Sasha Levin
From: Chris Packham [ Upstream commit 1eeef2d7483a7e3f8d2dd2a5b9939b3b814dc549 ] erasesize is meaningful for flash devices but for SRAM there is no concept of an erase block so erasesize is set to 0. When partitioning these devices instead of ensuring partitions fall on erasesize boundaries we e

[PATCH AUTOSEL for 4.9 059/293] qed: fix dump of context data

2018-04-08 Thread Sasha Levin
From: "Tayar, Tomer" [ Upstream commit ace17c369295f088dc8ac8ff468602646fa5cced ] Currently when dumping a context data only word number '1' is read for the entire context. Fixes: c965db444629 ("qed: Add support for debug data collection") Signed-off-by: Tomer Tayar Signed-off-by: David S. Mi

[PATCH AUTOSEL for 4.9 044/293] s390/dasd: fix hanging safe offline

2018-04-08 Thread Sasha Levin
From: Stefan Haberland [ Upstream commit e8ac01555d9e464249e8bb122337d6d6e5589ccc ] The safe offline processing may hang forever because it waits for I/O which can not be started because of the offline flag that prevents new I/O from being started. Allow I/O to be started during safe offline pr

[PATCH AUTOSEL for 4.9 056/293] PCI: Correct PCI_STD_RESOURCE_END usage

2018-04-08 Thread Sasha Levin
From: Bjorn Helgaas [ Upstream commit 2f686f1d9beee135de6d08caea707ec7bfc916d4 ] PCI_STD_RESOURCE_END is (confusingly) the index of the last valid BAR, not the *number* of BARs. To iterate through all possible BARs, we need to include PCI_STD_RESOURCE_END. Fixes: 9fe373f9997b ("PCI: Increase I

[PATCH AUTOSEL for 4.9 051/293] scsi: megaraid: Fix a sleep-in-atomic bug

2018-04-08 Thread Sasha Levin
From: Jia-Ju Bai [ Upstream commit 896f6966fc815abe71f85fb26f0193875df8a035 ] The driver may sleep under a spin lock, and the function call path is: mraid_mm_attach_buf (acquire the lock by spin_lock_irqsave) pci_pool_alloc(GFP_KERNEL) --> may sleep To fix it, the "GFP_KERNEL" is replaced wit

[PATCH AUTOSEL for 4.9 055/293] efi/fb: Correct PCI_STD_RESOURCE_END usage

2018-04-08 Thread Sasha Levin
From: Bjorn Helgaas [ Upstream commit 92a16c86299c64f58f320e491977408ba31b8c3c ] PCI_STD_RESOURCE_END is (confusingly) the index of the last valid BAR, not the *number* of BARs. To iterate through all possible BARs, we need to include PCI_STD_RESOURCE_END. Fixes: 55d728a40d36 ("efi/fb: Avoid r

[PATCH AUTOSEL for 4.9 045/293] vxlan: dont migrate permanent fdb entries during learn

2018-04-08 Thread Sasha Levin
From: Roopa Prabhu [ Upstream commit e0090a9e979de5202c7d16c635dea2f005221073 ] This patch fixes vxlan_snoop to not move permanent fdb entries on learn events. This is consistent with the bridge fdb handling of permanent entries. Fixes: 26a41ae60438 ("vxlan: only migrate dynamic FDB entries") S

[PATCH AUTOSEL for 4.9 050/293] scsi: csiostor: Avoid content leaks and casts

2018-04-08 Thread Sasha Levin
From: Kees Cook [ Upstream commit 42c335f7e67029d2e01711f2f2bc6252277c8993 ] When copying attributes, the len argument was padded out and the resulting memcpy() would copy beyond the end of the source buffer. Avoid this, and use size_t for val_len to avoid all the casts. Similarly, avoid source

<    3   4   5   6   7   8   9   10   11   12   >