[PATCH v3 00/38] Tegra SDHCI add support for HS200 and UHS signaling

2018-08-30 Thread Aapo Vienamo
Hi all, This series implements support for faster signaling modes on Tegra SDHCI controllers. This series consist of several parts: changes required for 1.8 V signaling and pad control, pad calibration, and tuning. Following earlies patch sets have been merged into this larger set: "Tegra PMC

[PATCH v3 02/38] dt-bindings: mmc: tegra: Add pad voltage control properties

2018-08-30 Thread Aapo Vienamo
Document the pinctrl bindings used by the SDHCI driver to reconfigure pad voltages on controllers supporting multiple voltage levels. Signed-off-by: Aapo Vienamo Reviewed-by: Mikko Perttunen Reviewed-by: Rob Herring Acked-by: Thierry Reding --- .../bindings/mmc/nvidia,tegra20-sdhci.txt |

[PATCH v3 01/38] dt-bindings: Add Tegra PMC pad configuration bindings

2018-08-30 Thread Aapo Vienamo
Document the PMC pinctrl bindings for pad power state and signaling voltage configuration. Both nvidia,tegra186-pmc.txt and nvidia,tegra20-pmc.txt are modified as they both cover SoC generations for which these bindings apply. Add a header defining Tegra PMC pad voltage configurations.

[PATCH v3 03/38] dt-bindings: Add Tegra SDHCI pad pdpu offset bindings

2018-08-30 Thread Aapo Vienamo
Add bindings documentation for pad pull up and pull down offset values to be programmed before executing automatic pad drive strength calibration. Signed-off-by: Aapo Vienamo Acked-by: Thierry Reding --- .../bindings/mmc/nvidia,tegra20-sdhci.txt | 35 +++ 1 file changed, 35

[PATCH v3 04/38] dt-bindings: mmc: Add Tegra SDHCI sampling trimmer values

2018-08-30 Thread Aapo Vienamo
Document the Tegra SDHCI inbound and outbound sampling trimmer values. Signed-off-by: Aapo Vienamo Acked-by: Thierry Reding --- .../devicetree/bindings/mmc/nvidia,tegra20-sdhci.txt | 11 +++ 1 file changed, 11 insertions(+) diff --git

Re: [PATCH] arm64: defconfig: enable EFI_ARMSTUB_DTB_LOADER

2018-08-30 Thread Olof Johansson
On Wed, Aug 29, 2018 at 10:54 PM, Ard Biesheuvel wrote: > On 29 August 2018 at 20:59, Scott Branden wrote: >> Hi Olof, >> >> >> On 18-08-29 11:44 AM, Olof Johansson wrote: >>> >>> Hi, >>> >>> On Wed, Aug 29, 2018 at 10:21 AM, Scott Branden >>> wrote: Enable EFI_ARMSTUB_DTB_LOADER to

Re: [PATCH 2/2] x86/mm/KASLR: Adjust the vmemmap size according to paging mode

2018-08-30 Thread Baoquan He
Hi Kirill, I made a new version according to your suggestion, just a little different, I didn't make 1TB as default, just calculate with the actual size, then align up to 1TB boundary. Just found kcore is printing more entries than before, I thought it's caused by my code, later got it was

Re: [PATCH 2/3] iio: adc: Add Xilinx AMS driver

2018-08-30 Thread Randy Dunlap
On 08/30/2018 03:22 AM, Manish Narani wrote: > diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig > index 4a75492..405ea00 100644 > --- a/drivers/iio/adc/Kconfig > +++ b/drivers/iio/adc/Kconfig > @@ -941,4 +941,14 @@ config XILINX_XADC > The driver can also be build as a

Re: [PATCH tip/core/rcu 0/52] Remove rcu_state pointers for v4.20/v5.0

2018-08-30 Thread Steven Rostedt
On Wed, 29 Aug 2018 21:10:17 -0700 "Paul E. McKenney" wrote: > On Wed, Aug 29, 2018 at 08:22:16PM -0700, Paul E. McKenney wrote: > > On Wed, Aug 29, 2018 at 10:00:26PM -0400, Steven Rostedt wrote: > > > On Wed, 29 Aug 2018 15:38:30 -0700 > > > "Paul E. McKenney" wrote: > > > > > > > Hello!

Re: [PATCH 5/8] RISC-V: Rename im_okay_therefore_i_am to found_boot_cpu

2018-08-30 Thread Atish Patra
On 8/30/18 7:41 AM, Christoph Hellwig wrote: struct device_node *dn = NULL; - int hart, im_okay_therefore_i_am = 0; + int hart, found_boot_cpu = 0; If you rename this anyway please switch to use a bool. I can address the comment on this patch and fold it in my series to

[PATCH 3/4] staging: comedi: Correct multiline dereference as per TODO

2018-08-30 Thread Ray Clinton
Using checkpatch.pl I was able to find a multiline dereference which goes again the coding style for the kernel. I'm still working on my email client so the indentation looks bad here (in gmail) but the arguments for ni_tio_set_mite_channel should go just under the opening ( Signed-off-by: Ray

[PATCH 4/4] staging: comedi: Correct multiline dereference as per TODO

2018-08-30 Thread Ray Clinton
Using checkpatch.pl I was able to find a multiline dereference which goes again the coding style for the kernel. I'm still working on my email client so the indentation looks bad here (in gmail) but the arguments for comedi_check_trigger_arg_min should go just under the opening ( Signed-off-by:

