[PATCH 3/4] drm/vmwgfx: fix the check when to use dma_alloc_coherent

2019-01-05 Thread Christoph Hellwig
Since Linux 4.21 we merged the swiotlb ops into the DMA direct ops, so they would always have a the sync_single methods. But late in the cicle we also removed the direct ops entirely, so we'd see NULL DMA ops. Switch vmw_dma_select_mode to only detect swiotlb presence using swiotlb_nr_tbl() inste

[PATCH 4/4] drm/vmwgfx: unwind spaghetti code in vmw_dma_select_mode

2019-01-05 Thread Christoph Hellwig
Just use a simple if/else chain to select the DMA mode. Signed-off-by: Christoph Hellwig --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 25 ++--- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv

[PATCH 2/4] drm/vmwgfx: remove CONFIG_INTEL_IOMMU ifdefs

2019-01-05 Thread Christoph Hellwig
intel_iommu_enabled is defined as always false for !CONFIG_INTEL_IOMMU, so remove the ifdefs around it. Signed-off-by: Christoph Hellwig --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 18 -- 1 file changed, 18 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/g

fix DMA ops layering violations in vmwgfx

2019-01-05 Thread Christoph Hellwig
Hi Thomas, vmwgfx has been doing some odd checks based on DMA ops which rely on deep DMA mapping layer internals, and I think the changes in Linux 4.21 finally broke most of these implicit assumptions. The real fix is in patch 3, but I think the others are important to make it clear what is actua

[PATCH 1/4] drm/vmwgfx: remove CONFIG_X86 ifdefs

2019-01-05 Thread Christoph Hellwig
The driver depends on CONFIG_X86 so these are dead code. Signed-off-by: Christoph Hellwig --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c index 25afb1d594e3..69e325b2d954 1

[PATCH] ACPI/nfit: delete the function to_acpi_nfit_desc

2019-01-05 Thread Xiaochun Lee
From: Xiaochun Lee The function to_acpi_nfit_desc and function to_acpi_desc do the same things,delete the function to_acpi_nfit_desc, and keep the inline function to_acpi_desc. Signed-off-by: Xiaochun Lee --- drivers/acpi/nfit/core.c | 12 +++- 1 file changed, 3 insertions(+), 9 deleti

[PATCH] ACPI/nfit: delete the function to_acpi_nfit_desc

2019-01-05 Thread Xiaochun Lee
From: Xiaochun Lee The function to_acpi_nfit_desc and function to_acpi_desc do the same things,So delete the function to_acpi_nfit_desc, and keep the inline function to_acpi_desc. The calling function to_acpi_nfit_desc,have been changed to the calling function to_acpi_desc. Xiaochun Lee (1):

Re: WARNING in mem_cgroup_update_lru_size

2019-01-05 Thread Dmitry Vyukov
On Fri, Jan 4, 2019 at 11:58 PM syzbot wrote: > > syzbot has found a reproducer for the following crash on: > > HEAD commit:96d4f267e40f Remove 'type' argument from access_ok() funct.. > git tree: net > console output: https://syzkaller.appspot.com/x/log.txt?x=160c9a80c0 > kernel con

[PATCH] staging: wilc1000: fix cast to restricted __le32

