RE: [PATCH v9 01/12] perf/x86/intel/pt: Move Intel-PT MSRs bit definitions to a public header

2018-06-06 Thread Kang, Luwei
> -Original Message- > From: Kang, Luwei > Sent: Tuesday, May 22, 2018 12:52 PM > To: k...@vger.kernel.org > Cc: t...@linutronix.de; mi...@redhat.com; h...@zytor.com; x...@kernel.org; > chao.p.p...@linux.intel.com; > thomas.lenda...@amd.com; b...@suse.de; Liang, Kan ; > janakarajan.natara

linux-next: Tree for Jun 7

2018-06-06 Thread Stephen Rothwell
Hi all, Note: please do *not* add any v4.19 material to your linux-next included branches until after v4.18-rc1 has been released. Changes since 20180606: The tip tree gained a conflict against Linus' tree. The nvdimm tree gained a conflict against the tip tree. Non-merge commits (relati

[v2, 2/2] ASoC: AMD: Configure channel 1 or channel 0 for capture

2018-06-06 Thread Akshu Agrawal
ST/CZ SoC have 2 channels for capture in the I2SSP path. The DMA though these channels is done using the same dma descriptors. We configure the channel and enable it on the basis of channel selected by machine driver. Machine driver knows which codec sits on which channel and thus sends the informa

[PATCH 1/2] ASoC: AMD: Add NULL pointer check

2018-06-06 Thread Akshu Agrawal
Fix crash in those platforms whose machine driver does not expose platform_info. For those platforms we rely on default value and select I2SSP channel. Signed-off-by: Akshu Agrawal --- sound/soc/amd/acp-pcm-dma.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/amd

Re: [PATCH] remoteproc: qcom: Introduce Hexagon V5 based WCSS driver

2018-06-06 Thread Sricharan R
Hi Bjorn, On 6/7/2018 11:18 AM, Bjorn Andersson wrote: > On Wed 06 Jun 22:29 PDT 2018, Sricharan R wrote: > >> Hi Bjorn, >> >> On 6/7/2018 9:54 AM, Bjorn Andersson wrote: >>> On Wed 06 Jun 21:11 PDT 2018, Vinod wrote: >>> On 06-06-18, 09:17, Bjorn Andersson wrote: > On Tue 05 Jun 05:56 P

