Re: [PATCH v3] phy: renesas: rcar-gen3-usb2: fix imbalance powered flag

2019-06-13 Thread Simon Horman
On Mon, Jun 10, 2019 at 03:23:55PM +0900, Yoshihiro Shimoda wrote: > The powered flag should be set for any other phys anyway. Also > the flag should be locked by the channel. Otherwise, after we have > revised the device tree for the usb phy, the following warning > happened during a second system

Re: [PATCH] mm/vmalloc: Check absolute error return from vmap_[p4d|pud|pmd|pte]_range()

2019-06-13 Thread Roman Penyaev
On 2019-06-13 10:12, Anshuman Khandual wrote: vmap_pte_range() returns an -EBUSY when it encounters a non-empty PTE. But currently vmap_pmd_range() unifies both -EBUSY and -ENOMEM return code as -ENOMEM and send it up the call chain which is wrong. Interestingly enough vmap_page_range_noflush()

Re: [PATCH v5 00/10] Support using MSI interrupts in ntb_transport

2019-06-13 Thread Logan Gunthorpe
On 2019-06-13 7:30 a.m., Jon Mason wrote: > On Thu, May 23, 2019 at 04:30:50PM -0600, Logan Gunthorpe wrote: >> This is another resend as there has been no feedback since v4. >> Seems Jon has been MIA this past cycle so hopefully he appears on the >> list soon. >> >> I've addressed the feedback

Re: [PATCH] locking/static_key: always define static_branch_deferred_inc

2019-06-13 Thread Peter Zijlstra
On Wed, Jun 12, 2019 at 01:56:27PM -0700, Jakub Kicinski wrote: > On Wed, 12 Jun 2019 16:25:16 -0400, Willem de Bruijn wrote: > > On Wed, Jun 12, 2019 at 3:59 PM Jakub Kicinski > > wrote: > > > > > > On Wed, 12 Jun 2019 15:44:09 -0400, Willem de Bruijn wrote: > > > > From: Willem de Bruijn > >

[PATCH] usb: gadget: u_audio: Fixed variable declaration coding style issue

2019-06-13 Thread Jonas Stenvall
Fixed a coding style issue, replacing unsigned with unsigned int. Signed-off-by: Jonas Stenvall --- drivers/usb/gadget/function/u_audio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/function/u_audio.c b/drivers/usb/gadget/function/u_audio.c index f

Re: [PATCH v4 4/7] i2c: core: Make i2c_acpi_get_irq available to the rest of the I2C core

2019-06-13 Thread Benjamin Tissoires
On Thu, Jun 13, 2019 at 10:49 AM Charles Keepax wrote: > > On Wed, Jun 12, 2019 at 06:27:18PM +0300, Mika Westerberg wrote: > > On Tue, Jun 11, 2019 at 01:30:58PM +0100, Charles Keepax wrote: > > > In preparation for more refactoring make i2c_acpi_get_irq available > > > outside i2c-core-acpi.c. >

Re: [PATCH repost 0/5] Repost CAN and CANFD dt-bindings

2019-06-13 Thread Simon Horman
On Wed, Jun 12, 2019 at 09:49:08AM -0700, David Miller wrote: > From: Simon Horman > Date: Wed, 12 Jun 2019 14:20:20 +0200 > > > are you comfortable with me taking these patches > > through the renesas tree? Or perhaps should they be reposted > > to you for inclusion in net-next? > > > > They ha

Re: [PATCH] ALSA: hda: Add Elkhart Lake PCI ID

2019-06-13 Thread Takashi Iwai
On Thu, 13 Jun 2019 18:21:39 +0200, Lai, Poey Seng wrote: > > Add HD Audio Device PCI ID for the Intel Elkhart Lake > platform. > > Signed-off-by: Lai, Poey Seng Thanks, applied now. Takashi

Re: Regression for MS_MOVE on kernel v5.1

