Re: [RFC Patch 15/19] ACPI: Add field offset to struct resource_list_entry

2015-01-20 Thread Rafael J. Wysocki
On Thursday, January 08, 2015 10:33:02 AM Jiang Liu wrote: Add field offset to struct resource_list_entry to host address space translation offset so it could be used to represent bridge resources. Signed-off-by: Jiang Liu jiang@linux.intel.com --- drivers/acpi/resource.c | 13

Re: linux-next: Tree for Jan 20 -- Kernel panic - Unable to mount root fs

2015-01-20 Thread Al Viro
On Tue, Jan 20, 2015 at 07:14:46PM -0500, Paul Moore wrote: with the patch applied (+panic) and: stat(/dev/root) - 0 stat(dev) - 0 with the old version of do_path_lookup. Wait a minute ... at this early stage of boot, I'm pretty sure we don't have a valid

Re: [PATCH] Selinux/hooks.c: Fix a NULL pointer dereference caused by semop()

2015-01-20 Thread Stephen Smalley
On 01/20/2015 01:49 PM, Manfred Spraul wrote: Hi, On 01/20/2015 03:10 PM, Stephen Smalley wrote: On 01/20/2015 04:18 AM, Ethan Zhao wrote: A NULL pointer dereference was observed as following panic: BUG: unable to handle kernel NULL pointer dereference at (null) IP: [812735eb]

RE: [PATCH 1/1] drivers:hv:vmbus Allow for more than one MMIO range for children.

2015-01-20 Thread KY Srinivasan
-Original Message- From: Jake Oshins [mailto:ja...@microsoft.com] Sent: Tuesday, January 20, 2015 2:00 PM To: gre...@linuxfoundation.org; KY Srinivasan; linux- ker...@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; vkuzn...@redhat.com Cc: Jake

Re: Behaviour of smp_mb__{before,after}_spin* and acquire/release

2015-01-20 Thread Paul E. McKenney
On Tue, Jan 20, 2015 at 10:34:43AM +0100, Peter Zijlstra wrote: On Tue, Jan 13, 2015 at 04:33:54PM +, Will Deacon wrote: Hi Paul, I started dusting off a series I've been working to implement a relaxed atomic API in Linux (i.e. things like atomic_read(v, ACQUIRE)) but I'm having

Re: [PATCH V2 06/12] selftests, powerpc: Add test for system wide DSCR default

2015-01-20 Thread Dave Jones
On Wed, Jan 14, 2015 at 10:44:31AM +1100, Michael Ellerman wrote: Also, I would like to see the test results reports using kselftest.h - it can be separate patch in the interest of getting tests in. Sorry but kselftest.h doesn't do anything useful for us. We have existing test

[PATCH v2 0/4] x86: pmc_atom: Add Cherrytrail support

2015-01-20 Thread Andy Shevchenko
This is the reworked patch series which had been sent earlier [1] to support Intel CherryTrail SoC. The patches were tested on both BayTrail and CherryTrail SoCs. [1] https://patchwork.kernel.org/patch/5235891/ Changes to v1: - rebased on top of recent pmc_atom changes - cleaned up, reqorked

[PATCH v2 2/4] x86: pmc_atom: print index of device in loop

2015-01-20 Thread Andy Shevchenko
The register mapping may change from one platform to another. Thus, indices might be not the same on different platforms. The patch makes the code to print the device index dynamically at run time. The patch also changes the for loop to iterate over the map until a terminator is found.

[PATCH v2 1/4] x86: pmc_atom: save struct device pointer in pmc

2015-01-20 Thread Andy Shevchenko
The change allows to use dev_printk() type of macros in the module functions. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- arch/x86/kernel/pmc_atom.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/arch/x86/kernel/pmc_atom.c

[PATCH 3/3] IPVS: add wlib wlip schedulers

2015-01-20 Thread Chris Caputo
From: Chris Caputo ccap...@alt.net IPVS wlib (Weighted Least Incoming Byterate) and wlip (Weighted Least Incoming Packetrate) scheduler docs for ipvsadm-1.27. Signed-off-by: Chris Caputo ccap...@alt.net --- diff -upr ipvsadm-1.27-stock/SCHEDULERS ipvsadm-1.27/SCHEDULERS ---

Re: [RFC PATCH RESEND] vfs: Move security_inode_killpriv() after permission checks

2015-01-20 Thread Casey Schaufler
On 1/20/2015 3:17 PM, James Morris wrote: On Sat, 17 Jan 2015, Ben Hutchings wrote: chown() and write() should clear all privilege attributes on a file - setuid, setgid, setcap and any other extended privilege attributes. However, any attributes beyond setuid and setgid are managed by the

Re: [PATCH] clk: Export phase functions

2015-01-20 Thread Stephen Boyd
On 01/20/2015 01:23 PM, Maxime Ripard wrote: The phase setter and getter were not exported until now, which was causing build breakages when callers were compiled as module. Export these two functions. Reported-by: Arnd Bergmann a...@arndb.de Signed-off-by: Maxime Ripard

[git pull] drm fixes

2015-01-20 Thread Dave Airlie
Hi Linus, Just back from LCA + some days off, had some fixes from the past 2 weeks, some amdkfd code removal for a feature that wasn't ready, otherwise just one fix for core helper sleeping, exynos, i915, and radeon fixes. I thought I had some sti fixes but they were already in, and it

RE: [RFC PATCH] fs: file freeze support

