[PATCH v3 2/3] tools: Move Makefile.arch from perf/config to tools/scripts

2015-12-14 Thread Wang Nan
After this patch other directories can use this architecture detector without directly including it from perf's directory. Libbpf would utilize it to get proper $(ARCH) so it can receive correct uapi include directory. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Naveen N. Rao Cc: J

[PATCH v3 3/3] perf: bpf: Fix build breakage due to libbpf

2015-12-14 Thread Wang Nan
From: "Naveen N. Rao" perf build is currently (v4.4-rc5) broken on powerpc: bpf.c:28:4: error: #error __NR_bpf not defined. libbpf does not support your arch. # error __NR_bpf not defined. libbpf does not support your arch. ^ Fix this by including tools/perf/config/Makefile.arch for the p

Re: [PATCH v4 01/20] PM / devfreq: exynos: Add generic exynos bus frequency driver

2015-12-14 Thread Chanwoo Choi
On 2015년 12월 14일 17:28, MyungJoo Ham wrote: >> >> This patch adds the generic exynos bus frequency driver for AMBA AXI bus >> of sub-blocks in exynos SoC with DEVFREQ framework. The Samsung Exynos SoC >> have the common architecture for bus between DRAM and sub-blocks in SoC. >> This driver can

[PATCH] Fix spurious hard lockup events while in debugger

2015-12-14 Thread Jeff Merkey
The current touch_nmi_watchdog() function in /kernel/watchdog.c does not always catch all cases when a processor is spinning in the nmi handler inside either KGDB, KDB, or MDB, in particular, the case where a processor is being held by a debugger inside an int1 handler. The hrtimer_interrupts_save

[PATCH v6 2/2] drm/bridge: Add I2C based driver for ps8640 bridge

2015-12-14 Thread Jitao Shi
This patch adds drm_bridge driver for parade DSI to eDP bridge chip. Signed-off-by: Jitao Shi --- Changes since v5 -fix compile errors when CONFIG_GPIOLIB=n --- drivers/gpu/drm/bridge/Kconfig | 10 + drivers/gpu/drm/bridge/Makefile|1 + drivers/gpu/drm/bridge/parade-ps8640.

[PATCH v6 1/2] Documentation: bridge: Add documentation for ps8640 DT properties

2015-12-14 Thread Jitao Shi
Add documentation for DT properties supported by ps8640 DSI-eDP converter. Signed-off-by: Jitao Shi Acked-by: Rob Herring Reviewed-by: Philipp Zabel --- Changes since v5 -no changes --- .../devicetree/bindings/display/bridge/ps8640.txt | 43 1 file changed, 43 insertion

pty: fix use after free/oops at pty_unix98_shutdown

2015-12-14 Thread Herton R. Krzesinski
Hi, recently I got a report of a crash at pty_unix98_shutdown. after analyzing the issue, I managed to create a small reproducer: $ cat test.sh #!/bin/sh while true; do find /sys ./dopty echo 2 > /proc/sys/vm/drop_caches ps aux sleep 40 done $ cat dopty.c

[PATCH] pty: fix use after free of tty->driver_data

2015-12-14 Thread Herton R. Krzesinski
pty_unix98_shutdown allows a potential use after free of inode from slave tty->driver_data: if final pty close is called with slave tty_struct, and inode was released already by devpts_pty_kill at pty_close, pty_unix98_shutdown will access stale data. If the evicted inode is quickly reused again as

Re: [PATCH v6 4/5] iommu/mediatek: Add mt8173 IOMMU driver