2019-06-13 Thread David Howells
[Adding Eric to the cc list since he implemented MNT_LOCKED] Linus Torvalds wrote: > > The commit changes the internal logic to lock mounts when propagating > > mounts (user+)mount namespaces and - I believe - causes do_mount_move() > > to fail at: > > You mean 'do_move_mount()'. > > > if (old

linux-next: Tree for Jun 13

2019-06-13 Thread Stephen Rothwell
Hi all, Changes since 20190612: Removed tree: risc-v-pjw (by maintainer's request) The net-next tree lost its build failure. The tty tree gained a build failure so I sued the verison from next-20190612. The char-misc tree gained a conflict against the driver-core tree. The akpm tree lost 3 pa

Re: [PATCH v3 1/8] i2c: i2c-qcom-geni: Provide support for ACPI

2019-06-13 Thread Wolfram Sang
> I contacted both of them. > > Andy doesn't touch anything that isn't QUP based (8994 and older). > > David doesn't deal with MSM platforms if Andy is available. That's good to know, thanks! > So I guess the decision is yours. Seeing at this patch is pretty > trivial and has our ACPI expe

Re: msm8996: qcom-qmp: apq8096-db820c fails to boot, reset back to fastboot and locks up

2019-06-13 Thread Marc Gonzalez
On 10/06/2019 15:44, Paolo Pisati wrote: > From time to time, my apq8096-db820c fails to boot to userspace, reset back to > fastboot and locks up: to easily reproduce the issue, i'm boot looping using a > cron job with a 1 min reboot entry on the board while leaving a "while 1; do > fastboot boot

Re: [PATCH v4 4/5] interconnect: qcom: Add QCS404 interconnect provider driver

2019-06-13 Thread Bjorn Andersson
On Thu 13 Jun 08:13 PDT 2019, Georgi Djakov wrote: > From: Bjorn Andersson > > Add driver for the interconnect buses found in Qualcomm QCS404-based > platforms. The topology consists of three NoCs that are controlled by > a remote processor. This remote processor collects the aggregated > bandwi

Re: [PATCH v3 2/3] x86: Use static_cpu_has in uaccess region to avoid instrumentation

2019-06-13 Thread Peter Zijlstra
On Fri, May 31, 2019 at 05:08:30PM +0200, Marco Elver wrote: > This patch is a pre-requisite for enabling KASAN bitops instrumentation; > using static_cpu_has instead of boot_cpu_has avoids instrumentation of > test_bit inside the uaccess region. With instrumentation, the KASAN > check would otherw

Re: [PATCH+DISCUSSION] irqchip: armada-370-xp: Remove redundant ops assignment

2019-06-13 Thread Marc Zyngier
Hi Ben, On Wed, 12 Jun 2019 06:16:05 +0100, Benjamin Herrenschmidt wrote: > > pci_msi_create_irq_domain -> pci_msi_domain_update_chip_ops will > set those two already since the driver sets MSI_FLAG_USE_DEF_CHIP_OPS > > Signed-off-by: Benjamin Herrenschmidt > --- > > [UNTESTED] > > Just somet

Re: [PATCH][next] staging: media: meson: remove redundant initialization of mpeg12

2019-06-13 Thread Maxime Jourdan
Hi Colin, On Wed, Jun 12, 2019 at 4:42 PM Colin King wrote: > > From: Colin Ian King > > The pointer mpeg12 is being initialized however that value is never > read and mpeg12 is being re-assigned almost immediately afterwards. > Remove the redundant initialization. > > Addresses-Coverity: ("Unuse

Re: [PATCH v4 1/2] arm64: Define Documentation/arm64/tagged-address-abi.txt

2019-06-13 Thread Catalin Marinas
Hi Szabolcs, On Wed, Jun 12, 2019 at 05:30:34PM +0100, Szabolcs Nagy wrote: > On 12/06/2019 15:21, Vincenzo Frascino wrote: > > +2. ARM64 Tagged Address ABI > > +--- > > + > > +From the kernel syscall interface prospective, we define, for the purposes >

Re: [PATCH] bpf: selftests: Fix warning in flow_dissector

2019-06-13 Thread Arthur Fabre
Ah yes good catch. I guess it hasn't made it into bpf-next yet. On Thu, Jun 13, 2019 at 4:41 PM Stanislav Fomichev wrote: > > On 06/13, Arthur Fabre wrote: > > Building the userspace part of the flow_dissector resulted in: > > > > prog_tests/flow_dissector.c: In function ‘tx_tap’: > > prog_tests/

[PATCH net-next 07/12] net: hns3: clear restting state when initializing HW device

2019-06-13 Thread Huazhong Tan
From: Peng Li IMP will set restting state for all function when PF FLR, driver just clear the restting state in resetting progress, but don't do it in initializing progress. As FLR is not created by driver, it is necessary to clear restting state when initializing HW device. Signed-off-by: Peng

[PATCH net-next 03/12] net: hns3: process H/W errors occurred before HNS dev initialization

2019-06-13 Thread Huazhong Tan
From: Shiju Jose Presently the HNS driver enables the HNS H/W error interrupts after the dev initialization is completed. However some exceptions such as NCSI errors can occur when the network port driver is not loaded and those errors required reporting to the BMC. Therefore the firmware enabled

[PATCH net-next 12/12] net: hns3: some variable modification

2019-06-13 Thread Huazhong Tan
From: Weihang Li This patch does following things: 1. add the keyword const before some variables which won't be modified in functions. 2. changes some variables from signed to unsigned to avoid bitwise operation on signed variables. 3. adds or removes initialization of some variables. 4. d

[PATCH net-next 08/12] net: hns3: free irq when exit from abnormal branch

2019-06-13 Thread Huazhong Tan
From: Yonglong Liu In hns3_nic_init_irq(), if request irq fail at index i, the function return directly without releasing irq resources that already requested, and nowhere else will release them. Signed-off-by: Yonglong Liu Signed-off-by: Peng Li Signed-off-by: Huazhong Tan --- drivers/net/e

Re: linux-next: Tree for Jun 12 (staging/media/meson/)

2019-06-13 Thread Maxime Jourdan
Hi Randy, On Wed, Jun 12, 2019 at 11:50 PM Randy Dunlap wrote: > > On 6/12/19 12:00 AM, Stephen Rothwell wrote: > > Hi all, > > > > Changes since 20190611: > > > > > on i386: > > ../drivers/staging/media/meson/vdec/vdec.c: In function ‘vdec_recycle_thread’: > ../drivers/staging/media/meson/vdec/vd

[PATCH net-next 11/12] net: hns3: delay ring buffer clearing during reset

2019-06-13 Thread Huazhong Tan
From: Yunsheng Lin The driver may not be able to disable the ring through firmware when downing the netdev during reset process, which may cause hardware accessing freed buffer problem. This patch delays the ring buffer clearing to reset uninit process because hardware will not access the ring b

Re: [PATCH] io_uring: fix SQPOLL cpu check

2019-06-13 Thread Greg Kroah-Hartman
On Thu, Jun 13, 2019 at 02:54:45AM -0600, Jens Axboe wrote: > On 6/12/19 3:47 AM, Stephen Bates wrote: > >> Aargh. My original patch [1] handled that correctly, and this case was > >> explicitly called out in the commit message, which was retained even > >> when the patch was "simplified". That's

Re: [PATCH] io_uring: fix SQPOLL cpu check

2019-06-13 Thread Jens Axboe
On 6/13/19 3:14 AM, Greg Kroah-Hartman wrote: > On Thu, Jun 13, 2019 at 02:54:45AM -0600, Jens Axboe wrote: >> On 6/12/19 3:47 AM, Stephen Bates wrote: Aargh. My original patch [1] handled that correctly, and this case was explicitly called out in the commit message, which was retained e

[PATCH net-next 04/12] net: hns3: add recovery for the H/W errors occurred before the HNS dev initialization

2019-06-13 Thread Huazhong Tan
From: Shiju Jose This patch adds the recovery for the HNS H/W errors which occurred before the driver initialization. Reported-by: Salil Mehta Signed-off-by: Shiju Jose Signed-off-by: Peng Li Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 16 ++

[PATCH net-next 09/12] net: hns3: fix for dereferencing before null checking

2019-06-13 Thread Huazhong Tan
From: Yunsheng Lin The netdev is dereferenced before null checking in the function hns3_setup_tc. This patch moves the dereferencing after the null checking. Fixes: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC") Signed-off-by: Yunsheng Lin Signed-off-by: Peng L

[PATCH net-next 06/12] net: hns3: extract handling of mpf/pf msi-x errors into functions

2019-06-13 Thread Huazhong Tan
From: Weihang Li Function hclge_handle_all_hw_msix_error() contains four parts: 1. Query buffer descriptors for MSI-X errors. 2. Query and clear all main PF MSI-X errors. 3. Query and clear all PF MSI-X errors. 4. Handle mac tunnel interrupts. Part 2 and part 3 handle errors of some different mod

[PATCH net-next 10/12] net: hns3: fix for skb leak when doing selftest

2019-06-13 Thread Huazhong Tan
From: Yunsheng Lin If hns3_nic_net_xmit does not return NETDEV_TX_BUSY when doing a loopback selftest, the skb is not freed in hns3_clean_tx_ring or hns3_nic_net_xmit, which causes skb not freed problem. This patch fixes it by freeing skb when hns3_nic_net_xmit does not return NETDEV_TX_OK. Fix

[PATCH net-next 05/12] net: hns3: some changes of MSI-X bits in PPU(RCB)

2019-06-13 Thread Huazhong Tan
From: Weihang Li This patch modifies print message of rx_q_search_miss from error to dfx to prevent misleading users, because this interrupt may occur if we receive packets during initialization of HNS3 driver. Otherwise, this patch masks 28th bit of PPU_MPF_ABNORMAL_SRC2 which is now meaningless

[PATCH net-next 01/12] net: hns3: delay setting of reset level for hw errors until slot_reset is called

2019-06-13 Thread Huazhong Tan
From: Shiju Jose Presently the error handling code sets the reset level required for the recovery of the hw errors to the reset framework in the error_detected AER callback. However the rest_event would be called later from the slot_reset callback. This can cause issue of using the wrong reset_le

[PATCH net-next 00/12] net: hns3: some code optimizations & cleanups & bugfixes

2019-06-13 Thread Huazhong Tan
This patch-set includes code optimizations, cleanups and bugfixes for the HNS3 ethernet controller driver. [patch 1/12 - 6/12] adds some code optimizations and bugfixes about RAS and MSI-X HW error. [patch 7/12] fixes a loading issue. [patch 8/12 - 11/12] adds some bugfixes. [patch 12/12] adds

Re: [PATCH v3] kasan: add memory corruption identification for software tag-based mode

2019-06-13 Thread Andrey Ryabinin
On 6/13/19 4:05 PM, Dmitry Vyukov wrote: > On Thu, Jun 13, 2019 at 2:27 PM Andrey Ryabinin > wrote: >> On 6/13/19 11:13 AM, Walter Wu wrote: >>> This patch adds memory corruption identification at bug report for >>> software tag-based mode, the report show whether it is "use-after-free" >>> or

[PATCH net-next 02/12] net: hns3: fix avoid unnecessary resetting for the H/W errors which do not require reset

2019-06-13 Thread Huazhong Tan
From: Shiju Jose HNS does not need to be reset when errors occur in some bits. However presently the HNAE3_FUNC_RESET is set in this case and as a result the default_reset is done when these errors are reported. This patch fix this issue. Also patch does some optimization in setting the reset lev

Re: [PATCH 4.14 61/81] ALSA: seq: Protect in-kernel ioctl calls with mutex

2019-06-13 Thread Takashi Iwai
On Thu, 13 Jun 2019 11:11:22 +0200, Greg Kroah-Hartman wrote: > > On Thu, Jun 13, 2019 at 11:02:54AM +0200, Takashi Iwai wrote: > > On Thu, 13 Jun 2019 10:33:44 +0200, > > Greg Kroah-Hartman wrote: > > > > > > [ Upstream commit feb689025fbb6f0aa6297d3ddf97de945ea4ad32 ] > > > > > > ALSA OSS sequ

[PATCH v2 10/10] powerpc/8xx: Add microcode patch to move SMC parameter RAM.

2019-06-13 Thread Christophe Leroy
Some SCC functions like the QMC requires an extended parameter RAM. On modern 8xx (ie 866 and 885), SPI area can already be relocated, allowing the use of those functions on SCC2. But SCC3 and SCC4 parameter RAM collide with SMC1 and SMC2 parameter RAMs. This patch adds microcode to allow the relo

[PATCH v2 08/10] powerpc/8xx: replace #ifdefs by IS_ENABLED() in microcode.c

2019-06-13 Thread Christophe Leroy
Reduce #ifdef mess by using IS_ENABLED() instead. Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/8xx/micropatch.c | 33 + 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/arch/powerpc/platforms/8xx/micropatch.c b/arch/powerpc/platforms/

[PATCH v2 09/10] powerpc/8xx: Use IO accessors in microcode programming.

2019-06-13 Thread Christophe Leroy
Change microcode functions to use IO accessors and get rid of volatile attributes. Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/8xx/micropatch.c | 34 - 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/arch/powerpc/platforms/8xx/microp

[PATCH v2 07/10] powerpc/8xx: refactor programming of microcode CPM params.

2019-06-13 Thread Christophe Leroy
The CPM registers RCCR and CPMCR1..4 registers has to be set in accordance with the microcode patch beeing programmed. Lets define them as part of the patch set and refactor their programming from that definition. Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/8xx/micropatch.c | 45 +

[PATCH v2 06/10] powerpc/8xx: refactor printing of microcode patch name.

2019-06-13 Thread Christophe Leroy
Define patch name together with the patch code, and refactor the associated printk() while replacing it by a pr_info() Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/8xx/micropatch.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/platf

[PATCH v2 05/10] powerpc/8xx: Refactor microcode write

2019-06-13 Thread Christophe Leroy
Add empty microcode tables so that all tables are defined all the time. Regroup the writing of the 3 tables regardless of the selected microcode. Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/8xx/micropatch.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) dif

[PATCH v2 03/10] powerpc/8xx: compact microcode arrays

2019-06-13 Thread Christophe Leroy
Compact obscure microcode arrays by putting 4 values per line in order to reduce number of lines in the file to increase readability. Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/8xx/micropatch.c | 699 +++- 1 file changed, 140 insertions(+), 559 deletio

[PATCH v2 04/10] powerpc/8xx: refactor writing of CPM microcode arrays

2019-06-13 Thread Christophe Leroy
Create a function to refactor the writing of CPM microcode arrays. Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/8xx/micropatch.c | 35 - 1 file changed, 13 insertions(+), 22 deletions(-) diff --git a/arch/powerpc/platforms/8xx/micropatch.c b/arch/p

[PATCH v2 02/10] powerpc/8xx: drop verify_patch()

2019-06-13 Thread Christophe Leroy
verify_patch() has been opted out since many years, and the comment suggests it doesn't work. So drop it. Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/8xx/micropatch.c | 40 - 1 file changed, 40 deletions(-) diff --git a/arch/powerpc/platforms/8xx/m

[PATCH 2/2] powerpc/8xx: Add microcode patch to move SMC parameter RAM.

2019-06-13 Thread Christophe Leroy
Some SCC functions like the QMC requires an extended parameter RAM. On modern 8xx (ie 866 and 885), SPI area can already be relocated, allowing the use of those functions on SCC2. But SCC3 and SCC4 parameter RAM collide with SMC1 and SMC2 parameter RAMs. This patch adds microcode to allow the relo

[PATCH v2 01/10] powerpc/8xx: move CPM1 related files from sysdev/ to platforms/8xx

2019-06-13 Thread Christophe Leroy
Only 8xx selects CPM1 and related CONFIG options are already in platforms/8xx/Kconfig Move the related C files to platforms/8xx/. Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/8xx/Makefile | 3 +++ arch/powerpc/{sysdev => platforms/8xx}/cpm1.c | 0 arch/powerp

Re: [PATCH 4.14 61/81] ALSA: seq: Protect in-kernel ioctl calls with mutex

2019-06-13 Thread Greg Kroah-Hartman
On Thu, Jun 13, 2019 at 11:02:54AM +0200, Takashi Iwai wrote: > On Thu, 13 Jun 2019 10:33:44 +0200, > Greg Kroah-Hartman wrote: > > > > [ Upstream commit feb689025fbb6f0aa6297d3ddf97de945ea4ad32 ] > > > > ALSA OSS sequencer calls the ioctl function indirectly via > > snd_seq_kernel_client_ctl().

[PATCH v3 2/2] arm64: tegra: enable ACONNECT, ADMA and AGIC

2019-06-13 Thread Sameer Pujar
Enable ACONNECT, ADMA and AGIC devices for following platforms * Jetson TX2 * Jetson Xavier Verified driver probe path and devices get registered fine. Signed-off-by: Sameer Pujar Acked-by: Jon Hunter --- changes in current revision - None arch/arm64/boot/dts/nvidia/tegra186-p2771-.d

[PATCH 1/2] powerpc/8xx: move CPM1 related files from sysdev/ to platforms/8xx

2019-06-13 Thread Christophe Leroy
Only 8xx selects CPM1 and related CONFIG options are already in platforms/8xx/Kconfig This patch moves the related C files to platforms/8xx/. Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/8xx/Makefile | 3 +++ arch/powerpc/{sysdev => platforms/8xx}/cpm1.c | 0

[PATCH v3 1/2] arm64: tegra: add ACONNECT, ADMA and AGIC nodes

2019-06-13 Thread Sameer Pujar
Add DT nodes for following devices on Tegra186 and Tegra194 * ACONNECT * ADMA * AGIC Signed-off-by: Sameer Pujar --- changes in current revision * use single address range for all APE modules * fix address range for agic arch/arm64/boot/dts/nvidia/tegra186.dtsi | 67

Re: [PATCH] phy: qcom-qmp: Correct READY_STATUS poll break condition

2019-06-13 Thread Marc Gonzalez
On 12/06/2019 19:25, Bjorn Andersson wrote: > On Wed 12 Jun 09:24 PDT 2019, Marc Gonzalez wrote: > >> On 05/06/2019 01:24, Bjorn Andersson wrote: >> >>> After issuing a PHY_START request to the QMP, the hardware documentation >>> states that the software should wait for the PCS_READY_STATUS to be

[PATCH v5 1/2] arm64: Define Documentation/arm64/tagged-address-abi.txt

2019-06-13 Thread Vincenzo Frascino
On arm64 the TCR_EL1.TBI0 bit has been always enabled hence the userspace (EL0) is allowed to set a non-zero value in the top byte but the resulting pointers are not allowed at the user-kernel syscall ABI boundary. With the relaxed ABI proposed through this document, it is now possible to pass tag

[PATCH v5 2/2] arm64: Relax Documentation/arm64/tagged-pointers.txt

2019-06-13 Thread Vincenzo Frascino
On arm64 the TCR_EL1.TBI0 bit has been always enabled hence the userspace (EL0) is allowed to set a non-zero value in the top byte but the resulting pointers are not allowed at the user-kernel syscall ABI boundary. With the relaxed ABI proposed in this set, it is now possible to pass tagged pointe

Re: memory leak in vhost_net_ioctl

2019-06-13 Thread Jason Wang
On 2019/6/6 下午10:40, Hillf Danton wrote: On Wed, 05 Jun 2019 16:42:05 -0700 (PDT) syzbot wrote: Hello, syzbot found the following crash on: HEAD commit:    788a0249 Merge tag 'arc-5.2-rc4' of git://git.kernel.org/p.. git tree:   upstream console output: https://syzkaller.appspot.com/x

Re: [PATCH v1 5/6] ASoC: Define a set of DAPM pre/post-up events

2019-06-13 Thread Marcel Ziswiler
On Tue, 2019-05-21 at 13:36 +0300, Oleksandr Suvorov wrote: > Prepare to use SND_SOC_DAPM_PRE_POST_PMU definition to > reduce coming code size and make it more readable. > > Signed-off-by: Oleksandr Suvorov Reviewed-by: Marcel Ziswiler > --- > > include/sound/soc-dapm.h | 2 ++ > 1 file chan

Re: [PATCH v2 1/3] fs/fuse, splice_write: Don't access pipe->buffers without pipe_lock()

2019-06-13 Thread Andrey Ryabinin
On 6/12/19 11:57 AM, Vlastimil Babka wrote: > On 7/17/18 6:00 PM, Andrey Ryabinin wrote: >> fuse_dev_splice_write() reads pipe->buffers to determine the size of >> 'bufs' array before taking the pipe_lock(). This is not safe as >> another thread might change the 'pipe->buffers' between the alloc

Re: [PATCH v2 2/2] drm/komeda: Adds komeda_kms_drop_master

2019-06-13 Thread Daniel Vetter
On Thu, Jun 13, 2019 at 09:28:13AM +0100, Liviu Dudau wrote: > On Thu, Jun 13, 2019 at 10:17:27AM +0200, Daniel Vetter wrote: > > On Wed, Jun 12, 2019 at 02:26:24AM +, james qian wang (Arm Technology > > China) wrote: > > > On Tue, Jun 11, 2019 at 02:30:38PM +0200, Daniel Vetter wrote: > > > >

Re: [PATCH v1 6/6] ASoC: sgtl5000: Improve VAG power and mute control

2019-06-13 Thread Marcel Ziswiler
On Tue, 2019-05-21 at 13:36 +0300, Oleksandr Suvorov wrote: > Change VAG power on/off control according to the following algorithm: > - turn VAG power ON on the 1st incoming event. > - keep it ON if there is any active VAG consumer (ADC/DAC/HP/Line- > In). > - turn VAG power OFF when there is the l

Re: [PATCH v1 4/6] ASoC: sgtl5000: Fix charge pump source assignment

2019-06-13 Thread Marcel Ziswiler
On Tue, 2019-05-21 at 13:36 +0300, Oleksandr Suvorov wrote: > If VDDA != VDDIO and any of them is greater than 3.1V, charge pump > source can be assigned automatically. > > Signed-off-by: Oleksandr Suvorov Reviewed-by: Marcel Ziswiler > --- > > sound/soc/codecs/sgtl5000.c | 14 +-

Re: [PATCH v1 2/6] ASoC: sgtl5000: add ADC mute control

2019-06-13 Thread Marcel Ziswiler
On Tue, 2019-05-21 at 13:36 +0300, Oleksandr Suvorov wrote: > This control mute/unmute the ADC input of SGTL5000 > using its CHIP_ANA_CTRL register. > > Signed-off-by: Oleksandr Suvorov Reviewed-by: Marcel Ziswiler > --- > > sound/soc/codecs/sgtl5000.c | 1 + > 1 file changed, 1 insertion(+)

Re: [PATCH v1 1/6] ASoC: sgtl5000: Fix definition of VAG Ramp Control

2019-06-13 Thread Marcel Ziswiler
On Tue, 2019-05-21 at 13:36 +0300, Oleksandr Suvorov wrote: > SGTL5000_SMALL_POP is a bit mask, not a value. Usage of > correct definition makes device probing code more clear. > > Signed-off-by: Oleksandr Suvorov Reviewed-by: Marcel Ziswiler > --- > > sound/soc/codecs/sgtl5000.c | 2 +- > s

Re: [PATCH v1 3/6] ASoC: sgtl5000: Fix of unmute outputs on probe

2019-06-13 Thread Marcel Ziswiler
On Tue, 2019-05-21 at 13:36 +0300, Oleksandr Suvorov wrote: > To enable "zero cross detect" for ADC/HP, change > HP_ZCD_EN/ADC_ZCD_EN bits only instead of writing the whole > CHIP_ANA_CTRL register. > > Signed-off-by: Oleksandr Suvorov Reviewed-by: Marcel Ziswiler > --- > > sound/soc/codecs/

Re: [PATCH] vfs: fsmount: add missing mntget()

2019-06-13 Thread Mark Rutland
On Wed, Jun 12, 2019 at 11:43:13AM -0700, Eric Biggers wrote: > From: Eric Biggers > > sys_fsmount() needs to take a reference to the new mount when adding it > to the anonymous mount namespace. Otherwise the filesystem can be > unmounted while it's still in use, as found by syzkaller. > > Repo

Re: [PATCH 4.14 61/81] ALSA: seq: Protect in-kernel ioctl calls with mutex

2019-06-13 Thread Takashi Iwai
On Thu, 13 Jun 2019 10:33:44 +0200, Greg Kroah-Hartman wrote: > > [ Upstream commit feb689025fbb6f0aa6297d3ddf97de945ea4ad32 ] > > ALSA OSS sequencer calls the ioctl function indirectly via > snd_seq_kernel_client_ctl(). While we already applied the protection > against races between the normal

Re: 5.2-rc2: low framerate in flightgear, cpu not running at full speed, thermal related?

2019-06-13 Thread Rafael J. Wysocki
On Thu, Jun 13, 2019 at 10:12 AM Pavel Machek wrote: > > Hi! > > > On 2019.06.12 14:25 Rafael J. Wysocki wrote: > > > On Wed, Jun 12, 2019 at 4:45 AM Doug Smythies wrote: > > >> > > >> So, currently there seems to be 3 issues in this thread > > >> (and I am guessing a little, without definitive d

Re: msm8996: qcom-qmp: apq8096-db820c fails to boot, reset back to fastboot and locks up

2019-06-13 Thread Paolo Pisati
On Wed, Jun 12, 2019 at 06:20:48PM +0200, Niklas Cassel wrote: > > Can you still reproduce the reboot? --- a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi +++ b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi @@ -447,12 +447,12 @@ }; pcie@608000 { -

Re: [PATCH 3/4] vsock/virtio: fix flush of works during the .remove()

2019-06-13 Thread Jason Wang
On 2019/6/6 下午4:11, Stefano Garzarella wrote: On Fri, May 31, 2019 at 05:56:39PM +0800, Jason Wang wrote: On 2019/5/31 下午4:18, Stefano Garzarella wrote: On Thu, May 30, 2019 at 07:59:14PM +0800, Jason Wang wrote: On 2019/5/30 下午6:10, Stefano Garzarella wrote: On Thu, May 30, 2019 at 05:46:1

Re: [PATCH -next] efi/tpm: fix a compilation warning

2019-06-13 Thread Arnd Bergmann
On Tue, Jun 11, 2019 at 3:59 PM Qian Cai wrote: > > The linux-next "tpm: Reserve the TPM final events table" [1] introduced > a compilation warning, > > drivers/firmware/efi/tpm.c: In function 'efi_tpm_eventlog_init': > drivers/firmware/efi/tpm.c:80:10: warning: passing argument 1 of > 'tpm2_calc_

[PATCH 4/4] media: zd1301_demod: don't check retval after our own assignemt

2019-06-13 Thread Wolfram Sang
No need to check a retval after we assigned a constant to it. Signed-off-by: Wolfram Sang --- drivers/media/dvb-frontends/zd1301_demod.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/media/dvb-frontends/zd1301_demod.c b/drivers/media/dvb-frontends/zd1301_demod.c

[PATCH 5.1 069/155] watchdog: fix compile time error of pretimeout governors

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit a223770bfa7b6647f3a70983257bd89f9cafce46 ] CONFIG_WATCHDOG_PRETIMEOUT_GOV build symbol adds watchdog_pretimeout.o object to watchdog.o, the latter is compiled only if CONFIG_WATCHDOG_CORE is selected, so it rightfully makes sense to add it as a dependency. The change fixes the n

Re: Re: [PATCH v6 2/5] HID: quirks: Refactor ELAN 400 and 401 handling

2019-06-13 Thread Benjamin Tissoires
On Thu, Jun 13, 2019 at 12:20 AM Jeffrey Hugo wrote: > > On 6/12/2019 3:46 PM, Dmitry Torokhov wrote: > > On Wed, Jun 12, 2019 at 02:27:21PM -0700, Jeffrey Hugo wrote: > >> There needs to be coordination between hid-quirks and the elan_i2c driver > >> about which devices are handled by what driver

[PATCH 0/4] media: don't check retval after our own assignment

2019-06-13 Thread Wolfram Sang
Interesting how many cleanups I find until I can start the refactorization I really want :) This series fixes a set of unneeded if checks following the assignment of an errno constant. Only build tested due to no HW. Wolfram Sang (4): media: cxd2820r_core: don't check retval after our own assig

[PATCH 2/4] media: mn88472: don't check retval after our own assignemt

2019-06-13 Thread Wolfram Sang
No need to check a retval after we assigned a constant to it. Signed-off-by: Wolfram Sang --- drivers/media/dvb-frontends/mn88472.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/media/dvb-frontends/mn88472.c b/drivers/media/dvb-frontends/mn88472.c index 731b4

[PATCH 4.19 054/118] watchdog: fix compile time error of pretimeout governors

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit a223770bfa7b6647f3a70983257bd89f9cafce46 ] CONFIG_WATCHDOG_PRETIMEOUT_GOV build symbol adds watchdog_pretimeout.o object to watchdog.o, the latter is compiled only if CONFIG_WATCHDOG_CORE is selected, so it rightfully makes sense to add it as a dependency. The change fixes the n

