[PATCH V5 0/6] perf and x86/intel_rdt: Fix lack of coordination with perf

2018-09-19 Thread Reinette Chatre
Dear Maintainers, This new series fixing the lack of coordination between the pseudo-locking measurement code and perf addresses all feedback received up to and including V4. Changes since V4: - Move the helper to obtain the performance counter index (x86_perf_rdpmc_index()) to arch/x86/events/

[PATCH V5 3/6] x86/intel_rdt: Remove local register variables

2018-09-19 Thread Reinette Chatre
Local register variables were used in an effort to improve the accuracy of the measurement of cache residency of a pseudo-locked region. This was done to ensure that only the cache residency of the memory is measured and not the cache residency of the variables used to perform the measurement. Whi

[PATCH V5 1/6] perf/core: Add sanity check to deal with pinned event failure

2018-09-19 Thread Reinette Chatre
It is possible that a failure can occur during the scheduling of a pinned event. The initial portion of perf_event_read_local() contains the various error checks an event should pass before it can be considered valid. Ensure that the potential scheduling failure of a pinned event is checked for and

Re: [PATCH v3] spi: mediatek: Don't modify spi_transfer when transfer.

2018-09-19 Thread Mark Brown
On Wed, Sep 19, 2018 at 02:29:27PM +0800, Peter Shih wrote: > Mediatek SPI driver modifies some fields (tx_buf, rx_buf, len, tx_dma, > rx_dma) of the spi_transfer* passed in when doing transfer_one and in > interrupt handler. This is somewhat unexpected, and there are some Please do not submit new

[PATCH net-next 10/12] net: hns3: Clear client pointer when initialize client failed or unintialize finished

