Re: [RFC Patch 08/19] ACPI: Add prefetch decoding to the address space parser

2015-01-20 Thread Jiang Liu
On 2015/1/21 8:35, Rafael J. Wysocki wrote: > On Thursday, January 08, 2015 10:32:55 AM Jiang Liu wrote: >> From: Thomas Gleixner >> >> Add support of PREFETCH attributre to ACPI address space and extended >> address space parser. > > This potentially enables untested configurations which tends

Re: [GIT PULL rcu/next] RCU commits for 3.20

2015-01-20 Thread Ingo Molnar
* Paul E. McKenney wrote: > Hello, Ingo, > > The changes in this series include: > > 1.Documentation updates. These were posted to LKML at > https://lkml.org/lkml/2015/1/7/496. > > 2.Miscellaneous fixes. These were posted to LKML at > https://lkml.org/lkml/2015/1/7/507.

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: [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 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

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

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 08:01:26PM -0800, Guenter Roeck wrote: > With this patch: > > sys_mkdir .:40775 returned -17 > sys_mkdir usr:40775 returned 0 > sys_mkdir usr/lib:40775 returned 0 > sys_mkdir usr/share:40755 returned 0 > sys_mkdir usr/share/udhcpc:40755 returned 0 > sys_mkdir usr/bin:40775

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

2015-01-20 Thread Viresh Kumar
On 21 January 2015 at 09:50, Chanwoo Choi wrote: > If the clock will be stayed on highest voltage, will reduce > the considerable benefit of power-consumption. But this is exactly what you must be doing right now as well.. I think I didn't make it clear enough with an example. Let me try.. This

Re: [PATCH] MAINTAINERS: Update rydberg's addresses

2015-01-20 Thread Peter Hutterer
On Tue, Jan 20, 2015 at 11:26:20PM +0100, Henrik Rydberg wrote: > Hi Benjamin, > > > Henrik, I just used the get_maintainer to add you on CC to an input-mt > > patch series, and it ended up using the @euromail.se instead of your > > still valid one. I can resend to you the patch series if you

[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 --- mm/slub.c |

Re: [PATCH 2/2] powerpc/powernv: Skip registering log region when CONFIG_PRINTK=n

2015-01-20 Thread Stewart Smith
Pranith Kumar writes: > When CONFIG_PRINTK=n, log_buf_addr_get() returns NULL and log_buf_len_get() > return 0. Check for these return values and skip registering the dump buffer. > > Signed-off-by: Pranith Kumar > CC: Michael Ellerman (investigating what would occur on systems with current

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 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

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 >

[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

[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 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 the buffer

[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 Signed-off-by: Fengguang Wu ---

[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 Signed-off-by: Fengguang Wu ---

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

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

2015-01-20 Thread Guenter Roeck
On 01/20/2015 07:36 PM, Al Viro wrote: 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

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 > > #include > >

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

2015-01-20 Thread Ethan Zhao
On Tue, Jan 20, 2015 at 10: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: [] ipc_has_perm+0x4b/0x60 >> ... >> Process opcmon (pid:

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 --- net/dsa/dsa.c | 2 +- 1 file changed, 1

Re: [PATCH 2/5] fs: create proper filename objects using getname_kernel()

2015-01-20 Thread Sasha Levin
PU: 29 PID: 1 Comm: swapper/0 Not tainted 3.19.0-rc5-next-20150120-sasha-00053-gb2e3c55-dirty #1772 [ 27.316885] 88005cb8bd28 b14522b5 004e [ 27.316885] b26d4950 88005cb8bda8 b144c298 88005cb8bd48 [ 27.316885] 00

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

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

Re: Confusing behaviour with /proc/sys/kernel/nmi_watchdog

2015-01-20 Thread Anton Blanchard
Hi Andrew, > On Wed, Nov 05, 2014 at 09:34:20AM +1100, Anton Blanchard wrote: > > commit 9919e39a1738 ("kvm: ensure hard lockup detection is disabled > > by default") provided a way for the kernel to disable the hard > > lockup detector at runtime. > > > > I'm using it on ppc64 but notice some

[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 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 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 --- arch/x86/boot/compressed/aslr.c | 32

[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 --- 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 ---

[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

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

[PATCH 1/2] perf: convert: fix duplicate field names and avoid reserved keywords.

2015-01-20 Thread Wang Nan
Some parameters of syscall tracepoints named as 'nr', 'event', etc. When dealing with them, perf convert to ctf meets some problem: 1. If a parameter with name 'nr', it will duplicate syscall's common field 'nr'. One such syscall is io_submit(). 2. If a parameter with name 'event', it is

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 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 request. However, the

Re: [PATCH v3 10/16] s390: add pci_iomap_range

2015-01-20 Thread Rusty Russell
Sebastian Ott writes: > On Wed, 14 Jan 2015, Michael S. Tsirkin wrote: >> } >> -EXPORT_SYMBOL_GPL(pci_iomap); >> +EXPORT_SYMBOL_GPL(pci_iomap_range); >> + >> +void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long maxlen) >> +{ >> +return pci_iomap_range(dev, bar, 0, maxlen); >>

Re: [PATCH] kernel/module.c: Free lock-classes if parse_args failed

2015-01-20 Thread Rusty Russell
Andrey Tsyvarev writes: > 20.01.2015 9:37, Rusty Russell пишет: >> Andrey Tsyvarev writes: >>> parse_args call module parameters' .set handlers, which may use locks >>> defined in the module. >>> So, these classes should be freed in case parse_args returns error(e.g. due >>> to incorrect

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

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 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 the highest

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

2015-01-20 Thread Zhang Zhen
On 2015/1/21 10:26, Zhang Zhen wrote: > 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,

Re: [PATCH v4 2/2] I2C: mediatek: Add driver for MediaTek I2C controller

2015-01-20 Thread Eddie Huang
Hi Uwe, On Sun, 2015-01-18 at 11:18 +0100, Uwe Kleine-König wrote: > Hello, > > On Fri, Jan 16, 2015 at 06:33:38PM +0800, Eddie Huang wrote: > > +config I2C_MT65XX > > + tristate "MediaTek I2C adapter" > > + depends on ARCH_MEDIATEK > depends on ARCH_MEDIATEK || COMPILE_TEST > default

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 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 'lock' and add the

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 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. Reported-by:

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: 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 >

Re: [PATCH v2] ARM: dts: exynos5422-odroidxu3: add on-board INA231 sensors

2015-01-20 Thread Joonyoung Shim
Hi Kevin, On 01/15/2015 10:08 AM, Kevin Hilman wrote: > From: Kevin Hilman > > The odroid-xu3 has 4 INA231 current sensors on board which can be > accessed from the Linux via the hwmon interface. > > There is one sensor for each of these power rails: > > - A15 cluster: VDD_ARM > - A7 cluster:

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",

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 --- net/dsa/dsa.c | 2 +- 1 file changed, 1

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

2015-01-20 Thread Dave Airlie
On 21 January 2015 at 12:43, Daniel Kurtz wrote: > 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? I was waiting for the fixed reported-by but it isn't that urgent, I'll get

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 Thanks, applied. -- Sebastian signature.asc Description: Digital signature

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 wrote: > On Wed, Jan 7, 2015 at 5:27 PM, Daniel Kurtz wrote: >> dma_alloc_attrs()

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

2015-01-20 Thread Yijing Wang
From: Arnd Bergmann Use pci_scan_root_bus() instead of deprecated function pci_scan_bus_parented(). Signed-off-by: Arnd Bergmann Signed-off-by: Yijing Wang CC: Konrad Rzeszutek Wilk CC: xen-de...@lists.xenproject.org --- drivers/pci/xen-pcifront.c | 10 +++--- 1 files changed, 7

[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

[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,

[PATCH v2 00/30] Refine PCI scan interfaces and make generic pci host bridge

2015-01-20 Thread Yijing Wang
v1->v2: Split pci_host_bridge_list into a new patch, remove .phb_probe_mode and rework powerpc .phb_of_scan_bus() for simpilicty suggested by Arnd. Refresh some patch description log, and add a new patch to fix build warning in ia64. This series is based on Bjorn's

[PATCH v2 16/30] PCI/IA64: Fix the build warning about pci_domain_nr()

2015-01-20 Thread Yijing Wang
Should pass pci_bus * instead of pci_dev * to pci_domain_nr(). Signed-off-by: Yijing Wang CC: Tony Luck CC: Fenghua Yu CC: linux-i...@vger.kernel.org --- arch/ia64/sn/kernel/io_acpi_init.c |6 +++--- arch/ia64/sn/kernel/io_init.c |2 +- 2 files changed, 4 insertions(+), 4

[PATCH v2 14/30] PCI/x86: Refine pci_acpi_scan_root() with generic pci_host_bridge

2015-01-20 Thread Yijing Wang
Signed-off-by: Yijing Wang CC: Thomas Gleixner CC: x...@kernel.org --- arch/x86/pci/acpi.c | 36 1 files changed, 20 insertions(+), 16 deletions(-) diff --git a/arch/x86/pci/acpi.c b/arch/x86/pci/acpi.c index 8edea63..f9a55c2 100644 ---

[PATCH v2 05/30] PCI: Rename pci_scan_bus() to pci_scan_bus_legacy()

2015-01-20 Thread Yijing Wang
Pci_scan_bus() is called by legacy pci host drivers, the legacy host drivers mean they use NULL as parent device, use all IO/MEM as default resources. Rename pci_scan_bus() to pci_scan_bus_legacy() for better readability. Signed-off-by: Yijing Wang --- arch/alpha/kernel/sys_nautilus.c |2

[PATCH v2 09/30] PCI: Separate pci_host_bridge creation out of pci_create_root_bus()

2015-01-20 Thread Yijing Wang
This patch separate pci_host_bridge creation out of pci_create_root_bus(), and try to make a generic pci_host_bridge, then we could place generic PCI infos like domain number in it. Also Ripping out pci_host_bridge creation from pci_create_root_bus() make code more better readability. Further

[PATCH v2 11/30] PCI: Save sysdata in pci_host_bridge drvdata

2015-01-20 Thread Yijing Wang
Save platform specific sysdata in pci_host_bridge drvdata, host bridge specific operation need to access it before the pci bus creation. Signed-off-by: Yijing Wang --- drivers/pci/host-bridge.c |4 +++- drivers/pci/probe.c | 18 -- include/linux/pci.h |3

[PATCH v2 15/30] PCI/IA64: Refine pci_acpi_scan_root() with generic pci_host_bridge

2015-01-20 Thread Yijing Wang
From: Yijing Wang Signed-off-by: Yijing Wang CC: Tony Luck CC: Fenghua Yu CC: linux-i...@vger.kernel.org --- arch/ia64/pci/pci.c | 34 ++ 1 files changed, 18 insertions(+), 16 deletions(-) diff --git a/arch/ia64/pci/pci.c b/arch/ia64/pci/pci.c index

[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 --- drivers/pci/probe.c | 21 + include/linux/pci.h |3 +++ 2 files changed, 24 insertions(+), 0

[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 --- 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 index 7cf577f..e44de73

[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 --- drivers/pci/host-bridge.c | 24

[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

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

[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 --- drivers/pci/probe.c | 15 --- include/linux/pci.h |2 -- 2 files changed, 0 insertions(+), 17 deletions(-) diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index

[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 --- drivers/pci/pci.c | 14 +++--- include/linux/pci.h |4 2 files changed, 15 insertions(+), 3 deletions(-) diff

[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 CC: "David S. Miller" CC: sparcli...@vger.kernel.org --- arch/sparc/kernel/pci.c | 32 ++-- 1 files changed, 22 insertions(+), 10

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

[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

[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 CC: Thierry Reding CC:

[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 --- drivers/pci/hotplug/acpiphp_glue.c | 29

[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 --- 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 from gpio to gpios. - add

[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 22/30] PCI/Parisc: Use pci_scan_root_bus() for simplicity

2015-01-20 Thread Yijing Wang
From: Yijing Wang 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 pci_bus_update_busn_res_end(),

[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 CC: Benjamin Herrenschmidt CC: linuxppc-...@lists.ozlabs.org --- arch/powerpc/include/asm/machdep.h |2 +-

[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 CC: Thomas Petazzoni CC: Jason Cooper ---

[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 --- 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 100644 ---

[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 CC: Tanmay Inamdar --- drivers/pci/host/pci-xgene.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/pci/host/pci-xgene.c

[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 CC: Mohit Kumar CC: Jingoo Han --- drivers/pci/host/pcie-designware.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git

[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 --- drivers/pci/pci.c |5 - drivers/pci/probe.c | 12 include/linux/pci.h |3 --- 3 files changed, 4

[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 --- arch/alpha/include/asm/pci.h |2 -- arch/ia64/include/asm/pci.h |1 - arch/microblaze/pci/pci-common.c | 11 ---

[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 Signed-off-by: Yijing Wang CC: Benjamin Herrenschmidt CC: linuxppc-...@lists.ozlabs.org --- arch/powerpc/include/asm/machdep.h |2 +-

[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(-)

Possible regression in next-20150120 due to "mm: account pmd page tables to the process"

2015-01-20 Thread Simon Horman
l boot log below is output repeatedly and the boot does not appear to proceed any further. I have observed this problem using next-20150120 and observed that it does not occur when the patch mentioned above is reverted. I have also observed what appears to be the same problem when booting the follow

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;

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

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

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.

RE: [PATCH 0/3] An alternative to SPI NAND

2015-01-20 Thread qiwang
On 01/20/2015 6:36 PM, Ezequiel Garcia wrote: > >On 01/12/2015 12:10 PM, Qi Wang 王起 (qiwang) wrote: >> Hi Ezequiel, >> >> On 01/08/2015 11:27 AM, Ezequiel Garcia wrote: >>> >>> Hi Qi Wang, >>> >>> On 01/07/2015 11:45 PM, Qi Wang 王起 (qiwang) wrote: Hi Brian, On Thu, Jan 08, 2015 at

[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:

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

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

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: []

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] 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 > >

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