[PATCH 35/38] perf tools: Fix progress ui to support multi thread

2015-03-02 Thread Namhyung Kim
Split ui_progress struct into global and local one. Each thread updates local struct without lock and only updates global one if meaningful progress is done (with lock). To do that, pass struct ui_progress to __perf_session__process_event() and set it for the total size of multi-file storage.

[PATCH 30/38] perf hists: Pass hists struct to hist_entry_iter struct

2015-03-02 Thread Namhyung Kim
This is a preparation for perf report multi-thread support. When multi-thread is enable, each thread will have its own hists during the sample processing. Signed-off-by: Namhyung Kim --- tools/perf/builtin-report.c | 1 + tools/perf/builtin-top.c | 1 +

[PATCH 24/38] perf tools: Protect dso symbol loading using a mutex

2015-03-02 Thread Namhyung Kim
When multi-thread support for perf report is enabled, it's possible to access a dso concurrently. Add a new pthread_mutex to protect it from concurrent dso__load(). Signed-off-by: Namhyung Kim --- tools/perf/util/dso.c| 2 ++ tools/perf/util/dso.h| 1 + tools/perf/util/symbol.c | 34

[PATCH 28/38] perf tools: Add dso__data_get/put_fd()

2015-03-02 Thread Namhyung Kim
Using dso__data_fd() in multi-thread environment is not safe since returned fd can be closed and/or reused anytime. So convert it to the dso__data_get/put_fd() pair to protect the access with lock. The original dso__data_fd() is deprecated and kept only for testing. Signed-off-by: Namhyung Kim

[PATCH 01/38] perf tools: Use a software dummy event to track task/mmap events

2015-03-02 Thread Namhyung Kim
Add APIs for software dummy event to track task/comm/mmap events separately. The perf record will use them to save such events in a separate mmap buffer to make it easy to index. This is a preparation of multi-thread support which will come later. Cc: Adrian Hunter Signed-off-by: Namhyung Kim

[PATCH 38/38] perf data: Implement 'index' subcommand

2015-03-02 Thread Namhyung Kim
The index command first splits a given data file into intermediate data files and merges them into a final data file with an index table so that it can processed using multi threads. The HEADER_DATA_INDEX feature bit is added to distinguish data file that has an index table. Signed-off-by:

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

2015-03-02 Thread Bjorn Helgaas
On Thu, Feb 26, 2015 at 04:12:14PM +0800, Yijing Wang wrote: > Now we could use pci_scan_root_bridge() to scan > pci buses, provide sparc specific pci_host_bridge_ops. > > Signed-off-by: Yijing Wang > CC: "David S. Miller" > CC: sparcli...@vger.kernel.org > --- > arch/sparc/kernel/pci.c | 32

Re: [PATCH perf/core 2/4] perf-probe: Fix to handle aliased symbols in glibc

2015-03-02 Thread Arnaldo Carvalho de Melo
Em Mon, Mar 02, 2015 at 11:45:12PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Tue, Mar 03, 2015 at 11:39:02AM +0900, Masami Hiramatsu escreveu: > > (2015/03/03 0:46), Arnaldo Carvalho de Melo wrote: > > > Em Mon, Mar 02, 2015 at 09:49:53PM +0900, Masami Hiramatsu escreveu: > > >> With this

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

2015-03-02 Thread Bjorn Helgaas
On Thu, Feb 26, 2015 at 04:12:06PM +0800, Yijing Wang wrote: > Now we have weak functions like pcibios_root_bridge_prepare() > to setup pci host bridge, We could introduce pci_host_bridge_ops > which contain host bridge specific ops to setup pci_host_bridge. > Then host bridge driver could add

[PATCH] arch: x86: platform: efi: Disabling interrupt around kmalloc

2015-03-02 Thread Tapasweni Pathak
Disabling interrupts around kmalloc() is less than ideal. Move it after the kmalloc(). Found using Coccinelle. Signed-off-by: Tapasweni Pathak Suggested-by: Matt Fleming --- arch/x86/platform/efi/efi_64.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

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

2015-03-02 Thread Bjorn Helgaas
On Thu, Feb 26, 2015 at 04:12:10PM +0800, Yijing Wang wrote: > Should pass pci_bus * instead of pci_dev * to pci_domain_nr(). > > Signed-off-by: Yijing Wang > CC: Tony Luck > CC: Fenghua Yu > CC: linux-i...@vger.kernel.org > --- > arch/ia64/sn/kernel/io_acpi_init.c |6 +++--- >

Re: [PATCH 0/3] Add ktd2692 Flash LED driver

2015-03-02 Thread Ingi Kim
Hi On 2015년 03월 03일 07:03, Sakari Ailus wrote: > Hi Bryan, > > On Mon, Mar 02, 2015 at 12:07:42PM -0800, Bryan Wu wrote: >> On Mon, Mar 2, 2015 at 1:15 AM, Sakari Ailus wrote: >>> H Ingi, >>> >>> On Mon, Mar 02, 2015 at 04:14:39PM +0900, Ingi Kim wrote: Hi Jacek On 2015년 02월 27일

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

2015-03-02 Thread Bjorn Helgaas
On Thu, Feb 26, 2015 at 04:12:07PM +0800, Yijing Wang wrote: > Introduce new scan function pci_scan_root_bridge() to > support host bridge drivers that need to provide platform > own pci_host_bridge_ops. > > Signed-off-by: Yijing Wang > --- > drivers/pci/probe.c | 21 + >

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

