[PATCH 01/15] liblockdep: Fix undefined symbol prandom_u32

2017-05-17 Thread alexander . levin
From: Ben Hutchings __lock_pin_lock() now calls prandom_u32() which is not defined in liblockdep. __lock_pin_lock() and its caller lock_pin_lock() are dead code in liblockdep, but we still need to provide a definition of prandom_u32() in case lazy binding is disabled. Fixes: e7904a28f533 ("lock

[PATCH 08/15] liblockdep: Remove -lpthread compiler option

2017-05-17 Thread alexander . levin
From: Vishal Thanki With -lpthread option, the test for ABBA_2threads was failing, and test passed if it was removed. Since -pthread compiler option is sufficient for linking to pthread libraries, this patch removes -lpthread. Signed-off-by: Vishal Thanki Signed-off-by: Sasha Levin --- tools/

[PATCH 10/15] tools: add install make target for liblockdep

2017-05-17 Thread alexander . levin
From: Alexander Sverdlin Allow user to call "liblockdep_install" target. Also add liblockdep to "all" and "install" targets (as "help" command suggests). Signed-off-by: Alexander Sverdlin Cc: Arnaldo Carvalho de Melo Cc: Linus Walleij Signed-off-by: Sasha Levin --- tools/Makefile | 8 ++

Re: [PATCH v1 1/3] of: base: Provide of_graph_get_port_parent()

2017-05-17 Thread Kuninori Morimoto
Hi Kieran > >> From: Kieran Bingham > >> > >> When handling endpoints, the v4l2 async framework needs to identify the > >> parent device of a port endpoint. > >> > >> Adapt the existing of_graph_get_remote_port_parent() such that a caller > >> can obtain the parent of a port without parsing the

Re: [PATCH] edac: thunderx: Replace pci_alloc_msix_exact

2017-05-17 Thread Sergei Temerkhanov
On Wed, May 17, 2017 at 8:23 PM, Jan Glauber wrote: > On Wed, May 17, 2017 at 06:35:05PM +0300, Sergei Temerkhanov wrote: >> CIL... >> >> On Tue, May 16, 2017 at 12:54 PM, Jan Glauber wrote: >> > Replace the deprecated pci_alloc_msix_exact() with >> > pci_alloc_irq_vectors(). >> > >> > Avoid the

[GIT PULL] pid namespace fixes for v4.12-rc2

2017-05-17 Thread Eric W. Biederman
Linus, Please pull the for-linus branch from the git tree: git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git for-linus HEAD: 3fd37226216620c1a468afa999739d5016fbc349 pid_ns: Fix race between setns'ed fork() and zap_pid_ns_processes() These are two bugs that tur

Re: linux-next: build failure after merge of the file-locks tree

2017-05-17 Thread Stephen Rothwell
Hi Jeff, On Wed, 17 May 2017 08:32:46 -0400 Jeff Layton wrote: > > On Wed, 2017-05-17 at 11:48 +1000, Stephen Rothwell wrote: > > > > On Tue, 16 May 2017 21:10:03 -0400 Jeff Layton > > wrote: > > > > > > I think this patch will probably fix it, but I don't have a 32-bit host > > > set up to

linux-next: build warning after merge of the btrfs-kdave tree

2017-05-17 Thread Stephen Rothwell
Hi David, After merging the btrfs-kdave tree, today's linux-next build (powerpc ppc64_defconfig) produced this warning: fs/btrfs/inode.c: In function 'btrfs_submit_direct': fs/btrfs/inode.c:8467:14: warning: 'bio' may be used uninitialized in this function [-Wmaybe-uninitialized] struct bio *b

[GIT PULL] hwmon fixes for v4.12-rc2

2017-05-17 Thread Guenter Roeck
Hi Linus, Please pull hwmon fixes for Linux v4.12-rc2 from signed tag: git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-for-linus-v4.12-rc2 Thanks, Guenter -- The following changes since commit 2ea659a9ef488125eb46da6eb571de5eae5c43f6: Linux 4.12-rc1 (201

Re: linux-next: unsigned commit in the ipmi tree

2017-05-17 Thread Corey Minyard
On 05/17/2017 05:17 PM, Stephen Rothwell wrote: Hi Corey, I noticed a commit with no Signed-off-by from you (as the committer) in the ipmi tree today: a40b8d591d4c ipmi_ssif: remove redundant null check on array client->adapter->name Please fix it up. Got it, thanks. -corey

Re: [PATCH] seq_file: delete small-value optimization

2017-05-17 Thread Joe Perches
On Wed, 2017-05-17 at 13:33 +0300, Alexey Dobriyan wrote: > > Joe Perches wrote: > > > > On Tue, 2017-05-16 at 23:42 +0300, Alexey Dobriyan wrote: > > > num_to_str() optimizes printing small integers [0..9], so the same > > > check higher in callchain is unnecessary. > > > > Doesn't the optimizat

Re: [PATCH] efi/libstub: Indicate clang the relocation mode for arm64

2017-05-17 Thread Greg Hackmann
On 05/11/2017 06:51 AM, Ard Biesheuvel wrote: [snip] In my opinion, the correct fix would be to make -fpie (as opposed to -fpic) imply hidden visibility, given that PIE executables don't export symbols in the first place, and so the preemption rules do not apply. It is worth a try whether -fpie w

Re: linux-next: build failure after merge of the netfilter tree

2017-05-17 Thread Stephen Rothwell
Hi Willem, On Wed, 17 May 2017 11:29:19 -0400 Willem de Bruijn wrote: > > Full patch out for review at http://patchwork.ozlabs.org/patch/763655/ I have used that in linux-next today instead of my cludge. -- Cheers, Stephen Rothwell

Re: [PATCH RFC 0/3] Improve stability of system clock

2017-05-17 Thread John Stultz
On Wed, May 17, 2017 at 10:22 AM, Miroslav Lichvar wrote: > On Wed, May 17, 2017 at 10:02:00AM -0700, John Stultz wrote: >> On Wed, May 17, 2017 at 9:57 AM, Miroslav Lichvar >> wrote: >> > On Wed, May 17, 2017 at 09:30:31AM -0700, John Stultz wrote: >> >> Could you submit your linux-tktest infra

Re: [PATCH] scsi: zero per-cmd driver data for each MQ I/O

2017-05-17 Thread Bart Van Assche
On Tue, 2017-05-16 at 17:31 +, Long Li wrote: > > -Original Message- > > From: Bart Van Assche [mailto:bart.vanass...@sandisk.com] > > Sent: Monday, May 15, 2017 5:01 PM > > To: j...@linux.vnet.ibm.com; linux-s...@vger.kernel.org; linux- > > ker...@vger.kernel.org; Long Li ; > > martin.

[PATCH] phy-rockchip-pcie: Mark phy_rd_cfg() as __maybe_unused

2017-05-17 Thread Matthias Kaehlcke
The function is not used, but is probably kept around for debugging and symmetry with phy_wr_cfg(). Adding the attribute fixes the following warning when building with clang: drivers/phy/phy-rockchip-pcie.c:102:19: error: unused function 'phy_rd_cfg' [-Werror,-Wunused-function] Signed-off-by:

[4.12 REGRESSION] pinctrl: rockchip: sleeping function called from atomic context

2017-05-17 Thread Brian Norris
Hi, Looks like we've added a mutex in the ->bus_lock() callback for Rockchip's pinctrl irqchip, which triggers a CONFIG_DEBUG_ATOMIC_SLEEP warning when entering system suspend: [ 151.406483] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:238 [ 151.420321] in_atomi

Re: [pwm] question about potential division by zero

2017-05-17 Thread Gustavo A. R. Silva
Hi Matthias, Quoting Matthias Brugger : On 16/05/17 23:56, Gustavo A. R. Silva wrote: Hello everybody, While looking into Coverity ID 1408721 I ran into the following piece of code at /drivers/pwm/pwm-mediatek.c:77: 77static int mtk_pwm_config(struct pwm_chip *chip, struct pwm_device *p

Re: [PATCH v6 3/5] test: add new driver_data load tester

2017-05-17 Thread Li, Yi
hi Luis On 5/11/2017 12:11 PM, Luis R. Rodriguez wrote: On Thu, May 11, 2017 at 07:46:27PM +0900, AKASHI Takahiro wrote: Luis, On Fri, Apr 28, 2017 at 03:45:35AM +0200, Luis R. Rodriguez wrote: +To test an async call one could do:: + +echo anything > /lib/firmware/test-driver_data.bi

[fs-btrfs] question about apparent useless function call

2017-05-17 Thread Gustavo A. R. Silva
Hello everybody, While looking into Coverity ID 1398149 I ran into the following piece of code at fs/btrfs/zlib.c:295: 295done: 296zlib_inflateEnd(&workspace->strm); 297if (data_in) 298kunmap(pages_in[page_in_index]); 299if (!ret) 300ze

[PATCH v4 2/3] usb: gadget: f_uac2: split out audio core

2017-05-17 Thread Ruslan Bilovol
Abstract the peripheral side ALSA sound card code from the f_uac2 function into a component that can be called by various functions, so the various flavors can be split apart and selectively reused. Visible changes: - add uac_params structure to pass audio paramteres for g_audio_setup - make

[PATCH v4 3/3] usb: gadget: add f_uac1 variant based on a new u_audio api

2017-05-17 Thread Ruslan Bilovol
This patch adds a new function 'f_uac1_acard' (f_uac1 with virtual "ALSA card") that uses recently created u_audio API. Comparing to legacy f_uac1 function implementation it doesn't require any real Audio codec to be present on the device. In f_uac1_acard audio streams are simply sinked to and sour

[PATCH v4 1/3] usb: gadget: f_uac2: remove platform driver/device creation

2017-05-17 Thread Ruslan Bilovol
Simplify f_uac2 by removing platform driver/device creation; use composite's usb_gadget device as parent for sound card and for debug prints. This removes extra layer of code without any functional change. Signed-off-by: Ruslan Bilovol --- drivers/usb/gadget/function/f_uac2.c | 107 +

[PATCH v4 0/3] USB Audio Gadget refactoring

2017-05-17 Thread Ruslan Bilovol
I came to this patch series when wanted to do two things: - use UAC1 as virtual ALSA sound card on gadget side, just like UAC2 is used so it's possible to do rate resampling - have both playback/capture support in UAC1 Since I wanted to have same behavior for both UAC1/UAC2, obviously I've

Re: linux-next: unsigned commits in the rcu tree

2017-05-17 Thread Paul E. McKenney
On Thu, May 18, 2017 at 08:14:17AM +1000, Stephen Rothwell wrote: > Hi Paul, > > I noticed a couple of commits in the rcu tree today that have no > Signed-off-by lines: > > 0eeaaea315cd fixup! rcu: Remove nohz_full full-system-idle state machine > cbe476cef633 fixup! rcu: Remove debugfs tracing >

Re: [PATCH v2 00/18] ARM64: meson: DT cleanups

2017-05-17 Thread Kevin Hilman
Hi Andreas, Andreas Färber writes: > Am 15.05.2017 um 10:16 schrieb Neil Armstrong: [...] >> >> It's not perfect, but now it's done, live with it, this has already been >> discussed. > > No. > > Copy&pasting your comment N times does not make it any more valid. My > files, my rules - I insis

[PATCH v1 1/2] dt-bindings: timeriomem_rng: Add entropy quality property

2017-05-17 Thread Rick Altherr
Signed-off-by: Rick Altherr --- Documentation/devicetree/bindings/rng/timeriomem_rng.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/rng/timeriomem_rng.txt b/Documentation/devicetree/bindings/rng/timeriomem_rng.txt index 6616d15866a3..214940093b5

[PATCH v1 2/2] hw_random: timeriomem_rng: Allow setting RNG quality from platform data

2017-05-17 Thread Rick Altherr
When a hw_random device's quality is non-zero, it will automatically be used to fill the kernel's entropy pool. Since timeriomem_rng is used by many different devices, the quality needs to be provided by platform data or device tree. Signed-off-by: Rick Altherr --- drivers/char/hw_random/timer

Re: [PATCH] crypto: x86/aes - Don't use %rbp as temporary register

2017-05-17 Thread Eric Biggers
On Wed, May 17, 2017 at 03:44:27PM -0500, Josh Poimboeuf wrote: > On Tue, May 16, 2017 at 09:03:08PM -0700, Eric Biggers wrote: > > From: Eric Biggers > > > > When using the "aes-asm" implementation of AES (*not* the AES-NI > > implementation) on an x86_64, v4.12-rc1 kernel with lockdep enabled,

[PATCH] r8152: Mark usb_ocp_read() as __maybe_unused

2017-05-17 Thread Matthias Kaehlcke
The function is not used, but is probably kept around for debugging and symmetry with usb_ocp_write(). Adding the attribute fixes the following clang warning: drivers/net/usb/r8152.c:825:5: error: unused function 'usb_ocp_read' [-Werror,-Wunused-function] Signed-off-by: Matthias Kaehlcke ---

Re: [PATCH v6 1/2] selinux: add brief info to policydb

2017-05-17 Thread Paul Moore
On Wed, May 17, 2017 at 1:09 PM, Sebastien Buisson wrote: > Add policybrief field to struct policydb. It holds a brief info > of the policydb, made of colon separated name and value pairs > that give information about how the policy is applied in the > security module(s). > Note that the ordering

[PATCH 2/2] mmc: core: Use device_property_read instead of of_property_read

2017-05-17 Thread David Woods
Using the device_property interfaces allows mmc drivers to work on platforms which run on either device tree or ACPI. Signed-off-by: David Woods Reviewed-by: Chris Metcalf Cc: sta...@vger.linux.org --- drivers/mmc/core/host.c | 72 - 1 file change

[PATCH 1/2] mmc: dw_mmc: Use device_property_read instead of of_property_read

2017-05-17 Thread David Woods
Using the device_property interfaces allows the dw_mmc driver to work on platforms which run on either device tree or ACPI. Signed-off-by: David Woods Reviewed-by: Chris Metcalf Cc: sta...@vger.linux.org --- drivers/mmc/host/dw_mmc.c | 24 1 file changed, 12 insertions(

linux-next: unsigned commit in the ipmi tree

2017-05-17 Thread Stephen Rothwell
Hi Corey, I noticed a commit with no Signed-off-by from you (as the committer) in the ipmi tree today: a40b8d591d4c ipmi_ssif: remove redundant null check on array client->adapter->name Please fix it up. -- Cheers, Stephen Rothwell

[PATCH] net1080: Mark nc_dump_ttl() as __maybe_unused

2017-05-17 Thread Matthias Kaehlcke
The function is not used, but it looks useful for debugging. Adding the attribute fixes the following clang warning: drivers/net/usb/net1080.c:271:20: error: unused function 'nc_dump_ttl' [-Werror,-Wunused-function] Signed-off-by: Matthias Kaehlcke --- drivers/net/usb/net1080.c | 2 +- 1 fi

Re: Build warning 'uninitialized variable' in fs/overlayfs

2017-05-17 Thread Amir Goldstein
On Wed, May 17, 2017 at 11:26 PM, Yury Norov wrote: > Hi Amir, > > (Sorry for new email, but I cannot find your patch in my mailbox, > though found it in next-20170517) > > Your patch 02cac3227a282 (ovl: mark upper dir with type origin entries > "impure") makes gcc

linux-next: unsigned commits in the rcu tree

2017-05-17 Thread Stephen Rothwell
Hi Paul, I noticed a couple of commits in the rcu tree today that have no Signed-off-by lines: 0eeaaea315cd fixup! rcu: Remove nohz_full full-system-idle state machine cbe476cef633 fixup! rcu: Remove debugfs tracing Please fix them up. -- Cheers, Stephen Rothwell

Re: [PATCH v5] PCI: Xilinx NWL: Modifying irq chip for legacy interrupts

2017-05-17 Thread Bjorn Helgaas
On Fri, Apr 14, 2017 at 08:34:32PM +0530, Bharat Kumar Gogada wrote: > - Adding spinlock for protecting legacy mask register > - Few wifi end points which only support legacy interrupts, > performs hardware reset functionalities after disabling interrupts > by invoking disable_irq and then re-enabl

[PATCH] um: Add mark_rodata_ro support.

2017-05-17 Thread Thomas Meyer
This is actually a no-op as all read-only should be read-only in the ELF. Signed-off-by: Thomas Meyer ---  arch/um/Kconfig.common | 1 +  arch/um/kernel/mem.c   | 5 -  2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/um/Kconfig.common b/arch/um/Kconfig.common index 85f6dd2..0

Re: [PATCH] Use device_property_read instead of of_property_read in the dw_mmc driver

2017-05-17 Thread David Woods
On 05/15/2017 09:30 AM, Andy Shevchenko wrote: On Mon, May 15, 2017 at 12:36 PM, Ulf Hansson wrote: On 25 April 2017 at 17:39, David Woods wrote: Using the device_property interfaces allows the dw_mmc driver to work on platforms which run on either device tree or ACPI. Can you please split t

[infiniband-hw-i40iw] question about identical code for different branches

2017-05-17 Thread Gustavo A. R. Silva
Hello everybody, While looking into Coverity ID 1362263 I ran into the following piece of code at drivers/infiniband/hw/i40iw/i40iw_virtchnl.c:445: 445if (vchnl_msg->iw_op_code == I40IW_VCHNL_OP_GET_VER) { 446if (vchnl_msg->iw_op_ver != I40IW_VCHNL_OP_GET_VER_V0) 447

Re: [PATCH 1/1] Drivers: hv: vmbus: Close timing hole that can corrupt per-cpu page Extend the disabling of preemption to include the hypercall so that another thread can't get the CPU and corrupt the

2017-05-17 Thread Joshua R. Poulson
This looks like a bugfix that should be included in stable. On Wed, May 17, 2017 at 3:00 PM, Stephen Hemminger wrote: > On Wed, 17 May 2017 14:40:55 -0700 > mikel...@exchange.microsoft.com wrote: > >> From: Michael Kelley >> >> Signed-off-by: Michael Kelley >> --- >> drivers/hv/hv.c |7 +++

Re: [PATCH] mm,oom: fix oom invocation issues

2017-05-17 Thread Tetsuo Handa
Roman Gushchin wrote: > On Wed, May 17, 2017 at 06:14:46PM +0200, Michal Hocko wrote: > > On Wed 17-05-17 16:26:20, Roman Gushchin wrote: > > [...] > > > [ 25.781882] Out of memory: Kill process 492 (allocate) score 899 or > > > sacrifice child > > > [ 25.783874] Killed process 492 (allocate)

Re: [PATCH 1/1] Drivers: hv: vmbus: Close timing hole that can corrupt per-cpu page Extend the disabling of preemption to include the hypercall so that another thread can't get the CPU and corrupt the

2017-05-17 Thread Stephen Hemminger
On Wed, 17 May 2017 14:40:55 -0700 mikel...@exchange.microsoft.com wrote: > From: Michael Kelley > > Signed-off-by: Michael Kelley > --- > drivers/hv/hv.c |7 ++- > 1 files changed, 6 insertions(+), 1 deletions(-) > > diff --git a/drivers/hv/hv.c b/drivers/hv/hv.c > index 12e7bae..47e

[PATCH][V2] dmaengine: bcm-scm-raid: remove redundant null check on req

2017-05-17 Thread Colin King
From: Colin Ian King Req is never null on at the point of the null check, so remove this redundant check and just return &req->tx. Detected by CoverityScan, CID#1436147 ("Logically dead code") Signed-off-by: Colin Ian King --- drivers/dma/bcm-sba-raid.c | 2 +- 1 file changed, 1 insertion(+),

Re: Hang/soft lockup in d_invalidate with simultaneous calls

2017-05-17 Thread Khazhismel Kumykov
On Mon, May 15, 2017 at 5:05 PM, Khazhismel Kumykov wrote: > Hi, > > I'm seeing behavior in d_invalidate, if multiple threads call d_invalidate on > the same tree at the same, behavior time blows up and all the calls hang with > large enough trees/enough simultaneous callers. (e.g. a directory w/

[PATCH 1/1] Drivers: hv: vmbus: Close timing hole that can corrupt per-cpu page Extend the disabling of preemption to include the hypercall so that another thread can't get the CPU and corrupt the per

2017-05-17 Thread mikelley
From: Michael Kelley Signed-off-by: Michael Kelley --- drivers/hv/hv.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/drivers/hv/hv.c b/drivers/hv/hv.c index 12e7bae..47ed538 100644 --- a/drivers/hv/hv.c +++ b/drivers/hv/hv.c @@ -82,9 +82,14 @@ int hv_post_messag

[net-realtek-btcoexist] question about identical code for different branches

2017-05-17 Thread Gustavo A. R. Silva
Hello everybody, While looking into Coverity ID 1362263 I ran into the following piece of code at drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c:1000: 1000void exhalbtc_set_ant_num(struct rtl_priv *rtlpriv, u8 type, u8 ant_num) 1001{ 1002if (BT_COEX_ANT_TYPE_PG == ty

Re: [RFC PATCH v2 11/17] cgroup: Implement new thread mode semantics

2017-05-17 Thread Tejun Heo
Hello, Waiman. On Mon, May 15, 2017 at 09:34:10AM -0400, Waiman Long wrote: > The current thread mode semantics aren't sufficient to fully support > threaded controllers like cpu. The main problem is that when thread > mode is enabled at root (mainly for performance reason), all the > non-threaded

Re: [PATCH v2 00/18] ARM64: meson: DT cleanups

2017-05-17 Thread Kevin Hilman
Hi Andreas, Andreas Färber writes: > This series fixes several cosmetic issues, on top of your for-next branch. > > Patches 3-6 rename a node, the rest should all be non-functional changes. > > PLEASE STOP merging random new nodes at the bottom of DT files! > Just like it's a convention to sort

Re: [RFC PATCH v2 10/17] cgroup: Make debug cgroup support v2 and thread mode

2017-05-17 Thread Tejun Heo
Hello, On Mon, May 15, 2017 at 09:34:09AM -0400, Waiman Long wrote: > Besides supporting cgroup v2 and thread mode, the following changes > are also made: > 1) current_* cgroup files now resides only at the root as we don't > need duplicated files of the same function all over the cgroup >

Re: [RFC PATCH 6/6] drm/i915/gvt: support QEMU getting the dmabuf

2017-05-17 Thread Alex Williamson
On Tue, 16 May 2017 10:16:28 + "Chen, Xiaoguang" wrote: > Hi Alex, > > >-Original Message- > >From: Alex Williamson [mailto:alex.william...@redhat.com] > >Sent: Tuesday, May 16, 2017 1:44 AM > >To: Chen, Xiaoguang > >Cc: Gerd Hoffmann ; Tian, Kevin ; > >intel-...@lists.freedesktop.o

Re: [PATCH 3/3] EDAC: mv64x60: replace in_le32/out_le32 with ioread32/iowrite32

2017-05-17 Thread Arnd Bergmann
On Wed, May 17, 2017 at 11:16 PM, Chris Packham wrote: > On 18/05/17 06:18, Borislav Petkov wrote: > One thing I would like confirmation on is is in_le32 -> ioread32 the > correct change? I tossed up between ioread32 and readl. Looking at > mv643xx_eth.c which supports both the MV643XX and Orion i

Re: [RFC PATCH v2 09/17] cgroup: Keep accurate count of tasks in each css_set

2017-05-17 Thread Tejun Heo
Hello, On Mon, May 15, 2017 at 09:34:08AM -0400, Waiman Long wrote: > The reference count in the css_set data structure was used as a > proxy of the number of tasks attached to that css_set. However, that > count is actually not an accurate measure especially with thread mode > support. So a new v

Re: [PATCH] powerpc/sequoia: fix NAND partitions not to overlap

2017-05-17 Thread Andrew Morton
On Wed, 17 May 2017 14:06:13 +0200 Pavel Machek wrote: > On Sun 2017-04-02 12:05:36, Pavel Machek wrote: > > Fix overlapping NAND partitions. > > > > Signed-off-by: Pavel Machek > > Ping? Two partitions at same place are bad news... Please expand on "bad news"? What are the runtime effects o

Re: [PATCH 3/4] x86/PCI: Enable a 64bit BAR on AMD Family 15h (Models 30h-3fh) Processors

2017-05-17 Thread Bjorn Helgaas
On Tue, Apr 25, 2017 at 03:01:35PM +0200, Christian König wrote: > Am 12.04.2017 um 18:55 schrieb Bjorn Helgaas: > >[SNIP] > >>>I think the specs would envision this being done via an ACPI _SRS > >>>method on the PNP0A03 host bridge device. That would be a more > >>>generic path that would work on

Re: [RFC PATCH v2 07/17] cgroup: Prevent kill_css() from being called more than once

2017-05-17 Thread Tejun Heo
On Wed, May 17, 2017 at 04:24:32PM -0400, Waiman Long wrote: > On 05/17/2017 03:23 PM, Tejun Heo wrote: > > Hello, > > > > On Mon, May 15, 2017 at 09:34:06AM -0400, Waiman Long wrote: > >> The kill_css() function may be called more than once under the condition > >> that the css was killed but not

Re: [RFC PATCH v2 08/17] cgroup: Move debug cgroup to its own file

2017-05-17 Thread Tejun Heo
Hello, Waiman. On Mon, May 15, 2017 at 09:34:07AM -0400, Waiman Long wrote: > The debug cgroup currently resides within cgroup-v1.c and is enabled > only for v1 cgroup. To enable the debug cgroup also for v2, it > makes sense to put the code into its own file as it will no longer > be v1 specific.

[PATCH net-next 6/6] net: bridge: add br_mdb_do

2017-05-17 Thread Vivien Didelot
Now that the two functions br_mdb_add and br_mdb_del are identical, keep a single function named br_mdb_do and register it for both RTM_NEWMDB and RTM_DELMDB message types. Signed-off-by: Vivien Didelot --- net/bridge/br_mdb.c | 61 + 1 file ch

[PATCH net-next 5/6] net: bridge: get msgtype from nlmsghdr in mdb ops

2017-05-17 Thread Vivien Didelot
Retrieve the message type from the nlmsghdr structure instead of hardcoding it in both br_mdb_add and br_mdb_del. Signed-off-by: Vivien Didelot --- net/bridge/br_mdb.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/net/bridge/br_mdb.c b/net/bridge/br_mdb.c index a

[PATCH net-next 4/6] net: bridge: add __br_mdb_do

2017-05-17 Thread Vivien Didelot
br_mdb_add and br_mdb_del call respectively __br_mdb_add and __br_mdb_del and notify the message type on success. Factorize this in a new __br_mdb_do function which add or delete a br_mdb_entry depending on the message type, then notify it. Note that the dev argument is p->br->dev, so no need to

[PATCH net-next 1/6] net: bridge: pass net_bridge_port to __br_mdb_add

2017-05-17 Thread Vivien Didelot
The __br_mdb_add function uses exactly the same mechanism as its caller br_mdb_add to retrieve the net_bridge_port pointer from br_mdb_entry. Remove it and pass directly the net_bridge_port pointer to __br_mdb_add. Signed-off-by: Vivien Didelot --- net/bridge/br_mdb.c | 18 -- 1

[PATCH net-next 2/6] net: bridge: check multicast bridge only once

2017-05-17 Thread Vivien Didelot
__br_mdb_add and __br_mdb_del both check that the bridge is up and running and that multicast is enabled on it before doing any operation. Since they can be called multiple times by br_mdb_add and br_mdb_del, move the check in their caller functions so that it is done just once. Signed-off-by: Vi

[PATCH net-next 3/6] net: bridge: break if __br_mdb_del fails

2017-05-17 Thread Vivien Didelot
Be symmetric with br_mdb_add and break if __br_mdb_del returns an error. Signed-off-by: Vivien Didelot --- net/bridge/br_mdb.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/net/bridge/br_mdb.c b/net/bridge/br_mdb.c index d20a01622b20..24fb4179 100644 --- a/net/brid

[PATCH net-next 0/6] net: bridge: factorize MDB new and del functions

2017-05-17 Thread Vivien Didelot
The br_mdb.c file implements both br_mdb_add and br_mdb_del functions, to handle respectively the RTM_NEWMDB and RTM_DELMDB message types. But these two functions are really similar. This patch series factorizes them into a single br_mdb_do rtnl_doit_func function to reduce boilerplate and simplif

[PATCH] clk: sunxi-ng: enable SUNXI_CCU_MP for PRCM

2017-05-17 Thread Arnd Bergmann
The newly added PRCM CCU driver uses SUNXI_CCU_MP_WITH_MUX_GATE, which causes a link error when no other driver enables SUNXI_CCU_MP: drivers/clk/built-in.o:(.data+0x5c8c8): undefined reference to `ccu_mp_ops' This adds an explicit 'select' statement for it. Signed-off-by: Arnd Bergmann --- dr

[PATCH] media: platform: coda: remove variable self assignment

2017-05-17 Thread Gustavo A. R. Silva
Remove variable self assignment. Addresses-Coverity-ID: 1408817 Signed-off-by: Gustavo A. R. Silva --- drivers/media/platform/coda/coda-common.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/platform/coda/coda-common.c b/drivers/media/platform/coda/coda-common.c index d523e99

Re: [patch V2 16/17] init: Introduce SYSTEM_SCHEDULING state

2017-05-17 Thread Boris Ostrovsky
On 05/16/2017 02:42 PM, Thomas Gleixner wrote: > might_sleep() debugging and smp_processor_id() debugging should be active > right after the scheduler starts working. The init task can invoke > smp_processor_id() from preemptible context as it is pinned on the boot cpu > until sched_smp_init() remo

Re: [PATCH 3/3] EDAC: mv64x60: replace in_le32/out_le32 with ioread32/iowrite32

2017-05-17 Thread Chris Packham
On 18/05/17 06:18, Borislav Petkov wrote: > Top-posting so that the PPC list can see the whole patch below. > > Since I don't know PPC, let me add PPC ML to CC for a confirmation this > change is correct. > > Which brings me to the tangential: this driver is from 2006-ish and > is for some "Marvell

Re: [PATCHv2] Make initramfs honor CONFIG_DEVTMPFS_MOUNT

2017-05-17 Thread Rob Landley
On 05/16/2017 10:58 PM, Michael Ellerman wrote: > Rob Landley writes: > >> diff --git a/init/main.c b/init/main.c >> index f866510..9ec09ff 100644 >> --- a/init/main.c >> +++ b/init/main.c >> @@ -1055,8 +1049,17 @@ static noinline void __init kernel_init_freeable(void) >> if (sys_access((c

[PATCH] um: Don't build arch/x86/um/user-offsets.s with gcc plugins

2017-05-17 Thread Thomas Meyer
For some reasons I don't know users-offsets.s get's build before the gcc-plugins itself. This patch fixes the problem by not using the gcc-plugins for building user-offsets.s make order example: $ make ARCH=um   CHK include/generated/uapi/linux/version.h   HOSTCC  scripts/basic/fixdep   HOSTCC

Re: [PATCH v5] of/pci: Fix memory leak in of_pci_get_host_bridge_resources

2017-05-17 Thread Bjorn Helgaas
On Wed, Apr 05, 2017 at 10:28:22AM +0800, Jeffy Chen wrote: > Currently we only free the allocated resource struct when error. > This would cause memory leak after pci_free_resource_list. I think I see the problem here. The release path is this: pci_release_host_bridge_dev pci_free_resourc

Re: [PATCH] ssb: Delete an error message for a failed memory allocation in ssb_devices_register()

2017-05-17 Thread Michael Büsch
On Wed, 17 May 2017 18:22:49 +0200 SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 17 May 2017 18:12:16 +0200 > > Omit an extra message for a memory allocation failure in this function. > > This issue was detected by using the Coccinelle software. > > Link: > http://events.linux

Re: [PATCH net-next V5 0/9] vhost_net rx batch dequeuing

2017-05-17 Thread Michael S. Tsirkin
On Wed, May 17, 2017 at 12:14:36PM +0800, Jason Wang wrote: > This series tries to implement rx batching for vhost-net. This is done > by batching the dequeuing from skb_array which was exported by > underlayer socket and pass the sbk back through msg_control to finish > userspace copying. This is

[PATCH v5] backlight: report error on failure

2017-05-17 Thread Sudip Mukherjee
It is possible to update the backlight power and the brightness using the sysfs and on writing it either returns the count or if the callback function does not exist then returns the error code 'ENXIO'. We have a situation where the userspace client is writing to the sysfs to update the power and

Re: [PATCH] char: ipmi: remove unnecessary code

2017-05-17 Thread Gustavo A. R. Silva
Hi Corey, Quoting Corey Minyard : On 05/15/2017 03:46 PM, Gustavo A. R. Silva wrote: The array field name in struct i2c_adapter is a fixed size array so it can never be NULL. This was already caught by Colin Ian King, a patch is already queued for this. Great, it's good to know. Thank

[net-intel-i40e] question about assignment overwrite

2017-05-17 Thread Gustavo A. R. Silva
Hello everybody, While looking into Coverity ID 1408956 I ran into the following piece of code at drivers/net/ethernet/intel/i40e/i40e_main.c:8807: 8807if (pf->hw.mac.type == I40E_MAC_X722) { 8808pf->flags |= I40E_FLAG_RSS_AQ_CAPABLE 8809 |

Re: [PATCH] crypto: x86/aes - Don't use %rbp as temporary register

2017-05-17 Thread Josh Poimboeuf
On Tue, May 16, 2017 at 09:03:08PM -0700, Eric Biggers wrote: > From: Eric Biggers > > When using the "aes-asm" implementation of AES (*not* the AES-NI > implementation) on an x86_64, v4.12-rc1 kernel with lockdep enabled, the > following warning was reported, along with a long unwinder dump: >

[PATCH] x86/tsc: fold set_cyc2ns_scale() into caller

2017-05-17 Thread Arnd Bergmann
The newly introduced wrapper function only has one caller, and this one is conditional, causing a harmless warning when CONFIG_CPU_FREQ is disabled: arch/x86/kernel/tsc.c:189:13: error: 'set_cyc2ns_scale' defined but not used [-Werror=unused-function] My first idea was to move the wrapper inside

Re: [1/5] w83627ehf: Use hwmon_device_register_with_info and sensor groups

2017-05-17 Thread Peter Huewe
Am 17. Mai 2017 21:35:52 MESZ schrieb Alexander Sverdlin : >Hello Peter! > >On 23/03/17 14:03, Peter Huewe wrote: >> This patch replaces the old, deprecated call to hwmon_device_register >> with the new hwmon_device_register_with_info and converts the whole >> driver to the new hwmon interface u

Re: [PATCH v3 5/9] usb: musb: tusb6010_omap: Create new struct for DMA data/parameters

2017-05-17 Thread Bin Liu
On Fri, May 12, 2017 at 04:57:48PM +0300, Peter Ujfalusi wrote: > For the DMA we have ch (channel), dmareq and sync_dev parameters both > within the tusb_omap_dma_ch and tusb_omap_dma_ch struct. one of the two "tusb_omap_dma_ch" should be "tusb_omap_dma". Regards, -Bin.

[PATCH] staging: wilc1000: Delete an error message for a failed memory allocation in Handle_Key()

2017-05-17 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 17 May 2017 22:26:07 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Sign

Re: [PATCH 1/2] PCI: dwc: kirin: add PCIe Driver for HiSilicon Kirin SoC

2017-05-17 Thread Arnd Bergmann
On Fri, May 12, 2017 at 3:51 AM, Song Xiaowei wrote: > From: songxiaowei Looks good overall, just a few details: Please fix your ~/.gitconfig to contain the same real name ("Song Xiaowei" instead of "songxiaowei") that you use for sending the emails. > + > +static int kirin_pcie_phy_init(struc

Re: [PATCH v5 18/32] x86, mpparse: Use memremap to map the mpf and mpc data

2017-05-17 Thread Tom Lendacky
On 5/16/2017 3:36 AM, Borislav Petkov wrote: On Tue, Apr 18, 2017 at 04:19:30PM -0500, Tom Lendacky wrote: The SMP MP-table is built by UEFI and placed in memory in a decrypted state. These tables are accessed using a mix of early_memremap(), early_memunmap(), phys_to_virt() and virt_to_phys().

Build warning 'uninitialized variable' in fs/overlayfs

2017-05-17 Thread Yury Norov
Hi Amir, (Sorry for new email, but I cannot find your patch in my mailbox, though found it in next-20170517) Your patch 02cac3227a282 (ovl: mark upper dir with type origin entries "impure") makes gcc warn on uninitialized variables in my arm64 build: fs/overlayfs/dir.c: In function ‘

[PATCH] perf tools: Add EXCLUDE_EXTLIBS and EXTRA_PERFLIBS to makefile

2017-05-17 Thread David Carrillo-Cisneros
The goal is to allow users to override linking of libraries that were automatically added to PERFLIBS. EXCLUDE_EXTLIBS contains linker flags to be removed from LIBS while EXTRA_PERFLIBS contains linker flags to be added. My use case is to force certain library to be build statically, e.g. for lib

Re: [RFC PATCH v2 07/17] cgroup: Prevent kill_css() from being called more than once

2017-05-17 Thread Waiman Long
On 05/17/2017 03:23 PM, Tejun Heo wrote: > Hello, > > On Mon, May 15, 2017 at 09:34:06AM -0400, Waiman Long wrote: >> The kill_css() function may be called more than once under the condition >> that the css was killed but not physically removed yet followed by the >> removal of the cgroup that is h

Re: [linux-sunxi] [RFC PATCH 06/11] drm: sun4i: add color space correction support for DE2 mixer

2017-05-17 Thread Jernej Škrabec
Hi, Dne sreda, 17. maj 2017 ob 18:43:49 CEST je Icenowy Zheng napisal(a): > The DE2 mixer can do color space correction needed by TV Encoder with > its DCSC sub-engine. > > Add support for it. > > Signed-off-by: Icenowy Zheng > --- > drivers/gpu/drm/sun4i/sun8i_mixer.c | 35 > +

Re: [linux-sunxi] [RFC PATCH 10/11] ARM: sun8i: h3: add display engine pipeline for TVE

2017-05-17 Thread Jernej Škrabec
Hi, Dne sreda, 17. maj 2017 ob 18:43:53 CEST je Icenowy Zheng napisal(a): > As we have already the support for the TV encoder on Allwinner H3, add > the display engine pipeline device tree nodes to its DTSI file. > > The H5 pipeline has some differences and will be enabled later. > > The current

Re: [PATCH v3 5/9] usb: musb: tusb6010_omap: Create new struct for DMA data/parameters

2017-05-17 Thread Bin Liu
On Fri, May 12, 2017 at 04:57:48PM +0300, Peter Ujfalusi wrote: > For the DMA we have ch (channel), dmareq and sync_dev parameters both > within the tusb_omap_dma_ch and tusb_omap_dma_ch struct. > By creating a common struct the code can be simplified when selecting > between the shared or multicha

Re: [PATCH 08/17] doc: ReSTify SELinux.txt

2017-05-17 Thread Paul Moore
On Sat, May 13, 2017 at 7:51 AM, Kees Cook wrote: > Adjusts for ReST markup and moves under LSM admin guide. > > Cc: Paul Moore > Signed-off-by: Kees Cook > --- > .../SELinux.txt => admin-guide/LSM/SELinux.rst}| 18 > -- > Documentation/admin-guide/LSM/index.rst

Re: drivers/net/hamradio: divide error in hdlcdrv_ioctl

2017-05-17 Thread Alan Cox
On Tue, 16 May 2017 17:05:32 +0200 Andrey Konovalov wrote: > Hi, > > I've got the following error report while fuzzing the kernel with syzkaller. > > On commit 2ea659a9ef488125eb46da6eb571de5eae5c43f6 (4.12-rc1). > > A reproducer and .config are attached. This should fix it. commit 37b3fa4b6

Re: [PATCH v3 3/9] usb: musb: tusb6010: Add MUSB_G_NO_SKB_RESERVE to quirks

2017-05-17 Thread Bin Liu
On Fri, May 12, 2017 at 04:57:46PM +0300, Peter Ujfalusi wrote: > When using the g_ncm for networking this flag will make sure that the > buffer is alligned to 32bit so the DMA can be used to offload the data s/alligned/aligned/ Regards, -Bin. > movement. > > Signed-off-by: Peter Ujfalusi > Te

Re: [PATCH] CIFS: check if pages is null rather than bv for a failed allocation

2017-05-17 Thread Pavel Shilovsky
2017-05-17 11:24 GMT-07:00 Colin King : > From: Colin Ian King > > pages is being allocated however a null check on bv is being used > to see if the allocation failed. Fix this by checking if pages is > null. > > Detected by CoverityScan, CID#1432974 ("Logically dead code") > > Fixes: ccf7f4088af2

Re: [RFC][PATCHSET] wait4()/waitid() cleanups

2017-05-17 Thread Eric W. Biederman
Al Viro writes: > This series switches compat wait4() and waitid() variants away > from set_fs() use. A couple of helpers (kernel_wait4() and kernel_waitid()) > are introduced, copying siginfo/rusage to userland is taken to sys_wait...(). > That allows both to simplify the guts of do_wait(

[PATCH] mtd: nand: fsl_ifc: fix handing of bit flips in erased pages

2017-05-17 Thread Pavel Machek
If we see unrecoverable ECC error, we need to count number of bitflips from all-ones and report correctable/uncorrectable according to that. Otherwise we report ECC failed on erased flash with single bit error. Signed-off-by: Pavel Machek diff --git a/drivers/mtd/nand/fsl_ifc_nand.c b/drivers/mt

Re: [PATCH v1 1/3] of: base: Provide of_graph_get_port_parent()

2017-05-17 Thread Kieran Bingham
On 17/05/17 17:36, Rob Herring wrote: > On Wed, May 17, 2017 at 10:03 AM, Kieran Bingham wrote: >> From: Kieran Bingham >> >> When handling endpoints, the v4l2 async framework needs to identify the >> parent device of a port endpoint. >> >> Adapt the existing of_graph_get_remote_port_parent() suc

[PATCH v5 2/5] dmi: Add a DMI firmware node and handling

2017-05-17 Thread minyard
From: Corey Minyard This is so that an IPMI platform device can be created from a DMI firmware entry. Signed-off-by: Corey Minyard Cc: Jean Delvare Cc: Andy Lutomirski Tested-by: Andy Lutomirski --- drivers/firmware/dmi_scan.c | 16 ++-- include/linux/dmi.h | 14

[PATCH v5 1/5] dmi: remove const from return of dmi_find_device

2017-05-17 Thread minyard
From: Corey Minyard A fwnode_handle is being added to dmi_device, and that will need to be updated. So remove the const. Signed-off-by: Corey Minyard Cc: Jean Delvare Cc: Andy Lutomirski Tested-by: Andy Lutomirski --- drivers/firmware/dmi_scan.c | 11 +-- include/linux/dmi.h

[PATCH v5 5/5] ipmi: Convert DMI handling over to a platform device

2017-05-17 Thread minyard
From: Corey Minyard Now that the DMI code creates a platform device for IPMI devices in the firmware, use that instead of handling all the DMI work in the IPMI driver itself. Signed-off-by: Corey Minyard Tested-by: Andy Lutomirski --- drivers/char/ipmi/ipmi_si_intf.c | 137 ---

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