Re: [PATCH V4] clk: at91: PLL recalc_rate() now using cached MUL and DIV values

2018-05-16 Thread Stephen Boyd
Quoting Marcin Ziemianowicz (2018-04-29 12:01:11) > When a USB device is connected to the USB host port on the SAM9N12 then > you get "-62" error which seems to indicate USB replies from the device > are timing out. Based on a logic sniffer, I saw the USB bus was running > at half speed. > > The

Re: [RFC/RFT] [PATCH 06/10] cpufreq / sched: Add interface to get utilization values

2018-05-16 Thread Viresh Kumar
On 15-05-18, 21:49, Srinivas Pandruvada wrote: > Added cpufreq_get_sched_util() to get the CFS, DL and max utilization > values for a CPU. This is required for getting utilization values > for cpufreq drivers outside of kernel/sched folder. > > Signed-off-by: Srinivas Pandruvada

[PATCH] ARM: dts: vf610-zii-dev: enable vf610 builtin temp sensor

2018-05-16 Thread Nikita Yushchenko
Vybrid has single internal temperature sensor connected to both internal ADC modules. vf610-zii-dev already has ADC0 enabled. Now, to get temperature sensor captured by iio_hwmon driver, need to configure iio_hwmon node to use that ADC. Signed-off-by: Nikita Yushchenko

Re: [PATCH v2 0/9] Input: support for latest Lenovo thinkpads (series 80)

2018-05-16 Thread Teika Kazura
From: Aaron Ma Date: Tue, 17 Apr 2018 19:42:27 +0800 > Could you apply my patch too? > > It add LEN0096 that Benjamin's patch doesn't include. > > + "LEN0096", /* X280 */ Aaron, in your original patch in last Oct [1], both *LEN0092 and* LEN0096 were aded. Which

Re: [RFC/RFT] [PATCH 03/10] cpufreq: intel_pstate: Utility functions to boost HWP performance limits

2018-05-16 Thread Peter Zijlstra
On Tue, May 15, 2018 at 09:49:04PM -0700, Srinivas Pandruvada wrote: > Setup necessary infrastructure to be able to boost HWP performance on a > remote CPU. First initialize data structure to be able to use > smp_call_function_single_async(). The boost up function simply set HWP > min to HWP max

Re: [PATCH 4/6] drm/panel: simple: Add support for Banana Pi 7" S070WV20-CT16 panel

2018-05-16 Thread Jagan Teki
On Wed, May 16, 2018 at 12:12 PM, Chen-Yu Tsai wrote: > On Mon, May 14, 2018 at 11:03 AM, Jagan Teki > wrote: >> On Thu, Apr 19, 2018 at 3:02 PM, Chen-Yu Tsai wrote: >>> This panel is marketed as Banana Pi 7" LCD display. On the back is

Re: [PATCH v7] mtd: rawnand: use bit-wise majority to recover the contents of ONFI parameter

2018-05-16 Thread Chris Moore
Hi, Le 15/05/2018 à 09:34, Boris Brezillon a écrit : On Tue, 15 May 2018 06:45:51 +0200 Chris Moore wrote: Hi, Le 13/05/2018 à 06:30, Wan, Jane (Nokia - US/Sunnyvale) a écrit : Per ONFI specification (Rev. 4.0), if all parameter pages have invalid CRC values, the bit-wise

Re: [PATCH V5 2/3] mmc: sdhci: Add support for O2 hardware tuning

2018-05-16 Thread Adrian Hunter
On 20/04/18 19:38, ernest.zhang wrote: > Add hardware tuning function instead of software tuning because O2/Bayhub > SD host controller support hardware tuning. > > Changes in V5: The change log goes below the --- line or in a separate cover email. > In function sdhci_o2_send_tuning,

Re: [PATCH v2] IB/umem: ib_ucontext already have tgid, remove pid from ib_umem structure

2018-05-16 Thread 858585 jemmy
On Wed, May 16, 2018 at 7:14 AM, Jason Gunthorpe wrote: > On Tue, May 08, 2018 at 04:50:16PM +0800, Lidong Chen wrote: >> The userspace may invoke ibv_reg_mr and ibv_dereg_mr by different threads. >> If when ibv_dereg_mr invoke and the thread which invoked ibv_reg_mr has >> exited,

Re: [PATCH 09/14] net: sched: don't release reference on action overwrite

2018-05-16 Thread Jiri Pirko
Mon, May 14, 2018 at 04:27:10PM CEST, vla...@mellanox.com wrote: >Return from action init function with reference to action taken, >even when overwriting existing action. > >Action init API initializes its fourth argument (pointer to pointer to >tc action) to either existing action with same index

Re: [RFC/RFT] [PATCH 08/10] cpufreq: intel_pstate: Dyanmically update busy pct