2015-03-02 Thread Bjorn Helgaas
On Thu, Feb 26, 2015 at 04:12:06PM +0800, Yijing Wang wrote: > Now we have weak functions like pcibios_root_bridge_prepare() > to setup pci host bridge, We could introduce pci_host_bridge_ops > which contain host bridge specific ops to setup pci_host_bridge. > Then host bridge driver could add

[PATCH net-next] openvswitch: Fix serialization of non-masked set actions.

2015-03-02 Thread Joe Stringer
Set actions consist of a regular OVS_KEY_ATTR_* attribute nested inside of a OVS_ACTION_ATTR_SET action attribute. When converting masked actions back to regular set actions, the inner attribute length was not changed, ie, double the length being serialized. This patch fixes the bug. Fixes:

Re: [PATCH perf/core 2/4] perf-probe: Fix to handle aliased symbols in glibc

2015-03-02 Thread Arnaldo Carvalho de Melo
Em Tue, Mar 03, 2015 at 11:39:02AM +0900, Masami Hiramatsu escreveu: > (2015/03/03 0:46), Arnaldo Carvalho de Melo wrote: > > Em Mon, Mar 02, 2015 at 09:49:53PM +0900, Masami Hiramatsu escreveu: > >> With this patch; > >> - > >> # ./perf probe -x /usr/lib64/libc-2.17.so -V malloc > >>

Re: [PATCH perf/core 2/4] perf-probe: Fix to handle aliased symbols in glibc

2015-03-02 Thread Masami Hiramatsu
(2015/03/03 0:46), Arnaldo Carvalho de Melo wrote: > Em Mon, Mar 02, 2015 at 09:49:53PM +0900, Masami Hiramatsu escreveu: >> With this patch; >> - >> # ./perf probe -x /usr/lib64/libc-2.17.so -V malloc >> Available variables at malloc >> @<__libc_malloc+0> >>

Re: [PATCH] ftrace: Fix comments about trace/ftrace.h

2015-03-02 Thread Hou Pengyang
On 2015/3/2 22:10, Steven Rostedt wrote: On Mon, 2 Mar 2015 14:28:54 + Hou Pengyang wrote: commit f42c85e74faa422cf0bc747ed808681145448f88 moves tracepoint's ftrace creation into include/trace/ftrace.h and trace/define_trach.h is deleted You mean event_trace.h is deleted. yes, commit

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

2015-03-02 Thread Bjorn Helgaas
On Thu, Feb 26, 2015 at 04:12:03PM +0800, Yijing Wang wrote: > This patch separate pci_host_bridge creation out > of pci_create_root_bus(), and try to make a generic > pci_host_bridge, then we could place generic PCI > infos like domain number in it. Also Ripping out > pci_host_bridge creation

Re: [regression v4.0-rc1] mm: IPIs from TLB flushes causing significant performance degradation.

2015-03-02 Thread Linus Torvalds
On Mon, Mar 2, 2015 at 6:22 PM, Linus Torvalds wrote: > > There might be some other case where the new "just change the > protection" doesn't do the "oh, but it the protection didn't change, > don't bother flushing". I don't see it. Hmm. I wonder.. In change_pte_range(), we just unconditionally

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

2015-03-02 Thread Stephen Rothwell
Hi Neil, On Mon, 2 Mar 2015 17:11:49 +1100 Stephen Rothwell wrote: > > On Mon, 2 Mar 2015 17:03:45 +1100 NeilBrown wrote: > > > > I think > > + bm_blocks = DIV_ROUND_UP(bm_blocks, 4096); > > > > needs DIV_ROUND_UP_SECTOR_T() > > I tried that and it was not sufficient. > > >

Re: [PATCH v2 00/15] tracing: 'hist' triggers

2015-03-02 Thread Alexei Starovoitov
On Mon, Mar 2, 2015 at 5:18 PM, Tom Zanussi wrote: >> >> I'm saying keep the command line version of hist, but let >> user space process it. >> I don't buy the argument that you must run it in busybox >> without any extra tools. >> If you're in busybox, the system is likely idle, so nothing >> to

Re: [PATCH v2 00/15] tracing: 'hist' triggers

2015-03-02 Thread Masami Hiramatsu
(2015/03/03 1:00), Tom Zanussi wrote: > This is v2 of my previously posted 'hashtriggers' patchset [1], but > renamed to 'hist triggers' following feedback from v1. This is what I need :) The trigger interface gives us better flexibility for environment. With this series I believe the 80% use of

Re: [PATCH v11 0/6] Add Skyworks SKY81452 device drivers

2015-03-02 Thread Gyungoh Yoo
On Fri, Feb 27, 2015 at 08:39:38PM +, Lee Jones wrote: > On Fri, 27 Feb 2015, gyun...@gmail.com wrote: > > > From: Gyungoh Yoo > > > > This patch set includes regulator and backlight driver for SKY81452. > > Also it includes documents for device tree and module. > > sky81452-regulator was

Re: [regression v4.0-rc1] mm: IPIs from TLB flushes causing significant performance degradation.

2015-03-02 Thread Linus Torvalds
On Mon, Mar 2, 2015 at 5:47 PM, Dave Chinner wrote: > > Anyway, the difference between good and bad is pretty clear, so > I'm pretty confident the bisect is solid: > > 4d9424669946532be754a6e116618dcb58430cb4 is the first bad commit Well, it's the mm queue from Andrew, so I'm not surprised. That

[RFC V3] mm: change mm_advise_free to clear page dirty