[PATCH 5.1 008/155] drm/msm: correct attempted NULL pointer dereference in debugfs

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 90f94660e53189755676543954101de78c26253b ] msm_gem_describe() would attempt to dereference a NULL pointer via the address space pointer when no IOMMU is present. Correct this by adding the appropriate check. Signed-off-by: Brian Masney Fixes: 575f0485508b ("drm/msm: Clean up an

[PATCH 4.14 36/81] watchdog: fix compile time error of pretimeout governors

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit a223770bfa7b6647f3a70983257bd89f9cafce46 ] CONFIG_WATCHDOG_PRETIMEOUT_GOV build symbol adds watchdog_pretimeout.o object to watchdog.o, the latter is compiled only if CONFIG_WATCHDOG_CORE is selected, so it rightfully makes sense to add it as a dependency. The change fixes the n

Re: [PATCH 1/2] arm64/mm: check cpu cache line size with non-coherent device

2019-06-13 Thread Catalin Marinas
On Tue, Jun 11, 2019 at 06:02:47PM -0400, Masayoshi Mizuma wrote: > On Tue, Jun 11, 2019 at 07:00:07PM +0100, Catalin Marinas wrote: > > On Tue, Jun 11, 2019 at 11:17:30AM -0400, Masayoshi Mizuma wrote: > > > --- a/arch/arm64/mm/dma-mapping.c > > > +++ b/arch/arm64/mm/dma-mapping.c > > > @@ -91,10

