[RFC] mm: change HIGHMEM_ZONE macro definition

2015-10-07 Thread yalin wang
Change HIGHMEM_ZONE to be the same as DMA_ZONE macro. Signed-off-by: yalin wang --- include/linux/vm_event_item.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/vm_event_item.h b/include/linux/vm_event_item.h index 2b1cef8..b3bd7c7 100644 ---

[lkp] [f2fs] 15bec0ff5a: -7.5% fsmark.files_per_sec

2015-10-07 Thread kernel test robot
FYI, we noticed the below changes on https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master commit 15bec0ff5a9ba6d203178fa8772259df6207942a ("f2fs: do not skip dentry block writes") =

[PATCH 4/5] thermal: exynos: Remove unneeded semicolon

2015-10-07 Thread Krzysztof Kozlowski
Remove semicolons after switch statement. Signed-off-by: Krzysztof Kozlowski --- drivers/thermal/samsung/exynos_tmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c index

[PATCH 2/5] thermal: exynos: Fix first temperature read after registering sensor

2015-10-07 Thread Krzysztof Kozlowski
Thermal core could not read the temperature after registering the thermal sensor with thermal_zone_of_sensor_register() because the driver was not yet initialized. The call trace looked like: exynos_tmu_probe() thermal_zone_of_sensor_register() of_thermal_set_mode()

[PATCH 1/5] thermal: exynos: Fix unbalanced regulator disable on probe failure

2015-10-07 Thread Krzysztof Kozlowski
During probe if the regulator could not be enabled, the error exit path would still disable it. This could lead to unbalanced counter of regulator enable/disable. The patch moves code for getting and enabling the regulator from exynos_map_dt_data() to probe function because it is really not a

[PATCH 5/5] thermal: exynos: Directly return 0 instead of using local ret variable

2015-10-07 Thread Krzysztof Kozlowski
The 'ret' variable in exynos5440_tmu_initialize() is initialized to 0 and returned as is. Replace it with direct return statement. This also fixes coccinelle warning: drivers/thermal/samsung/exynos_tmu.c:611:5-8: Unneeded variable: "ret". Return "0" on line 654 Signed-off-by: Krzysztof Kozlowski

[PATCH 3/5] thermal: exynos: Use IS_ERR() because regulator cannot be NULL

2015-10-07 Thread Krzysztof Kozlowski
The NULL check in probe's error path is not needed because in that time the regulator cannot be NULL (regulator_get() returns valid pointer or ERR_PTR). Signed-off-by: Krzysztof Kozlowski --- drivers/thermal/samsung/exynos_tmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH v3 2/3] uio_pci_generic: add MSI/MSI-X support

2015-10-07 Thread Avi Kivity
On 08/10/15 00:05, Michael S. Tsirkin wrote: On Wed, Oct 07, 2015 at 07:39:16PM +0300, Avi Kivity wrote: That's what I thought as well, but apparently adding msix support to the already insecure uio drivers is even worse. I'm glad you finally agree what these drivers are doing is insecure.

Re: [Patch v6 4/7] PCI/ACPI: Consolidate common PCI host bridge code into ACPI core

2015-10-07 Thread Jiang Liu
On 2015/10/7 1:47, Bjorn Helgaas wrote: > Hi Jiang, > > Strictly speaking, this patch by itself doesn't actually "consolidate" > anything because it only adds acpi_pci_root_create() (which isn't called by > anything yet), but doesn't remove the original x86 copy. > >> +struct pci_bus

[PATCH v2 net-next 3/3] bpf: add unprivileged bpf tests

2015-10-07 Thread Alexei Starovoitov
Add new tests samples/bpf/test_verifier: unpriv: return pointer checks that pointer cannot be returned from the eBPF program unpriv: add const to pointer unpriv: add pointer to pointer unpriv: neg pointer checks that pointer arithmetic is disallowed unpriv: cmp pointer with const unpriv:

[PATCH v2 net-next 0/3] bpf: unprivileged

2015-10-07 Thread Alexei Starovoitov
v1-v2: - this set logically depends on cb patch "bpf: fix cb access in socket filter programs": http://patchwork.ozlabs.org/patch/527391/ which is must have to allow unprivileged programs. Thanks Daniel for finding that issue. - refactored sysctl to be similar to 'modules_disabled' -

[PATCH v2 net-next 1/3] bpf: enable non-root eBPF programs

2015-10-07 Thread Alexei Starovoitov
In order to let unprivileged users load and execute eBPF programs teach verifier to prevent pointer leaks. Verifier will prevent - any arithmetic on pointers (except R10+Imm which is used to compute stack addresses) - comparison of pointers (except if (map_value_ptr == 0) ... ) - passing

[PATCH v2 net-next 2/3] bpf: charge user for creation of BPF maps and programs

2015-10-07 Thread Alexei Starovoitov
since eBPF programs and maps use kernel memory consider it 'locked' memory from user accounting point of view and charge it against RLIMIT_MEMLOCK limit. This limit is typically set to 64Kbytes by distros, so almost all bpf+tracing programs would need to increase it, since they use maps, but

linux-next: Tree for Oct 8

2015-10-07 Thread Stephen Rothwell
Hi all, Changes since 20151007: Linus' tree gained a build failure for which I applied a fix patch. I used the h8300 tree from next-20150828 since the current tree has been rebased onto linux-next again :-( The battery tree still had its build failure so I used the version from next-20150925

Re: [RFC PATCH] Use vAPIC when doing IPI for PVHVM guests.

