Re: [RFC 2/3] arm64: refactor save_stack_trace()

2015-07-16 Thread AKASHI Takahiro
On 07/16/2015 11:34 PM, Steven Rostedt wrote: On Thu, 16 Jul 2015 15:28:34 +0100 Mark Rutland wrote: diff --git a/arch/arm64/include/asm/ftrace.h b/arch/arm64/include/asm/ftrace.h index c5534fa..868d6f1 100644 --- a/arch/arm64/include/asm/ftrace.h +++ b/arch/arm64/include/asm/ftrace.h @@

Re: [RFC 2/3] arm64: refactor save_stack_trace()

2015-07-16 Thread AKASHI Takahiro
Jungseok, Thank you for your testing and reviews. On 07/16/2015 10:29 PM, Jungseok Lee wrote: On Jul 16, 2015, at 10:08 AM, AKASHI Takahiro wrote: Hi, AKASHI On 07/16/2015 09:27 AM, AKASHI Takahiro wrote: On 07/16/2015 01:13 AM, Steven Rostedt wrote: On Wed, 15 Jul 2015 10:55:36 -0400

Re: [PATCH V6 3/4] audit: convert audit_exe to audit_fsnotify

2015-07-16 Thread Richard Guy Briggs
On 15/07/16, Paul Moore wrote: > On Tuesday, July 14, 2015 11:50:25 AM Richard Guy Briggs wrote: > > Instead of just hard coding the ino and dev of the executable we care > > about at the moment the rule is inserted into the kernel, use the new > > audit_fsnotify infrastructure. This means that

Re: [PATCH V6 4/4] audit: avoid double copying the audit_exe path string

2015-07-16 Thread Richard Guy Briggs
On 15/07/16, Paul Moore wrote: > On Tuesday, July 14, 2015 11:50:26 AM Richard Guy Briggs wrote: > > Make this interface consistent with watch and filter key, avoiding the extra > > string copy and simply consume the new string pointer. > > > > Signed-off-by: Richard Guy Briggs > > --- > >

Re: BUG: perf error on syscalls for powerpc64.

2015-07-16 Thread Ian Munsie
Excerpts from Sukadev Bhattiprolu's message of 2015-07-17 11:51:04 +1000: > Are you seeing this on big-endian or little-endian system? > > IIRC, I saw the opposite behavior on an LE system a few months ago. > i.e. without 1028ccf5, 'perf listf|grep syscall' failed. > > Applying 1028ccf5, seemed

Re: [f2fs-dev] [PATCH 3/3] f2fs: allow zeroed name length during find_dentry

2015-07-16 Thread Jaegeuk Kim
Hi Chao, On Thu, Jul 16, 2015 at 06:03:46PM +0800, Chao Yu wrote: > Hi Jaegeuk, > > > -Original Message- > > From: Jaegeuk Kim [mailto:jaeg...@kernel.org] > > Sent: Thursday, July 16, 2015 6:38 AM > > To: linux-kernel@vger.kernel.org; linux-fsde...@vger.kernel.org; > >

Re: [PATCH V6 4/4] audit: avoid double copying the audit_exe path string

2015-07-16 Thread Paul Moore
On Tuesday, July 14, 2015 11:50:26 AM Richard Guy Briggs wrote: > Make this interface consistent with watch and filter key, avoiding the extra > string copy and simply consume the new string pointer. > > Signed-off-by: Richard Guy Briggs > --- > kernel/audit_exe.c |8 ++-- >

Re: [PATCH V6 3/4] audit: convert audit_exe to audit_fsnotify

2015-07-16 Thread Paul Moore
On Tuesday, July 14, 2015 11:50:25 AM Richard Guy Briggs wrote: > Instead of just hard coding the ino and dev of the executable we care > about at the moment the rule is inserted into the kernel, use the new > audit_fsnotify infrastructure. This means that if the inode in question > is unlinked

Reconciling rcu_irq_enter()/rcu_nmi_enter() with context tracking

2015-07-16 Thread Andy Lutomirski
For reasons that mystify me a bit, we currently track context tracking state separately from rcu's watching state. This results in strange artifacts: nothing generic cause IRQs to enter CONTEXT_KERNEL, and we can nest exceptions inside the IRQ handler (an example would be wrmsr_safe failing),

Re: BUG: perf error on syscalls for powerpc64.

2015-07-16 Thread Sukadev Bhattiprolu
Zumeng Chen [zumeng.c...@gmail.com] wrote: | 3. What I have seen in 3.14.x kernel, | == | And so far, no more difference to 4.x kernel from me about this part if | I'm right. | | *) With 1028ccf5 | | perf list|grep -i syscall got me nothing. | | | *) Without 1028ccf5 |

Re: [PATCH v9 07/22] tracing: Add lock-free tracing_map