Re: [PATCH] percpu_counter: `percpu_counter_read_positive' should not return negative number

2018-06-06 Thread Mathieu Malaterre
On Wed, Jun 6, 2018 at 9:57 PM Tejun Heo wrote: > > On Wed, Jun 06, 2018 at 09:39:40PM +0200, Mathieu Malaterre wrote: > > Since function `percpu_counter_add' may result in a signed integer overflow > > the result stored in `fbc->count' could be negative. Make sure that > > function `percpu_counte

Re: kernel panic in reading /proc/kpageflags when enabling RAM-simulated PMEM

2018-06-06 Thread Naoya Horiguchi
On Wed, Jun 06, 2018 at 09:24:05AM +, Horiguchi Naoya(堀口 直也) wrote: > On Wed, Jun 06, 2018 at 09:06:30AM +, Horiguchi Naoya(堀口 直也) wrote: > > On Wed, Jun 06, 2018 at 10:53:19AM +0200, Oscar Salvador wrote: > > > On Wed, Jun 06, 2018 at 10:04:08AM +0200, Oscar Salvador wrote: > > > > On Wed,

Re: [PATCH 01/10] perf tools: Uniquify the event name if there's no other matched event

2018-06-06 Thread Jiri Olsa
On Wed, Jun 06, 2018 at 04:19:02PM -0700, Andi Kleen wrote: > On Thu, Jun 07, 2018 at 12:15:04AM +0200, Jiri Olsa wrote: > > Currently by default we try to match the user specified PMU > > name to all PMU units available and use them to aggregate > > all matched PMUs event counts into one 'pattern'

[PATCH NEXT 5/6] PCI/AER: Clear correctable status bits in device register

2018-06-06 Thread Oza Pawandeep
In case of correctable error Device Status Register sets Correctable Error Detected, which should be cleared after handling the error Signed-off-by: Oza Pawandeep diff --git a/drivers/pci/pcie/aer/aerdrv_core.c b/drivers/pci/pcie/aer/aerdrv_core.c index 95e9828..0e4e99a 100644 --- a/drivers/pci

[PATCH NEXT 2/6] PCI/AER: Clear uncorrectable fatal error status bits

2018-06-06 Thread Oza Pawandeep
During ERR_FATAL handling, AER calls pci_cleanup_aer_uncorrect_error_status which should handle pci_channel_io_frozen case in order to determine if it has to clear fatal bits or nonfatal bits. Signed-off-by: Oza Pawandeep diff --git a/drivers/pci/pcie/aer/aerdrv_core.c b/drivers/pci/pcie/aer/ae

[PATCH NEXT 6/6] PCI/PORTDRV: Remove ERR_FATAL handling from pcie_portdrv_slot_reset()

2018-06-06 Thread Oza Pawandeep
We are handling ERR_FATAL by resetting the Link in software,skipping the driver pci_error_handlers callbacks, removing the devices from the PCI subsystem, and re-enumerating, as a result of that, no more calling pcie_portdrv_slot_reset in ERR_FATAL case. Signed-off-by: Oza Pawandeep diff --git a

[PATCH NEXT 4/6] PCI/AER: Clear device status error bits during ERR_FATAL and ERR_NONFATAL

2018-06-06 Thread Oza Pawandeep
We are handling ERR_FATAL by resetting the Link in software,skipping the driver pci_error_handlers callbacks, removing the devices from the PCI subsystem, and re-enumerating, the device status has to be cleared, which fixes BUG existed before. Signed-off-by: Oza Pawandeep diff --git a/drivers/pc

[PATCH NEXT 3/6] PCI/ERR: Cleanup ERR_FATAL of error broadcast

2018-06-06 Thread Oza Pawandeep
ERR_FATAL is handled by resetting the Link in software, skipping the driver pci_error_handlers callbacks, removing the devices from the PCI subsystem, and re-enumerating, so now no more ERR_FATAL handling is required inside pci_broadcast_error_message() Signed-off-by: Oza Pawandeep diff --git a/

[PATCH NEXT 1/6] PCI/AER: Take mask into account while clearing error bits

2018-06-06 Thread Oza Pawandeep
PCIe ERR_NONFATAL and ERR_FATAL are uncorrectable errors, and clearing uncorrectable error bits should take error mask into account. Signed-off-by: Oza Pawandeep diff --git a/drivers/pci/pcie/aer/aerdrv.c b/drivers/pci/pcie/aer/aerdrv.c index 377e576..8cbc62b 100644 --- a/drivers/pci/pcie/aer/ae

Re: [RFC 0/1] mconf: Emacs-like isearch

2018-06-06 Thread Dirk Gouders
Masahiro Yamada writes: > 2018-06-07 8:54 GMT+09:00 Dirk Gouders : >> Randy Dunlap writes: >> >>> On 06/06/2018 03:32 PM, Dirk Gouders wrote: Randy Dunlap writes: > On 06/06/2018 02:56 PM, Dirk Gouders wrote: >> Hello, >> >> being an Emacs user, I frequently find mysel

Re: [PATCH] remoteproc: qcom: Introduce Hexagon V5 based WCSS driver

2018-06-06 Thread Bjorn Andersson
On Wed 06 Jun 22:29 PDT 2018, Sricharan R wrote: > Hi Bjorn, > > On 6/7/2018 9:54 AM, Bjorn Andersson wrote: > > On Wed 06 Jun 21:11 PDT 2018, Vinod wrote: > > > >> On 06-06-18, 09:17, Bjorn Andersson wrote: > >>> On Tue 05 Jun 05:56 PDT 2018, Sricharan R wrote: > >>> > Hi Vinod, > > >

Re: [PATCH] printk/nmi: Prevent deadlock when serializing NMI backtraces

2018-06-06 Thread Sergey Senozhatsky
On (06/06/18 13:15), Petr Mladek wrote: > On Wed 2018-06-06 14:10:29, Sergey Senozhatsky wrote: > > On (06/05/18 14:47), Petr Mladek wrote: > > [..] > > > Grr, the ABBA deadlock is still there. NMIs are not sent to the other > > > CPUs atomically. Even if we detect that logbuf_lock is available > >

Re: [PATCH 42/46] perf script powerpc: Python script for hypervisor call statistics

2018-06-06 Thread Ravi Bangoria
Hi Paul, On 06/06/2018 08:23 PM, Paul Clarke wrote: > On 06/05/2018 12:50 PM, Arnaldo Carvalho de Melo wrote: >> From: Ravi Bangoria >> >> Add python script to show hypervisor call statistics. Ex, >> >> # perf record -a -e "{powerpc:hcall_entry,powerpc:hcall_exit}" >> # perf script -s scripts

Re: [PATCH] remoteproc: qcom: Introduce Hexagon V5 based WCSS driver

2018-06-06 Thread Sricharan R
Hi Bjorn, On 6/7/2018 9:54 AM, Bjorn Andersson wrote: > On Wed 06 Jun 21:11 PDT 2018, Vinod wrote: > >> On 06-06-18, 09:17, Bjorn Andersson wrote: >>> On Tue 05 Jun 05:56 PDT 2018, Sricharan R wrote: >>> Hi Vinod, On 6/5/2018 11:49 AM, Vinod wrote: > On 05-06-18, 11:12, Srichar

Re: [GIT PULL 00/46] perf/core fixes and improvements

2018-06-06 Thread Ingo Molnar
* Arnaldo Carvalho de Melo wrote: > From: Arnaldo Carvalho de Melo > > Hi Ingo, > > Please consider pulling, > > - Arnaldo > > Test results at the end of this message, as usual. > > The following changes since commit 7869e5889477e4e32e4024d665431b35e8b7b693: > > Merge remote-trac

Re: possible deadlock in console_unlock

2018-06-06 Thread Sergey Senozhatsky
Cc-ing more people Link: lkml.kernel.org/r/87008b056df8f...@google.com On (06/06/18 06:17), syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:af6c5d5e01ad Merge branch 'for-4.18' of git://git.kernel.o.. > git tree: upstream > console output: ht

Re: [PATCH] pwm: stm32: enforce dependency on CONFIG_MFD_STM32_TIMERS

2018-06-06 Thread Lee Jones
On Wed, 06 Jun 2018, Thierry Reding wrote: > On Fri, May 25, 2018 at 06:04:54PM +0200, Arnd Bergmann wrote: > > When compile-testing the pwm driver without also enabling the > > stm32_timers MFD, we run into a link error: > > > > drivers/pwm/pwm-stm32.o: In function `stm32_pwm_raw_capture.isra.6'

Re: [PATCH] pwm: stm32: fix build warning with CONFIG_DMA_ENGINE disabled