2015-03-02 Thread Wang, Yalin
This patch add ClearPageDirty() to clear AnonPage dirty flag, if not clear page dirty for this anon page, the page will never be treated as freeable. We also make sure the shared AnonPage is not freeable, we implement it by dirty all copyed AnonPage pte, so that make sure the Anonpage will not

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

2015-03-02 Thread Bjorn Helgaas
On Thu, Feb 26, 2015 at 04:11:59PM +0800, Yijing Wang wrote: > Pci_scan_bus() is called by legacy pci host drivers, > the legacy host drivers mean they use NULL as parent > device, use all IO/MEM as default resources. Rename > pci_scan_bus() to pci_scan_bus_legacy() for better > readability. We

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

2015-03-02 Thread Bjorn Helgaas
On Thu, Feb 26, 2015 at 04:11:57PM +0800, Yijing Wang wrote: > From: Arnd Bergmann > > Use pci_scan_root_bus() instead of deprecated function > pci_scan_bus_parented(). > > Signed-off-by: Arnd Bergmann > Signed-off-by: Yijing Wang > CC: Konrad Rzeszutek Wilk > CC:

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

2015-03-02 Thread Bjorn Helgaas
On Thu, Feb 26, 2015 at 04:11:56PM +0800, Yijing Wang wrote: > Just like pci_scan_bus(), we also should rip out > pci_bus_add_devices() from pci_scan_root_bus(). > Lots platforms first call pci_scan_root_bus(), but > after that, they call pci_bus_size_bridges() and > pci_bus_assign_resources().

Re: [RFC PATCH 1/4] mm: move memtest under /mm

2015-03-02 Thread Randy Dunlap
On 03/02/15 06:55, Vladimir Murzin wrote: > There is nothing platform dependent in the core memtest code, so other > platform > might benefit of this feature too. > > Signed-off-by: Vladimir Murzin > --- > arch/x86/Kconfig| 11 > arch/x86/include/asm/e820.h |8 --- >

Re: [regression v4.0-rc1] mm: IPIs from TLB flushes causing significant performance degradation.

2015-03-02 Thread Dave Chinner
On Mon, Mar 02, 2015 at 11:47:52AM -0800, Linus Torvalds wrote: > On Sun, Mar 1, 2015 at 5:04 PM, Dave Chinner wrote: > > > > Across the board the 4.0-rc1 numbers are much slower, and the > > degradation is far worse when using the large memory footprint > > configs. Perf points straight at the

Re: [proposal] delegating cgroup manager to non-PID1

2015-03-02 Thread David Lang
On Tue, 3 Mar 2015, Luke Kenneth Casson Leighton wrote: On Mon, Mar 2, 2015 at 12:13 AM, David Lang wrote: On Sun, 1 Mar 2015, Luke Kenneth Casson Leighton wrote: in recent discussions about PID-1 alternatives (sysvinit, openrc, systemd, depinit) i was alerted to the idea that PID1 is to

Re: [PATCH v2] f2fs: fix max orphan inodes calculation

2015-03-02 Thread Changman Lee
On Fri, Feb 27, 2015 at 05:38:13PM +0800, Wanpeng Li wrote: > cp_payload is introduced for sit bitmap to support large volume, and it is > just after the block of f2fs_checkpoint + nat bitmap, so the first segment > should include F2FS_CP_PACKS + NR_CURSEG_TYPE + cp_payload + orphan blocks. >

Re: [PATCH 1/4 V2] ocfs2: use retval instead of status for checking error

2015-03-02 Thread DaeSeok Youn
Hi, all please, review this patch. thanks. regards, Daeseok Youn. 2015-03-02 18:04 GMT+09:00 Richard Weinberger : > Am 28.02.2015 um 00:48 schrieb Daeseok Youn: >> The use of 'status' in __ocfs2_add_entry() can return wrong >> status when some functions are failed. >> >> If

Re: [RFC 3/3] hugetlbfs: accept subpool reserved option and setup accordingly

2015-03-02 Thread Mike Kravetz
On 03/02/2015 03:10 PM, Andrew Morton wrote: On Fri, 27 Feb 2015 14:58:13 -0800 Mike Kravetz wrote: Make reserved be an option when mounting a hugetlbfs. New mount option triggers a user documentation update. hugetlbfs isn't well documented, but Documentation/vm/hugetlbpage.txt looks like

Re: [PATCH v7 4/5] Input: add haptic drvier on max77843

