Re: [PATCH] perf tests: Handle properly readdir DT_UNKNOWN

2017-12-07 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 06, 2017 at 06:45:35PM +0100, Jiri Olsa escreveu: > Some system can return DT_UNKNOWN in readdir's struct dirent::d_type > and we must handle it properly. In this case we can directly check > if the entity we found is directory and skip it. > Making is_directory function global. Spli

[PATCH v2 04/10] arm64: dts: qcom: msm8916: drop unused board-specific nodes

2017-12-07 Thread Damien Riegel
These nodes reserve and configure some pins as GPIOs. They are not generic pinctrls, they actually belong to board files but they are not used by any other node, so just drop them altogether. Signed-off-by: Damien Riegel --- arch/arm64/boot/dts/qcom/msm8916-pins.dtsi | 52 ---

[PATCH v2 10/10] arm64: dts: qcom: msm8916: add nodes for i2c1, i2c3, i2c5

2017-12-07 Thread Damien Riegel
Signed-off-by: Damien Riegel --- Changes in v2: - Reworded commit title - Changed size to 0x500 arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 48 ++ arch/arm64/boot/dts/qcom/msm8916-pins.dtsi | 42 ++ arch/arm64/boot/dts/qcom/msm8916.dtsi

[PATCH v2 06/10] arm64: dts: qcom: msm8916: move pinconfs to board files

2017-12-07 Thread Damien Riegel
Following a suggestion from Bjorn Andersson [1], this commit moves electrical specifications which were defined in mms8916-pins.dtsi to board files, where they actually belong. Pinmuxing is kept in the platform file because there are no alternative pins on which all these functions could be routed

[PATCH v2 03/10] arm64: dts: qcom: msm8916-pins: keep cdc_dmic pins in suspend mode

2017-12-07 Thread Damien Riegel
This node was the only one that didn't have the same set of pins in active and suspend mode. Signed-off-by: Damien Riegel --- arch/arm64/boot/dts/qcom/msm8916-pins.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-pins.dtsi b/arch/arm64/boot/dts/q

Re: [PATCH 4.4 00/49] 4.4.105-stable review

2017-12-07 Thread Nathan Chancellor
On Thu, Dec 07, 2017 at 02:06:54PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.105 release. > There are 49 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

Re: [PATCH 31/45] tools/perf: remove duplicate includes

2017-12-07 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 06, 2017 at 11:13:24PM +0530, Pravin Shedge escreveu: > These duplicate includes have been found with scripts/checkincludes.pl but > they have been removed manually to avoid removing false positives. Thanks, checked the dups manually too and applied, - Arnaldo > Signed-off-by: Pravi

Re: [PATCH net-next 1/3] net: dsa: mediatek: add VLAN support for MT7530