2018-06-06 Thread Lee Jones
On Wed, 06 Jun 2018, Thierry Reding wrote: > On Fri, May 25, 2018 at 11:08:30PM +0200, Arnd Bergmann wrote: > > Without dmaengine support, we get a harmless warning about an > > unused function: > > > > drivers/pwm/pwm-stm32.c:166:12: error: 'stm32_pwm_capture' defined but not > > used [-Werror=

Re: [PATCH] uapi: Make generic uapi headers compile standalone.

2018-06-06 Thread Masahiro Yamada
Hi. 2018-06-07 8:16 GMT+09:00 Jayant Chowdhary : > In order for static analysis tools to analyze each of the uapi headers, > we need to enable them to compile stand-alone. Some uapi headers were > missing dependencies which would not make them compile stand-alone in > user-land. This patch adds t

Re: [PATCH][RFC] sched: cpufreq: Fix long idle judgement logic in load calculation

2018-06-06 Thread Viresh Kumar
On 07-06-18, 11:17, Chen Yu wrote: > diff --git a/drivers/cpufreq/cpufreq_governor.c > b/drivers/cpufreq/cpufreq_governor.c > index 871bf9c..9792c80 100644 > --- a/drivers/cpufreq/cpufreq_governor.c > +++ b/drivers/cpufreq/cpufreq_governor.c > @@ -165,7 +165,7 @@ unsigned int dbs_update(struct cpu

Re: possible deadlock in console_unlock

2018-06-06 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:0ad39cb3d70f Merge tag 'kconfig-v4.18' of git://git.kernel.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1158868f80 kernel config: https://syzkaller.appspot.com/x/.config?x=b9a1f3

Re: [PATCH] remoteproc: qcom: Introduce Hexagon V5 based WCSS driver

2018-06-06 Thread Bjorn Andersson
On Wed 06 Jun 21:11 PDT 2018, Vinod wrote: > On 06-06-18, 09:17, Bjorn Andersson wrote: > > On Tue 05 Jun 05:56 PDT 2018, Sricharan R wrote: > > > > > Hi Vinod, > > > > > > On 6/5/2018 11:49 AM, Vinod wrote: > > > > On 05-06-18, 11:12, Sricharan R wrote: > > > > > > > >> +config QCOM_Q6V5_WCSS

linux-next: manual merge of the nvdimm tree with the tip tree

2018-06-06 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the nvdimm tree got a conflict in: kernel/Makefile between commit: d7822b1e24f2 ("rseq: Introduce restartable sequences system call") from the tip tree and commit: 5981690ddb8f ("memremap: split devm_memremap_pages() and memremap() infrastructure")

Re: [PATCH v5 2/4] kernel hacking: new config NO_AUTO_INLINE to disable compiler auto-inline optimizations

2018-06-06 Thread Viresh Kumar
+Greg/Alex, @Fegguang/build-bot: I do see mention of Greg and /me in your initial email's body saying TO: Viresh, CC: Greg, but I don't see any of us getting cc'd in your email. Bug ? On 06-06-18, 14:26, Steven Rostedt wrote: > On Wed, 6 Jun 2018 16:26:00 +0200 > Johan Hovold wrote: > > > Looks

Re: [PATCH] remoteproc: qcom: Introduce Hexagon V5 based WCSS driver

2018-06-06 Thread Vinod
On 06-06-18, 09:17, Bjorn Andersson wrote: > On Tue 05 Jun 05:56 PDT 2018, Sricharan R wrote: > > > Hi Vinod, > > > > On 6/5/2018 11:49 AM, Vinod wrote: > > > On 05-06-18, 11:12, Sricharan R wrote: > > > > > >> +config QCOM_Q6V5_WCSS > > >> +tristate "Qualcomm Hexagon based WCSS Peripher

[PATCH][RFC] sched: cpufreq: Fix long idle judgement logic in load calculation

2018-06-06 Thread Chen Yu
According to current code implementation, detecting the long idle period is done by checking if the interval between two adjacent utilization update handers is long enough. Although this mechanism can detect if the idle period is long enough (no utilization hooks invoked during idle period), it mig

Re: Is this a kernel BUG? ///Re: [Question] Can we use SIGRTMIN when vdso disabled on X86?

2018-06-06 Thread Leizhen (ThunderTown)
On 2018/6/7 10:39, Andy Lutomirski wrote: > > >> On Jun 6, 2018, at 7:05 PM, Leizhen (ThunderTown) >> wrote: >> >> >> >>> On 2018/6/7 1:01, Andy Lutomirski wrote: >>> On Wed, Jun 6, 2018 at 2:18 AM Leizhen (ThunderTown) >>> wrote: I found that glibc has already dealt with this cas

[lkp-robot] [x86] 1a39381d70: WARNING:at_kernel/locking/mutex.c:#__mutex_unlock_slowpath

2018-06-06 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-7): commit: 1a39381d7f0097ec6e2ceb75812d6c00b2f1 ("x86: alternatives: macrofy locks for better inlining") url: https://github.com/0day-ci/linux/commits/Nadav-Amit/x86-macrofying-inline-asm-for-better-compilation/20180605-124313 in testc

[PATCH v1 0/4] clk: rockchip: support clock controller for px30 SoC

2018-06-06 Thread Elaine Zhang
Elaine Zhang (4): dt-bindings: add bindings for px30 clock controller clk: rockchip: add dt-binding header for px30 clk: rockchip: add support for half divider clk: rockchip: add clock controller for px30 .../bindings/clock/rockchip,px30-cru.txt | 67 ++ drivers/clk/rockchip/M

[PATCH v1 2/4] clk: rockchip: add dt-binding header for px30

2018-06-06 Thread Elaine Zhang
Add the dt-bindings header for the px30, that gets shared between the clock controller and the clock references in the dts. Add softreset ID for px30. Signed-off-by: Elaine Zhang --- include/dt-bindings/clock/px30-cru.h | 402 +++ 1 file changed, 402 insertions(+)

[PATCH v1 3/4] clk: rockchip: add support for half divider

2018-06-06 Thread Elaine Zhang
The new Rockchip socs have optional half divider, so we use "branch_half_divider" + "COMPOSITE_NOMUX_HALFDIV \ DIV_HALF" to hook that special divider clock-type into our clock-tree. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/Makefile | 1 + drivers/clk/rockchip/clk-half-div

[PATCH v1 4/4] clk: rockchip: add clock controller for px30

2018-06-06 Thread Elaine Zhang
Add the clock tree definition for the new px30 SoC. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/Makefile |1 + drivers/clk/rockchip/clk-px30.c | 1080 +++ drivers/clk/rockchip/clk.h | 41 +- 3 files changed, 1121 insertions(+), 1 deletion

[PATCH v1 1/4] dt-bindings: add bindings for px30 clock controller

2018-06-06 Thread Elaine Zhang
Add devicetree bindings for Rockchip cru which found on Rockchip SoCs. Signed-off-by: Elaine Zhang --- .../bindings/clock/rockchip,px30-cru.txt | 67 ++ 1 file changed, 67 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/rockchip,px30-cru.t

[GIT PULL] DeviceTree updates for 4.18

2018-06-06 Thread Rob Herring
Hi Linus, Please pull DT updates for 4.18. Details below. Rob The following changes since commit 60cc43fc888428bb2f18f08997432d426a243338: Linux 4.17-rc1 (2018-04-15 18:24:20 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git tags/d

Re: Is this a kernel BUG? ///Re: [Question] Can we use SIGRTMIN when vdso disabled on X86?

2018-06-06 Thread Andy Lutomirski
> On Jun 6, 2018, at 7:05 PM, Leizhen (ThunderTown) > wrote: > > > >> On 2018/6/7 1:01, Andy Lutomirski wrote: >> On Wed, Jun 6, 2018 at 2:18 AM Leizhen (ThunderTown) >> wrote: >>> >>> I found that glibc has already dealt with this case. So this issue must >>> have been met before, shoul

Re: [PATCH v5 01/28] docs: fpga: add a document for FPGA Device Feature List (DFL) Framework Overview

2018-06-06 Thread Wu Hao
On Wed, Jun 06, 2018 at 11:16:03AM -0500, Alan Tull wrote: > On Tue, May 1, 2018 at 9:50 PM, Wu Hao wrote: > > Hi Hao, > > I've acked the remaining patches with some changes requested. In your > v6, please add a patch to add yourself to the MAINTAINERS file or > whoever is planning on maintaini

Re: [PATCH 26/32] afs: Use fs_context to pass parameters over automount [ver #8]

2018-06-06 Thread Goldwyn Rodrigues
On 05/24/2018 07:08 PM, David Howells wrote: > Alter the AFS automounting code to create and modify an fs_context struct > when parameterising a new mount triggered by an AFS mountpoint rather than > constructing device name and option strings. > > Also remove the cell=, vol= and rwpath options

Re: Is this a kernel BUG? ///Re: [Question] Can we use SIGRTMIN when vdso disabled on X86?

2018-06-06 Thread Leizhen (ThunderTown)
On 2018/6/7 1:01, Andy Lutomirski wrote: > On Wed, Jun 6, 2018 at 2:18 AM Leizhen (ThunderTown) > wrote: >> >> I found that glibc has already dealt with this case. So this issue must have >> been met before, should it be maintained by libc/user? >> >> if (GLRO(dl_sysinfo_dso) == NULL)

Re: [RFC 0/1] mconf: Emacs-like isearch

2018-06-06 Thread Masahiro Yamada
2018-06-07 8:54 GMT+09:00 Dirk Gouders : > Randy Dunlap writes: > >> On 06/06/2018 03:32 PM, Dirk Gouders wrote: >>> Randy Dunlap writes: >>> On 06/06/2018 02:56 PM, Dirk Gouders wrote: > Hello, > > being an Emacs user, I frequently find myself pressing CTRL-s in mconf > to s

linux-next: manual merge of the tip tree with Linus' tree

2018-06-06 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in: tools/testing/selftests/Makefile between commit: a12ab9e125f1 ("selftests: move RTC tests to rtc subfolder") from Linus' tree and commit: ccba8b64452b ("rseq/selftests: Provide Makefile, scripts, gitignore") from the t

Re: Is this a kernel BUG? ///Re: [Question] Can we use SIGRTMIN when vdso disabled on X86?

2018-06-06 Thread Leizhen (ThunderTown)
On 2018/6/7 1:48, h...@zytor.com wrote: > On June 6, 2018 2:17:42 AM PDT, "Leizhen (ThunderTown)" > wrote: >> I found that glibc has already dealt with this case. So this issue must >> have been met before, should it be maintained by libc/user? >> >> if (GLRO(dl_sysinfo_dso) == NULL) >>

Re: [PATCH v3 2/5] gpio: syscon: rockchip: add GPIO_MUTE support for rk3328

2018-06-06 Thread Levin
Rob Herring writes: > On Sat, Jun 02, 2018 at 04:40:09PM +0800, Levin Du wrote: >> >> Rob Herring writes: >> >> > On Thu, May 31, 2018 at 9:05 PM, Levin wrote: >> > > Hi Rob, >> > > >> > > >> > > On 2018-05-31 10:45 PM, Rob Herring wrote: >> > > > >> > > > On Wed, May 30, 2018 at 10:27 PM,

Re: [RFC 2/2] x86, tsc: Enable clock for ealry printk timestamp

2018-06-06 Thread Feng Tang
Hi Pavel, Thanks for the revew. On Wed, Jun 06, 2018 at 11:25:22AM -0400, Pavel Tatashin wrote: > Hi Feng, > > Using a global variable for this is not going to work, because you are adding > a conditional branch and a load to a very hot path for the live of the > system, not only for the durat

Hi

2018-06-06 Thread Robert Lee
Am a United State Army here in Afghanistan, am seeking your help to evacuate the sum of $ 7,000,000 to you as long as I am assured it will be safe That in your care Until I complete my service here in Afghanistan. This is not stolen money and there are no dangers involved. I count on your und

Re: [PATCH v4 1/7] interconnect: Add generic on-chip interconnect API

2018-06-06 Thread Evan Green
On Wed, Jun 6, 2018 at 11:09 AM Georgi Djakov wrote: > > Hi Evan, > > On 06/06/2018 05:59 PM, Georgi Djakov wrote: > >>> + > >>> +/** > >>> + * icc_node_create() - create a node > >>> + * @id: node id > >>> + * > >>> + * Return: icc_node pointer on success, or ERR_PTR() on error > >>> + */ > >>> +

Re: [PATCH v3 1/2] power: supply: sbs-battery: don't assume MANUFACTURER_DATA formats

2018-06-06 Thread Brian Norris
Hi Phil, On Wed, Jun 06, 2018 at 10:03:59AM +0800, Phil Reid wrote: > On 2/06/2018 09:28, Brian Norris wrote: > > drivers/power/supply/sbs-battery.c | 54 +- > > 1 file changed, 46 insertions(+), 8 deletions(-) > > > > diff --git a/drivers/power/supply/sbs-battery.c

Re: [PATCH v2 2/3] perf script python: Add more PMU fields

2018-06-06 Thread Jin, Yao
On 6/7/2018 2:36 AM, Arnaldo Carvalho de Melo wrote: Em Fri, Jun 01, 2018 at 05:01:02PM +0800, Jin Yao escreveu: +static int get_symoff(struct symbol *sym, struct addr_location *al, + bool print_off, char *bf, int size) +{ + unsigned long offset; + + if (!sy

[PATCH] staging: rtl8723bs: drop test

2018-06-06 Thread Julia Lawall
The test selects between two identical values, so it doesn't look useful. It turns out that the tested expression can only be true anyway, so drop the test, the corresponding parameter, and the corresponding argument at the only call site. The semantic match that finds this problem is as follows:

Re: [RFC 0/1] mconf: Emacs-like isearch

2018-06-06 Thread Dirk Gouders
Randy Dunlap writes: > On 06/06/2018 03:32 PM, Dirk Gouders wrote: >> Randy Dunlap writes: >> >>> On 06/06/2018 02:56 PM, Dirk Gouders wrote: Hello, being an Emacs user, I frequently find myself pressing CTRL-s in mconf to search for some menu entry, especially in large menu

Re: [PATCH] slab: Clean up the code comment in slab kmem_cache struct

2018-06-06 Thread Christopher Lameter
On Wed, 6 Jun 2018, Baoquan He wrote: > I am back porting Thomas's sl[a|u]b freelist randomization feature to > our distros, need go through slab code for better understanding. From > git log history, they were 'obj_offset' and 'obj_size'. Later on > 'obj_size' was renamed to 'object_size' in comm

Re: [PATCH v4 0/6] Enhance support for the SP805 WDT

2018-06-06 Thread Ray Jui
Hi Florian, On 6/6/2018 12:29 PM, Florian Fainelli wrote: On 05/28/2018 11:01 AM, Ray Jui wrote: This patch series enhances the support for the SP805 watchdog timer. First of all, 'timeout-sec' devicetree property is added. In addition, support is also added to allow the driver to reset the wat

Re: [PATCH v4 1/6] Documentation: DT: Consolidate SP805 binding docs

2018-06-06 Thread Ray Jui
On 6/6/2018 9:33 AM, Rob Herring wrote: On Wed, Jun 6, 2018 at 11:19 AM, Guenter Roeck wrote: On 06/05/2018 12:41 PM, Rob Herring wrote: On Mon, May 28, 2018 at 11:01:32AM -0700, Ray Jui wrote: Consolidate two SP805 binding documents "arm,sp805.txt" and "sp805-wdt.txt" into "arm,sp805.tx

Re: [RFC 0/1] mconf: Emacs-like isearch

2018-06-06 Thread Randy Dunlap
On 06/06/2018 03:32 PM, Dirk Gouders wrote: > Randy Dunlap writes: > >> On 06/06/2018 02:56 PM, Dirk Gouders wrote: >>> Hello, >>> >>> being an Emacs user, I frequently find myself pressing CTRL-s in mconf >>> to search for some menu entry, especially in large menus. >>> >>> I decided to implemen

Re: [PATCH v6 0/4] enable early printing of hashed pointers

2018-06-06 Thread Tobin C. Harding
On Mon, May 28, 2018 at 09:59:15AM -0400, Theodore Y. Ts'o wrote: > On Mon, May 28, 2018 at 11:46:38AM +1000, Tobin C. Harding wrote: > > > > During the versions of this set I have been totally confused about which > > patches go through which tree. This version again puts all 4 patches > > toget

Re: [PATCH v6 0/4] enable early printing of hashed pointers

2018-06-06 Thread Tobin C. Harding
On Wed, Jun 06, 2018 at 03:02:20PM +0200, Thomas Gleixner wrote: > On Mon, 28 May 2018, Tobin C. Harding wrote: > > > Currently printing pointers early in the boot sequence can result in a > > dummy string '(ptrval)' being printed. While resolving this > > issue it was noticed that we can

Re: [PATCH v6 0/4] enable early printing of hashed pointers

2018-06-06 Thread Tobin C. Harding
On Wed, Jun 06, 2018 at 03:08:25PM +0200, Anna-Maria Gleixner wrote: > On Tue, 5 Jun 2018, Anna-Maria Gleixner wrote: > > > On Thu, 31 May 2018, Steven Rostedt wrote: > > > > > On Mon, 28 May 2018 11:46:38 +1000 > > > "Tobin C. Harding" wrote: > > > > > > > Steve, > > > > > > Hi Tobin, > > >

Re: [PATCH] ACPI LID: increment wakeup count only when notified.

2018-06-06 Thread Rafael J. Wysocki
On Thu, Jun 7, 2018 at 1:11 AM, Benson Leung wrote: > Hi Rafael, > > On Wed, Jun 06, 2018 at 09:00:43AM +0200, Rafael J. Wysocki wrote: >> > @@ -417,6 +414,7 @@ static void acpi_button_notify(struct acpi_device >> > *device, u32 event) >> > /* fall through */ >> > case ACP

Re: [PATCH 01/10] perf tools: Uniquify the event name if there's no other matched event

2018-06-06 Thread Andi Kleen
On Thu, Jun 07, 2018 at 12:15:04AM +0200, Jiri Olsa wrote: > Currently by default we try to match the user specified PMU > name to all PMU units available and use them to aggregate > all matched PMUs event counts into one 'pattern' event. > > While this is useful for uncore events, it screws up na

Re: [RFC 00/10] perf: Add cputime events/metrics

2018-06-06 Thread Andi Kleen
> I had some issues with IDLE counter being miscounted due to stopping > of the idle tick. I tried to solve it in this patch (it's part of the > patchset): > perf/cputime: Don't stop idle tick if there's live cputime event > > but I'm pretty sure it's wrong and there's better solution. At least

[PATCH] uapi: Make generic uapi headers compile standalone.

2018-06-06 Thread Jayant Chowdhary
In order for static analysis tools to analyze each of the uapi headers, we need to enable them to compile stand-alone. Some uapi headers were missing dependencies which would not make them compile stand-alone in user-land. This patch adds those dependencies. Test: make defconfig; make -j64 Test:

[PATCH] checkpatch: Add --fix for CONCATENATED_STRING and STRING_FRAGMENTS

2018-06-06 Thread Joe Perches
Add the ability to --fix these string issues. e.g.: printk(KERN_INFO"bar" "baz"QUX); converts to printk(KERN_INFO "barbaz" QUX); Signed-off-by: Joe Perches --- scripts/checkpatch.pl | 23 ++- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/scri

Re: [PATCH] ACPI LID: increment wakeup count only when notified.

2018-06-06 Thread Benson Leung
Hi Rafael, On Wed, Jun 06, 2018 at 09:00:43AM +0200, Rafael J. Wysocki wrote: > > @@ -417,6 +414,7 @@ static void acpi_button_notify(struct acpi_device > > *device, u32 event) > > /* fall through */ > > case ACPI_BUTTON_NOTIFY_STATUS: > > input = button->in

Re: [RFC 1/1] Emacs-like isearch for mconf.

2018-06-06 Thread Dirk Gouders
Segher Boessenkool writes: > On Wed, Jun 06, 2018 at 11:58:55PM +0200, Dirk Gouders wrote: >> @@ -332,6 +332,7 @@ int init_dialog(const char *backtitle) >> >> keypad(stdscr, TRUE); >> cbreak(); >> +raw(); /* Enable CTRL-sequences*/ > > Is that a good idea? You pr

Re: [PATCH v2 8/8] x86/vdso: Move out the CPU number store

2018-06-06 Thread Bae, Chang Seok
> On Wed, Jun 6, 2018 at 10:25 AM Andy Lutomirski wrote: >> On Wed, Jun 6, 2018 at 9:23 AM Chang S. Bae wrote: >> +static inline void setup_cpu_number_segment(int cpu) >> +{ >> +#ifdef CONFIG_NUMA >> + unsigned long node = early_cpu_to_node(cpu); >> +#else >> + unsigned long node = 0;

Re: [PATCH v6 1/2] regulator: dt-bindings: add QCOM RPMh regulator bindings

2018-06-06 Thread Doug Anderson
Hi, On Mon, Jun 4, 2018 at 12:15 PM, David Collins wrote: > Introduce bindings for RPMh regulator devices found on some > Qualcomm Technlogies, Inc. SoCs. These devices allow a given > processor within the SoC to make PMIC regulator requests which > are aggregated within the RPMh hardware block

Re: [PATCH v6 2/2] regulator: add QCOM RPMh regulator driver

2018-06-06 Thread Doug Anderson
Hi, On Mon, Jun 4, 2018 at 12:15 PM, David Collins wrote: > Add the QCOM RPMh regulator driver to manage PMIC regulators > which are controlled via RPMh on some Qualcomm Technologies, Inc. > SoCs. RPMh is a hardware block which contains several > accelerators which are used to manage various har

Re: [PATCH v2 7/8] x86/segments/32: Introduce CPU_NUMBER segment

2018-06-06 Thread hpa
On June 6, 2018 12:07:15 PM PDT, Brian Gerst wrote: >On Wed, Jun 6, 2018 at 1:16 PM, Andy Lutomirski >wrote: >> On Wed, Jun 6, 2018 at 9:23 AM Chang S. Bae > wrote: >>> >>> The new entry will be equivalent to that of x86-64 which >>> stores CPU number. The entry is placed in segment 23 in GDT >>>

Re: [RFC 1/1] Emacs-like isearch for mconf.

2018-06-06 Thread Segher Boessenkool
On Wed, Jun 06, 2018 at 11:58:55PM +0200, Dirk Gouders wrote: > @@ -332,6 +332,7 @@ int init_dialog(const char *backtitle) > > keypad(stdscr, TRUE); > cbreak(); > + raw(); /* Enable CTRL-sequences*/ Is that a good idea? You probably should mention it in the patc

RE: [PATCH] HV: Fix definition of struct hv_vp_assist_page.

2018-06-06 Thread KY Srinivasan
+Allen > -Original Message- > From: Thomas Gleixner > Sent: Wednesday, June 6, 2018 3:18 AM > To: Tianyu Lan > Cc: KY Srinivasan ; Haiyang Zhang > ; Stephen Hemminger > ; mi...@redhat.com; h...@zytor.com; > x...@kernel.org; vkuzn...@redhat.com; Alexander Grest > ; de...@linuxdriverprojec

Re: [RFC 0/1] mconf: Emacs-like isearch

2018-06-06 Thread Dirk Gouders
Randy Dunlap writes: > On 06/06/2018 02:56 PM, Dirk Gouders wrote: >> Hello, >> >> being an Emacs user, I frequently find myself pressing CTRL-s in mconf >> to search for some menu entry, especially in large menus. >> >> I decided to implement a basic isearch in mconf and would like to hear >>

Re: [PATCH 4.4 19/92] sctp: delay the authentication for the duplicated cookie-echo chunk

2018-06-06 Thread Ben Hutchings
On Thu, 2018-05-24 at 11:37 +0200, Greg Kroah-Hartman wrote: > 4.4-stable review patch.  If anyone has any objections, please let me know. > > -- > > From: Xin Long > > [ Upstream commit 59d8d4434f429b4fa8a346fd889058bda427a837 ] > > Now sctp only delays the authentication for

Re: [RFC 0/1] mconf: Emacs-like isearch

2018-06-06 Thread Randy Dunlap
On 06/06/2018 02:56 PM, Dirk Gouders wrote: > Hello, > > being an Emacs user, I frequently find myself pressing CTRL-s in mconf > to search for some menu entry, especially in large menus. > > I decided to implement a basic isearch in mconf and would like to hear > if others find this functionalit

[PATCH 03/10] perf stat: Add --interval-clear option

2018-06-06 Thread Jiri Olsa
Adding --interval-clear option to clear the screen before next interval. Link: http://lkml.kernel.org/n/tip-8zobiwghr6t9f9a4o886c...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/Documentation/perf-stat.txt | 3 +++ tools/perf/builtin-stat.c | 11 +-- 2 files chang

[PATCH 09/10] perf/cputime: Don't stop idle tick if there's live cputime event

2018-06-06 Thread Jiri Olsa
Disable stopping of the idle tick when having live cputime event. When the tick is disabled, the idle counts are out of date until next tick/update and perf cputime PMU provides misleading counts. Signed-off-by: Jiri Olsa --- include/linux/perf_event.h | 1 + kernel/events/cputime.c| 13 +++

[PATCH 05/10] perf stat: Fix metric column display

2018-06-06 Thread Jiri Olsa
Make the metric only display aligned. Before: # perf stat --topdown -I 1000 # time core cpus retiring bad speculation frontend bound backend bound 1.000394323 S0-C0 2 37.4% 12.0% 31.4% 19.

[PATCH 08/10] perf/cputime: Add cputime pmu

2018-06-06 Thread Jiri Olsa
The CPUTIME_* counters account the time for CPU runtimes. Adding 'cputime' PMU, that provides perf interface to those counters. The 'cputime' interface is standard software PMU, that provides following events, meassuring their CPUTIME counterparts: PERF_CPUTIME_USER - CPUTIME_USER PERF_

[PATCH 06/10] perf stat: Allow to specify specific metric column len

2018-06-06 Thread Jiri Olsa
Following change will introduce new metrics, that don't need such wide hard coded spacing. Switching METRIC_ONLY_LEN macro usage with metric_only_len variable. Link: http://lkml.kernel.org/n/tip-bh0ke4fh2ygpj3yowna7o...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 9 +

[PATCH 04/10] perf stat: Use only color_fprintf call in print_metric_only

2018-06-06 Thread Jiri Olsa
We can call color_fprintf also for non color case, it's handled properly. This change simplifies following patch. Link: http://lkml.kernel.org/n/tip-496k3c59ckl2z7yrhnv6l...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 5 + 1 file changed, 1 insertion(+), 4 deletio

[PATCH 07/10] perf stat: Add event parsing error handling to add_default_attributes

2018-06-06 Thread Jiri Olsa
Adding missing error handling for parse_events calls in add_default_attributes functions. The error handler displays error details, like for transactions (-T): Before: $ perf stat -T Cannot set up transaction events After: $ perf stat -T Cannot set up transaction events event syntax err

[PATCH 10/10] perf stat: Add cputime metric support

2018-06-06 Thread Jiri Olsa
Adding --top/--top-full options to provide metrics based on the cputime PMU events. Simply all the metrics are simple ratios of events to STAT_NSECS time to get their % value. The --top option provides basic subset of cputime metrics: # perf stat --top -I 1000 # time Idle

[PATCH 02/10] perf tools: Fix error index for pmu event parser

2018-06-06 Thread Jiri Olsa
For events we provide specific error message we need to set error column index, PMU parser is missing that, adding it. Before: $ perf stat -e cycles,krava/cycles/ kill event syntax error: 'cycles,krava/cycles/' \___ Cannot find PMU `krava'. Missing kernel support? After

[RFC 00/10] perf: Add cputime events/metrics

2018-06-06 Thread Jiri Olsa
hi, so.. I failed to make work reliably the exclude_idle bit for cpu-clock event using the idle's process sum_exec_runtime as Peter outlined in his patch [1]. The time jumped up and down and I couldn't make it stable. But I noticed we actually have IDLE stats (and many more) available for each CPU

[PATCH 01/10] perf tools: Uniquify the event name if there's no other matched event

2018-06-06 Thread Jiri Olsa
Currently by default we try to match the user specified PMU name to all PMU units available and use them to aggregate all matched PMUs event counts into one 'pattern' event. While this is useful for uncore events, it screws up names for other events, where this is not desirable, like: Before: #

[RFC 1/1] Emacs-like isearch for mconf.

2018-06-06 Thread Dirk Gouders
--- scripts/kconfig/lxdialog/dialog.h | 5 ++ scripts/kconfig/lxdialog/menubox.c | 140 - scripts/kconfig/lxdialog/util.c| 1 + 3 files changed, 145 insertions(+), 1 deletion(-) diff --git a/scripts/kconfig/lxdialog/dialog.h b/scripts/kconfig/lxdialog

[RFC 0/1] mconf: Emacs-like isearch

2018-06-06 Thread Dirk Gouders
Hello, being an Emacs user, I frequently find myself pressing CTRL-s in mconf to search for some menu entry, especially in large menus. I decided to implement a basic isearch in mconf and would like to hear if others find this functionality useful, as well. The new functionality is started with

Re: [PATCH v5 00/10] track CPU utilization

2018-06-06 Thread luca abeni
Hi all, sorry; I missed the beginning of this thread... Anyway, below I add some comments: On Wed, 6 Jun 2018 15:05:58 +0200 Claudio Scordino wrote: [...] > >> Ok, I see ... Have you guys already tried something like my patch > >> above (keeping the freq >= this_bw) in real world use cases ? Is

[GIT PULL] Please pull RDMA subsystem changes

2018-06-06 Thread Jason Gunthorpe
Hi Linus, Here are the RDMA patches for 4.18. No merge conflicts this time, and as of this writing netdev's pull request has not been merged so the merge diffstat shows a number of ethernet related files from the various shared pull requests in the two trees. There are a few more merge commits i

Re: [PATCH v6 2/5] efi: Add embedded peripheral firmware support

2018-06-06 Thread Luis R. Rodriguez
On Wed, Jun 06, 2018 at 08:39:15PM +0200, Hans de Goede wrote: > On 05-06-18 23:07, Luis R. Rodriguez wrote: > > > +To make request_firmware() fallback to trying EFI embedded firmwares > > > after this, > > > +the driver must set a boolean "efi-embedded-firmware" device-property on > > > the > >

Re: [PATCH] uart: fix race between uart_put_char() and uart_shutdown()

2018-06-06 Thread Tycho Andersen
On Mon, Jun 04, 2018 at 10:59:36PM -0500, Serge E. Hallyn wrote: > Quoting Tycho Andersen (ty...@tycho.ws): > > Unfortunately, I don't have any insightful thoughts about how to test this. > > Ideas are appreciated :) > > I wonder whether there is something we can do with qemu -serial pipe: ? Good

[PATCH] Documentation: update firmware loader fallback reference

2018-06-06 Thread Luis R. Rodriguez
The firmware loader has a fallback mechanism, and it now has some proper kdoc, but we forgot to update the Documentation to use the new kdoc. Fix that. Signed-off-by: Luis R. Rodriguez --- Documentation/driver-api/firmware/fallback-mechanisms.rst | 7 ++- 1 file changed, 6 insertions(+), 1 d

[char-misc 0/2] mei; updates for 4.18-rc2

2018-06-06 Thread Tomas Winkler
A bug for long lasting regression and trivial cleanup. Hope this can make its way to 4.18. Alexander Usyskin (2): mei: remove unused MEI_IAMTHIF_STALL_TIMER define mei: discard messages from not connected client during power down. drivers/misc/mei/hw.h| 2 -- drivers/misc/mei/interru

[char-misc 1/2] mei: remove unused MEI_IAMTHIF_STALL_TIMER define

2018-06-06 Thread Tomas Winkler
From: Alexander Usyskin MEI_IAMTHIF_STALL_TIMER is unused now and can be safely removed. Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler --- drivers/misc/mei/hw.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/misc/mei/hw.h b/drivers/misc/mei/hw.h index 5c8286b40b6

[char-misc 2/2] mei: discard messages from not connected client during power down.

2018-06-06 Thread Tomas Winkler
From: Alexander Usyskin This fixes regression introduced by commit 8d52af6795c0 ("mei: speed up the power down flow") In power down or suspend flow a message can still be received from the FW because the clients fake disconnection. In normal case we interpret messages w/o destination as corrupte

[PATCH] perf: xgene: Fix IOB SLOW PMU parser error

2018-06-06 Thread Hoan Tran
This patch fixes the below parser error of the IOB SLOW PMU. # perf stat -a -e iob-slow0/cycle-count/ sleep 1 evenf syntax error: 'iob-slow0/cycle-count/' \___ parser error It replaces the "-" character by "_" character inside the PMU name. Signed

Re: [PATCH v5 00/10] track CPU utilization

2018-06-06 Thread luca abeni
Hi, On Wed, 6 Jun 2018 14:20:46 +0100 Quentin Perret wrote: [...] > > However, IMHO, these are corner cases and in the average case it is > > better to rely on running_bw and reduce the CPU frequency > > accordingly. > > My point was that accepting to go at a lower frequency than required > by

  1   2   3   4   5   6   >