2018-05-16 Thread Peter Zijlstra
On Tue, May 15, 2018 at 09:49:09PM -0700, Srinivas Pandruvada wrote: > +static inline void intel_pstate_update_busy_threshold(struct cpudata *cpu) > +{ > + /* P1 percent out of total range of P-states */ > + if (cpu->pstate.max_freq != cpu->pstate.turbo_freq) { > +

Re: [PATCH 3/3] arm64: dts: renesas: r8a7795: add ccree binding

2018-05-16 Thread Simon Horman
On Tue, May 15, 2018 at 04:50:44PM +0200, Geert Uytterhoeven wrote: > Hi Gilad, > > On Tue, May 15, 2018 at 2:29 PM, Gilad Ben-Yossef wrote: > > Add bindings for CryptoCell instance in the SoC. > > > > Signed-off-by: Gilad Ben-Yossef > > Thanks for

linux-next: Tree for May 16

2018-05-16 Thread Stephen Rothwell
Hi all, News: I will not be doing any linux-next releases between Friday 18 May and Friday 25 May inclusive. Changes since 20180515: New trees: samsung-krzk-fixes pinctrl-samsung-fixes The kbuild tree still had its build failure for which I applied a patch. The mips-james tree gained

Re: `ucsi_acpi: probe of USBC000:00 failed with error -12` on Dell XPS 13 9370

2018-05-16 Thread Greg KH
On Tue, May 15, 2018 at 06:47:37PM +0200, Paul Menzel wrote: > Dear Greg, > > > As always, thank you for the prompt response. > > > On 05/15/18 18:00, Greg KH wrote: > > On Tue, May 15, 2018 at 04:34:03PM +0200, Paul Menzel wrote: > > > > Linux 4.17-rc5 shows the error below on the Dell XPS

Re: [PATCH v5 11/13] KVM: s390: implement mediated device open callback

2018-05-16 Thread Pierre Morel
On 07/05/2018 17:11, Tony Krowiak wrote: Implements the open callback on the mediated matrix device. The function registers a group notifier to receive notification of the VFIO_GROUP_NOTIFY_SET_KVM event. When notified, the vfio_ap device driver will get access to the guest's kvm structure. With

[PATCH 07/24] arm64: ilp32: add documentation on the ILP32 ABI for ARM64

2018-05-16 Thread Yury Norov
Based on Andrew Pinski's patch-series. Signed-off-by: Yury Norov --- Documentation/arm64/ilp32.txt | 45 +++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/arm64/ilp32.txt diff --git a/Documentation/arm64/ilp32.txt

[PATCH 08/24] arm64: rename COMPAT to AARCH32_EL0 in Kconfig

2018-05-16 Thread Yury Norov
From: Andrew Pinski In this patchset ILP32 ABI support is added. Additionally to AARCH32, which is binary-compatible with ARM, ILP32 is (mostly) ABI-compatible. >From now, AARCH32_EL0 (former COMPAT) config option means the support of AARCH32 userspace, and ARM64_ILP32 -

[PATCH 09/24] arm64: rename functions that reference compat term

2018-05-16 Thread Yury Norov
The ILP32 for ARM64 patch series introduces another 'compat' mode for arm64. So to avoid confusing, aarch32-only functions renamed in according to it. Signed-off-by: Yury Norov --- arch/arm64/include/asm/ptrace.h | 10 ++-- arch/arm64/include/asm/signal32.h|

[PATCH 02/24] ptrace: Add compat PTRACE_{G,S}ETSIGMASK handlers

2018-05-16 Thread Yury Norov
From: James Morse compat_ptrace_request() lacks handlers for PTRACE_{G,S}ETSIGMASK, instead using those in ptrace_request(). The compat variant should read a compat_sigset_t from userspace instead of ptrace_request()s sigset_t. While compat_sigset_t is the same size as

[PATCH 04/24] 32-bit userspace ABI: introduce ARCH_32BIT_OFF_T config option

2018-05-16 Thread Yury Norov
All new 32-bit architectures should have 64-bit userspace off_t type, but existing architectures has 32-bit ones. To enforce the rule, new config option is added to arch/Kconfig that defaults ARCH_32BIT_OFF_T to be disabled for new 32-bit architectures. All existing 32-bit architectures enable it

[PATCH 03/24] compat ABI: use non-compat openat and open_by_handle_at variants

2018-05-16 Thread Yury Norov
The only difference between native and compat openat and open_by_handle_at is that non-compat version forces O_LARGEFILE, and it should be the default behaviour for all architectures, as we are going to drop the support of 32-bit userspace off_t. The exception is tile32 that continues with compat

[PATCH] ARM: berlin: switch to SPDX license identifier

2018-05-16 Thread Jisheng Zhang
Use the appropriate SPDX license identifier and drop the previous boilerplate license text. Signed-off-by: Jisheng Zhang --- arch/arm/mach-berlin/berlin.c | 5 + arch/arm/mach-berlin/headsmp.S | 5 + arch/arm/mach-berlin/platsmp.c | 5 + 3 files

Re: [PATCH] nvmem: Don't let a NULL cell_id for nvmem_cell_get() crash us

2018-05-16 Thread Srinivas Kandagatla
On 15/05/18 22:16, Douglas Anderson wrote: In commit ca04d9d3e1b1 ("phy: qcom-qusb2: New driver for QUSB2 PHY on Qcom chips") you can see a call like: devm_nvmem_cell_get(dev, NULL); Note that the cell ID passed to the function is NULL. This is because the qcom-qusb2 driver is expected

[PATCH v2] media: helene: add I2C device probe function

2018-05-16 Thread Katsuhiro Suzuki
This patch adds I2C probe function to use dvb_module_probe() with this driver. Signed-off-by: Katsuhiro Suzuki --- Changes since v1: - Add documents for dvb_frontend member of helene_config --- drivers/media/dvb-frontends/helene.c | 88

[RFC v4 3/5] virtio_ring: add packed ring support

2018-05-16 Thread Tiwei Bie
This commit introduces the basic support (without EVENT_IDX) for packed ring. Signed-off-by: Tiwei Bie --- drivers/virtio/virtio_ring.c | 491 ++- 1 file changed, 481 insertions(+), 10 deletions(-) diff --git a/drivers/virtio/virtio_ring.c

Re: [PATCH v2 2/2] ARM: dts: r8a7740: Add CEU0

2018-05-16 Thread Simon Horman
On Wed, May 16, 2018 at 09:40:09AM +0200, Geert Uytterhoeven wrote: > Hi Jacopo, > > On Thu, Apr 26, 2018 at 8:24 PM, Jacopo Mondi > wrote: > > Describe CEU0 peripheral for Renesas R-Mobile A1 R8A7740 Soc. > > > > Reported-by: Geert Uytterhoeven > >

Re: [PATCH net-next v2 0/2] of: mdio: Fall back to mdiobus_register() with NULL device_node

2018-05-16 Thread Geert Uytterhoeven
Hi Florian, Thanks for your series! I like the effect on simplifying drivers. On Wed, May 16, 2018 at 1:56 AM, Florian Fainelli wrote: > This patch series updates of_mdiobus_register() such that when the device_node > argument is NULL, it calls mdiobus_register() directly.

Re: [PATCH 06/18] arm64: move sve_user_{enable, disable} to

2018-05-16 Thread Dave Martin
On Tue, May 15, 2018 at 05:33:52PM +0100, Mark Rutland wrote: > On Tue, May 15, 2018 at 01:19:26PM +0100, Dave Martin wrote: > > On Tue, May 15, 2018 at 11:39:36AM +0100, Mark Rutland wrote: > > > On Mon, May 14, 2018 at 12:06:50PM +0100, Dave Martin wrote: > > > > On Mon, May 14, 2018 at

[PATCH] md: zero the original position of sb for 0.90 and 1.0

2018-05-16 Thread Jianchao Wang
For sb version 0.90 and 1.0 which locates after data, when we increase the spindle volume size and grow the raid arry size, the older sb which is different between spindles will be left there. Due to this left sb, the spindle volume cannot be grown with zero filled part with --asume-clean.

Re: [PATCH 1/4] amba: Export amba_bustype

2018-05-16 Thread Russell King - ARM Linux
On Wed, May 16, 2018 at 12:16:28PM +0300, Andy Shevchenko wrote: > On Tue, May 8, 2018 at 10:06 PM, Kim Phillips wrote: > > This patch is provided in the context of allowing the Coresight driver > > subsystem to be loaded as modules. Coresight uses amba_bus in its call > >

[PATCH] intel_th: pti: Convert to use sysfs_match_string() helper

2018-05-16 Thread Yisheng Xie
The helper returns index of the matching string in an array, use it to simpler the code. Signed-off-by: Yisheng Xie --- drivers/hwtracing/intel_th/pti.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/hwtracing/intel_th/pti.c

Re: [PATCH] mm/page_alloc: use ac->high_zoneidx for classzone_idx

2018-05-16 Thread Vlastimil Babka
On 05/08/2018 03:00 AM, Joonsoo Kim wrote: >> classzone predates my involvement with Linux but I would be less concerneed >> about what the original intent was and instead ensure that classzone index >> is consistent, sane and potentially renamed while preserving the intent of >> "reserve pages in

RE: [PATCH v3] ASoC: da7219: read fmw property to get mclk for non-dts systems

2018-05-16 Thread Adam Thomson
On 07 May 2018 05:50, Agrawal, Akshu wrote: Apologies for the delay in response. Please see comments below. > On 5/4/2018 2:45 PM, Adam Thomson wrote: > > On 03 May 2018 08:59, Akshu Agrawal wrote: > > > >> Non-dts based systems can use ACPI DSDT to pass on the mclk > >> to da7219. > >> This

Re: [PATCH 14/14] net: sched: implement delete for all actions

2018-05-16 Thread Jiri Pirko
Mon, May 14, 2018 at 04:27:15PM CEST, vla...@mellanox.com wrote: >Implement delete function that is required to delete actions without >holding rtnl lock. Use action API function that atomically deletes action >only if it is still in action idr. This implementation prevents concurrent >threads

[PATCH 40/42] ide: replace ->proc_fops with ->proc_show

2018-05-16 Thread Christoph Hellwig
Just set up the show callback in the tty_operations, and use proc_create_single_data to create the file without additional boilerplace code. Signed-off-by: Christoph Hellwig --- drivers/ide/ide-cd.c | 15 +--- drivers/ide/ide-disk_proc.c | 62 ++--

Re: [PATCH] nvme-rdma: clear NVME_RDMA_Q_LIVE before free the queue

2018-05-16 Thread jianchao.wang
Hi Sagi On 05/09/2018 11:06 PM, Sagi Grimberg wrote: > The correct fix would be to add a tag for stop_queue and call > nvme_rdma_stop_queue() in all the failure cases after > nvme_rdma_start_queue. Would you please look at the V2 in following link ?

Re: [RFC][PATCH] KVM: APPLES can improve the performance of applications and virtualized systems by up to 49%

2018-05-16 Thread David Hildenbrand
On 12.05.2018 10:27, Weiwei Jia wrote: > Dear all, > > Recently, we made a few improvements on effectively utilizing Pause > Loop Exiting (PLE) support for higher throughput on virtualized > systems. Basically, it solves two problems: 1) how to adjust > PLE_Window; 2) how to select virtual CPUs