2015-12-14 Thread Yong Wu
On Mon, 2015-12-14 at 15:16 +0100, Joerg Roedel wrote: > On Tue, Dec 08, 2015 at 05:49:12PM +0800, Yong Wu wrote: > > +static int mtk_iommu_attach_device(struct iommu_domain *domain, > > + struct device *dev) > > +{ > > + struct mtk_iommu_domain *dom = to_mtk_domain(d

Re: [PATCH] ftrace: fix race between ftrace and insmod

2015-12-14 Thread Zhang, Yanmin
On 2015/12/15 9:05, Zhang, Yanmin wrote: > On 2015/12/14 23:51, Steven Rostedt wrote: >> On Mon, 14 Dec 2015 11:16:18 +0800 >> "Qiu, PeiyangX" wrote: >> >>> We hit ftrace_bug report when booting Android on a 64bit ATOM SOC chip. >>> Basically, there is a race between insmod and ftrace_run_update_c

Re: [PATCH 1/7] mm: memcontrol: charge swap to cgroup2

2015-12-14 Thread Kamezawa Hiroyuki
On 2015/12/15 0:30, Michal Hocko wrote: On Thu 10-12-15 14:39:14, Vladimir Davydov wrote: In the legacy hierarchy we charge memsw, which is dubious, because: - memsw.limit must be >= memory.limit, so it is impossible to limit swap usage less than memory usage. Taking into account the fact

Re: [PATCH 1/7] mm: memcontrol: charge swap to cgroup2

2015-12-14 Thread Kamezawa Hiroyuki
On 2015/12/15 4:42, Vladimir Davydov wrote: On Mon, Dec 14, 2015 at 04:30:37PM +0100, Michal Hocko wrote: On Thu 10-12-15 14:39:14, Vladimir Davydov wrote: In the legacy hierarchy we charge memsw, which is dubious, because: - memsw.limit must be >= memory.limit, so it is impossible to limit

Re: [PATCH 1/1] Fix HARD Lockup Firing off while in debugger

2015-12-14 Thread Jeff Merkey
On 12/14/15, Jeff Merkey wrote: > On 12/14/15, Don Zickus wrote: >> On Sat, Dec 12, 2015 at 02:08:13PM -0700, Jeff Merkey wrote: >>> The current touch_nmi_watchdog() function in /kernel/watchdog.c does >>> not always catch all cases when a processor is spinning in the nmi >>> handler inside eithe

[PATCH] f2fs: add symbol to avoid any confusion with tools

2015-12-14 Thread Jaegeuk Kim
This patch adds MAX_VOLUME_NAME to sync with f2fs-tools. Signed-off-by: Jaegeuk Kim --- include/linux/f2fs_fs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/f2fs_fs.h b/include/linux/f2fs_fs.h index 25c6324..e59c3be 100644 --- a/include/linux/f2fs_fs.h +++

Re: [PATCH RESEND 22/27] tools/hv: Use include/uapi with __EXPORTED_HEADERS__

2015-12-14 Thread Greg KH
On Mon, Dec 14, 2015 at 04:01:53PM -0800, K. Y. Srinivasan wrote: > From: Kamal Mostafa > > Use the local uapi headers to keep in sync with "recently" added #define's > (e.g. VSS_OP_REGISTER1). > > Fixes: 3eb2094c59e89db2bedd401e23c7a870081c9edb Please use the "correct" way of listing this:

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

2015-12-14 Thread Greg KH
On Mon, Dec 14, 2015 at 04:01:40PM -0800, K. Y. Srinivasan wrote: > 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 th

Re: [PATCH 1/1] Fix HARD Lockup Firing off while in debugger

2015-12-14 Thread Jeff Merkey
On 12/14/15, Don Zickus wrote: > On Sat, Dec 12, 2015 at 02:08:13PM -0700, Jeff Merkey wrote: >> The current touch_nmi_watchdog() function in /kernel/watchdog.c does >> not always catch all cases when a processor is spinning in the nmi >> handler inside either KGDB, KDB, or MDB. The hrtimer_inter

Re: [PATCH 2/2] md: dm-crypt: Optimize the dm-crypt for XTS mode

2015-12-14 Thread Baolin Wang
>> + /* >> + * Here we need to check if it can be encrypted or decrypted with >> + * bulk block, which means these encryption modes don't need IV or >> + * just need one initial IV. For bulk mode, we can expand the >> + * scatterlist entries to map the bio, then send all the

Re: [PATCH RESEND 1/1] serial: 8250_pci: Fix real serial port count for F81504/508/512

2015-12-14 Thread Peter Hung
Hello, Andy Shevchenko 於 2015/12/13 上午 09:08 寫道: On Tue, Dec 1, 2015 at 8:54 AM, Peter Hung wrote: First of all, maybe you can consider to split this part of the driver to separate one? (Like we did for 8250_mid.c). It seems 8250_pci is too bloated. But it's just an idea, maybe for future.

RE: [PATCH v4 0/7] ACPICA / debugger: Add in-kernel AML debugger support

2015-12-14 Thread Zheng, Lv
Hi, Rafael > From: Rafael J. Wysocki [mailto:r...@rjwysocki.net] > Sent: Tuesday, December 15, 2015 7:45 AM > > On Thursday, December 03, 2015 10:40:00 AM Lv Zheng wrote: > > This patchset enables ACPICA debugger for Linux kernel and implements a > > userspace utility to access it. > > > > A. Bui

[PATCH] p1010rdb:update dts for pcie interrupt-map

2015-12-14 Thread Zhao Qiang
p1010rdb use the irq[4:5] for inta and intb to pcie, it is active-high, so set it. Signed-off-by: Zhao Qiang --- arch/powerpc/boot/dts/fsl/p1010rdb.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/powerpc/boot/dts/fsl/p1010rdb.dtsi b/arch/powerpc/boot/dts/fsl/p101

Re: [RFC] powerpc: Enable UBSAN support

2015-12-14 Thread Andrew Donnellan
On 10/12/15 11:42, Daniel Axtens wrote: This hooks up UBSAN support for PowerPC. So far it's found some interesting cases where we don't properly sanitise input to shifts, including one in our futex handling. Nothing critical, but interesting and worth fixing. CC: Andrey Ryabinin --- This to

Re: [RFCv6 PATCH 07/10] sched/fair: jump to max OPP when crossing UP threshold

2015-12-14 Thread Steve Muckle
Hi Juri, On 12/11/2015 03:12 AM, Juri Lelli wrote: >> @@ -2895,6 +2934,8 @@ void scheduler_tick(void) >> >trigger_load_balance(rq); >> > #endif >> >rq_last_tick_reset(rq); >> > + >> > + sched_freq_tick(cpu); > We are not holding rq->lock anymore at this points, and this collides > with c

Re: [PATCH v6 4/5] iommu/mediatek: Add mt8173 IOMMU driver

2015-12-14 Thread Yong Wu
On Mon, 2015-12-14 at 19:19 +0100, Matthias Brugger wrote: > > On 08/12/15 10:49, Yong Wu wrote: > > This patch adds support for mediatek m4u (MultiMedia Memory Management > > Unit). > > > > Signed-off-by: Yong Wu > > --- [...] > > +static void mtk_iommu_config(struct mtk_iommu_data *data, > > +

Re: [PATCH v6 3/5] memory: mediatek: Add SMI driver

2015-12-14 Thread Yong Wu
On Mon, 2015-12-14 at 19:18 +0100, Matthias Brugger wrote: > On Tuesday 08 Dec 2015 17:49:11 Yong Wu wrote: > > This patch add SMI(Smart Multimedia Interface) driver. This driver > > is responsible to enable/disable iommu and control the power domain > > and clocks of each local arbiter. > > > > S

[PATCH 1/2] cpuacct: rename parameter in cpuusage_write for readability

2015-12-14 Thread Dongsheng Yang
The name of 'reset' makes a little confusion in reading, we would say, if we want to reset usage, return -EINVAL. That's not true. Actually, we want to say, we only allow user to do a reset. This patch rename reset to val and add a comment here, making the code more readable. Signed-off-by: Dongs

[PATCH 2/2] cpuacct: split usage into user_usage and sys_usage.

2015-12-14 Thread Dongsheng Yang
Sometimes, cpuacct.usage is not detialed enough to user to see how much usage a group used. We want to know how much time it used in user mode and how much in kernel mode. This patch introduce some more files to tell user these informations. # ls /sys/fs/cgroup/cpuacct/cpuacct.usage* /sys/fs/cgro

[PATCH 1/9] libnvdimm, pfn: kill ND_PFN_ALIGN

2015-12-14 Thread Dan Williams
The alignment constraint isn't necessary now that devm_memremap_pages() allows for unaligned mappings. Signed-off-by: Dan Williams --- drivers/nvdimm/nd.h |7 --- drivers/nvdimm/pfn_devs.c | 11 +-- drivers/nvdimm/pmem.c | 15 --- 3 files changed, 1 inse

[PATCH 5/9] libnvdimm, pfn: fix pfn seed creation

2015-12-14 Thread Dan Williams
Similar to btt, plant a new pfn seed when the existing one is activated. Signed-off-by: Dan Williams --- drivers/nvdimm/namespace_devs.c | 12 drivers/nvdimm/nd-core.h|1 + drivers/nvdimm/region_devs.c|7 +++ 3 files changed, 20 insertions(+) diff --git a/

[PATCH 3/9] libnvdimm, pfn: add 'align' attribute, default to HPAGE_SIZE

2015-12-14 Thread Dan Williams
When setting aside capacity for struct page it must be aligned to the largest mapping size that is to be made available via DAX. Make the alignment configurable to enable support for 1GiB page-size mappings. The offset for PFN_MODE_RAM may now be larger than SZ_8K, so fixup the offset check in nv

[PATCH 9/9] libnvdimm, pfn: move 'memory mode' indication to sysfs

2015-12-14 Thread Dan Williams
'Memory mode' is defined as the capability of a DAX mapping to be the source/target of DMA and other "direct I/O" scenarios. While it currently requires allocating 'struct page' for each page frame of persistent memory in the namespace it will not always be the case. Work continues on reducing th

[PATCH 4/9] libnvdimm, pfn: add parent uuid validation

2015-12-14 Thread Dan Williams
Track and check the uuid of the namespace hosting a pfn instance. This forces the pfn info block to be invalidated if the namespace is re-configured with a different uuid. Signed-off-by: Dan Williams --- drivers/nvdimm/pfn_devs.c | 10 +++--- drivers/nvdimm/pmem.c |1 + 2 files ch

[PATCH 7/9] libnvdimm, pfn: fix nd_pfn_validate() return value handling

2015-12-14 Thread Dan Williams
The -ENODEV case indicates that the info-block needs to established. All other return codes cause nd_pfn_init() to abort. Signed-off-by: Dan Williams --- drivers/nvdimm/pmem.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/nvdimm/pmem.c b/drivers/nvdimm/pmem.c

[PATCH 8/9] tools/testing/libnvdimm: cleanup mock resource lookup

2015-12-14 Thread Dan Williams
Push the locking around get_nfit_res() into get_nfit_res(). Signed-off-by: Dan Williams --- tools/testing/nvdimm/test/iomap.c | 86 + 1 file changed, 39 insertions(+), 47 deletions(-) diff --git a/tools/testing/nvdimm/test/iomap.c b/tools/testing/nvdimm/te

[PATCH 6/9] libnvdimm, pfn: enable pfn sysfs interface unit testing

2015-12-14 Thread Dan Williams
The unit test infrastructure uses CMA and real memory to emulate nvdimm resources. The call to devm_memremap_pages() can simply be mocked in the same manner as memremap and we mock phys_to_pfn_t() to clear PFN_MAP since these resources are not registered with in the pgmap_radix. Signed-off-by: Da

[PATCH 2/9] libnvdimm, pfn: clean up pfn create parameters

2015-12-14 Thread Dan Williams
In all cases __nd_pfn_create is called with default parameters which are then overridden by values in the info block. Clean up pfn creation by dropping the parameters and setting default values internal to __nd_pfn_create. Signed-off-by: Dan Williams --- drivers/nvdimm/pfn_devs.c | 11 +++

[PATCH 0/9] libnvdimm, pfn updates for 4.5

2015-12-14 Thread Dan Williams
With the impending merge of the dax-gup patchset [1], a new set of unit tests for 'pfn' devices was added to ndctl. These are the cleanups and fixups identified from that testing. The unit test updates will be posted separately on the linux-nvdimm list. [1]: https://lists.01.org/pipermail/linux-

Re: sched : performance regression 24% between 4.4rc4 and 4.3 kernel

2015-12-14 Thread Rik van Riel
On 12/14/2015 06:52 PM, Jirka Hladky wrote: > Hi all, > > I have the results of bisecting: > > first bad commit: [973759c80db96ed4b4c5cb85ac7d48107f801371] Merge tag > 'v4.3-rc1' into sched/core, to refresh the branch > > Could you please have a look at this commit why it has caused the > perfor

RE: [PATCH net-next] net, cgroup: cgroup_sk_updat_lock was missing initializer

2015-12-14 Thread Dexuan Cui
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Tuesday, December 15, 2015 3:21 > To: t...@kernel.org > Cc: Dexuan Cui ; pa...@netfilter.org; ka...@trash.net; > kad...@blackhole.kfki.hu; dan...@iogearbox.net; daniel.wag...@bmw-carit.de; > nhor...@tuxdriver.com

Re: [PATCH/RFC 11/16] perf top: Implement basic parallel processing

2015-12-14 Thread Namhyung Kim
On Mon, Dec 14, 2015 at 10:35:19AM +0100, Jiri Olsa wrote: > On Mon, Dec 14, 2015 at 10:23:43AM +0100, Jiri Olsa wrote: > > On Thu, Dec 10, 2015 at 04:53:30PM +0900, Namhyung Kim wrote: > > > > SNIP > > > > > > > > - perf_top__mmap_read(top); > > > - > > > ret = -1; > > > - if (pthread_create

[PATCH 4/6] perf, tools, stat: Implement CSV metrics output

2015-12-14 Thread Andi Kleen
From: Andi Kleen Now support CSV output for metrics. With the new output callbacks this is relatively straight forward by creating new callbacks. The new line callback needs to know the number of fields to skip them correctly v2: Split out function argument changes v3: Reenable metrics for real

[PATCH 5/6] perf, tools: Support metrics in --per-core/socket mode

2015-12-14 Thread Andi Kleen
From: Andi Kleen Enable metrics printing in --per-core / --per-socket mode. We need to save the shadow metrics in a unique place. Always use the first CPU in the aggregation. Then use the same CPU to retrieve the shadow value later. Example output: % perf stat --per-core -a ./BC1s Performance

[PATCH 1/6] perf, tools, stat: Abstract stat metrics printing

2015-12-14 Thread Andi Kleen
From: Andi Kleen Abstract the printing of shadow metrics. Instead of every metric calling fprintf directly and taking care of indentation, use two call backs: one to print metrics and another to start a new line. This will allow adding metrics to CSV mode and also using them for other purposes.

perf, tools: Refactor and support interval and CSV metrics v7

2015-12-14 Thread Andi Kleen
Rebased tree and fixed Jiri's last feedback. [v4: Addressed all review feedback.] [v3: Addressed all review feedback. Update manpage for CSV. Various changes (see individual patches). Remove some more redundant code in printout callers.] [v2: Addressed (near) all review feedback. No man

[PATCH 3/6] perf, tools, stat: Move noise/running printing into printout

2015-12-14 Thread Andi Kleen
From: Andi Kleen Move the running/noise printing into printout to avoid duplicated code in the callers. v2: Merged with other patches. Remove unnecessary hunk. Readd hunk that ended in earlier patch. v3: Fix noise/running output in CSV mode v4: Merge with later patch that also moves not supporte

[PATCH 6/6] perf, tools, stat: Document CSV format in manpage

2015-12-14 Thread Andi Kleen
From: Andi Kleen With all the recently added fields in the perf stat CSV output we should finally document them in the man page. Do this here. Signed-off-by: Andi Kleen --- tools/perf/Documentation/perf-stat.txt | 19 +++ 1 file changed, 19 insertions(+) diff --git a/tools/per

[PATCH 2/6] perf, tools, stat: Add support for metrics in interval mode

2015-12-14 Thread Andi Kleen
From: Andi Kleen Now that we can modify the metrics printout functions easily, it's straight forward to support metric printing for interval mode. All that is needed is to print the time stamp on every new line. Pass the prefix into the context and print it out. v2: Move wrong hunk to here. Sign

Re: [PATCH/RFC 12/16] perf tools: Reduce lock contention when processing events

2015-12-14 Thread Namhyung Kim
Hi Jiri, On Mon, Dec 14, 2015 at 09:43:04AM +0100, Jiri Olsa wrote: > On Thu, Dec 10, 2015 at 04:53:31PM +0900, Namhyung Kim wrote: > > When multi-thread is enabled, the machine->threads_lock is contented > > as all worker threads try to grab the writer lock using the > > machine__findnew_thread()

Re: [RFCv6 PATCH 03/10] sched: scheduler-driven cpu frequency selection

2015-12-14 Thread Steve Muckle
Hi Juri, Thanks for the review. On 12/11/2015 03:04 AM, Juri Lelli wrote: >> +config CPU_FREQ_GOV_SCHED >> +bool "'sched' cpufreq governor" >> +depends on CPU_FREQ > > We depend on IRQ_WORK as well, which in turn I think depends on SMP. As > briefly discussed with Peter on IRC, we might

[PATCH v2 2/2] f2fs: do more integrity verification for superblock

2015-12-14 Thread Chao Yu
Do more sanity check for superblock during ->mount. Signed-off-by: Chao Yu --- v2: o fix incorrect check for main_blkaddr. fs/f2fs/super.c | 98 + 1 file changed, 98 insertions(+) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index dbf16

Re: [PATCH v14 0/7] fpga area and fpga bridge framework

2015-12-14 Thread Alan Tull
On Mon, Dec 14, 2015 at 11:16 AM, Moritz Fischer wrote: > Hi Alan, > > On Thu, Dec 10, 2015 at 3:37 PM, wrote: >> From: Alan Tull >> >> For v14 I'm dropping the concept of "simple-fpga-bus" for "fpga-area" >> with reworked bindings. > > I had an offline discussion with Josh Cartwright about his

Re: [PATCHv4 1/1] SCSI: hosts: update to use ida_simple for host_no management

2015-12-14 Thread Martin K. Petersen
> "Hannes" == Hannes Reinecke writes: >> I'm not opposed to having the module option if others (Martin?) feel >> they need it, but generally I think it's better to keep things as >> simple as possible. So, unless there are strong objections, I would >> say no. Hannes> Agreeing with Ewan her

RE: [PATCH] KVM: x86: Add lowest-priority support for vt-d posted-interrupts

2015-12-14 Thread Wu, Feng
> -Original Message- > From: kvm-ow...@vger.kernel.org [mailto:kvm-ow...@vger.kernel.org] On > Behalf Of Radim Krcmár > Sent: Friday, December 11, 2015 10:38 PM > To: Wu, Feng > Cc: pbonz...@redhat.com; k...@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH] KVM: x86: A

Re: [PATCH v6] sun4i-codec: Add FM, Line and Mic inputs

2015-12-14 Thread Danny Milosavljevic
Hi Maxime, On Sun, 13 Dec 2015 21:58:39 +0100 Maxime Ripard wrote: > This is not the branch you should be basing your patch on. This is an > ASoC patch, base it on the ASoC tree. Okay, will do. To the branch "sunxi-next" in , right? [...] > > -static const struct regmap_config sun4i_codec_reg

[PATCH] perf record: Add record.build-id config option

2015-12-14 Thread Namhyung Kim
Post processing at perf record takes long time on big machines. What it does is to find build-id of related binaries. Sometimes we just want to skip the processing and get the result quickly. Add a new config option to control this behavior. The record.build-id config variable can have one of f

RE: [PATCH 2/2] f2fs: do more integrity verification for superblock

2015-12-14 Thread Chao Yu
Hi Jaegeuk, > -Original Message- > From: Jaegeuk Kim [mailto:jaeg...@kernel.org] > Sent: Tuesday, December 15, 2015 8:56 AM > To: Chao Yu > Cc: linux-f2fs-de...@lists.sourceforge.net; linux-kernel@vger.kernel.org > Subject: Re: [PATCH 2/2] f2fs: do more integrity verification for superbloc

Re: [RFC/PATCHSET 0/6] perf tools: Support dynamic sort keys for tracepoints (v1)

2015-12-14 Thread Namhyung Kim
Hi David and Arnaldo, On Mon, Dec 14, 2015 at 03:32:06PM -0700, David Ahern wrote: > On 12/14/15 10:47 AM, Arnaldo Carvalho de Melo wrote: > >>With dynamic sort keys, you can use as a sort key. Those > >>dynamic keys are checked and created on demand. For instance, below is > >>to sort by next_

Re: [PATCH] kbuild: support make dir/file.i for *.S

2015-12-14 Thread Masahiro Yamada
Hi Michal, 2015-12-15 2:16 GMT+09:00 Michal Marek : > > Ah, I missed. I'll revert the patch in the kbuild tree. Please drop the noise commit rather than reverting it. It was just applied a few days ago, and there is only one commit on top of it. -- Best Regards Masahiro Yamada -- To unsubs

Re: [PATCH] net: emac: emac gigabit ethernet controller driver

2015-12-14 Thread Florian Fainelli
On 14/12/15 16:19, Gilad Avidov wrote: [snip] > + "sgmii_irq"; > + qcom,emac-gpio-mdc = <&msmgpio 123 0>; > + qcom,emac-gpio-mdio = <&msmgpio 124 0>; > + qcom,emac-tstamp-en; > + qcom,emac-ptp-frac-ns-adj = <12500 1>; > +

[RFC PATCH] fs: __generic_file_splice_read retry lookup on AOP_TRUNCATED_PAGE

2015-12-14 Thread Abhi Das
During testing, I discovered that __generic_file_splice_read() returns 0 (EOF) when aops->readpage fails with AOP_TRUNCATED_PAGE on the first page of a single/multi-page splice read operation. This EOF return code causes the userspace test to (correctly) report a zero-length read error when it was

[PATCH] android: unconditionally remove callbacks in sync_fence_free()

2015-12-14 Thread Dmitry Torokhov
Using fence->status to determine whether or not there are callbacks remaining on the sync_fence is racy since fence->status may have been decremented to 0 on another CPU before fence_check_cb_func() has completed. By unconditionally calling fence_remove_callback() for each fence in the sync_fence,

[PATCH 5/9] Drivers: hv: ring_buffer.c: fix comment style

2015-12-14 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov Convert 6+-string comments repeating function names to normal kernel-style comments and fix a couple of other comment style issues. No textual or functional changes intended. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/ring_buffer.c |

[PATCH 4/9] Drivers: hv: utils: fix crash when device is removed from host side

2015-12-14 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov The crash is observed when a service is being disabled host side while userspace daemon is connected to the device: [ 90.244859] general protection fault: [#1] SMP ... [ 90.800082] Call Trace: [ 90.800082] [] __fput+0xc8/0x1f0 [ 90.800082] [] fput+0xe/0x

[PATCH] android: fix warning when releasing active sync point

2015-12-14 Thread Dmitry Torokhov
Userspace can close the sync device while there are still active fence points, in which case kernel produces the following warning: [ 43.853176] [ cut here ] [ 43.857834] WARNING: CPU: 0 PID: 892 at /mnt/host/source/src/third_party/kernel/v3.18/drivers/staging/android/

[PATCH 3/9] Drivers: hv: utils: introduce HVUTIL_TRANSPORT_DESTROY mode

2015-12-14 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov When Hyper-V host asks us to remove some util driver by closing the appropriate channel there is no easy way to force the current file descriptor holder to hang up but we can start to respond -EBADF to all operations asking it to exit gracefully. As we're setting hvt->mode

[PATCH 6/9] Drivers: hv: ring_buffer: remove stray smp_read_barrier_depends()

2015-12-14 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov smp_read_barrier_depends() does nothing on almost all arcitectures including x86 and having it in the beginning of hv_get_ringbuffer_availbytes() does not provide any guarantees anyway. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- include/linux/hy

[PATCH 2/9] Drivers: hv: utils: rename outmsg_lock

2015-12-14 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov As a preparation to reusing outmsg_lock to protect test-and-set openrations on 'mode' rename it the more general 'lock'. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_utils_transport.c | 14 +++--- drivers/hv/hv_utils_transp

[PATCH 9/9] Drivers: hv: ring_buffer: eliminate hv_ringbuffer_peek()

2015-12-14 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov Currently, there is only one user for hv_ringbuffer_read()/ hv_ringbuffer_peak() functions and the usage of these functions is: - insecure as we drop ring_lock between them, someone else (in theory only) can acquire it in between; - non-optimal as we do a number of things

[PATCH 7/9] Drivers: hv: ring_buffer: remove code duplication from hv_ringbuffer_peek/read()

2015-12-14 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov hv_ringbuffer_peek() does the same as hv_ringbuffer_read() without advancing the read index. The only functional change this patch brings is moving hv_need_to_signal_on_read() call under the ring_lock but this function is just a couple of comparisons. Signed-off-by: Vitaly

[PATCH 8/9] Drivers: hv: remove code duplication between vmbus_recvpacket()/vmbus_recvpacket_raw()

2015-12-14 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov vmbus_recvpacket() and vmbus_recvpacket_raw() are almost identical but there are two discrepancies: 1) vmbus_recvpacket() doesn't propagate errors from hv_ringbuffer_read() which looks like it is not desired. 2) There is an error message printed in packetlen > bufferlen

[PATCH 1/9] Drivers: hv: utils: fix memory leak on on_msg() failure

2015-12-14 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov inmsg should be freed in case of on_msg() failure to avoid memory leak. Preserve the error code from on_msg(). Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_utils_transport.c |7 --- 1 files changed, 4 insertions(+), 3 deletio

[PATCH 0/9] Drivers: hv: Cleanup ringbuffer code

2015-12-14 Thread K. Y. Srinivasan
Cleanup ringbuffer code also fix some issues in the util services. Vitaly Kuznetsov (9): Drivers: hv: utils: fix memory leak on on_msg() failure Drivers: hv: utils: rename outmsg_lock Drivers: hv: utils: introduce HVUTIL_TRANSPORT_DESTROY mode Drivers: hv: utils: fix crash when device is r

linux-next: build failure after merge of the drm-msm tree

2015-12-14 Thread Stephen Rothwell
Hi Rob, After merging the drm-msm tree, today's linux-next build (arm multi_v7_defconfig) failed like this: drivers/gpu/drm/msm/mdp/mdp4/mdp4_dsi_encoder.c: In function 'mdp4_dsi_encoder_init': drivers/gpu/drm/msm/mdp/mdp4/mdp4_dsi_encoder.c:187:2: error: too few arguments to function 'drm_enco

Re: [RFC PATCH 2/2] block: virtio-blk: support multi virt queues per virtio-blk device

2015-12-14 Thread Ming Lei
Hi Paolo, On Mon, Dec 14, 2015 at 6:31 PM, Paolo Bonzini wrote: > > > On 18/06/2014 06:04, Ming Lei wrote: >> For virtio-blk, I don't think it is always better to take more queues, and >> we need to leverage below things in host side: >> >> - host storage top performance, generally it reaches tha

Re: [PATCH 0/15] copy offload patches

2015-12-14 Thread Mikulas Patocka
On Thu, 10 Dec 2015, Martin K. Petersen wrote: > > "Mikulas" == Mikulas Patocka writes: > > Mikulas, > > Mikulas> This patch series adds copy offload (the XCOPY command) to the > Mikulas> block layer, SCSI subsystems and device mapper. > > Now that the VFS stuff appears to stabilize I ag

[PATCH 1/2] Documentation: remove outdated references from translations

2015-12-14 Thread SeongJae Park
Outdated link to linux-next wiki was removed by commit ace80793d16fb076381ba0e232d42295d98dae99 ("Documentation: remove outdated references to the linux-next wiki"). However, the change was not applied to translations. This commit apply the change to translations. Signed-off-by: SeongJae Park ---

[PATCH 2/2] Documentation: HOWTO: update versions from 3.x to 4.x

2015-12-14 Thread SeongJae Park
Versions in HOWTO was updated to 4.x by commit e4144fe5d47c91c92d36cdbd5f31ed8d6e3a57ab ("docs: update HOWTO for 3.x -> 4.x versioning") but not applied to Korean translation. This commit apply the change. Signed-off-by: SeongJae Park --- Documentation/ko_KR/HOWTO | 26 +-

Re: [PATCH v2] extcon: add Maxim MAX3355 driver

2015-12-14 Thread Chanwoo Choi
Hi Sergei, On 2015년 12월 12일 08:22, Sergei Shtylyov wrote: > Maxim Integrated MAX3355E chip integrates a charge pump and comparators to ^^ ^^ > enable a system with an integrated USB OTG dual-role transceiver to function > as an USB OTG dual-role devi

[PATCH 8/8 v5] thermal: trip_point_temp_store() calls thermal_zone_device_update()

2015-12-14 Thread Kuninori Morimoto
From: Kuninori Morimoto trip_point_temp_store() updates trip temperature. It should call thermal_zone_device_update() immediately. Signed-off-by: Kuninori Morimoto --- v4 -> v5 - implemented on thermal_core.c drivers/thermal/thermal_core.c | 6 +- 1 file changed, 5 insertions(+), 1 dele

[PATCH 7/8 v5] ARM: shmobile: r8a7791: enable to use thermal-zone

2015-12-14 Thread Kuninori Morimoto
From: Kuninori Morimoto This patch enables to use thermal-zone on r8a7791. This thermal sensor can measure temperature from -4 to 125000, but over 117000 can be critical on this chip. Thus, default critical temperature is now set as 115000 (this driver is using 5000 steps) (Current critical

[PATCH 6/8 v5] ARM: shmobile: r8a7790: enable to use thermal-zone

2015-12-14 Thread Kuninori Morimoto
From: Kuninori Morimoto This patch enables to use thermal-zone on r8a7790. This thermal sensor can measure temperature from -4 to 125000, but over 117000 can be critical on this chip. Thus, default critical temperature is now set as 115000 (this driver is using 5000 steps) (Current critical

[PATCH 5/8 v5] thermal: rcar: enable to use thermal-zone on DT

2015-12-14 Thread Kuninori Morimoto
From: Kuninori Morimoto This patch enables to use thermal-zone on DT if it was call as "renesas,rcar-thermal-gen2". Previous style is still supported by "renesas,rcar-thermal". Signed-off-by: Kuninori Morimoto --- v4 -> v5 - "115" -> "115000" on rcar-thermal.txt .../devicetree/binding

[PATCH 4/8 v5] thermal: rcar: rcar_thermal_get_temp() return error if strange temp

2015-12-14 Thread Kuninori Morimoto
From: Kuninori Morimoto Signed-off-by: Kuninori Morimoto --- v4 -> v5 - rcar_thermal_update_temp() has no change - "retern" -> "return" on Subject drivers/thermal/rcar_thermal.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/thermal/rcar_thermal.c b

[PATCH 2/8 v5] thermal: rcar: check every rcar_thermal_update_temp() return value

2015-12-14 Thread Kuninori Morimoto
From: Kuninori Morimoto Every rcar_thermal_update_temp() return value will be checked. And also, rcar_thermal_get_temp() always call rcar_thermal_update_temp() by this patch. Signed-off-by: Kuninori Morimoto --- v4 -> v5 - rcar_thermal_get_temp() calls rcar_thermal_update_temp() without c

[PATCH 3/8 v5] thermal: rcar: check irq possibility in rcar_thermal_irq_xxx()

2015-12-14 Thread Kuninori Morimoto
From: Kuninori Morimoto Current rcar thermal driver sometimes checks irq possibility when it calls rcar_thermal_irq_enable/disable(), but sometimes not. This patch checks it inside rcar_thermal_irq_enable/disable(). Signed-off-by: Kuninori Morimoto --- v4 -> v5 - no change drivers/thermal/r

[PATCH 1/8 v5] thermal: rcar: move rcar_thermal_dt_ids to upside

2015-12-14 Thread Kuninori Morimoto
From: Kuninori Morimoto This patch is prepare for of-thermal support. Signed-off-by: Kuninori Morimoto --- v4 -> v5 - no change drivers/thermal/rcar_thermal.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/thermal/rcar_thermal.c b/drivers/thermal/r

[PATCH 0/8 v5] enable to use thermal-zone on r8a7790/1

2015-12-14 Thread Kuninori Morimoto
Hi These are v5 of thermal-zone support for r8a7790/r8a7791. Kuninori Morimoto (8): 1) thermal: rcar: move rcar_thermal_dt_ids to upside 2) thermal: rcar: check every rcar_thermal_update_temp() return value 3) thermal: rcar: check irq possibility in rcar_thermal_irq_xxx()

Re: [PATCH] extcon: max77843: fix handling return value of regmap_irq_get_virq

2015-12-14 Thread Chanwoo Choi
On 2015년 12월 14일 19:06, Andrzej Hajda wrote: > The function can return negative values, so its result should > be assigned to signed variable. > > The problem has been detected using proposed semantic patch > scripts/coccinelle/tests/assign_signed_to_unsigned.cocci [1]. > > [1]: http://permalink.

Re: [PATCH] extcon: max77693: fix handling return value of regmap_irq_get_virq

2015-12-14 Thread Chanwoo Choi
On 2015년 12월 14일 20:12, Andrzej Hajda wrote: > The function can return negative values, so its result should > be assigned to signed variable. > > Signed-off-by: Andrzej Hajda > Suggested-by: Krzysztof Kozlowski > --- > drivers/extcon/extcon-max77693.c | 4 ++-- > 1 file changed, 2 insertions(+

Re: [PATCH] extcon: max14577: fix handling return value of regmap_irq_get_virq

2015-12-14 Thread Chanwoo Choi
On 2015년 12월 14일 19:06, Andrzej Hajda wrote: > The function can return negative values, so its result should > be assigned to signed variable. > > The problem has been detected using proposed semantic patch > scripts/coccinelle/tests/assign_signed_to_unsigned.cocci [1]. > > [1]: http://permalink.

Re: [PATCH 2/2] mm/compaction: speed up pageblock_pfn_to_page() when zone is contiguous

2015-12-14 Thread Aaron Lu
On 12/14/2015 11:25 PM, Joonsoo Kim wrote: > 2015-12-14 19:29 GMT+09:00 Vlastimil Babka : >> On 12/14/2015 06:02 AM, Joonsoo Kim wrote: >>> Before vs After >>> Max: 1096 MB/s vs 1325 MB/s >>> Min: 635 MB/s 1015 MB/s >>> Avg: 899 MB/s 1194 MB/s >>> >>> Avg is improved by roughly 30% [2]. >> >> >> Un

Re: [PATCH] ftrace: fix race between ftrace and insmod

2015-12-14 Thread Zhang, Yanmin
On 2015/12/14 23:51, Steven Rostedt wrote: > On Mon, 14 Dec 2015 11:16:18 +0800 > "Qiu, PeiyangX" wrote: > >> We hit ftrace_bug report when booting Android on a 64bit ATOM SOC chip. >> Basically, there is a race between insmod and ftrace_run_update_code. >> >> After load_module=>ftrace_module_init

Re: [PATCHV2 1/3] x86, ras: Add new infrastructure for machine check fixup tables

2015-12-14 Thread Luck, Tony
On Sat, Dec 12, 2015 at 11:11:42AM +0100, Borislav Petkov wrote: > > +config MCE_KERNEL_RECOVERY > > + depends on X86_MCE && X86_64 > > + def_bool y > > Shouldn't that depend on NVDIMM or whatnot? Looks too generic now. Not sure what the "whatnot" would be though. Making it depend on X86_MCE

Re: [PATCH 3/3] extcon: arizona: Add DT binding examples

2015-12-14 Thread Chanwoo Choi
On 2015년 12월 14일 19:37, Charles Keepax wrote: > Add an example for all elements of the Arizona extcon device tree > binding. > > Signed-off-by: Charles Keepax > --- > .../devicetree/bindings/extcon/extcon-arizona.txt | 26 > ++ > 1 file changed, 26 insertions(+) > > diff -

Re: [PATCH v2 1/3] extcon: arizona: Add device bindings for the micd configurations

2015-12-14 Thread Chanwoo Choi
On 2015년 12월 14일 19:37, Charles Keepax wrote: > Add device bindings to support configuring the jack detection > configurations. Each configuration needs to specify the connection of > the mic det pins, which micbias should be used and the value of the > micd polarity GPIO required to activate that

Re: [PATCH v2 2/3] extcon: arizona: Update device tree binding for mic detect configurations

2015-12-14 Thread Chanwoo Choi
On 2015년 12월 14일 19:37, Charles Keepax wrote: > Update the device tree binding documentation to include documentation for > the wlf,micd-configs property that is used to specify the configurations > for headset polarity detection (CTIA / OTMP). > > Signed-off-by: Charles Keepax > Acked-by: Rob He

Re: [RFC 3/3] irq: Privatize irq_common_data::state_use_accessors

2015-12-14 Thread Boqun Feng
On Mon, Dec 14, 2015 at 04:59:45PM +0100, Thomas Gleixner wrote: > On Mon, 14 Dec 2015, Boqun Feng wrote: > > Probably something like this(untested, only run "make kernel/irq/")? > > > > Subject: [RFC v2 3/3] irq: Privatize irq_common_data::state_use_accessors > > > > According to Peter Zijlstra,

[lkp] [mtd] e0460264db: BUG: unable to handle kernel NULL pointer dereference at 000005c4

2015-12-14 Thread kernel test robot
FYI, we noticed the below changes on https://github.com/bbrezillon/linux-0day nand/ecclayout-squashed commit e0460264db239f81a05a0f116efc84b9c650e0df ("mtd: use mtd_eccpos() and mtd_oobfree() where appropriate") +-+++ |

Re: [PATCH 2/2] f2fs: do more integrity verification for superblock

2015-12-14 Thread Jaegeuk Kim
Hi Chao, I also got superblock failure. It seems that your patch doesn't handle correctly if segment0_blkaddr is not zero. Please see below. On Fri, Dec 11, 2015 at 04:09:23PM +0800, Chao Yu wrote: > Do more sanity check for superblock during ->mount. > > Signed-off-by: Chao Yu > --- > fs/f2fs

Re: [PATCH v2] Fix INT1 Exception with unregistered breakpoints

2015-12-14 Thread Jeff Merkey
On 12/14/15, Jeff Merkey wrote: > Please consider the attached patch. > > SUMMARY > > This patch corrects a hard lockup failure of the system kernel if the > operating system receives a breakpoint exception at a code execution > address which was not registered with the operating system. The patc

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