2015-10-07 Thread Juergen Gross
On 10/07/2015 10:21 PM, Konrad Rzeszutek Wilk wrote: Hey, I was running some tools in which we would heavily do rescheduling of events - and realized to my surprise that the event channels (and the hypercall) would slow things down. If I used the vAPIC with its IPI support (so no VMEXIT) I got

RE: [PATCH] genirq: Move irq_set_vcpu_affinity out of "#ifdef CONFIG_SMP"

2015-10-07 Thread Wu, Feng
Hi Thomas & Paolo, > -Original Message- > From: Jiang Liu [mailto:jiang@linux.intel.com] > Sent: Saturday, October 03, 2015 5:11 PM > To: Wu, Feng; t...@linutronix.de; pbonz...@redhat.com > Cc: k...@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH] genirq: Move

[RFC] regmap: change bool to 1 bit variable in struct regmap

2015-10-07 Thread yalin wang
This patch change some bool variables in struct regmap { } to be u8 v : 1 type, so that we can shrink the sizeof of struct regmap. Signed-off-by: yalin wang --- drivers/base/regmap/internal.h | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git

Re: [PATCH v3 2/3] uio_pci_generic: add MSI/MSI-X support

2015-10-07 Thread Gleb Natapov
On Thu, Oct 08, 2015 at 12:05:11AM +0300, Michael S. Tsirkin wrote: > On Wed, Oct 07, 2015 at 07:39:16PM +0300, Avi Kivity wrote: > > That's what I thought as well, but apparently adding msix support to the > > already insecure uio drivers is even worse. > > I'm glad you finally agree what these

[PATCH -next] mm/vmacache: inline vmacache_valid_mm()

2015-10-07 Thread Davidlohr Bueso
This function incurs in very hot paths and merely does a few loads for validity check. Lets inline it, such that we can save the function call overhead. Signed-off-by: Davidlohr Bueso --- mm/vmacache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/vmacache.c

Re: [kbuild-all] [PATCH 4/5 v2] pseries/iommu: implement DDW-aware dma_get_page_shift

2015-10-07 Thread Michael Ellerman
On Thu, 2015-10-08 at 09:16 +0800, Fengguang Wu wrote: > On Thu, Oct 08, 2015 at 09:06:03AM +0800, Fengguang Wu wrote: > > On Thu, Oct 08, 2015 at 11:11:59AM +1100, Michael Ellerman wrote: > > > On Wed, 2015-10-07 at 21:56 +0800, Fengguang Wu wrote: > > > > On Tue, Oct 06, 2015 at 02:39:06PM

Re: [alsa-devel] [PATCH 1/2] ASoC: rockchip: i2s: add 8 channels capture and lrck-mode support

2015-10-07 Thread sugar
Only the new design support 8 channels capture now, the others support 2 channels capture. but all of them support 32bits/sample. On 10/8/2015 11:19, Caleb Crome wrote: That will work! Do all your cortex-a parts support that? Thanks, Caleb Sent from my iPhone -- To unsubscribe from this

Re: [PATCH v2] kselftest: add kselftest-clean rule

2015-10-07 Thread Michael Ellerman
On Thu, 2015-10-08 at 02:41 +, Wang Long wrote: > We use > > $make TARGETS="size timers" kselftest > > to build and run selftests. but there is no rule > for us to clean the kselftest generated files. > > This patch add the rules, for example: > > $ make TARGETS="size timers"

Re: [PATCH v2] barriers: introduce smp_mb__release_acquire and update documentation

2015-10-07 Thread Michael Ellerman
On Wed, 2015-10-07 at 08:25 -0700, Paul E. McKenney wrote: > On Wed, Oct 07, 2015 at 02:23:17PM +0100, Will Deacon wrote: > > Hi Peter, > > > > Thanks for the headache ;) > > > > On Wed, Oct 07, 2015 at 01:19:15PM +0200, Peter Zijlstra wrote: > > > On Wed, Oct 07, 2015 at 11:59:28AM +0100, Will

RE: [PATCH v8 0/2] Enable capsule loader interface for efi firmware updating

2015-10-07 Thread Kweh, Hock Leong
> -Original Message- > From: Bryan O'Donoghue [mailto:pure.lo...@nexus-software.ie] > Sent: Wednesday, October 07, 2015 11:00 PM > > Wilson. > > Same question as at V7. If you aren't supporting the MFH on Galileo then > what capsule are you using with 0.75 BIOS ? From memory it won't

[PATCHv3 2/2] ARM: multi_v7_defconfig: Enable rtl8152 ethernet driver for Odroid-XU4

2015-10-07 Thread Anand Moon
Odroid XU4 has a RTL8153-CG gigabit Ethernet adapter, connected over USB 3.0. Signed-off-by: Anand Moon Reviewed-by: Krzysztof Kozlowski --- Changes: Fixed the commit message thanks to Krzysztof Kozlowski Added reviewed by Krzysztof Kozlowski --- arch/arm/configs/multi_v7_defconfig |

[PATCHv3 1/2] ARM: exynos_defconfig: Enable rtl8152 ethernet driver for Odroid-XU4

2015-10-07 Thread Anand Moon
Odroid XU4 has a RTL8153-CG gigabit Ethernet adapter, connected over USB 3.0. Signed-off-by: Anand Moon Reviewed-by: Krzysztof Kozlowski --- Changes: Fixed the commit message thanks to Krzysztof Kozlowski Added reviewed by Krzysztof Kozlowski --- arch/arm/configs/exynos_defconfig | 1

Re: [PATCH] arch/powerpc: provide zero_bytemask() for big-endian