[PATCH 3/4] media: mn88473: don't check retval after our own assignemt

2019-06-13 Thread Wolfram Sang
No need to check a retval after we assigned a constant to it. Signed-off-by: Wolfram Sang --- drivers/media/dvb-frontends/mn88473.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/media/dvb-frontends/mn88473.c b/drivers/media/dvb-frontends/mn88473.c index 08118

[PATCH 5.1 148/155] soc: renesas: Identify R-Car M3-W ES1.3

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 15160f6de0bba712fcea078c5ac7571fe33fcd5d ] The Product Register of R-Car M3-W ES1.3 incorrectly identifies the SoC revision as ES2.1. Add a workaround to fix this. Signed-off-by: Takeshi Kihara Signed-off-by: Geert Uytterhoeven Signed-off-by: Simon Horman Signed-off-by: Sasha

Re: [RFC V2 00/16] objtool: Add support for Arm64

2019-06-13 Thread Raphael Gault
Hi Josh, On 5/28/19 11:24 PM, Josh Poimboeuf wrote: On Tue, May 21, 2019 at 12:50:57PM +, Raphael Gault wrote: Hi Josh, Thanks for offering your help and sorry for the late answer. My understanding is that a table of offsets is built by GCC, those offsets being scaled by 4 before adding t

Re: [PATCH v3 1/8] i2c: i2c-qcom-geni: Provide support for ACPI