[PATCH 2/4] staging: comedi: Correct multiline dereference as per TODO

2018-08-30 Thread Ray Clinton
Using checkpatch.pl I was able to find a multiline dereference which goes again the coding style for the kernel. I'm still working on my email client so the indentation looks bad here (in gmail) but the arguments for comedi_check_trigger_arg_min should go just under the opening ( Signed-off-by:

32-bit PTI with THP = userspace corruption

2018-08-30 Thread Meelis Roos
I am seeing userland corruption and application crashes on multiple 32-bit machines with 4.19-rc1+git. The machines vary: PII, PIII, P4. They are all Intel. AMD Duron/Athlon/AthlonMP have been fine in my tests so far (may be configuration dependent). Typical problem is running aptitude in

[PATCH 2/2] soc: qcom: geni: geni_se_clk_freq_match() should always accept multiples

2018-08-30 Thread Douglas Anderson
The geni_se_clk_freq_match() has some strange semantics. Specifically it is defined with two modes: 1. It can find a clock that's an exact multiple of the requested rate 2. If can find a non-exact match but it can't handle multiples then ...but callers should always be able to handle a clock

Re: [PATCH v2 1/1] perf: Sharing PMU counters across compatible events

2018-08-30 Thread Song Liu
> On Aug 30, 2018, at 8:13 AM, Jiri Olsa wrote: > > On Wed, Aug 15, 2018 at 10:03:13AM -0700, Song Liu wrote: > > SNIP > >> >> +perf_event_remove_dup(event, ctx); >> /* >> * We can have double detach due to exit/hot-unplug + close. >> */ >> @@ -1982,6 +2123,92 @@

Re: [PATCH tip/core/rcu 3/3] srcu: Make early-boot call_srcu() reuse workqueue lists

2018-08-30 Thread Steven Rostedt
On Thu, 30 Aug 2018 10:37:42 -0700 "Paul E. McKenney" wrote: > > > But still triggered the following: > > > > > > WARNING: CPU: 0 PID: 0 at > > > /work/git/linux-trace.git/kernel/rcu/srcutree.c:242 > > > check_init_srcu_struct+0x85/0x90 > > > > Gah!!! I needed to have removed that

[PATCH v1] ARM: tegra: cpuidle: Handle tick broadcasting within cpuidle core on Tegra20/30

2018-08-30 Thread Dmitry Osipenko
Tegra20/30 drivers do not handle the tick_broadcast_enter() error, let's just move out the broadcasting to the CPUIDLE core by setting the respective flag in the Tegra20/30 drivers. Signed-off-by: Dmitry Osipenko --- arch/arm/mach-tegra/cpuidle-tegra20.c | 11 ++-

Re: [PATCH V3] drm: handle error values properly

2018-08-30 Thread Nicholas Mc Guire
On Wed, Jul 18, 2018 at 11:14:04AM +0200, Nicholas Mc Guire wrote: > drm_legacy_ctxbitmap_next() returns idr_alloc() which can return > -ENOMEM, -EINVAL or -ENOSPC none of which are -1. since drm_context_t > is an unsigned int an intermediate variable is used to handle the > error cases, and then

[PATCH] lib/parser.c: switch match_u64int() over to use match_strdup()

2018-08-30 Thread Eric Biggers
From: Eric Biggers This simplifies the code. No change in behavior. Signed-off-by: Eric Biggers --- lib/parser.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/parser.c b/lib/parser.c index 96656a6dd59b..dd70e5e6c9e2 100644 --- a/lib/parser.c +++ b/lib/parser.c

Re: [rfc] leds: add TI LMU backlight driver