2015-10-07 Thread Michael Ellerman
On Wed, 2015-10-07 at 10:46 -0400, Chris Metcalf wrote: > For some reason, only the little-endian flavor of > powerpc provided the zero_bytemask() implementation. Because previously it was optional unless DCACHE_WORD_ACCESS was enabled. > Reported-by: Michal Sojka > Signed-off-by: Chris Metcalf

Re: [PATCH RESEND] rtsx_usb_ms: Use msleep_interruptible() in polling loop

2015-10-07 Thread Roger Tseng
On Mon, 2015-09-28 at 01:34 +0100, Ben Hutchings wrote: > rtsx_usb_ms creates a task that mostly sleeps, but tasks in > uninterruptible sleep still contribute to the load average (for > bug-compatibility with Unix). A load average of ~1 on a system that > should be idle is somewhat alarming. > >

Re: unsquashfs not preserving file capabilities

2015-10-07 Thread Prasad Koya
Hi Debugged this with traces enabled. Turns out that unsquashfs *is* setting xattrs with lsetxattr() but soon after returning from write_xattr(), it calls chown() and that is removing the xattrs on file. Please take a look at this patch below, which calls chown() only if uid/gid of file is

[lkp] [nfs] 048883e0b9: No primary result change, -70.4% fsmark.time.involuntary_context_switches

2015-10-07 Thread kernel test robot
FYI, we noticed the below changes on https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master commit 048883e0b934d9a5103d40e209cb14b7f33d2933 ("nfs: fix pg_test page count calculation") =

[PATCH v3 3/3] net: unix: optimize wakeups in unix_dgram_recvmsg()

2015-10-07 Thread Jason Baron
Now that connect() permanently registers a callback routine, we can induce extra overhead in unix_dgram_recvmsg(), which unconditionally wakes up its peer_wait queue on every receive. This patch makes the wakeup there conditional on there being waiters. Signed-off-by: Jason Baron ---

[PATCH v3 0/3] net: unix: fix use-after-free

2015-10-07 Thread Jason Baron
Hi, These patches are against mainline, I can re-base to net-next, just let me know. They have been tested against: https://lkml.org/lkml/2015/9/13/195, which causes the use-after-free quite quickly and here: https://lkml.org/lkml/2015/10/2/693. Thanks, -Jason v3: -beef up memory barrier

[PATCH v3 1/3] net: unix: fix use-after-free in unix_dgram_poll()

2015-10-07 Thread Jason Baron
The unix_dgram_poll() routine calls sock_poll_wait() not only for the wait queue associated with the socket s that we are poll'ing against, but also calls sock_poll_wait() for a remote peer socket p, if it is connected. Thus, if we call poll()/select()/epoll() for the socket s, there are then a

[PATCH v3 2/3] net: unix: Convert gc_flags to flags

2015-10-07 Thread Jason Baron
Convert gc_flags to flags in perparation for the subsequent patch, which will make use of a flag bit for a non-gc purpose. Signed-off-by: Jason Baron --- include/net/af_unix.h | 2 +- net/unix/garbage.c| 12 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git

Re: [alsa-devel] [PATCH 1/2] ASoC: rockchip: i2s: add 8 channels capture and lrck-mode support

2015-10-07 Thread Caleb Crome
That will work! Do all your cortex-a parts support that? Thanks, Caleb Sent from my iPhone > On Oct 7, 2015, at 7:44 PM, sugar wrote: > > Yes, we can support 8 channels with 32bits/sample, thanks. > >> 在 10/8/2015 10:36, Caleb Crome 写道: >> We make microphone arrays with lots of

Re: [PATCH 2/2] ASoC: Codec: wm8962: declare ALC Coefficients as 4 separate registers

2015-10-07 Thread Jiada Wang
Hi On 10/06/2015 08:01 PM, Mark Brown wrote: On Tue, Oct 06, 2015 at 04:06:55PM +0900, Jiada Wang wrote: As ALC2 register is volatile, declare it as one of ALC Coefficients register together with other non-volatile registers will cause issue, in case wm8962 has enter suspend mode, and

Re: [Bugfix v4 1/2] eata: Convert eata driver as normal PCI and platform device drivers

2015-10-07 Thread Jiang Liu
On 2015/10/8 10:51, Jiang Liu wrote: > Previously the eata driver just grabs and accesses eata PCI devices > without implementing a PCI device driver, that causes troubles with > latest IRQ related > > Commit 991de2e59090 ("PCI, x86: Implement pcibios_alloc_irq() and > pcibios_free_irq()")

Re: [lkp] [iommu/vt] c1b9a54b6f:

2015-10-07 Thread Baoquan He
Hi, On 10/08/15 at 10:47am, kernel test robot wrote: > FYI, we noticed the below changes on > > git://internal_mailing_list_patch_tree > Baoquan-He/iommu-vt-d-break-the-for-loop-if-an-empty-ir_ioapic-entry-found > commit c1b9a54b6f21f22bb5fba5cb981da0be06011476 ("iommu/vt-d: Adjsut the >

[Bugfix v4 1/2] eata: Convert eata driver as normal PCI and platform device drivers

2015-10-07 Thread Jiang Liu
Previously the eata driver just grabs and accesses eata PCI devices without implementing a PCI device driver, that causes troubles with latest IRQ related Commit 991de2e59090 ("PCI, x86: Implement pcibios_alloc_irq() and pcibios_free_irq()") changes the way to allocate PCI legacy IRQ for PCI

[Bugfix v4 2/2] eata: Ask for help to reset eata controllers for kexec

