Re: [tip:x86/boot] ACPI/NUMA: Add warning message if the padding size for KASLR is not enough

2018-10-03 Thread Masayoshi Mizuma
On Wed, Oct 03, 2018 at 02:48:14PM +0200, Borislav Petkov wrote: > On Wed, Oct 03, 2018 at 02:34:02PM +0200, Peter Zijlstra wrote: > > > > Subject: ACPI/NUMA: Fix KASLR build error > > > > There is no point in trying to compile KASLR specific code when there is > > no KASLR. > > > >

Re: [PATCH v5 04/21] dt-bindings: Add doc for the Ingenic TCU drivers

2018-10-03 Thread Daniel Lezcano
On 03/10/2018 14:51, Paul Cercueil wrote: > > Le 3 oct. 2018 2:47 PM, Daniel Lezcano a > écrit : >> >> On 03/10/2018 12:32, Paul Cercueil wrote: >>> >>> Le 1 oct. 2018 10:48, Daniel Lezcano >>> a écrit : On 31/07/2018 00:01, Paul Cercueil wrote: [ ... ] >>> +-

[PATCH] lib/seq_buf: auto-correct some typos

2018-10-03 Thread Sergey Senozhatsky
Correct vnprintf() typo + several aspell corrections. Signed-off-by: Sergey Senozhatsky --- lib/seq_buf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/seq_buf.c b/lib/seq_buf.c index 11f2ae0f9099..738b4e92780c 100644 --- a/lib/seq_buf.c +++ b/lib/seq_buf.c @@

Re: [PATCH v2] perf record: encode -k clockid frequency into Perf trace

2018-10-03 Thread Jiri Olsa
On Wed, Oct 03, 2018 at 10:01:56AM +0300, Alexey Budankov wrote: > > Store -k clockid frequency into Perf trace to enable timestamps > derived metrics conversion into wall clock time on reporting stage. > > Below is the example of perf report output: > > tools/perf/perf record -k raw --

Re: [PATCH 2/2] mm, numa: Migrate pages to local nodes quicker early in the lifetime of a task

2018-10-03 Thread Srikar Dronamraju
* Mel Gorman [2018-10-03 14:21:55]: > On Wed, Oct 03, 2018 at 06:37:41PM +0530, Srikar Dronamraju wrote: > > * Srikar Dronamraju [2018-10-02 23:00:05]: > > > > That's unfortunate. > > How much does this workload normally vary between runs? If you monitor > migrations over time, is there an

Re: [PATCH] perf tools: Allocate id array in perf_event__synthesize_event_update_cpus

2018-10-03 Thread John Garry
On 03/10/2018 12:36, Jiri Olsa wrote: On Tue, Oct 02, 2018 at 01:16:21PM +0200, Jiri Olsa wrote: On Tue, Oct 02, 2018 at 11:41:36AM +0100, John Garry wrote: SNIP --- diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index 1ec1d9bc2d63..fb2a0dab3978 100644 ---

Re: [PATCH] perf/x86/intel: Add counter freezing quirk for Goldmont

2018-10-03 Thread Andi Kleen
> There is another variant of model/stepping micro code verification code in > intel_snb_pebs_broken(). Can we please make this table based and use a > common function? That's certainly not the last quirk we're going to have. I have a patch to add a table driven microcode matcher for another fix.

Re: [GIT PULL] parisc fixes for kernel v4.19

2018-10-03 Thread Helge Deller
On 03.10.2018 00:24, Greg Kroah-Hartman wrote: > On Tue, Oct 02, 2018 at 11:46:11PM +0200, Helge Deller wrote: >> Hi Greg, >> >> On 02.10.2018 23:16, Greg Kroah-Hartman wrote: >>> On Tue, Oct 02, 2018 at 11:02:13PM +0200, Helge Deller wrote: please pull a last set of fixes for the parisc

[PATCH] zsmalloc: fix fall-through annotation

2018-10-03 Thread Gustavo A. R. Silva
Replace "fallthru" with a proper "fall through" annotation. This fix is part of the ongoing efforts to enabling -Wimplicit-fallthrough Signed-off-by: Gustavo A. R. Silva --- mm/zsmalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index

Re: [PATCH 1/4] mm/hugetlb: Enable PUD level huge page migration

2018-10-03 Thread Anshuman Khandual
On 10/03/2018 03:52 PM, Suzuki K Poulose wrote: > > > On 02/10/18 13:56, Anshuman Khandual wrote: >> >> >> On 10/02/2018 06:08 PM, Suzuki K Poulose wrote: >>> Hi Anshuman >>> >>> On 02/10/18 13:15, Anshuman Khandual wrote: Architectures like arm64 have PUD level HugeTLB pages for certain

linux-next: Tree for Oct 3

2018-10-03 Thread Stephen Rothwell
Hi all, Changes since 20181002: The vfs tree gained conflicts against the f2fs tree. The net-next tree gained a conflict against the net tree. The bpf-next tree gained a build failure so I used the version from next-20181002. The devicetree tree gained a conflict against the c6x tree. The

Re: [RFC PATCH v2 1/9] leds: add TI LMU backlight driver

2018-10-03 Thread Dan Murphy
Hello On 10/02/2018 05:07 PM, Pavel Machek wrote: > Hi! > >>> We have debated this over and over and now we have 3 different >>> implementations >>> available we need to collude on which one we want to support. >>> >>> Jacek I defer to you and Pavel since you are both LED maintainers. >>> >>> I