2015-03-02 Thread Jaewon Kim
Hi Dmitry, On 03/03/2015 02:32, Dmitry Torokhov wrote: On Mon, Mar 02, 2015 at 07:10:37PM +0900, Jaewon Kim wrote: This patch adds support for haptic driver on max77843 MFD(Multi Function Device) with PMIC, MUIC, LED, CHARGER. This driver supports external pwm and LRA(Linear Resonant

Re: ACPI regression with 3.19+

2015-03-02 Thread Jiang Liu
On 2015/3/3 6:03, Rafael J. Wysocki wrote: > On Monday, March 02, 2015 10:07:20 PM Hudd wrote: >> On Sun, 2015-03-01 at 01:00 +0100, Rafael J. Wysocki wrote: >>> On Saturday, February 28, 2015 10:35:21 AM Prakash Punnoor wrote: This is a multi-part message in MIME format.

Re: [RFC 2/3] hugetlbfs: coordinate global and subpool reserve accounting

2015-03-02 Thread Mike Kravetz
On 03/02/2015 03:10 PM, Andrew Morton wrote: On Fri, 27 Feb 2015 14:58:11 -0800 Mike Kravetz wrote: If the pages for a subpool are reserved, then the reservations have already been accounted for in the global pool. Therefore, when requesting a new reservation (such as for a mapping) for the

Re: [RFC 1/3] hugetlbfs: add reserved mount fields to subpool structure

2015-03-02 Thread Mike Kravetz
On 03/02/2015 03:10 PM, Andrew Morton wrote: On Fri, 27 Feb 2015 14:58:10 -0800 Mike Kravetz wrote: Add a boolean to the subpool structure to indicate that the pages for subpool have been reserved. The hstate pointer in the subpool is convienient to have when it comes time to unreserve the

Re: [PATCH] dma: mmp-tdma: refine dma disable and dma-pos update

2015-03-02 Thread Qiao Zhou
On 03/03/2015 12:56 AM, Vinod Koul wrote: And that is why people use git-send email and don't copy patches. Pls resend again, as your MUA has wrapped this so cant apply Thanks for correcting and I'll pay attention to it in future. The patch is re-sent via git-send email. -- Best Regards Qiao

Re: [RFC 0/3] hugetlbfs: optionally reserve all fs pages at mount time

2015-03-02 Thread Mike Kravetz
On 03/02/2015 03:10 PM, Andrew Morton wrote: On Fri, 27 Feb 2015 14:58:08 -0800 Mike Kravetz wrote: hugetlbfs allocates huge pages from the global pool as needed. Even if the global pool contains a sufficient number pages for the filesystem size at mount time, those global pages could be

Re: [PATCH v2 00/15] tracing: 'hist' triggers

2015-03-02 Thread Tom Zanussi
On Mon, 2015-03-02 at 16:01 -0800, Alexei Starovoitov wrote: > On Mon, Mar 2, 2015 at 11:55 AM, Tom Zanussi > wrote: > > > > I disagree that it would be rarely used. In fact, it would probably > > cover about 80% of the use cases that people initially use things like > > systemtap or dtrace for,

Re: [PATCH 05/16] staging/lustre: fix up obsolete cpu function usage.

2015-03-02 Thread Oleg Drokin
On Mar 2, 2015, at 6:39 PM, Rusty Russell wrote: >> if (i == NR_CPUS) >>blah; >> >> when we are replacing for_each_cpu_mask with for_each_cpu, >> what do we check the counter against now to see that the entire loop was >> executed >> and we did not exit prematurely? nr_cpu_ids? > You want

[PATCH v2] dma: mmp-tdma: refine dma disable and dma-pos update

2015-03-02 Thread Qiao Zhou
Below are the refinements. 1. Set DMA abort bit when disabling dma channel. This will clear the remaining data in dma FIFO, to fix channel-swap issue. 2. Read DMA HW pointer when updating DMA status. Previously dma position is calculated by adding one period size in dma interrupt. This is

RE: [PATCH v2 1/1] thermal: intel Quark SoC X1000 DTS thermal driver

2015-03-02 Thread Ong, Boon Leong
>-Original Message- >From: Bryan O'Donoghue [mailto:pure.lo...@nexus-software.ie] >Sent: Tuesday, March 3, 2015 12:12 AM >To: Ong, Boon Leong; Zhang, Rui; edubez...@gmail.com; Kweh, Hock Leong >Cc: linux...@vger.kernel.org; linux-kernel@vger.kernel.org >Subject: Re: [PATCH v2 1/1] thermal:

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

2015-03-02 Thread Yijing Wang
>> pbm->pci_bus = pci_scan_bus(pbm->pci_first_busno, _ops, pbm); >> +if (pbm->pci_bus) >> +pci_bus_add_devices(pbm->pci_bus); >> #if 0 /* deadwood transplanted from sparc64 */ >> pci_fill_in_pbm_cookies(pbm->pci_bus, pbm, pbm->prom_node); >>

Re: [proposal] delegating cgroup manager to non-PID1

2015-03-02 Thread Luke Kenneth Casson Leighton
On Mon, Mar 2, 2015 at 12:13 AM, David Lang wrote: > On Sun, 1 Mar 2015, Luke Kenneth Casson Leighton wrote: > >> in recent discussions about PID-1 alternatives (sysvinit, openrc, >> systemd, depinit) i was alerted to the idea that PID1 is to become the >> sole exlcusive process permitted to

Re: [PATCH v2] rtc: add Abracon ABx80x driver

2015-03-02 Thread Alexandre Belloni
On 02/03/2015 at 15:53:37 -0800, Andrew Morton wrote : > On Sun, 1 Mar 2015 11:27:15 +0100 Alexandre Belloni > wrote: > > > Add support for the i2c RTC from Abracon. > > What is the relationship between this patch and >

[PATCH] phy: samsung-usb2: Remove NULL terminating entry from phys array

2015-03-02 Thread Axel Lin
Current code uses num_phys settings to tell the number of entries in phys. Thus remove the NULL terminating entry from phys array which is not necessary. Signed-off-by: Axel Lin --- drivers/phy/phy-exynos4210-usb2.c | 1 - drivers/phy/phy-exynos4x12-usb2.c | 1 -

[PATCH] phy: qcom-ufs: Catch devm_phy_create failure in ufs_qcom_phy_generic_probe

2015-03-02 Thread Axel Lin
Current code does NULL test against return value of ufs_qcom_phy_generic_probe. However, in the case of devm_phy_create() failure, ufs_qcom_phy_generic_probe does not return NULL. Fix it. Signed-off-by: Axel Lin --- drivers/phy/phy-qcom-ufs.c | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [RFC v2 4/4] locks: Use blocked_lock_lock only to protect blocked_hash

2015-03-02 Thread Jeff Layton
On Mon, 2 Mar 2015 15:25:13 +0100 Daniel Wagner wrote: > blocked_lock_lock and file_lock_lglock is used to protect file_lock's > fl_link, fl_block, fl_next, blocked_hash and the percpu > file_lock_list. > > The plan is to reorganize the usage of the locks and what they protect > so that the

Re: [RFCv2 net-next 0/7] OVS conntrack support

2015-03-02 Thread Tom Herbert
On Mon, Mar 2, 2015 at 1:54 PM, Joe Stringer wrote: > The goal of this series is to allow OVS to send packets through the Linux > kernel connection tracker, and subsequently match on fields populated by > conntrack. > > Sending this out as another RFC change as this is the first time IP fragment

Re: [PATCH] checkkconfigsymbols.py: filter reports for tools/

2015-03-02 Thread Paul Bolle
On Wed, 2015-02-25 at 15:15 +0100, Valentin Rothberg wrote: > @@ -46,8 +46,9 @@ def main(): > stdout = stdout[:-1] > > for gitfile in stdout.rsplit("\n"): > -if ".git" in gitfile or "ChangeLog" in gitfile or \ > -".log" in gitfile or os.path.isdir(gitfile):

Re: [RFC v2 2/4] locks: Add lockdep assertion for blocked_lock_lock

2015-03-02 Thread Jeff Layton
On Mon, 2 Mar 2015 15:25:11 +0100 Daniel Wagner wrote: > Annonate insert, remove and iterate function that we need > blocked_lock_lock held. > > Signed-off-by: Daniel Wagner > --- > fs/locks.c | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/fs/locks.c b/fs/locks.c > index

Re: [RFC v2 1/4] locks: Remove unnecessary IS_POSIX test

2015-03-02 Thread Jeff Layton
On Mon, 2 Mar 2015 15:25:10 +0100 Daniel Wagner wrote: > Since following change > > commit bd61e0a9c852de2d705b6f1bb2cc54c5774db570 > Author: Jeff Layton > Date: Fri Jan 16 15:05:55 2015 -0500 > > locks: convert posix locks to file_lock_context > > all Posix locks are kept on their a

Re: [RFC v2 3/4] locks: Split insert/delete block functions into flock/posix parts

2015-03-02 Thread Jeff Layton
On Mon, 2 Mar 2015 15:25:12 +0100 Daniel Wagner wrote: > The locks_insert/delete_block() functions are used for flock, posix > and leases types. blocked_lock_lock is used to serialize all access to > fl_link, fl_block, fl_next and blocked_hash. Here, we prepare the > stage for using

Re: [GIT PULL] Kselftest updates for 3.20-rc1

2015-03-02 Thread Michael Ellerman
On Mon, 2015-03-02 at 16:19 -0500, Dave Jones wrote: > On Tue, Feb 10, 2015 at 02:16:05PM +1100, Michael Ellerman wrote: > > > > On 02/09/2015 05:43 PM, Michael Ellerman wrote: > > > > On Mon, 2015-02-09 at 17:36 -0700, Shuah Khan wrote: > > > >> On 02/09/2015 05:30 PM, Michael Ellerman

Re: [PATCH v2 2/2] hwrng: iproc-rng200 - Add Broadcom IPROC RNG driver

2015-03-02 Thread Scott Branden
Hi Dmitry, Looking at the driver based on your comments it is following models of older hwrng drivers. I will work on cleaning up based on your comments as well. On 15-02-25 10:43 AM, Dmitry Torokhov wrote: Hi Scott, On Wed, Feb 25, 2015 at 10:16:24AM -0800, Scott Branden wrote: This

Re: [PATCH] mm: reorder can_do_mlock to fix audit denial

2015-03-02 Thread Jeffrey Vander Stoep
Yes, minor issue. I appreciate the advice. On Mon, Mar 2, 2015 at 4:42 PM, Andrew Morton wrote: > On Mon, 2 Mar 2015 09:20:32 -0800 Jeff Vander Stoep wrote: > >> A userspace call to mmap(MAP_LOCKED) may result in the successful >> locking of memory while also producing a confusing audit log

[PATCHv2 2/2] HSI: nokia-modem: Add cmt-speech support

2015-03-02 Thread Sebastian Reichel
Register cmt-speech driver in nokia-modem driver and forward hsi channel information. Signed-off-by: Sebastian Reichel --- drivers/hsi/clients/Kconfig | 2 +- drivers/hsi/clients/nokia-modem.c | 31 ++- 2 files changed, 31 insertions(+), 2 deletions(-) diff

[PATCHv2 1/2] HSI: cmt_speech: Add cmt-speech driver

2015-03-02 Thread Sebastian Reichel
From: Kai Vehmanen Introduces the cmt-speech driver, which implements a character device interface for transferring speech data frames over HSI/SSI. The driver is used to exchange voice/speech data between the Nokia N900/N950/N9's modem and its cpu. Signed-off-by: Kai Vehmanen Signed-off-by:

[PATCHv2 0/2] N900 Modem Speech Support

2015-03-02 Thread Sebastian Reichel
Hi, This patchset contains the missing speech data support for the Nokia N900 modem. Userland access goes via /dev/cmt_speech. The API is implemented in libcmtspeechdata, which is used by ofono and the freesmartphone.org project. Apart from that the device is also used by the phone binaries

Re: [RFC] mm: change mm_advise_free to clear page dirty

2015-03-02 Thread Minchan Kim
On Mon, Mar 02, 2015 at 09:59:20AM +0800, Wang, Yalin wrote: > > -Original Message- > > From: Minchan Kim [mailto:minchan@gmail.com] On Behalf Of Minchan Kim > > Sent: Saturday, February 28, 2015 9:50 PM > > To: Wang, Yalin > > Cc: Michal Hocko; Andrew Morton;

Re: [PATCH] mm: reorder can_do_mlock to fix audit denial

2015-03-02 Thread Andrew Morton
On Mon, 2 Mar 2015 09:20:32 -0800 Jeff Vander Stoep wrote: > A userspace call to mmap(MAP_LOCKED) may result in the successful > locking of memory while also producing a confusing audit log denial. > can_do_mlock checks capable and rlimit. If either of these return > positive can_do_mlock

[PATCH 3/5] mm: move randomize_et_dyn into ELF_ET_DYN_BASE

2015-03-02 Thread Kees Cook
In preparation for moving ET_DYN randomization into the ELF loader (which requires a static ELF_ET_DYN_BASE), this redefines s390's existing ET_DYN randomization away from a separate function (randomize_et_dyn) and into ELF_ET_DYN_BASE and a call to arch_mmap_rnd(). This refactoring results in the

Re: [PATCH v2 5/7] x86, mm: Support huge KVA mappings on x86

2015-03-02 Thread Toshi Kani
On Tue, 2015-02-10 at 16:10 -0700, Toshi Kani wrote: > On Tue, 2015-02-10 at 15:13 -0700, Toshi Kani wrote: > > On Tue, 2015-02-10 at 12:51 -0800, Dave Hansen wrote: > > > On 02/10/2015 12:42 PM, Toshi Kani wrote: > > > > On Tue, 2015-02-10 at 10:59 -0800, Dave Hansen wrote: > > > >> On 02/09/2015

RE: xsaves support broken?

2015-03-02 Thread Yu, Fenghua
> From: Hansen, Dave > On 03/02/2015 04:09 PM, Yu, Fenghua wrote: > > Xsaves has been tested by QA since 3.17 with or without MPX. I'm not > > aware of reported issues. > > > > But MPX is the only code to call the get_xsave_addr kernel API. > > Though it has been tested before on upstream MPX

Re: [RFC v1 0/5] fs/locks: Use plain percpu spinlocks instead of lglock to protect file_lock

2015-03-02 Thread Jeff Layton
On Mon, 2 Mar 2015 13:58:17 +0100 Daniel Wagner wrote: > On 02/27/2015 04:30 PM, Jeff Layton wrote: > > On Fri, 27 Feb 2015 16:01:30 +0100 > > Daniel Wagner wrote: > >> On 02/24/2015 10:06 PM, Jeff Layton wrote: > >>> On Tue, 24 Feb 2015 16:58:26 +0100 > >>> Daniel Wagner wrote: > On

[PATCH 4/5] mm: split ET_DYN ASLR from mmap ASLR

2015-03-02 Thread Kees Cook
This fixes the "offset2lib" weakness in ASLR for arm, arm64, mips, powerpc, and x86. The problem is that if there is a leak of ASLR from the executable (ET_DYN), it means a leak of shared library offset as well (mmap), and vice versa. Further details and a PoC of this attack are available here:

[PATCH 2/5] mm: expose arch_mmap_rnd when available

2015-03-02 Thread Kees Cook
When an architecture fully supports randomizing the ELF load location, a per-arch mmap_rnd() function is used to finding a randomized mmap base. In preparation for randomizing the location of ET_DYN binaries separately from mmap, this renames and exports these functions as arch_mmap_rnd().

Re: xsaves support broken?

2015-03-02 Thread Dave Hansen
On 03/02/2015 04:09 PM, Yu, Fenghua wrote: > Xsaves has been tested by QA since 3.17 with or without MPX. I'm not > aware of reported issues. > > But MPX is the only code to call the get_xsave_addr kernel API. > Though it has been tested before on upstream MPX code. Has it? I'm fairly sure I've

[PATCH 1/5] arm: factor out mmap ASLR into mmap_rnd

2015-03-02 Thread Kees Cook
In preparation for exporting per-arch mmap randomization functions, this moves the ASLR calculations for mmap on ARM into a separate routine. Signed-off-by: Kees Cook --- arch/arm/mm/mmap.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/arch/arm/mm/mmap.c

[PATCH 5/5] mm: fold arch_randomize_brk into ARCH_HAS_ELF_RANDOMIZE

2015-03-02 Thread Kees Cook
The arch_randomize_brk() function is used on several architectures, even those that don't support ET_DYN ASLR. To avoid bulky extern/#define tricks, consolidate the support under CONFIG_ARCH_HAS_ELF_RANDOMIZE for the architectures that support it, while still handling CONFIG_COMPAT_BRK.

[PATCH v2 0/5] split ET_DYN ASLR from mmap ASLR

2015-03-02 Thread Kees Cook
To address the "offset2lib" ASLR weakness[1], this separates ET_DYN ASLR from mmap ASLR, as already done on s390. The architectures that are already randomizing mmap (arm, arm64, mips, powerpc, s390, and x86), have their various forms of arch_mmap_rnd() made available via the new

[PATCH] staging: lustre: space prohibited between function name and open parenthesis '('

2015-03-02 Thread Alberto Pires de Oliveira Neto
This patch fixes checkpatch.pl warning. WARNING: space prohibited between function name and open parenthesis '(' Signed-off-by: Alberto Pires de Oliveira Neto --- drivers/staging/lustre/lustre/fld/fld_request.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH net-next 2/2] net: netcp: select davinci_mdio driver by default