2019-06-13 Thread Lee Jones
On Wed, 12 Jun 2019, Wolfram Sang wrote: > > > There are no cross-subsystem build dependencies on any of these > > patches. The only reason they are bundled together in the same > > patch-set is for cross-subsystem visibility and understanding. > > > > There is wide interest in these devices. >

[PATCH 1/4] media: cxd2820r: don't check retval after our own assignemt

2019-06-13 Thread Wolfram Sang
No need to check a retval after we assigned a constant to it. Signed-off-by: Wolfram Sang --- drivers/media/dvb-frontends/cxd2820r_core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/media/dvb-frontends/cxd2820r_core.c b/drivers/media/dvb-frontends/cxd2820r_core

[PATCH 5.1 153/155] Revert "drm/nouveau: add kconfig option to turn off nouveau legacy contexts. (v3)"

2019-06-13 Thread Greg Kroah-Hartman
From: Greg Kroah-Hartman This reverts commit 1e07d637497788971018d9e9e5a184940b1ade0f which is commit b30a43ac7132cdda833ac4b13dd1ebd35ace14b7 upstream. Sven reports: Commit 1e07d63749 ("drm/nouveau: add kconfig option to turn off nouveau legacy contexts. (v3)") has caused a buil

Re: 5.2-rc2: low framerate in flightgear, cpu not running at full speed, thermal related?