2018-08-30 Thread kbuild test robot
Hi Pavel, I love your patch! Yet something to improve: [auto build test ERROR on j.anaszewski-leds/for-next] [also build test ERROR on v4.19-rc1 next-20180830] [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: 32-bit PTI with THP = userspace corruption

2018-08-30 Thread Joerg Roedel
Hi Meelis, On Thu, Aug 30, 2018 at 09:09:19PM +0300, Meelis Roos wrote: > I am seeing userland corruption and application crashes on multiple > 32-bit machines with 4.19-rc1+git. The machines vary: PII, PIII, P4. > They are all Intel. AMD Duron/Athlon/AthlonMP have been fine in my tests > so

Re: [PATCH] clk: ti: fix OF child-node lookup

2018-08-30 Thread Stephen Boyd
Quoting Johan Hovold (2018-08-22 02:03:19) > Fix child-node lookup which by using the wrong OF helper was searching > the whole tree depth-first, something which could end up matching an > unrelated node. > > Also fix the related node-reference leaks. > > Fixes: 5b385a45e001 ("clk: ti: add

Re: [PATCH v4 0/4] Add the BQ25896 charger IC

2018-08-30 Thread Sebastian Reichel
Hi, On Tue, Jul 31, 2018 at 11:49:05AM -0600, Angus Ainslie (Purism) wrote: > Changes since v3: > > Corrected reviewed-by tags. > Fix typos. > Clarify desscriptions of patches. > > Changes since v2: > > Remove additional un-used table entries. > Use the exsisting compitble string for the new

Re: [PATCH] leds: add TI LMU backlight driver

2018-08-30 Thread Jacek Anaszewski
Hi Pavel, Thank you for the patch. Looking for DT bindings I can find the following Documentation/devicetree/bindings/mfd/ti-lmu.txt, which for LED bindings redirects to: "[2] ../leds/leds-lm3633.txt", but it is not present in the mainline. Best regards, Jacek Anaszewski On 08/30/2018

Re: [PATCH v5 00/13] Copy Offload in NVMe Fabrics with P2P PCI Memory

2018-08-30 Thread Jerome Glisse
On Thu, Aug 30, 2018 at 12:53:39PM -0600, Logan Gunthorpe wrote: [...] > > When the PCI P2PDMA config option is selected the ACS bits in every > bridge port in the system are turned off to allow traffic to > pass freely behind the root port. At this time, the bit must be disabled > at boot so

Re: [rfc] leds: add TI LMU backlight driver

2018-08-30 Thread Dan Murphy
Pavel On 08/29/2018 04:20 PM, Pavel Machek wrote: > > Here's preview of driver for TI LMU. It controls LEDs on Droid 4 > smartphone, including keyboard and screen backlights. > > This adds backlight support for the following TI LMU > chips: LM3532, LM3631, LM3632, LM3633, LM3695 and LM3697. >

Re: [PATCH v9 4/4] perf probe: Support SDT markers having reference counter (semaphore)

2018-08-30 Thread Steven Rostedt
On Thu, 30 Aug 2018 15:50:27 -0300 Arnaldo Carvalho de Melo wrote: > Em Thu, Aug 30, 2018 at 02:45:31PM -0400, Steven Rostedt escreveu: > > > > Arnaldo, > > > > I'm going to be playing with some of the probe code which may conflict > > with these patches, so I would like to pull these in my

Re: [PATCH 2/8] RISC-V: Don't set cacheinfo.{physical_line_partition,attributes}

2018-08-30 Thread Jeremy Linton
Hi, On 08/27/2018 01:42 PM, Palmer Dabbelt wrote: These are just hard coded in the RISC-V port, which doesn't make any sense. We should probably be setting these from device tree entries when they exist, but for now I think it's saner to just leave them all as their default values. Default

Re: [PATCH v6 1/2] leds: core: Introduce LED pattern trigger

2018-08-30 Thread Jacek Anaszewski
Hi Baolin, On 08/30/2018 09:40 AM, Baolin Wang wrote: > Some LED controllers have support for autonomously controlling > brightness over time, according to some preprogrammed pattern or > function. I think that this commit message should be rearranged, so that the software pattern was mentioned

Re: [rfc] leds: add TI LMU backlight driver

2018-08-30 Thread Pavel Machek
Hi! > > Here's preview of driver for TI LMU. It controls LEDs on Droid 4 > > smartphone, including keyboard and screen backlights. > > > > This adds backlight support for the following TI LMU > > chips: LM3532, LM3631, LM3632, LM3633, LM3695 and LM3697. > > > > Signed-off-by: Milo Kim > > [add

Re: [PATCH v1 1/5] mm/memory_hotplug: drop intermediate __offline_pages

2018-08-30 Thread Pasha Tatashin
I guess the wrap was done because of __ref, but no reason to have this wrap. So looks good to me. Reviewed-by: Pavel Tatashin On 8/16/18 6:06 AM, David Hildenbrand wrote: > Let's avoid this indirection and just call the function offline_pages(). > > Signed-off-by: David Hildenbrand > --- >

Re: [PATCH 3/3] Enable high-resolution scrolling on Logitech mice

2018-08-30 Thread Harry Cutts
Hi Benjamin, On Thu, 30 Aug 2018 at 00:18, Benjamin Tissoires wrote: >> On Thu, Aug 30, 2018 at 1:06 AM Harry Cutts wrote: > > > The conversion input_report_rel(... REL_WHEEL,...) to > > > hid_scroll_counter_handle_scroll() should be dealt in a separate > > > patch. > > > > OK, I'll do that in

[PATCH v2 2/4] iio: gyro: add device tree support for fxas21002c

2018-08-30 Thread Afonso Bordado
This patch adds device tree support for the fxas21002c driver, including bindings. Signed-off-by: Afonso Bordado --- .../bindings/iio/gyroscope/fsl,fxas21002c.txt | 35 +++ drivers/iio/gyro/fxas21002c.c | 13 ++- 2 files changed, 47 insertions(+), 1

[PATCH v2 3/4] iio: fxas21002c: add ODR/Scale support

2018-08-30 Thread Afonso Bordado
This patch adds support for reading/writing ODR/Scale We don't support the scale boost modes. Signed-off-by: Afonso Bordado --- drivers/iio/gyro/fxas21002c.c | 161 +++--- 1 file changed, 148 insertions(+), 13 deletions(-) diff --git a/drivers/iio/gyro/fxas21002c.c

[PATCH v2 1/4] iio: gyro: add support for fxas21002c

2018-08-30 Thread Afonso Bordado
FXAS21002C is a 3 axis gyroscope with integrated temperature sensor Signed-off-by: Afonso Bordado --- Changes in v2 - Use ANSI C Comments - Minor cleanups - More dscriptive devicetree bindings drivers/iio/gyro/Kconfig | 11 + drivers/iio/gyro/Makefile | 1 +

[PATCH v2 4/4] MAINTAINERS: add entry for fxas21002c gyro driver

2018-08-30 Thread Afonso Bordado
Add entry for fxas21002c gyroscope driver and add myself as maintainer of this driver. Signed-off-by: Afonso Bordado --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2b7b24b145f0..faf5f41b1465 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

Re: [PATCH] clk: x86: Set default parent to 48Mhz

2018-08-30 Thread Stephen Boyd
Quoting Akshu Agrawal (2018-08-20 23:51:57) > System clk provided in ST soc can be set to: > 48Mhz, non-spread > 25Mhz, spread > To get accurate rate, we need it to set it at non-spread > option which is 48Mhz. > > Signed-off-by: Akshu Agrawal > --- Applied to clk-fixes

Re: [RFC PATCH v3 12/24] x86/mm: Modify ptep_set_wrprotect and pmdp_set_wrprotect for _PAGE_DIRTY_SW

2018-08-30 Thread Jann Horn
On Thu, Aug 30, 2018 at 11:01 PM Jann Horn wrote: > > On Thu, Aug 30, 2018 at 10:57 PM Yu-cheng Yu wrote: > > > > On Thu, 2018-08-30 at 22:44 +0200, Jann Horn wrote: > > > On Thu, Aug 30, 2018 at 10:25 PM Yu-cheng Yu > > > wrote: > > ... > > > > In the flow you described, if C writes to the

[PATCH v2 3/5] Add function to enable HID++ 1.0 "scrolling acceleration"

2018-08-30 Thread Harry Cutts
"Scrolling acceleration" is a bit of a misnomer: it doesn't deal with acceleration at all. However, that's the name used in Logitech's spec, so I used it here. Signed-off-by: Harry Cutts --- Changes in v2: None drivers/hid/hid-logitech-hidpp.c | 47 +++- 1 file

[PATCH v2 2/5] Create a utility class for counting scroll events

2018-08-30 Thread Harry Cutts
To avoid code duplication, this class counts high-resolution scroll movements and emits the legacy low-resolution events when appropriate. Drivers should be able to create one instance for each scroll wheel that they need to handle. Signed-off-by: Harry Cutts --- Changes in v2: None

[PATCH v2 1/4] fs/dcache: Fix incorrect nr_dentry_unused accounting in shrink_dcache_sb()

2018-08-30 Thread Waiman Long
The nr_dentry_unused per-cpu counter tracks dentries in both the LRU lists and the shrink lists where the DCACHE_LRU_LIST bit is set. The shrink_dcache_sb() function moves dentries from the LRU list to a shrink list and subtracts the dentry count from nr_dentry_unused. This is incorrect as the

[PATCH v2 4/5] Enable high-resolution scrolling on Logitech mice

2018-08-30 Thread Harry Cutts
There are three features used by various Logitech mice for high-resolution scrolling: the scrolling acceleration bit in HID++ 1.0, and the x2120 and x2121 features in HID++ 2.0 and above. This patch supports all three, and uses the multiplier reported by the mouse for the HID++ 2.0+ features. The

[PATCH v2 1/5] Add the `REL_WHEEL_HI_RES` event code

2018-08-30 Thread Harry Cutts
This event code represents scroll reports from high-resolution wheels, and will be used by future patches in this series. See the linux-input "Reporting high-resolution scroll events" thread [0] for more details. [0]: https://www.spinics.net/lists/linux-input/msg57380.html Signed-off-by: Harry

Re: [PATCH v1 4/5] mm/memory_hotplug: onlining pages can only fail due to notifiers

2018-08-30 Thread Pasha Tatashin
LGTM Reviewed-by: Pavel Tatashin On 8/16/18 6:06 AM, David Hildenbrand wrote: > Onlining pages can only fail if a notifier reported a problem (e.g. -ENOMEM). > online_pages_range() can never fail. > > Signed-off-by: David Hildenbrand > --- > mm/memory_hotplug.c | 9 ++--- > 1 file

Re: linux-next: disabling -Wstringop-truncation

2018-08-30 Thread Andi Kleen
Stephen Rothwell writes: > Hi Linus, > > I am now mainly using gcc v8.2 for my builds and -Wstringop-truncation > causes so many warnings that I am sure to miss others, so I have > applied the below to my fixes tree until the noise reduces. I have the same problem. However It's not clear if

Re: [PATCH 05/23] selftest: vm: add unlikely() to BUG_ON()

2018-08-30 Thread Dmitry Safonov
Hi Igor, On Fri, 2018-08-31 at 01:34 +0300, Igor Stoppa wrote: > BUG_ON() is unlikely() to BUG() This selftest runs in userspace.. So, we should define the macro somehow, as i.e: rseq/rseq.h:#define rseq_unlikely(x)__builtin_expect(!!(x), 0) Otherwise, [selftests]$ make vm/map_populate cc

[PATCH v1 2/3] clk: tegra: Add more rates to Tegra30 PLLX frequency table

2018-08-30 Thread Dmitry Osipenko
Add more predefined rates to the PLLX table, allowing to lower the rate down to 312MHz. This gives more variations of frequency selection to the CPUFREQ driver. Signed-off-by: Dmitry Osipenko --- drivers/clk/tegra/clk-tegra30.c | 42 + 1 file changed, 42

[PATCH v1 1/3] clk: tegra: Convert CCLKG mux to mux + clock divider on Tegra30

2018-08-30 Thread Dmitry Osipenko
Some of the CCLKG parents aren't accessible via device tree because they are created as non-DT clocks. Apparently there is no reason to define these clocks in that manner, hence convert CCLKG mux to mux + clock divider to remove the non-DT parent clocks. Now it is possible to request all of CCLKG

[PATCH v1 0/3] CPU clock changes for Tegra20/30

2018-08-30 Thread Dmitry Osipenko
Hello, This series is a prerequisite for the CPUFREQ driver patches, it can be applied separately. CPUFREQ will be supported on Tegra30 once this and the CPUFREQ patch-series will be applied. Dmitry Osipenko (3): clk: tegra: Convert CCLKG mux to mux + clock divider on Tegra30 clk: tegra: Add

[PATCH v1 3/3] clk: tegra: Poll PLLX lock-status on resume from suspend on Tegra20/30

2018-08-30 Thread Dmitry Osipenko
Poll PLLX lock-status instead of delaying for a constant time. This speeds up resume from suspend a tad and is less error-prone since lock failure will be reported. Signed-off-by: Dmitry Osipenko --- drivers/clk/tegra/clk-tegra20.c | 51 +++--

RE: [PATCH v2] EDAC, ghes: use CPER module handles to locate DIMMs

2018-08-30 Thread wufan
Hi Tyler, > > +static int get_dimm_smbios_index(u16 handle) { > > + struct mem_ctl_info *mci; > > + int i; > > + > > + mci = ghes_pvt->mci; > > + > > Minor nit: you could define and set mci in the same line to save some space > here. > > Otherwise this patch looks good to me.

[PATCH] lib: fix three typos in Kconfig help text

2018-08-30 Thread Thibaut Sautereau
Fix three typos in CONFIG_WARN_ALL_UNSEEDED_RANDOM help text. Signed-off-by: Thibaut Sautereau --- lib/Kconfig.debug | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index c7fef0c56d6b..3e50cc93572c 100644 --- a/lib/Kconfig.debug +++

[PATCH] ARM: dts: pxa: add pincontrol helpers

2018-08-30 Thread Robert Jarzmik
Add 3 helpers so that pincontrol definitions for pxa25x and pxa27x are easier, and can be easily converted from old mfp mach-pxa code to devicetree. An example of such conversion would be : static unsigned long mioa701_pin_config[] = { GPIO32_MMC_CLK, GPIO92_MMC_DAT_0,

[RFC PATCH 2/2] pipe: use pipe busy wait

2018-08-30 Thread subhra mazumdar
Enable busy waiting for pipes. pipe_busy_wait is called if pipe is empty or full which spins for specified micro seconds. wake_up_busy_poll is called when data is written or read to signal any busy waiting threads. A tunable pipe_busy_poll is introduced to enable or disable busy waiting via /proc.

[RFC PATCH 0/2] Pipe busy wait

2018-08-30 Thread subhra mazumdar
This patch introduces busy waiting for pipes similar to network sockets. When pipe is full or empty a thread busy waits for some microseconds before sleeping. This avoids the sleep and wakeup overhead and improves performance in case wakeup happens very fast. It uses new fields in pipe_inode_info

[RFC PATCH 1/2] pipe: introduce busy wait for pipe

2018-08-30 Thread subhra mazumdar
Introduce pipe_ll_usec field for pipes that indicates the amount of micro seconds a thread should spin if pipe is empty or full before sleeping. This is similar to network sockets. Workloads like hackbench in pipe mode benefits significantly from this by avoiding the sleep and wakeup overhead.

Re: [RFC PATCH 0/2] Pipe busy wait

2018-08-30 Thread Subhra Mazumdar
On 08/30/2018 01:24 PM, subhra mazumdar wrote: This patch introduces busy waiting for pipes similar to network sockets. When pipe is full or empty a thread busy waits for some microseconds before sleeping. This avoids the sleep and wakeup overhead and improves performance in case wakeup

Re: [PATCH v2] EDAC, ghes: use CPER module handles to locate DIMMs

2018-08-30 Thread Kani, Toshi
On Thu, 2018-08-30 at 18:37 +, Fan Wu wrote: > For platforms whose firmwares provide valid module handles > (SMBIOS type 17) in error records, this patch uses the module > handles to locate corresponding DIMMs and enables per-DIMM > error counter update. > > Signed-off-by: Fan Wu Tested on

linux-next: Signed-off-by missing for commit in the ipmi tree

2018-08-30 Thread Stephen Rothwell
Hi Corey, Commit 6320fd2c65b5 ("ipmi: fix return value of ipmi_set_my_LUN") is missing a Signed-off-by from its committer. -- Cheers, Stephen Rothwell pgpQ8GGFS04SY.pgp Description: OpenPGP digital signature

Re: [PATCH] perf trace beautify: Beautify flags of mount(2) and umount(2).

2018-08-30 Thread Benjamin Peterson
Thanks for the review. On Thu, Aug 30, 2018, at 11:28, Arnaldo Carvalho de Melo wrote: > Em Mon, Aug 27, 2018 at 08:53:44PM -0700, Benjamin Peterson escreveu: > > Example output of perf trace -e mount,umount2: > > > > 6243.930 ( 0.052 ms): mount/30976 mount(dev_name: 0x55dc541bb920, > >

[PATCH v2 5/5] Use LDJ_DEVICE macro for existing Logitech mice

2018-08-30 Thread Harry Cutts
Signed-off-by: Harry Cutts --- Changes in v2: * Changed the REL_WHEEL_HI_RES code to use micrometres (a.k.a. microns) as its units, instead of 256ths of a millimetre. * Removed support for mice connecting over Bluetooth, due to a bug where the mouse's high-res mode and the driver's settings

[PATCH v2 0/5] Add support for high-resolution scrolling on Logitech mice

2018-08-30 Thread Harry Cutts
Hi everyone, This is v2 of the patch set adding support for high-resolution scroll wheels on Logitech mice. See the linux-input "Reporting high-resolution scroll events" thread [0] for previous discussion of the evdev changes. I would love to hear your feedback. Thanks, Harry Cutts Chrome OS

[PATCH v2] PCI hotplug Eq v2

2018-08-30 Thread Jon Derrick
Hi Bjorn, Sorry for the delay on this one and pushing it after RC1. Feel free to queue it up for 4.20 if it looks fine. I've added comments to the git log and source explaining why calculate_iosize was left unchanged. Basically I could not synthesize a condition where it would have affected the

Re: [PATCH RFC LKMM 3/7] EXP tools/memory-model: Add more LKMM limitations

2018-08-30 Thread Paul E. McKenney
On Thu, Aug 30, 2018 at 11:17:13AM +0200, Andrea Parri wrote: > On Wed, Aug 29, 2018 at 02:10:49PM -0700, Paul E. McKenney wrote: > > This commit adds more detail about compiler optimizations and > > not-yet-modeled Linux-kernel APIs. > > > > Signed-off-by: Paul E. McKenney > > --- > >

[PATCH v2] PCI: Equalize hotplug memory for non/occupied slots

2018-08-30 Thread Jon Derrick
Currently, a hotplug bridge will be given hpmemsize additional memory if available, in order to satisfy any future hotplug allocation requirements. These calculations don't consider the current memory size of the hotplug bridge/slot, so hotplug bridges/slots which have downstream devices will get

Re: [PATCH v1 3/5] mm/memory_hotplug: check if sections are already online/offline

2018-08-30 Thread Pasha Tatashin
On 8/16/18 7:00 AM, David Hildenbrand wrote: > On 16.08.2018 12:47, Oscar Salvador wrote: >> On Thu, Aug 16, 2018 at 12:06:26PM +0200, David Hildenbrand wrote: >> >>> + >>> +/* check if all mem sections are offline */ >>> +bool mem_sections_offline(unsigned long pfn, unsigned long end_pfn) >>> +{

Re: [PATCH 01/21] staging:rtl8192u: Rename AdvCoding - Style

2018-08-30 Thread Joe Perches
On Wed, 2018-08-29 at 22:55 +0100, John Whitmore wrote: > On Wed, Aug 29, 2018 at 04:21:54PM -0500, Larry Finger wrote: > > On 08/29/2018 04:14 PM, Joe Perches wrote: [] > > > Perhaps support for the chipset could be converted to use > > > mac80211 and moved into the directory with the other

Re: [PATCH 18/23] infiniband: scsi: remove unnecessary unlikely()

2018-08-30 Thread Bart Van Assche
On Thu, Aug 30, 2018 at 3:35 PM Igor Stoppa wrote: > > WARN_ON() already contains an unlikely(), so it's not necessary to > wrap it into another. Reviewed-by: Bart Van Assche

[PATCH] lib/parser.c: switch match_number() over to use match_strdup()

2018-08-30 Thread Eric Biggers
From: Eric Biggers This simplifies the code. No change in behavior. Signed-off-by: Eric Biggers --- lib/parser.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/parser.c b/lib/parser.c index 0142ef28f0eb..96656a6dd59b 100644 --- a/lib/parser.c +++ b/lib/parser.c

[PATCH v1 3/5] ARM: tegra: Create tegra20-cpufreq device on Tegra30

2018-08-30 Thread Dmitry Osipenko
Tegra20-cpufreq driver require a platform device in order to be loaded, instantiate a simple platform device for the driver during of the machines late initialization. Driver now supports Tegra30 SoC's, hence create the device on Tegra30 machines. Signed-off-by: Dmitry Osipenko ---

[PATCH v1 1/5] dt-bindings: cpufreq: Add binding for NVIDIA Tegra20/30

2018-08-30 Thread Dmitry Osipenko
Add device-tree binding that describes CPU frequency-scaling hardware found on NVIDIA Tegra20/30 SoC's. Signed-off-by: Dmitry Osipenko --- .../cpufreq/nvidia,tegra20-cpufreq.txt| 38 +++ 1 file changed, 38 insertions(+) create mode 100644

[PATCH] x86/dumpstack: fix address space casting in show_opcodes()

2018-08-30 Thread Jann Horn
I sloppily passed a kernel-typed pointer to __range_not_ok(), and sparse doesn't like that. Make `prologue` a __user pointer (to protect against accidental dereferences) and force-cast it to a kernel pointer when calling probe_kernel_read(), which will then immediately force-cast it back to a user

Re: [PATCH] ARM: dts: pxa: change serial node names

2018-08-30 Thread Robert Jarzmik
Robert Jarzmik writes: > Change from xxuart to serial to normalize the devicetree pxa serial > support. > > Signed-off-by: Robert Jarzmik > --- > arch/arm/boot/dts/pxa2xx.dtsi | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) Queued to pxa/dt. -- Robert

Re: [PATCH] lib: fix three typos in Kconfig help text

2018-08-30 Thread Randy Dunlap
On 08/30/2018 12:45 PM, Thibaut Sautereau wrote: > Fix three typos in CONFIG_WARN_ALL_UNSEEDED_RANDOM help text. > > Signed-off-by: Thibaut Sautereau Acked-by: Randy Dunlap Thanks. > --- > lib/Kconfig.debug | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git

Re: [PATCH v1 1/5] mm/memory_hotplug: drop intermediate __offline_pages

2018-08-30 Thread Pasha Tatashin
On 8/30/18 4:17 PM, Pasha Tatashin wrote: > I guess the wrap was done because of __ref, but no reason to have this > wrap. So looks good to me. > > Reviewed-by: Pavel Tatashin > > On 8/16/18 6:06 AM, David Hildenbrand wrote: >> Let's avoid this indirection and just call the function

Re: [PATCH RFC LKMM 1/7] tools/memory-model: Add extra ordering for locks and remove it for ordinary release/acquire

2018-08-30 Thread Alan Stern
On Thu, 30 Aug 2018, Andrea Parri wrote: > > All the architectures supported by the Linux kernel (including RISC-V) > > do provide this ordering for locks, albeit for varying reasons. > > Therefore this patch changes the model in accordance with the > > developers' wishes. > > > > Signed-off-by:

Re: [PATCH v2 1/2] ARM: configs: at91: add generic resistive touchscreen to sama5

2018-08-30 Thread Alexandre Belloni
On 29/08/2018 17:17:43+0300, Eugen Hristev wrote: > Add generic resistive touchscreen CONFIG_TOUCHSCREEN_ADC to sama5_defconfig > > Signed-off-by: Eugen Hristev > --- > Changes in v2: > - split config change into two commits, per defconfig > > arch/arm/configs/sama5_defconfig | 1 + > 1 file

Re: [PATCH 1/2] ARM: configs: at91: Add I2S driver to sama5

2018-08-30 Thread Alexandre Belloni
On 29/08/2018 19:47:54+0300, Codrin Ciubotariu wrote: > Add I2S CONFIG_SND_ATMEL_SOC_I2S to sama5_defconfig. > > Signed-off-by: Codrin Ciubotariu > --- > arch/arm/configs/sama5_defconfig | 1 + > 1 file changed, 1 insertion(+) > Both applied, thanks. -- Alexandre Belloni, Bootlin Embedded

Re: [PATCH v2 4/4] clk: pmc-atom: use devm_kstrdup_const()

2018-08-30 Thread Stephen Boyd
Quoting Bartosz Golaszewski (2018-08-28 02:33:32) > Use devm_kstrdup_const() in the pmc-atom driver. This mostly serves as > an example of how to use this new routine to shrink driver code. > > While we're at it: replace a call to kcalloc() with devm_kcalloc(). > > Signed-off-by: Bartosz

Re: [PATCH] clk: qcom: clk-branch: Use true and false for boolean values

2018-08-30 Thread Stephen Boyd
Quoting Gustavo A. R. Silva (2018-08-04 17:22:22) > Return statements in functions returning bool should use true or false > instead of an integer value. > > This code was detected with the help of Coccinelle. > > Signed-off-by: Gustavo A. R. Silva > --- Applied to clk-next

Re: [PATCH] mfd: omap-usb-host: Fix dts probe of children

2018-08-30 Thread Tony Lindgren
Lee, * Tony Lindgren [180425 07:31]: > It currently only works if the parent bus uses "simple-bus". We > currently try to probe children with non-existing compatible values. > And we're missing .probe. > > I noticed this while testing devices configured to probe using ti-sysc > interconnect

Re: [PATCH] clk: cdce925: release child device nodes

2018-08-30 Thread Stephen Boyd
Quoting Alexey Khoroshilov (2018-08-21 14:05:32) > of_get_child_by_name() returns device node with refcount incremented, > but there is no decrement in cdce925_probe(). The patch adds one. > > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Alexey Khoroshilov >

[PATCH 22/23] powerpc: remove unnecessary unlikely()

2018-08-30 Thread Igor Stoppa
WARN_ON() already contains an unlikely(), so it's not necessary to wrap it into another. Signed-off-by: Igor Stoppa Cc: Arseny Solokha Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman --- arch/powerpc/mm/tlb_nohash.c | 2 +- arch/powerpc/sysdev/xive/common.c | 2 +- 2

[PATCH 23/23] scsi: remove unnecessary unlikely()

2018-08-30 Thread Igor Stoppa
BUG_ON() already contains an unlikely(), there is no need for another one. Signed-off-by: Igor Stoppa Cc: "Martin K. Petersen" Cc: "James E.J. Bottomley" --- drivers/scsi/scsi_lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/scsi_lib.c

[PATCH 16/23] lvm: device mapper: remove unnecessary unlikely()

2018-08-30 Thread Igor Stoppa
WARN_ON() already contains an unlikely(), so it's not necessary to wrap it into another. Signed-off-by: Igor Stoppa Cc: Joe Thornber Cc: Alasdair Kergon --- drivers/md/dm-cache-policy-smq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/md/dm-cache-policy-smq.c

[PATCH 09/23] cpufreq: remove unnecessary unlikely()

2018-08-30 Thread Igor Stoppa
WARN_ON() already contains an unlikely(), so it's not necessary to wrap it into another. Signed-off-by: Igor Stoppa Cc: "Rafael J. Wysocki" Cc: Srivatsa S. Bhat --- drivers/cpufreq/cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/cpufreq.c

[PATCH v3] ARM: dts: pxa: add mioa701 board description

2018-08-30 Thread Robert Jarzmik
Add device-tree description of the Mitac MIO A701 board. This is aimed at replacing mioa701.c board file, and once stabilized, the leftover, such as the suspend resume mechanics will rely on a new IPL, and not the legacy Windows CE one. Signed-off-by: Robert Jarzmik --- Since v1: fix lcd_supply

Re: [PATCH 2/2] power: supply: Add Spreadtrum SC2731 charger support

2018-08-30 Thread Sebastian Reichel
Hi, On Thu, Aug 30, 2018 at 11:08:59AM +0800, Baolin Wang wrote: > >> +static int sc2731_charger_hw_init(struct sc2731_charger_info *info) > >> +{ > >> + int ret; > >> + > >> + /* Enable charger module */ > >> + ret = regmap_update_bits(info->regmap, SC2731_MODULE_EN1, > >> +

Re: [PATCH RESEND] mips: switch to NO_BOOTMEM

2018-08-30 Thread Paul Burton
Hi Mike, On Mon, Aug 27, 2018 at 10:59:35AM +0300, Mike Rapoport wrote: > MIPS already has memblock support and all the memory is already registered > with it. > > This patch replaces bootmem memory reservations with memblock ones and > removes the bootmem initialization. > > Signed-off-by:

Re: [PATCH] clk: qcom: Allocate space for NULL terimation in DFS table

2018-08-30 Thread Stephen Boyd
Quoting Douglas Anderson (2018-08-30 10:34:37) > The table allocated in clk_rcg2_dfs_populate_freq_table() is > eventually iterated over by qcom_find_freq() which assumes that the > table is NULL terminated. Allocate one extra space in the array for > the NULL termination. Initting of the NULL

linux-next: disabling -Wstringop-truncation

2018-08-30 Thread Stephen Rothwell
Hi Linus, I am now mainly using gcc v8.2 for my builds and -Wstringop-truncation causes so many warnings that I am sure to miss others, so I have applied the below to my fixes tree until the noise reduces. From: Stephen Rothwell Date: Fri, 31 Aug 2018 07:47:28 +1000 Subject: [PATCH] disable

[PATCH 14/23] wimax: i2400m: remove unnecessary unlikely()

2018-08-30 Thread Igor Stoppa
WARN_ON() already contains an unlikely(), so it's not necessary to wrap it into another. Signed-off-by: Igor Stoppa Cc: Inaky Perez-Gonzalez --- drivers/net/wimax/i2400m/tx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wimax/i2400m/tx.c

[PATCH 15/23] lvm: device mapper: remove unnecessary unlikely()

2018-08-30 Thread Igor Stoppa
WARN_ON() already contains an unlikely(), so it's not necessary to wrap it into another. Signed-off-by: Igor Stoppa Cc: Mike Snitzer Cc: Alasdair Kergon --- drivers/md/dm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/md/dm.c b/drivers/md/dm.c index

[PATCH 07/23] seccomp: remove unnecessary unlikely()

2018-08-30 Thread Igor Stoppa
WARN_ON() already contains an unlikely(), so it's not necessary to wrap it into another. Signed-off-by: Igor Stoppa Cc: Kees Cook --- kernel/seccomp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/seccomp.c b/kernel/seccomp.c index fd023ac24e10..5a2a9af4663e

[PATCH 06/23] virtio: add unlikely() to WARN_ON_ONCE()

2018-08-30 Thread Igor Stoppa
The condition to test is unlikely() to be true. Add the hint. Signed-off-by: Igor Stoppa Cc: "Michael S. Tsirkin" --- tools/virtio/linux/kernel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/virtio/linux/kernel.h b/tools/virtio/linux/kernel.h index

[PATCH 12/23] wireless: remove unnecessary unlikely()

2018-08-30 Thread Igor Stoppa
WARN_ON() already contains an unlikely(), so it's not necessary to wrap it into another. Signed-off-by: Igor Stoppa Cc: Larry Finger Cc: Kalle Valo --- drivers/net/wireless/broadcom/b43/dma.c | 2 +- drivers/net/wireless/broadcom/b43legacy/dma.c | 2 +- 2 files changed, 2 insertions(+),

[PATCH 17/23] usb: octeon-hcd: remove unnecessary unlikely()

2018-08-30 Thread Igor Stoppa
WARN_ON() already contains an unlikely(), so it's not necessary to wrap it into another. Signed-off-by: Igor Stoppa Cc: Aaro Koskinen Cc: Greg Kroah-Hartman --- drivers/staging/octeon-usb/octeon-hcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 20/23] mm: percpu: remove unnecessary unlikely()

2018-08-30 Thread Igor Stoppa
WARN_ON() already contains an unlikely(), so it's not necessary to wrap it into another. Signed-off-by: Igor Stoppa Cc: zijun_hu Cc: Tejun Heo Cc: Christoph Lameter Cc: Dennis Zhou --- mm/percpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/percpu.c b/mm/percpu.c

[PATCH 01/23] infiniband: nes: add unlikely() to assert()

2018-08-30 Thread Igor Stoppa
Typically the assert is expected to not fail. Signed-off-by: Igor Stoppa Cc: Chien Tung Cc: Roland Dreier Cc: Faisal Latif Cc: Doug Ledford Cc: Jason Gunthorpe --- drivers/infiniband/hw/nes/nes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

  1   2   3   4   5   6   7   8   9   10   >