Re: [RFC/RFT] [PATCH 07/10] cpufreq: intel_pstate: HWP boost performance on busy task migrate

2018-05-16 Thread Rafael J. Wysocki
On Wed, May 16, 2018 at 6:49 AM, Srinivas Pandruvada wrote: > When a busy task migrates to a new CPU boost HWP prformance to max. This > helps workloads on servers with per core P-states, which saturates all > CPUs and then they migrate frequently. But

[PATCH 34/42] netfilter/x_tables: switch to proc_create_seq_private

2018-05-16 Thread Christoph Hellwig
And remove proc boilerplate code. Signed-off-by: Christoph Hellwig --- net/netfilter/x_tables.c | 42 ++-- 1 file changed, 6 insertions(+), 36 deletions(-) diff --git a/net/netfilter/x_tables.c b/net/netfilter/x_tables.c index

[PATCH 27/42] resource: switch to proc_create_seq_data

2018-05-16 Thread Christoph Hellwig
And use the root resource directly from the proc private data. Signed-off-by: Christoph Hellwig --- kernel/resource.c | 43 +-- 1 file changed, 5 insertions(+), 38 deletions(-) diff --git a/kernel/resource.c b/kernel/resource.c index

[PATCH 29/42] rtc/proc: switch to proc_create_single_data