2015-01-20 Thread Namjae Jeon
On Mon 19-01-15 22:07:01, Namjae Jeon wrote: When this state is set, any process which tries to modify the file's address space, either by pagefault mmap writes or using write(2), will block until the this state is cleared. I_WRITE_FREEZED is set by calling

Re: [PATCH v10 0/3] Per-user clock constraints

2015-01-20 Thread Stephen Boyd
On 01/20, Tomeu Vizoso wrote: A rough test module was used to test this: http://cgit.collabora.com/git/user/tomeu/linux.git/tree/drivers/misc/clk-test.c?h=per-user-clk-constraints-v10 Would it be possible to also send a patch for this? It would be nice to have some unit test module for

Re: [RFC Patch 12/19] ACPI: Enforce stricter checks for address space descriptors

2015-01-20 Thread Rafael J. Wysocki
On Thursday, January 08, 2015 10:32:59 AM Jiang Liu wrote: Enforce stricter checks for address space descriptors according to ACPI spec. So is the spec the only reason for doing this? If so, I'd say don't. Signed-off-by: Jiang Liu jiang@linux.intel.com --- drivers/acpi/resource.c |

Re: [GIT PULL] drm: Add Atmel HLCDC driver

2015-01-20 Thread Dave Airlie
Hi Boris, can you update with Thierry's acks and send again, I'll pull it then. Dave. On 17 January 2015 at 01:09, Thierry Reding thierry.red...@gmail.com wrote: On Fri, Jan 09, 2015 at 04:03:42PM +0100, Boris Brezillon wrote: Dave, Thierry, Here is the pull request for the Atmel HLCDC

Re: [PATCH 2/5] mtd: nand: Add qcom nand controller driver