2019-01-05 Thread Július Milan
Fixes the following sparse warnings: drivers/staging/wilc1000/host_interface.c:2360:30: warning: incorrect type in assignment (different base types) expected restricted __le32 [addressable] [assigned] [usertype] frame_type got restricted __le16 [usertype] Fixes: 147ccfd451024 ("staging:

[PATCH] staging: wilc1000: fix cast to restricted __le32

2019-01-05 Thread Július Milan
Fixes the following sparse warnings: drivers/staging/wilc1000/host_interface.c:2360:30: warning: incorrect type in assignment (different base types) expected restricted __le32 [addressable] [assigned] [usertype] frame_type got restricted __le16 [usertype] Fixes: 147ccfd451024 ("staging:

Re: [PATCH] staging: wilc1000: fix cast to restricted __le32

2019-01-05 Thread Greg KH
On Sat, Jan 05, 2019 at 09:32:56AM +0100, Július Milan wrote: > sorry, bad mail, see the next one please Properly version your patches so I know what "next one" really means. I've dropped all of these patches from my queue now, please resend with a v2 added to the patch as the documentation says

Re: [PATCH] drivers: misc: goldfish_address_space: add a driver

2019-01-05 Thread Greg KH
On Thu, Jan 03, 2019 at 06:13:11PM -0800, r...@google.com wrote: > From: Roman Kiryanov > > A driver for the Goldfish Android emulator that occupies > address space to use it with the memory sharing device > on the QEMU side. The memory sharding device allocates > subranges and populate them with

Re: [PATCH] drivers: misc: goldfish_address_space: add a driver

2019-01-05 Thread Greg KH
On Thu, Jan 03, 2019 at 06:13:11PM -0800, r...@google.com wrote: > +static int as_release(struct inode *inode, struct file *filp) > +{ > + struct as_allocated_blocks *allocated_blocks = filp->private_data; > + struct as_device_state *state; > + int blocks_size; > + int i; > + > +

[PATCH v2] staging: wilc1000: fix cast to restricted __le32

2019-01-05 Thread Július Milan
Fixes the following sparse warnings: drivers/staging/wilc1000/host_interface.c:2360:30: warning: incorrect type in assignment (different base types) expected restricted __le32 [addressable] [assigned] [usertype] frame_type got restricted __le16 [usertype] Fixes: 147ccfd451024 ("staging:

Re: [PATCH v2] staging: wilc1000: fix cast to restricted __le32

2019-01-05 Thread Greg KH
On Sat, Jan 05, 2019 at 10:10:25AM +0100, Július Milan wrote: > Fixes the following sparse warnings: > > drivers/staging/wilc1000/host_interface.c:2360:30: warning: > incorrect type in assignment (different base types) > expected restricted __le32 [addressable] [assigned] [usertype] frame_typ

Re: [PATCH lora-next 3/5] net: lora: sx130x: Add PicoCell serdev driver

2019-01-05 Thread Ben Whitten
Hi, On 04/01/2019 20:21, Andreas Färber wrote: The picoGW reference MCU firmware implements a USB CDC or UART interface with a set of serial commands. It can be found on multiple mPCIe cards as well as USB adapters. https://github.com/Lora-net/picoGW_mcu That MCU design superseded earlier a

[GIT PULL] arch/h8300 update

2019-01-05 Thread Yoshinori Sato
Hi, Please pull for h8300 fix. The following changes since commit 00c569b567c7f1f0da6162868fd02a9f29411805: Merge tag 'locks-v4.21-1' of git://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux (2018-12-27 17:12:30 -0800) are available in the git repository at: git://git.sourceforge.j

Re: [PATCH] drivers: misc: goldfish_address_space: add a driver

2019-01-05 Thread Roman Kiryanov
Hi. Thank you for looking into my patch. > If they can not, then just remove the > WARN_ON check as it is not needed at all. No, these things don't happen. I will remove these lines.

Re: [PATCH] drivers: misc: goldfish_address_space: add a driver

2019-01-05 Thread Roman Kiryanov
> Why isn't this in drivers/platform/goldfish/ ? I was not sure where to put, but this driver is not a platform one, it is a pci one.

Re: [PATCH v4 04/10] KVM/x86: intel_pmu_lbr_enable

2019-01-05 Thread Wei Wang
On 01/04/2019 11:57 PM, Liang, Kan wrote: On 1/4/2019 4:58 AM, Wei Wang wrote: On 01/03/2019 12:33 AM, Liang, Kan wrote: On 12/26/2018 4:25 AM, Wei Wang wrote: + +/* + * It could be possible that people have vcpus of old model run on + * physcal cpus of newer model, for examp

[PATCH v6 02/11] ata: pata_acpi: Make PCI dependency explicit

2019-01-05 Thread Sinan Kaya
After 'commit 5d32a66541c4 ("PCI/ACPI: Allow ACPI to be built without CONFIG_PCI set")' dependencies on CONFIG_PCI that previously were satisfied implicitly through dependencies on CONFIG_ACPI have to be specified directly. PATA_ACPI is a PCI device driver but the PCI dependency has not been explic

[PATCH v6 08/11] ASoC: Intel: atom: Make PCI dependency explicit

2019-01-05 Thread Sinan Kaya
After 'commit 5d32a66541c4 ("PCI/ACPI: Allow ACPI to be built without CONFIG_PCI set")' dependencies on CONFIG_PCI that previously were satisfied implicitly through dependencies on CONFIG_ACPI have to be specified directly. This code relies on IOSF_MBI and IOSF_MBI depends on PCI. For this reason,

[PATCH v6 09/11] mmc: sdhci-acpi: Make PCI dependency explicit

2019-01-05 Thread Sinan Kaya
After 'commit 5d32a66541c4 ("PCI/ACPI: Allow ACPI to be built without CONFIG_PCI set")' dependencies on CONFIG_PCI that previously were satisfied implicitly through dependencies on CONFIG_ACPI have to be specified directly. This driver relies on IOSF_MBI and IOSF_MBI depends on PCI. For this reason

[PATCH v6 05/11] platform/x86: intel_pmc: Make PCI dependency explicit

2019-01-05 Thread Sinan Kaya
After 'commit 5d32a66541c4 ("PCI/ACPI: Allow ACPI to be built without CONFIG_PCI set")' dependencies on CONFIG_PCI that previously were satisfied implicitly through dependencies on CONFIG_ACPI have to be specified directly. Code relies on PCI for execution. Specify this in the Kconfig. Fixes: 5d32

[PATCH v6 04/11] platform/x86: intel_ips: make PCI dependency explicit

2019-01-05 Thread Sinan Kaya
After 'commit 5d32a66541c4 ("PCI/ACPI: Allow ACPI to be built without CONFIG_PCI set")' dependencies on CONFIG_PCI that previously were satisfied implicitly through dependencies on CONFIG_ACPI have to be specified directly. Ipss driver is a PCI device driver but this has not been mentioned anywhere

[PATCH v6 07/11] drivers: thermal: int3406_thermal: Make PCI dependency explicit

2019-01-05 Thread Sinan Kaya
After 'commit 5d32a66541c4 ("PCI/ACPI: Allow ACPI to be built without CONFIG_PCI set")' dependencies on CONFIG_PCI that previously were satisfied implicitly through dependencies on CONFIG_ACPI have to be specified directly. Need CONFIG_PCI to be set in order to be able to use this driver. Fixes: 5

[PATCH v6 10/11] x86/intel/lpss: Make PCI dependency explicit

2019-01-05 Thread Sinan Kaya
After 'commit 5d32a66541c4 ("PCI/ACPI: Allow ACPI to be built without CONFIG_PCI set")' dependencies on CONFIG_PCI that previously were satisfied implicitly through dependencies on CONFIG_ACPI have to be specified directly. LPSS code relies on PCI infrastructure but this dependency has not been exp

[PATCH v6 03/11] vga-switcheroo: make PCI dependency explicit

2019-01-05 Thread Sinan Kaya
This driver depends on the PCI infrastructure but the dependency has not been explicitly called out. Fixes: 5d32a66541c46 ("PCI/ACPI: Allow ACPI to be built without CONFIG_PCI set") Signed-off-by: Sinan Kaya Reviewed-by: Lukas Wunner Acked-by: Daniel Vetter --- drivers/gpu/vga/Kconfig | 1 + 1

[PATCH v6 01/11] ACPI / LPSS: Make PCI dependency explicit

2019-01-05 Thread Sinan Kaya
After 'commit 5d32a66541c4 ("PCI/ACPI: Allow ACPI to be built without CONFIG_PCI set")', it is possible to build ACPI without any PCI support. This code depends on PCI. Compile only when PCI is present. Fixes: 5d32a66541c46 ("PCI/ACPI: Allow ACPI to be built without CONFIG_PCI set") Signed-off-by:

[PATCH v6 06/11] platform/x86: apple-gmux: Make PCI dependency explicit

2019-01-05 Thread Sinan Kaya
After 'commit 5d32a66541c4 ("PCI/ACPI: Allow ACPI to be built without CONFIG_PCI set")' dependencies on CONFIG_PCI that previously were satisfied implicitly through dependencies on CONFIG_ACPI have to be specified directly. This driver depends on the PCI infrastructure but the dependency has not be

[PATCH v6 11/11] drivers: thermal: int340x_thermal: Make PCI dependency explicit

2019-01-05 Thread Sinan Kaya
After 'commit 5d32a66541c4 ("PCI/ACPI: Allow ACPI to be built without CONFIG_PCI set")' dependencies on CONFIG_PCI that previously were satisfied implicitly through dependencies on CONFIG_ACPI have to be specified directly. IOSF_CORE depends on PCI. For this reason, add a direct dependency on CONFI

RE: [PATCH v4 04/10] KVM/x86: intel_pmu_lbr_enable

2019-01-05 Thread Wang, Wei W
On Friday, January 4, 2019 11:54 PM, Jim Mattson wrote: > On Fri, Jan 4, 2019 at 2:03 AM Wei Wang wrote: > > > > On 01/03/2019 11:34 PM, Jim Mattson wrote: > > > Fast forward to, say, 2021. You're decommissioning all Broadwell > > > servers in your data center. You have to migrate the running VMs

[GIT PULL] parisc architecture fix for kernel v4.21

2019-01-05 Thread Helge Deller
Hi Linus, please pull one more patch for the parisc architecture for 4.21-rc1 from: git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git parisc-4.21-2 Fix boot issues with a series of parisc servers since kernel 4.20. Remapping kernel text with set_kernel_text_rw() missed to

Re: INFO: rcu detected stall in ndisc_alloc_skb

2019-01-05 Thread Tetsuo Handa
On 2019/01/03 2:06, Tetsuo Handa wrote: > On 2018/12/31 17:24, Dmitry Vyukov wrote: Since this involves OOMs and looks like a one-off induced memory corruption: #syz dup: kernel panic: corrupted stack end in wb_workfn >>> >>> Why? >>> >>> RCU stall in this case is likely t

Re: [PATCH] fs/ceph/addr.c: Convert to use vmf_error()

2019-01-05 Thread Ilya Dryomov
On Fri, Jan 4, 2019 at 8:26 PM Souptick Joarder wrote: > > This code is converted to use vmf_error(). > > Signed-off-by: Souptick Joarder > --- > fs/ceph/addr.c | 5 + > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c > index 8eade7a..fa2a85d 1

Re: [PATCH v6] arm64: implement ftrace with regs

2019-01-05 Thread Torsten Duwe
On Fri, Jan 04, 2019 at 11:41:45PM +0100, Torsten Duwe wrote: > On Fri, Jan 04, 2019 at 01:06:48PM -0500, Steven Rostedt wrote: > > On Fri, 4 Jan 2019 17:50:18 + > > Mark Rutland wrote: > > > > > At Linux Plumbers, I had a conversation with Steve Rostedt, and we came > > > to the conclusion t

Re: [PATCH 1/4] rtlwifi: rtl8723ae: Take the FW LPS mode handling out

2019-01-05 Thread Bernd Edlinger
On 1/5/19 3:44 AM, Larry Finger wrote: > On 1/4/19 6:48 AM, Bernd Edlinger wrote: >> This appears to trigger a firmware bug and causes severe >> problems with rtl8723ae PCI devices. >> >> When the power save mode is activated for longer periods >> of time the firmware stops to receive any packets.

[PATCH v3] staging: wilc1000: fix cast to restricted __le32

2019-01-05 Thread Július Milan
Fixes the following sparse warnings: drivers/staging/wilc1000/host_interface.c:2360:30: warning: incorrect type in assignment (different base types) expected restricted __le32 [addressable] [assigned] [usertype] frame_type got restricted __le16 [usertype] Fixes: 147ccfd451024 ("staging:

Re: [GIT PULL] Please pull powerpc/linux.git powerpc-4.21-2 tag

2019-01-05 Thread Michael Ellerman
Hi Linus, Michael Ellerman writes: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi Linus, > > Please pull some powerpc fixes for 4.21: ... > > for you to fetch changes up to 074400a7be61250d9f0ccec07d5c35ffec4d8d22: > > powerpc: Drop use of 'type' from access_ok() (2019-01-04 23:07:59

Re: [PATCH 2/3] qcom: spmi-gpio: add support for hierarchical IRQ chip

2019-01-05 Thread Brian Masney
On Thu, Jan 03, 2019 at 04:48:33PM -0800, Stephen Boyd wrote: > I'd think we want the interrupt-cells for the pmic gpio controller to be > 2 cells (pin and flags) instead of 4 like you have here to match the > parent interrupt specifier. I originally went with 4 interrupt cells for spmi-gpio to ma

Re: [PATCH 2/2] leds: lp5024: Add the LP5024/18 RGB LED driver

2019-01-05 Thread Jacek Anaszewski
Hi Pavel, On 1/4/19 11:07 PM, Pavel Machek wrote: Hi! But, aside from that hypothetic issue, we need a solution for LEDn_BRIGHTNESS feature of lp5024, i.e. setting color intensity via a single register write. How would you propose to address that? So they have hardware feature that allows co

Re: [PATCH 2/2] leds: lp5024: Add the LP5024/18 RGB LED driver

2019-01-05 Thread Pavel Machek
> >We will need to solve RGB leds somehow, hopefully this is solved with > >it. > > When? With this attitude we will procrastinate it forever. > It's been almost 3 years since first HSV patches. > > I proposed rough design of LED RGB class interface in [0]. > If you find it totally flawed, then p

Re: [PATCH 2/3] qcom: spmi-gpio: add support for hierarchical IRQ chip

2019-01-05 Thread Brian Masney
On Sat, Jan 05, 2019 at 07:08:44AM -0500, Brian Masney wrote: > > I also seem to recall that GPIO numbering starts from 1 instead of > > 0, so please keep that in mind. > > I'm using the pinctrl numbering, which is zero based. > > / # head /sys/kernel/debug/pinctrl/fc4cf000.spmi\:pm8941@0\:gpios@

Introducing Racoh Computer design suggestion/ Uxxuw For Fair Pay O-S

2019-01-05 Thread Ywe Cærlyn
I have been working on the philosophy behind Uxxuw For Fair O-S, in 2018. In 2019, I have philosophy v1.0 ready. Computersystems start with I/O, with a high-level paradigm for input/output. This to ease development. In our analysis we see problems with behaviour in Linux crowds, and this was o

Re: [PATCH 2/2] leds: lp5024: Add the LP5024/18 RGB LED driver

2019-01-05 Thread Jacek Anaszewski
On 1/5/19 1:31 PM, Pavel Machek wrote: We will need to solve RGB leds somehow, hopefully this is solved with it. When? With this attitude we will procrastinate it forever. It's been almost 3 years since first HSV patches. I proposed rough design of LED RGB class interface in [0]. If you find i

[PATCH] ASoC: rt5663: Fix error handling of device_property_read_u32_array

2019-01-05 Thread Aditya Pakki
In rt5663_parse_dp, the function device_property_read_u32_array() can return an error. This fix adds a check to the latter as well as to the callsite of rt5663_parse_dp in rt5663_i2c_probe. Signed-off-by: Aditya Pakki --- sound/soc/codecs/rt5663.c | 9 ++--- 1 file changed, 6 insertions(+),

Re: [PATCH 2/8 v2] Documentation: bindings: k3dma: Add binding for dma-avail-chan

2019-01-05 Thread Vinod Koul
On 05-01-19, 10:23, Manivannan Sadhasivam wrote: > On Fri, Jan 04, 2019 at 08:39:34PM -0800, John Stultz wrote: > > On Fri, Jan 4, 2019 at 8:00 PM Manivannan Sadhasivam > > wrote: > > > > > > Hi John, > > > > > > On Fri, Jan 04, 2019 at 12:56:22PM -0800, John Stultz wrote: > > > > Some dma channel

[PATCH] usbcore: Select only first configuration for non-UAC3 compliant devices

2019-01-05 Thread saranya . gopal
From: Saranya Gopal In most of the UAC1 and UAC2 audio devices, the first configuration is most often the best configuration. However, with recent patch to support UAC3 configuration, second configuration was unintentionally chosen for some of the UAC1/2 devices that had more than one configurati

Re: [PATCH 2/8 v2] Documentation: bindings: k3dma: Add binding for dma-avail-chan

2019-01-05 Thread Manivannan Sadhasivam
Hi Vinod, On Sat, Jan 05, 2019 at 07:16:10PM +0530, Vinod Koul wrote: > On 05-01-19, 10:23, Manivannan Sadhasivam wrote: > > On Fri, Jan 04, 2019 at 08:39:34PM -0800, John Stultz wrote: > > > On Fri, Jan 4, 2019 at 8:00 PM Manivannan Sadhasivam > > > wrote: > > > > > > > > Hi John, > > > > > > >

RE: [alsa-devel] ALSA:usb audio Higher sample rates on usb audio no longer working.

2019-01-05 Thread Gopal, Saranya
Hi Con, Thanks a lot for reporting the issue and also for taking your time to help me with lsusb output and dmesg logs. I have sent a patch in another mail to fix this issue. Could you help by checking if the patch fixes this issue for you? Thanks, Saranya > -Original Message- > From: C

[PATCH] Staging: rts5208: Fix error handling on rtsx_send_cmd

2019-01-05 Thread Aditya Pakki
In sd_execute_write_data, the rtsx_send_cmd could fail with ETIMEDOUT or EIO. The fix adds a check to handle these failures. Signed-off-by: Aditya Pakki --- drivers/staging/rts5208/sd.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/staging/rts5208/sd.c b/drive

r8152: data corruption in various scenarios

2019-01-05 Thread Mark Lord
A couple of years back, I reported data corruption resulting from a change in kernel 3.16 which enabled hardware checksums in the r8152 driver. This was happening on an embedded system that was using a r8152 USB dongle. At the time, it was very difficult to figure out what could possibly be causin

Re: r8152: data corruption in various scenarios

2019-01-05 Thread Mark Lord
On 2019-01-05 9:14 a.m., Mark Lord wrote: > A couple of years back, I reported data corruption resulting from > a change in kernel 3.16 which enabled hardware checksums in the r8152 driver. > This was happening on an embedded system that was using a r8152 USB dongle. > > At the time, it was very d

Re: [PATCH] drivers: misc: goldfish_address_space: add a driver

2019-01-05 Thread Greg KH
On Sat, Jan 05, 2019 at 01:43:55AM -0800, Roman Kiryanov wrote: > > Why isn't this in drivers/platform/goldfish/ ? > > I was not sure where to put, but this driver is not a platform one, it > is a pci one. You are controlling a "platform" device, the goldfish platform. What makes this different

Re: [PATCH] usbcore: Select only first configuration for non-UAC3 compliant devices

2019-01-05 Thread Greg KH
On Sat, Jan 05, 2019 at 07:32:37PM +0530, saranya.go...@intel.com wrote: > From: Saranya Gopal > > In most of the UAC1 and UAC2 audio devices, the first > configuration is most often the best configuration. > However, with recent patch to support UAC3 configuration, > second configuration was uni

[RESEND] x86: Refactor __cmpxchg to cmpxchg in lock_cmos

2019-01-05 Thread Philipp K
It is unusual to reference __cmpxchg() from other files than cmpxchg.h and similar. Instead, cmpxchg() is used, which expands to __cmpxchg() and derives the 'size' parameter automatically with sizeof(*(ptr)). So clean up the lock_cmos() function by using cmpxchg(), without changing the generated c

[PATCH] [v2] netfilter: ipset: fix a missing check of nla_parse

2019-01-05 Thread Aditya Pakki
When nla_parse fails, we should not use the results (the first argument). The fix checks if it fails, and if so, returns its error code upstream. Signed-off-by: Aditya Pakki --- net/netfilter/ipset/ip_set_core.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/net/net

[PATCH] [V2] usb: chipidea: add a check for the availability of next child

2019-01-05 Thread Aditya Pakki
of_get_next_available_child returns NULL when no child nodes are found. The fix checks its return value instead of assuming a child is found. Signed-off-by: Aditya Pakki --- drivers/usb/chipidea/ci_hdrc_msm.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/usb/chipidea/ci_hdrc_ms

Re: [PATCH v2] staging: wilc1000: fix cast to restricted __le32

2019-01-05 Thread Larry Finger
On 1/5/19 3:10 AM, Július Milan wrote: Fixes the following sparse warnings: drivers/staging/wilc1000/host_interface.c:2360:30: warning: incorrect type in assignment (different base types) expected restricted __le32 [addressable] [assigned] [usertype] frame_type got restricted __le16

Re: use generic DMA mapping code in powerpc V4

2019-01-05 Thread Christian Zigotzky
Next step: c446404b041130fbd9d1772d184f24715cf2362f (powerpc/dma: remove dma_nommu_mmap_coherent) git clone git://git.infradead.org/users/hch/misc.git -b powerpc-dma.6 a git checkout c446404b041130fbd9d1772d184f24715cf2362f Output: Note: checking out 'c446404b041130fbd9d1772d184f24715cf2362f'

Re: [PATCH 09/16] tools headers uapi: Sync linux/kvm.h with the kernel sources

2019-01-05 Thread Paolo Bonzini
On 04/01/19 19:33, Arnaldo Carvalho de Melo wrote: > From: Arnaldo Carvalho de Melo > > To get the changes from these csets: > > 2bc39970e932 ("x86/kvm/hyper-v: Introduce KVM_GET_SUPPORTED_HV_CPUID") > 2a31b9db1535 ("kvm: introduce manual dirty log reprotect") > > That results in these new

Re: [PATCH v2 1/3] ARM: fix argument count to match macro definition

2019-01-05 Thread Nicolas Pitre
On Thu, 3 Jan 2019, Stefan Agner wrote: > The macro str8w takes 10 arguments, abort being the 10th. In this > particular instantiation the abort argument is passed as 11th > argument leading to an error when using LLVM's integrated > assembler: > :46:47: error: too many positional arguments >

<<>

2019-01-05 Thread Mr Owen Peter
Good Day, Hope you are doing great Today.I have a proposed BUSINESS DEAL that will benefit both parties. This is legitimate,legal and your personality will not be compromised.Please Reply to me ONLY if you are interested and consider your self capable for details. Sincerely, Peter OWEN

[git pull] FireWire (IEEE 1394) update post v4.20

2019-01-05 Thread Stefan Richter
Linus, please pull from the tag "firewire-update" at git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394.git firewire-update to receive the following firewire subsystem patch: - remove an explicit dependency in Kconfig which is implied by another dependency Geert Uytterhoe

Re: [PATCH 11/16] tools headers x86: Sync asm/cpufeatures.h copy with the kernel sources

2019-01-05 Thread Paolo Bonzini
On 04/01/19 19:33, Arnaldo Carvalho de Melo wrote: > From: Arnaldo Carvalho de Melo > > To get the changes from: > > a0aea130afeb ("KVM: x86: Add CPUID support for new instruction WBNOINVD") Slightly better commit: 08e823c2c589 ("x86/cpufeatures: Add WBNOINVD feature definition") Otherw

Re: [PATCH v2 2/3] ARM: uaccess: use unified assembler language syntax

2019-01-05 Thread Nicolas Pitre
On Thu, 3 Jan 2019, Stefan Agner wrote: > Convert the conditional infix to a postfix to make sure this inline > assembly is unified syntax. Since gcc assumes non-unified syntax > when emitting ARM instructions, make sure to define the syntax as > unified. > > This allows to use LLVM's integrated

Re: [PATCH v1 1/2] drm/fb-helper: Bring back workaround for bugs of SDL 1.2

2019-01-05 Thread Ivan Mironov
On Fri, 2018-12-28 at 13:15 +0100, Daniel Vetter wrote: > On Fri, Dec 28, 2018 at 04:13:07AM +0500, Ivan Mironov wrote: > > SDL 1.2 sets all fields related to the pixel format to zero in some > > cases[1]. Prior to commit db05c48197759 ("drm: fb-helper: Reject all > > pixel format changing requests

Re: [PATCH v2 3/3] ARM: spinlock: use unified assembler language syntax

2019-01-05 Thread Nicolas Pitre
On Thu, 3 Jan 2019, Stefan Agner wrote: > Convert the conditional infix to a postfix to make sure this inline > assembly is unified syntax. Since gcc assumes non-unified syntax > when emitting ARM instructions, make sure to define the syntax as > unified. > > This allows to use LLVM's integrated

Re: [PATCH 1/4] rtlwifi: rtl8723ae: Take the FW LPS mode handling out

2019-01-05 Thread Larry Finger
On 1/5/19 5:31 AM, Bernd Edlinger wrote: On 1/5/19 3:44 AM, Larry Finger wrote: On 1/4/19 6:48 AM, Bernd Edlinger wrote: This appears to trigger a firmware bug and causes severe problems with rtl8723ae PCI devices. When the power save mode is activated for longer periods of time the firmware s

[PATCH] [V2] infiniband: fix a missing check of nla_put

2019-01-05 Thread Aditya Pakki
nla_put() may fail. The fix adds a check for its return value, and returns -EMSGSIZE if it fails, post canceling netlink msg. Signed-off-by: Aditya Pakki --- drivers/infiniband/core/addr.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/infiniband/core/addr.c b/dr

Re: [PATCH v1 2/2] drm/fb-helper: Ignore the value of fb_var_screeninfo.pixclock

2019-01-05 Thread Ivan Mironov
On Fri, 2018-12-28 at 13:06 +0100, Daniel Vetter wrote: > On Fri, Dec 28, 2018 at 04:13:08AM +0500, Ivan Mironov wrote: > > Strict requirement of pixclock to be zero breaks support of SDL 1.2 > > which contains hardcoded table of supported video modes with non-zero > > pixclock values[1]. > > > >

Re: [PATCH 1/4] rtlwifi: rtl8723ae: Take the FW LPS mode handling out

2019-01-05 Thread Bernd Edlinger
On 1/5/19 5:13 PM, Larry Finger wrote: >> but this works: >> >> modprobe rtl8723ae debug_mask=0x debug_level=5 swlps=1 fwlps=0 > > Yes, I think that is a better thing to do now. If and when Realtek finds a > firmware bug, and when the new firmware is readily available, then there will >

Re: [PATCH v2] ARM: Remove '-p' from LDFLAGS

2019-01-05 Thread Nicolas Pitre
On Mon, 31 Dec 2018, Nathan Chancellor wrote: > This option is not supported by lld: > > ld.lld: error: unknown argument: -p > > This has been a no-op in binutils since 2004 (see commit dea514f51da1 in > that tree). Given that the lowest officially supported of binutils for > the kernel is 2

Re: [PATCH 1/4] rtlwifi: rtl8723ae: Take the FW LPS mode handling out

2019-01-05 Thread Larry Finger
On 1/5/19 10:30 AM, Bernd Edlinger wrote: On 1/5/19 5:13 PM, Larry Finger wrote: but this works: modprobe rtl8723ae debug_mask=0x debug_level=5 swlps=1 fwlps=0 Yes, I think that is a better thing to do now. If and when Realtek finds a firmware bug, and when the new firmware is readil

Re: [PATCH 1/2] dt-bindings: iio: adc: meson-saradc: update temperature sensor support

2019-01-05 Thread Jonathan Cameron
On Thu, 3 Jan 2019 17:02:09 -0600 Rob Herring wrote: > On Thu, 27 Dec 2018 22:50:19 +0100, Martin Blumenstingl wrote: > > Meson8b and Meson8m2 use a 5-bit wide TSC (temperature sensor > > coefficient). The SAR ADC registers however can only store (the lower) > > 4 bits. The fifth (upper-most) bit

Re: [PATCH 2/2] iio: adc: meson-saradc: enable the temperature sensor two more SoCs

2019-01-05 Thread Jonathan Cameron
On Thu, 27 Dec 2018 22:50:20 +0100 Martin Blumenstingl wrote: > Meson8b and Meson8m2 use the same logic to convert the ADC register > value to celsius, which is different from Meson8: > - Meson8 has different multiplier and divider values > - Meson8 uses a 4-bit TSC (temperature sensor coefficien

Re: [PATCH 2/2] iio: adc: meson-saradc: enable the temperature sensor two more SoCs

2019-01-05 Thread Jonathan Cameron
On Thu, 27 Dec 2018 22:50:20 +0100 Martin Blumenstingl wrote: > Meson8b and Meson8m2 use the same logic to convert the ADC register > value to celsius, which is different from Meson8: > - Meson8 has different multiplier and divider values > - Meson8 uses a 4-bit TSC (temperature sensor coefficien

Re: [PATCH] iio: adc: xilinx: check return value of xadc_write_adc_reg

2019-01-05 Thread Jonathan Cameron
On Thu, 3 Jan 2019 12:16:49 +0100 Michal Simek wrote: > On 27. 12. 18 20:54, Aditya Pakki wrote: > > In function xadc_probe, xadc_write_adc_reg can return an error value > > when write fails. The fix checks for the return value consistent with > > other invocations of the latter function. > > >

[PATCH] tipc: fix memory leak in tipc_nl_compat_publ_dump

2019-01-05 Thread Gustavo A. R. Silva
There is a memory leak in case genlmsg_put fails. Fix this by freeing *args* before return. Addresses-Coverity-ID: 1476406 ("Resource leak") Fixes: 46273cf7e009 ("tipc: fix a missing check of genlmsg_put") Signed-off-by: Gustavo A. R. Silva --- net/tipc/netlink_compat.c | 4 +++- 1 file changed

Re: [PATCH] iio: chemical: sps30: allow changing self cleaning period

2019-01-05 Thread Jonathan Cameron
On Wed, 26 Dec 2018 20:30:35 +0100 Tomasz Duszynski wrote: > Sensor can periodically trigger self cleaning. Period can be changed by > writing a new value to a dedicated attribute. Upon attribute read > triplet representing respectively current, minimum and maximum period is > returned. > > Sign

Re: [PATCH v1 1/2] dt-binding: iio: add NPCM ADC documentation

2019-01-05 Thread Jonathan Cameron
On Mon, 24 Dec 2018 18:47:54 +0200 Tomer Maimon wrote: > Added device tree binding documentation for Nuvoton BMC > NPCM Analog-to-Digital Converter(ADC). > > Signed-off-by: Tomer Maimon > --- > .../bindings/iio/adc/nuvoton,npcm-adc.txt | 35 > ++ > 1 file changed,

[PATCH] ver_linux: Assign constant RE to variable name for clarity

2019-01-05 Thread Alexander Kapshuk
The regular expression that matches the version number of a utility being queried is used as a constant expression in the current implementation. Assigning the RE in question to a variable gives it a meaningful name that clearly expresses the intended use of the expression without having to think a

Re: [PATCH 4/4] pmbus (dps650ab): add power supply driver

2019-01-05 Thread Guenter Roeck
On Fri, Jan 04, 2019 at 05:05:27PM +0800, Xiaoting Liu wrote: > The Delta dps650ab provides main power and standby power to server. > dps650ab can be detected by MFR_ID and MFR_MODEL referring to > manufacturer's feedback. This patch adds driver to moniter power > supply status. > Another comment

[PATCH] [v2]RDMA: add checks for the status of nla_put in ib_nl_send_msg

2019-01-05 Thread Aditya Pakki
The fix inserts multiple checks for nla_put, and changes the return type of ib_nl_set_path_rec_attrs() from void to int Signed-off-by: Aditya Pakki --- drivers/infiniband/core/sa_query.c | 56 -- 1 file changed, 38 insertions(+), 18 deletions(-) diff --git a/drivers/

Re: [PATCH] Staging: iio: adt7316: Add regmap support

2019-01-05 Thread Jonathan Cameron
+CC Jeremy who is also working with this device. On Sun, 23 Dec 2018 19:32:24 +0530 Shreeya Patel wrote: > Both i2c and spi drivers have functions for reading and writing > to/from registers. Remove this redundant and common code by using > regmap API. > Also remove multi_read and multi_write fu

[PATCH] mm/mincore: allow for making sys_mincore() privileged

2019-01-05 Thread Jiri Kosina
From: Jiri Kosina There are possibilities [1] how mincore() could be used as a converyor of a sidechannel information about pagecache metadata. Provide vm.mincore_privileged sysctl, which makes it possible to mincore() start returning -EPERM in case it's invoked by a process lacking CAP_SYS_A

Re: [PATCH V6 2/2] iio: accell: mma8452: add vdd/vddio regulator operation support

2019-01-05 Thread Jonathan Cameron
On Sun, 23 Dec 2018 09:02:32 + Anson Huang wrote: > The accelerometer's power supply could be controllable on some > platforms, such as i.MX6Q-SABRESD board, the mma8451's power supplies > are controlled by a GPIO fixed regulator, need to make sure the > regulators are enabled before any comm

Re: 047fb56f7e ("blk-mq: fix changelog"): BUG: unable to handle kernel NULL pointer dereference at 00000030

2019-01-05 Thread Greg Kroah-Hartman
On Sun, Jan 06, 2019 at 01:18:42AM +0800, kernel test robot wrote: > Greetings, > > 0day kernel testing robot got the below dmesg and the first bad commit is > > https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git > debugfs_cleanup > > commit 047fb56f7ecf53620d6e93fbcc8ca9166

Re: [PATCH V8] iio: light: isl29018: add vcc regulator operation support

2019-01-05 Thread Jonathan Cameron
On Sun, 23 Dec 2018 06:46:32 + Anson Huang wrote: > The light sensor's power supply could be controllable by regulator > on some platforms, such as i.MX6Q-SABRESD board, the light sensor > isl29023's power supply is controlled by a GPIO fixed regulator, > need to make sure the regulator is en

[PATCH V2] usbcore: Select only first configuration for non-UAC3 compliant devices

2019-01-05 Thread saranya . gopal
From: Saranya Gopal In most of the UAC1 and UAC2 audio devices, the first configuration is most often the best configuration. However, with recent patch to support UAC3 configuration, second configuration was unintentionally chosen for some of the UAC1/2 devices that had more than one configurati

Re: [PATCH V6] iio: magnetometer: mag3110: add vdd/vddio regulator operation support

2019-01-05 Thread Jonathan Cameron
On Sun, 23 Dec 2018 06:12:30 + Anson Huang wrote: > The magnetometer's power supplies could be controllable on some platforms, > such as i.MX6Q-SABRESD board, the mag3110's power supplies are controlled > by a GPIO fixed regulator, need to make sure the regulators are enabled > before any com

[PATCH 0/3] The basic patches for rockchip video codec

2019-01-05 Thread Randy Li
I will post a driver for video codec using the vendor userspace interface. It is not used for merging but checking the work status of the other devices and pre-patches need to be merged. Without the following modification, video codec can't work properly. I check the status of the upstream kernel

[PATCH 3/3] soc: rockchip: power-domain: export idle request

2019-01-05 Thread Randy Li
We need to put the power status of HEVC IP into IDLE unless we can't reset that IP or the SoC would crash down. rockchip_pmu_idle_request(dev, true)---> enter idle rockchip_pmu_idle_request(dev, false)---> exit idle Signed-off-by: Caesar Wang Signed-off-by: Jeffy Chen Signed-off-by: Randy Li --

[PATCH 2/3] arm64: dts: rockchip: add power domain to iommu rk3399

2019-01-05 Thread Randy Li
IOMMU device won't work without power unless PMU can't turn it off. Signed-off-by: Randy Li --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index 6cc1c9fa4ea6..

[PATCH 1/3] clk: rockchip: add video clk parents for rk3399

2019-01-05 Thread Randy Li
Video codec won't work properly with a clock too low nor too high. We need to export them, allowing the device tree to assign a suitable clocks for them. Signed-off-by: Randy Li --- drivers/clk/rockchip/clk-rk3399.c | 5 +++-- include/dt-bindings/clock/rk3399-cru.h | 2 ++ 2 files changed,

Re: [PATCH] PCI: Add no-D3 quirk for Mellanox ConnectX-[45]

2019-01-05 Thread Jason Gunthorpe
On Fri, Jan 04, 2019 at 02:44:01PM +1100, David Gibson wrote: > On Thu, Dec 06, 2018 at 08:45:09AM +0200, Leon Romanovsky wrote: > > On Thu, Dec 06, 2018 at 03:19:51PM +1100, David Gibson wrote: > > > Mellanox ConnectX-5 IB cards (MT27800) seem to cause a call trace when > > > unbound from their re

Re: [PATCH v2 1/4] staging: iio: adt7316: fix dac_bits assignment

2019-01-05 Thread Jonathan Cameron
+ CC Shreeya who is working on the same driver. On Sat, 22 Dec 2018 21:57:40 -0700 Jeremy Fertic wrote: > The value of dac_bits is used in adt7316_show_DAC() and adt7316_store_DAC(), > and it should be either 8, 10, or 12 bits depending on the device in use. The > driver currently only assigns a

Re: [RFC PATCH 3/3] selftests/vm: add script helper for CONFIG_TEST_VMALLOC_MODULE

2019-01-05 Thread Uladzislau Rezki
On Fri, Jan 04, 2019 at 11:34:30AM -0700, shuah wrote: > On 1/3/19 7:21 AM, Uladzislau Rezki (Sony) wrote: > > Add the test script for the kernel test driver to analyse vmalloc > > allocator for benchmarking and stressing purposes. It is just a kernel > > module loader. You can specify and pass dif

Re: [PATCH v2 2/4] staging: iio: adt7316: fix handling of dac high resolution option

2019-01-05 Thread Jonathan Cameron
On Sat, 22 Dec 2018 21:57:41 -0700 Jeremy Fertic wrote: > The adt7316/7 and adt7516/7 have the option to output voltage proportional > to temperature on dac a and/or dac b. The default dac resolution in this > mode is 8 bits with the dac high resolution option enabling 10 bits. None > of these se

Re: [PATCH v2 3/4] staging: iio: adt7316: fix the dac read calculation

2019-01-05 Thread Jonathan Cameron
On Sat, 22 Dec 2018 21:57:42 -0700 Jeremy Fertic wrote: > The calculation of the current dac value is using the wrong bits of the > dac lsb register. Create two macros to shift the lsb register value into > lsb position, depending on whether the dac is 10 or 12 bit. Initialize > data to 0 so, wit

  1   2   3   >