2015-10-07 Thread Jiang Liu
Arthur Marsh reported that with the first patch applied, he still encountered troubles when doing kexec with eata devices. Quote Arthur's report: To clarify, if the eata driver gets loaded once and stays loaded, at a kexec reboot attempt the "Synchronising SCSI cache" message is missing

Re: [alsa-devel] [PATCH 1/2] ASoC: rockchip: i2s: add 8 channels capture and lrck-mode support

2015-10-07 Thread sugar
Yes, we can support 8 channels with 32bits/sample, thanks. 在 10/8/2015 10:36, Caleb Crome 写道: We make microphone arrays with lots of microphones. Some as few as 2, many with 7 channels, and a few with 14 or more. Can you support 8 channels with 32 bits/sample? That would work, we can just

[PATCH v2] kselftest: add kselftest-clean rule

2015-10-07 Thread Wang Long
We use $make TARGETS="size timers" kselftest to build and run selftests. but there is no rule for us to clean the kselftest generated files. This patch add the rules, for example: $ make TARGETS="size timers" kselftest-clean can clean all kselftest generated files. Signed-off-by:

Re: [PATCH] kselftest: add cleankselftest rule

2015-10-07 Thread long.wanglong
On 2015/10/2 22:18, Shuah Khan wrote: > On 09/30/2015 07:17 PM, Michael Ellerman wrote: >> On Wed, 2015-09-23 at 09:33 +, Wang Long wrote: >>> We use >>> >>> $make TARGETS="size timers" kselftest >>> >>> to build and run selftests. but there is no rule >>> for us to clean the kselftest

[lkp] [mm] 81c72584a4: -4.3% will-it-scale.per_process_ops

2015-10-07 Thread kernel test robot
FYI, we noticed the below changes on https://git.kernel.org/pub/scm/linux/kernel/git/andrea/aa.git master commit 81c72584a480c5a4b7eede527d0b990c83c2dcc9 ("mm: gup: make get_user_pages_fast and __get_user_pages_fast latency conscious")

Re: [alsa-devel] [PATCH 1/2] ASoC: rockchip: i2s: add 8 channels capture and lrck-mode support

2015-10-07 Thread Caleb Crome
We make microphone arrays with lots of microphones. Some as few as 2, many with 7 channels, and a few with 14 or more. Can you support 8 channels with 32 bits/sample? That would work, we can just set the codecs for 16-bit samples, which would be 256 bits/frame. Hope you had a great golden

linux-next: build failure after merge of the chrome-platform tree

2015-10-07 Thread Stephen Rothwell
01e7e432df74 ("platform/chrome: Support reading/writing the vboot context") I have used the chrome-platform tree from next-20151007 for today. -- Cheers, Stephen Rothwells...@canb.auug.org.au -- To unsubscribe from this list: send the line "unsubscribe linux-kern

Re: [PATCH net-next 1/2] bpf: enable non-root eBPF programs