2015-03-02 Thread Tony Lindgren
* Murali Karicheri [150302 13:49]: > On 03/02/2015 11:11 AM, Tony Lindgren wrote: > > > >Because we are now force selecting items that may have other > >dependencies later on that will not be satisfied. That causes > >all kinds of make randconfig build errors. > > > My mistake. I didn't ask you

Re: [PATCH] clk: qcom: Fix ipq806x LCC frequency tables

2015-03-02 Thread Kenneth Westfield
On Thu, Feb 26, 2015 at 07:37:44PM -0800, Stephen Boyd wrote: > These frequency tables list the wrong rates. Either they don't > have the correct frequency at all, or they're specified in kHz > instead of Hz. Fix it. > > Fixes: c99e515a92e9 "clk: qcom: Add IPQ806X LPASS clock controller (LCC) >

RE: xsaves support broken?

2015-03-02 Thread Yu, Fenghua
that "xsaves" use inside the kernel is simply broken? > > Config is here: > > http://sr71.net/~dave/intel/config-20150302 Xsaves has been tested by QA since 3.17 with or without MPX. I'm not aware of reported issues. But MPX is the only code to call the get_xsave_addr kerne

Re: [PATCH v4 1/2] Input: bcm-keypad: add device tree bindings

2015-03-02 Thread Dmitry Torokhov
On Sat, Feb 28, 2015 at 08:35:56AM -0800, Scott Branden wrote: > Documents the Broadcom keypad controller device tree bindings. > > Reviewed-by: Ray Jui > Signed-off-by: Scott Branden I folded this into the patch adding the driver itself and queued for 4.1. Thank you. > --- >