2015-07-16 Thread Tom Zanussi
On Fri, 2015-07-17 at 00:32 +0200, Peter Zijlstra wrote: > On Thu, Jul 16, 2015 at 04:41:45PM -0500, Tom Zanussi wrote: > > On Thu, 2015-07-16 at 19:49 +0200, Peter Zijlstra wrote: > > > On Thu, Jul 16, 2015 at 12:22:40PM -0500, Tom Zanussi wrote: > > > > + for (i = 0; i <

Re: [PATCH v2 00/49] PCI: Resource allocation cleanup for v4.3

2015-07-16 Thread Wei Yang
Yinghai, Tested your latest for for-pci-v4.3-next branch, it works fine on my P8 machine. BTW, the SRIOV works fine too. Previously failure is based on my mistake, I have disabled SRIOV :-( On Tue, Jul 14, 2015 at 03:46:31PM -0700, Yinghai Lu wrote: >Hi, > >After 5b28541552ef (PCI: Restrict

Re: [PATCH V6 2/4] audit: clean simple fsnotify implementation

2015-07-16 Thread Paul Moore
On Tuesday, July 14, 2015 11:50:24 AM Richard Guy Briggs wrote: > This is to be used to audit by executable rules, but audit watches > should be able to share this code eventually. > > At the moment the audit watch code is a lot more complex, that code only > creates one fsnotify watch per parent

[PATCH] ALSA: hda: fix kstrdup return value

2015-07-16 Thread Heloise NH
From: kernelpatch_update In kstrdup we should return -ENOMEM when it reports an memory allocation failure, while the -ENODEV is referred to a failure in finding the cpu node in the device tree. Signed-off-by: Heloise NH --- sound/pci/hda/hda_codec.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH V6 2/2] audit: eliminate unnecessary extra layer of watch parent references

2015-07-16 Thread Richard Guy Briggs
On 15/07/16, Paul Moore wrote: > On Tuesday, July 14, 2015 11:40:42 AM Richard Guy Briggs wrote: > > The audit watch parent count was imbalanced, adding an unnecessary layer of > > watch parent references. Decrement the additional parent reference when a > > watch is reused, already having a

Re: [PATCH 1/2] tracing: Fix function graph duration format for 7-digit number

2015-07-16 Thread Steven Rostedt
On Sat, 11 Jul 2015 14:51:39 + Jungseok Lee wrote: > diff --git a/kernel/trace/trace_functions_graph.c > b/kernel/trace/trace_functions_graph.c > index 8968bf7..0bc16c4 100644 > --- a/kernel/trace/trace_functions_graph.c > +++ b/kernel/trace/trace_functions_graph.c > @@ -716,6 +716,8 @@

Re: [PATCH v3 06/11] usb: gadget.h: Add OTG to gadget interface

2015-07-16 Thread Peter Chen
On Wed, Jul 08, 2015 at 01:19:32PM +0300, Roger Quadros wrote: > The OTG core will use struct otg_gadget_ops to > start/stop the gadget controller. > > The main purpose of this interface is to avoid directly > calling usb_gadget_start/stop() from the OTG core as they > wouldn't be defined in the

Re: [PATCH v3 05/11] usb: hcd.h: Add OTG to HCD interface

2015-07-16 Thread Peter Chen
On Wed, Jul 08, 2015 at 01:19:31PM +0300, Roger Quadros wrote: > The OTG core will use struct otg_hcd_ops to > add/remove the HCD controller. > > The main purpose of this interface is to avoid directly > calling usb_add/remove_hcd() from the OTG core as they > wouldn't be defined in the built-in

Re: [PATCH v3 04/11] otg-fsm: move usb_bus_start_enum into otg-fsm->ops

2015-07-16 Thread Peter Chen
On Wed, Jul 08, 2015 at 01:19:30PM +0300, Roger Quadros wrote: > This is to prevent missing symbol build error if OTG is > enabled (built-in) and HCD core (CONFIG_USB) is module. > > Signed-off-by: Roger Quadros > --- > drivers/usb/common/usb-otg-fsm.c | 6 -- >

Re: [PATCHSET v2 block/for-4.2/writeback] ext4: implement cgroup writeback support

2015-07-16 Thread Theodore Ts'o
On Sun, Jul 12, 2015 at 02:05:20PM -0400, Tejun Heo wrote: > Hello, > > On Tue, Jun 16, 2015 at 06:53:11PM -0400, Tejun Heo wrote: > > This is v2. The only change from the last take[L] is > > > > * Updated to reflect the earlier MS_CGROUPWB -> SB_I_CGROUPWB change. > > > > This patchset

Re: [PATCH V5 3/4] arm64: apei: implement arch_apei_get_mem_attributes()

2015-07-16 Thread Zhang, Jonathan Zhixiong
Thank you Will for the feedback. Pls. see comments below. On 7/16/2015 10:18 AM, Will Deacon wrote: On Wed, Jul 15, 2015 at 01:31:55AM +0100, Jonathan (Zhixiong) Zhang wrote: From: "Jonathan (Zhixiong) Zhang" If the physical address has memory attributes defined by EFI memmap as

Re: [PATCH v9 07/22] tracing: Add lock-free tracing_map

2015-07-16 Thread Tom Zanussi
Hi Mathieu, On Thu, 2015-07-16 at 23:25 +, Mathieu Desnoyers wrote: > * Tom Zanussi wrote: > >> Add tracing_map, a special-purpose lock-free map for tracing. > >> > >> tracing_map is designed to aggregate or 'sum' one or more values > >> associated with a specific object of type

RE: [PATCH 3.19.y-ckt 173/251] clocksource: exynos_mct: Avoid blocking calls in the cpu hotplug notifier

2015-07-16 Thread Duan Andy
From: Krzysztof Kozlowski Sent: Thursday, July 16, 2015 5:52 PM > To: Duan Fugang-B38611 > Cc: Krzysztof Kozlowski; Kamal Mostafa; daniel.lezc...@linaro.org; linux- > ker...@vger.kernel.org; sta...@vger.kernel.org; Damian Eppel; > kg...@kernel.org; kyungmin.p...@samsung.com; Thomas Gleixner; >

Re: [PATCH RFC 0/4] change sb_writers to use percpu_rw_semaphore

2015-07-16 Thread Dave Chinner
On Thu, Jul 16, 2015 at 07:32:56PM +0200, Oleg Nesterov wrote: > > #ifdef CONFIG_LOCKDEP > /* >* We want lockdep to tell us about possible deadlocks with > freezing but >* it's it bit tricky to properly instrument it. Getting a > freeze

Re: BUG: perf error on syscalls for powerpc64.

2015-07-16 Thread Zumeng Chen
On 2015年07月16日 17:04, Michael Ellerman wrote: > On Thu, 2015-07-16 at 13:57 +0800, Zumeng Chen wrote: >> Hi All, >> >> 1028ccf5 did a change for sys_call_table from a pointer to an array of >> unsigned long, I think it's not proper, here is my reason: >> >> sys_call_table defined as a label in

[PATCH 2/2] mem-hotplug: Handle node hole when initializing numa_meminfo.

2015-07-16 Thread Tang Chen
When parsing SRAT, all memory ranges are added into numa_meminfo. In numa_init(), before entering numa_cleanup_meminfo(), all possible memory ranges are in numa_meminfo. And numa_cleanup_meminfo() removes all ranges over max_pfn or empty. But, this only works if the nodes are continuous. Let's

[PATCH 0/2] mem-hotplug: Handle node hole when initializing numa_meminfo.

2015-07-16 Thread Tang Chen
When parsing SRAT, all memory ranges are added into numa_meminfo. In numa_init(), before entering numa_cleanup_meminfo(), all possible memory ranges are in numa_meminfo. And numa_cleanup_meminfo() removes all ranges over max_pfn or empty. But, this only works if the nodes are continuous. Let's

[PATCH 1/2] memblock: Make memblock_overlaps_region() return bool.

2015-07-16 Thread Tang Chen
memblock_overlaps_region() checks if the given memblock region intersects a region in memblock. If so, it returns the index of the intersected region. But its only caller is memblock_is_region_reserved(), and it returns 0 if false, non-zero if true. Both of these should return bool.

Re: [PATCH V6 1/4] audit: implement audit by executable

2015-07-16 Thread Paul Moore
On Tuesday, July 14, 2015 11:50:23 AM Richard Guy Briggs wrote: > From: Eric Paris > > This patch implements the ability to filter on the executable. It is > clearly incomplete! This patch adds the inode/dev of the executable at > the moment the rule is loaded. It does not update if the

Re: [PATCH 7/7] x86/mce: Clear Local MCE opt-in before kexec

2015-07-16 Thread Andy Lutomirski
On Thu, Jul 16, 2015 at 12:44 AM, Borislav Petkov wrote: > From: Ashok Raj > > kexec could boot a kernel that could be legacy with no knowledge of > LMCE. Hence we should make sure we clear LMCE optin before kexec reboot. > What happens if an offline-but-not-unplugged CPU gets an MCE? Or does

Re: [PATCH 0/7] Initial support for user namespace owned mounts

2015-07-16 Thread Andy Lutomirski
On Thu, Jul 16, 2015 at 5:45 PM, Casey Schaufler wrote: > On 7/16/2015 4:29 PM, Andy Lutomirski wrote: >> I really don't see the benefit of making up extra rules that apply to >> users outside a userns who try to access specifically a filesystem >> with backing store. They wouldn't make sense

Re: [PATCH v3 2/2] dma: Add Xilinx zynqmp dma engine driver support

2015-07-16 Thread punnaiah choudary kalluri
On Thu, Jul 16, 2015 at 6:05 PM, Vinod Koul wrote: > On Tue, Jun 16, 2015 at 08:04:43AM +0530, Punnaiah Choudary Kalluri wrote: >> +/* Register Offsets */ >> +#define ISR 0x100 >> +#define IMR 0x104 >> +#define IER 0x108

Re: [PATCH 3/7] fs: Ignore file caps in mounts from other user namespaces

2015-07-16 Thread Eric W. Biederman
Seth Forshee writes: > On Thu, Jul 16, 2015 at 12:44:49AM -0500, Eric W. Biederman wrote: >> Andy Lutomirski writes: >> >> > On Wed, Jul 15, 2015 at 10:04 PM, Eric W. Biederman >> > wrote: >> >> Andy Lutomirski writes: >> >> >> >>> >> >>> So here's the semantic question: >> >>> >> >>>

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

2015-07-16 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: net/bridge/br_mdb.c between commit: 5ebc784625ea ("bridge: mdb: fix double add notification") from the net tree and commit: 09cf0211f970 ("bridge: mdb: fill state in br_mdb_notify") from the net-next tree. I

Re: [PATCH 0/7] Initial support for user namespace owned mounts

2015-07-16 Thread Eric W. Biederman
Dave Chinner writes: > On Wed, Jul 15, 2015 at 11:47:08PM -0500, Eric W. Biederman wrote: >> Casey Schaufler writes: >> > On 7/15/2015 6:08 PM, Andy Lutomirski wrote: >> >> If I mount an unprivileged filesystem, then either the contents were >> >> put there *by me*, in which case letting me

Re: [PATCH 0/7] Initial support for user namespace owned mounts

2015-07-16 Thread Casey Schaufler
On 7/16/2015 4:29 PM, Andy Lutomirski wrote: > On Thu, Jul 16, 2015 at 4:08 PM, Casey Schaufler > wrote: >> On 7/16/2015 3:27 PM, Andy Lutomirski wrote: >>> On Thu, Jul 16, 2015 at 2:42 PM, Casey Schaufler >>> wrote: You want to provide a mechanism whereby an unprivileged user (Seth)

Re: [PATCH 2/4] KVM: SVM: use NPT page attributes

2015-07-16 Thread Andy Lutomirski
On 07/07/2015 06:45 AM, Paolo Bonzini wrote: Right now, NPT page attributes are not used, and the final page attribute depends solely on gPAT (which however is not synced correctly), the guest MTRRs and the guest page attributes. However, we can do better by mimicking what is done for VMX. In

Re: [PATCH V6 1/2] audit: eliminate unnecessary extra layer of watch references

2015-07-16 Thread Richard Guy Briggs
On 15/07/16, Paul Moore wrote: > On Tuesday, July 14, 2015 11:40:41 AM Richard Guy Briggs wrote: > > The audit watch count was imbalanced, adding an unnecessary layer of watch > > references. Only add the second reference when it is added to a parent. > > > > Signed-off-by: Richard Guy Briggs >

[GIT PULL] Power management and ACPI fixes for v4.2-rc3

2015-07-16 Thread Rafael J. Wysocki
Hi Linus, Please pull from git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm+acpi-4.2-rc3 to receive power management and ACPI fixes for v4.2-rc3 with top-most commit 17ffc8b083ac299ff798419d1887b7cdcd4ae4d2 Merge branches 'pm-cpuidle', 'pm-cpufreq' and 'acpi-resources'

[RFC][NOT TESTED][PATCH] vsock: Fix blocking ops call in prepare_to_wait

2015-07-16 Thread Laura Abbott
We receoved a bug report from someone using vmware: WARNING: CPU: 3 PID: 660 at kernel/sched/core.c:7389 __might_sleep+0x7d/0x90() do not call blocking ops when !TASK_RUNNING; state=1 set at [] prepare_to_wait+0x2d/0x90 Modules linked in: vmw_vsock_vmci_transport vsock snd_seq_midi

Re: [PATCH 0/7] Initial support for user namespace owned mounts

2015-07-16 Thread Eric W. Biederman
Lukasz Pawelczyk writes: > On śro, 2015-07-15 at 16:06 -0500, Eric W. Biederman wrote: >> >> I am on the fence with Lukasz Pawelczyk's patches. Some parts I >> liked >> some parts I had issues with. As I recall one of my issues was that >> those patches conflicted in detail if not in

Re: [PATCH v4 3/3] USB / PM: Allow USB devices to remain runtime-suspended when sleeping

2015-07-16 Thread Rafael J. Wysocki
On Thursday, July 16, 2015 02:09:41 PM Tomeu Vizoso wrote: > On 16 July 2015 at 02:42, Rafael J. Wysocki wrote: > > On Wednesday, July 15, 2015 02:40:08 PM Tomeu Vizoso wrote: > >> Have dev_pm_ops.prepare return 1 for USB devices and ports so that USB > >> devices can remain runtime-suspended

[PATCH] HID: rmi: Set F01 interrupt enable register when not set

2015-07-16 Thread Andrew Duggan
A firmware bug in some touchpads causes the F01 interrupt enable register to be cleared on reset. This register controls which RMI functions generate interrupts and when it is cleared, the touchpad stops reporting all data. This patch looks for the cleared F01 control register and writes the

Re: [PATCH 0/7] Initial support for user namespace owned mounts

2015-07-16 Thread Dave Chinner
On Wed, Jul 15, 2015 at 11:47:08PM -0500, Eric W. Biederman wrote: > Casey Schaufler writes: > > On 7/15/2015 6:08 PM, Andy Lutomirski wrote: > >> If I mount an unprivileged filesystem, then either the contents were > >> put there *by me*, in which case letting me access them are fine, or > >>

Re: [RFCv5 PATCH 32/46] sched: Energy-aware wake-up task placement

2015-07-16 Thread Sai Gurrappadi
Hi Morten, On 07/07/2015 11:24 AM, Morten Rasmussen wrote: > --- > +static int energy_aware_wake_cpu(struct task_struct *p, int target) > +{ > + struct sched_domain *sd; > + struct sched_group *sg, *sg_target; > + int target_max_cap = INT_MAX; > + int target_cpu = task_cpu(p); >

Re: [PATCH v4 2/3] PM / sleep: Go direct_complete if driver has no callbacks

2015-07-16 Thread Rafael J. Wysocki
On Thursday, July 16, 2015 10:47:51 AM Tomeu Vizoso wrote: > On 16 July 2015 at 02:41, Rafael J. Wysocki wrote: > > On Wednesday, July 15, 2015 02:47:50 PM Alan Stern wrote: > >> On Wed, 15 Jul 2015, Tomeu Vizoso wrote: > >> > >> > If a suitable prepare callback cannot be found for a given device

Re: [PATCH v2 1/7] atomics: add acquire/release/relaxed variants of some atomic operations

2015-07-16 Thread Waiman Long
On 07/16/2015 11:32 AM, Will Deacon wrote: Whilst porting the generic qrwlock code over to arm64, it became apparent that any portable locking code needs finer-grained control of the memory-ordering guarantees provided by our atomic routines. In particular: xchg, cmpxchg, {add,sub}_return are

Re: [PATCH v2 01/12] device: property: delay device-driver matches

2015-07-16 Thread Mark Brown
On Fri, Jul 17, 2015 at 01:41:16AM +0200, Rafael J. Wysocki wrote: > On Thu, Jul 16, 2015 at 10:23 PM, Mark Brown wrote: > > On Wed, Jul 01, 2015 at 11:40:56AM +0200, Tomeu Vizoso wrote: > > I have to say I'm still not 100% clear that special casing platform > > devices makes sense here - I can

Re: [PATCH v2 7/7] ARM: atomics: define our SMP atomics in terms of _relaxed operations

2015-07-16 Thread Waiman Long
On 07/16/2015 05:08 PM, Peter Zijlstra wrote: On Thu, Jul 16, 2015 at 04:40:03PM -0400, Waiman Long wrote: On 07/16/2015 11:32 AM, Will Deacon wrote: @@ -117,6 +115,8 @@ static inline unsigned long __xchg(unsigned long x, volatile void *ptr, int size #error "SMP is not supported on this

[PATCH v3 1/3] ARM: dts: qcom: Add binding for the qcom coincell charger

2015-07-16 Thread Tim Bird
This binding is used to configure the driver for the coincell charger found in Qualcomm PMICs. Signed-off-by: Tim Bird --- Changes in v3: - change charge-enable property to charger-disable Changes in v2: - remove 'qcom,' from example node name - Added reference to parent node pm8941@0 and

[PATCH v3 2/3] ARM: qcom: Add coincell charger driver

2015-07-16 Thread Tim Bird
This driver is used to configure the coincell charger found in Qualcomm PMICs. The driver allows configuring the current-limiting resistor for the charger, as well as the voltage to apply to the coincell (or capacitor) when charging. Signed-off-by: Tim Bird --- Changes in v3: - change

[PATCH v3 3/3] ARM: dts: qcom: Add dts changes for qcom coincell charger

2015-07-16 Thread Tim Bird
Add framework for the coincell charger DT block in pm8941 file, and actual values for honami battery in the honami dts file. Signed-off-by: Tim Bird --- Changes in v3: - change charge-enable property to charger-disable Changes in v2: - change coincell node name to remove 'qcom,' prefix

Re: [PATCH] mm-move-mremap-from-file_operations-to-vm_operations_struct-fix

2015-07-16 Thread Oleg Nesterov
On 07/16, Andrew Morton wrote: > > On Fri, 17 Jul 2015 01:14:05 +0200 Oleg Nesterov wrote: > > > fs/aio.c can't be compiled if CONFIG_MMU=n, filemap_page_mkwrite() > > is not defined in this case. Add yet another "must not be called" > > helper into nommu.c to make the linker happy. > > > > I

Re: [PATCH] zsmalloc: do not take class lock in zs_shrinker_count()

2015-07-16 Thread Sergey Senozhatsky
On (07/16/15 21:00), Sergey Senozhatsky wrote: > Subject: [PATCH] zsmalloc: do not take class lock in zs_shrinker_count() > X-Mailer: git-send-email 2.4.6 > > We can avoid taking class ->lock around zs_can_compact() in > zs_pages_to_compact(), because the number that we return back eek... a

Re: [PATCH v2 01/12] device: property: delay device-driver matches

2015-07-16 Thread Rafael J. Wysocki
Hi Mark, On Thu, Jul 16, 2015 at 10:23 PM, Mark Brown wrote: > On Wed, Jul 01, 2015 at 11:40:56AM +0200, Tomeu Vizoso wrote: > >> Delay matches of platform devices until late_initcall, when we are sure >> that all built-in drivers have been registered already. This is needed >> to prevent

[PATCH] toshiba_acpi: Avoid registering input device on WMI event laptops

2015-07-16 Thread Azael Avalos
Commit f11f999e9890 ("toshiba_acpi: Refuse to load on machines with buggy INFO implementations") denied loading on laptops with a WMI Event GUID given that such laptops manage the hotkeys via that interface, however, such laptops have a working Toshiba Configuration Interface (TCI), and thus, such

Re: [PATCHSET v2 block/for-4.2/writeback] ext4: implement cgroup writeback support

2015-07-16 Thread Tejun Heo
Hello, Dave. On Fri, Jul 17, 2015 at 09:21:59AM +1000, Dave Chinner wrote: > Tejun, is this all that needs to be done to support cgroup aware > writeback in a filesystem (i.e. wbc_init_bio, wbc_account_io in the > writepage path, superblock flag)? Yes, this is about it. It gets slightly more

[git pull] m68knommu/coldfire fixes for 4.2-rc3

2015-07-16 Thread Greg Ungerer
Hi Linus, Can you please pull the m68knommu git tree, for-next branch. Contains build fixes and updates for the ColdFire defconfigs. Specifically there is a couple of fixes that address problems building allnoconfig. Also fix for enabling PCI bus on the M54xx family of ColdFire. Regards Greg

Re: [PATCHSET v2 block/for-4.2/writeback] ext4: implement cgroup writeback support

2015-07-16 Thread Dave Chinner
On Thu, Jul 16, 2015 at 03:40:58PM -0400, Tejun Heo wrote: > On Sun, Jul 12, 2015 at 02:05:20PM -0400, Tejun Heo wrote: > > Ted, these two patches apply cleanly on top of the current mainline > > and thus can be routed either through ext4 or block tree. What do you > > think? > > ping? Tejun,

[PATCH] toshiba_acpi: Transflective backlight updates

2015-07-16 Thread Azael Avalos
This patch changes the tr function seconf parameter from bool to u32, to be in par with the rest of the TCI functions of the driver, and the code was updated accordingly. Also, the check for translective support was moved to the *add function, as the {__get, set}_lcd_brightness functions amke use

[PATCH] toshiba_acpi: Add /dev/toshiba_acpi device

2015-07-16 Thread Azael Avalos
There were previous attempts to "merge" the toshiba SMM module to the toshiba_acpi one, they were trying to imitate what the old toshiba module does, however, some models (TOS1900 devices) come with a "crippled" implementation and do not provide all the "features" a "genuine" Toshiba BIOS does.

Re: [PATCH 0/7] Initial support for user namespace owned mounts

2015-07-16 Thread Andy Lutomirski
On Thu, Jul 16, 2015 at 4:08 PM, Casey Schaufler wrote: > On 7/16/2015 3:27 PM, Andy Lutomirski wrote: >> On Thu, Jul 16, 2015 at 2:42 PM, Casey Schaufler >> wrote: >>> You want to provide a mechanism whereby an unprivileged user (Seth) >>> can mount a filesystem for his own use. You want full

Re: [PATCH 1/3] fixed_phy: handle link-down case

2015-07-16 Thread Florian Fainelli
On 16/07/15 07:50, Stas Sergeev wrote: > > Currently fixed_phy driver recognizes only the link-up state. > This simple patch adds an implementation of link-down state. > It fixes the status registers when link is down, and also allows > to register the fixed-phy with link down without specifying

Re: [PATCH v9 07/22] tracing: Add lock-free tracing_map

2015-07-16 Thread Mathieu Desnoyers
* Tom Zanussi wrote: >> Add tracing_map, a special-purpose lock-free map for tracing. >> >> tracing_map is designed to aggregate or 'sum' one or more values >> associated with a specific object of type tracing_map_elt, which >> is associated by the map to a given key. >> >> It provides various

[PATCH RESEND 2/3] mm, x86: Remove region_is_ram() call from ioremap

2015-07-16 Thread Toshi Kani
__ioremap_caller() calls region_is_ram() to walk through the iomem_resource table to check if a target range is in RAM, which was added to improve the lookup performance over page_is_ram() (commit 906e36c5c717 "x86: use optimized ioresource lookup in ioremap function"). page_is_ram() was no

[PATCH RESEND 3/3] mm: Fix bugs in region_is_ram()

2015-07-16 Thread Toshi Kani
region_is_ram() looks up the iomem_resource table to check if a target range is in RAM. However, it always returns with -1 due to invalid range checks. It always breaks the loop at the first entry of the table. Another issue is that it compares p->flags and flags, but it always fails. The

Re: [PATCH] mm-move-mremap-from-file_operations-to-vm_operations_struct-fix

2015-07-16 Thread Andrew Morton
On Fri, 17 Jul 2015 01:14:05 +0200 Oleg Nesterov wrote: > fs/aio.c can't be compiled if CONFIG_MMU=n, filemap_page_mkwrite() > is not defined in this case. Add yet another "must not be called" > helper into nommu.c to make the linker happy. > > I still think this is pointless, afaics

[PATCH RESEND 0/3] mm, x86: Fix ioremap RAM check interfaces

2015-07-16 Thread Toshi Kani
ioremap() checks if a target range is in RAM and fails the request if true. There are multiple issues in the iormap RAM check interfaces. 1. region_is_ram() always fails with -1. 2. The check calls two functions, region_is_ram() and walk_system_ram_range(), which are redundant as both walk

[PATCH RESEND 1/3] mm, x86: Fix warning in ioremap RAM check

2015-07-16 Thread Toshi Kani
__ioremap_caller() calls __ioremap_check_ram() through walk_system_ram_range() to check if a target range is in RAM. __ioremap_check_ram() has WARN_ONCE() in a wrong place where it warns when the given range is not RAM. This misplaced warning is not exposed since walk_system_ram_range() only

Re: [PATCH] mm-move-mremap-from-file_operations-to-vm_operations_struct-fix

2015-07-16 Thread Stephen Rothwell
Hi Oleg, On Fri, 17 Jul 2015 01:14:05 +0200 Oleg Nesterov wrote: > > fs/aio.c can't be compiled if CONFIG_MMU=n, filemap_page_mkwrite() > is not defined in this case. Add yet another "must not be called" > helper into nommu.c to make the linker happy. > > I still think this is pointless, afaics

[PATCH] mm-move-mremap-from-file_operations-to-vm_operations_struct-fix

2015-07-16 Thread Oleg Nesterov
fs/aio.c can't be compiled if CONFIG_MMU=n, filemap_page_mkwrite() is not defined in this case. Add yet another "must not be called" helper into nommu.c to make the linker happy. I still think this is pointless, afaics sys_io_setup() simply can't succeed if CONFIG_MMU=n. Instead we should make

Re: [PATCH 0/7] Initial support for user namespace owned mounts

2015-07-16 Thread Casey Schaufler
On 7/16/2015 3:27 PM, Andy Lutomirski wrote: > On Thu, Jul 16, 2015 at 2:42 PM, Casey Schaufler > wrote: >> You want to provide a mechanism whereby an unprivileged user (Seth) >> can mount a filesystem for his own use. You want full filesystem >> semantics, but you're willing to accept

Re: [PATCH] PCI: Don't use SR-IOV lock for ATS

2015-07-16 Thread Bjorn Helgaas
Hi Joerg, On Thu, Jun 18, 2015 at 10:50:20AM +0200, Joerg Roedel wrote: > From: Joerg Roedel > > The use of the SR-IOV lock for ATS causes a dead-lock in the > AMD-IOMMU driver when virtual functions are added that have > an ATS capability. > > The problem is that the VFs will be added to the

Re: [alsa-devel] [PATCH v2 11/12] ASoC: tegra: register dependency parser for firmware nodes

2015-07-16 Thread Mark Brown
On Tue, Jul 14, 2015 at 02:47:04PM +0200, Tomeu Vizoso wrote: > On 14 July 2015 at 13:07, Mark Brown wrote: > > I'm not sure how I can be clearer here... you're replacing something > > that is currently pure data with open coding in each device. That seems > > like a step back in terms of ease

Re: [PATCH 1/5] memcg: export struct mem_cgroup

2015-07-16 Thread Andrew Morton
On Thu, 16 Jul 2015 18:56:39 -0400 Johannes Weiner wrote: > On Thu, Jul 16, 2015 at 02:34:33PM -0700, Andrew Morton wrote: > > On Thu, 16 Jul 2015 09:19:49 +0200 Michal Hocko wrote: > > > I agree with Johannes who originally suggested to expose mem_cgroup that > > > it will allow for a better

Re: linux-next: build warning after merge of the akpm-current tree

2015-07-16 Thread Andrew Morton
On Thu, 16 Jul 2015 15:26:00 +1000 Stephen Rothwell wrote: > Hi Andrew, > > After merging the akpm-current tree, today's linux-next build (arm > multi_v7_defconfig) produced this warning: > > lib/genalloc.c: In function 'gen_pool_get': > /scratch/sfr/next/lib/genalloc.c:599:6: warning:

Re: [RFC][PATCH] x86, fpu: dynamically allocate 'struct fpu'

2015-07-16 Thread Andy Lutomirski
On Thu, Jul 16, 2015 at 3:42 PM, H. Peter Anvin wrote: > On 07/16/2015 12:14 PM, Dave Hansen wrote: >> The FPU rewrite removed the dynamic allocations of 'struct fpu'. >> But, this potentially wastes massive amounts of memory (2k per >> task on systems that do not have AVX-512 for instance). >>

Re: [PATCH 1/5] memcg: export struct mem_cgroup

2015-07-16 Thread Johannes Weiner
On Thu, Jul 16, 2015 at 02:34:33PM -0700, Andrew Morton wrote: > On Thu, 16 Jul 2015 09:19:49 +0200 Michal Hocko wrote: > > I agree with Johannes who originally suggested to expose mem_cgroup that > > it will allow for a better code later. > > Sure, but how *much* better? Are there a

Re: [RFC PATCH v2] memory-barriers: remove smp_mb__after_unlock_lock()

2015-07-16 Thread Benjamin Herrenschmidt
On Thu, 2015-07-16 at 08:11 -0700, Paul E. McKenney wrote: > > So isync in lock in architecturally incorrect, despite being what > the > > architecture recommends using, yay ! > > Well, the architecture isn't expecting that crazies like myself would > want to have an unlock-lock provide ordering

Re: [PATCH v1 1/2] ARM: keystone: dts: fix dt bindings for PCIe

2015-07-16 Thread santosh.shilim...@oracle.com
On 7/16/15 2:51 PM, Murali Karicheri wrote: Currently PCIe DT bindings are broken. PCIe driver can't function without having a SerDes driver that provide the phy configuration. On K2E EVM, this causes problem since the EVM has Marvell SATA controller present and with default values in the SerDes

Re: [RFC][PATCH] x86, fpu: dynamically allocate 'struct fpu'

2015-07-16 Thread H. Peter Anvin
On 07/16/2015 12:14 PM, Dave Hansen wrote: > The FPU rewrite removed the dynamic allocations of 'struct fpu'. > But, this potentially wastes massive amounts of memory (2k per > task on systems that do not have AVX-512 for instance). > > Instead of having a separate slab, this patch just appends

Re: [RFC PATCH 02/12] powerpc/kernel: Switch to using MAX_ERRNO

2015-07-16 Thread Benjamin Herrenschmidt
On Wed, 2015-07-15 at 17:37 +1000, Michael Ellerman wrote: > Currently on powerpc we have our own #define for the highest (negative) > errno value, called _LAST_ERRNO. This is defined to be 516, for reasons > which are not clear. > > The generic code, and x86, use MAX_ERRNO, which is defined to

Re: [RFC PATCH 01/12] powerpc/kernel: Get pt_regs from r9 before calling do_syscall_trace_enter()

2015-07-16 Thread Benjamin Herrenschmidt
On Wed, 2015-07-15 at 17:37 +1000, Michael Ellerman wrote: > To call do_syscall_trace_enter() we need pt_regs in r3, but we don't need > to recalculate it based on r1, it's already in r9. > > Signed-off-by: Michael Ellerman Is there any performance difference ? I find the addi a bit more

Re: [PATCH 2/2] cpufreq: Properly handle errors from cpufreq_init_policy()

2015-07-16 Thread Rafael J. Wysocki
On Thursday, July 16, 2015 10:16:14 AM Jon Medhurst wrote: > On Thu, 2015-07-16 at 02:32 +0200, Rafael J. Wysocki wrote: > > On Wednesday, July 08, 2015 04:50:23 PM Viresh Kumar wrote: > > > On 08-07-15, 12:17, Jon Medhurst (Tixy) wrote: > > > > I tried these patches without the earlier "cpufreq:

Re: [RFC][PATCH] x86, fpu: dynamically allocate 'struct fpu'

2015-07-16 Thread Peter Zijlstra
On Thu, Jul 16, 2015 at 12:14:37PM -0700, Dave Hansen wrote: > +++ b/arch/x86/kernel/fpu/init.c 2015-07-16 12:02:15.284280976 -0700 > @@ -136,6 +136,45 @@ static void __init fpu__init_system_gene > unsigned int xstate_size; > EXPORT_SYMBOL_GPL(xstate_size); > > +#define

Re: [PATCH v9 07/22] tracing: Add lock-free tracing_map

2015-07-16 Thread Peter Zijlstra
On Thu, Jul 16, 2015 at 04:41:45PM -0500, Tom Zanussi wrote: > On Thu, 2015-07-16 at 19:49 +0200, Peter Zijlstra wrote: > > On Thu, Jul 16, 2015 at 12:22:40PM -0500, Tom Zanussi wrote: > > > + for (i = 0; i < elt->map->n_fields; i++) { > > > + atomic64_set(_elt->fields[i].sum, > > > +

[GIT PULL] platform-drivers-x86 for 4.2-3

2015-07-16 Thread Darren Hart
Hi Linus, A few important fixes for dell-laptop, and a couple low impact/risk cleanups for intel_*_ipc for 4.2. Thanks, Darren Hart Intel Open Source Technology Center The following changes since commit d770e558e21961ad6cfdf0ff7df0eb5d7d4f0754: Linux 4.2-rc1 (2015-07-05 11:01:52 -0700) are

[PATCH 1/1] mm, mpx: add "vm_flags_t vm_flags" arg to do_mmap_pgoff()

2015-07-16 Thread Oleg Nesterov
Add the additional "vm_flags_t vm_flags" argument to do_mmap_pgoff(), rename it to do_mmap(), and re-introduce do_mmap_pgoff() as a simple wrapper on top of do_mmap(). Perhaps we should update the callers of do_mmap_pgoff() and kill it later. This way mpx_mmap() can simply call do_mmap(vm_flags

Re: [PATCH 0/7] Initial support for user namespace owned mounts

2015-07-16 Thread Andy Lutomirski
On Thu, Jul 16, 2015 at 2:42 PM, Casey Schaufler wrote: > You want to provide a mechanism whereby an unprivileged user (Seth) > can mount a filesystem for his own use. You want full filesystem > semantics, but you're willing to accept restrictions on certain > filesystem features to avoid opening

[PATCH 0/1] mm, mpx: add "vm_flags_t vm_flags" arg to do_mmap_pgoff()

2015-07-16 Thread Oleg Nesterov
On 07/16, Kirill A. Shutemov wrote: > > On Thu, Jul 16, 2015 at 08:53:48AM -0700, Dave Hansen wrote: > > On 07/16/2015 04:05 AM, Kirill A. Shutemov wrote: > > >> > These both look nice to me (and they both cull specialty MPX code which > > >> > is excellent). I'll run them through a quick test. >

Re: [PATCH v3 7/8] perf: Define PMU_TXN_READ interface

2015-07-16 Thread Peter Zijlstra
On Tue, Jul 14, 2015 at 08:01:54PM -0700, Sukadev Bhattiprolu wrote: > +/* > + * Use the transaction interface to read the group of events in @leader. > + * PMUs like the 24x7 counters in Power, can use this to queue the events > + * in the ->read() operation and perform the actual read in

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

2015-07-16 Thread Oleg Nesterov
On 07/17, Stephen Rothwell wrote: > > Hi Andrew, > > After merging the akpm-current tree, today's linux-next build (lots with > CONFIG_MMU not set) failed like this: > > fs/built-in.o:(.rodata+0x1060): undefined reference to `filemap_page_mkwrite' > > Caused by commit > > fb416a02f75c ("mm: move

Re: [PATCH RFC] intel_pstate: play well with frequency limits set by acpi

2015-07-16 Thread Srinivas Pandruvada
On Thu, 2015-07-16 at 21:17 +0300, Konstantin Khlebnikov wrote: > IPMI can control CPU P-states remotely: configuration is reported via > common ACPI interface (_PPC/_PSS/etc). This patch adds required minimal > support in intel_pstate to receive and use these P-state limits. > > * ignore limit

[RFC][PATCH] x86, CPU: Restore MSR_IA32_ENERGY_PERF_BIAS after resume

2015-07-16 Thread Laura Abbott
MSR_IA32_ENERGY_PERF_BIAS is lost after suspend/resume: x86_energy_perf_policy -r before cpu0: 0x0006 cpu1: 0x0006 cpu2: 0x0006 cpu3: 0x0006 cpu4: 0x0006 cpu5: 0x0006 cpu6: 0x0006 cpu7: 0x0006 after

linux-next: build failure after merge of the akpm-current tree

2015-07-16 Thread Stephen Rothwell
Hi Andrew, After merging the akpm-current tree, today's linux-next build (lots with CONFIG_MMU not set) failed like this: fs/built-in.o:(.rodata+0x1060): undefined reference to `filemap_page_mkwrite' Caused by commit fb416a02f75c ("mm: move ->mremap() from file_operations to

Re: [PATCH v2 1/7] mn10300: fix build failure

2015-07-16 Thread Andrew Morton
On Thu, 18 Jun 2015 17:47:47 +0530 Sudip Mukherjee wrote: > allmodconfig build fails with the error: > invalid use of undefined type 'struct kprobe_ctlblk' > > just declared the two basic structures after checking the struct in other > architectures. > > ---

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

2015-07-16 Thread Stephen Rothwell
Hi Eric, On Thu, 16 Jul 2015 10:36:59 -0400 Eric B Munson wrote: > > > From: Stephen Rothwell Date: Thu, 16 Jul > > 2015 14:58:53 +1000 Subject: [PATCH] mm: mlock: fix for add new > > mlock, munlock, and munlockall system calls > > > > Signed-off-by: Stephen Rothwell --- > >

[PATCH v1 2/2] ARM: keystone: dts: rename pcie nodes to help override status

2015-07-16 Thread Murali Karicheri
Now that PCIe DT binding is disabled in SoC specific DTS, we need a way to override it in a board specific DTS. So rename the PCIe nodes accordingly. Signed-off-by: Murali Karicheri --- - initial version. Added to the original series arch/arm/boot/dts/k2e.dtsi | 2 +-

[PATCH v1 1/2] ARM: keystone: dts: fix dt bindings for PCIe

2015-07-16 Thread Murali Karicheri
Currently PCIe DT bindings are broken. PCIe driver can't function without having a SerDes driver that provide the phy configuration. On K2E EVM, this causes problem since the EVM has Marvell SATA controller present and with default values in the SerDes register, it seems to pass the PCIe link

Re: [PATCH] ftrace: add tracing_thresh to function profile

2015-07-16 Thread Steven Rostedt
On Mon, 22 Jun 2015 16:58:08 +0530 Umesh Tiwari wrote: > From: Himanshu Maithani > > This patch extends tracing_thresh functionality to function profile tracer. > If tracing_thresh is set, print those entries only, > whose average is > tracing thresh. > > Signed-off-by: Umesh Tiwari > --- >

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