2017-12-07 Thread Andrew Lunn
> static void > +mt7530_port_set_vlan_unware(struct dsa_switch *ds, int port) > +{ > + struct mt7530_priv *priv = ds->priv; > + int i; > + bool all_user_ports_removed = true; Hi Sean Reverse Christmas tree please. > +static int > +mt7530_vlan_cmd(struct mt7530_priv *priv, enum mt753

Re: [PATCH] fs: Fix signed integer overflow for vfs_setpos

2017-12-07 Thread Al Viro
On Thu, Dec 07, 2017 at 09:19:10PM +0800, Ding Tianhong wrote: > The undefined behaviour sanatizer detected an signed integer overflow like > this: > > r0 = > memfd_create(&(0x7f002000-0x12)="2e726571756573745f6b65795f6175746800",0x0) > lseek(r0, 0x4040, 0x1) > setsockopt$inet6_I

Re: [PATCH v8 4/6] clocksource: stm32: only use 32 bits timers

2017-12-07 Thread Daniel Lezcano
On 14/11/2017 09:52, Benjamin Gaignard wrote: > The clock driving counters is at 90MHz so the maximum period > for 16 bis counters is around 750 ms which is a short period > for a clocksource. Isn't it 728us ? > For 32 bits counters this period is close > 47 secondes which is more acceptable. >

Re: [PATCH net-next 2/3] net: dsa: mediatek: combine MediaTek tag with VLAN tag

2017-12-07 Thread Andrew Lunn
> @@ -25,20 +28,37 @@ static struct sk_buff *mtk_tag_xmit(struct sk_buff *skb, > { > struct dsa_port *dp = dsa_slave_to_port(dev); > u8 *mtk_tag; > + bool is_vlan_skb = true; .. > + /* Mark tag attribute on special tag insertion to notify hardware > + * whether that's a

Re: [PATCH net-next 3/3] net: dsa: mediatek: update MAINTAINERS entry with MediaTek switch driver

2017-12-07 Thread Andrew Lunn
On Thu, Dec 07, 2017 at 02:06:12PM +0800, sean.w...@mediatek.com wrote: > From: Sean Wang > > I work for MediaTek and maintain SoC targeting to home gateway and > also will keep extending and testing the function from MediaTek > switch. > > Signed-off-by: Sean Wang Reviewed-by: Andrew Lunn

Re: [PATCH v3] scripts/package: snap-pkg target

2017-12-07 Thread Masahiro Yamada
2017-12-07 3:14 GMT+09:00 Paolo Pisati : > On Wed, Dec 6, 2017 at 11:36 AM, Masahiro Yamada > wrote: >> Just one question to Paolo: >> >> If some change like firmware removal happens in the future, >> patching for snapcraft is necessary? >> (i.e. users are required to upgrade snapcraft fro

Re: [Intel-gfx] [PATCH] drm/i915: Increase max texture to 16k for gen9+

2017-12-07 Thread Ville Syrjälä
On Thu, Dec 07, 2017 at 05:26:00PM +0800, Alex Tu wrote: > Rrefer to another patch [1] on mesa to extend width/height to 16384. > For issue : > - https://bugs.freedesktop.org/show_bug.cgi?id=102508 > - LP: #1714178 Triple monitor display failed with Dell Dock (HiDPI) > > [1] https://patchwork.fr

Re: Firmware signing -- Re: [PATCH 00/27] security, efi: Add kernel lockdown

2017-12-07 Thread Alan Cox
> I am curious though, is the above notion of having hardware require signed > firmware an implication brought down by UEFI? If so do you have any pointers > to where this is stipulated? Or is it just a best practice we assume some > manufacturers are implementing? It's a mix of best practice and

Re: [PATCH net-next v2 5/8] net: phy: meson-gxl: detect LPA corruption

2017-12-07 Thread Andrew Lunn
On Thu, Dec 07, 2017 at 03:27:12PM +0100, Jerome Brunet wrote: > The purpose of this change is to fix the incorrect detection of the link > partner (LP) advertised capabilities which sometimes happens with this PHY > (roughly 1 time in a dozen) Hi Jerome Since this is a real fix, please send it a

Re: [PATCH net-next v2 1/8] net: phy: meson-gxl: check phy_write return value

2017-12-07 Thread Andrew Lunn
On Thu, Dec 07, 2017 at 03:27:08PM +0100, Jerome Brunet wrote: > Always check phy_write return values. Better to be safe than sorry > > Signed-off-by: Jerome Brunet Reviewed-by: Andrew Lunn Andrew

[PATCH v3 07/10] ASoC: tlv320aic31xx: Add short circuit detection support

2017-12-07 Thread Andrew F. Davis
These devices support detecting and reporting short circuits across the output stages. Add support for reporting these issue. Do this by registering an interrupt if available and enabling this error to trigger that interrupt in the device. Signed-off-by: Andrew F. Davis --- sound/soc/codecs/tlv3

Re: [PATCH v2 16/19] ASoC: tlv320aic31xx: Add short circuit detection support

2017-12-07 Thread Andrew F. Davis
On 12/07/2017 06:03 AM, Mark Brown wrote: > On Wed, Dec 06, 2017 at 02:22:39PM -0600, Andrew F. Davis wrote: >> On 12/01/2017 09:32 AM, Andrew F. Davis wrote: > This will report the interrupt as handled even if we didn't see an interrupt we understand which will break shared interrupt li

[PATCH v3 10/10] ASoC: tlv320aic31xx: Add button press detection

2017-12-07 Thread Andrew F. Davis
This device can optionally detect headset or microphone button presses. Add support for this by passing this event to the jack layer. Signed-off-by: Andrew F. Davis --- sound/soc/codecs/tlv320aic31xx.c | 14 +- sound/soc/codecs/tlv320aic31xx.h | 3 ++- 2 files changed, 15 insertions

Re: [PATCH v5 2/2] dt-bindings: add eeprom "no-read-rollover" property

2017-12-07 Thread Rob Herring
On Thu, Dec 7, 2017 at 8:36 AM, Sven Van Asbroeck wrote: > Adds an optional property for at24 eeproms. > This parameterless property indicates that the multi-address eeprom > does not automatically roll over reads to the next slave address. > > Signed-off-by: Sven Van Asbroeck > --- > Documentat

[PATCH v3 04/10] ASoC: tlv320aic31xx: Add MICBIAS off setting

2017-12-07 Thread Andrew F. Davis
Leaving microphone bias off is a valid setting and even used in the DT binding document example. Add this setting here and document the same. Signed-off-by: Andrew F. Davis Acked-by: Rob Herring --- Documentation/devicetree/bindings/sound/tlv320aic31xx.txt | 1 + include/dt-bindings/sound/tlv32

[PATCH v3 00/10] Add Headphone Detection to TLV320AIC31xx Driver

2017-12-07 Thread Andrew F. Davis
Hello all, This series has the end goal of adding headphone detection to the tlv320aic31xx driver. The first few patches are mostly cleanups. Then a couple bug fixes I noticed. Followed by adding interrupt handling and finally headphone detection. Still not sure if the IRQ patch is correct, I thi

[PATCH v3 09/10] ASoC: tlv320aic31xx: Add headphone/headset detection

2017-12-07 Thread Andrew F. Davis
This device can detect the insertion/removal of headphones and headsets. Enable reporting this status by enabling this interrupt and forwarding this to upper-layers if a jack has been defined. This jack definition and the resulting operation from a jack detection event must currently be defined by

[PATCH v3 03/10] ASoC: tlv320aic31xx: Remove platform data

2017-12-07 Thread Andrew F. Davis
Platform data is not used by anyone (at least in upstream) so drop this data. Signed-off-by: Andrew F. Davis --- sound/soc/codecs/tlv320aic31xx.c | 7 --- sound/soc/codecs/tlv320aic31xx.h | 6 -- 2 files changed, 13 deletions(-) diff --git a/sound/soc/codecs/tlv320aic31xx.c b/sound/soc/

[PATCH v3 08/10] ASoC: tlv320aic31xx: Add overflow detection support

2017-12-07 Thread Andrew F. Davis
Similar to short circuit detection, when the ADC/DAC is saturated and overflows poor audio quality can result and should be reported to the user. This device support Automatic Dynamic Range Compression (DRC) to reduce this but it is not enabled currently in this driver. Signed-off-by: Andrew F. Da

[PATCH v3 05/10] ASoC: tlv320aic31xx: Remove regulator notification handling

2017-12-07 Thread Andrew F. Davis
A regulator being forcefully disabled is a catastrophic event that should never happen to most devices, especially not sound CODECs. In addition, our handler sets the reset line but never disables it as no one is listening for an enable event, this is certainly broken and was mosy likely just copie

[PATCH v3 02/10] ASoC: tlv320aic31xx: Use fwnode APIs over raw OF calls

2017-12-07 Thread Andrew F. Davis
Use fwnode_* API instead of of_*, the results are the same but fwnode_* is cleaner and we get ACPI support. Signed-off-by: Andrew F. Davis --- sound/soc/codecs/tlv320aic31xx.c | 77 +++- 1 file changed, 29 insertions(+), 48 deletions(-) diff --git a/sound/soc

[PATCH v3 06/10] ASoC: tlv320aic31xx: Reset registers during power up

2017-12-07 Thread Andrew F. Davis
Add a reset function that toggles the reset line if available or uses the software reset command otherwise. Use this in power up to ensure the registers are in a sane state. This is useful when the driver module is reloaded, or after Kexec, warm-reboots, etc.. Signed-off-by: Andrew F. Davis ---

[PATCH v3 01/10] ASoC: tlv320aic31xx: Fix GPIO header includes

2017-12-07 Thread Andrew F. Davis
Use of gpiod_* needs , add this here. Fixes: b6b247cd5e37 ("ASoC: tlv320aic31xx: Switch GPIO handling to use gpiod_* API") Signed-off-by: Andrew F. Davis --- sound/soc/codecs/tlv320aic31xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/tlv320aic31xx.c b/s

Re: [PATCH 4.9 037/109] dmaengine: stm32-dma: Set correct args number for DMA request from DT

2017-12-07 Thread alexander . levin
On Thu, Dec 07, 2017 at 03:04:07PM +0100, Pierre Yves MORDRET wrote: >I did check. DT Bindings are aligned with the patch. >In fact the patch was an alignment with DT Bindings. > >For DT : >47c8a5035b68 ARM: dts: stm32: Add DMA support for STM32F746 SoC >01d281b6e4a2 ARM: dts: stm32: Add DMA suppor

Re: [PATCH net-next v2 5/8] net: phy: meson-gxl: detect LPA corruption

2017-12-07 Thread Jerome Brunet
On Thu, 2017-12-07 at 16:34 +0100, Andrew Lunn wrote: > On Thu, Dec 07, 2017 at 03:27:12PM +0100, Jerome Brunet wrote: > > The purpose of this change is to fix the incorrect detection of the link > > partner (LP) advertised capabilities which sometimes happens with this PHY > > (roughly 1 time in a

Re: [PATCH v18 05/10] xbitmap: add more operations

2017-12-07 Thread Michael S. Tsirkin
On Thu, Dec 07, 2017 at 08:01:24PM +0800, Wei Wang wrote: > On 12/03/2017 09:50 AM, Tetsuo Handa wrote: > > Matthew Wilcox wrote: > > > On Fri, Dec 01, 2017 at 03:09:08PM +, Wang, Wei W wrote: > > > > On Friday, December 1, 2017 9:02 PM, Tetsuo Handa wrote: > > > > > If start == end is legal, >

Re: [PATCH] dt: bindings: as3645a: Fix the example node

2017-12-07 Thread Rob Herring
On Wed, Dec 6, 2017 at 4:32 PM, Dan Murphy wrote: > Rob > > On 12/06/2017 03:52 PM, Rob Herring wrote: >> On Tue, Dec 05, 2017 at 07:36:37AM -0600, Dan Murphy wrote: >>> Fix the address-cells and size-cells example node >>> to reflect to the correct representation. >>> >>> Signed-off-by: Dan Murph

Re: [RFC][PATCH] printk: add console_msg_format command line option

2017-12-07 Thread Petr Mladek
On Thu 2017-12-07 23:01:04, Sergey Senozhatsky wrote: > Hi, > > On (12/07/17 14:48), Petr Mladek wrote: > [..] > > > This patch introduces a `console_msg_format=' command line option, > > > to switch between different message formatting on serial consoles. > > > For the time being we have just one

Re: [PATCH] perf: qcom_l2_pmu: don't allow guest access

2017-12-07 Thread Leeder, Neil
On 12/7/2017 8:38 AM, Will Deacon wrote: > On Wed, Dec 06, 2017 at 04:19:24PM -0500, Leeder, Neil wrote: >> On 12/6/2017 11:11 AM, Mark Rutland wrote: >>> On Wed, Dec 06, 2017 at 10:55:33AM -0500, Neil Leeder wrote: Guests cannot access IMPDEF system registers, which are used by this driv

Re: Multiple oom_reaper BUGs: unmap_page_range racing with exit_mmap

2017-12-07 Thread Tetsuo Handa
Michal Hocko wrote: > David, could you test with this patch please? Even if this patch solved David's case, you need to update * tsk_is_oom_victim() cannot be set from under us * either because current->mm is already set to NULL * under task_lock before calling mmput an

Re: ipmi null pointer oops in 4.15-rc2+ on HP DL360G6

2017-12-07 Thread Meelis Roos
> > Tried current 4.15 git on HP DL360G6 (working fine in 4.14), got null > > pointer dereference oops from ipmi_pci_probe (or so it seems from the > > backtrace). > > I have a fix for this at https://bugzilla.kernel.org/show_bug.cgi?id=197999, > but > the reported hasn't reported if the patch the

[PATCH AUTOSEL for 4.14 011/135] PM / s2idle: Clear the events_check_enabled flag

2017-12-07 Thread alexander . levin
From: Rajat Jain [ Upstream commit 95b982b45122c57da2ee0b46cce70775e1d987af ] Problem: This flag does not get cleared currently in the suspend or resume path in the following cases: * In case some driver's suspend routine returns an error. * Successful s2idle case * etc? Why is this a probl

[PATCH AUTOSEL for 4.14 025/135] platform/x86: intel_punit_ipc: Fix resource ioremap warning

2017-12-07 Thread alexander . levin
From: Kuppuswamy Sathyanarayanan [ Upstream commit 6cc8cbbc8868033f279b63e98b26b75eaa0006ab ] For PUNIT device, ISPDRIVER_IPC and GTDDRIVER_IPC resources are not mandatory. So when PMC IPC driver creates a PUNIT device, if these resources are not available then it creates dummy resource entries

[PATCH AUTOSEL for 4.14 002/135] HID: cp2112: fix broken gpio_direction_input callback

2017-12-07 Thread alexander . levin
From: Sébastien Szymanski [ Upstream commit 7da85fbf1c87d4f73621e0e7666a3387497075a9 ] When everything goes smoothly, ret is set to 0 which makes the function to return EIO error. Fixes: 8e9faa15469e ("HID: cp2112: fix gpio-callback error handling") Signed-off-by: Sébastien Szymanski Reviewed-

[PATCH AUTOSEL for 4.14 060/135] Ib/hfi1: Return actual operational VLs in port info query

2017-12-07 Thread alexander . levin
From: Patel Jay P [ Upstream commit 00f9203119dd2774564407c7a67b17d81916298b ] __subn_get_opa_portinfo stores value returned by hfi1_get_ib_cfg() as operational vls. hfi1_get_ib_cfg() returns vls_operational field in hfi1_pportdata. The problem with this is that the value is always equal to vls_

[PATCH AUTOSEL for 4.14 038/135] net: hns3: fix for getting advertised_caps in hns3_get_link_ksettings

2017-12-07 Thread alexander . levin
From: Fuyun Liang [ Upstream commit 2b39cabb2a283cea0c3d96d9370575371726164f ] This patch fixes a bug for ethtool's get_link_ksettings(). The advertising for autoneg is always added to advertised_caps whether autoneg is enable or disable. This patch fixes it. Fixes: 496d03e (net: hns3: Add Etht

[PATCH AUTOSEL for 4.14 032/135] badblocks: fix wrong return value in badblocks_set if badblocks are disabled

2017-12-07 Thread alexander . levin
From: Liu Bo [ Upstream commit 39b4954c0a1556f8f7f1fdcf59a227117fcd8a0b ] MD's rdev_set_badblocks() expects that badblocks_set() returns 1 if badblocks are disabled, otherwise, rdev_set_badblocks() will record superblock changes and return success in that case and md will fail to report an IO er

[PATCH AUTOSEL for 4.14 054/135] scsi: scsi_debug: write_same: fix error report

2017-12-07 Thread alexander . levin
From: Douglas Gilbert [ Upstream commit e33d7c56450b0a5c7290cbf9e1581fab5174f552 ] The scsi_debug driver incorrectly suggests there is an error with the SCSI WRITE SAME command when the number_of_logical_blocks is greater than 1. It will also suggest there is an error when NDOB (no data-out buff

[PATCH AUTOSEL for 4.14 084/135] RDMA/cxgb4: Declare stag as __be32

2017-12-07 Thread alexander . levin
From: Leon Romanovsky [ Upstream commit 35fb2a88ed4b77356fa679a8525c869a3594e287 ] The scqe.stag is actually __b32, fix it. drivers/infiniband/hw/cxgb4/cq.c:754:52: warning: cast to restricted __be32 Cc: Steve Wise Signed-off-by: Leon Romanovsky Reviewed-by: Steve Wise Signed-off-by: Doug

Re: [PATCH v3 6/6] cpufreq: schedutil: ignore sugov kthreads

2017-12-07 Thread Patrick Bellasi
On 07-Dec 14:54, Viresh Kumar wrote: > On 30-11-17, 16:42, Patrick Bellasi wrote: > > On 30-Nov 17:12, Juri Lelli wrote: > > > Not sure about this though, not my call :). I guess this still helps > > > until we get the DL changes in. > > > > Yes, agree... well Viresh had some concerns about this p

[PATCH AUTOSEL for 4.14 069/135] mtd: spi-nor: stm32-quadspi: Fix uninitialized error return code

2017-12-07 Thread alexander . levin
From: Geert Uytterhoeven [ Upstream commit 05521bd3d117704a1458eb4d0c3ae821858658f2 ] With gcc 4.1.2: drivers/mtd/spi-nor/stm32-quadspi.c: In function ‘stm32_qspi_tx_poll’: drivers/mtd/spi-nor/stm32-quadspi.c:230: warning: ‘ret’ may be used uninitialized in this function Indeed, if st

[PATCH AUTOSEL for 4.14 062/135] arm64: prevent regressions in compressed kernel image size when upgrading to binutils 2.27

2017-12-07 Thread alexander . levin
From: Nick Desaulniers [ Upstream commit fd9dde6abcb9bfe6c6bee48834e157999f113971 ] Upon upgrading to binutils 2.27, we found that our lz4 and gzip compressed kernel images were significantly larger, resulting is 10ms boot time regressions. As noted by Rahul: "aarch64 binaries uses RELA relocat

[PATCH AUTOSEL for 4.14 082/135] net: hns3: add nic_client check when initialize roce base information

2017-12-07 Thread alexander . levin
From: Lipeng [ Upstream commit 3a46f34d20d453f09defb76b11a567647939c0aa ] Roce driver works base on HNS3 driver.If insmod Roce driver before NIC driver there is a error because do not check nic_client. This patch adds nic_client check when initialize roce base information. Fixes: 46a3df9 (net:

[PATCH AUTOSEL for 4.14 068/135] qtnfmac: modify full Tx queue error reporting

2017-12-07 Thread alexander . levin
From: Sergey Matyukevich [ Upstream commit e9931f984dd1e80adb3b5e095ef175fe383bc92d ] Under heavy load it is normal that h/w Tx queue is almost full all the time and reclaim should be done before transmitting next packet. Warning still should be reported as well as s/w Tx queues should be stoppe

[PATCH AUTOSEL for 4.14 108/135] IB/hfi1: Mask out A bit from psn trace

2017-12-07 Thread alexander . levin
From: Don Hiatt [ Upstream commit d0a2f454713a42447ee4007582c0e43c47bcf230 ] The trace logic prior to the fixes below used to mask the A bit from the psn. It now mistakenly displays the A bit, which is already displayed separately. Fix by adding the appropriate mask to the psn tracing. Fixes:

[PATCH AUTOSEL for 4.14 087/135] scsi: hpsa: cleanup sas_phy structures in sysfs when unloading

2017-12-07 Thread alexander . levin
From: Martin Wilck [ Upstream commit 55ca38b4255bb336c2d35990bdb2b368e19b435a ] I am resubmitting this patch on behalf of Martin Wilck with his permission. The original patch can be found here: https://www.spinics.net/lists/linux-scsi/msg102083.html This patch did not help until Hannes's commi

[PATCH AUTOSEL for 4.9 027/156] writeback: fix memory leak in wb_queue_work()

2017-12-07 Thread alexander . levin
From: Tahsin Erdogan [ Upstream commit 4a3a485b1ed0e109718cc8c9d094fa0f552de9b2 ] When WB_registered flag is not set, wb_queue_work() skips queuing the work, but does not perform the necessary clean up. In particular, if work->auto_free is true, it should free the memory. The leak condition can

[PATCH AUTOSEL for 4.14 103/135] raid5: Set R5_Expanded on parity devices as well as data.

2017-12-07 Thread alexander . levin
From: NeilBrown [ Upstream commit 235b6003fb28f0dd8e7ed8fbdb088bb548291766 ] When reshaping a fully degraded raid5/raid6 to a larger nubmer of devices, the new device(s) are not in-sync and so that can make the newly grown stripe appear to be "failed". To avoid this, we set the R5_Expanded flag

[PATCH AUTOSEL for 4.9 023/156] drm/omap: fix dmabuf mmap for dma_alloc'ed buffers

2017-12-07 Thread alexander . levin
From: Tomi Valkeinen [ Upstream commit 9fa1d7537242bd580ffa99c4725a0407096aad26 ] omap_gem_dmabuf_mmap() returns an error (with a WARN) when called for a buffer which is allocated with dma_alloc_*(). This prevents dmabuf mmap from working on SoCs without DMM, e.g. AM4 and OMAP3. I could not fin

[PATCH AUTOSEL for 4.14 132/135] ath9k: fix tx99 potential info leak

2017-12-07 Thread alexander . levin
From: Miaoqing Pan [ Upstream commit ee0a47186e2fa9aa1c56cadcea470ca0ba8c8692 ] When the user sets count to zero the string buffer would remain completely uninitialized which causes the kernel to parse its own stack data, potentially leading to an info leak. In addition to that, the string might

[PATCH AUTOSEL for 4.9 017/156] net/mlx5: Don't save PCI state when PCI error is detected

2017-12-07 Thread alexander . levin
From: Daniel Jurgens [ Upstream commit 5d47f6c89d568ab61712d8c40676fbb020b68752 ] When a PCI error is detected the PCI state could be corrupt, don't save it in that flow. Save the state after initialization. After restoring the PCI state during slot reset save it again, restoring the state destr

[PATCH AUTOSEL for 4.9 049/156] sched/deadline: Make sure the replenishment timer fires in the next period

2017-12-07 Thread alexander . levin
From: Daniel Bristot de Oliveira [ Upstream commit 5ac69d37784b237707a7b15d199cdb6c6fdb6780 ] Currently, the replenishment timer is set to fire at the deadline of a task. Although that works for implicit deadline tasks because the deadline is equals to the begin of the next period, that is not c

[PATCH AUTOSEL for 4.9 051/156] sched/deadline: Use deadline instead of period when calculating overflow

2017-12-07 Thread alexander . levin
From: "Steven Rostedt (VMware)" [ Upstream commit 2317d5f1c34913bac5971d93d69fb6c31bb74670 ] I was testing Daniel's changes with his test case, and tweaked it a little. Instead of having the runtime equal to the deadline, I increased the deadline ten fold. Daniel's test case had: attr.

[PATCH AUTOSEL for 4.9 031/156] net: Resend IGMP memberships upon peer notification.

2017-12-07 Thread alexander . levin
From: Vlad Yasevich [ Upstream commit 37c343b4f4e70e9dc328ab04903c0ec8d154c1a4 ] When we notify peers of potential changes, it's also good to update IGMP memberships. For example, during VM migration, updating IGMP memberships will redirect existing multicast streams to the VM at the new locat

[PATCH AUTOSEL for 4.9 055/156] afs: Populate group ID from vnode status

2017-12-07 Thread alexander . levin
From: Marc Dionne [ Upstream commit 6186f0788b31f44affceeedc7b48eb10faea120d ] The group was hard coded to GLOBAL_ROOT_GID; use the group ID that was received from the server. Signed-off-by: Marc Dionne Signed-off-by: David Howells Signed-off-by: Sasha Levin --- fs/afs/inode.c | 2 +- 1 fil

[PATCH AUTOSEL for 4.9 035/156] qed: Fix mapping leak on LL2 rx flow

2017-12-07 Thread alexander . levin
From: "Mintz, Yuval" [ Upstream commit 752ecb2da11124a948567076b60767dc8034cfa5 ] When receiving an Rx LL2 packet, qed fails to unmap the previous buffer. Fixes: 0a7fb11c23c0 ("qed: Add Light L2 support"); Signed-off-by: Yuval Mintz Signed-off-by: David S. Miller Signed-off-by: Sasha Levin -

Re: [PATCH net-next v2 3/8] net: phy: meson-gxl: add read and write helpers for bank registers

2017-12-07 Thread Jerome Brunet
On Thu, 2017-12-07 at 16:46 +0100, Andrew Lunn wrote: > On Thu, Dec 07, 2017 at 03:27:10PM +0100, Jerome Brunet wrote: > > Add read and write helpers to manipulate banked registers on this PHY > > This helps clarify the settings applied to these registers in the init > > function and upcoming chang

[PATCH AUTOSEL for 4.9 072/156] net: mpls: Fix nexthop alive tracking on down events

2017-12-07 Thread alexander . levin
From: David Ahern [ Upstream commit 61733c91c454a61be0ffc93fe46a5d5f2f048c1c ] Alive tracking of nexthops can account for a link twice if the carrier goes down followed by an admin down of the same link rendering multipath routes useless. This is similar to 79099aab38c8 for UNREGISTER events and

[PATCH AUTOSEL for 4.9 073/156] rxrpc: Ignore BUSY packets on old calls

2017-12-07 Thread alexander . levin
From: David Howells [ Upstream commit 4d4a6ac73e7466c2085c307fac41f74ce4568a45 ] If we receive a BUSY packet for a call we think we've just completed, the packet is handed off to the connection processor to deal with - but the connection processor doesn't expect a BUSY packet and so flags a prot

[PATCH AUTOSEL for 4.9 078/156] NFSv4.1 respect server's max size in CREATE_SESSION

2017-12-07 Thread alexander . levin
From: Olga Kornievskaia [ Upstream commit 033853325fe3bdc70819a8b97915bd3bca41d3af ] Currently client doesn't respect max sizes server returns in CREATE_SESSION. nfs4_session_set_rwsize() gets called and server->rsize, server->wsize are 0 so they never get set to the sizes returned by the server

[PATCH AUTOSEL for 4.9 118/156] ASoC: rsnd: rsnd_ssi_run_mods() needs to care ssi_parent_mod

2017-12-07 Thread alexander . levin
From: Kuninori Morimoto [ Upstream commit 21781e87881f9c420871b1d1f3f29d4cd7bffb10 ] SSI parent mod might be NULL. ssi_parent_mod() needs to care about it. Otherwise, it uses negative shift. This patch fixes it. Signed-off-by: Kuninori Morimoto Signed-off-by: Mark Brown Signed-off-by: Sasha L

[PATCH AUTOSEL for 4.9 150/156] scsi: bfa: integer overflow in debugfs

2017-12-07 Thread alexander . levin
From: Dan Carpenter [ Upstream commit 3e351275655d3c84dc28abf170def9786db5176d ] We could allocate less memory than intended because we do: bfad->regdata = kzalloc(len << 2, GFP_KERNEL); The shift can overflow leading to a crash. This is debugfs code so the impact is very small. I fi

Re: [RESEND PATCH v3 2/2] ARM64: dts: meson-axg: add pinctrl DT info for Meson-AXG SoC

2017-12-07 Thread Kevin Hilman
On Wed, Dec 6, 2017 at 5:44 PM, Yixun Lan wrote: > Hi Kevin > > > On 12/07/17 04:18, Kevin Hilman wrote: >> Yixun Lan writes: >> >>> From: Xingyu Chen >>> >>> Add new pinctrl DT info for the Amlogic's Meson-AXG SoC. >>> >>> Reviewed-by: Neil Armstrong >>> Signed-off-by: Xingyu Chen >>> Signed-

[PATCH AUTOSEL for 4.4 024/101] scsi: hpsa: update check for logical volume status

2017-12-07 Thread alexander . levin
From: Don Brace [ Upstream commit 85b29008d8af6d94a0723aaa8d93cfb6e041158b ] - Add in a new case for volume offline. Resolves internal testing bug for multilun array management. - Return correct status for failed TURs. Reviewed-by: Scott Benesh Reviewed-by: Scott Teel Signed-off-by: Don

[PATCH AUTOSEL for 4.9 153/156] RDMA/cma: Avoid triggering undefined behavior

2017-12-07 Thread alexander . levin
From: Bart Van Assche [ Upstream commit c0b64f58e8d49570aa9ee55d880f92c20ff0166b ] According to the C standard the behavior of computations with integer operands is as follows: * A computation involving unsigned operands can never overflow, because a result that cannot be represented by the re

[PATCH AUTOSEL for 4.4 045/101] efi/esrt: Cleanup bad memory map log messages

2017-12-07 Thread alexander . levin
From: Daniel Drake [ Upstream commit 822f5845f710e57d7e2df1fd1ee00d6e19d334fe ] The Intel Compute Stick STCK1A8LFC and Weibu F3C platforms both log 2 error messages during boot: efi: requested map not found. esrt: ESRT header is not in the memory map. Searching the web, this seems to aff

Re: [PATCH net-next v2 7/8] net: phy: meson-gxl: add interrupt support

2017-12-07 Thread Andrew Lunn
On Thu, Dec 07, 2017 at 03:27:14PM +0100, Jerome Brunet wrote: > Enable interrupt support in meson-gxl PHY driver Hi Jerome Is it possible to implement did_interrupt()? That allows for shared interrupts. It does however work fine without it, so long as the interrupt is not shared. Than

[PATCH AUTOSEL for 4.4 046/101] NFSv4.1 respect server's max size in CREATE_SESSION

2017-12-07 Thread alexander . levin
From: Olga Kornievskaia [ Upstream commit 033853325fe3bdc70819a8b97915bd3bca41d3af ] Currently client doesn't respect max sizes server returns in CREATE_SESSION. nfs4_session_set_rwsize() gets called and server->rsize, server->wsize are 0 so they never get set to the sizes returned by the server

[PATCH AUTOSEL for 4.4 042/101] afs: Fix afs_kill_pages()

2017-12-07 Thread alexander . levin
From: David Howells [ Upstream commit 7286a35e893176169b09715096a4aca557e2ccd2 ] Fix afs_kill_pages() in two ways: (1) If a writeback has been partially flushed, then if we try and kill the pages it contains, some of them may no longer be undergoing writeback and end_page_writeback()

[PATCH AUTOSEL for 4.4 080/101] l2tp: cleanup l2tp_tunnel_delete calls

2017-12-07 Thread alexander . levin
From: Jiri Slaby [ Upstream commit 4dc12ffeaeac939097a3f55c881d3dc3523dff0c ] l2tp_tunnel_delete does not return anything since commit 62b982eeb458 ("l2tp: fix race condition in l2tp_tunnel_delete"). But call sites of l2tp_tunnel_delete still do casts to void to avoid unused return value warnin

Re: [PATCH net-next v2 8/8] net: phy: meson-gxl: join the authors

2017-12-07 Thread Andrew Lunn
On Thu, Dec 07, 2017 at 03:27:15PM +0100, Jerome Brunet wrote: > Following previous changes, join the other authors of this driver and > take the blame with them :-) Reviewed-by: Andrew Lunn Andrew

[PATCH AUTOSEL for 3.18 02/59] net: bcmgenet: correct the RBUF_OVFL_CNT and RBUF_ERR_CNT MIB values

2017-12-07 Thread alexander . levin
From: Doug Berger [ Upstream commit 71328a3c321f7c14cc1edd33577717037744 ] The location of the RBUF overflow and error counters has moved between different version of the GENET MAC. This commit corrects the driver to read from the correct locations depending on the version of the GENET MAC.

[PATCH AUTOSEL for 3.18 01/59] usb: phy: isp1301: Add OF device ID table

2017-12-07 Thread alexander . levin
From: Javier Martinez Canillas [ Upstream commit fd567653bdb908009b650f079bfd4b63169e2ac4 ] The driver doesn't have a struct of_device_id table but supported devices are registered via Device Trees. This is working on the assumption that a I2C device registered via OF will always match a legacy

[PATCH AUTOSEL for 4.4 063/101] powerpc/ipic: Fix status get and status clear

2017-12-07 Thread alexander . levin
From: Christophe Leroy [ Upstream commit 6b148a7ce72a7f87c81cbcde48af014abc0516a9 ] IPIC Status is provided by register IPIC_SERSR and not by IPIC_SERMR which is the mask register. Signed-off-by: Christophe Leroy Signed-off-by: Michael Ellerman Signed-off-by: Sasha Levin --- arch/powerpc/sy

[PATCH AUTOSEL for 4.4 073/101] clk: imx6: refine hdmi_isfr's parent to make HDMI work on i.MX6 SoCs w/o VPU

2017-12-07 Thread alexander . levin
From: Sébastien Szymanski [ Upstream commit c68ee58d9ee7b856ac722f18f4f26579c8fbd2b4 ] On i.MX6 SoCs without VPU (in my case MCIMX6D4AVT10AC), the hdmi driver fails to probe: [2.540030] dwhdmi-imx 12.hdmi: Unsupported HDMI controller (:00:00) [2.548199] imx-drm display-subsystem

[PATCH AUTOSEL for 4.4 055/101] video: fbdev: au1200fb: Return an error code if a memory allocation fails

2017-12-07 Thread alexander . levin
From: Christophe JAILLET [ Upstream commit 8cae353e6b01ac3f18097f631cdbceb5ff28c7f3 ] 'ret' is known to be 0 at this point. In case of memory allocation error in 'framebuffer_alloc()', return -ENOMEM instead. Signed-off-by: Christophe JAILLET Cc: Tejun Heo Signed-off-by: Bartlomiej Zolnierkie

[PATCH AUTOSEL for 3.18 23/59] perf symbols: Fix symbols__fixup_end heuristic for corner cases

2017-12-07 Thread alexander . levin
From: Daniel Borkmann [ Upstream commit e7ede72a6d40cb3a30c087142d79381ca8a31dab ] The current symbols__fixup_end() heuristic for the last entry in the rb tree is suboptimal as it leads to not being able to recognize the symbol in the call graph in a couple of corner cases, for example: i) If

[PATCH AUTOSEL for 3.18 43/59] clk: tegra: Fix cclk_lp divisor register

2017-12-07 Thread alexander . levin
From: Michał Mirosław [ Upstream commit 54eff2264d3e9fd7e3987de1d7eba1d3581c631e ] According to comments in code and common sense, cclk_lp uses its own divisor, not cclk_g's. Fixes: b08e8c0ecc42 ("clk: tegra: add clock support for Tegra30") Signed-off-by: Michał Mirosław Acked-By: Peter De Sch

[PATCH AUTOSEL for 3.18 58/59] macvlan: Only deliver one copy of the frame to the macvlan interface

2017-12-07 Thread alexander . levin
From: Alexander Duyck [ Upstream commit dd6b9c2c332b40f142740d1b11fb77c653ff98ea ] This patch intoduces a slight adjustment for macvlan to address the fact that in source mode I was seeing two copies of any packet addressed to the macvlan interface being delivered where there should have been on

[PATCH AUTOSEL for 3.18 05/59] NFSD: fix nfsd_minorversion(.., NFSD_AVAIL)

2017-12-07 Thread alexander . levin
From: NeilBrown [ Upstream commit 928c6fb3a9bfd6c5b287aa3465226add551c13c0 ] Current code will return 1 if the version is supported, and -1 if it isn't. This is confusing and inconsistent with the one place where this is used. So change to return 1 if it is supported, and zero if not. i.e. an er

[PATCH AUTOSEL for 3.18 15/59] afs: Fix missing put_page()

2017-12-07 Thread alexander . levin
From: David Howells [ Upstream commit 29c8bbbd6e21daa0997d1c3ee886b897ee7ad652 ] In afs_writepages_region(), inside the loop where we find dirty pages to deal with, one of the if-statements is missing a put_page(). Signed-off-by: David Howells Signed-off-by: Sasha Levin --- fs/afs/write.c |

[PATCH AUTOSEL for 3.18 46/59] GFS2: Take inode off order_write list when setting jdata flag

2017-12-07 Thread alexander . levin
From: Bob Peterson [ Upstream commit cc555b09d8c3817aeebda43a14ab67049a5653f7 ] This patch fixes a deadlock caused when the jdata flag is set for inodes that are already on the ordered write list. Since it is on the ordered write list, log_flush calls gfs2_ordered_write which calls filemap_fdata

[PATCH AUTOSEL for 4.9 020/156] NFSD: fix nfsd_minorversion(.., NFSD_AVAIL)

2017-12-07 Thread alexander . levin
From: NeilBrown [ Upstream commit 928c6fb3a9bfd6c5b287aa3465226add551c13c0 ] Current code will return 1 if the version is supported, and -1 if it isn't. This is confusing and inconsistent with the one place where this is used. So change to return 1 if it is supported, and zero if not. i.e. an er

[PATCH AUTOSEL for 4.9 011/156] net: bcmgenet: reserved phy revisions must be checked first

2017-12-07 Thread alexander . levin
From: Doug Berger [ Upstream commit eca4bad73409aedc6ff22f823c18b67a4f08c851 ] The reserved gphy_rev value of 0x01ff must be tested before the old or new scheme for GPHY major versioning are tested, otherwise it will be treated as 0xff00 according to the old scheme. Fixes: b04a2f5b9ff5 ("net: b

[PATCH AUTOSEL for 4.14 122/135] IB/core: Fix endianness annotation in rdma_is_multicast_addr()

2017-12-07 Thread alexander . levin
From: Bart Van Assche [ Upstream commit 1c3aea2bc8f0b2e5b57375ead40457ff75a3a2ec ] Since ipv4_addr is a big endian 32-bit number, annotate it as such. Fixes: commit be1d325a3358 ("IB/core: Set RoCEv2 MGID according to spec") Signed-off-by: Bart Van Assche Reviewed-by: Leon Romanovsky Signed-o

[PATCH AUTOSEL for 4.14 135/135] x86/intel_rdt: Fix potential deadlock during resctrl unmount

2017-12-07 Thread alexander . levin
From: Reinette Chatre [ Upstream commit 36b6f9fcb8928c06b6638a4cf91bc9d69bb49aa2 ] Lockdep warns about a potential deadlock: [ 66.782842] == [ 66.782888] WARNING: possible circular locking dependency detected [ 66.782937] 4.14.0-rc2-test

[PATCH v4 03/15] dt-bindings: display: sun4i-drm: Add LVDS properties

2017-12-07 Thread Maxime Ripard
Some clocks and resets supposed to drive the LVDS logic in the display engine have been overlooked when the driver was first introduced. Add those additional resources to the binding, and we'll deal with the ABI stability in the code. Reviewed-by: Rob Herring Signed-off-by: Maxime Ripard --- D

[PATCH v4 09/15] drm/sun4i: Add A83T support

2017-12-07 Thread Maxime Ripard
Add support for the A83T display pipeline. Reviewed-by: Chen-Yu Tsai Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_drv.c | 1 + drivers/gpu/drm/sun4i/sun4i_tcon.c | 5 + drivers/gpu/drm/sun4i/sun8i_mixer.c | 11 +++ 3 files changed, 17 insertions(+) diff --git a

[PATCH v4 08/15] drm/sun4i: Add LVDS support

2017-12-07 Thread Maxime Ripard
The TCON supports the LVDS interface to output to a panel or a bridge. Let's add support for it. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/Makefile | 1 +- drivers/gpu/drm/sun4i/sun4i_lvds.c | 177 ++- drivers/gpu/drm/sun4i/sun4i_lvds.h | 18 ++- drivers/g

[PATCH v4 07/15] drm/sun4i: Create minimal multipliers and dividers

2017-12-07 Thread Maxime Ripard
The various outputs the TCON can provide have different constraints on the dotclock divider. Let's make them configurable by the various mode_set functions. Reviewed-by: Chen-Yu Tsai Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_dotclock.c | 10 +++--- drivers/gpu/drm/sun4i/s

Re: [PATCH] perf: qcom_l2_pmu: don't allow guest access

2017-12-07 Thread Will Deacon
On Thu, Dec 07, 2017 at 10:44:04AM -0500, Leeder, Neil wrote: > On 12/7/2017 8:38 AM, Will Deacon wrote: > > On Wed, Dec 06, 2017 at 04:19:24PM -0500, Leeder, Neil wrote: > >> On 12/6/2017 11:11 AM, Mark Rutland wrote: > >>> On Wed, Dec 06, 2017 at 10:55:33AM -0500, Neil Leeder wrote: > Guests

Re: [PATCH v11 0/6] Add support for Qualcomm A53 CPU clock

2017-12-07 Thread Georgi Djakov
Hi Amit, On 12/06/2017 07:51 AM, Amit Kucheria wrote: > On Tue, Dec 5, 2017 at 9:16 PM, Georgi Djakov > wrote: >> This patchset adds support for the A53 CPU clock on MSM8916 platforms >> and allows scaling of the CPU frequency on msm8916 based platforms. > > Though it currently needs some addit

[PATCH v4 06/15] drm/sun4i: Force the mixer rate at 150MHz

2017-12-07 Thread Maxime Ripard
It seems like the mixer can only run properly when clocked at 150MHz. In order to have something more robust than simply a fire-and-forget assigned-clocks-rate, let's put that in the code. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun8i_mixer.c | 9 + drivers/gpu/drm/sun4i/

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