Re: [PATCH v2 00/15] tracing: 'hist' triggers

2015-03-02 Thread Alexei Starovoitov
On Mon, Mar 2, 2015 at 11:55 AM, Tom Zanussi wrote: > > I disagree that it would be rarely used. In fact, it would probably > cover about 80% of the use cases that people initially use things like > systemtap or dtrace for, which I guess is what ebpf is shooting for. 'hist' style won't solve

xsaves support broken?

2015-03-02 Thread Dave Hansen
ption from my kernel. Re-adding "noxsaves" made MPX work again, and the BNDCSR contents were properly passed in to the kernel. Is it possible that "xsaves" use inside the kernel is simply broken? Config is here: http://sr71.net/~dave/intel/config-20150302 -- To u

Re: [PATCH] f2fs: fix to issue small discard in real-time mode discard

2015-03-02 Thread Changman Lee
On Sat, Feb 28, 2015 at 05:23:30PM +0800, Chao Yu wrote: > Now in f2fs, we share functions and structures for batch mode and real-time > mode > discard. For real-time mode discard, in shared function add_discard_addrs, we > will use uninitialized trim_minlen in struct cp_control to compare with

Re: [PATCH 00/13] FS-Cache: Fix a number of bugs that occur when the cache runs out of space

2015-03-02 Thread Jeff Layton
On Thu, 26 Feb 2015 14:01:55 + David Howells wrote: > > Attached are a bunch of patches that progressively fix bugs that can occur > when the cache hits the hard "must maintain X free space" limit and starts > rejecting requests. > > The commit ensubjected "FS-Cache: Synchronise object