2015-01-20 Thread Daniel Ehrenberg
On Fri, Jan 16, 2015 at 6:48 AM, Archit Taneja arch...@codeaurora.org wrote: +/* + * the bad block marker is readable only when we read the page with ECC + * disabled. all the read/write commands like NAND_CMD_READOOB, NAND_CMD_READ0 + * and NAND_CMD_PAGEPROG are executed in the driver with

[PATCH][v3] PCI / PM: Avoid resuming PCI devices during system suspend

2015-01-20 Thread Rafael J. Wysocki
From: Rafael J. Wysocki rafael.j.wyso...@intel.com Commit f25c0ae2b4c4 (ACPI / PM: Avoid resuming devices in ACPI PM domain during system suspend) modified the ACPI PM domain's system suspend callbacks to allow devices attached to it to be left in the runtime-suspended state during system suspend

Re: [alsa-devel] [PATCH 0/3] Add master mode, tmd and right-j mode support

2015-01-20 Thread Fabio Estevam
Hi Zidan, On Tue, Jan 20, 2015 at 10:21 AM, Zidan Wang zidan.w...@freescale.com wrote: Add sai master mode support. Add tdm slots support. Add Right-J mode support. Zidan Wang (3): SoC: fsl_sai: add sai master mode support ASoC: fsl_sai: Add support for tdm slots operation ASoC:

Re: [PATCH] kernel: Conditionally support non-root users, groups and capabilities

2015-01-20 Thread Casey Schaufler
On 1/20/2015 4:50 PM, Josh Triplett wrote: On Tue, Jan 20, 2015 at 04:05:00PM -0800, Casey Schaufler wrote: On 1/20/2015 3:33 PM, Iulia Manda wrote: There are a lot of embedded systems that run most or all of their functionality in init, running as root:root. For these systems, supporting

RE: [v3 00/26] Add VT-d Posted-Interrupts support

2015-01-20 Thread Wu, Feng
-Original Message- From: Wu, Feng Sent: Friday, December 12, 2014 11:15 PM To: t...@linutronix.de; mi...@redhat.com; h...@zytor.com; x...@kernel.org; g...@kernel.org; pbonz...@redhat.com; dw...@infradead.org; j...@8bytes.org; alex.william...@redhat.com; jiang@linux.intel.com

Re: RCU CPU stall console spews leads to soft lockup disabled is reasonable ?

2015-01-20 Thread Zhang Zhen
On 2015/1/20 23:25, Don Zickus wrote: On Tue, Jan 20, 2015 at 11:09:19AM +0800, Zhang Zhen wrote: Of course back then, touch_nmi_watchdog touched all cpus. So a problem like this was masked. I believe this upstream commit 62572e29bc53, solved the problem. Thanks for your suggestion.

[PATCH v2 07/30] PCI: Pass PCI domain number combined with root bus number

2015-01-20 Thread Yijing Wang
Now we could pass PCI domain combined with bus number in u32 argu. Because in arm/arm64, PCI domain number is assigned by pci_bus_assign_domain_nr(). So we leave pci_scan_root_bus() and pci_create_root_bus() in arm/arm64 unchanged. A new function pci_host_assign_domain_nr() will be introduced for

Re: [RFC Patch 09/19] ACPI: Fix a bug in parsing ACPI Memroy24 resource

2015-01-20 Thread Rafael J. Wysocki
On Wednesday, January 21, 2015 10:15:01 AM Jiang Liu wrote: On 2015/1/21 8:42, Rafael J. Wysocki wrote: On Thursday, January 08, 2015 10:32:56 AM Jiang Liu wrote: According to ACPI spec 5, section 6.4.3.1 24-Bit Memory Range Descriptor, minimum, maximum and address_length field in struct

[PATCH v2 20/30] PCI/sparc: Use pci_scan_root_bridge() for simplicity

2015-01-20 Thread Yijing Wang
Now we could use pci_scan_root_bridge() to scan pci buses, provide sparc specific pci_host_bridge_ops. Signed-off-by: Yijing Wang wangyij...@huawei.com CC: David S. Miller da...@davemloft.net CC: sparcli...@vger.kernel.org --- arch/sparc/kernel/pci.c | 32 ++-- 1

[PATCH v2 24/30] PCI/tegra: Remove redundant tegra_pcie_scan_bus()

2015-01-20 Thread Yijing Wang
Now pci_scan_root_bus() is almost simliar to pci_create_root_bus() + pci_scan_child_bus(). So we could use common pci_scan_root_bus() in pci_common_init_dev() to scan pci busses. tegra_pcie_scan_bus() is redundant, remove it. Signed-off-by: Yijing Wang wangyij...@huawei.com CC: Thierry Reding

Re: [PATCH] net: dsa: set parent of hwmon device

2015-01-20 Thread Guenter Roeck
On 01/20/2015 04:13 PM, Vivien Didelot wrote: Set the dsa device as the parent of the hwmon device, in order to link the hwmon subsystem under the corresponding /sys/devices/platform/dsa.X/ sysfs directory. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- net/dsa/dsa.c |

Re: [RFC Patch 09/19] ACPI: Fix a bug in parsing ACPI Memroy24 resource

2015-01-20 Thread Jiang Liu
On 2015/1/21 10:59, Rafael J. Wysocki wrote: On Wednesday, January 21, 2015 10:15:01 AM Jiang Liu wrote: On 2015/1/21 8:42, Rafael J. Wysocki wrote: On Thursday, January 08, 2015 10:32:56 AM Jiang Liu wrote: According to ACPI spec 5, section 6.4.3.1 24-Bit Memory Range Descriptor, minimum,

[PATCH 4/6] adapt choose_kernel_location to add the kernel virtual address randomzation

2015-01-20 Thread Baoquan He
For kernel virtual address, need set LOAD_PHYSICAL_ADDR to be the default offset if randomization failed. Because it will be used to check whether a relocation handling need be done for x86_64 kaslr. Signed-off-by: Baoquan He b...@redhat.com --- arch/x86/boot/compressed/aslr.c | 32

[PATCH 6/6] extend the upper limit of kernel physical address randomization to 4G

2015-01-20 Thread Baoquan He
Since now kaslr can separately do randomization of physical and virtual address, the physical address doesn't have to be CONFIG_RANDOMIZE_BASE_MAX_OFFSET any more. At this time the identity mapping only covers [0, 4G], so extend the upper limit of kernel physical address randomization to 4G.

[PATCH 2/6] a bug that relocation can not be handled when kernel is loaded above 2G

2015-01-20 Thread Baoquan He
When process 32 bit relocation a local variable extended is defined to calculate the physical address of relocs entry. However its data type is int which is enough for i386, but not for x86_64. That's why relocation can only be handled when kernel is loaded below 2G, otherwise a overflow will

[PATCH 5/6] change the relocations behavior for kaslr on x86_64

2015-01-20 Thread Baoquan He
On x86_64, in old kaslr implementaion only physical address of kernel loading is randomized. Then calculate the delta of physical address where vmlinux was linked to load and where it is finally loaded. If delta is not equal to 0, namely there's a new physical address where kernel is actually

[PATCH 3/6] Introduce a function to randomize the kernel text mapping address

2015-01-20 Thread Baoquan He
Kaslr extended kernel text mapping region size from 512M to 1G, namely CONFIG_RANDOMIZE_BASE_MAX_OFFSET. This means kernel text can be mapped to below region: __START_KERNEL_map + LOAD_PHYSICAL_ADDR, __START_KERNEL_map + 1G] Introduce a function find_random_virt_offset() to get random value

[PATCH 0/6] randomize kernel physical address and virtual address separately

2015-01-20 Thread Baoquan He
Currently kaslr only randomize physical address of kernel loading, then add the delta to virtual address of kernel text mapping. Because kernel virtual address can only be from __START_KERNEL_map to LOAD_PHYSICAL_ADDR+CONFIG_RANDOMIZE_BASE_MAX_OFFSET, namely [0x8000,

[PATCH 1/6] remove a unused function parameter

2015-01-20 Thread Baoquan He
Make a clean up to simplify the later change. Signed-off-by: Baoquan He b...@redhat.com --- arch/x86/boot/compressed/aslr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/boot/compressed/aslr.c b/arch/x86/boot/compressed/aslr.c index bb13763..9a7210c 100644 ---

Re: linux-next: Tree for Jan 20 -- Kernel panic - Unable to mount root fs

2015-01-20 Thread Al Viro
On Tue, Jan 20, 2015 at 06:44:34PM -0800, Guenter Roeck wrote: The shit hits the fan earlier - when we end up missing /dev. There are two places where it could've been created (depending on CONFIG_BLK_DEV_INITRD); sys_mkdir(collected, mode); in init/initramfs.c (line 353 in linux-next)

Re: [PATCH] kernel: Conditionally support non-root users, groups and capabilities

2015-01-20 Thread Josh Triplett
On Tue, Jan 20, 2015 at 05:23:06PM -0800, Casey Schaufler wrote: On 1/20/2015 4:50 PM, Josh Triplett wrote: On Tue, Jan 20, 2015 at 04:05:00PM -0800, Casey Schaufler wrote: On 1/20/2015 3:33 PM, Iulia Manda wrote: There are a lot of embedded systems that run most or all of their

Re: [PATCH] media: i2c: add new driver for single string flash.

2015-01-20 Thread Daniel Jeong
Hi. On Mon, 2015-01-19 at 17:25 +0900, Daniel Jeong wrote: This patch adds the driver for the single string flash products of TI. Several single string flash controllers of TI have similar register map and bit data. This driver supports four products,lm3556, lm3561, lm3642 and lm3648. Why not

Re: [RFC Patch 09/19] ACPI: Fix a bug in parsing ACPI Memroy24 resource

2015-01-20 Thread Jiang Liu
On 2015/1/21 8:42, Rafael J. Wysocki wrote: On Thursday, January 08, 2015 10:32:56 AM Jiang Liu wrote: According to ACPI spec 5, section 6.4.3.1 24-Bit Memory Range Descriptor, minimum, maximum and address_length field in struct acpi_resource_memory24 is in granularity of 256-bytes. So shift

[PATCH v2 23/30] PCI/mvebu: Use pci_common_init_dev() to simplify code

2015-01-20 Thread Yijing Wang
Mvebu_pcie_scan_bus() is not necessary, we could use pci_common_init_dev() instead of pci_common_init(), and pass the device pointer as the parent. Then pci_scan_root_bus() will be called to scan the pci busses. Signed-off-by: Yijing Wang wangyij...@huawei.com CC: Thomas Petazzoni

[PATCH v2 22/30] PCI/Parisc: Use pci_scan_root_bus() for simplicity

2015-01-20 Thread Yijing Wang
From: Yijing Wang wangyijing0...@gmail.com Now pci_bus_add_devices() has been ripped out from pci_scan_root_bus(), we could use pci_scan_root_bus() instead of pci_create_root_bus() + pci_scan_child_bus() for simplicity. We could also remove the pci bus resource(dino_current_bus,255) and

[PATCH v2 17/30] PCI/powerpc: Rename pcibios_root_bridge_prepare()

2015-01-20 Thread Yijing Wang
Pcibios_root_bridge_prepare() in powerpc is used to set root bus speed. Rename it to pcibios_set_root_bus_speed() for better readability. Signed-off-by: Yijing Wang wangyij...@huawei.com CC: Benjamin Herrenschmidt b...@kernel.crashing.org CC: linuxppc-...@lists.ozlabs.org ---

[PATCH v2 28/30] PCI: Export find_pci_host_bridge()

2015-01-20 Thread Yijing Wang
Export find_pci_host_bridge(). Signed-off-by: Yijing Wang wangyij...@huawei.com --- drivers/pci/host-bridge.c |2 +- include/linux/pci.h |1 + 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/pci/host-bridge.c b/drivers/pci/host-bridge.c index 26cefce..288ac69

[PATCH v2 03/30] xen/PCI: Don't use deprecated function pci_scan_bus_parented()

2015-01-20 Thread Yijing Wang
From: Arnd Bergmann a...@arndb.de Use pci_scan_root_bus() instead of deprecated function pci_scan_bus_parented(). Signed-off-by: Arnd Bergmann a...@arndb.de Signed-off-by: Yijing Wang wangyij...@huawei.com CC: Konrad Rzeszutek Wilk konrad.w...@oracle.com CC: xen-de...@lists.xenproject.org ---

[PATCH v2 06/30] PCI: Combine PCI domain and bus number in u32 arg

2015-01-20 Thread Yijing Wang
Currently, we use int type for bus number in pci_create_root_bus(), pci_scan_root_bus() and pci_scan_bus_legacy. Because PCI bus number always = 255, so we could change the bus number argument type to u32, and combine PCI domain and bus number in one. Also add a domain member in pci_host_bridge to

[PATCH v2 01/30] PCI: Rip out pci_bus_add_devices() from pci_scan_bus()

2015-01-20 Thread Yijing Wang
Pci_bus_add_devices() should not be placed in pci_scan_bus(). Now pci device will be added to driver core once its creation. All things left in pci_bus_add_devices() are driver attachment and other trivial sysfs things. Pci_scan_bus() should be the function responsible for scanning PCI devices,

Re: linux-next: Tree for Jan 20 -- Kernel panic - Unable to mount root fs

2015-01-20 Thread Guenter Roeck
On 01/20/2015 04:41 PM, Al Viro wrote: The shit hits the fan earlier - when we end up missing /dev. There are two places where it could've been created (depending on CONFIG_BLK_DEV_INITRD); sys_mkdir(collected, mode); in init/initramfs.c (line 353 in linux-next) and err =

Re: [PATCH] drm/rockchip: fix dma_alloc_attrs() error check

2015-01-20 Thread Daniel Kurtz
Mark: did you get a chance to fixup the Reported-by line? It's not a bit deal if you didn't. Dave: did you pick up this pull request? Did Mark request properly? On Fri, Jan 9, 2015 at 12:01 PM, Daniel Kurtz djku...@chromium.org wrote: On Wed, Jan 7, 2015 at 5:27 PM, Daniel Kurtz

Re: linux-next: Tree for Jan 20

2015-01-20 Thread Guenter Roeck
On 01/20/2015 02:54 PM, Kirill A. Shutemov wrote: On Tue, Jan 20, 2015 at 12:26:42PM -0800, Guenter Roeck wrote: --- sparc: # bad: [5d0ee6f76de160f7d7f9dc0b64a98ad9b8e9] Add linux-next specific files for 20150120 # good: [ec6f34e5b552fb0a52e6aae1a5afbbb1605cc6cc] Linux 3.19-rc5 git bisect

Re: [PATCH] ksoftirqd: Enable IRQs and call cond_resched() before poking RCU

2015-01-20 Thread Paul E. McKenney
On Wed, Jan 21, 2015 at 04:40:39AM +0100, Mike Galbraith wrote: On Tue, 2015-01-20 at 12:30 -0800, Paul E. McKenney wrote: On Tue, Jan 20, 2015 at 02:21:51PM +0100, Thomas Gleixner wrote: diff --git a/kernel/softirq.c b/kernel/softirq.c index 501baa9..9e787d8 100644 ---

RE: [E1000-devel] [PATCH 1/2] if_link: Add VF multicast promiscuous mode control

2015-01-20 Thread Hiroshi Shimamoto
Subject: RE: [E1000-devel] [PATCH 1/2] if_link: Add VF multicast promiscuous mode control -Original Message- From: Hiroshi Shimamoto [mailto:h-shimam...@ct.jp.nec.com] Sent: Tuesday, January 20, 2015 3:40 PM To: Bjørn Mork Cc: e1000-de...@lists.sourceforge.net;

[PATCH v11 1/2] crypto: AF_ALG: add AEAD support

2015-01-20 Thread Stephan Mueller
This patch adds the AEAD support for AF_ALG. The implementation is based on algif_skcipher, but contains heavy modifications to streamline the interface for AEAD uses. To use AEAD, the user space consumer has to use the salg_type named aead. The AEAD implementation includes some overhead to

Re: [patch 00/23] x86: Cleanup apic/ioapic/x2apic setup code

2015-01-20 Thread Jiang Liu
On 2015/1/16 19:05, Thomas Gleixner wrote: On Fri, 16 Jan 2015, Thomas Gleixner wrote: On Fri, 16 Jan 2015, Jiang Liu wrote: 5) x86_32, UP, IO_APIC disabled 5.1) boot: panic with following call stack: do_ono_initcall()-APIC_init_uniprocessor()-setup_local_APIC(). I can't capture the full log

[PATCH V3] regulator: da9211: Add gpio control for enable/disable of buck

2015-01-20 Thread James Ban
This is a patch for adding gpio control about enable/disable of buck. Signed-off-by: James Ban james.ban.opensou...@diasemi.com --- This patch is relative to linux-next repository tag next-20150120. Changes in V3: - align with next-20150120. - remove warn message. Changes in V2: - gpio name

[PATCH v2 02/30] PCI: Rip out pci_bus_add_devices() from pci_scan_root_bus()

2015-01-20 Thread Yijing Wang
Just like pci_scan_bus(), we also should rip out pci_bus_add_devices() from pci_scan_root_bus(). Lots platforms first call pci_scan_root_bus(), but after that, they call pci_bus_size_bridges() and pci_bus_assign_resources(). Place pci_bus_add_devices() in pci_scan_root_bus() hurts PCI scan logic.

[PATCH v2 21/30] PCI: Introduce pci_bus_child_max_busnr()

2015-01-20 Thread Yijing Wang
Sometimes, we need to know the highest reserved busnr for children bus. Because parent's bus-busn_res could have padding in it. This function return the max child busnr as pci_scan_child_bus(). Signed-off-by: Yijing Wang wangyij...@huawei.com --- drivers/pci/hotplug/acpiphp_glue.c | 29

Re: rcu, sched: WARNING: CPU: 30 PID: 23771 at kernel/rcu/tree_plugin.h:337 rcu_read_unlock_special+0x369/0x550()

2015-01-20 Thread Paul E. McKenney
On Tue, Jan 20, 2015 at 10:39:37AM -0500, Sasha Levin wrote: On 01/18/2015 06:22 PM, Paul E. McKenney wrote: On Sun, Jan 18, 2015 at 09:17:40AM -0500, Sasha Levin wrote: Hi Paul, Lai, While fuzzing with trinity inside a KVM tools guest running the latest -next kernel, I've

Re: [PATCH 3/3] powerpc: Include linux/jump_label.h to get HAVE_JUMP_LABEL define

2015-01-20 Thread Anton Blanchard
Hi Jason, diff --git a/arch/powerpc/platforms/pseries/lpar.c b/arch/powerpc/platforms/pseries/lpar.c index 469751d..14ac1ad 100644 --- a/arch/powerpc/platforms/pseries/lpar.c +++ b/arch/powerpc/platforms/pseries/lpar.c @@ -27,6 +27,7 @@ #include linux/console.h #include

[PATCH] power: max77693: fix simple_return.cocci warnings

2015-01-20 Thread kbuild test robot
drivers/power/max77693_charger.c:615:1-4: WARNING: end returns can be simpified Simplify a trivial if-return sequence. Possibly combine with a preceding function call. Generated by: scripts/coccinelle/misc/simple_return.cocci CC: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by:

[PATCH] power: max77693: fix platform_no_drv_owner.cocci warnings

2015-01-20 Thread kbuild test robot
drivers/power/max77693_charger.c:747:3-8: No need to set .owner here. The core will do it. Remove .owner field if calls are used which set it automatically Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci CC: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Fengguang

Re: [PATCHv3 2/8] devfreq: exynos: Add documentation for generic exynos memory bus frequency driver

2015-01-20 Thread Chanwoo Choi
On 01/21/2015 12:17 PM, Viresh Kumar wrote: On 20 January 2015 at 17:07, Chanwoo Choi cw00.c...@samsung.com wrote: If each bus-block has separate regulator independently, each bus-block can be registered separately. But, exynos bus-blocks in mem-bus-group share the same regulator. This can

Re: [PATCH 0/6] randomize kernel physical address and virtual address separately

2015-01-20 Thread Andy Lutomirski
On 01/20/2015 07:37 PM, Baoquan He wrote: Currently kaslr only randomize physical address of kernel loading, then add the delta to virtual address of kernel text mapping. Because kernel virtual address can only be from __START_KERNEL_map to

[PATCH] mm/slub: use unchecked percpu access within preemptible sections

2015-01-20 Thread Sasha Levin
Commit mm/slub: optimize alloc/free fastpath by removing preemption on/off has added access to percpu memory while the code is preemptible. While those accesses are okay, this creates a huge amount of warnings from the code that checks for that. Signed-off-by: Sasha Levin sasha.le...@oracle.com

Re: [PATCH 0/6] randomize kernel physical address and virtual address separately

2015-01-20 Thread Baoquan He
On 01/20/15 at 08:19pm, Andy Lutomirski wrote: On 01/20/2015 07:37 PM, Baoquan He wrote: Currently kaslr only randomize physical address of kernel loading, then add the delta to virtual address of kernel text mapping. Because kernel virtual address can only be from __START_KERNEL_map

Re: [PATCH RFC 5/6] epoll: Add implementation for epoll_mod_wait

2015-01-20 Thread Fam Zheng
On Tue, 01/20 13:50, Michael Kerrisk (man-pages) wrote: Hello Fam Zheng, On 01/20/2015 10:57 AM, Fam Zheng wrote: This syscall is a sequence of 1) a number of epoll_ctl calls 2) a epoll_pwait, with timeout enhancement. The epoll_ctl operations are embeded so that application

Re: [RFC Patch 12/19] ACPI: Enforce stricter checks for address space descriptors

2015-01-20 Thread Jiang Liu
On 2015/1/21 8:45, Rafael J. Wysocki wrote: On Thursday, January 08, 2015 10:32:59 AM Jiang Liu wrote: Enforce stricter checks for address space descriptors according to ACPI spec. So is the spec the only reason for doing this? If so, I'd say don't. Hi Rafael, Yes, it's just for

Re: [RFC Patch 12/19] ACPI: Enforce stricter checks for address space descriptors

2015-01-20 Thread Rafael J. Wysocki
On Wednesday, January 21, 2015 10:18:25 AM Jiang Liu wrote: On 2015/1/21 8:45, Rafael J. Wysocki wrote: On Thursday, January 08, 2015 10:32:59 AM Jiang Liu wrote: Enforce stricter checks for address space descriptors according to ACPI spec. So is the spec the only reason for doing

[PATCH v2 19/30] PCI: Remove weak pcibios_root_bridge_prepare()

2015-01-20 Thread Yijing Wang
Now no one use weak pcibios_root_bridge_prepare(), we could remove it. Signed-off-by: Yijing Wang wangyij...@huawei.com --- drivers/pci/probe.c | 15 --- include/linux/pci.h |2 -- 2 files changed, 0 insertions(+), 17 deletions(-) diff --git a/drivers/pci/probe.c

[PATCH v2 12/30] PCI: Introduce pci_host_bridge_ops to support host specific operations

2015-01-20 Thread Yijing Wang
Now we have weak functions like pcibios_root_bridge_prepare() to setup pci host bridge, We could introduce pci_host_bridge_ops which contain host bridge specific ops to setup pci_host_bridge. Then host bridge driver could add pci_host_bridge_ops hooks intead of weak function to setup

[PATCH v2 08/30] PCI: Introduce pci_host_assign_domain_nr() to assign domain

2015-01-20 Thread Yijing Wang
Introduce pci_host_assign_domain_nr() to assign domain number for pci_host_bridge. Later we will remove pci_bus_assign_domain_nr(). Signed-off-by: Yijing Wang wangyij...@huawei.com --- drivers/pci/pci.c | 14 +++--- include/linux/pci.h |4 2 files changed, 15 insertions(+),

[PATCH v2 13/30] PCI: Introduce new scan function pci_scan_root_bridge()

2015-01-20 Thread Yijing Wang
Introduce new scan function pci_scan_root_bridge() to support host bridge drivers that need to provide platform own pci_host_bridge_ops. Signed-off-by: Yijing Wang wangyij...@huawei.com --- drivers/pci/probe.c | 21 + include/linux/pci.h |3 +++ 2 files changed, 24

[PATCH v2 04/30] PCI: Remove deprecated pci_scan_bus_parented()

2015-01-20 Thread Yijing Wang
No one uses pci_scan_bus_parented() any more, remove it. Signed-off-by: Yijing Wang wangyij...@huawei.com --- drivers/pci/probe.c | 19 --- include/linux/pci.h |2 -- 2 files changed, 0 insertions(+), 21 deletions(-) diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c

[PATCH v2 10/30] PCI: Introduce pci_host_bridge_list to manage host bridges

2015-01-20 Thread Yijing Wang
Introduce pci_host_bridge_list to manage pci host bridges in system, so we could detect whether the host in domain:bus is alreay registered. Then we could remove bus alreay exist test in __pci_create_root_bus(). Signed-off-by: Yijing Wang wangyij...@huawei.com --- drivers/pci/host-bridge.c |

Re: [PATCH v3 1/3] Drivers: hv: check vmbus_device_create() return value in vmbus_process_offer()

2015-01-20 Thread Jason Wang
On Tue, Jan 20, 2015 at 11:45 PM, Vitaly Kuznetsov vkuzn...@redhat.com wrote: vmbus_device_create() result is not being checked in vmbus_process_offer() and it can fail if kzalloc() fails. Add the check and do minor cleanup to avoid additional duplication of free_channel(); return; block.

Re: [PATCH v3 2/3] Drivers: hv: rename sc_lock to the more generic lock

2015-01-20 Thread Jason Wang
On Tue, Jan 20, 2015 at 11:45 PM, Vitaly Kuznetsov vkuzn...@redhat.com wrote: sc_lock spinlock in struct vmbus_channel is being used to not only protect the sc_list field, e.g. vmbus_open() function uses it to implement test-and-set access to the state field. Rename it to the more generic

Re: [PATCH] ksoftirqd: Enable IRQs and call cond_resched() before poking RCU

2015-01-20 Thread Mike Galbraith
On Tue, 2015-01-20 at 12:30 -0800, Paul E. McKenney wrote: On Tue, Jan 20, 2015 at 02:21:51PM +0100, Thomas Gleixner wrote: diff --git a/kernel/softirq.c b/kernel/softirq.c index 501baa9..9e787d8 100644 --- a/kernel/softirq.c +++ b/kernel/softirq.c @@ -656,9 +656,13 @@ static

linux-next: build failure after merge of the block tree

2015-01-20 Thread Stephen Rothwell
Hi Jens, After merging the block tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/staging/lustre/lustre/llite/llite_lib.c: In function 'll_read_inode2': drivers/staging/lustre/lustre/llite/llite_lib.c:1774:18: error: 'struct address_space' has no member named

linux-next: tidy up of trees

2015-01-20 Thread Stephen Rothwell
Hi all, [affected tree contacts are bcc'd on this email] I have decided to do a bit of a tidy up of the trees in linux-next and my first pass is to remove any tree that has not been updated on over a year (since next-20140120). The following 29 trees have been removed today (of these, 13 have

[RFCv2 0/2] dma-parms, constraints and helpers for dma-buf

2015-01-20 Thread Sumit Semwal
Hello Everyone, Based on review comments received, I've split my earlier patchset on 'dma-buf constraints-enabled allocation' [1] into 2 sets: - first one is this one, to use dma_parms and related parameters from struct device to share constraints, and then to use these constraints in

[RFCv2 1/2] device: add dma_params-max_segment_count

2015-01-20 Thread Sumit Semwal
From: Rob Clark robdcl...@gmail.com For devices which have constraints about maximum number of segments in an sglist. For example, a device which could only deal with contiguous buffers would set max_segment_count to 1. The initial motivation is for devices sharing buffers via dma-buf, to allow

[RFCv2 2/2] dma-buf: add helpers for sharing attacher constraints with dma-parms

2015-01-20 Thread Sumit Semwal
Add some helpers to share the constraints of devices while attaching to the dmabuf buffer. At each attach, the constraints are calculated based on the following: - dma_mask, coherent_dma_mask from struct device, - max_segment_size, max_segment_count, segment_boundary_mask from

Re: perf fuzzer crash [PATCH] perf: Get group events reference before moving the group

2015-01-20 Thread Paul E. McKenney
On Tue, Jan 20, 2015 at 02:35:09PM +, Mark Rutland wrote: On Tue, Jan 20, 2015 at 01:39:47PM +, Mark Rutland wrote: On Mon, Jan 19, 2015 at 05:40:09PM +, Mark Rutland wrote: On Mon, Jan 19, 2015 at 02:40:28PM +, Mark Rutland wrote: On Fri, Jan 16, 2015 at 02:11:04PM

Re: [PATCH] crypto: aesni: add setkey for driver-gcm-aes-aesni

2015-01-20 Thread Stephan Mueller
Am Dienstag, 20. Januar 2015, 14:17:04 schrieb Herbert Xu: Hi Tadeusz, On Sun, Jan 18, 2015 at 11:56:03PM +0100, Stephan Mueller wrote: The cipher registered as __driver-gcm-aes-aesni is never intended to be used directly by any caller. Instead it is a service mechanism to

RE: [E1000-devel] [PATCH 1/2] if_link: Add VF multicast promiscuous mode control

2015-01-20 Thread Skidmore, Donald C
-Original Message- From: Hiroshi Shimamoto [mailto:h-shimam...@ct.jp.nec.com] Sent: Tuesday, January 20, 2015 5:07 PM To: Skidmore, Donald C; Bjørn Mork Cc: e1000-de...@lists.sourceforge.net; net...@vger.kernel.org; Choi, Sy Jong; linux-kernel@vger.kernel.org; Hayato Momma

Re: [PATCH] Selinux/hooks.c: Fix a NULL pointer dereference caused by semop()

2015-01-20 Thread ethan zhao
Stephen, On 2015/1/21 2:49, Manfred Spraul wrote: Hi, On 01/20/2015 03:10 PM, Stephen Smalley wrote: On 01/20/2015 04:18 AM, Ethan Zhao wrote: A NULL pointer dereference was observed as following panic: BUG: unable to handle kernel NULL pointer dereference at (null) IP: [812735eb]

[ANNOUNCE] Git v2.3.0-rc1

2015-01-20 Thread Junio C Hamano
A release candidate Git v2.3.0-rc1 is now available for testing at the usual places. The tarballs are found at: https://www.kernel.org/pub/software/scm/git/testing/ The following public repositories all have a copy of the 'v2.3.0-rc1' tag and the 'master' branch that the tag points at:

[PATCH v2 25/30] PCI/designware: Use pci_scan_root_bus() for simplicity

2015-01-20 Thread Yijing Wang
Use pci_scan_root_bus() instead of pci_create_root_bus() + pci_scan_child_bus() for simplicity. Signed-off-by: Yijing Wang wangyij...@huawei.com CC: Mohit Kumar mohit.ku...@st.com CC: Jingoo Han jg1@samsung.com --- drivers/pci/host/pcie-designware.c |4 +--- 1 files changed, 1

[PATCH v2 30/30] PCI: Remove pci_bus_assign_domain_nr()

2015-01-20 Thread Yijing Wang
Now we save the domain number in pci_host_bridge, we could remove pci_bus_assign_domain_nr() and clean the domain member in pci_bus. Signed-off-by: Yijing Wang wangyij...@huawei.com --- drivers/pci/pci.c |5 - drivers/pci/probe.c | 12 include/linux/pci.h |3 --- 3

[PATCH v2 26/30] PCI/xgene: Use pci_scan_root_bus() instead of pci_create_root_bus()

2015-01-20 Thread Yijing Wang
Use pci_scan_root_bus() instead of pci_create_root_bus() + pci_scan_child_bus() for simplicity. Signed-off-by: Yijing Wang wangyij...@huawei.com CC: Tanmay Inamdar tinam...@apm.com --- drivers/pci/host/pci-xgene.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git

[PATCH v2 18/30] PCI/powerpc: Use pci_scan_root_bridge() for simplicity

2015-01-20 Thread Yijing Wang
Now we could use pci_scan_root_bridge() to scan pci buses, provide powerpc specific pci_host_bridge_ops. Suggested-by: Arnd Bergmann a...@arndb.de Signed-off-by: Yijing Wang wangyij...@huawei.com CC: Benjamin Herrenschmidt b...@kernel.crashing.org CC: linuxppc-...@lists.ozlabs.org ---

[PATCH v2 27/30] PCI: Rename __pci_create_root_bus() to pci_create_root_bus()

2015-01-20 Thread Yijing Wang
Now no one use pci_create_root_bus(), we could remove it and rename __pci_create_root_bus() to pci_create_root_bus(). Signed-off-by: wangyij...@huawei.com --- drivers/pci/probe.c | 27 --- include/linux/pci.h |3 --- 2 files changed, 8 insertions(+), 22 deletions(-)

[PATCH v2 29/30] PCI: Remove platform specific pci_domain_nr()

2015-01-20 Thread Yijing Wang
Now pci_host_bridge holds the domain number, so we could eliminate all platform specific pci_domain_nr(). Signed-off-by: Yijing Wang wangyij...@huawei.com --- arch/alpha/include/asm/pci.h |2 -- arch/ia64/include/asm/pci.h |1 - arch/microblaze/pci/pci-common.c | 11

Re: [PATCH] power/reset: vexpress: Remove non-DT code

2015-01-20 Thread Sebastian Reichel
Hi, On Tue, Jan 20, 2015 at 05:24:02PM +, Pawel Moll wrote: Now, as all VE platforms have to be booted with DT, the code handling non-DT case can be removed. Signed-off-by: Pawel Moll pawel.m...@arm.com Thanks, applied. -- Sebastian signature.asc Description: Digital signature

Re: [PATCHv3 2/8] devfreq: exynos: Add documentation for generic exynos memory bus frequency driver

2015-01-20 Thread Viresh Kumar
On 20 January 2015 at 17:07, Chanwoo Choi cw00.c...@samsung.com wrote: If each bus-block has separate regulator independently, each bus-block can be registered separately. But, exynos bus-blocks in mem-bus-group share the same regulator. This can be managed easily within the driver. Just stay

linux-next: manual merge of the block tree with the l2-mtd tree

2015-01-20 Thread Stephen Rothwell
Hi Jens, Today's linux-next merge of the block tree got a conflict in drivers/mtd/mtdcore.c between commit 3efe41be224c (mtd: implement common reboot notifier boilerplate) from the tree and commit b4caecd48005 (fs: introduce f_op-mmap_capabilities for nommu mmap support) from the block tree. I

Re: [PATCH v3 3/3] Drivers: hv: vmbus: serialize Offer and Rescind offer

2015-01-20 Thread Jason Wang
On Tue, Jan 20, 2015 at 11:45 PM, Vitaly Kuznetsov vkuzn...@redhat.com wrote: Commit 4b2f9abea52a (staging: hv: convert channel_mgmt.c to not call osd_schedule_callback)' was written under an assumption that we never receive Rescind offer while we're still processing the initial Offer

[PATCH v11 0/2] crypto: AF_ALG: add AEAD and RNG support

2015-01-20 Thread Stephan Mueller
Hi, This patch set adds AEAD and RNG support to the AF_ALG interface exported by the kernel crypto API. By extending AF_ALG with AEAD and RNG support, all cipher types the kernel crypto API allows access to are now accessible from userspace. Both, AEAD and RNG implementations are stand-alone and

[PATCH v11 2/2] crypto: AF_ALG: enable AEAD interface compilation

2015-01-20 Thread Stephan Mueller
Enable compilation of the AEAD AF_ALG support and provide a Kconfig option to compile the AEAD AF_ALG support. Signed-off-by: Stephan Mueller smuel...@chronox.de --- crypto/Kconfig | 9 + crypto/Makefile | 1 + 2 files changed, 10 insertions(+) diff --git a/crypto/Kconfig

Re: [PATCH v2 1/8] device core: Introduce per-device MSI domain pointer

2015-01-20 Thread Jiang Liu
On 2015/1/21 1:17, Stuart Yoder wrote: Gerry, So which direction did you take in your patch set-- a) common, generic msi_desc, or b) bus-specific msi_desc like Marc showed (mybus_msi_desc)? Hi Stuart, Currently I'm trying to go the former way as below. Regards, Gerry

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