2019-06-13 Thread Rafael J. Wysocki
On Thu, Jun 13, 2019 at 1:40 AM Doug Smythies wrote: > > On 2019.06.12 14:25 Rafael J. Wysocki wrote: > > On Wed, Jun 12, 2019 at 4:45 AM Doug Smythies wrote: > >> > >> So, currently there seems to be 3 issues in this thread > >> (and I am guessing a little, without definitive data): > >> > >> 1.

Re: [PATCH v3 1/8] i2c: i2c-qcom-geni: Provide support for ACPI

2019-06-13 Thread Lee Jones
On Thu, 13 Jun 2019, Lee Jones wrote: > On Wed, 12 Jun 2019, Wolfram Sang wrote: > > > > > > There are no cross-subsystem build dependencies on any of these > > > patches. The only reason they are bundled together in the same > > > patch-set is for cross-subsystem visibility and understanding.

[PATCH 5.1 155/155] ovl: support stacked SEEK_HOLE/SEEK_DATA

2019-06-13 Thread Greg Kroah-Hartman
From: Amir Goldstein commit 9e46b840c7053b5f7a245e98cd239b60d189a96c upstream. Overlay file f_pos is the master copy that is preserved through copy up and modified on read/write, but only real fs knows how to SEEK_HOLE/SEEK_DATA and real fs may impose limitations that are more strict than ->s_ma