Re: [PATCH char-misc] mei: bus: () can be static

2015-03-02 Thread Fengguang Wu
On Mon, Mar 02, 2015 at 12:41:05PM +0300, Dan Carpenter wrote: > On Mon, Mar 02, 2015 at 11:49:23AM +0800, kbuild test robot wrote: > > drivers/hv/vmbus_drv.c:51:5: sparse: symbol 'hyperv_panic_event' was not > > declared. Should it be static? > > drivers/hv/vmbus_drv.c:51:5: sparse: symbol

[PATCH v9] sched/deadline: support dl task migration during cpu hotplug

2015-03-02 Thread Wanpeng Li
I observe that dl task can't be migrated to other cpus during cpu hotplug, in addition, task may/may not be running again if cpu is added back. The root cause which I found is that dl task will be throtted and removed from dl rq after comsuming all budget, which leads to stop task can't pick it up

Re: [PATCH v2] rtc: add Abracon ABx80x driver

2015-03-02 Thread Andrew Morton
On Sun, 1 Mar 2015 11:27:15 +0100 Alexandre Belloni wrote: > Add support for the i2c RTC from Abracon. What is the relationship between this patch and http://ozlabs.org/~akpm/mmots/broken-out/rtc-add-rtc-abx805-a-driver-for-the-abracon-ab-1805-i2c-rtc.patch? From: Alexandre Belloni

Re: [PATCH 4/4] mmc: sdhci-iproc: add device tree bindings

2015-03-02 Thread Florian Fainelli
On 09/02/15 16:06, Scott Branden wrote: > Add device tree binding documentation for IPROC SDHCI driver. > > Acked-by: Ray Jui > Signed-off-by: Corneliu Doban > Signed-off-by: Scott Branden > --- > .../devicetree/bindings/mmc/brcm,sdhci-iproc.txt | 23 > ++ > 1 file

Re: [PATCH v2 1/2] hwrng: iproc-rng200 - Add device tree bindings

2015-03-02 Thread Florian Fainelli
On 25/02/15 10:16, Scott Branden wrote: > Documents the IPROC random number generator device tree bindings > used in some Broadcom chipsets. > > Reviewed-by: Ray Jui > Signed-off-by: Scott Branden Applied to devicetree/next at github.com/stblinux, thanks! -- Florian -- To unsubscribe from