[PATCH] TC: Set DMA masks for devices

2018-10-03 Thread Maciej W. Rozycki
Fix a TURBOchannel support regression with commit 205e1b7f51e4 ("dma-mapping: warn when there is no coherent_dma_mask") that caused coherent DMA allocations to produce a warning such as: defxx: v1.11 2014/07/01 Lawrence V. Stefani and others tc1: DEFTA at MMIO addr = 0x1e90, IRQ = 20,

Re: [PATCH 4.18 000/228] 4.18.12-stable review

2018-10-03 Thread Guenter Roeck
On 10/02/2018 06:21 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.18.12 release. There are 228 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be

Re: [QUEUED v20180920 05/16] stm class: Add a helper for writing data packets

2018-10-03 Thread Alexander Shishkin
Mathieu Poirier writes: >> +static ssize_t notrace stm_write(struct stm_data *data, unsigned int master, >> + unsigned int channel, const char *buf, size_t count) >> +{ >> +ssize_t sz; >> + >> +sz = stm_data_write(data, master, channel, true, buf, count); >> +if

Re: [PATCH] mfd: cros-ec: copy the whole event in get_next_event_xfer

2018-10-03 Thread Neil Armstrong
Hi Enric, On 03/10/2018 13:01, Enric Balletbo i Serra wrote: > Hi Emil, > > Many thanks to catch this and fix. Some comments below. > > You missed to add the v2, please send the next patch with v3 prefix. > > On 28/9/18 19:08, Emil Karlson wrote: >> Commit

Re: [RFC PATCH] mtd: rawnand: ams-delta: use ->exec_op()

2018-10-03 Thread Boris Brezillon
On Wed, 03 Oct 2018 15:55:25 +0200 Janusz Krzysztofik wrote: > > > > > > Implementation of NAND_OP_WAITRDY_INSTR has been based on legacy > > > nand_wait_ready(), > > > > I don't remember what the ams-delta ->dev_ready()/->waitfunc() hooks > > are doing, but is shouldn't be too hard to

Re: [PATCH] perf/x86/intel: Add counter freezing quirk for Goldmont

2018-10-03 Thread Thomas Gleixner
On Wed, 3 Oct 2018, Liang, Kan wrote: > On 10/3/2018 9:55 AM, Thomas Gleixner wrote: > > On Wed, 3 Oct 2018, Liang, Kan wrote: > > > On 10/3/2018 2:10 AM, Thomas Gleixner wrote: > > > > There is another variant of model/stepping micro code verification code > > > > in > > > >

Re: [PATCH] spi: slave: Fix missing break in switch

2018-10-03 Thread Geert Uytterhoeven
Hi Gustavo, On Wed, Oct 3, 2018 at 2:57 PM Gustavo A. R. Silva wrote: > Apparently, this code does not actually fall through to the next case > because the machine restarts before it has a chance. However, for the > sake of maintenance and readability, we better add the missing break >

[PATCH] ALSA: intel8x0: Fix fall-through annotations

2018-10-03 Thread Gustavo A. R. Silva
Replace "fallthru" with a proper "fall through" annotation. This fix is part of the ongoing efforts to enabling -Wimplicit-fallthrough Signed-off-by: Gustavo A. R. Silva --- sound/pci/intel8x0.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/pci/intel8x0.c

Re: [PATCH] firmware: dcdbas: include linux/io.h

2018-10-03 Thread Andy Shevchenko
On Wed, Oct 3, 2018 at 12:17 AM Arnd Bergmann wrote: > > memremap() is declared in linux/io.h, not in asm/io.h, so we should > include that header to avoid build errors: > > drivers/platform/x86/dcdbas.c: In function 'dcdbas_check_wsmt': > drivers/platform/x86/dcdbas.c:572:15: error: implicit

Re: [PATCH v5 06/21] tpm: move tpm1_pcr_extend to tpm1-cmd.c

2018-10-03 Thread Jarkko Sakkinen
On Tue, Oct 02, 2018 at 02:58:00PM +0530, Nayna Jain wrote: > > > On 10/02/2018 06:12 AM, Jarkko Sakkinen wrote: > > On Sat, Sep 29, 2018 at 01:30:20AM +0300, Tomas Winkler wrote: > > > Move tpm1_pcr_extend to tpm1-cmd.c and remove > > > unused pcrextend_header structure and > > >

Re: [RFC PATCH v2 1/9] leds: add TI LMU backlight driver

2018-10-03 Thread Dan Murphy
Hello On 10/03/2018 07:00 AM, Dan Murphy wrote: > Hello > > On 10/02/2018 05:07 PM, Pavel Machek wrote: >> Hi! >> We have debated this over and over and now we have 3 different implementations available we need to collude on which one we want to support. Jacek I defer

[BUG] sound: pci: trident: a possible data race

2018-10-03 Thread Jia-Ju Bai
CPU0: snd_trident_hw_free snd_trident_free_voice line 3870: spin_lock_irqsave() line 3881: voice->substream = NULL; [WRITE] CPU1: snd_trident_interrupt line 3798: snd_pcm_period_elapsed(voice->substream); [READ] As for voice->substream, the WRITE operation in

Re: [PATCH V2 3/5] usb: xhci: tegra: Add genpd support

2018-10-03 Thread Jon Hunter
On 03/10/18 10:52, Ulf Hansson wrote: > [...] > >> static int tegra_xusb_probe(struct platform_device *pdev) >> { >> struct tegra_xusb_mbox_msg msg; >> @@ -1038,7 +1095,7 @@ static int tegra_xusb_probe(struct platform_device >> *pdev) >> goto put_padctl; >> }

Re: [RFC PATCH] mtd: rawnand: ams-delta: use ->exec_op()

2018-10-03 Thread Janusz Krzysztofik
On Wednesday, October 3, 2018 2:30:54 PM CEST Boris Brezillon wrote: > Hi Janusz, > > On Wed, 3 Oct 2018 14:00:28 +0200 > Janusz Krzysztofik wrote: > > > Replace legacy callbacks with ->select_chip() and ->exec_op(). > > Thanks for working on that, that's really appreciated. > > > > >

Re: [PATCH] kvm: nVMX: fix entry with pending interrupt if APICv is enabled

2018-10-03 Thread Nikita Leshenko
On Wed, 2018-10-03 at 13:47 +0200, Paolo Bonzini wrote: > Commit b5861e5cf2fcf83031ea3e26b0a69d887adf7d21 introduced a check on > the interrupt-window and NMI-window CPU execution controls in order to > inject an external interrupt vmexit before the first guest instruction > executes. However,

[GIT PULL] kselftest fixes update for Linux-4.19-rc7

2018-10-03 Thread Shuah Khan
Hi Greg, Please pull the following kselftest for 4.19-rc7. linux-kselftest-4.19-rc7 This fixes update for 4.19-rc7 consists one fix to rseq test to prevent it from seg-faulting when compiled with -fpie. diff is attached. thanks, -- Shuah

Re: [PATCH] stm class: fix a missing-check bug

2018-10-03 Thread Wenwen Wang
On Wed, Oct 3, 2018 at 2:57 AM Alexander Shishkin wrote: > > Wenwen Wang writes: > > > In stm_char_policy_set_ioctl(), the 'size' field of the struct > > 'stp_polic_id' is firstly copied from the user space and then checked, > > because the length of the 'id' field in this struct, which

Re: [PATCH] kvm: nVMX: fix entry with pending interrupt if APICv is enabled

2018-10-03 Thread Paolo Bonzini
On 03/10/2018 16:53, Sean Christopherson wrote: > Isn't enable_apicv redundant with kvm_vcpu_apicv_active()? And since > getting RVI requires a VMREAD, I think it would make sense to only > fall into this code if !evaluate_pending_interrupts, e.g.: > > if (!evaluate_pending_interrupts &&

Re: [PATCH] spi: slave: Fix missing break in switch

2018-10-03 Thread Mark Brown
On Wed, Oct 03, 2018 at 04:46:45PM +0200, Geert Uytterhoeven wrote: > On Wed, Oct 3, 2018 at 2:57 PM Gustavo A. R. Silva > > case CMD_REBOOT: > > dev_info(>spi->dev, "Rebooting system...\n"); > > kernel_restart(NULL); > > + break; >

Re: [PATCH v5 04/27] arm64: daifflags: Use irqflags functions for daifflags

2018-10-03 Thread Catalin Marinas
On Tue, Aug 28, 2018 at 04:51:14PM +0100, Julien Thierry wrote: > Some of the work done in daifflags save/restore is already provided > by irqflags functions. Daifflags should always be a superset of irqflags > (it handles irq status + status of other flags). Modifying behaviour of > irqflags

Re: [PATCH 6/6] lib/scatterlist: Fix overflow check in sgl_alloc_order

2018-10-03 Thread Bart Van Assche
On Wed, 2018-09-26 at 15:16 +0100, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > It is necessary to ensure types on both sides of the comparison are of the > same width. Otherwise the check overflows sooner than expect due left hand > side being an unsigned long length, and the right hand

Re: [PATCH] perf/x86/intel: Add counter freezing quirk for Goldmont

2018-10-03 Thread Peter Zijlstra
On Wed, Oct 03, 2018 at 08:10:31AM +0200, Thomas Gleixner wrote: > On Tue, 2 Oct 2018, kan.li...@linux.intel.com wrote: > > There is another variant of model/stepping micro code verification code in > intel_snb_pebs_broken(). Can we please make this table based and use a > common function? That's

Re: [PATCH] perf/x86/intel: Add counter freezing quirk for Goldmont

2018-10-03 Thread Borislav Petkov
On Wed, Oct 03, 2018 at 05:41:32PM +0200, Peter Zijlstra wrote: > On Wed, Oct 03, 2018 at 08:10:31AM +0200, Thomas Gleixner wrote: > > On Tue, 2 Oct 2018, kan.li...@linux.intel.com wrote: > > > > There is another variant of model/stepping micro code verification code in > >

Re: [PATCH v4 6/8] mtd: maps: gpio-addr-flash: Convert to gpiod

2018-10-03 Thread Ricardo Ribalda Delgado
Hi Boris On Wed, Oct 3, 2018 at 5:17 PM Boris Brezillon wrote: > > On Wed, 3 Oct 2018 17:11:14 +0200 > Boris Brezillon wrote: > > > Hi Ricardo, > > > > On Mon, 1 Oct 2018 14:43:49 +0200 > > Ricardo Ribalda Delgado wrote: > > > > > @@ -248,14 +252,19 @@ static int gpio_flash_probe(struct

Re: [RFC PATCH 10/10] arch/x86: Introduce QOS feature for AMD

2018-10-03 Thread Moger, Babu
On 10/02/2018 01:27 PM, Fenghua Yu wrote: > On Mon, Sep 24, 2018 at 07:19:16PM +, Moger, Babu wrote: >> int parse_bw(void *_buf, struct rdt_resource *r, struct rdt_domain *d); >> +int parse_bw_amd(void *_buf, struct rdt_resource *r, struct rdt_domain *d); > > Please note the type of _buf

Re: [PATCH 0/6] lib/scatterlist: sgl API fixes and cleanups

2018-10-03 Thread Bart Van Assche
On Wed, 2018-09-26 at 15:16 +0100, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > Mostly same fixes and cleanups I've sent earlier in the year, but with some > patches dropped and some split into smaller ones as per request. I think in order for a patch series to get noticed that the

[PATCH v9 3/3]: perf record: extend trace writing to multi AIO

2018-10-03 Thread Alexey Budankov
Multi AIO trace writing allows caching more kernel data into userspace memory postponing trace writing for the sake of overall profiling data thruput increase. It could be seen as kernel data buffer extension into userspace memory. With aio-cblocks option value different from 0, current

Re: [PATCH v7 08/14] sched/topology: Disable EAS on inappropriate platforms

2018-10-03 Thread Peter Zijlstra
On Wed, Sep 12, 2018 at 10:13:03AM +0100, Quentin Perret wrote: > @@ -288,6 +321,21 @@ static void build_perf_domains(const struct cpumask > *cpu_map) > goto free; > tmp->next = pd; > pd = tmp; > + > + /* > + * Count

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-10-03 Thread Jann Horn
On Mon, Oct 1, 2018 at 10:53 PM Alexey Budankov wrote: > On 01.10.2018 19:11, Thomas Gleixner wrote: > > Peter and I discussed that and we came up with the idea that the file > > descriptor is not even required, i.e. you could make it backward > > compatible. > > > > perf_event_open() knows which

[PATCH 0/3] HID: debug: fix the ring buffer implementation

2018-10-03 Thread Vladis Dronov
This patchset is fixing some aspects of the ring buffer implementation in drivers/hid/hid-debug.c. This implementation has certain problem points: - it may stuck in an infinite loop - it may return corrupted data - a reader and a writer are not protected by spinlocks, which can lead to the

[PATCH 1/3] HID: debug: avoid infinite loop and corrupting data

2018-10-03 Thread Vladis Dronov
hid_debug_events_read() does not properly handle the case when tail < head and count < HID_DEBUG_BUFSIZE - head and returns corrupted data. Also, after commit 717adfdaf147 ("HID: debug: check length before copy_to_user()") it can enter an infinite loop if called with count == 0. Fix this by

[PATCH v3 13/15] platform: goldfish: pipe: Add a dedicated constant for the device name

2018-10-03 Thread rkir
From: Roman Kiryanov Create a constant to refer to the device name instead if several copies of a string. Signed-off-by: Roman Kiryanov --- Changes in v3: - No change. Changes in v2: - No change. drivers/platform/goldfish/goldfish_pipe.h| 2 ++

[PATCH v3 12/15] platform: goldfish: pipe: Rename the init function (add "v2")

2018-10-03 Thread rkir
From: Roman Kiryanov This is the v2 driver. v1 will be added later. Signed-off-by: Roman Kiryanov --- Changes in v3: - No change. Changes in v2: - No change. drivers/platform/goldfish/goldfish_pipe.c| 2 +- drivers/platform/goldfish/goldfish_pipe_v2.c | 6 +++---

Re: [PATCH] soc: qcom: Add irq clear handling during SE init

2018-10-03 Thread Doug Anderson
Hi, On Wed, Oct 3, 2018 at 5:24 AM Alok Chauhan wrote: > > when the kernel inits a SE, its quite possible we have pending interrupts > from bootloaders which did not handle/clear them. So do this in kernel at > the SE init, to avoid some of it causing bad behavior, while at it also > club all

[PATCH] nvmem: Convert to using %pOFn instead of device_node.name

2018-10-03 Thread Srinivas Kandagatla
From: Rob Herring In preparation to remove the node name pointer from struct device_node, convert printf users to use the %pOFn format specifier. Cc: Srinivas Kandagatla Signed-off-by: Rob Herring [srinivas: rebased on top of next] Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/core.c

Re: [PATCH 2/3] x86/intel_rdt: CBM overlap should also check for overlap with CDP peer

2018-10-03 Thread Reinette Chatre
Hi Thomas, On 10/3/2018 12:02 AM, Thomas Gleixner wrote: > On Wed, 26 Sep 2018, Reinette Chatre wrote: >> /** >> - * rdtgroup_cbm_overlaps - Does CBM for intended closid overlap with other >> + * _rdtgroup_cbm_overlaps - Does CBM for intended closid overlap with other >> * @r: Resource to

Re: [PATCH v4 6/8] mtd: maps: gpio-addr-flash: Convert to gpiod

2018-10-03 Thread Boris Brezillon
On Wed, 3 Oct 2018 17:11:14 +0200 Boris Brezillon wrote: > Hi Ricardo, > > On Mon, 1 Oct 2018 14:43:49 +0200 > Ricardo Ribalda Delgado wrote: > > > @@ -248,14 +252,19 @@ static int gpio_flash_probe(struct platform_device > > *pdev) > > > > i = 0; > > do { > > - if

[PATCH v2 2/3] i2c: mux: ltc4306: simplify code to reach the adapter

2018-10-03 Thread Luca Ceresoli
From: Luca Ceresoli struct i2c_client has a direct pointer to the adapter, no need to dig it out of the struct device tree. Suggested-by: Peter Rosin Signed-off-by: Luca Ceresoli --- drivers/i2c/muxes/i2c-mux-ltc4306.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 1/3] i2c: mux: pca954x: simplify code to reach the adapter

2018-10-03 Thread Luca Ceresoli
From: Luca Ceresoli struct i2c_client has a direct pointer to the adapter, no need to dig it out of the struct device tree. Signed-off-by: Luca Ceresoli --- drivers/i2c/muxes/i2c-mux-pca954x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 3/3] i2c: mux: mlxcpld: simplify code to reach the adapter

2018-10-03 Thread Luca Ceresoli
From: Luca Ceresoli struct i2c_client has a direct pointer to the adapter, no need to dig it out of the struct device tree. Suggested-by: Peter Rosin Signed-off-by: Luca Ceresoli --- drivers/i2c/muxes/i2c-mux-mlxcpld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH] spi: pxa2xx: Mark expected switch fall-through

2018-10-03 Thread Gustavo A. R. Silva
On 10/3/18 5:22 PM, Mark Brown wrote: > On Wed, Oct 03, 2018 at 02:12:11PM +0200, Gustavo A. R. Silva wrote: > >> switch (drv_data->n_bytes) { >> case 4: >> bytes_left >>= 1; >> +/* Fall through

Re: [PATCH 2/4] mm: introduce put_user_page(), placeholder version

2018-10-03 Thread Jan Kara
On Thu 27-09-18 22:39:48, john.hubb...@gmail.com wrote: > From: John Hubbard > > Introduces put_user_page(), which simply calls put_page(). > This provides a way to update all get_user_pages*() callers, > so that they call put_user_page(), instead of put_page(). > > Also adds

Re: [PATCH v5 1/3] staging: mt7621-mmc: Remove #if 0 blocks

2018-10-03 Thread Nishad Kamdar
On Tue, Oct 02, 2018 at 03:16:36PM -0700, Greg Kroah-Hartman wrote: > On Mon, Oct 01, 2018 at 08:13:40PM +0530, Nishad Kamdar wrote: > > This patch removes #if 0 code blocks and usages of > > functions defined in the #if 0 blocks. > > > > Signed-off-by: Nishad Kamdar > > --- > >

[PATCH 2/2] pwm: Kconfig: Enable TI ECAP driver for ARCH_K3

2018-10-03 Thread Vignesh R
K3 devices have the same ECAP IP as OMAP SoC. Enable driver to be built for K3 devices. Signed-off-by: Vignesh R Signed-off-by: Sekhar Nori --- drivers/pwm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig index

Re: [PATCH v2 4/5] locking/lockdep: Make class->ops a percpu counter

2018-10-03 Thread Waiman Long
On 10/03/2018 09:57 AM, Waiman Long wrote: > On 10/03/2018 03:48 AM, Peter Zijlstra wrote: >> On Tue, Oct 02, 2018 at 04:19:19PM -0400, Waiman Long wrote: >>> +DEFINE_PER_CPU(unsigned long [MAX_LOCKDEP_KEYS], lock_class_ops); >>> @@ -179,9 +181,30 @@ DECLARE_PER_CPU(struct lockdep_stats,

[PATCH 1/2] dt-bindings: pwm: tiecap: Add TI AM654 SoC specific compatible

2018-10-03 Thread Vignesh R
Add a new compatible string "ti,am654-ecap" to support PWM ECAP IP of TI AM654 SoC. Signed-off-by: Vignesh R Signed-off-by: Sekhar Nori --- Documentation/devicetree/bindings/pwm/pwm-tiecap.txt | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 3/3] HID: debug: fix the ring buffer writer implementation

2018-10-03 Thread Vladis Dronov
ring buffer implementation hid_debug_event() is strange allowing a lost of data. it does not move head pointer on append and uses per-byte for() loop. fix this by introducing a new ring buffer implementation, which overwrites the oldest data in case of the ring buffer overflow. it uses some

[PATCH 2/3] HID: debug: provide reader-writer locking for the ring buffer

2018-10-03 Thread Vladis Dronov
hdev->debug_list->hid_debug_buf is not protected from concurrent updates from the writer, hid_debug_event() and reads by the reader, hid_debug_events_read(). Fix this by adding per-list-element spinlock. Also introduce a temporary buffer tempbuf so copy_to_user() is not called from under a

Re: X86-64 uses generic string functions (strlen, strchr, memcmp, ...)

2018-10-03 Thread Ingo Molnar
* Jann Horn wrote: > Hi! > > I noticed that X86-64 is using the generic string functions from > lib/string.c for things like strlen(), strchr(), memcmp() and so on. > Is that an intentional omission, because they're not considered worth > optimizing, or is this an oversight? The kernel

Re: [RFC PATCH] mm, proc: report PR_SET_THP_DISABLE in proc

2018-10-03 Thread Mike Rapoport
On Tue, Oct 02, 2018 at 01:29:42PM -0700, David Rientjes wrote: > On Tue, 2 Oct 2018, Michal Hocko wrote: > > > On Wed 26-09-18 08:06:24, Michal Hocko wrote: > > > On Tue 25-09-18 15:04:06, Andrew Morton wrote: > > > > On Tue, 25 Sep 2018 14:45:19 -0700 (PDT) David Rientjes > > > > wrote: > > >

Re: [PATCH 4.18 000/228] 4.18.12-stable review

2018-10-03 Thread Guenter Roeck
On Wed, Oct 03, 2018 at 12:53:11PM -0500, Rob Herring wrote: > On Wed, Oct 3, 2018 at 12:24 PM Guenter Roeck wrote: > > > > On Wed, Oct 03, 2018 at 09:25:39AM -0700, Greg Kroah-Hartman wrote: > > > On Wed, Oct 03, 2018 at 05:59:09AM -0700, Guenter Roeck wrote: > > > > On 10/02/2018 06:21 AM, Greg

Re: [PATCH] regulator: fixed: Default enable high on DT regulators

2018-10-03 Thread Leonard Crestez
On Wed, 2018-10-03 at 13:10 +0100, Mark Brown wrote: > On Tue, Oct 02, 2018 at 01:42:38PM +, Leonard Crestez wrote: > > > This turns the phy off and on again instead of leaving it up from uboot > > and it doesn't work for some reason. However looking at > > reg_fixed_voltage_probe introducing

Re: [GIT PULL] kselftest fixes update for Linux-4.19-rc7

2018-10-03 Thread Greg Kroah-Hartman
On Wed, Oct 03, 2018 at 08:42:13AM -0600, Shuah Khan wrote: > Hi Greg, > > Please pull the following kselftest for 4.19-rc7. > > linux-kselftest-4.19-rc7 > > This fixes update for 4.19-rc7 consists one fix to rseq test to prevent > it from seg-faulting when compiled with -fpie. Now merged,

[PATCH] Fix compat_sys_preadv64v2/compat_sys_pwritev64v2

2018-10-03 Thread H.J. Lu
Update compat_sys_preadv64v2 and compat_sys_pwritev64v2 to handle the offset argument == -1, which should use and update the the current file offset. Signed-off-by: H.J. Lu --- fs/read_write.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/fs/read_write.c b/fs/read_write.c index

X86-64 uses generic string functions (strlen, strchr, memcmp, ...)

2018-10-03 Thread Jann Horn
Hi! I noticed that X86-64 is using the generic string functions from lib/string.c for things like strlen(), strchr(), memcmp() and so on. Is that an intentional omission, because they're not considered worth optimizing, or is this an oversight? The kernel doesn't use string functions much, but if

Re: [PATCH] spi: slave: Fix missing break in switch

2018-10-03 Thread Geert Uytterhoeven
Hi Gustavo, On Wed, Oct 3, 2018 at 5:05 PM Gustavo A. R. Silva wrote: > On 10/3/18 5:01 PM, Mark Brown wrote: > > On Wed, Oct 03, 2018 at 04:46:45PM +0200, Geert Uytterhoeven wrote: > >> On Wed, Oct 3, 2018 at 2:57 PM Gustavo A. R. Silva > > > >>> case CMD_REBOOT: > >>>

Re: [PATCH v4 6/8] mtd: maps: gpio-addr-flash: Convert to gpiod

2018-10-03 Thread Boris Brezillon
Hi Ricardo, On Mon, 1 Oct 2018 14:43:49 +0200 Ricardo Ribalda Delgado wrote: > @@ -248,14 +252,19 @@ static int gpio_flash_probe(struct platform_device > *pdev) > > i = 0; > do { > - if (devm_gpio_request(>dev, state->gpio_addrs[i], > -

Re: [PATCH] spi: slave: Fix missing break in switch

2018-10-03 Thread Mark Brown
On Wed, Oct 03, 2018 at 05:05:04PM +0200, Gustavo A. R. Silva wrote: > I'll include the __noreturn in addition to the break statement. > I'll send v2 shortly. No need for a v2, I already applied this - adding __noreturn seems like a separate (although desirable) effort. signature.asc

Re: [RFC PATCH 07/10] arch/x86: Bring few more functions into the resource structure

2018-10-03 Thread Moger, Babu
On 10/02/2018 05:07 PM, Reinette Chatre wrote: > Hi Babu, > > On 9/24/2018 12:19 PM, Moger, Babu wrote: >> Bring all resource functions that are different between the vendors >> into resource structure and initialize them dynamically. >> >> Implement these functions separately for each vendors.

Re: [PATCH 5/6] lib/scatterlist: Use appropriate type for elem_len in sgl_alloc_order

2018-10-03 Thread Bart Van Assche
On Wed, 2018-09-26 at 15:16 +0100, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > We should not use an explicit width u32 for elem_len but unsinged int to > match the underlying type in struct scatterlist. Reviewed-by: Bart Van Assche

[PATCH v9 0/3]: perf: reduce data loss when profiling highly parallel CPU bound workloads

2018-10-03 Thread Alexey Budankov
Currently in record mode the tool implements trace writing serially. The algorithm loops over mapped per-cpu data buffers and stores ready data chunks into a trace file using write() system call. At some circumstances the kernel may lack free space in a buffer because the other buffer's half

Re: [BUG] sound: pci: trident: a possible data race

2018-10-03 Thread Takashi Iwai
On Wed, 03 Oct 2018 14:50:25 +0200, Jia-Ju Bai wrote: > > CPU0: > snd_trident_hw_free > snd_trident_free_voice > line 3870: spin_lock_irqsave() > line 3881: voice->substream = NULL; [WRITE] > CPU1: > snd_trident_interrupt > line 3798:

Re: [PATCH] spi: pxa2xx: Mark expected switch fall-through

2018-10-03 Thread Gustavo A. R. Silva
On 10/3/18 5:27 PM, Gustavo A. R. Silva wrote: > > > On 10/3/18 5:22 PM, Mark Brown wrote: >> On Wed, Oct 03, 2018 at 02:12:11PM +0200, Gustavo A. R. Silva wrote: >> >>> switch (drv_data->n_bytes) { >>> case 4: >>> bytes_left

[PATCH 1/2] dt-bindings: phy: Document cadence Sierra PHY bindings

2018-10-03 Thread Alan Douglas
Add DT binding documentation for Sierra PHY. The PHY supports a number of different protocols, including PCIe and USB. The PHY lanes may be configured as single or multi-lane links. Each link is treated as a separate sub-node. For example, if there are 4 lanes in total the first 2 might be

[PATCH 0/2] phy: cadence: Add driver and dt-bindings for Sierra PHY

2018-10-03 Thread Alan Douglas
The Cadence Sierra PHY supports a number of different protocols. This series adds a driver with support for USB3 and PCIe modes. Only one clock frequency is currently supported, so the value of clock provided in device tree is ignored. Changes since RFC v2: * Devicetree bindings modified as

Re: [PATCH 0/4] get_user_pages*() and RDMA: first steps

2018-10-03 Thread Jan Kara
On Tue 02-10-18 11:14:47, Dave Chinner wrote: > On Mon, Oct 01, 2018 at 05:47:57AM -0700, Christoph Hellwig wrote: > > On Mon, Oct 01, 2018 at 04:11:27PM +1000, Dave Chinner wrote: > > > This reminds me so much of Linux mmap() in the mid-2000s - mmap() > > > worked for ext3 without being aware of

Re: [PATCH] cdrom: fix improper type cast, which can leat to information leak.

2018-10-03 Thread Jens Axboe
On 10/3/18 6:54 AM, Yang Xiao wrote: > From: Young_X > > There is another cast from unsigned long to int which causes > a bounds check to fail with specially crafted input. The value is > then used as an index in the slot array in cdrom_slot_status(). > > This issue is similar to CVE-2018-16658

[PATCH 0/3] ARM: dts: stm32: add dmas to stm32mp157c timers

2018-10-03 Thread Fabrice Gasnier
This series adds dmas description to stm32mp157c device tree file. But dmas are kept disabled by default on all boards. They are only necessary for PWM capture. So, spare them for other usage by default. Fabrice Gasnier (3): ARM: dts: stm32: Add dmas to timer on stm32mp157c ARM: dts: stm32:

[PATCH 3/3] ARM: dts: stm32: don't use timers dmas on stm32mp157c-ev1

2018-10-03 Thread Fabrice Gasnier
Spare dmas when using timers on stm32mp157c-ev1. Signed-off-by: Fabrice Gasnier --- arch/arm/boot/dts/stm32mp157c-ev1.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp157c-ev1.dts b/arch/arm/boot/dts/stm32mp157c-ev1.dts index 372bc2e..89bb35d 100644 ---

[PATCH v2] Bluetooth: hci_qca: Add support for controller debug logs.

2018-10-03 Thread Balakrishna Godavarthi
This patch will prevent error messages splashing on console. [ 78.426697] Bluetooth: hci_core.c:hci_acldata_packet() hci0: ACL packet for unknown connection handle 3804 [ 78.436682] Bluetooth: hci_core.c:hci_acldata_packet() hci0: ACL packet for unknown connection handle 3804 [ 78.446639]

[PATCH v2] kvm: nVMX: fix entry with pending interrupt if APICv is enabled

2018-10-03 Thread Paolo Bonzini
Commit b5861e5cf2fcf83031ea3e26b0a69d887adf7d21 introduced a check on the interrupt-window and NMI-window CPU execution controls in order to inject an external interrupt vmexit before the first guest instruction executes. However, when APIC virtualization is enabled the host does not need a

Re: [RFC PATCH 06/10] arch/x86: Initialize the resource functions that are different

2018-10-03 Thread Moger, Babu
On 10/02/2018 05:06 PM, Reinette Chatre wrote: > Hi Babu, > > On 9/24/2018 12:19 PM, Moger, Babu wrote: >> Initialize the resource functions that are different between the >> vendors. Some features are initialized differently between the vendors. >> >> For example, MBA feature varies

Re: [PATCH 1/6] lib/scatterlist: Use natural long for sgl_alloc(_order) length parameter

2018-10-03 Thread Bart Van Assche
On Wed, 2018-09-26 at 15:16 +0100, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > None of the callers need unsinged long long (they either pass in an int, unsigned? > u32, or size_t) so it is not required to burden the 32-bit

[PATCH v2] regulator: bd718x7: Remove struct bd718xx_pmic

2018-10-03 Thread Axel Lin
All the fields in struct bd718xx_pmic are not really necessary. Remove struct bd718xx_pmic to simplify the code. Signed-off-by: Axel Lin --- v2: Sorry, just update the subject line. drivers/regulator/bd718x7-regulator.c | 59 +-- 1 file changed, 20 insertions(+), 39

Re: [PATCH v3 0/7] Remove errors building drivers/DRIVERNAME

2018-10-03 Thread Leonardo Bras
On Mon, Oct 1, 2018 at 4:56 AM Robert Richter wrote: > > On 27.09.18 23:08:09, Leonardo Brás wrote: > > This Patchset changes some driver's Makefile to allow them building > > using the command 'make drivers/DRIVERNAME', if compatible. > > > > The changed drivers would return error if the above

[PATCH 2/2] phy: cadence: Add driver for Sierra PHY

2018-10-03 Thread Alan Douglas
Add a Sierra PHY driver with PCIe and USB support. The PHY has multiple lanes, which can be configured into groups, and a generic PHY device is created for each group. There are two resets controlling the overall PHY block, one to enable the APB interface for programming registers, and another

SoCFPGA Turn on ARM errata for L2 cache ?

2018-10-03 Thread Clément Péron
Hi, Saw this patch on the Altera OpenSource GitHub. But it's not mainlained can I propose it? How do you do when the patch is from someone else ? Do you keep the sign-off of the original author or do you just mention it? in the commit log ? Thanks, Clement >From

Re: [PATCH 0/4] get_user_pages*() and RDMA: first steps

2018-10-03 Thread Jan Kara
On Sat 29-09-18 04:46:09, Jerome Glisse wrote: > On Fri, Sep 28, 2018 at 07:28:16PM -0700, John Hubbard wrote: > > Actually, the latest direction on that discussion was toward periodically > > writing back, even while under RDMA, via bounce buffers: > > > >

Re: [PATCH] ALSA: intel8x0: Fix fall-through annotations

2018-10-03 Thread Takashi Iwai
On Wed, 03 Oct 2018 12:38:36 +0200, Gustavo A. R. Silva wrote: > > Replace "fallthru" with a proper "fall through" annotation. > > This fix is part of the ongoing efforts to enabling > -Wimplicit-fallthrough > > Signed-off-by: Gustavo A. R. Silva Thanks, applied. Takashi

[PATCH v9 2/3]: perf record: enable asynchronous trace writing

2018-10-03 Thread Alexey Budankov
Trace file offset is calculated and updated linearly prior enqueuing aio write at record__pushfn(). record__aio_sync() blocks till completion of started AIO operation and then proceeds. record__mmap_read_sync() implements a barrier for all incomplete aio write requests. Signed-off-by: Alexey

Re: [PATCH 3/4] infiniband/mm: convert to the new put_user_page() call

2018-10-03 Thread Jan Kara
On Fri 28-09-18 20:12:33, John Hubbard wrote: > static inline void release_user_pages(struct page **pages, > - unsigned long npages) > + unsigned long npages, > + bool set_dirty) > { > -

Re: [PATCH v2] Bluetooth: hci_qca: Add support for controller debug logs.

2018-10-03 Thread Marcel Holtmann
Hi Balakrishna, > This patch will prevent error messages splashing on console. > > [ 78.426697] Bluetooth: hci_core.c:hci_acldata_packet() hci0: ACL packet > for unknown connection handle 3804 > [ 78.436682] Bluetooth: hci_core.c:hci_acldata_packet() hci0: ACL packet > for unknown

[PATCH v3] perf record: encode -k clockid frequency into Perf trace

2018-10-03 Thread Alexey Budankov
Store -k clockid frequency into Perf trace to enable timestamps derived metrics conversion into wall clock time on reporting stage. Below is the example of perf report output: tools/perf/perf record -k raw -- ../../matrix/linux/matrix.gcc ... [ perf record: Captured and wrote 31.222 MB

[PATCH 0/3] spi-nor: Add Octal SPI support

2018-10-03 Thread Vignesh R
This series adds support for octal mode of mt35x flash. Also, adds support for OSPI version of Cadence QSPI controller. Based on top of patches adding basic support for mt35xu512aba here: https://patchwork.ozlabs.org/cover/971437/ Vignesh R (3): mtd: spi-nor: Add Octal mode support for

[PATCH 3/3] mtd: spi-nor: cadence-quadspi: Add support for Octal SPI controller

2018-10-03 Thread Vignesh R
Cadence OSPI controller IP supports Octal IO (x8 IO lines), It also has an integrated PHY. IP register layout is very similar to existing QSPI IP except for additional bits to support Octal and Octal DDR mode. Therefore, extend current driver to support Octal mode. Signed-off-by: Vignesh R ---

Re: 4.14 backport request for dbdda842fe96f: "printk: Add console owner and waiter logic to load balance console writes"

2018-10-03 Thread Daniel Wang
On Wed, Oct 3, 2018 at 2:14 AM Petr Mladek wrote: > > On Tue 2018-10-02 21:23:27, Steven Rostedt wrote: > > I don't see the big deal of backporting this. The biggest complaints > > about backports are from fixes that were added to late -rc releases > > where the fixes didn't get much testing.

Re: [PATCH v1] ras: Use consistent types for UUIDs

2018-10-03 Thread Andy Shevchenko
On Fri, Jul 13, 2018 at 04:10:27PM +0300, Andy Shevchenko wrote: > The commit > > 297b64c74385 ("ras: acpi / apei: generate trace event for unrecognized CPER > section") > > brought inconsistency in UUID types which are used across the RAS subsystem. > > Fix this by moving to use guid_t

Re: [PATCH V5 3/3] spi: spi-geni-qcom: Add SPI driver support for GENI based QUP

2018-10-03 Thread Doug Anderson
Hi, On Wed, Oct 3, 2018 at 6:45 AM Alok Chauhan wrote: > +static irqreturn_t geni_spi_isr(int irq, void *data) > +{ > + struct spi_master *spi = data; > + struct spi_geni_master *mas = spi_master_get_devdata(spi); > + struct geni_se *se = >se; > + u32 m_irq; > +

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