2015-10-07 Thread Alexei Starovoitov
On 10/5/15 1:48 PM, Alexei Starovoitov wrote: Unprivileged socket filter bpf programs have access to the following helper functions: - map lookup/update/delete (but they cannot store kernel pointers into them) - get_random (it's already exposed to unprivileged user space) - get_smp_processor_id

[PATCH] mm: skip if required_kernelcore is larger than totalpages

2015-10-07 Thread Xishi Qiu
If kernelcore was not specified, or the kernelcore size is zero (required_movablecore >= totalpages), or the kernelcore size is larger than totalpages, there is no ZONE_MOVABLE. We should fill the zone with both kernel memory and movable memory. Signed-off-by: Xishi Qiu --- mm/page_alloc.c | 7

Re: [PATCH v4 1/5] PCI: Add pci_bus_fixup_irqs().

2015-10-07 Thread Matthew Minter
On Wednesday 07 October 2015 18:08:47 Bjorn Helgaas wrote: > [+cc Matthew] > > On Wed, Oct 07, 2015 at 01:08:40PM -0700, David Daney wrote: > > On 10/07/2015 12:44 PM, Bjorn Helgaas wrote: > > >Hi David, > > > > > >On Fri, Oct 02, 2015 at 11:43:59AM -0700, David Daney wrote: > > >>From: David

RE: [PATCH 0/9] drivers:mtd:UBI: add bakvol module for MLC NAND paired page issue

2015-10-07 Thread beanhuo
> Am 30.09.2015 um 08:55 schrieb Richard Weinberger: > >> By the way, Do you review my patches series ? I don't backup duplicated > data in OOB . > >> Can you specify which sector codes ? so that I can explain it in detail. > > > > Okay. Maybe both Boris and I misread your code, can you please

RE: [PATCH] vf610_adc: Fix internal temperature calculation

2015-10-07 Thread Duan Andy
From: Jonathan Cameron Sent: Sunday, September 27, 2015 11:53 PM > To: Bhuvanchandra DV; linux-...@vger.kernel.org > Cc: ste...@agner.ch; maitysancha...@gmail.com; Duan Fugang-B38611; > knaac...@gmx.de; l...@metafoo.de; pme...@pmeerw.net; shawn@linaro.org; > linux-kernel@vger.kernel.org;

Re: [alsa-devel] [PATCH 1/2] ASoC: rockchip: i2s: add 8 channels capture and lrck-mode support

2015-10-07 Thread sugar
Hi Caleb, we haven't support 16 channels capture and playback yet, would you mind to detail the use case? if must, we may support this feature on next generation chip. 在 10/7/2015 21:04, Caleb Crome 写道: Hi sugar, Can the rockchip support more than 8 channels? Ideally, we would like to

Re: [RFC][PATCH 1/2] WIP: Devicetree bindings for Ion

2015-10-07 Thread Laura Abbott
On 10/7/15 11:36 AM, Rob Herring wrote: On Wed, Oct 7, 2015 at 5:36 AM, Andrew wrote: On 2015-10-07 02:01, Laura Abbott wrote: On 10/6/15 3:35 PM, Rob Herring wrote: On Tue, Oct 6, 2015 at 3:47 PM, Laura Abbott wrote: From: Laura Abbott This adds a base set of devicetree bindings for

Re: [PATCH 1/2] ASoC: WM8962: mark cache_dirty flag after software reset in pm_resume

2015-10-07 Thread Jiada Wang
Hi On 10/06/2015 07:59 PM, Mark Brown wrote: On Tue, Oct 06, 2015 at 04:06:54PM +0900, Jiada Wang wrote: + /* All registers have been reset to default value without calling +* to regmap interface, even if reset fails, some registers +* maybe in intermediate status, so we

Re: [kbuild-all] [PATCH 4/5 v2] pseries/iommu: implement DDW-aware dma_get_page_shift

2015-10-07 Thread Fengguang Wu
On Thu, Oct 08, 2015 at 09:06:03AM +0800, Fengguang Wu wrote: > On Thu, Oct 08, 2015 at 11:11:59AM +1100, Michael Ellerman wrote: > > On Wed, 2015-10-07 at 21:56 +0800, Fengguang Wu wrote: > > > On Tue, Oct 06, 2015 at 02:39:06PM +1100, Michael Ellerman wrote: > > > > On Sat, 2015-10-03 at 04:33

Re: [PATCH v2] HID: multitouch: Fetch feature reports on demand for Win8 devices

2015-10-07 Thread Andrew Duggan
On 10/07/2015 08:56 AM, Seth Forshee wrote: On Wed, Oct 07, 2015 at 09:34:10AM -0400, Benjamin Tissoires wrote: [sorry for the late answer Jiri, I was on vacations last week] On Oct 07 2015 or thereabouts, Mika Westerberg wrote: Some newer Intel Skylake based Dell laptops with Win8

Re: [PATCH] percpu_counter: return precise count from __percpu_counter_compare()

2015-10-07 Thread Tejun Heo
Hello, Dave. On Thu, Oct 08, 2015 at 12:02:18PM +1100, Dave Chinner wrote: > > percpu cmpxchg is no different from sub or any other operations > > regarding cross-CPU synchronization. They're safe iff the operations > > are on the local CPU. They have to be made atomics if they need to be > >

Re: [kbuild-all] [PATCH 4/5 v2] pseries/iommu: implement DDW-aware dma_get_page_shift

2015-10-07 Thread Fengguang Wu
On Thu, Oct 08, 2015 at 11:11:59AM +1100, Michael Ellerman wrote: > On Wed, 2015-10-07 at 21:56 +0800, Fengguang Wu wrote: > > On Tue, Oct 06, 2015 at 02:39:06PM +1100, Michael Ellerman wrote: > > > On Sat, 2015-10-03 at 04:33 +0800, kbuild test robot wrote: > > > > Hi Nishanth, > > > > > > > >

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

2015-10-07 Thread Stephen Rothwell
Hi Sebastian, On Fri, 2 Oct 2015 11:49:32 +1000 Stephen Rothwell wrote: > > On Tue, 29 Sep 2015 11:45:31 +1000 Stephen Rothwell > wrote: > > > > After merging the battery tree, today's linux-next build (arm > > multi_v7_defconfig) failed like this: > > > > ERROR (phandle_references):

Re: [PATCH] percpu_counter: return precise count from __percpu_counter_compare()

2015-10-07 Thread Dave Chinner
On Wed, Oct 07, 2015 at 04:20:10PM -0700, Tejun Heo wrote: > Hello, Dave. > > On Thu, Oct 08, 2015 at 10:04:42AM +1100, Dave Chinner wrote: > ... > > As it is, the update race you pointed out is easy to solve with > > __this_cpu_cmpxchg rather than _this_cpu_sub (similar to mod_state() > > in the

Re: [PATCH v2 22/25] powerpc32: move xxxxx_dcache_range() functions inline

2015-10-07 Thread Christophe Leroy
Le 29/09/2015 02:29, Scott Wood a écrit : On Tue, Sep 22, 2015 at 06:51:13PM +0200, Christophe Leroy wrote: flush/clean/invalidate _dcache_range() functions are all very similar and are quite short. They are mainly used in __dma_sync() perf_event locate them in the top 3 consumming functions

Re: [kbuild-all] [PATCH 2/2] mfd: rtsx: fix build warning

2015-10-07 Thread Fengguang Wu
: > > > > Hi Sudip, > > > > > > > > [auto build test ERROR on v4.3-rc4 -- if it's inappropriate base, > > > > please ignore] > > > v4.3-rc4 is not appropriate base. Please use next-20151007 for both. > > > > OK. FYI, if you use [PATCH (nex

Re: [PATCH v5] clk: bcm2835: Add support for programming the audio domain clocks.

2015-10-07 Thread Stephen Boyd
On 10/06, Eric Anholt wrote: > diff --git a/drivers/clk/bcm/clk-bcm2835.c b/drivers/clk/bcm/clk-bcm2835.c > index dd295e4..b4d4421 100644 > --- a/drivers/clk/bcm/clk-bcm2835.c > +++ b/drivers/clk/bcm/clk-bcm2835.c > @@ -17,10 +17,273 @@ > #include > #include > #include > +#include >

[PATCH 2/5] usb: dwc2: reset dwc2 core before dwc2_get_hwparams()

2015-10-07 Thread Douglas Anderson
From: Yunzhi Li We initiate dwc2 usb controller in BIOS, dwc2_core_reset() should be called before dwc2_get_hwparams() to reset core registers to default value. Without this the FIFO setting might be incorrect because calculating FIFO size need power-on value of GRXFSIZ/GNPTXFSIZ/HPTXFSIZ

Re: [PATCH v2] usb: dwc2: reset dwc2 core before dwc2_get_hwparams()

2015-10-07 Thread Doug Anderson
John, On Mon, Oct 5, 2015 at 3:02 PM, John Youn wrote: > On 10/1/2015 1:50 PM, Doug Anderson wrote: >> John, >> >> On Tue, Aug 18, 2015 at 5:19 PM, John Youn wrote: >>> Hi Yunzhi, >>> >>> My concern is with the delays due to calling the dwc2_core_reset >>> during probe. You could factor out the

RE: [PATCH 0/9] drivers:mtd:UBI: add bakvol module for MLC NAND paired page issue

2015-10-07 Thread beanhuo
> > > As stated before, using OOB in UBI is not going to happen unless > > > proven that there is absolutely no other way to solve the paired pages > problem. > > > > > > Nacked-by: Richard Weinberger > > > > > > Sorry, > > > //Richard > > > > Hi, Richard > > Thanks for your concern. I am a new

[PATCH 4/5] usb: dwc2: Speed dwc2_get_hwparams() on some host-only ports

2015-10-07 Thread Douglas Anderson
On some host-only DWC2 ports (like the one in rk3288) when we set GUSBCFG_FORCEHOSTMODE in GUSBCFG and then read back, we don't see the bit set. Presumably that's because the port is always forced to HOST mode so there's no reason to implement these status bits. Since we know dwc2_core_reset()

[PATCH 5/5] usb: dwc2: reduce dwc2 driver probe time

2015-10-07 Thread Douglas Anderson
From: Yunzhi Li I found that the probe function of dwc2 driver takes much time when kernel boot up. There are many long delays in the probe function these take almost 1 second. This patch trying to reduce unnecessary delay time. In dwc2_core_reset() I see it use two at least 20ms delays to

[PATCH 1/5] usb: dwc2: Restore GUSBCFG in dwc2_get_hwparams()

2015-10-07 Thread Douglas Anderson
Previously dwc2_get_hwparams() was changing GUSBCFG and not putting it back the way it was (specifically it set and cleared FORCEHOSTMODE). Since we want to move dwc2_core_reset() _before_ dwc2_get_hwparams() we should make sure dwc2_get_hwparams() isn't messing with things in a permanent way.

[PATCH 3/5] CHROMIUM: usb: dwc2: Avoid double-reset at boot time

2015-10-07 Thread Douglas Anderson
In (usb: dwc2: reset dwc2 core before dwc2_get_hwparams()) we added an extra reset to the probe path for the dwc2 USB controllers. This allowed proper detection of parameters even if the firmware had already used the USB part. Unfortunately, this extra reset is quite slow and is affecting boot

[PATCH 0/5] usb: dwc2: fix dwc2_get_hwparams() + optimize probe time a bit

2015-10-07 Thread Douglas Anderson
This is a collection of patches, some by Yunzhi Li at Rockchip and some by me, that fix dwc2_get_hwparams() on some boards (depending on how the bootloader left things) and then attempt to optimize DWC2's probe time (since fixing dwc2_get_hwparams() made probe even slower than it was). Note that

Re: [PATCH v5 0/17] Add Analogix Core Display Port Driver

2015-10-07 Thread Yakir Yang
Hi Javier, On 10/07/2015 07:25 PM, Javier Martinez Canillas wrote: Hello Yakir, On 10/07/2015 01:05 PM, Yakir Yang wrote: Hi Javier, On 10/07/2015 05:26 PM, Javier Martinez Canillas wrote: Hello Yakir, On 10/07/2015 11:02 AM, Yakir Yang wrote: Hi Javier, On 10/07/2015 04:46 PM, Javier

Re: Missing operand for tlbie instruction on Power7

2015-10-07 Thread Michael Ellerman
On Wed, 2015-10-07 at 20:15 -0400, Josh Boyer wrote: > On Wed, Oct 7, 2015 at 8:10 PM, Michael Ellerman wrote: > > On Wed, 2015-10-07 at 10:31 -0400, Josh Boyer wrote: > >> On Wed, Oct 7, 2015 at 5:13 AM, Michael Ellerman > >> wrote: > >> > On Wed, 2015-10-07 at 02:19 -0500, Segher Boessenkool

[PATCH 03/10] tools: hv: report ENOSPC errors in hv_fcopy_daemon

2015-10-07 Thread K. Y. Srinivasan
From: Olaf Hering Currently some "Unspecified error 0x80004005" is reported on the Windows side if something fails. Handle the ENOSPC case and return ERROR_DISK_FULL, which allows at least Copy-VMFile to report a meaning full error. Signed-off-by: Olaf Hering Signed-off-by: K. Y. Srinivasan

[PATCH 04/10] tools: hv: remove repeated HV_FCOPY string

2015-10-07 Thread K. Y. Srinivasan
From: Olaf Hering HV_FCOPY is already used as identifier in syslog. Signed-off-by: Olaf Hering Signed-off-by: K. Y. Srinivasan --- tools/hv/hv_fcopy_daemon.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/hv/hv_fcopy_daemon.c b/tools/hv/hv_fcopy_daemon.c

[PATCH 06/10] Drivers: hv: utils: use memdup_user in hvt_op_write

2015-10-07 Thread K. Y. Srinivasan
From: Olaf Hering Use memdup_user to handle OOM. Fixes: 14b50f80c32d ('Drivers: hv: util: introduce hv_utils_transport abstraction') Signed-off-by: Olaf Hering Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_utils_transport.c |9 - 1 files changed, 4 insertions(+), 5

Re: [PATCH v7 05/11] task_isolation: add debug boot flag

2015-10-07 Thread Chris Metcalf
On 10/5/2015 1:07 PM, Luiz Capitulino wrote: On Mon, 28 Sep 2015 11:17:20 -0400 Chris Metcalf wrote: The new "task_isolation_debug" flag simplifies debugging of TASK_ISOLATION kernels when processes are running in PR_TASK_ISOLATION_ENABLE mode. Such processes should get no interrupts from

[PATCH 02/10] Drivers: hv: utils: run polling callback always in interrupt context

2015-10-07 Thread K. Y. Srinivasan
From: Olaf Hering All channel interrupts are bound to specific VCPUs in the guest at the point channel is created. While currently, we invoke the polling function on the correct CPU (the CPU to which the channel is bound to) in some cases we may run the polling function in a non-interrupt

[PATCH 01/10] Drivers: hv: util: Increase the timeout for util services

2015-10-07 Thread K. Y. Srinivasan
Util services such as KVP and FCOPY need assistance from daemon's running in user space. Increase the timeout so we don't prematurely terminate the transaction in the kernel. Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_fcopy.c |3 ++- drivers/hv/hv_kvp.c |3 ++-

[PATCH 08/10] drivers:hv: Export a function that maps Linux CPU num onto Hyper-V proc num

2015-10-07 Thread K. Y. Srinivasan
From: Jake Oshins This patch exposes the mapping between Linux CPU number and Hyper-V virtual processor number. This is necessary because the hypervisor needs to know which virtual processors to target when making a mapping in the Interrupt Redirection Table in the I/O MMU. Signed-off-by: Jake

[PATCH 10/10] drivers:hv: Define the channel type for Hyper-V PCI Express pass-through

2015-10-07 Thread K. Y. Srinivasan
From: Jake Oshins This defines the channel type for PCI front-ends in Hyper-V VMs. Signed-off-by: Jake Oshins Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c |3 +++ include/linux/hyperv.h| 11 +++ 2 files changed, 14 insertions(+), 0 deletions(-) diff --git

[PATCH 05/10] Drivers: hv: util: catch allocation errors

2015-10-07 Thread K. Y. Srinivasan
From: Olaf Hering Catch allocation errors in hvutil_transport_send. Fixes: 14b50f80c32d ('Drivers: hv: util: introduce hv_utils_transport abstraction') Signed-off-by: Olaf Hering Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_utils_transport.c |9 ++--- 1 files changed, 6

[PATCH 07/10] drivers/hv: cleanup synic msrs if vmbus connect failed

2015-10-07 Thread K. Y. Srinivasan
From: Denis V. Lunev Before vmbus_connect() synic is setup per vcpu - this means hypervisor receives writes at synic msr's and probably allocate hypervisor resources per synic setup. If vmbus_connect() failed for some reason it's neccessary to cleanup synic setup by call hv_synic_cleanup() at

[PATCH 09/10] drivers:hv: Export the API to invoke a hypercall on Hyper-V

2015-10-07 Thread K. Y. Srinivasan
From: Jake Oshins This patch exposes the function that hv_vmbus.ko uses to make hypercalls. This is necessary for retargeting an interrupt when it is given a new affinity. Since we are exporting this API, rename the API as it will be visible outside the hv.c file. Signed-off-by: Jake Oshins

[PATCH] perf: Correctly identify anon_hugepage when generating map

2015-10-07 Thread Yannick Brosseau
When parsing /proc/xxx/maps, the sscanf in perf_event__synthesize_mmap_events truncate the map name at the space in "/anon_hugepage (deleted)". is_anon_memory then only receive the string "/anon_hugepage" and do not detect it. We change is_anon_memory to only compare the first part of the string

[PATCH 00/10] Drivers: hv: Miscellaneous fixes.

2015-10-07 Thread K. Y. Srinivasan
Miscellaneous fixes. Denis V. Lunev (1): drivers/hv: cleanup synic msrs if vmbus connect failed Jake Oshins (3): drivers:hv: Export a function that maps Linux CPU num onto Hyper-V proc num drivers:hv: Export the API to invoke a hypercall on Hyper-V drivers:hv: Define the channel type

RE: [PATCH 0/9] drivers:mtd:UBI: add bakvol module for MLC NAND paired page issue

2015-10-07 Thread beanhuo
> > Hi, Richard > > Thanks for your concern. I am a new patch submitter. > > Can you tell me Nacked-by means? > > I basically means that I'm (as maintainer) really unhappy with this patches > and > don't see a way to get them merged as the whole concept is not acceptable. > > > By the way, Do

[GIT PULL] strscpy powerpc fix for 3.4

2015-10-07 Thread Chris Metcalf
On 10/7/2015 6:44 PM, Stephen Rothwell wrote: Hi Linus, After merging Linus' tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: lib/string.c: In function 'strscpy': lib/string.c:209:4: error: implicit declaration of function 'zero_bytemask'

Re: [PATCH net-next 4/6] net: dsa: add port_fdb_prepare

2015-10-07 Thread Andrew Lunn
On Wed, Oct 07, 2015 at 07:48:29PM -0400, Vivien Didelot wrote: > Push the prepare phase for FDB operations down to the DSA drivers, with > a new port_fdb_prepare function. Currently only mv88e6xxx is affected. > > Signed-off-by: Vivien Didelot > --- > drivers/net/dsa/mv88e6171.c | 1 + >

Re: Missing operand for tlbie instruction on Power7

2015-10-07 Thread Josh Boyer
On Wed, Oct 7, 2015 at 8:10 PM, Michael Ellerman wrote: > On Wed, 2015-10-07 at 10:31 -0400, Josh Boyer wrote: >> On Wed, Oct 7, 2015 at 5:13 AM, Michael Ellerman wrote: >> > On Wed, 2015-10-07 at 02:19 -0500, Segher Boessenkool wrote: >> >> On Wed, Oct 07, 2015 at 05:00:49PM +1100, Michael

Re: [RFCv5 PATCH 38/46] sched: scheduler-driven cpu frequency selection

2015-10-07 Thread Steve Muckle
On 08/25/2015 03:45 AM, Juri Lelli wrote: > But, it is true that if the above events happened the other way around > (we trigger an update after load balancing and a new task arrives), we > may miss the opportunity to jump to max with the new task. In my mind > this is probably not a big deal, as

Re: [PATCH] cpufreq, intel_pstate, set max_sysfs_pct and min_sysfs_pct on governor switch

2015-10-07 Thread Prarit Bhargava
On 10/07/2015 06:26 PM, Doug Smythies wrote: > On 2015.10.07 15:06 Rafael J. Wysocki wrote: >> On Wednesday, October 07, 2015 05:31:25 PM Prarit Bhargava wrote: >>> On 10/07/2015 02:52 PM, Doug Smythies wrote: On 2015.10.07 08:46 Prarit Bhargava wrote: > On 10/07/2015 11:40 AM, Doug

[PATCH v2 2/3] vTPM: reformat event log to be byte-aligned

2015-10-07 Thread Hon Ching(Vicky) Lo
The event log generated by OpenFirmware in PowerPC is 4-byte aligned. This patch reformats the log to be byte-aligned for the Linux client. Signed-off-by: Hon Ching(Vicky) Lo --- arch/powerpc/kernel/prom_init.c | 13 - 1 files changed, 12 insertions(+), 1 deletions(-) diff --git

[PATCH v2 1/3] vTPM: fix searching for the right vTPM node in device tree

2015-10-07 Thread Hon Ching(Vicky) Lo
Replace all occurrences of '/ibm,vtpm' with '/vdevice/vtpm', as only the latter is ganranteed to be available for the client OS. The '/ibm,vtpm' node should only be used by Open Firmware, which is susceptible to changes. Signed-off-by: Hon Ching(Vicky) Lo --- arch/powerpc/kernel/prom_init.c |

[PATCH v2 3/3] vTPM: get the buffer allocated for event log instead of the actual log

2015-10-07 Thread Hon Ching(Vicky) Lo
The OS should ask Power Firmware (PFW) for the size of the buffer allocated for the event log, instead of the size of the actual event log. It then passes the buffer adddress and size to PFW in the handover process, into which PFW copies the log. Signed-off-by: Hon Ching(Vicky) Lo ---

[PATCH] vTPM: fix memory allocation flag for rtce buffer at kernel boot

2015-10-07 Thread Hon Ching(Vicky) Lo
At ibm vtpm initialzation, tpm_ibmvtpm_probe() registers its interrupt handler, ibmvtpm_interrupt, which calls ibmvtpm_crq_process to allocate memory for rtce buffer. The current code uses 'GFP_KERNEL' as the type of kernel memory allocation, which resulted a warning at kernel/lockdep.c. This

Re: [kbuild-all] [PATCH 4/5 v2] pseries/iommu: implement DDW-aware dma_get_page_shift

2015-10-07 Thread Michael Ellerman
On Wed, 2015-10-07 at 21:56 +0800, Fengguang Wu wrote: > On Tue, Oct 06, 2015 at 02:39:06PM +1100, Michael Ellerman wrote: > > On Sat, 2015-10-03 at 04:33 +0800, kbuild test robot wrote: > > > Hi Nishanth, > > > > > > [auto build test results on v4.3-rc3 -- if it's inappropriate base, > > >

[PATCH v2 1/3] vTPM: fix searching for the right vTPM node in device tree

2015-10-07 Thread Hon Ching(Vicky) Lo
Replace all occurrences of '/ibm,vtpm' with '/vdevice/vtpm', as only the latter is ganranteed to be available for the client OS. The '/ibm,vtpm' node should only be used by Open Firmware, which is susceptible to changes. Signed-off-by: Hon Ching(Vicky) Lo --- arch/powerpc/kernel/prom_init.c |

[PATCH v2 3/3] vTPM: get the buffer allocated for event log instead of the actual log

2015-10-07 Thread Hon Ching(Vicky) Lo
The OS should ask Power Firmware (PFW) for the size of the buffer allocated for the event log, instead of the size of the actual event log. It then passes the buffer adddress and size to PFW in the handover process, into which PFW copies the log. Signed-off-by: Hon Ching(Vicky) Lo ---

[PATCH] vTPM: fix memory allocation flag for rtce buffer at kernel boot

2015-10-07 Thread Hon Ching(Vicky) Lo
At ibm vtpm initialzation, tpm_ibmvtpm_probe() registers its interrupt handler, ibmvtpm_interrupt, which calls ibmvtpm_crq_process to allocate memory for rtce buffer. The current code uses 'GFP_KERNEL' as the type of kernel memory allocation, which resulted a warning at kernel/lockdep.c. This

  1   2   3   4   5   6   7   8   9   10   >