2018-09-19 Thread Salil Mehta
From: Jian Shen If initialize client failed or finish uninitializing client, we should clear the client pointer. It may cause unexpected result when use uninitialized client. Meanwhile, we also should check whether client exist when uninitialize it. Fixes: 46a3df9f9718 ("net: hns3: Add HNS3 Acce

Re: [PATCHv5 0/7] tty: Hold write ldisc sem in tty_reopen()

2018-09-19 Thread Mikulas Patocka
On Wed, 19 Sep 2018, Mikulas Patocka wrote: > > > On Tue, 18 Sep 2018, Dmitry Safonov wrote: > > > Hi all, > > > > Three fixes that worth to have in the @stable, as they were hit by > > different people, including Arista on v4.9 stable. > > > > And for linux-next - adding lockdep asserts f

Re: [PATCH] PCI: kirin: Fix section mismatch warning

2018-09-19 Thread Nick Desaulniers
On Wed, Sep 19, 2018 at 3:29 AM Lorenzo Pieralisi wrote: > > Xiaowei, Binghui, > > On Tue, Sep 18, 2018 at 10:38:29PM -0700, Nathan Chancellor wrote: > > WARNING: vmlinux.o(.text+0x4758cc): Section mismatch in reference from > > the function kirin_pcie_probe() to the function > > .init.text:kirin_

Re: [PATCH] pinctrl: intel: Do pin translation in other GPIO operations as well

2018-09-19 Thread Rajat Jain
On Wed, Sep 19, 2018 at 1:40 AM Mika Westerberg wrote: > > On Tue, Sep 18, 2018 at 03:14:44PM -0700, Rajat Jain wrote: > > Also consider fixing the checkpatch warning: > > > > Errors: > > * checkpatch.pl errors/warnings > > > > WARNING: Prefer 'unsigned int' to bare

Re: [RFC PATCH] glibc: Perform rseq(2) registration at nptl init and thread creation

2018-09-19 Thread Szabolcs Nagy
On 19/09/18 15:44, Mathieu Desnoyers wrote: Things to consider: - Move __rseq_refcount to an extra field at the end of __rseq_abi to eliminate one symbol. This would require to wrap struct rseq into e.g. struct rseq_lib or such, e.g.: struct rseq_lib { struct rseq kabi; int refcount

Re: [PATCH] cpufreq: qcom-kryo: Fix section mismatch warning

2018-09-19 Thread Nick Desaulniers
On Tue, Sep 18, 2018 at 11:05 PM Nathan Chancellor wrote: > > WARNING: vmlinux.o(.text+0x8aa424): Section mismatch in reference from > the function qcom_cpufreq_kryo_probe() to the function > .init.text:qcom_cpufreq_kryo_get_msm_id() > The function qcom_cpufreq_kryo_probe() references > the functi

Re: [PATCHv5 0/7] tty: Hold write ldisc sem in tty_reopen()

2018-09-19 Thread Dmitry Safonov
On Wed, 2018-09-19 at 13:35 -0400, Mikulas Patocka wrote: > > On Wed, 19 Sep 2018, Mikulas Patocka wrote: > > > > > > > On Tue, 18 Sep 2018, Dmitry Safonov wrote: > > > > > Hi all, > > > > > > Three fixes that worth to have in the @stable, as they were hit > by > > > different people, includi

Re: [PATCH 1/2] spi: Add MXIC controller driver

2018-09-19 Thread Mark Brown
On Mon, Sep 17, 2018 at 03:16:18PM +0800, masonccy...@mxic.com.tw wrote: > +static void mxic_spi_set_cs(struct spi_device *spi, bool lvl) > +{ > + struct mxic_spi *mxic = spi_master_get_devdata(spi->master); > + > + if (!lvl) { > + if (mxic_spi_clk_setup(spi)) > +

[PATCH 1/3] rtc: ds1685: drop RTC_DS1685_PROC_REGS

2018-09-19 Thread Alexandre Belloni
/proc is not the correct ABI to display debugging info. Remove RTC_DS1685_PROC_REGS as the driver hasn't seen any real development since it was included. Signed-off-by: Alexandre Belloni --- drivers/rtc/Kconfig | 11 drivers/rtc/rtc-ds1685.c | 61 ---

[PATCH 3/3] rtc: ds1685: use rtc_add_group

2018-09-19 Thread Alexandre Belloni
Use rtc_add_group to add the sysfs group in a race free manner. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-ds1685.c | 40 +--- 1 file changed, 1 insertion(+), 39 deletions(-) diff --git a/drivers/rtc/rtc-ds1685.c b/drivers/rtc/rtc-ds1685.c index 1f8

[PATCH 2/3] rtc: ds1685: use generic nvmem

2018-09-19 Thread Alexandre Belloni
Instead of adding a binary sysfs attribute from the driver, use the core to register an nvmem device. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-ds1685.c | 92 +++- 1 file changed, 25 insertions(+), 67 deletions(-) diff --git a/drivers/rtc/rtc-ds168

Applied "ASoC: q6afe: dt-bindings: Update input range for qcom,sd-lines" to the asoc tree

2018-09-19 Thread Mark Brown
The patch ASoC: q6afe: dt-bindings: Update input range for qcom,sd-lines has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 h

Applied "regulator: bd718x7: add missing linux/of.h inclusion" to the regulator tree

2018-09-19 Thread Mark Brown
The patch regulator: bd718x7: add missing linux/of.h inclusion has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 ho

Re: [ojeda-linux:compiler-attributes-v4 7/13] drivers/firewire/core-card.c:479 bm_work() warn: always true condition '(root_node->max_hops < (16 / 1 + (0))) => (0-15 < 16)'

2018-09-19 Thread Nick Desaulniers
On Tue, Sep 18, 2018 at 6:11 PM kbuild test robot wrote: > > tree: git://github.com/ojeda/linux compiler-attributes-v4 > head: 7c70bc9e399c67f5d1a84b845d2656f8808e0032 > commit: 431781b83c5e7ae3719498bf1e52ca99bcf6d20b [7/13] Compiler Attributes: > remove unneeded sparse (__CHECKER__) tests >

Re: [PATCH] PCI: kirin: Fix section mismatch warning

2018-09-19 Thread Nathan Chancellor
On Wed, Sep 19, 2018 at 10:35:55AM -0700, Nick Desaulniers wrote: > On Wed, Sep 19, 2018 at 3:29 AM Lorenzo Pieralisi > wrote: > > > > Xiaowei, Binghui, > > > > On Tue, Sep 18, 2018 at 10:38:29PM -0700, Nathan Chancellor wrote: > > > WARNING: vmlinux.o(.text+0x4758cc): Section mismatch in referenc

Re: [PATCH] MAINTAINERS: Remove self from Broadcom SoCs

2018-09-19 Thread Florian Fainelli
On Wed, 19 Sep 2018 11:31:40 -0400, Jon Mason wrote: > I'm leaving Broadcom, and will no longer have access to hardware and > documentation necessary to be effective in a maintainership role. > > Signed-off-by: Jon Mason > --- Applied to maintainers/next, thanks! -- Florian

Re: [PATCH] sysrq: Use panic() to force a crash

2018-09-19 Thread Nick Desaulniers
On Tue, Sep 18, 2018 at 5:32 PM Matthias Kaehlcke wrote: > > sysrq_handle_crash() currently forces a crash by dereferencing a > NULL pointer, which is undefined behavior in C. Just call panic() > instead, which is simpler and doesn't depend on compiler specific > handling of the undefined behavior

Re: [PATCH] perf tool: Add missing subcommand `version`

2018-09-19 Thread Arnaldo Carvalho de Melo
Em Wed, Sep 19, 2018 at 12:49:11AM -0700, Sangwon Hong escreveu: > There isn't subcommand `version` when typing `perf help`. > > Before : > > $ perf help | grep version > usage: perf [--version] [--help] [OPTIONS] COMMAND [ARGS] > > So add perf-version in command-list.txt for listing it > when

[PATCH] ipc/shm: Use ERR_CAST() for shm_lock() error return

2018-09-19 Thread Kees Cook
This uses ERR_CAST() instead of an open-coded cast, as it is casting across structure pointers, which upsets __randomize_layout: ipc/shm.c: In function ‘shm_lock’: ipc/shm.c:209:9: note: randstruct: casting between randomized structure pointer types (ssa): ‘struct shmid_kernel’ and ‘struct kern_i

[PATCH v2] x86/numa_emulation: fix parsing of numa_meminfo for uniform numa emulation

2018-09-19 Thread Dave Jiang
During fakenuma processing in numa_emulation(), pi gets passed in and processed as new fake numa nodes are being split out. Once the original memory region is proccessed, it gets removed from the pi by numa_remove_memblk_from() in emu_setup_memblk(). So entry 0 gets deleted and the rest of the entr

Re: [PATCH] sysrq: Use panic() to force a crash

2018-09-19 Thread Matthias Kaehlcke
On Wed, Sep 19, 2018 at 10:59:51AM -0700, Nick Desaulniers wrote: > On Tue, Sep 18, 2018 at 5:32 PM Matthias Kaehlcke wrote: > > > > sysrq_handle_crash() currently forces a crash by dereferencing a > > NULL pointer, which is undefined behavior in C. Just call panic() > > instead, which is simpler

Re: [PATCH v1 03/10] tools, perf, script: Add --insn-trace for instruction decoding

2018-09-19 Thread Arnaldo Carvalho de Melo
Em Wed, Aug 29, 2018 at 10:18:27AM -0700, Andi Kleen escreveu: > From: Andi Kleen > > Add a --insn-trace short hand option for decoding and disassembling > instruction streams for intel_pt. This automatically pipes the > output into the xed disassembler to generate disassembled instructions. > Th

Re: [PATCH v5 1/9] perf tools: Report itrace options in help

2018-09-19 Thread Arnaldo Carvalho de Melo
Em Tue, Sep 18, 2018 at 05:32:06AM -0700, Andi Kleen escreveu: > From: Andi Kleen > > I often forget all the options that --itrace accepts. Instead of burying > them in the man page only report them in the normal command line help > too to make them easier accessible. Looks reasonable, applied.

[PATCH] platform/x86: intel_int0002_vgpio: Enable the driver on Bay Trail platforms

2018-09-19 Thread Hans de Goede
The intel_int0002_vgpio driver was added to avoid an IRQ 9 storm on Cherry Trail platforms. When originally merged the CPU ID for Bay Trail SoCs was commented out of the list of valid CPU IDs because we did not have any reports of the IRQ storm on Bay Trail platforms. We now have a report of the

Re: [PATCH 2/2] mm: zero remaining unavailable struct pages

2018-09-19 Thread Masayoshi Mizuma
On Wed, Sep 19, 2018 at 01:54:40AM +, Naoya Horiguchi wrote: > On Mon, Sep 17, 2018 at 09:26:07AM -0400, Masayoshi Mizuma wrote: > > On Fri, Aug 31, 2018 at 02:55:36AM +, Naoya Horiguchi wrote: > > > On Wed, Aug 29, 2018 at 11:16:30AM -0400, Masayoshi Mizuma wrote: > > > > Hi Horiguchi-san

Re: [PATCH v5 2/9] tools, pager: Support overwriting the pager

2018-09-19 Thread Arnaldo Carvalho de Melo
Em Tue, Sep 18, 2018 at 05:32:07AM -0700, Andi Kleen escreveu: > From: Andi Kleen > > Add an interface to the auto pager code that allows callers > to overwrite the pager. Applied, - Arnaldo > Signed-off-by: Andi Kleen > --- > tools/lib/subcmd/pager.c | 11 ++- > tools/lib/subcmd/pa

from john

2018-09-19 Thread Law Rich
Good Morning, Since my last mail I have not heard from you,Please I am waiting for your reply. Best regards, John

[PATCH v2] cpufreq: qcom-kryo: Fix section mismatch warning

2018-09-19 Thread Nathan Chancellor
WARNING: vmlinux.o(.text+0x8aa424): Section mismatch in reference from the function qcom_cpufreq_kryo_probe() to the function .init.text:qcom_cpufreq_kryo_get_msm_id() The function qcom_cpufreq_kryo_probe() references the function __init qcom_cpufreq_kryo_get_msm_id(). This is often because qcom_cp

Re: [PATCH v5 4/9] perf, tools, script: Allow sym and dso without ip, addr

2018-09-19 Thread Arnaldo Carvalho de Melo
Em Tue, Sep 18, 2018 at 05:32:09AM -0700, Andi Kleen escreveu: > This allows to remove a lot of noise in callindent output by > dropping the numerical addresses, which are not all that useful. > > Before > > % perf script --itrace=cr -F +callindent > swapper 0 [000] 156546.354971:

Re: [PATCH] i2c: i2c-qcom-geni: Properly handle DMA safe buffers

2018-09-19 Thread Stephen Boyd
Quoting Wolfram Sang (2018-09-18 15:16:46) > > > This fixes a problem where the kernel oopses cleaning pages for a buffer > > that's mapped into the vmalloc space. The pages are returned from > > request_firmware() and passed down directly to the i2c master to write > > to the i2c touchscreen devi

Re: [PATCH v5 5/9] perf, tools, script: Print DSO for callindent

2018-09-19 Thread Arnaldo Carvalho de Melo
Em Tue, Sep 18, 2018 at 05:32:10AM -0700, Andi Kleen escreveu: > From: Andi Kleen > > Now that we don't need to print the IP/ADDR for callindent the DSO > is also not printed. It's useful for some cases, so add an own DSO > printout for callindent for the case when IP/ADDR is not enabled. > > Be

Re: [PATCH v5 6/9] perf, tools, script: Make itrace script default to all calls

2018-09-19 Thread Arnaldo Carvalho de Melo
Em Tue, Sep 18, 2018 at 04:24:55PM +0300, Adrian Hunter escreveu: > On 18/09/18 15:32, Andi Kleen wrote: > > +++ b/tools/perf/util/auxtrace.c > > @@ -964,16 +964,23 @@ s64 perf_event__process_auxtrace(struct perf_tool > > *tool, > > #define PERF_ITRACE_DEFAULT_LAST_BRANCH_SZ 64 > > #define PERF_

Re: [PATCH v5 9/9] perf, tools, script: Support total cycles count

2018-09-19 Thread Arnaldo Carvalho de Melo
Em Tue, Sep 18, 2018 at 05:32:14AM -0700, Andi Kleen escreveu: > From: Andi Kleen > > For perf script brstackinsn also print a running cycles count. > This makes it easier to calculate cycle deltas for code sections > measured with LBRs. > > % perf record -b -a sleep 1 > % perf script -F +brstac

Re: [PATCH] PCI: kirin: Fix section mismatch warning

2018-09-19 Thread Nick Desaulniers
On Wed, Sep 19, 2018 at 10:58 AM Nathan Chancellor wrote: > > On Wed, Sep 19, 2018 at 10:35:55AM -0700, Nick Desaulniers wrote: > > On Wed, Sep 19, 2018 at 3:29 AM Lorenzo Pieralisi > > wrote: > > > > > > Xiaowei, Binghui, > > > > > > On Tue, Sep 18, 2018 at 10:38:29PM -0700, Nathan Chancellor wr

Re: [PATCH 1/2] libata: add ledtrig support

2018-09-19 Thread kbuild test robot
Hi Daniel, Thank you for the patch! Yet something to improve: [auto build test ERROR on block/for-next] [also build test ERROR on v4.19-rc4 next-20180919] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci

Re: [PATCH] perf: xgene: Add CPU hotplug support

2018-09-19 Thread Hoan Tran
Hi Mark, > On Sep 11, 2018, at 8:17 AM, Mark Rutland wrote: > > [NOTICE: This email originated from an external sender. Please be mindful of > safe email handling and proprietary information protection practices.] > __

Re: [PATCH 17/29] staging: bcm2835-audio: Add 10ms period constraint

2018-09-19 Thread Takashi Iwai
On Wed, 19 Sep 2018 14:41:28 +0200, Stefan Wahren wrote: > > Hi, > > [add Phil and Mike] > > Am 19.09.2018 um 11:52 schrieb Takashi Iwai: > > On Wed, 19 Sep 2018 11:42:22 +0200, > > Stefan Wahren wrote: > >> Hi Takashi, > >> > >> Am 04.09.2018 um 17:58 schrieb Takashi Iwai: > >>> It seems that t

Re: [PATCH 0/3] arm64: dts: ti: am654: Enable additional nodes

2018-09-19 Thread Tero Kristo
On 05/09/18 23:33, Tony Lindgren wrote: * Nishanth Menon [180905 16:24]: Nishanth Menon (3): arm64: dts: ti: am654: Add uart nodes arm64: dts: ti: am654: Add secure proxy instance for main domain arm64: dts: ti: k3-am6: Add Device Management Security Controller support All look

[PATCH v2] perf: xgene: Add CPU hotplug support

2018-09-19 Thread Hoan Tran
This patch adds CPU hotplug support where the PMU migrates the context to another online CPU when its CPU is offline. It fixes the below issue where the user does offline the CPU which is assigned to this PMU. Assuming, CPU0 is assigned for this PMU. When the user does offline CPU0 [root@

Re: [PATCH 1/6] perf script: Enhance sample flags for trace begin / end

2018-09-19 Thread Arnaldo Carvalho de Melo
Em Wed, Sep 19, 2018 at 02:23:33PM +0300, Adrian Hunter escreveu: > Allow for different combinations of sample flags with "trace begin" or > "trace end". Please describe how you would use this with some command and its output. - Arnaldo > Signed-off-by: Adrian Hunter > --- > tools/perf/builti

Re: [PATCH v3] arm64: dts: ti: k3-am65: Change #address-cells and #size-cells of interconnect to 2

2018-09-19 Thread Tero Kristo
On 05/09/18 16:40, Nishanth Menon wrote: On 11:17-20180905, Kishon Vijay Abraham I wrote: AM65 has two PCIe controllers and each PCIe controller has '2' address spaces one within the 4GB address space of the SoC and the other above the 4GB address space of the SoC (cbass_main) in addition to the

Re: snd_hda_codec_hdmi: `hdaudio hdaudioC0D2: Unable to bind the codec`

2018-09-19 Thread Takashi Iwai
On Wed, 19 Sep 2018 13:14:43 +0200, Paul Menzel wrote: > > Dear Takashi, > > On 09/18/18 23:00, Takashi Iwai wrote: > > On Tue, 18 Sep 2018 17:55:15 +0200, Paul Menzel wrote: > > >> With drm-tip (v4.19-rc3-946-g09b295662edd) Linux prints > >> `snd_hda_codec_hdmi hdaudioC0D2: No i915 binding for

Re: [PATCH 1/6] perf script: Enhance sample flags for trace begin / end

2018-09-19 Thread Arnaldo Carvalho de Melo
Em Wed, Sep 19, 2018 at 03:45:56PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Wed, Sep 19, 2018 at 02:23:33PM +0300, Adrian Hunter escreveu: > > Allow for different combinations of sample flags with "trace begin" or > > "trace end". > > Please describe how you would use this with some command

Re: [PATCH] PCI: kirin: Fix section mismatch warning

2018-09-19 Thread Nathan Chancellor
On Wed, Sep 19, 2018 at 11:35:45AM -0700, Nick Desaulniers wrote: > On Wed, Sep 19, 2018 at 10:58 AM Nathan Chancellor > wrote: > > > > On Wed, Sep 19, 2018 at 10:35:55AM -0700, Nick Desaulniers wrote: > > > On Wed, Sep 19, 2018 at 3:29 AM Lorenzo Pieralisi > > > wrote: > > > > > > > > Xiaowei, B

[PATCH v2] PCI: kirin: Fix section mismatch warning

2018-09-19 Thread Nathan Chancellor
WARNING: vmlinux.o(.text+0x4758cc): Section mismatch in reference from the function kirin_pcie_probe() to the function .init.text:kirin_add_pcie_port() The function kirin_pcie_probe() references the function __init kirin_add_pcie_port(). This is often because kirin_pcie_probe lacks a __init annotat

[PATCH v8 12/20] kasan, arm64: enable top byte ignore for the kernel

2018-09-19 Thread Andrey Konovalov
Tag-based KASAN uses the Top Byte Ignore feature of arm64 CPUs to store a pointer tag in the top byte of each pointer. This commit enables the TCR_TBI1 bit, which enables Top Byte Ignore for the kernel, when tag-based KASAN is used. Signed-off-by: Andrey Konovalov --- arch/arm64/include/asm/pgta

Re: [GIT PULL] ring-buffer: Allow for rescheduling when removing pages

2018-09-19 Thread Greg Kroah-Hartman
On Wed, Sep 19, 2018 at 09:39:23AM -0400, Steven Rostedt wrote: > On Wed, 19 Sep 2018 08:07:06 +0200 > Greg Kroah-Hartman wrote: > > > On Tue, Sep 18, 2018 at 07:14:13PM -0400, Steven Rostedt wrote: > > > > > > Linus (aka Greg), > > > > > > Vaibhav Nagarnaik found that modifying the ring buffer

[PATCH 09/15] tools/lib/traceevent: Add prefix tep_ to enums filter_{exp,arg}_type

2018-09-19 Thread Steven Rostedt
From: "Tzvetomir Stoyanov (VMware)" In order to make libtraceevent into a proper library, variables, data structures and functions require a unique prefix to prevent name space conflicts. That prefix will be "tep_". This adds prefix tep_ to enums filter_exp_type, filter_arg_type and all enum's me

[PATCH 14/15] tools/lib/traceevent: Rename data2host*() APIs

2018-09-19 Thread Steven Rostedt
From: "Tzvetomir Stoyanov (VMware)" In order to make libtraceevent into a proper library, variables, data structures and functions require a unique prefix to prevent name space conflicts. That prefix will be "tep_". This renames data2host*() APIs Signed-off-by: Tzvetomir Stoyanov (VMware) Signe

[PATCH 07/15] tools/lib/traceevent, tools/perf: Rename enum print_arg_type to enum tep_print_arg_type

2018-09-19 Thread Steven Rostedt
From: "Tzvetomir Stoyanov (VMware)" In order to make libtraceevent into a proper library, variables, data structures and functions require a unique prefix to prevent name space conflicts. That prefix will be "tep_". This renames enum print_arg_type to enum tep_print_arg_type and add prefix TEP_ t

[PATCH 10/15] tools/lib/traceevent: Add prefix tep_ to struct filter_{arg,value_type}

2018-09-19 Thread Steven Rostedt
From: "Tzvetomir Stoyanov (VMware)" In order to make libtraceevent into a proper library, variables, data structures and functions require a unique prefix to prevent name space conflicts. That prefix will be "tep_". This adds prefix tep_ to struct filter_arg, enum filter_value_type and all enum's

[PATCH 13/15] tools/lib/traceevent: Rename struct plugin_list to struct tep_plugin_list

2018-09-19 Thread Steven Rostedt
From: "Tzvetomir Stoyanov (VMware)" In order to make libtraceevent into a proper library, variables, data structures and functions require a unique prefix to prevent name space conflicts. That prefix will be "tep_". This renames struct plugin_list to struct tep_plugin_list Signed-off-by: Tzvetom

[PATCH 03/15] tools/lib/traceevent, tools/perf: Rename enum format_flags to enum tep_format_flags

2018-09-19 Thread Steven Rostedt
From: "Tzvetomir Stoyanov (VMware)" In order to make libtraceevent into a proper library, variables, data structures and functions require a unique prefix to prevent name space conflicts. That prefix will be "tep_". This renames enum format_flags to enum tep_format_flags and adds prefix TEP_ to a

[PATCH 08/15] tools/lib/traceevent: Add prefix tep_ to enums filter_{boolean,op,cmp}_type

2018-09-19 Thread Steven Rostedt
From: "Tzvetomir Stoyanov (VMware)" In order to make libtraceevent into a proper library, variables, data structures and functions require a unique prefix to prevent name space conflicts. That prefix will be "tep_". This adds prefix tep_ to enums filter_boolean_type, filter_op_type, filter_cmp_ty

[PATCH 15/15] tools/lib/traceevent: Add prefix tep_ to enum filter_trivial_type

2018-09-19 Thread Steven Rostedt
From: "Tzvetomir Stoyanov (VMware)" In order to make libtraceevent into a proper library, variables, data structures and functions require a unique prefix to prevent name space conflicts. That prefix will be "tep_". This adds prefix tep_ to enum filter_trivial_type and all its members. Signed-of

[PATCH 11/15] tools/lib/traceevent: Add prefix tep_ to various structs filter_arg_*.

2018-09-19 Thread Steven Rostedt
From: "Tzvetomir Stoyanov (VMware)" In order to make libtraceevent into a proper library, variables, data structures and functions require a unique prefix to prevent name space conflicts. That prefix will be "tep_". This adds prefix tep_ to to various structs filter_arg_*.. Signed-off-by: Tzveto

Re: [PATCH v6 1/2] iio: proximity: Add driver support for ST's VL53L0X ToF ranging sensor.

2018-09-19 Thread Sasha Levin
Hi, [This is an automated email] This commit has been processed because it contains a -stable tag. The stable tag indicates that it's relevant for the following trees: all The bot has tested the following trees: v4.18.8, v4.14.70, v4.9.127, v4.4.156, v3.18.122, v4.18.8: Build OK! v4.14.70: Fa

Re: [RFC PATCH] selinux: add a fallback to defcontext for native labeling

2018-09-19 Thread Stephen Smalley
On 09/19/2018 12:52 PM, Taras Kondratiuk wrote: When files on NFSv4 server are not properly labeled (label doesn't match a policy on a client) they will end up with unlabeled_t type which is too generic. We would like to be able to set a default context per mount. 'defcontext' mount option looks

[PATCH 12/15] tools/lib/traceevent: Add prefix tep_ to structs filter_type and event_filter

2018-09-19 Thread Steven Rostedt
From: "Tzvetomir Stoyanov (VMware)" In order to make libtraceevent into a proper library, variables, data structures and functions require a unique prefix to prevent name space conflicts. That prefix will be "tep_". This adds prefix tep_ to structs filter_type and event_filter Signed-off-by: Tzv

[PATCH 04/15] tools/lib/traceevent: Rename enum event_{sort_}type to enum tep_event_{sort_}type

2018-09-19 Thread Steven Rostedt
From: "Tzvetomir Stoyanov (VMware)" In order to make libtraceevent into a proper library, variables, data structures and functions require a unique prefix to prevent name space conflicts. That prefix will be "tep_". This renames enum event_type to enum tep_event_type, enum event_sort_type to enum

[PATCH 05/15] tools/lib/traceevent: Add prefix TEP_ to all EVENT_FL_* flags

2018-09-19 Thread Steven Rostedt
From: "Tzvetomir Stoyanov (VMware)" In order to make libtraceevent into a proper library, variables, data structures and functions require a unique prefix to prevent name space conflicts. That prefix will be "tep_". This adds prefix TEP_ to all members of nameless enum EVENT_FL_* Signed-off-by:

[PATCH 00/15] tools/lib/traceevent: Namespace updates to make traceevent into a library

2018-09-19 Thread Steven Rostedt
Jiri, This is another series to fix the namespace of libtraceevent. Please pull in these patches or if you choose, pull in the branch. The code is based off of the latest tip/perf/core. These changes can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git tip/

[PATCH 02/15] tools/lib/traceevent, tools/perf: Rename struct format{_field} to struct tep_format{_field}

2018-09-19 Thread Steven Rostedt
From: "Tzvetomir Stoyanov (VMware)" In order to make libtraceevent into a proper library, variables, data structures and functions require a unique prefix to prevent name space conflicts. That prefix will be "tep_". This renames struct format to struct tep_format and struct format_field to struct

[PATCH 01/15] tools/lib/traceevent, tools/perf: Rename struct event_format to struct tep_event_format

2018-09-19 Thread Steven Rostedt
From: "Tzvetomir Stoyanov (VMware)" In order to make libtraceevent into a proper library, variables, data structures and functions require a unique prefix to prevent name space conflicts. That prefix will be "tep_". This renames struct event_format to struct tep_event_format Signed-off-by: Tzvet

[PATCH 06/15] tools/lib/traceevent, tools/perf: Add prefix tep_ to all print_* structures

2018-09-19 Thread Steven Rostedt
From: "Tzvetomir Stoyanov (VMware)" In order to make libtraceevent into a proper library, variables, data structures and functions require a unique prefix to prevent name space conflicts. That prefix will be "tep_". This adds prefix tep_ to all print_* structures Signed-off-by: Tzvetomir Stoyano

[PATCH RESEND] spi: clps711x: remove unused header

2018-09-19 Thread Corentin Labbe
include/linux/platform_data/spi-clps711x.h is unused since commit 6acaadc852f1 ("spi: clps711x: Driver refactor") Let's remove it. Signed-off-by: Corentin Labbe --- include/linux/platform_data/spi-clps711x.h | 21 - 1 file changed, 21 deletions(-) delete mode 100644 include

Re: [PATCH 2/2] iio: light: bh1750: Add device tree support

2018-09-19 Thread Tomasz Duszynski
Comments inline. On Sat, Sep 15, 2018 at 01:42:14PM -0400, ryang wrote: > Add device tree support for ROHM BH1750 series ambient light sensors. > > Signed-off-by: ryang > --- > drivers/iio/light/bh1750.c | 10 ++ > 1 file changed, 10 insertions(+) > > diff --git a/drivers/iio/light/bh175

Re: [PATCH v2 1/7] dt-bindings: mfd: Add ST Multi-Function eXpander (STMFX) core bindings

2018-09-19 Thread Linus Walleij
On Wed, Sep 19, 2018 at 6:28 AM Amelie Delaunay wrote: > This patch adds documentation of device tree bindings for the > STMicroelectronics Multi-Function eXpander (STMFX) MFD core. > > Signed-off-by: Amelie Delaunay These bindings look good to me. Reviewed-by: Linus Walleij If you want you c

Re: [RFC PATCH 04/10 v2 ] x86/fpu: eager switch PKRU state

2018-09-19 Thread Rik van Riel
> On Sep 19, 2018, at 1:00 PM, Paolo Bonzini wrote: > > On 19/09/2018 18:57, Sebastian Andrzej Siewior wrote: >> On 2018-09-19 07:55:51 [+0200], Paolo Bonzini wrote: >>> A kthread can do use_mm/unuse_mm. >> >> indeed. The FPU struct for the kernel thread isn't valid / does not >> contain the

Re: [PATCH v2 2/7] mfd: Add ST Multi-Function eXpander (STMFX) core driver

2018-09-19 Thread Linus Walleij
On Wed, Sep 19, 2018 at 6:28 AM Amelie Delaunay wrote: > STMicroelectronics Multi-Function eXpander (STMFX) is a slave controller > using I2C for communication with the main MCU. Main features are: > - 16 fast GPIOs individually configurable in input/output > - 8 alternate GPIOs individually conf

Re: [PATCH v2 3/7] dt-bindings: pinctrl: document the STMFX pinctrl bindings

2018-09-19 Thread Linus Walleij
On Wed, Sep 19, 2018 at 6:28 AM Amelie Delaunay wrote: > This patch adds documentation of device tree bindings for the > STMicroelectronics Multi-Function eXpander (STMFX) GPIO expander. > > Signed-off-by: Amelie Delaunay This is looking very good. Simple standard properties, and very clear inf

Re: [PATCH v2 4/7] pinctrl: Add STMFX GPIO expander Pinctrl/GPIO driver

2018-09-19 Thread Linus Walleij
On Wed, Sep 19, 2018 at 6:28 AM Amelie Delaunay wrote: > This patch adds pinctrl/GPIO driver for STMicroelectronics > Multi-Function eXpander (STMFX) GPIO expander. > STMFX is an I2C slave controller, offering up to 24 GPIOs. > The driver relies on generic pin config interface to configure the GP

Re: [PATCH v2 7/7] ARM: dts: stm32: add orange and blue leds on stm32746g-eval

2018-09-19 Thread Linus Walleij
On Wed, Sep 19, 2018 at 6:28 AM Amelie Delaunay wrote: > Orange (LD2) and blue (LD4) leds on stm32746g-eval are connected on > STMFX gpio expander, offset 17 and 19. > > Signed-off-by: Amelie Delaunay Acked-by: Linus Walleij Yours, Linus Walleij

Re: [PATCH v2 6/7] ARM: dts: stm32: add joystick support on stm32746g-eval

2018-09-19 Thread Linus Walleij
On Wed, Sep 19, 2018 at 6:28 AM Amelie Delaunay wrote: > The joystick (B3) on stm32746g-eval uses gpios on STMFX gpio expander. > These gpios need a pin configuration (push-pull and bias-pull-up), > described under stmfx_pinctrl node. > > Signed-off-by: Amelie Delaunay Acked-by: Linus Walleij

[PATCH] misc: mic: scif: Remove unused variable

2018-09-19 Thread Nathan Chancellor
Clang warns when a variable is assigned to itself. drivers/misc/mic/scif/scif_dma.c:1577:12: warning: explicitly assigning value of variable of type 'bool' (aka '_Bool') to itself [-Wself-assign] dst_local = dst_local; ~ ^ ~ 1 warning generated. This is usually don

Re: [PATCH v2 1/2] vfio: add edid api for display (vgpu) devices.

2018-09-19 Thread Alex Williamson
On Tue, 18 Sep 2018 15:38:12 +0200 Gerd Hoffmann wrote: No empty commit logs please. There must be something to say about the goal or motivation beyond the subject. > Signed-off-by: Gerd Hoffmann > --- > include/uapi/linux/vfio.h | 39 +++ > 1 file changed,

Re: [PATCH v2 5/7] ARM: dts: stm32: add STMFX support on stm32746g-eval

2018-09-19 Thread Linus Walleij
On Wed, Sep 19, 2018 at 6:28 AM Amelie Delaunay wrote: > This patch adds support for STMicroelectronics Multi-Function eXpander > (STMFX) on stm32746g-eval. It is connected on i2c1. > > Signed-off-by: Amelie Delaunay Acked-by: Linus Walleij Yours, Linus Walleij

Re: [PATCH v2 0/7] Introduce STMFX I2C Multi-Function eXpander

2018-09-19 Thread Linus Walleij
On Wed, Sep 19, 2018 at 6:28 AM Amelie Delaunay wrote: > This series adds support for STMicroelectronics Multi-Function eXpander > (STMFX), used on some STM32 discovery and evaluation boards. > > STMFX is an STM32L152 slave controller whose firmware embeds the following > features: > - I/O expand

[PATCH v2] usb: host: Replace empty define with do while

2018-09-19 Thread Corentin Labbe
It's dangerous to use empty code define. Furthermore it lead to the following warning: "suggest braces around empty body in an « else » statement" So let's replace emptyness by "do {} while(0)" Furthermore, as suggested by Joe Perches, rename the macro to INCR. Signed-off-by: Corentin Labbe ---

Re: [RFC PATCH 04/10 v2 ] x86/fpu: eager switch PKRU state

2018-09-19 Thread Andy Lutomirski
> On Sep 19, 2018, at 10:00 AM, Paolo Bonzini wrote: > >> On 19/09/2018 18:57, Sebastian Andrzej Siewior wrote: >>> On 2018-09-19 07:55:51 [+0200], Paolo Bonzini wrote: >>> A kthread can do use_mm/unuse_mm. >> >> indeed. The FPU struct for the kernel thread isn't valid / does not >> contain t

Re: [RFC PATCH] glibc: Perform rseq(2) registration at nptl init and thread creation

2018-09-19 Thread Joseph Myers
On Wed, 19 Sep 2018, Szabolcs Nagy wrote: > i don't think there is precedent for exposing tls symbol in glibc > (e.g. errno is exposed via __errno_location function) so there > might be issues with this (but i don't have immediate concerns). There have been suggestions to expose TLS errno - but a

Re: [RFC/PATCH 0/5] Support children for legacy device properties

2018-09-19 Thread Linus Walleij
On Mon, Sep 17, 2018 at 11:16 AM Dmitry Torokhov wrote: > The generic device properties APIs are very helpful as they allow abstracting > away details of the platform (whether it is ACPI, device tree, or legacy board > file), so that individual driver does not need separate code paths to support

Re: [PATCH v6 4/5] seccomp: add support for passing fds via USER_NOTIF

2018-09-19 Thread Andy Lutomirski
On Wed, Sep 19, 2018 at 7:38 AM, Tycho Andersen wrote: > On Wed, Sep 19, 2018 at 07:19:56AM -0700, Andy Lutomirski wrote: >> >> >> > On Sep 19, 2018, at 2:55 AM, Tycho Andersen wrote: >> > >> >> On Wed, Sep 12, 2018 at 04:52:38PM -0700, Andy Lutomirski wrote: >> >>> On Thu, Sep 6, 2018 at 8:28 AM

Re: [PATCH v1 03/10] tools, perf, script: Add --insn-trace for instruction decoding

2018-09-19 Thread Andi Kleen
On Wed, Sep 19, 2018 at 03:12:47PM -0300, Arnaldo Carvalho de Melo wrote: > Em Wed, Aug 29, 2018 at 10:18:27AM -0700, Andi Kleen escreveu: > > From: Andi Kleen > > > > Add a --insn-trace short hand option for decoding and disassembling > > instruction streams for intel_pt. This automatically pipe

Re: [PATCHv5 0/7] tty: Hold write ldisc sem in tty_reopen()

2018-09-19 Thread Mikulas Patocka
On Wed, 19 Sep 2018, Dmitry Safonov wrote: > On Wed, 2018-09-19 at 13:35 -0400, Mikulas Patocka wrote: > > > > On Wed, 19 Sep 2018, Mikulas Patocka wrote: > > > > > > > > > > > On Tue, 18 Sep 2018, Dmitry Safonov wrote: > > > > > > > Hi all, > > > > > > > > Three fixes that worth to have

Re: [RFC PATCH] glibc: Perform rseq(2) registration at nptl init and thread creation

2018-09-19 Thread Mathieu Desnoyers
- On Sep 19, 2018, at 3:49 PM, Joseph Myers jos...@codesourcery.com wrote: > On Wed, 19 Sep 2018, Szabolcs Nagy wrote: > >> i don't think there is precedent for exposing tls symbol in glibc >> (e.g. errno is exposed via __errno_location function) so there >> might be issues with this (but i d

Re: [PATCHv5 0/7] tty: Hold write ldisc sem in tty_reopen()

2018-09-19 Thread Dmitry Safonov
On Wed, 2018-09-19 at 16:03 -0400, Mikulas Patocka wrote: > > On Wed, 19 Sep 2018, Dmitry Safonov wrote: > > Thanks much for the testing, Mikulas. > > Could you try to bisect which of the patches causes it? > > The most important are 1,2,3 - probably, one of them caused it.. > > I'll stare a bit i

Re: [PATCH V12 00/14] Krait clocks + Krait CPUfreq

2018-09-19 Thread Craig
Yup, this patch seems to have fixed the higher frequencies from the quick test I did. On 7 September 2018 15:28:53 BST, Craig Tatlor wrote: > > >On 7 September 2018 10:57:34 BST, Sricharan R > wrote: >>Hi Craig, >> >> [v12] * Added my signed-off that was missing in some patches.

Re: [PATCH v1 03/10] tools, perf, script: Add --insn-trace for instruction decoding

2018-09-19 Thread Arnaldo Carvalho de Melo
Em Wed, Sep 19, 2018 at 01:02:04PM -0700, Andi Kleen escreveu: > On Wed, Sep 19, 2018 at 03:12:47PM -0300, Arnaldo Carvalho de Melo wrote: > > Em Wed, Aug 29, 2018 at 10:18:27AM -0700, Andi Kleen escreveu: > > > From: Andi Kleen > > > > > > Add a --insn-trace short hand option for decoding and di

[PATCH 1/4] staging: rtl8188eu: remove 5 GHz code from Hal_GetChnlGroup88E()

2018-09-19 Thread Michael Straube
Remove code valid only for 5 GHz from Hal_GetChnlGroup88E(). This addresses the below TODO item. - find and remove remaining code valid only for 5 GHz. Most of the obvious ones have been removed, but things like channel > 14 still exist. Signed-off-by: Michael Straube --- .../staging/rtl8188e

[PATCH 2/4] staging: rtl8188eu: change return type of Hal_GetChnlGroup88E()

2018-09-19 Thread Michael Straube
After the removal of code valid only for 5 GHz the function Hal_GetChnlGroup88E returns always true. Change the return type to void and remove the variable bIn24G. Remove the tests for the return value and the variable bIn24G from the only user Hal_ReadTxPowerInfo88E(). Signed-off-by: Michael St

[PATCH 3/4] staging: rtl8188eu: rename parameter of Hal_GetChnlGroup88E()

2018-09-19 Thread Michael Straube
Rename function parameter of Hal_GetChnlGroup88E() to avoid CamelCase. pGroup -> group Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/rtl8188e_ha

[PATCH 4/4] staging: rtl8188eu: clean function definitions - style

2018-09-19 Thread Michael Straube
Do not line break function definitions where not needed and move the return type to the same line. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/rtl81

Re: [PATCH] i2c: i2c-qcom-geni: Properly handle DMA safe buffers

2018-09-19 Thread Wolfram Sang
> But now when I try to use it I'm not exicted when the buffer is bounced > but we fail to map the buffer with the DMA APIs. For an I2C_M_RD Yes, this was reported before and the function to unmap looks different now as of v4.19-rc2... > the buffer that we setup. Or we can pass an argument to >

[RFC 08/20] x86/vdso: Restrict splitting vvar vma

2018-09-19 Thread Dmitry Safonov
As offsets differ between time namespaces, we will need to flush vvar mapping for timens page during setns(), unshare(), clone(NEW_TIME). Forcing userspace to mremap() either all vvar or nothing and the same for munmap() will simplify searching for timens page to flush. Signed-off-by: Dmitry Safon

[RFC 05/20] timerfd/timens: Take into account ns clock offsets

2018-09-19 Thread Dmitry Safonov
From: Andrei Vagin Make timerfd respect timens offsets. Provide two helpers timens_clock_to_host() timens_clock_from_host() that are useful to wire up timens to different kernel subsystems. Following patches will use timens_clock_from_host(), added here for completeness. Signed-off-by: Andrei Va

<    1   2   3   4   5   6   7   8   >