[PATCH 5.1 152/155] Revert "Bluetooth: Align minimum encryption key size for LE and BR/EDR connections"

2019-06-13 Thread Greg Kroah-Hartman
From: Greg Kroah-Hartman This reverts commit 07e38998a19d72b916c39a983c19134522ae806b which is commit d5bb334a8e171b262e48f378bd2096c0ea458265 upstream. Lots of people have reported issues with this patch, and as there does not seem to be a fix going into Linus's kernel tree any time soon, rever

[PATCH 5.1 154/155] ovl: check the capability before cred overridden

2019-06-13 Thread Greg Kroah-Hartman
From: Jiufei Xue commit 98487de318a6f33312471ae1e2afa16fbf8361fe upstream. We found that it return success when we set IMMUTABLE_FL flag to a file in docker even though the docker didn't have the capability CAP_LINUX_IMMUTABLE. The commit d1d04ef8572b ("ovl: stack file ops") and dab5ca8fd9dd ("

[PATCH 5.1 150/155] gpio: vf610: Do not share irq_chip

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 338aa10750ba24d04beeaf5dc5efc032e5cf343f ] Fix the warning produced by gpiochip_set_irq_hooks() by allocating a dedicated IRQ chip per GPIO chip/port. Signed-off-by: Andrey Smirnov Cc: Linus Walleij Cc: Bartosz Golaszewski Cc: Chris Healy Cc: Andrew Lunn Cc: Heiner Kallweit