2018-05-16 Thread Christoph Hellwig
And stop trying to get a reference on the submodule, procfs code deals with release after an unloaded module and thus removed proc entry. Signed-off-by: Christoph Hellwig Acked-by: Alexandre Belloni --- drivers/rtc/rtc-proc.c | 33

[PATCH 25/42] jfs: simplify procfs code

2018-05-16 Thread Christoph Hellwig
Use remove_proc_subtree to remove the whole subtree on cleanup, and unwind the registration loop into individual calls. Switch to use proc_create_seq where applicable. Signed-off-by: Christoph Hellwig --- fs/jfs/jfs_debug.c| 43 ++-

[PATCH 36/42] atm: simplify procfs code

2018-05-16 Thread Christoph Hellwig
Use remove_proc_subtree to remove the whole subtree on cleanup, and unwind the registration loop into individual calls. Switch to use proc_create_seq where applicable. Also don't bother handling proc_create* failures - the driver works perfectly fine without the proc files, and the cleanup will

[PATCH 05/42] proc: add a proc_create_reg helper

2018-05-16 Thread Christoph Hellwig
Common code for creating a regular file. Factor out of proc_create_data, to be reused by other functions soon. Signed-off-by: Christoph Hellwig --- fs/proc/generic.c | 44 +--- fs/proc/internal.h | 2 ++ 2 files changed, 27 insertions(+),

[PATCH v2 12/14] powerpc/mm: Make pte_fragment_alloc() common to PPC32 and PPC64

2018-05-16 Thread Christophe Leroy
In order to allow the 8xx to handle pte_fragments, this patch makes it common to PPC32 and PPC64 by moving the related code to common files and by defining a new config item called CONFIG_NEED_PTE_FRAG Signed-off-by: Christophe Leroy ---

[PATCH v2 00/14] Implement use of HW assistance on TLB table walk on 8xx

2018-05-16 Thread Christophe Leroy
The purpose of this serie is to implement hardware assistance for TLB table walk on the 8xx. First part is to make L1 entries and L2 entries independant. For that, we need to alter ioremap functions in order to handle GUARD attribute at the PGD/PMD level. Last part is to reuse PTE fragment

Re: [PATCH] mtd: spi-nor: add support for Microchip 25LC256

2018-05-16 Thread Radu Pirea
On Wed, 2018-05-16 at 00:17 +0200, Marek Vasut wrote: > On 05/15/2018 06:22 PM, Radu Pirea wrote: > > On Fri, 2018-05-04 at 20:40 +0200, Boris Brezillon wrote: > > > On Fri, 4 May 2018 18:54:04 +0300 > > > Radu Pirea wrote: > > > > > > > Added geometry description for

[PATCH v2 14/14] powerpc/8xx: Move SW perf counters in first 32kb of memory

2018-05-16 Thread Christophe Leroy
In order to simplify time critical exceptions handling 8xx specific SW perf counters, this patch moves the counters into the begining of memory. This is possible because .text is readable and the counters are never modified outside of the handlers. By doing this, we avoid having to set a second

[PATCH 2/2] x86/boot/KASLR: Skip specified number of 1GB huge pages when do physical randomization

2018-05-16 Thread Baoquan He
For 1GB huge pages allocation, a regression bug is reported when KASLR is enabled. On KVM guest with 4GB RAM, and add the following to the kernel command-line: 'default_hugepagesz=1G hugepagesz=1G hugepages=1' Then boot the guest and check number of 1GB pages reserved: grep

[PATCH v2 07/14] powerpc/8xx: set GUARDED attribute in the PMD directly

2018-05-16 Thread Christophe Leroy
On the 8xx, the GUARDED attribute of the pages is managed in the L1 entry, therefore to avoid having to copy it into L1 entry at each TLB miss, we set it in the PMD. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/nohash/32/pte-8xx.h | 3 ++-

[PATCH v2 08/14] powerpc/8xx: Remove PTE_ATOMIC_UPDATES

