Re: [PATCH kernel v10 06/34] vfio: powerpc/spapr: Move page pinning from arch code to VFIO IOMMU driver

2015-05-12 Thread Gavin Shan
On Tue, May 12, 2015 at 01:38:55AM +1000, Alexey Kardashevskiy wrote: >This moves page pinning (get_user_pages_fast()/put_page()) code out of >the platform IOMMU code and puts it to VFIO IOMMU driver where it belongs >to as the platform code does not deal with page pinning. > >This makes

Re: [PATCH 05/12] target: Convert transport_lookup_*_lun to RCU reader

2015-05-12 Thread Christoph Hellwig
> + rcu_read_lock(); > + deve = target_nacl_find_deve(nacl, unpacked_lun); > + if (deve && deve->lun_flags & TRANSPORT_LUNFLAGS_INITIATOR_ACCESS) { > + /* > + * Make sure that target_enable_device_list_for_node() > + * has not already cleared the

[LKP] [x86/smpboot] f5d6a52f511: BUG: kernel boot hang

2015-05-12 Thread Huang Ying
job=/lkp/scheduled/vm-kbuild-yocto-i386-3/rand_boot-1-yocto-minimal-i386.cgz-i386-randconfig-c0-05111038-be67584d15684730aeed88cab355c5de8b0491fe-1-20150512-31766-1fzr1qi.yaml ARCH=i386 kconfig=i386-randconfig-c0-05111038 branch=linux-devel/devel-cairo-smoke-2015051202

Re: [PATCH 03/12] target/configfs: Convert mappedlun + SCSI MIBs to RCU reader

2015-05-12 Thread Christoph Hellwig
On Tue, May 12, 2015 at 10:09:23PM -0700, Nicholas A. Bellinger wrote: > > Why do we still need TRANSPORT_LUNFLAGS_INITIATOR_ACCESS? Isn't deve > > being not-NULL enough? > > > > Yep, I think this can go as well. Dropping now. Also might be worth to add a helper that has the ->se_lun_acl

Re: [PATCH 02/12] target: Convert REPORT_LUN + MODE_SENSE to RCU reader

2015-05-12 Thread Christoph Hellwig
On Tue, May 12, 2015 at 09:25:26AM +, Nicholas A. Bellinger wrote: > From: Nicholas Bellinger > > This patch converts SPC emulation for REPORT_LUN + MODE_SENSE to use > RCU read locks for se_node_acl->lun_entry_hlist access. > > Also convert the MODE_SENSE special case in

Re: [PATCH 01/12] target: Convert se_node_acl->device_list[] to RCU hlist

2015-05-12 Thread Christoph Hellwig
On Tue, May 12, 2015 at 09:25:25AM +, Nicholas A. Bellinger wrote: > @@ -240,18 +237,12 @@ int core_free_device_list_for_node( > { > struct se_dev_entry *deve; > struct se_lun *lun; > - u32 i; > - > - if (!nacl->device_list) > - return 0; > - > -

Re: [PATCH v10 1/4] cgroups: use bitmask to filter for_each_subsys

2015-05-12 Thread Aleksa Sarai
Hi Tejun, > H... You can either convert all masks to ulong (which is fine) or > do something like the following. > > #define for_each_subsys_which(ss_mask, ss, ssid)\ > unsigned long __tmp_mask = (ss_mask); \ > for_each_set_bit(ssid, &__tmp_mask,

Re: [PATCH 01/12] target: Convert se_node_acl->device_list[] to RCU hlist

2015-05-12 Thread Nicholas A. Bellinger
On Wed, 2015-05-13 at 07:32 +0200, Christoph Hellwig wrote: > On Tue, May 12, 2015 at 10:08:51PM -0700, Nicholas A. Bellinger wrote: > > The series is bisectable. With patch #1 in place ->device_list[] is > > still kzalloc()'ed, but new RCU pointer assignments are made into > > lun_entry_hlist[].

Re: [RFC v2 6/7] x86/PCI/ACPI: Use common interface to support PCI host bridge

2015-05-12 Thread Jiang Liu
On 2015/5/12 20:19, Hanjun Guo wrote: > [...] >> struct pci_root_info { >> -struct acpi_device *bridge; >> -char name[16]; >> -struct pci_controller sd; >> +struct acpi_pci_root_info_common common; >> #ifdefCONFIG_PCI_MMCONFIG >> bool mcfg_added; >> u16 segment;

Re: [RFC v2 5/7] PCI/ACPI: Consolidate common PCI host bridge code into ACPI core

2015-05-12 Thread Jiang Liu
On 2015/5/11 21:36, Hanjun Guo wrote: > Hi Jiang, > > I have comments inline. > > On 2015年05月05日 10:46, Jiang Liu wrote: >> Introduce common interface acpi_pci_root_create() and related data >> structures to create PCI root bus for ACPI PCI host bridges. It will >> be used to kill duplicated

Re: [PATCH kernel v10 05/34] powerpc/iommu: Always release iommu_table in iommu_free_table()

2015-05-12 Thread Gavin Shan
On Tue, May 12, 2015 at 01:38:54AM +1000, Alexey Kardashevskiy wrote: >At the moment iommu_free_table() only releases memory if >the table was initialized for the platform code use, i.e. it had >it_map initialized (which purpose is to track DMA memory space use). > >With dynamic DMA windows, we

Re: [EDT][PATCH 1/1] hw_breakpoint.c :cpu hotplug handling

2015-05-12 Thread Baruch Siach
Hi Maninder Singh, On Wed, May 13, 2015 at 05:24:07AM +, Maninder Singh wrote: > EP-2DAD0AFA905A4ACB804C4F82A001242F > > Subject: [PATCH 1/1] hw_breakpoint.c :cpu hotplug handling > > This patch adds support for CPU hotplug, It re-installl all installed > watchpoints and breakpoints > back

Re: [PATCH 01/12] target: Convert se_node_acl->device_list[] to RCU hlist

2015-05-12 Thread Christoph Hellwig
On Tue, May 12, 2015 at 10:08:51PM -0700, Nicholas A. Bellinger wrote: > The series is bisectable. With patch #1 in place ->device_list[] is > still kzalloc()'ed, but new RCU pointer assignments are made into > lun_entry_hlist[]. > > Squashing the RCU reader paths (#2-6) for merge is OK, but

[PATCH v5 06/10] lib: sysctl handling (kernel glue code)

2015-05-12 Thread Hajime Tazaki
This interacts with fs/proc_fs.c for sysctl-like interface registered via lib_init() API. Signed-off-by: Hajime Tazaki --- arch/lib/sysctl.c | 270 ++ 1 file changed, 270 insertions(+) create mode 100644 arch/lib/sysctl.c diff --git

[PATCH v5 07/10] lib: other kernel glue layer code

2015-05-12 Thread Hajime Tazaki
These files are used to provide the same function calls so that other network stack code keeps untouched. Signed-off-by: Hajime Tazaki Signed-off-by: Christoph Paasch --- arch/lib/capability.c | 25 + arch/lib/filemap.c| 32 ++ arch/lib/fs.c | 70

[PATCH v5 10/10] lib: tools used for test scripts

2015-05-12 Thread Hajime Tazaki
These auxiliary files are used for testing and debugging of net/ code with libos. a simple test is implemented with make test ARCH=lib. Signed-off-by: Hajime Tazaki --- tools/testing/libos/.gitignore | 6 + tools/testing/libos/Makefile | 38 +++

[PATCH v5 08/10] lib: auxiliary files for auto-generated asm-generic files of libos

2015-05-12 Thread Hajime Tazaki
these files works as stubs in order to transparently run the other kernel part (e.g., net/) on libos environment. Signed-off-by: Hajime Tazaki --- arch/lib/include/asm/Kbuild | 57 + arch/lib/include/asm/atomic.h | 59

[PATCH v5 09/10] lib: libos build scripts and documentation

2015-05-12 Thread Hajime Tazaki
document and build scripts for libos architecture. Signed-off-by: Hajime Tazaki Signed-off-by: Ryo Nakamura --- Documentation/virtual/libos-howto.txt | 144 MAINTAINERS | 9 + arch/lib/.gitignore | 3 + arch/lib/Kconfig

[PATCH v5 05/10] lib: context and scheduling functions (kernel glue code) for libos

2015-05-12 Thread Hajime Tazaki
context primitives of kernel such as soft interrupts, scheduling, tasklet are implemented for libos. these functions eventually call the functions registered by lib_init() API as well. Signed-off-by: Hajime Tazaki --- arch/lib/sched.c | 406

[PATCH v5 04/10] lib: time handling (kernel glue code)

2015-05-12 Thread Hajime Tazaki
timer related (internal) functions such as add_timer(), do_gettimeofday() of kernel are trivially reimplemented for libos. these eventually call the functions registered by lib_init() API. Signed-off-by: Hajime Tazaki --- arch/lib/hrtimer.c | 122 +++

[PATCH v5 02/10] slab: add SLIB (Library memory allocator) for arch/lib

2015-05-12 Thread Hajime Tazaki
add SLIB allocator for arch/lib (CONFIG_LIB) to wrap kmalloc and co. This will bring user's own allocator of libos: malloc(3) etc. Signed-off-by: Hajime Tazaki --- include/linux/slab.h | 6 +- include/linux/slib_def.h | 21 + mm/Makefile | 1 + mm/slab.h

[PATCH v5 03/10] lib: public headers and API implementations for userspace programs

2015-05-12 Thread Hajime Tazaki
userspace programs which uses libos access via a public API, lib_init(), with passed arguments struct SimImported and struct SimExported. Signed-off-by: Hajime Tazaki Signed-off-by: Ryo Nakamura --- arch/lib/include/sim-assert.h | 23 +++ arch/lib/include/sim-init.h | 134 ++

[PATCH v5 01/10] sysctl: make some functions unstatic to access by arch/lib

2015-05-12 Thread Hajime Tazaki
libos (arch/lib) emulates a sysctl-like interface by a function call of userspace by enumerating sysctl tree from sysctl_table_root. It requires to be publicly accessible to this symbol and related functions. Signed-off-by: Hajime Tazaki --- fs/proc/proc_sysctl.c | 36

[PATCH v5 00/10] an introduction of Linux library operating system (LibOS)

2015-05-12 Thread Hajime Tazaki
This is the 5th version of Linux LibOS patchset which reflects a couple of comments received from people. changes from v4: - Patch 09/10 ("lib: libos build scripts and documentation") 1) lib: fix dependency detection of kernel/time/timeconst.h (commented by Richard Weinberger) - Overall 2)

Re: [PATCH kernel v10 04/34] powerpc/iommu: Put IOMMU group explicitly

2015-05-12 Thread Gavin Shan
On Tue, May 12, 2015 at 01:38:53AM +1000, Alexey Kardashevskiy wrote: >So far an iommu_table lifetime was the same as PE. Dynamic DMA windows >will change this and iommu_free_table() will not always require >the group to be released. > >This moves iommu_group_put() out of iommu_free_table(). >

[EDT][PATCH 1/1] hw_breakpoint.c :cpu hotplug handling

2015-05-12 Thread Maninder Singh
EP-2DAD0AFA905A4ACB804C4F82A001242F Subject: [PATCH 1/1] hw_breakpoint.c :cpu hotplug handling This patch adds support for CPU hotplug, It re-installl all installed watchpoints and breakpoints back on H/W in case of cpu-hot plug. Signed-off-by: Vaneet Narang Signed-off-by: Maninder Singh

Re: [PATCH kernel v10 03/34] powerpc/powernv/ioda: Clean up IOMMU group registration

2015-05-12 Thread Gavin Shan
On Tue, May 12, 2015 at 01:38:52AM +1000, Alexey Kardashevskiy wrote: >The existing code has 3 calls to iommu_register_group() and >all 3 branches actually cover all possible cases. > >This replaces 3 calls with one and moves the registration earlier; >the latter will make more sense when we add

Re: [PATCH] KVM: x86: fix initial PAT value

2015-05-12 Thread Wanpeng Li
Hi Radim, On Mon, Apr 27, 2015 at 03:11:25PM +0200, Radim Krčmář wrote: >PAT should be 0007_0406_0007_0406h on RESET and not modified on INIT. Could you point out where this value is described in SDM? :) Regards, Wanpeng Li >VMX used a wrong value (host's PAT) and while SVM used the right one,

Re: [PATCH kernel v10 02/34] powerpc/iommu/powernv: Get rid of set_iommu_table_base_and_group

2015-05-12 Thread Gavin Shan
On Tue, May 12, 2015 at 01:38:51AM +1000, Alexey Kardashevskiy wrote: >The set_iommu_table_base_and_group() name suggests that the function >sets table base and add a device to an IOMMU group. However actual >table base setting happens in pnv_pci_ioda_dma_dev_setup(). > On PHB3, the DMA32 IOMMU

linux-next: please clean up the clockevents tree

2015-05-12 Thread Stephen Rothwell
Hi Daniel, All the commits in the clockevents tree have appeared upstream (as different commits, unfortunately). Please clean up your tree it is just causing unnecessary conflicts. -- Cheers, Stephen Rothwells...@canb.auug.org.au pgpnviYYoEWcc.pgp Description: OpenPGP

Re: [EDT] [PATCH 1/1] Fix: hw watchpoint continually triggers callback

2015-05-12 Thread Vaneet Narang
EP-2DAD0AFA905A4ACB804C4F82A001242F >On Tue, May 12, 2015 at 02:12:54PM +0100, Vaneet Narang wrote: >> On Tue, May 12, 2015 at 12:48:13PM +0100, Maninder Singh wrote: >> >> On ARM, when a watchpoint is registered using >> >> register_wide_hw_breakpoint, >> >> the callback handler endlessly runs

Re: [PATCH 03/12] target/configfs: Convert mappedlun + SCSI MIBs to RCU reader

2015-05-12 Thread Nicholas A. Bellinger
On Tue, 2015-05-12 at 13:58 -0700, Andy Grover wrote: > On 05/12/2015 02:25 AM, Nicholas A. Bellinger wrote: > > From: Nicholas Bellinger > > > > This patch converts fabric independent configfs link/unlink to use > > RCU read path macros for se_node_acl->lun_entry_hlist access. > > > > It also

Re: [PATCH 01/12] target: Convert se_node_acl->device_list[] to RCU hlist

2015-05-12 Thread Nicholas A. Bellinger
On Tue, 2015-05-12 at 13:58 -0700, Andy Grover wrote: > On 05/12/2015 02:25 AM, Nicholas A. Bellinger wrote: > > From: Nicholas Bellinger > > > > This patch converts se_node_acl->device_list[] table for mappedluns > > to modern RCU hlist_head usage in order to support an arbitrary number > > of

Re: [PATCH 1/1] drivers: staging: fbtft: fbtft-core.c: Fix different address space warning

2015-05-12 Thread Sudip Mukherjee
On Tue, May 12, 2015 at 06:57:46PM -0700, Tolga Ceylan wrote: > To fix sparse warning of incorrect type when calling vfree() > (different address space), added annotation __force. Garret Kelly posted a similar patch before, please see the discussion about that patch at

Re: [PATCH 8/8] serial: tegra: Correct error handling on DMA setup

2015-05-12 Thread Alexandre Courbot
On Tue, May 12, 2015 at 6:51 PM, Jon Hunter wrote: > > On 12/05/15 09:39, Alexandre Courbot wrote: >> On Tue, May 5, 2015 at 11:17 PM, Jon Hunter wrote: >>> Function tegra_uart_dma_channel_allocate() does not check that >>> dma_map_single() mapped the DMA buffer correctly. Add a check for this

[PATCH 1/1] drivers: staging: comedi: drivers: ni_mio_common.c: removed no-effect right hand operand

2015-05-12 Thread Tolga Ceylan
In ni_ai_cmd() bitwise or construction of ai_trig in case of TRIG_NOW is faulty. Register address is accidentally in the expression, but this has no effect. This is an accidental left-over code that used to call a function with register address as one of the arguments. Signed-off-by: Tolga Ceylan

Re: [PATCH v3 04/33] staging: rtl8192e: Fix DEEP_INDENTATION warning in rtllib_parse_info_param()

2015-05-12 Thread Sudip Mukherjee
On Tue, May 12, 2015 at 11:01:44PM +0200, Mateusz Kulikowski wrote: > On 10.05.2015 09:49, Sudip Mukherjee wrote: > > On Sat, May 09, 2015 at 11:18:52PM +0200, Mateusz Kulikowski wrote: > > You're running checkpatch --strict right? > > > 1) multiple blank lines > > 2) Blank lines aren't

linux-next: manual merge of the security tree with the vfs tree

2015-05-12 Thread Stephen Rothwell
Hi James, Today's linux-next merge of the security tree got a conflict in include/linux/security.h and security/security.c between commits 37882db0546c ("SECURITY: remove nameidata arg from inode_follow_link") and bda0be7ad994 ("security: make inode_follow_link RCU-walk aware") from the vfs tree

Re: [PATCH 4/6] nohz: support PR_DATAPLANE_QUIESCE

2015-05-12 Thread Andy Lutomirski
On Tue, May 12, 2015 at 5:52 AM, Ingo Molnar wrote: > > * Peter Zijlstra wrote: > >> > So if then a prctl() (or other system call) could be a shortcut >> > to: >> > >> > - move the task to an isolated CPU >> > - make sure there _is_ such an isolated domain available >> > >> > I.e. have some

linux-next: manual merge of the security tree with the vfs tree

2015-05-12 Thread Stephen Rothwell
Hi James, Today's linux-next merge of the security tree got a conflict in security/capability.c between commits 37882db0546c ("SECURITY: remove nameidata arg from inode_follow_link") and bda0be7ad994 ("security: make inode_follow_link RCU-walk aware") from the vfs tree and commit 1ddd3b4e07a4

Re: [PULL] LSM: Basic module stacking infrastructure for security-next - Acked

2015-05-12 Thread Casey Schaufler
On 5/11/2015 10:02 PM, James Morris wrote: > On Fri, 8 May 2015, Casey Schaufler wrote: > >> James, here's an updated pull request for LSM stacking. >> Acks have been applied. >> >> The following changes since commit b787f68c36d49bb1d9236f403813641efa74a031: >> >> Linux 4.1-rc1 (2015-04-26

[PATCH 6/6] selftests/futex: Add .gitignore

2015-05-12 Thread Darren Hart
Add the futex/functional targets to .gitignore. Cc: Shuah Khan Cc: linux-...@vger.kernel.org Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Davidlohr Bueso Cc: KOSAKI Motohiro Signed-off-by: Darren Hart --- tools/testing/selftests/futex/functional/.gitignore | 7 +++ 1

[PATCH 3/6] selftests/futex: Increment ksft pass and fail counters

2015-05-12 Thread Darren Hart
Add kselftest.h to logging.h and increment the pass and fail counters as part of the print_result routine which is called by all futex tests. Cc: Shuah Khan Cc: linux-...@vger.kernel.org Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Davidlohr Bueso Cc: KOSAKI Motohiro

[PATCH 1/6] selftests: Add futex functional tests

2015-05-12 Thread Darren Hart
The futextest testsuite [1] provides functional, stress, and performance tests for the various futex op codes. Those tests will be of more use to futex developers if they are included with the kernel source. Copy the core infrastructure and the functional tests into selftests, but adapt them for

[PATCH 4/6] selftests: Add futex tests to the top-level Makefile

2015-05-12 Thread Darren Hart
Enable futex tests to be built and run with the make kselftest and associated targets. Most of the tests require escalated privileges. These return ERROR, and run.sh continues. Cc: Shuah Khan Cc: linux-...@vger.kernel.org Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Davidlohr

[PATCH 5/6] kselftest: Add exit code defines

2015-05-12 Thread Darren Hart
Define the exit codes with KSFT_PASS and similar so tests can use these directly if they choose. Also enable harnesses and other tooling to use the defines instead of hardcoding the return codes. Cc: Shuah Khan Cc: linux-...@vger.kernel.org Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Thomas

[PATCH 2/6] selftests/futex: Update Makefile to use lib.mk

2015-05-12 Thread Darren Hart
Adapt the futextest Makefiles to use lib.mk macros for RUN_TESTS and EMIT_TESTS. For now, we reuse the run.sh mechanism provided by futextest. This doesn't provide the standard selftests: [PASS|FAIL] format, but the tests provide very similar output already. This results in the run_kselftest.sh

[PATCH v4 0/6] selftests: Add futex functional tests

2015-05-12 Thread Darren Hart
Hi Shuah, This series begins the process of migrating my futextest tests into kselftest. I've started with only the functional tests, as the performance and stress may not be appropriate for kselftest as they stand. I cleaned up various complaints from checkpatch, but I ignored others that would

[PATCH 1/1] drivers: staging: rtl8192u: ieee80211: ieee80211_softmac.c: auth parse error code byte order fix

2015-05-12 Thread Tolga Ceylan
Error code returned from auth_parse() should in cpu byte order. Signed-off-by: Tolga Ceylan --- drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c

[GIT] Networking

2015-05-12 Thread David Miller
1) Handle max TX power properly wrt. VIFs and the MAC in iwlwifi, from Avri Altman. 2) Use the correct FW API for scan completions in iwlwifi, from Avraham Stern. 3) FW monitor in iwlwifi accidently uses unmapped memory, fix from Liad Kaufman. 4) rhashtable conversion of mac80211

[PATCH 1/1] drivers: staging: rtl8192e: rtllib_softmac.c: auth parse error code byte order fix

2015-05-12 Thread Tolga Ceylan
Error code returned from auth_parse() should in cpu byte order. Issue caught by sparse warning: cast from restricted __le16. Signed-off-by: Tolga Ceylan --- drivers/staging/rtl8192e/rtllib_softmac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 1/5] selftests: Add futex functional tests

2015-05-12 Thread Darren Hart
On Tue, May 12, 2015 at 03:21:12PM -0600, Shuah Khan wrote: > On 05/12/2015 03:17 PM, Shuah Khan wrote: > > On 05/12/2015 02:54 PM, Darren Hart wrote: > >> On 5/12/15, 1:40 PM, "Shuah Khan" wrote: > >> > >>> On 05/12/2015 02:15 PM, Darren Hart wrote: > On 5/12/15, 1:05 PM, "Cyril Hrubis"

Re: [PATCH v3 1/2] perf/kvm: Port perf kvm to powerpc

2015-05-12 Thread Scott Wood
On Tue, 2015-05-12 at 21:34 +0530, Hemant Kumar wrote: > Hi Scott, > > On 05/12/2015 03:38 AM, Scott Wood wrote: > > On Fri, 2015-05-08 at 06:37 +0530, Hemant Kumar wrote: > >> diff --git a/arch/powerpc/include/uapi/asm/kvm_perf.h > >> b/arch/powerpc/include/uapi/asm/kvm_perf.h > >> new file

Re: [PATCH tip/core/rcu 06/24] rcu: Cleanup rcu_init_geometry() code and arithmetics

2015-05-12 Thread Steven Rostedt
On Tue, 12 May 2015 15:30:36 -0700 "Paul E. McKenney" wrote: > @@ -4103,24 +4102,21 @@ static void __init rcu_init_geometry(void) > return; > } > > + /* Calculate the number of levels in the tree. */ > + for (i = 0; nr_cpu_ids > rcu_capacity[i]; i++) { Should this

Re: [PATCH v3 3/3] kvm/powerpc: Export HCALL reason codes

2015-05-12 Thread Scott Wood
On Tue, 2015-05-12 at 21:46 +0530, Hemant Kumar wrote: > On 05/12/2015 03:44 AM, Scott Wood wrote: > > On Fri, 2015-05-08 at 06:23 +0530, Hemant Kumar wrote: > >> For perf to analyze the KVM events like hcalls, we need the > >> hypervisor calls and their codes to be exported through uapi. > >> >

Re: [PATCH v5] net: phy: micrel: Fix regression in kszphy_probe

2015-05-12 Thread David Miller
From: Niklas Cassel Date: Tue, 12 May 2015 09:43:14 +0200 > Don't do clock-mode-select if clk == NULL, > since when building without CONFIG_HAVE_CLK, > clk_get returns NULL and clk_get_rate returns 0. > > Doing clock-mode-select in this cause causes kszphy_probe to > return -EINVAL and thus

Re: [PATCH v2] net: ll_temac: Fix DMA map size bug

2015-05-12 Thread David Miller
From: Michal Simek Date: Tue, 12 May 2015 08:06:15 +0200 > DMA allocates skb->len instead of headlen > which is used for DMA. > > Signed-off-by: Michal Simek Applied, thank you. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

[PATCH] ARM: EXYNOS: Fix dereference of ERR_PTR returned by of_genpd_get_from_provider

2015-05-12 Thread Krzysztof Kozlowski
ERR_PTR was dereferenced during sub domain parsing, if parent domain could not be obtained (because of invalid phandle or deferred registration of parent domain). The Exynos power domain code checked whether of_genpd_get_from_provider() returned NULL and in that case it skipped that power domain

Re: [PATCH 4/7] drivers/cpufreq: Convert non-modular drivers to use builtin_driver_register

2015-05-12 Thread Paul Gortmaker
On Tue, May 12, 2015 at 3:04 AM, Viresh Kumar wrote: > On 10-05-15, 15:49, Paul Gortmaker wrote: >> These files depend on Kconfig options all of which are a bool, so >> we use the appropriate registration function, which avoids us >> relying on an implicit inclusion of which we are >> doing

Re: Please add my h8300 tree to linux-next

2015-05-12 Thread Yoshinori Sato
At Wed, 13 May 2015 12:01:43 +1000, Stephen Rothwell wrote: > > [1 ] > Hi Yoshinori, > > On Wed, 13 May 2015 09:49:42 +0900 Yoshinori Sato > wrote: > > > > At Wed, 13 May 2015 08:52:03 +1000, Stephen Rothwell wrote: > > > > > > On Wed, 13 May 2015 01:18:31 +0900 Yoshinori Sato > > > wrote:

Re: [PATCH 0/6] clk.c cleanups

2015-05-12 Thread Michael Turquette
Quoting Stephen Boyd (2015-04-30 17:14:15) > Here are some cleanups spurned by some patches from Dong Aisheng. > No functionality is changed, just reordering of code, etc. Looks good to me. Regards, Mike > > Cc: Tomeu Vizoso > Cc: Dong Aisheng > > Dong Aisheng (1): > clk: Squash

Re: [PATCH V6 net-next 1/1] hv_netvsc: Use the xmit_more skb flag to optimize signaling the host

2015-05-12 Thread David Miller
From: "K. Y. Srinivasan" Date: Mon, 11 May 2015 15:39:46 -0700 > Based on the information given to this driver (via the xmit_more skb flag), > we can defer signaling the host if more packets are on the way. This will help > make the host more efficient since it can potentially process a larger

Re: [PATCH V2] x86: Allow built-in command line to work in early kernel init

2015-05-12 Thread Matthew Garrett
On Tue, May 12, 2015 at 07:46:11PM -0700, H. Peter Anvin wrote: > On 05/12/2015 04:53 PM, Matthew Garrett wrote: > > On Tue, May 12, 2015 at 04:41:22PM -0700, Yinghai Lu wrote: > > > >> You can not assume that you can use buffer after cmd_line from bootloader > >> blindly. > > > > Are there any

Re: [PATCH] net: deinline netif_tx_stop_all_queues(), remove WARN_ON in netif_tx_stop_queue()

2015-05-12 Thread David Miller
From: Denys Vlasenko Date: Mon, 11 May 2015 21:17:53 +0200 > These functions compile to 60 bytes of machine code each. > With this .config: http://busybox.net/~vda/kernel_config > there are 617 calls of netif_tx_stop_queue() > and 49 calls of netif_tx_stop_all_queues() in vmlinux. > > To fix

linux-next: manual merge of the net-next tree with the net tree

2015-05-12 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in net/core/net_namespace.c between commit e3d8ecb70e16 ("netns: return RTM_NEWNSID instead of RTM_GETNSID on a get") from the net tree and commit cab3c8ec8d57 ("netns: always provide the id to rtnl_net_fill()") from the

Re: [PATCH v2] rmap: fix theoretical race between do_wp_page and shrink_active_list

2015-05-12 Thread Minchan Kim
Separate from Vladimir's thread. I don't want to make a noise in there. On Tue, May 12, 2015 at 10:04:12PM -0400, Rik van Riel wrote: > On 05/12/2015 09:43 PM, Minchan Kim wrote: > > Hi, Rik > > > > I'd like to bring up the issue in this thread although I already gave > > my Acked-by. > > > >

Re: [PATCH tip/core/rcu 01/24] rcu: Control grace-period delays directly from value

2015-05-12 Thread Steven Rostedt
On Tue, 12 May 2015 15:30:31 -0700 "Paul E. McKenney" wrote: > > Reported-by: Linus Torvalds Signed-off-by: > Paul E. McKenney > --- Line wrap issues? -- Steve -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org

Re: [PATCH tip/core/rcu 3/4] md/bitmap: Fix list_entry_rcu usage

2015-05-12 Thread NeilBrown
On Tue, 12 May 2015 22:38:53 -0400 Steven Rostedt wrote: > On Tue, 12 May 2015 15:46:26 -0700 > "Paul E. McKenney" wrote: > > > From: Patrick Marlier > > > > Signed-off-by: Patrick Marlier > > Signed-off-by: Paul E. McKenney > > --- > > drivers/md/bitmap.c | 2 +- > > 1 file changed, 1

Re: [RFC PATCH] iommu: add ARM short descriptor page table allocator.

2015-05-12 Thread Yong Wu
On Tue, 2015-05-12 at 11:15 +0200, Matthias Brugger wrote: > 2015-04-28 9:41 GMT+02:00 Yong Wu : > > This patch is for ARM Short Descriptor Format.It has 2-levels > > pagetable and the allocator supports 4K/64K/1M/16M. > > > > Signed-off-by: Yong Wu [snip] > > +static phys_addr_t

Re: [PATCH V2] x86: Allow built-in command line to work in early kernel init

2015-05-12 Thread H. Peter Anvin
On 05/12/2015 04:53 PM, Matthew Garrett wrote: > On Tue, May 12, 2015 at 04:41:22PM -0700, Yinghai Lu wrote: > >> You can not assume that you can use buffer after cmd_line from bootloader >> blindly. > > Are there any bootloaders that don't allocate a buffer of the maximum > command line size?

Re: [PATCH tip/core/rcu 4/4] netfilter: Fix list_entry_rcu usage

2015-05-12 Thread Steven Rostedt
On Tue, 12 May 2015 15:46:27 -0700 "Paul E. McKenney" wrote: > From: Patrick Marlier > > Signed-off-by: Patrick Marlier > Signed-off-by: Paul E. McKenney > --- > net/netfilter/core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/net/netfilter/core.c

Re: [PATCH 4/4] netconsole: implement extended console support

2015-05-12 Thread David Miller
From: Andrew Morton Date: Tue, 12 May 2015 16:36:02 -0700 > There's no such thing as CON_EXTENDED. Not sure what this is trying to > say. Please read the patch series that, in the title posting of this series, Tejun explains this series depends upon. -- To unsubscribe from this list: send the

Re: [PATCH tip/core/rcu 3/4] md/bitmap: Fix list_entry_rcu usage

2015-05-12 Thread Steven Rostedt
On Tue, 12 May 2015 15:46:26 -0700 "Paul E. McKenney" wrote: > From: Patrick Marlier > > Signed-off-by: Patrick Marlier > Signed-off-by: Paul E. McKenney > --- > drivers/md/bitmap.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/md/bitmap.c

[RFC] net: support SOCK_DONTWAIT for non-blocking accept4

2015-05-12 Thread Eric Wong
It may occasionally be useful to share a listen socket between two or more tasks with different processing models (blocking and non-blocking). This may happen during a software upgrade when an older process (using blocking I/O) shares the listen socket with a new process which wants to use

Re: [PATCH v11 07/10] iommu/vt-d: enable kdump support in iommu module

2015-05-12 Thread Baoquan He
On 05/13/15 at 10:28am, Li, ZhenHua wrote: > >>+static u8 g_translation_pre_enabled; > >Hi Zhenhua, > > > >I haven't checked patch one by one, am going through the code flow. > > > >About g_translation_pre_enabled, I don't think it's necessary to define > >it as a global variable. Both its

Re: [PATCH v2 1/3] usb: notify hcd when USB device suspend or resume

2015-05-12 Thread Lu, Baolu
On 05/12/2015 11:54 PM, Alan Stern wrote: On Tue, 12 May 2015, Lu, Baolu wrote: I'm sorry that I confused you. FSC is a different thing from what this patch series does. I know that. The patch series, in its current form, is fine. Now I'm trying to understand what you originally wanted

Re: [PATCH v11 07/10] iommu/vt-d: enable kdump support in iommu module

2015-05-12 Thread Li, ZhenHua
+static u8 g_translation_pre_enabled; Hi Zhenhua, I haven't checked patch one by one, am going through the code flow. About g_translation_pre_enabled, I don't think it's necessary to define it as a global variable. Both its assignment and judgement are in init_dmars(). In this situation a

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

2015-05-12 Thread Stephen Rothwell
Hi all, On Mon, 11 May 2015 11:26:12 +1000 Stephen Rothwell wrote: > > After merging the vfs tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > fs/f2fs/namei.c: In function 'f2fs_encrypted_follow_link': > fs/f2fs/namei.c:336:10: warning: passing argument 2 of

Re: [PATCH v4 2/3] irqchip: GIC: Add support for irq_{get,set}_irqchip_state

2015-05-12 Thread Feng Kan
Marc: Sorry for top posting. It seems with GIC-400, the get_irqstate is not a reliable way of accessing the GPIO status. In our case, the gpio interrupt status can only be read correctly with the SPISR register. So it seems we have to go back to the old way of mapping the SPISR portion of the GIC

Re: [PATCH v11 07/10] iommu/vt-d: enable kdump support in iommu module

2015-05-12 Thread Baoquan He
On 05/11/15 at 05:52pm, Li, Zhen-Hua wrote: > Modify the operation of the following functions when called during crash dump: > iommu_context_addr > free_context_table > get_domain_for_dev > init_dmars > intel_iommu_init > > Bill Sumner: > Original version. > > Zhenhua: >

Re: [PATCH v2] rmap: fix theoretical race between do_wp_page and shrink_active_list

2015-05-12 Thread Rik van Riel
On 05/12/2015 09:43 PM, Minchan Kim wrote: > Hi, Rik > > I'd like to bring up the issue in this thread although I already gave > my Acked-by. > > Below issue causes by no PG_locked page in page_referenced while > page_move_anon_rmap depends on PG_locked to prevent race with rmap code. > > So,

Re: [PATCH 03/18] f2fs crypto: declare some definitions for f2fs encryption feature

2015-05-12 Thread Dave Chinner
On Fri, May 08, 2015 at 09:20:38PM -0700, Jaegeuk Kim wrote: > This definitions will be used by inode and superblock for encyption. How much of this crypto stuff is common with or only slightly modified from the ext4 code? Is the behaviour and features the same? Is the user API and management

Re: Please add my h8300 tree to linux-next

2015-05-12 Thread Stephen Rothwell
Hi Yoshinori, On Wed, 13 May 2015 09:49:42 +0900 Yoshinori Sato wrote: > > At Wed, 13 May 2015 08:52:03 +1000, Stephen Rothwell wrote: > > > > On Wed, 13 May 2015 01:18:31 +0900 Yoshinori Sato > > wrote: > > > > > > Could you add this tree? > > >

[PATCH 1/1] drivers: staging: fbtft: fbtft-core.c: Fix different address space warning

2015-05-12 Thread Tolga Ceylan
To fix sparse warning of incorrect type when calling vfree() (different address space), added annotation __force. Signed-off-by: Tolga Ceylan --- drivers/staging/fbtft/fbtft-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/fbtft/fbtft-core.c

Re: [PATCH v11 0/10] iommu/vt-d: Fix intel vt-d faults in kdump kernel

2015-05-12 Thread Li, ZhenHua
One thing must be pointed out: There is a known issue that hpsa driver cannot work well in kdump kernel. And this patchset is not intended to fix this problem. So this patchset cannot work with HP smart array devices which need hpsa driver. On 05/11/2015 05:52 PM, Li, Zhen-Hua wrote: This

Re: lustre_dlm_flags.h GPLv3 license clarification

2015-05-12 Thread Drokin, Oleg
Hello! On May 12, 2015, at 6:43 PM, George G. Davis wrote: > Greetings, > > Resending this using the correct version of get_maintainers.pl. > > As recommended in the thread "SPDX-License-Identifier” [1], I would like to > followup with the > maintainers of the file >

Re: [PATCH v11 05/10] iommu/vt-d: Add functions to load and save old re

2015-05-12 Thread Li, ZhenHua
On 05/12/2015 04:37 PM, Dave Young wrote: Seems the subject was truncated? Maybe "re" means root entry? Then please fix it On 05/11/15 at 05:52pm, Li, Zhen-Hua wrote: Add functions to load root entry table from old kernel, and to save updated root entry table. Add two member in struct

Re: [PATCH v11 02/10] iommu/vt-d: Items required for kdump

2015-05-12 Thread Li, ZhenHua
On 05/12/2015 04:17 PM, Dave Young wrote: On 05/11/15 at 05:52pm, Li, Zhen-Hua wrote: Add context entry functions needed for kdump. +/* + * Fix Crashdump failure caused by leftover DMA through a hardware IOMMU + * + * Fixes the crashdump kernel to deal with an active iommu and legacy + * DMA

Re: [PATCH v2] rmap: fix theoretical race between do_wp_page and shrink_active_list

2015-05-12 Thread Minchan Kim
Hi, Rik I'd like to bring up the issue in this thread although I already gave my Acked-by. Below issue causes by no PG_locked page in page_referenced while page_move_anon_rmap depends on PG_locked to prevent race with rmap code. So, although this patch fixes below one example, we still have a

Re: [PATCH 4/5] workqueue: don't expose workqueue_attrs to users

2015-05-12 Thread Lai Jiangshan
On 05/12/2015 09:22 PM, Tejun Heo wrote: > Hello, Lai. > > On Tue, May 12, 2015 at 10:15:28AM +0800, Lai Jiangshan wrote: >>> I'm not sure about this. Yeah, sure, it's a bit more lines of code >>> but at the same time this'd allow us to make the public interface >>> atomic too. What we prolly

Re: [PATCH] aoe: Use 64-bit timestamp in frame

2015-05-12 Thread Ed Cashin
On 05/12/2015 05:44 AM, Arnd Bergmann wrote: On Monday 11 May 2015 21:00:25 Ed Cashin wrote: ... In that case, there is still information about the timing embedded in the AoE tag. The send time in jiffies is a rough-grained record of the send time, and it's extracted from the tag. For these

RE: [RFC][PATCH] perf, pebs: Add PEBS v3 record decoding

2015-05-12 Thread Liang, Kan
I did some tests on HSX platform. It works well. Tested-by: Kan Liang Kan > > On Tue, May 12, 2015 at 03:25:57PM +0200, Peter Zijlstra wrote: > > > > > > So seeing how I have both this series and Andi's SKL patches, I did > > the below on top of them both. > > > > Could someone try that? >

Re: [PATCH] Documentation: leds-lp5523: describe master fader attributes

2015-05-12 Thread Kim, Milo
On 5/13/2015 10:15 AM, Toshi Kikuchi wrote: Add the usage of the new attributes for master faders. Signed-off-by: Toshi Kikuchi Acked-by: Milo Kim Best regards, Milo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [Y2038] [PATCH] aoe: Use 64-bit timestamp in frame

2015-05-12 Thread Ed Cashin
On 05/12/2015 07:14 AM, Arnd Bergmann wrote: On Tuesday 12 May 2015 11:44:21 Arnd Bergmann wrote: There are of course multiple ways to do this. One way would be to change the code to work on 32-bit nanoseconds instead of 32-bit microseconds. This requires proving that the we cannot exceed 4.29

[PATCH net-next] netfilter: Use correct return for seq_show functions

2015-05-12 Thread Joe Perches
Using seq_has_overflowed doesn't produce the right return value. Either 0 or -1 is, but 0 is much more common and works well when seq allocation retries. I believe this doesn't matter as the initial allocation is always sufficient, this is just a correctness patch. Miscellanea: o Don't use

Re: xfs: does mkfs.xfs require fancy switches to get decent performance? (was Tux3 Report: How fast can we fsync?)

2015-05-12 Thread Daniel Phillips
On 05/12/2015 03:35 PM, David Lang wrote: > On Tue, 12 May 2015, Daniel Phillips wrote: >> On 05/12/2015 02:30 PM, David Lang wrote: >>> You need to get out of the mindset that Ted and Dave are Enemies that you >>> need to overcome, they are >>> friendly competitors, not Enemies. >> >> You are

Re: [PATCH v2] rmap: fix theoretical race between do_wp_page and shrink_active_list

2015-05-12 Thread Minchan Kim
Hello Andrew, On Tue, May 12, 2015 at 03:28:40PM -0700, Andrew Morton wrote: > On Tue, 12 May 2015 13:18:39 +0300 Vladimir Davydov > wrote: > > > As noted by Paul the compiler is free to store a temporary result in a > > variable on stack, heap or global unless it is explicitly marked as > >

Re: [RESEND][PATCH] Bluetooth: Make request workqueue freezable

2015-05-12 Thread Laura Abbott
(cc-ing linux-usb as well) On 05/12/2015 08:14 AM, Marcel Holtmann wrote: Hi Laura, We've received a number of reports of warnings when coming out of suspend with certain bluetooth firmware configurations: WARNING: CPU: 3 PID: 3280 at drivers/base/firmware_class.c:1126

[PATCH] Documentation: leds-lp5523: describe master fader attributes

2015-05-12 Thread Toshi Kikuchi
Add the usage of the new attributes for master faders. Signed-off-by: Toshi Kikuchi --- Documentation/leds/leds-lp5523.txt | 30 ++ 1 file changed, 30 insertions(+) diff --git a/Documentation/leds/leds-lp5523.txt b/Documentation/leds/leds-lp5523.txt index

Re: [PATCH v2] rmap: fix theoretical race between do_wp_page and shrink_active_list

2015-05-12 Thread Minchan Kim
On Tue, May 12, 2015 at 01:18:39PM +0300, Vladimir Davydov wrote: > As noted by Paul the compiler is free to store a temporary result in a > variable on stack, heap or global unless it is explicitly marked as > volatile, see: > > >

  1   2   3   4   5   6   7   8   9   10   >