[PATCH 5.1 149/155] ARM: shmobile: porter: enable R-Car Gen2 regulator quirk

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit d5aa84087eadd6f2619628bc9f3d028eeabded0f ] Porter needs the regulator quirk, just like the other boards. But unlike the other boards, the Porter uses DA9063L, which is at 0x5a. Otherwise, DA9063L and DA9210 IRQ line is still connected to CPU IRQ2 . Signed-off-by: Marek Vasut Ac

[PATCH 5.1 120/155] platform/x86: intel_pmc_ipc: adding error handling

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit e61985d0550df8c2078310202aaad9b41049c36c ] If punit or telemetry device initialization fails, pmc driver should unregister and return failure. This change is to fix a kernel panic when removing kernel module intel_pmc_ipc. Fixes: 48c1917088ba ("platform:x86: Add Intel telemetry

[PATCH 5.1 129/155] video: hgafb: fix potential NULL pointer dereference

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit ec7f6aad57ad29e4e66cc2e18e1e1599ddb02542 ] When ioremap fails, hga_vram should not be dereferenced. The fix check the failure to avoid NULL pointer dereference. Signed-off-by: Kangjie Lu Cc: Aditya Pakki Cc: Ferenc Bakonyi [b.zolnierkie: minor patch summary fixup] Signed-off-

[PATCH 5.1 128/155] Input: goodix - add GT5663 CTP support

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit a5f50c501321249d67611353dde6d68d48c5b959 ] GT5663 is capacitive touch controller with customized smart wakeup gestures. Add support for it by adding compatible and supported chip data. The chip data on GT5663 is similar to GT1151, like - config data register has 0x8050 address

[PATCH 5.1 127/155] scsi: qla2xxx: Reset the FCF_ASYNC_{SENT|ACTIVE} flags

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 0257eda08e806b82ee1fc90ef73583b6f022845c ] Driver maintains state machine for processing and completing switch commands. This patch resets FCF_ASYNC_{SENT|ACTIVE} flag to indicate if the previous command is active or sent, in order for next GPSC command to advance the state machi

[PATCH 5.1 151/155] percpu: do not search past bitmap when allocating an area

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 8c43004af01635cc9fbb11031d070e5e0d327ef2 ] pcpu_find_block_fit() guarantees that a fit is found within PCPU_BITMAP_BLOCK_BITS. Iteration is used to determine the first fit as it compares against the block's contig_hint. This can lead to incorrectly scanning past the end of the bi

[PATCH 5.1 126/155] PCI: rcar: Fix 64bit MSI message address handling

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 954b4b752a4c4e963b017ed8cef4c453c5ed308d ] The MSI message address in the RC address space can be 64 bit. The R-Car PCIe RC supports such a 64bit MSI message address as well. The code currently uses virt_to_phys(__get_free_pages()) to obtain a reserved page for the MSI message ad

[PATCH 5.1 147/155] usb: typec: fusb302: Check vconn is off when we start toggling

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 32a155b1a83d6659e2272e8e1eec199667b1897e ] The datasheet says the vconn MUST be off when we start toggling. The tcpm.c state-machine is responsible to make sure vconn is off, but lets add a WARN to catch any cases where vconn is not off for some reason. Signed-off-by: Hans de Go

[PATCH 5.1 124/155] PCI: dwc: Remove default MSI initialization for platform specific MSI chips

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit fd8a44bd5b76dc77133f814dd63d414d49dc74c0 ] Platforms which populate msi_host_init() have their own MSI controller logic. Writing to MSI control registers on platforms which do not use Designware's MSI controller logic might have side effects. To be safe, do not write to MSI cont

[PATCH 5.1 123/155] net: hns3: return 0 and print warning when hit duplicate MAC

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 72110b567479f0282489a9b3747e76d8c67d75f5 ] When set 2 same MAC to different function of one port, IMP will return error as the later one may modify the origin one. This will cause bond fail for 2 VFs of one port. Driver just print warning and return 0 with this patch, so if set

<    1   2   3   4   5   6   7   8   9   10   >