Re: [PATCH RESEND 1/1] ARM: dts: Enable Broadcom Cygnus BCM958305K

2015-03-02 Thread Florian Fainelli
On 02/03/15 14:41, Jonathan Richardson wrote: > DT file to enable the Wireless Audio reference design based on the > BCM58305. > > Reviewed-by: Ray Jui > Reviewed-by: Scott Branden > Tested-by: Scott Branden > Signed-off-by: Jonathan Richardson Applied to devicetree/next at

Re: [PATCH] mm: cma: constify and use correct signness in mm/cma.c

2015-03-02 Thread Gregory Fong
On Sat, Feb 28, 2015 at 12:57 AM, Sasha Levin wrote: > Constify function parameters and use correct signness where needed. > > Signed-off-by: Sasha Levin Acked-by: Gregory Fong -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCH 01/16] CONFIG_DISABLE_OBSOLETE_CPUMASK_FUNCTIONS: set if CPUMASK_OFFSTACK.

2015-03-02 Thread Rusty Russell
gt; - depends on BROKEN >> + bool >> + depends on CPUMASK_OFFSTACK > > This removes the "prompt" from this symbol's entry. And nothing selects > it either (not in next-20150302 nor in this series). So I think this > just disables this Kconfig symbol entirel

Re: [PATCH 05/16] staging/lustre: fix up obsolete cpu function usage.

2015-03-02 Thread Rusty Russell
Oleg Drokin writes: > Thanks! > Seems there was a midair collsion with my own patch that was not as > comprehensive > wrt functions touched: https://lkml.org/lkml/2015/3/2/10 Yep, I posted this for completeness (and for your reference), but figured you'd handle it. > But on the other hand I

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

2015-03-02 Thread Bjorn Helgaas
On Thu, Feb 26, 2015 at 04:11:55PM +0800, Yijing Wang wrote: > Pci_bus_add_devices() should not be placed in pci_scan_bus(). > Now pci device will be added to driver core once its > creation. All things left in pci_bus_add_devices() are > driver attachment and other trivial sysfs things. >

Re: [PATCH] video: ARM CLCD: Added support for FBIO_WAITFORVSYNC

2015-03-02 Thread Rob Herring
On Wed, Feb 25, 2015 at 3:01 PM, Arun Ramamurthy wrote: > Added ioctl and interrupt handler functions to support FBIO_WAITFORVSYNC > Also corrected documentation to make interrupts and interrupt-names > optional as they are not required properties. > > Reviewed-by: Ray Jui > Reviewed-by: Scott

[PATCH] spi: spi-imx: use correct enumeration type

2015-03-02 Thread Stefan Agner
The fourth argument of dmaengine_prep_slave_sg needs to be of the enumeration type dma_transfer_direction instead of dma_data_direction. Since the used enumeration values actually stay the same, this is not an actual issue at runtime. Signed-off-by: Stefan Agner --- This showed up when I tried

Re: [PATCH] video: ARM CLCD: Added support for FBIO_WAITFORVSYNC

2015-03-02 Thread Rob Herring
On Mon, Mar 2, 2015 at 10:00 AM, Pawel Moll wrote: > On Wed, 2015-02-25 at 21:01 +, Arun Ramamurthy wrote: >> Added ioctl and interrupt handler functions to support FBIO_WAITFORVSYNC >> Also corrected documentation to make interrupts and interrupt-names >> optional as they are not required

Re: [PATCH] video: ARM CLCD: Added support for FBIOPAN_DISPLAY and virtual y resolution

2015-03-02 Thread Rob Herring
On Mon, Mar 2, 2015 at 1:09 PM, Arun Ramamurthy wrote: > > > On 15-03-02 08:11 AM, Russell King - ARM Linux wrote: >> >> On Mon, Mar 02, 2015 at 04:08:29PM +, Pawel Moll wrote: >>> >>> I'm not sure about this... The word "virtual" never works well with >>> device tree nodes defined as

Fwd: [PATCH] c6x: asm: Add default flat.h according to xtensa architecture

2015-03-02 Thread Chen Gang S
Just forward the original mail. Forwarded Message Subject: [PATCH] c6x: asm: Add default flat.h according to xtensa architecture Date: Tue, 03 Mar 2015 07:24:26 +0800 From: Chen Gang <762976...@qq.com> To: msal...@redhat.com, a-jacqu...@ti.com CC: linux-c6x-...@linux-c6x.org ,

Re: [PATCH 07/15] mm: Add ___GFP_NOTRACE

2015-03-02 Thread Alexei Starovoitov
On Mon, Mar 2, 2015 at 2:04 PM, Tom Zanussi wrote: > On Mon, 2015-03-02 at 11:29 -0800, Alexei Starovoitov wrote: >> On Mon, Mar 2, 2015 at 10:54 AM, Tom Zanussi >> wrote: >> >> > >> >> > The idea would be that instead of getting your individually kmalloc'ed >> >> > elements on-demand from

Re: [PATCH v8] sched/deadline: support dl task migration during cpu hotplug

2015-03-02 Thread Wanpeng Li
Hi Juri, On Mon, Mar 02, 2015 at 12:11:48PM +, Juri Lelli wrote: >Hi, > >On 25/02/2015 11:50, Wanpeng Li wrote: >> I observe that dl task can't be migrated to other cpus during cpu hotplug, >> in addition, task may/may not be running again if cpu is added back. The >> root cause which I found

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