2018-05-16 Thread Christophe Leroy
commit 1bc54c03117b9 ("powerpc: rework 4xx PTE access and TLB miss") introduced non atomic PTE updates and started the work of removing PTE updates in TLB miss handlers, but kept PTE_ATOMIC_UPDATES for the 8xx with the following comment: /* Until my rework is finished, 8xx still needs atomic PTE

[PATCH 08/42] proc: introduce proc_create_single{,_data}

2018-05-16 Thread Christoph Hellwig
Variants of proc_create{,_data} that directly take a seq_file show callback and drastically reduces the boilerplate code in the callers. All trivial callers converted over. Signed-off-by: Christoph Hellwig --- arch/arm/kernel/dma.c | 14 +---

[PATCH 10/42] ipv{4,6}/tcp: simplify procfs registration

2018-05-16 Thread Christoph Hellwig
Avoid most of the afinfo indirections and just call the proc helpers directly. Signed-off-by: Christoph Hellwig --- include/net/tcp.h | 11 ++ net/ipv4/tcp_ipv4.c | 85 + net/ipv6/tcp_ipv6.c | 27 +- 3 files changed, 53

Re: [J-core] [PATCH v5 00/22] sh: LANDISK and R2Dplus convert to device tree

2018-05-16 Thread Yoshinori Sato
On Tue, 15 May 2018 10:41:52 +0900, Rich Felker wrote: > > On Mon, May 07, 2018 at 10:40:34AM +0900, Yoshinori Sato wrote: > > On Thu, 03 May 2018 19:07:38 +0900, > > John Paul Adrian Glaubitz wrote: > > > > > > [1 ] > > > Hi Rich! > > > > > > On 05/03/2018 04:33 AM, Rich Felker wrote: > > > >

Re: [PATCH v10 23/25] mm: add speculative page fault vmstats

2018-05-16 Thread Laurent Dufour
On 16/05/2018 04:50, Ganesh Mahendran wrote: > 2018-04-17 22:33 GMT+08:00 Laurent Dufour : >> Add speculative_pgfault vmstat counter to count successful speculative page >> fault handling. >> >> Also fixing a minor typo in include/linux/vm_event_item.h. >> >>

Re: [PATCH 4/6] drm/panel: simple: Add support for Banana Pi 7" S070WV20-CT16 panel

2018-05-16 Thread Chen-Yu Tsai
On Mon, May 14, 2018 at 11:03 AM, Jagan Teki wrote: > On Thu, Apr 19, 2018 at 3:02 PM, Chen-Yu Tsai wrote: >> This panel is marketed as Banana Pi 7" LCD display. On the back is >> a sticker denoting the model name S070WV20-CT16. >> >> This is a 7"

[PATCH 1/4] i2c: xlp9xx: Add support for SMBAlert

2018-05-16 Thread George Cherian
Add support for SMBus alert mechanism to i2c-xlp9xx driver. The second interrupt is parsed to use for SMBus alert. The first interrupt is the i2c controller main interrupt. Signed-off-by: Kamlakant Patel Signed-off-by: George Cherian

Re: [RFC PATCH 00/10] Add persistent clock support

2018-05-16 Thread Baolin Wang
On 16 May 2018 at 10:20, Baolin Wang wrote: > Hi Daniel, > > On 15 May 2018 at 18:27, Daniel Lezcano wrote: >> On Mon, May 14, 2018 at 04:55:26PM +0800, Baolin Wang wrote: >>> Hi, >>> >>> We will meet below issues when compensating the suspend

[PATCH v2 2/2] i2c: busses: make use of i2c_8bit_addr_from_msg

2018-05-16 Thread Peter Rosin
Because it looks neater. For diolan, this allows factoring out some code that is now common between if and else. For eg20t, pch_i2c_writebytes is always called with a write in msgs->flags, and pch_i2c_readbytes with a read. For imx, i2c_imx_dma_write and i2c_imx_write are always called with a

[PATCH v2 1/2] i2c: algos: make use of i2c_8bit_addr_from_msg

2018-05-16 Thread Peter Rosin
Because it looks neater. Signed-off-by: Peter Rosin --- drivers/i2c/algos/i2c-algo-bit.c | 4 +--- drivers/i2c/algos/i2c-algo-pca.c | 5 + drivers/i2c/algos/i2c-algo-pcf.c | 8 ++-- 3 files changed, 4 insertions(+), 13 deletions(-) diff --git

Re: KMSAN: uninit-value in __sctp_v6_cmp_addr

2018-05-16 Thread Xin Long
On Wed, May 16, 2018 at 12:25 AM, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:74ee2200b89f kmsan: bump .config.example to v4.17-rc3 > git tree: https://github.com/google/kmsan.git/master > console

[PATCH v2 0/2] i2c: make use of i2c_8bit_addr_from_msg

2018-05-16 Thread Peter Rosin
Hi! The nice little inline i2c_8bit_addr_from_msg is not getting enough use. This series improves the situation and drops a bunch of lines in the process. I have only compile-tested (that part fine, at least over here). Changes since v1 https://lkml.org/lkml/2018/5/14/919 - Squashed

Re: [PATCH v2] powerpc: kvm: Change return type to vm_fault_t

2018-05-16 Thread Souptick Joarder
On Wed, May 16, 2018 at 12:38 PM, Paul Mackerras wrote: > On Wed, May 16, 2018 at 10:11:11AM +0530, Souptick Joarder wrote: >> On Thu, May 10, 2018 at 11:57 PM, Souptick Joarder >> wrote: >> > Use new return type vm_fault_t for fault handler >> > in

[PATCH] clk: berlin: switch to SPDX license identifier

2018-05-16 Thread Jisheng Zhang
Use the appropriate SPDX license identifier and drop the previous license text. Signed-off-by: Jisheng Zhang --- drivers/clk/berlin/berlin2-avpll.c | 13 + drivers/clk/berlin/berlin2-avpll.h | 13 + drivers/clk/berlin/berlin2-div.c | 13

Re: [RESEND PATCH v5 0/6] Add support for PWM input capture on STM32

2018-05-16 Thread Lee Jones
On Wed, 16 May 2018, Fabrice Gasnier wrote: > This series adds support for capture to stm32-pwm driver. > Capture is based on DMAs. > - First two patches add support for requesting DMAs to MFD core > - Next three patches add support for capture to stm32-pwm driver > - This has been tested on

Re: [PATCH 3/4] x86/boot/compressed/64: Fix trampoline page table address calculation

2018-05-16 Thread Kirill A. Shutemov
Ouch. Please ignore this and the next patch. It was sent by mistake. Sorry. -- Kirill A. Shutemov

[PATCH v9 00/24] ILP32 for ARM64

2018-05-16 Thread Yury Norov
This series enables AARCH64 with ILP32 mode. As supporting work, it introduces ARCH_32BIT_OFF_T configuration option that is enabled for existing 32-bit architectures but disabled for new arches (so 64-bit off_t userspace type is used by new userspace). Also it deprecates getrlimit and setrlimit

[PATCH 01/24] arm64: signal: Make parse_user_sigframe() independent of rt_sigframe layout

2018-05-16 Thread Yury Norov
From: Dave Martin ILP32 uses the same struct sigcontext as the native ABI (i.e., LP64), but a different layout for the rest of the signal frame (since siginfo_t and ucontext_t are both ABI-dependent). Since the purpose of parse_user_sigframe() is really to parse sigcontext

[GIT PULL] Immutable branch between MFD and PWM due for the v4.18 merge window

2018-05-16 Thread Lee Jones
Enjoy! The following changes since commit 60cc43fc888428bb2f18f08997432d426a243338: Linux 4.17-rc1 (2018-04-15 18:24:20 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git ib-mfd-pwm-v4.18 for you to fetch changes up to

[PATCH 10/24] arm64: uapi: set __BITS_PER_LONG correctly for ILP32 and LP64

2018-05-16 Thread Yury Norov
From: Andrew Pinski Define __BITS_PER_LONG depending on the ABI used (i.e. check whether __ILP32__ or __LP64__ is defined). This is necessary for glibc to determine the appropriate type definitions for the system call interface. Signed-off-by: Andrew Pinski

Re: [PATCH] clk: meson: use SPDX license identifiers consistently

2018-05-16 Thread Jerome Brunet
On Tue, 2018-05-15 at 10:58 -0700, Stephen Boyd wrote: > Quoting Jerome Brunet (2018-05-15 09:42:29) > > diff --git a/drivers/clk/meson/clk-audio-divider.c > > b/drivers/clk/meson/clk-audio-divider.c > > index f7ab5b1db342..ac0743cd0f2f 100644 > > --- a/drivers/clk/meson/clk-audio-divider.c > >

Re: [RESEND PATCH v5 0/6] Add support for PWM input capture on STM32

2018-05-16 Thread Fabrice Gasnier
On 05/16/2018 10:06 AM, Lee Jones wrote: > On Wed, 16 May 2018, Fabrice Gasnier wrote: > >> This series adds support for capture to stm32-pwm driver. >> Capture is based on DMAs. >> - First two patches add support for requesting DMAs to MFD core >> - Next three patches add support for capture to

RE: [PATCH v2 0/9] iommu/vt-d: Improve PASID id and table management

2018-05-16 Thread Tian, Kevin
> From: Lu Baolu [mailto:baolu...@linux.intel.com] > Sent: Wednesday, May 16, 2018 4:01 PM > > Hi Joerg, > > Thank you for looking at my patches. > > On 05/15/2018 10:11 PM, Joerg Roedel wrote: > > On Fri, May 04, 2018 at 09:41:15AM +0800, Lu Baolu wrote: > >> PATCH 4~9 implement per domain

Re: [PATCH v2 26/26] drm/bridge: establish a link between the bridge supplier and consumer

2018-05-16 Thread Daniel Vetter
On Tue, May 15, 2018 at 01:09:59PM +0200, Peter Rosin wrote: > On 2018-05-15 12:22, Daniel Vetter wrote: > > On Mon, May 14, 2018 at 10:40 PM, Peter Rosin wrote: > >> On 2018-05-14 18:28, Daniel Vetter wrote: > >>> On Fri, May 11, 2018 at 09:37:47AM +0200, Peter Rosin wrote: >

[PATCH 32/42] neigh: switch to proc_create_seq_data

2018-05-16 Thread Christoph Hellwig
And use proc private data directly instead of doing a detour through seq->private. Signed-off-by: Christoph Hellwig --- net/core/neighbour.c | 31 ++- 1 file changed, 6 insertions(+), 25 deletions(-) diff --git a/net/core/neighbour.c

[PATCH 41/42] tty: replace ->proc_fops with ->proc_show

2018-05-16 Thread Christoph Hellwig
Just set up the show callback in the tty_operations, and use proc_create_single_data to create the file without additional boilerplace code. Signed-off-by: Christoph Hellwig --- arch/ia64/hp/sim/simserial.c| 15 +-- arch/xtensa/platforms/iss/console.c | 15

[PATCH 38/42] isdn: replace ->proc_fops with ->proc_show

2018-05-16 Thread Christoph Hellwig
And switch to proc_create_single_data. Signed-off-by: Christoph Hellwig --- drivers/isdn/capi/kcapi.c | 3 ++- drivers/isdn/gigaset/capi.c| 16 +--- drivers/isdn/hardware/avm/avmcard.h| 4 ++-- drivers/isdn/hardware/avm/b1.c | 17

Re: [PATCH 13/14] net: sched: use unique idr insert function in unlocked actions

2018-05-16 Thread Jiri Pirko
Mon, May 14, 2018 at 04:27:14PM CEST, vla...@mellanox.com wrote: >Substitute calls to action insert function with calls to action insert >unique function that warns if insertion overwrites index in idr. > >Signed-off-by: Vlad Buslov >--- > net/sched/act_bpf.c| 2 +- >

[PATCH 14/42] net/kcm: simplify proc registration

2018-05-16 Thread Christoph Hellwig
Remove a couple indirections to make the code look like most other protocols. Signed-off-by: Christoph Hellwig --- net/kcm/kcmproc.c | 71 --- 1 file changed, 17 insertions(+), 54 deletions(-) diff --git a/net/kcm/kcmproc.c

[PATCH 11/42] ipv{4,6}/ping: simplify proc file creation

2018-05-16 Thread Christoph Hellwig
Remove the pointless ping_seq_afinfo indirection and make the code look like most other protocols. Signed-off-by: Christoph Hellwig --- include/net/ping.h | 11 -- net/ipv4/ping.c| 50 +- net/ipv6/ping.c| 35

[PATCH v2 03/14] powerpc: make ioremap_bot common to PPC32 and PPC64

2018-05-16 Thread Christophe Leroy
Today, early ioremap maps from IOREMAP_BASE down to up on PPC64 and from IOREMAP_TOP up to down on PPC32 This patchs modifies PPC32 behaviour to get same behaviour as PPC64 Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/book3s/32/pgtable.h | 29

[PATCH v2 04/14] powerpc: common ioremap functions.

2018-05-16 Thread Christophe Leroy
__ioremap(), ioremap(), ioremap_wc() et ioremap_prot() are very similar between PPC32 and PPC64, they can easily be made common. _PAGE_WRITE equals to _PAGE_RW on PPC32 _PAGE_RO and _PAGE_HWWRITE are 0 on PPC64 iounmap() can also be made common by renaming the PPC32 iounmap() as __iounmap() then

[PATCH v2 01/14] Revert "powerpc/8xx: Use L1 entry APG to handle _PAGE_ACCESSED for CONFIG_SWAP"

2018-05-16 Thread Christophe Leroy
This reverts commit 4f94b2c7462d9720b2afa7e8e8d4c19446bb31ce. That commit was buggy, as it used rlwinm instead of rlwimi. Instead of fixing that bug, we revert the previous commit in order to reduce the dependency between L1 entries and L2 entries Signed-off-by: Christophe Leroy

[PATCH 09/42] ipv{4,6}/udp{,lite}: simplify proc registration

2018-05-16 Thread Christoph Hellwig
Remove a couple indirections to make the code look like most other protocols. Signed-off-by: Christoph Hellwig --- include/net/udp.h | 20 -- net/ipv4/udp.c | 99 +- net/ipv4/udplite.c | 21 +++--- net/ipv6/udp.c | 30

Re: linux-next: manual merge of the rockchip tree with the renesas tree

2018-05-16 Thread Simon Horman
Thanks Stephen, On Wed, May 16, 2018 at 11:39:18AM +1000, Stephen Rothwell wrote: > Hi all, > > On Thu, 3 May 2018 08:36:54 +1000 Stephen Rothwell > wrote: > > > > Today's linux-next merge of the rockchip tree got a conflict in: > > > > arch/arm64/configs/defconfig >

[PATCH] powerpc: get rid of PMD_PAGE_SIZE()

2018-05-16 Thread Christophe Leroy
PMD_PAGE_SIZE() is nowhere used, this patch removes it Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/nohash/32/pte-40x.h | 2 -- arch/powerpc/include/asm/pte-common.h| 5 - 2 files changed, 7 deletions(-) diff --git

Re: [RFC] powerpc/emulate_step: Fix kernel crash when VSX is not present

2018-05-16 Thread Naveen N. Rao
[Adding Mikey] Ravi Bangoria wrote: emulate_step() is not checking runtime VSX feature flag before emulating an instruction. This can cause kernel oops when kernel is compiled with CONFIG_VSX=y but running on machine where VSX is not supported or disabled. Ex, while running emulate_step tests

Re: [PATCH v2] powerpc: kvm: Change return type to vm_fault_t

2018-05-16 Thread Paul Mackerras
On Wed, May 16, 2018 at 10:11:11AM +0530, Souptick Joarder wrote: > On Thu, May 10, 2018 at 11:57 PM, Souptick Joarder > wrote: > > Use new return type vm_fault_t for fault handler > > in struct vm_operations_struct. For now, this is > > just documenting that the function

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

2018-05-16 Thread Geert Uytterhoeven
On Tue, May 15, 2018 at 11:27 PM, Stephen Rothwell wrote: > Commit > > f18fab4bcb4f ("pinctrl: sh-pfc: Add r8a77470 PFC support") > > is missing a Signed-off-by from its comitter. Sorry, I forgot to add it. Linus, as the merge of sh-pfc is your top commit, shall I fix

Re: [RFC/RFT] [PATCH 02/10] cpufreq: intel_pstate: Conditional frequency invariant accounting

2018-05-16 Thread Peter Zijlstra
On Tue, May 15, 2018 at 09:49:03PM -0700, Srinivas Pandruvada wrote: > intel_pstate has two operating modes: active and passive. In "active" > mode, the in-built scaling governor is used and in "passive" mode, > the driver can be used with any governor like "schedutil". In "active" > mode the

Re: [Intel-gfx] [PATCH v2 2/5] drm/i915: hdmi: add CEC notifier to intel_hdmi

2018-05-16 Thread Neil Armstrong
Hi Ville, On 15/05/2018 17:35, Ville Syrjälä wrote: > On Tue, May 15, 2018 at 04:42:19PM +0200, Neil Armstrong wrote: >> This patchs adds the cec_notifier feature to the intel_hdmi part >> of the i915 DRM driver. It uses the HDMI DRM connector name to differentiate >> between each HDMI ports. >>

Re: [PATCH] f2fs: Fix deadlock in shutdown ioctl

2018-05-16 Thread Sahitya Tummala
On Wed, May 16, 2018 at 02:48:42PM +0800, Chao Yu wrote: > > > > Thanks, I thought about it too but then I checked that XFS shutdown ioctl is > > not taking any lock for this ioctl. Hence, I followed the same in F2FS. > > Do you know why XFS is not taking any lock? > > I don't know. :( No

Re: [PATCH] MAINTAINERS: Add entry for STM32 timer and lptimer drivers

2018-05-16 Thread Alexandre Torgue
Hi Fabrice On 05/15/2018 05:33 PM, Fabrice Gasnier wrote: Add an entry to make myself a maintainer of STM32 timer and lptimer drivers. Signed-off-by: Fabrice Gasnier --- MAINTAINERS | 10 ++ 1 file changed, 10 insertions(+) diff --git a/MAINTAINERS

Re: [GIT PULL rcu/next] RCU commits for 4.18

2018-05-16 Thread Ingo Molnar
* Paul E. McKenney wrote: > Hello, Ingo! > > This pull request contains the following changes: > > 1.Updates to the handling of expedited grace periods, perhaps most > notably parallelizing their initialization. Other changes > include fixes from

Re: [PATCH 3/3] types: use fixed width types without double-underscore prefix

2018-05-16 Thread Greg Kroah-Hartman
On Wed, May 16, 2018 at 03:59:01PM +0900, Masahiro Yamada wrote: > 2018-05-16 15:26 GMT+09:00 Greg Kroah-Hartman : > > On Wed, May 16, 2018 at 10:07:50AM +0900, Masahiro Yamada wrote: > >> Hi Andrew, > >> > >> 2018-05-16 7:59 GMT+09:00 Andrew Morton

Re: [RFC][PATCH 06/10] tracing: Add trigger file for trace_markers tracefs/ftrace/print

2018-05-16 Thread Namhyung Kim
Hi Steve, On Mon, May 14, 2018 at 11:04:36AM -0400, Steven Rostedt wrote: > On Mon, 14 May 2018 12:13:22 +0900 > Namhyung Kim wrote: > > > On Fri, May 11, 2018 at 03:49:33PM -0400, Steven Rostedt wrote: > > > From: "Steven Rostedt (VMware)" > > > > >

Re: [PATCH -mm] mm, hugetlb: Pass fault address to no page handler

2018-05-16 Thread Kirill A. Shutemov
On Wed, May 16, 2018 at 12:42:43AM +, Huang, Ying wrote: > >> + unsigned long address = faddress & huge_page_mask(h); > > > > faddress? I would rather keep it address and rename maked out variable to > > 'haddr'. We use 'haddr' for the cause in other places. > > I found haddr is popular in

[PATCH 3/4] x86/boot/compressed/64: Fix trampoline page table address calculation

2018-05-16 Thread Kirill A. Shutemov
Hugh noticied that I calculate address of trampoline page table wrong in cleanup_trampoline(). TRAMPOLINE_32BIT_PGTABLE_OFFSET has to be divided by sizeof(unsigned long) since trampoline_32bit is unsigned long pointer. TRAMPOLINE_32BIT_PGTABLE_OFFSET is zero so the bug doesn't have a visible

[PATCH 4/4] x86/mm: Introduce 'no5lvl' kernel parameter

2018-05-16 Thread Kirill A. Shutemov
The kernel parameter allows to force kernel to use 4-level paging even if hardware and kernel support 5-level paging. The option may be useful to workaround regressions related to 5-level paging. Signed-off-by: Kirill A. Shutemov ---

[PATCH 12/24] arm64: ilp32: add is_ilp32_compat_{task,thread} and TIF_32BIT_AARCH64

2018-05-16 Thread Yury Norov
ILP32 tasks are needed to be distinguished from LP64 and AARCH32. This patch adds helper functions is_ilp32_compat_{task,thread} and thread flag TIF_32BIT_AARCH64 to address it. This is a preparation for following patches in ILP32 patchset. For consistency, SET_PERSONALITY is changed here

  1   2   3   4   5   6   7   8   9   10   >