Re: [PATCH] crypto: cavium/nitrox - Enabled Mailbox support

2018-12-13 Thread Herbert Xu
On Tue, Dec 04, 2018 at 12:55:54PM +, Srikanth, Jampala wrote: > Enabled the PF->VF Mailbox support. Mailbox message are interpreted > as {type, opcode, data}. Supported message types are REQ, ACK and NACK. > > Signed-off-by: Srikanth Jampala > --- > drivers/crypto/cavium/nitrox/Makefile

Re: [RFC PATCH] akcipher: Introduce verify2 for public key algorithms

2018-12-13 Thread Tudor.Ambarus
Hi, On 12/11/2018 06:59 PM, Vitaly Chikunov wrote: > Current akcipher .verify() just decrypts signature to uncover message > hash, which is then verified in upper level public_key_verify_signature > by memcmp with the expected signature value, which is never passed into > verify(). > > This appro

Re: [PATCH] Revert "iommu/io-pgtable-arm: Check for v7s-incapable systems"

2018-12-13 Thread Robin Murphy
On 2018-12-13 9:19 am, Yong Wu wrote: This reverts commit 82db33dc5e49fb625262d81125625d07a0d6184e. After the commit 29859aeb8a6e ("iommu/io-pgtable-arm-v7s: Abort allocation when table address overflows the PTE"), v7s will return fail if the page table allocation isn't expected. this PHYS_OFFSE

Re: [PATCH v6 05/13] KVM: nVMX: implement enlightened VMPTRLD and VMCLEAR

2018-12-13 Thread Vitaly Kuznetsov
Jim Mattson writes: > On Tue, Oct 16, 2018 at 9:50 AM Vitaly Kuznetsov wrote: >> >> + >> + vmx->nested.hv_evmcs = kmap(vmx->nested.hv_evmcs_page); > > Are you sure that directly mapping guest memory isn't going to lead to > time-of-check vs. time-of-use bugs? This is a very hard pr

Re: [PATCH v3] mm: thp: fix flags for pmd migration when split

2018-12-13 Thread Peter Xu
On Thu, Dec 13, 2018 at 12:59:42PM +0300, Kirill A. Shutemov wrote: > On Thu, Dec 13, 2018 at 01:15:10PM +0800, Peter Xu wrote: > > When splitting a huge migrating PMD, we'll transfer all the existing > > PMD bits and apply them again onto the small PTEs. However we are > > fetching the bits uncon

Re: [PATCH] fix dma-buf/udmabuf selftest

2018-12-13 Thread Gerd Hoffmann
On Wed, Dec 12, 2018 at 02:15:49PM -0700, shuah wrote: > Hi Daniel, > > On 11/27/18 3:33 AM, Tom Murphy wrote: > > This patch fixes the udmabuf selftest. Currently the selftest is broken. > > I fixed the selftest by setting the F_SEAL_SHRINK seal on the memfd > > file descriptor which is required

Re: [PATCH] drivers/base: use a worker for sysfs unbind

2018-12-13 Thread Rafael J. Wysocki
On Thu, Dec 13, 2018 at 10:58 AM Daniel Vetter wrote: > > On Thu, Dec 13, 2018 at 10:38:14AM +0100, Rafael J. Wysocki wrote: > > On Mon, Dec 10, 2018 at 9:47 AM Daniel Vetter > > wrote: > > > > > > Drivers might want to remove some sysfs files, which needs the same > > > locks and ends up angeri

RE: [v2] PCI: imx: make msi work without pcieportbus

2018-12-13 Thread Richard Zhu
> -Original Message- > From: Lucas Stach [mailto:l.st...@pengutronix.de] > Sent: 2018年12月13日 18:07 > To: Richard Zhu ; bhelg...@google.com; > lorenzo.pieral...@arm.com; andrew.smir...@gmail.com > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > linux-kernel@vger.kerne

Re: [PATCH] drm/xen-front: Make shmem backed display buffer coherent

2018-12-13 Thread Oleksandr Andrushchenko
Daniel, could you please comment? Thank you On 11/27/18 12:32 PM, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko When GEM backing storage is allocated with drm_gem_get_pages the backing pages may be cached, thus making it possible that the backend sees only partial content of th

Re: [Xen-devel][PATCH v2 2/3] drm/xen-front: Use Xen common shared buffer implementation

2018-12-13 Thread Oleksandr Andrushchenko
bump On 12/5/18 10:20 AM, Oleksandr Andrushchenko wrote: Hello, Daniel! Could you please ack/nack the patch, so either we can merge the series or I can address your comments if any Thank you, Oleksandr On 11/30/18 9:42 AM, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko Use

[PATCH 3/3] rtc: sd3078: new driver.

2018-12-13 Thread Dianlong Li
The sd3078 is a combination RTC and SRAM device with I2C interface. Signed-off-by: Dianlong Li --- MAINTAINERS |6 ++ drivers/rtc/Kconfig |9 ++ drivers/rtc/Makefile |1 + drivers/rtc/rtc-sd3078.c | 232 ++ 4 files ch

Re: [PATCH 3/3] epoll: use rwlock in order to reduce ep_poll_callback() contention

2018-12-13 Thread Roman Penyaev
On 2018-12-12 18:13, Andrea Parri wrote: On Wed, Dec 12, 2018 at 12:03:57PM +0100, Roman Penyaev wrote: [...] +static inline void list_add_tail_lockless(struct list_head *new, + struct list_head *head) +{ + struct list_head *prev; + + new->n

[PATCH 1/3] dt-bindings: define vendor prefix for whwave, Inc.

2018-12-13 Thread Dianlong Li
Introduce vendor prefix for whwave, Inc. for SD3078 rtc device. Signed-off-by: Dianlong Li --- .../devicetree/bindings/vendor-prefixes.txt|1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vend

Re: [PATCH v12 2/2] cpufreq: qcom-hw: Add support for QCOM cpufreq HW driver

2018-12-13 Thread Viresh Kumar
On 13-12-18, 02:12, Stephen Boyd wrote: > It's on a v4.19 kernel with this cpufreq hw driver backported to it. I > think all it takes is to return an error the second time the policy is > initialized when cpufreq_online() calls into the cpufreq driver. What do you mean by "the second time the poli

[PATCH 2/3] dt-bindings: rtc: sd3078: add device tree documentation

2018-12-13 Thread Dianlong Li
The devicetree documentation for the SD3078 device tree. Signed-off-by: Dianlong Li --- Documentation/devicetree/bindings/rtc/rtc.txt |1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/rtc/rtc.txt b/Documentation/devicetree/bindings/rtc/rtc.txt index 7c8da6

Re: [RFC PATCH] X.509: Parse public key parameters from x509 for akcipher

2018-12-13 Thread Herbert Xu
Vitaly Chikunov wrote: > Some public key algorithms (like ECDSA) keep in parameters field > important data such as digest and curve OIDs (possibly more for > different ECDSA variants). Thus, just setting a public key (as > for RSA) is not enough. > > Introduce set_params() callback for akcipher w

Re: [PATCH v12 2/2] cpufreq: qcom-hw: Add support for QCOM cpufreq HW driver

2018-12-13 Thread Stephen Boyd
Quoting Viresh Kumar (2018-12-13 02:05:06) > On 13-12-18, 01:58, Stephen Boyd wrote: > > BTW, Viresh, I see a lockdep splat when cpufreq_init returns an error > > upon bringing the policy online the second time. I guess cpufreq_stats > > aren't able to be freed from there because they take locks in

Re: [RFC PATCH] akcipher: Introduce verify2 for public key algorithms

2018-12-13 Thread Herbert Xu
Vitaly Chikunov wrote: > Current akcipher .verify() just decrypts signature to uncover message > hash, which is then verified in upper level public_key_verify_signature > by memcmp with the expected signature value, which is never passed into > verify(). > > This approach is incompatible with ECD

[PATCH net-next 0/3] vhost: accelerate metadata access through vmap()

2018-12-13 Thread Jason Wang
Hi: This series tries to access virtqueue metadata through kernel virtual address instead of copy_user() friends since they had too much overheads like checks, spec barriers or even hardware feature toggling. Test shows about 24% improvement on TX PPS. It should benefit other cases as well. Plea

[PATCH net-next 1/3] vhost: generalize adding used elem

2018-12-13 Thread Jason Wang
Use one generic vhost_copy_to_user() instead of two dedicated accessor. This will simplify the conversion to fine grain accessors. Signed-off-by: Jason Wang --- drivers/vhost/vhost.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/vhost/vhost.c b/drivers/v

[PATCH net-next 3/3] vhost: access vq metadata through kernel virtual address

2018-12-13 Thread Jason Wang
It was noticed that the copy_user() friends that was used to access virtqueue metdata tends to be very expensive for dataplane implementation like vhost since it involves lots of software check, speculation barrier, hardware feature toggling (e.g SMAP). The extra cost will be more obvious when tran

[PATCH net-next 2/3] vhost: fine grain userspace memory accessors

2018-12-13 Thread Jason Wang
This is used to hide the metadata address from virtqueue helpers. This will allow to implement a vmap based fast accessing to metadata. Signed-off-by: Jason Wang --- drivers/vhost/vhost.c | 94 +++ 1 file changed, 77 insertions(+), 17 deletions(-) diff --

Re: [PATCH] soc/tegra: pmc: Drop SMP dependency from CPU APIs

2018-12-13 Thread Stephen Boyd
Quoting Jon Hunter (2018-12-13 01:46:14) > When CONFIG_SMP is disabled, the tegra clk driver now fails to build: > > drivers/clk/tegra/clk-tegra30.c: In function ‘tegra30_cpu_rail_off_ready’: > drivers/clk/tegra/clk-tegra30.c:1151:2: error: implicit declaration of > function ‘tegra_pmc_cpu_is_pow

Re: [PATCH 1/8] perf: Allow to block process in syscall tracepoints

2018-12-13 Thread Peter Zijlstra
On Thu, Dec 13, 2018 at 11:01:49AM +0100, Peter Zijlstra wrote: > - the wakeups side is icky; the best I can come up with is making the >data page R/O and single stepping on write fault, but that isn't >multi-threading safe. We can emulate the instruction, that would actually work and be

Re: [v2] PCI: imx: make msi work without pcieportbus

2018-12-13 Thread Lucas Stach
Am Donnerstag, den 13.12.2018, 09:57 + schrieb Richard Zhu: > Hi Lucas: > > > -Original Message- > > > > From: Lucas Stach [mailto:l.st...@pengutronix.de] > > Sent: 2018年12月13日 17:19 > > > > > > To: Richard Zhu ; bhelg...@google.com; > > lorenzo.pieral...@arm.com; andrew.smir...@gmail.

Re: [PATCH 1/8] perf: Allow to block process in syscall tracepoints

2018-12-13 Thread Peter Zijlstra
On Thu, Dec 13, 2018 at 11:01:49AM +0100, Peter Zijlstra wrote: > One, very big maybe, would be to add a new tracepoint type that includes > a might_sleep() and we very carefully undo all the preempt_disable and > go sleep where we should. That also gives the tracepoint crud the > information it ne

Re: [PATCH v12 2/2] cpufreq: qcom-hw: Add support for QCOM cpufreq HW driver

2018-12-13 Thread Viresh Kumar
On 13-12-18, 01:58, Stephen Boyd wrote: > BTW, Viresh, I see a lockdep splat when cpufreq_init returns an error > upon bringing the policy online the second time. I guess cpufreq_stats > aren't able to be freed from there because they take locks in different > order vs. the normal path? Please sha

[RFC PATCH] compiler.h: support asm inline qualifier for better inlining

2018-12-13 Thread Masahiro Yamada
With the 'inline' qualifier supported for GCC's extended asm, we can improve inlining where we know the actual code size of asm statement is smaller than it looks. You can mark such asm statements as 'asm_inline' instead of 'asm'. 'asm_volatile_goto' is always considered as the minimum code size.

Re: [PATCH] radix tree: Don't return internal entries on lookup

2018-12-13 Thread Greg Kurz
On Thu, 6 Dec 2018 17:21:02 +0100 Greg Kurz wrote: > On Thu, 6 Dec 2018 05:36:20 -0800 > Matthew Wilcox wrote: > > > On Thu, Dec 06, 2018 at 08:54:03AM +0100, Greg Kurz wrote: > > > Commit 66ee620f06f9 ("idr: Permit any valid kernel pointer to > > > be stored") changed the radix tree lookup s

Re: [PATCH 1/8] perf: Allow to block process in syscall tracepoints

2018-12-13 Thread Peter Zijlstra
On Wed, Dec 12, 2018 at 08:26:39PM -0500, Steven Rostedt wrote: > On Thu, 13 Dec 2018 03:39:38 +0300 > "Dmitry V. Levin" wrote: > > > btw, I didn't ask for the implementation to be ugly. > > You don't have to introduce polling into the kernel if you don't want to, > > userspace is perfectly capab

Re: [PATCH 18/52] virtio-fs: Map cache using the values from the capabilities

2018-12-13 Thread Dr. David Alan Gilbert
* David Hildenbrand (da...@redhat.com) wrote: > On 13.12.18 10:13, Dr. David Alan Gilbert wrote: > > * David Hildenbrand (da...@redhat.com) wrote: > >> On 10.12.18 18:12, Vivek Goyal wrote: > >>> Instead of assuming we had the fixed bar for the cache, use the > >>> value from the capabilities. > >>

Re: [PATCH v3] mm: thp: fix flags for pmd migration when split

2018-12-13 Thread Kirill A. Shutemov
On Thu, Dec 13, 2018 at 01:15:10PM +0800, Peter Xu wrote: > When splitting a huge migrating PMD, we'll transfer all the existing > PMD bits and apply them again onto the small PTEs. However we are > fetching the bits unconditionally via pmd_soft_dirty(), pmd_write() > or pmd_yound() while actually

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

2018-12-13 Thread Petr Mladek
On Wed 2018-12-12 18:39:42, Daniel Wang wrote: > > Additionally, for dbdda842fe96f to work as expected we really > need fd5f7cde1b85d4c. Otherwise printk() can schedule under > console_sem and console_owner, which will deactivate the "load > balance" logic. > > It looks like fd5f7cde1b85d4c got in

Re: [PATCH v12 2/2] cpufreq: qcom-hw: Add support for QCOM cpufreq HW driver

2018-12-13 Thread Stephen Boyd
Quoting Taniya Das (2018-12-12 23:49:54) > The CPUfreq HW present in some QCOM chipsets offloads the steps necessary > for changing the frequency of CPUs. The driver implements the cpufreq > driver interface for this hardware engine. > > Signed-off-by: Saravana Kannan > Signed-off-by: Stephen Boy

Re: [PATCH] drivers/base: use a worker for sysfs unbind

2018-12-13 Thread Daniel Vetter
On Thu, Dec 13, 2018 at 10:38:14AM +0100, Rafael J. Wysocki wrote: > On Mon, Dec 10, 2018 at 9:47 AM Daniel Vetter wrote: > > > > Drivers might want to remove some sysfs files, which needs the same > > locks and ends up angering lockdep. Relevant snippet of the stack > > trace: > > > > kernfs_re

Re: [RFC PATCH 3/3] PCI: iproc: Add dma reserve resources to host

2018-12-13 Thread poza
On 2018-12-13 14:47, Srinath Mannam wrote: Hi Oza, Thank you for the review. Please find my comments in lined. On Thu, Dec 13, 2018 at 11:33 AM wrote: On 2018-12-12 11:16, Srinath Mannam wrote: > IPROC host has the limitation that it can use > only those address ranges given by dma-ranges >

RE: [v2] PCI: imx: make msi work without pcieportbus

2018-12-13 Thread Richard Zhu
Hi Lucas: > -Original Message- > From: Lucas Stach [mailto:l.st...@pengutronix.de] > Sent: 2018年12月13日 17:19 > To: Richard Zhu ; bhelg...@google.com; > lorenzo.pieral...@arm.com; andrew.smir...@gmail.com > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > linux-kernel@

Re: Can we drop upstream Linux x32 support?

2018-12-13 Thread Adam Borowski
On Thu, Dec 13, 2018 at 10:37:31AM +0100, Sven Hartrumpf wrote: > Will the proposed patch ("only") remove the possibility to build x32 kernels > or will it make impossible to compile and run any x32 binaries? There's no such thing as x32 kernels. It's an ABI atop amd64 kernels; the kernel is alwa

Re: [PATCH v2] MAINTAINERS: add maintainers for ChromeOS EC sub-drivers

2018-12-13 Thread Enric Balletbo i Serra
On 13/12/18 10:50, Alexandre Belloni wrote: > On 13/12/2018 10:30:16+0100, Enric Balletbo i Serra wrote: >>> However, you should probably indicate which tree do you expect that to >>> go through ;) >>> >> >> Well, these are sub-drivers for different subsystems but are related to the >> main >>

Re: intel_pstate: Lowest frequency not reached with Intel i7-6700

2018-12-13 Thread Paul Menzel
Dear Doug, Thank you for your reply. On 12/13/18 00:06, Doug Smythies wrote: > On 2018.12.12 13:40 Paul Menzel wrote: > >> Using *powersave* as P-state selection algorithm, on an idle system > > Define "idle system". > If your computer is running a GUI, or is even a server without a GUI > but

Re: [PATCH 4/5] netfilter: fix missed NULL check in nf_conntrack_proto_pernet_init()

2018-12-13 Thread Yafang Shao
On Thu, Dec 13, 2018 at 7:26 AM Pablo Neira Ayuso wrote: > > On Wed, Dec 05, 2018 at 08:56:29PM +0800, Yafang Shao wrote: > > nf_ct_l4proto_net() may return NULL. > > That may happens if some module forget to set both l4proto->get_net_proto > > and l4proto->net_id. > > We'd check the return value

Re: [PATCH v2] MAINTAINERS: add maintainers for ChromeOS EC sub-drivers

2018-12-13 Thread Alexandre Belloni
On 13/12/2018 10:30:16+0100, Enric Balletbo i Serra wrote: > > However, you should probably indicate which tree do you expect that to > > go through ;) > > > > Well, these are sub-drivers for different subsystems but are related to the > main > ChromeOS EC. I expect all go through their specific

Re: [PATCH v2] Allow hwrng to initialize crng.

2018-12-13 Thread Ard Biesheuvel
On Thu, 13 Dec 2018 at 10:18, Louis Collard wrote: > > Some systems, for example embedded systems, do not generate > enough entropy on boot through interrupts, and boot may be blocked for > several minutes waiting for a call to getrandom to complete. > > Currently, random data is read from a hwrng

Re: [PATCH v2] regmap: irq: handle HW using separate rising/falling edge interrupts

2018-12-13 Thread Bartosz Golaszewski
pt., 7 gru 2018 o 14:04 Bartosz Golaszewski napisał(a): > > From: Bartosz Golaszewski > > Some interrupt controllers use separate bits for controlling rising > and falling edge interrupts in the mask register i.e. they have one > interrupt for rising edge and one for falling. > > We already handl

Re: use generic DMA mapping code in powerpc V4

2018-12-13 Thread Christian Zigotzky
On 13 December 2018 at 10:10AM, Christoph Hellwig wrote: On Thu, Dec 13, 2018 at 09:41:50AM +0100, Christian Zigotzky wrote: Today I tried the first patch (0001-get_required_mask.patch) with the last good commit (977706f9755d2d697aa6f45b4f9f0e07516efeda). Unfortunately this patch is already incl

Re: [RFC PATCH v1 1/5] fs: Add support for an O_MAYEXEC flag on sys_open()

2018-12-13 Thread Matthew Bobrowski
On Wed, Dec 12, 2018 at 03:43:06PM +0100, Jan Kara wrote: > > When the O_MAYEXEC flag is passed, sys_open() may be subject to > > additional restrictions depending on a security policy implemented by an > > LSM through the inode_permission hook. > > > > The underlying idea is to be able to restric

[PATCH] soc/tegra: pmc: Drop SMP dependency from CPU APIs

2018-12-13 Thread Jon Hunter
When CONFIG_SMP is disabled, the tegra clk driver now fails to build: drivers/clk/tegra/clk-tegra30.c: In function ‘tegra30_cpu_rail_off_ready’: drivers/clk/tegra/clk-tegra30.c:1151:2: error: implicit declaration of function ‘tegra_pmc_cpu_is_powered’ [-Werror=implicit-function-declaration] cpu

Re: KASAN: use-after-free Read in tipc_group_cong

2018-12-13 Thread Dmitry Vyukov
On Thu, Dec 13, 2018 at 1:16 AM Jon Maloy wrote: > > -Original Message- > > From: syzbot > > Sent: 12-Dec-18 06:11 > > To: da...@davemloft.net; Jon Maloy ; linux- > > ker...@vger.kernel.org; net...@vger.kernel.org; syzkaller- > > b...@googlegroups.com; tipc-discuss...@lists.sourceforge.ne

Re: [PATCH 0/5] Prepare devicetrees for the new FSL QSPI driver

2018-12-13 Thread Schrempf Frieder
+ Shawn, Sascha On 10.12.18 17:31, Schrempf Frieder wrote: > Hi FSL/ARM maintainers, > > On 10.12.18 17:26, Schrempf Frieder wrote: >> From: Frieder Schrempf >> >> We have prepared a new driver for the FSL QSPI controller that works under >> the SPI framework. The current devicetrees are broken

[PATCH] f2fs: remove redundant comment of unused wio_mutex

2018-12-13 Thread Yunlong Song
Commit 089842de ("f2fs: remove codes of unused wio_mutex") removes codes of unused wio_mutex, but missing the comment, so delete it. Signed-off-by: Yunlong Song --- fs/f2fs/f2fs.h | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 7cec897..03e7b37 100644 ---

Re: [PATCH] tty/serial: do not free trasnmit buffer page under port lock

2018-12-13 Thread Petr Mladek
On Thu 2018-12-13 13:58:39, Sergey Senozhatsky wrote: > LKP has hit yet another circular locking dependency between uart > console drivers and debugobjects [1]: > > The patch fixes transmit buffer page free() in uart_shutdown() and, > additionally, in uart_port_startup() (as was suggested by Dmitr

[PATCH][next] selftests: watchdog: fix spelling mistake "experies" -> "expires"

2018-12-13 Thread Colin King
From: Colin Ian King There is a spelling mistake in the --gettimeleft help text, fix it. Signed-off-by: Colin Ian King --- tools/testing/selftests/watchdog/watchdog-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/watchdog/watchdog-test.c b/to

Re: [PATCH] drivers/base: use a worker for sysfs unbind

2018-12-13 Thread Rafael J. Wysocki
On Mon, Dec 10, 2018 at 9:47 AM Daniel Vetter wrote: > > Drivers might want to remove some sysfs files, which needs the same > locks and ends up angering lockdep. Relevant snippet of the stack > trace: > > kernfs_remove_by_name_ns+0x3b/0x80 > bus_remove_driver+0x92/0xa0 > acpi_video_unregist

Re: Can we drop upstream Linux x32 support?

2018-12-13 Thread Sven Hartrumpf
Will the proposed patch ("only") remove the possibility to build x32 kernels or will it make impossible to compile and run any x32 binaries? Sven

[PATCH] drm/amd/display: fix compiler warnings about wm variable

2018-12-13 Thread Huaisheng Ye
From: Huaisheng Ye There are compiler warnings within functions 'dcn10_log_hubbub_state’ and 'dcn10_get_hubbub_state’. This patch avoids the compiler reports the following warning when building amdgpu.ko. drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c: In function ‘dcn10_lo

Re: [PATCH 18/52] virtio-fs: Map cache using the values from the capabilities

2018-12-13 Thread David Hildenbrand
On 13.12.18 10:13, Dr. David Alan Gilbert wrote: > * David Hildenbrand (da...@redhat.com) wrote: >> On 10.12.18 18:12, Vivek Goyal wrote: >>> Instead of assuming we had the fixed bar for the cache, use the >>> value from the capabilities. >>> >>> Signed-off-by: Dr. David Alan Gilbert >>> --- >>>

Re: [PATCH 4/5] dt-bindings: i2c: Add Mediatek MT8183 i2c binding

2018-12-13 Thread Qii Wang
On Tue, 2018-12-11 at 21:29 +0100, Wolfram Sang wrote: > > + - ch-offset: base reg offset for multi-user. > > What is "multi-user"? Why can't you add this offset to the reg-property > directly? > Thanks for your comment. There are 3 channel in one MT8183 I3C controller, and every channel can be

Re: [PATCH v8 11/26] pwm: jz4740: Use regmap and clocks from TCU driver

2018-12-13 Thread Uwe Kleine-König
Hello, On Wed, Dec 12, 2018 at 11:09:06PM +0100, Paul Cercueil wrote: > [...] > static int jz4740_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) > { > - uint32_t ctrl = jz4740_timer_get_ctrl(pwm->pwm); > + struct jz4740_pwm_chip *jz = to_jz4740(chip); > > - ctrl |= JZ_TI

Re: [PATCH v2] MAINTAINERS: add maintainers for ChromeOS EC sub-drivers

2018-12-13 Thread Enric Balletbo i Serra
Hi Alexandre, On 12/12/18 23:29, Alexandre Belloni wrote: > On 11/12/2018 20:09:52+0100, Enric Balletbo i Serra wrote: >> There are multiple ChromeOS EC sub-drivers spread in different >> subsystems, as all of them are related to the Chrome stuff add >> Benson and myself as a maintainers for all t

Re: [PATCH 1/2] debugobjects: Warn wrong annotation outside bucket lock

2018-12-13 Thread Sergey Senozhatsky
On (12/13/18 04:34), Dmitry Safonov wrote: > printk() may defer work to workqueue, and realization of workqueues > uses debugobjects. Sorry, not following. You mean per-CPU irq_work which printk_deferred() is using? That one should not deal with debugobjects. -ss

Re: [PATCH v2 3/3] spi: meson-axg: add a linear clock divider support

2018-12-13 Thread Jerome Brunet
On Thu, 2018-12-13 at 09:55 +0100, Neil Armstrong wrote: > Hi Sunny, > > On 13/12/2018 09:39, Sunny Luo wrote: > > The SPICC controller in Meson-AXG SoC is capable of using > > a linear clock divider to reach a much fine tuned range of clocks, > > while the old controller only use a power of two c

RE: [PATCH v1 1/2] dt-bindings: add binding for USBSS-DRD controller.

2018-12-13 Thread Pawel Laszczak
Hi, >On Tue, Dec 11, 2018 at 6:19 PM Roger Quadros wrote: >> >> Pawel, >> >> On 10/12/18 14:39, Pawel Laszczak wrote: >> > This patch aim at documenting USB related dt-bindings for the >> > Cadence USBSS-DRD controller. >> > >> > Signed-off-by: Pawel Laszczak >> > --- >> > .../devicetree/bindi

Re: [PATCH v8 15/26] pwm: jz4740: Add support for the JZ4725B

2018-12-13 Thread Uwe Kleine-König
Hello, On Wed, Dec 12, 2018 at 11:09:10PM +0100, Paul Cercueil wrote: > The PWM in the JZ4725B works the same as in the JZ4740, except that it > only has 6 channels available instead of 8. this driver is probed only from device tree? If yes, it might be sensible to specify the number of PWMs ther

Re: [PATCH 2/6] arm64: add sysfs vulnerability show for meltdown

2018-12-13 Thread Julien Thierry
Hi Jeremy, On 06/12/2018 23:44, Jeremy Linton wrote: > Add a simple state machine which will track whether > all the online cores in a machine are vulnerable. > > Once that is done we have a fairly authoritative view > of the machine vulnerability, which allows us to make a > judgment about machi

Re: [PATCH v2] MAINTAINERS: add maintainers for ChromeOS EC sub-drivers

2018-12-13 Thread Lee Jones
On Tue, 11 Dec 2018, Enric Balletbo i Serra wrote: > There are multiple ChromeOS EC sub-drivers spread in different > subsystems, as all of them are related to the Chrome stuff add > Benson and myself as a maintainers for all these sub-drivers. > > Signed-off-by: Enric Balletbo i Serra > --- >

[PATCH v3] mm, memcg: fix reclaim deadlock with writeback

2018-12-13 Thread Michal Hocko
From: Michal Hocko Liu Bo has experienced a deadlock between memcg (legacy) reclaim and the ext4 writeback task1: [] wait_on_page_bit+0x82/0xa0 [] shrink_page_list+0x907/0x960 [] shrink_inactive_list+0x2c7/0x680 [] shrink_node_memcg+0x404/0x830 [] shrink_node+0xd8/0x300 [] do_try_to_free_pages+0x

Re: [PATCH] debugobjects: Move printk out of db lock critical sections

2018-12-13 Thread Peter Zijlstra
On Thu, Dec 13, 2018 at 11:59:40AM +0900, Sergey Senozhatsky wrote: > On (12/12/18 17:28), Waiman Long wrote: > > > > warning from lockdep as reported in https://lkml.org/lkml/2018/12/11/143. > > > > That link shows an empty page, lkml.org is quite unstable. Let's > use this one instead: > > ht

[PATCH] kbuild, x86: revert macros in extended asm workarounds

2018-12-13 Thread Masahiro Yamada
Revert the following commits: - 5bdcd510c2ac9efaf55c4cbd8d46421d8e2320cd ("x86/jump-labels: Macrofy inline assembly code to work around GCC inlining bugs") - d5a581d84ae6b8a4a740464b80d8d9cf1e7947b2 ("x86/cpufeature: Macrofy inline assembly code to work around GCC inlining bugs") - 0474d5d

Re: [PATCH v1 1/2] dt-bindings: add binding for USBSS-DRD controller.

2018-12-13 Thread Peter Chen
On Tue, Dec 11, 2018 at 6:19 PM Roger Quadros wrote: > > Pawel, > > On 10/12/18 14:39, Pawel Laszczak wrote: > > This patch aim at documenting USB related dt-bindings for the > > Cadence USBSS-DRD controller. > > > > Signed-off-by: Pawel Laszczak > > --- > > .../devicetree/bindings/usb/cdns3-usb

[PATCH] Revert "iommu/io-pgtable-arm: Check for v7s-incapable systems"

2018-12-13 Thread Yong Wu
This reverts commit 82db33dc5e49fb625262d81125625d07a0d6184e. After the commit 29859aeb8a6e ("iommu/io-pgtable-arm-v7s: Abort allocation when table address overflows the PTE"), v7s will return fail if the page table allocation isn't expected. this PHYS_OFFSET check is unnecessary now. And this ch

Re: [RESEND PATCH] Allow hwrng to initialize crng.

2018-12-13 Thread Louis Collard
On Thu, Dec 13, 2018 at 4:51 PM Herbert Xu wrote: > > On Thu, Dec 13, 2018 at 04:40:17PM +0800, Louis Collard wrote: > > Some systems, for example embedded systems, do not generate > > enough entropy on boot through interrupts, and boot may be blocked for > > several minutes waiting for a call to

答复: [PATCH] Export mm_update_next_owner function for vhost-net(Internet mail)

2018-12-13 Thread 陈国民
>> Under normal circumstances,When do_exit exits, mm->owner will >> be updated on exit_mm(). but when the kernel process calls >> unuse_mm() and then exits,mm->owner cannot be updated. And it >> will point to a task that has been released. >> >> Below is my issue on vhost_net: >> A,

Re: [v2] PCI: imx: make msi work without pcieportbus

2018-12-13 Thread Lucas Stach
Hi Richard, Am Donnerstag, den 13.12.2018, 08:02 + schrieb Richard Zhu: > MSI_EN of iMX PCIe RC would be asserted when > PCIEPORTBUS driver is selected. > Thus, the MSI works fine on iMX PCIe before. > Assert it unconditionally when MSI is supported. > Otherwise, the MSI wouldn't be triggered

RE: [PATCH v3 7/9] arm64: defconfig: Enable FSL_MC_BUS and FSL_MC_DPIO

2018-12-13 Thread Ioana Ciocoi Radulescu
> -Original Message- > From: linux-kernel-ow...@vger.kernel.org ow...@vger.kernel.org> On Behalf Of Olof Johansson > Sent: Thursday, December 13, 2018 8:48 AM > To: Horia Geanta > Cc: Marc Gonzalez ; arm-soc ; > Linux ARM ; LKML ker...@vger.kernel.org> > Subject: Re: [PATCH v3 7/9] arm64

[PATCH v2] Allow hwrng to initialize crng.

2018-12-13 Thread Louis Collard
Some systems, for example embedded systems, do not generate enough entropy on boot through interrupts, and boot may be blocked for several minutes waiting for a call to getrandom to complete. Currently, random data is read from a hwrng when it is registered, and is loaded into primary_crng. This d

Re: [PATCH v8 12/26] pwm: jz4740: Allow selection of PWM channels 0 and 1

2018-12-13 Thread Uwe Kleine-König
On Wed, Dec 12, 2018 at 11:09:07PM +0100, Paul Cercueil wrote: > The TCU channels 0 and 1 were previously reserved for system tasks, and > thus unavailable for PWM. > > The driver will now only allow a PWM channel to be requested if memory > resources corresponding to the register area of the chan

[PATCH RFC] kvm: arm64: export memory error recovery capability to user space

2018-12-13 Thread Dongjiu Geng
When user space do memory recovery, it will check whether KVM and guest support the error recovery, only when both of them support, user space will do the error recovery. This patch exports this capability of KVM to user space. Cc: Peter Maydell Signed-off-by: Dongjiu Geng --- User space needs t

Re: [PATCH] tty/serial: do not free trasnmit buffer page under port lock

2018-12-13 Thread Peter Zijlstra
On Thu, Dec 13, 2018 at 01:58:39PM +0900, Sergey Senozhatsky wrote: > LKP has hit yet another circular locking dependency between uart > console drivers and debugobjects [1]: > > CPU0CPU1 > > rhltable_init() >

Re: [RFC PATCH 3/3] PCI: iproc: Add dma reserve resources to host

2018-12-13 Thread Srinath Mannam
Hi Oza, Thank you for the review. Please find my comments in lined. On Thu, Dec 13, 2018 at 11:33 AM wrote: > > On 2018-12-12 11:16, Srinath Mannam wrote: > > IPROC host has the limitation that it can use > > only those address ranges given by dma-ranges > > property as inbound address. > > So t

Re: [PATCH AUTOSEL 4.14 01/41] mac80211_hwsim: fix module init error paths for netlink

2018-12-13 Thread Kalle Valo
Sasha Levin writes: > From: Alexey Khoroshilov > > [ Upstream commit 05cc09de4c017663a217630682041066f2f9a5cd ] > > There is no unregister netlink notifier and family on error paths > in init_mac80211_hwsim(). Also there is an error path where > hwsim_class is not destroyed. > > Found by Linux D

Re: [PATCH 2/5] i2c: mediatek: remove useless code and replace definitions

2018-12-13 Thread Qii Wang
On Tue, 2018-12-11 at 21:20 +0100, Wolfram Sang wrote: > On Mon, Dec 03, 2018 at 09:32:51PM +0800, qii.w...@mediatek.com wrote: > > From: qii wang > > > > Completion_done is useless when we don't use its return value, > > so we remove it. Different speeds have been defined by macros, > > so we us

Re: [PATCH v12 2/2] cpufreq: qcom-hw: Add support for QCOM cpufreq HW driver

2018-12-13 Thread Viresh Kumar
On 13-12-18, 13:19, Taniya Das wrote: > The CPUfreq HW present in some QCOM chipsets offloads the steps necessary > for changing the frequency of CPUs. The driver implements the cpufreq > driver interface for this hardware engine. > > Signed-off-by: Saravana Kannan > Signed-off-by: Stephen Boyd

Re: [PATCH 1/6] arm64: kpti: move check for non-vulnerable CPUs to a function

2018-12-13 Thread Julien Thierry
Hi, On 06/12/2018 23:44, Jeremy Linton wrote: > From: Mian Yousaf Kaukab > > Add is_meltdown_safe() which is a whitelist of known safe cores. > > Signed-off-by: Mian Yousaf Kaukab > [Moved location of function] > Signed-off-by: Jeremy Linton > --- > arch/arm64/kernel/cpufeature.c | 16 ++

Re: [PATCH 18/52] virtio-fs: Map cache using the values from the capabilities

2018-12-13 Thread Dr. David Alan Gilbert
* David Hildenbrand (da...@redhat.com) wrote: > On 10.12.18 18:12, Vivek Goyal wrote: > > Instead of assuming we had the fixed bar for the cache, use the > > value from the capabilities. > > > > Signed-off-by: Dr. David Alan Gilbert > > --- > > fs/fuse/virtio_fs.c | 32 +-

Re: use generic DMA mapping code in powerpc V4

2018-12-13 Thread Christoph Hellwig
On Thu, Dec 13, 2018 at 09:41:50AM +0100, Christian Zigotzky wrote: > Today I tried the first patch (0001-get_required_mask.patch) with the last > good commit (977706f9755d2d697aa6f45b4f9f0e07516efeda). Unfortunately this > patch is already included in the last good commit > (977706f9755d2d697aa

Re: [PATCH 18/52] virtio-fs: Map cache using the values from the capabilities

2018-12-13 Thread David Hildenbrand
On 10.12.18 18:12, Vivek Goyal wrote: > Instead of assuming we had the fixed bar for the cache, use the > value from the capabilities. > > Signed-off-by: Dr. David Alan Gilbert > --- > fs/fuse/virtio_fs.c | 32 +--- > 1 file changed, 17 insertions(+), 15 deletions(-)

[PATCH v5 6/7] mips: add system call table generation support

2018-12-13 Thread Firoz Khan
The system call tables are in different format in all architecture and it will be difficult to manually add, modify or delete the syscall table entries in the res- pective files. To make it easy by keeping a script and which will generate the uapi header and syscall table file. This change will als

[PATCH v5 7/7] mips: generate uapi header and system call table files

2018-12-13 Thread Firoz Khan
System call table generation script must be run to gener- ate unistd_(nr_)n64/n32/o32.h and syscall_table_32_o32/ 64_n64/64_n32/64-o32.h files. This patch will have changes which will invokes the script. This patch will generate unistd_(nr_)n64/n32/o32.h and syscall_table_32_o32/64_n64/64-n32/64-o

[PATCH v5 4/7] mips: add +1 to __NR_syscalls in uapi header

2018-12-13 Thread Firoz Khan
All other architectures are hold a value for __NR_syscalls will be equal to the last system call number +1. But in mips architecture, __NR_syscalls hold the value equal to total number of system exits in the architecture. One of the patch in this patch series will genarate uapi header files. In o

[PATCH v5 1/7] mips: add __NR_syscalls along with __NR_Linux_syscalls

2018-12-13 Thread Firoz Khan
__NR_Linux_syscalls macro holds the number of system call exist in mips architecture. We have to change the value of __NR_Linux_syscalls, if we add or delete a system call. One of the patch in this patch series has a script which will generate a uapi header based on syscall.tbl file. The syscall.t

[PATCH v5 5/7] mips: remove syscall table entries

2018-12-13 Thread Firoz Khan
The config flag - CONFIG_MIPS_MT_FPAFF uses to check whether which syscall entries need to be used in scall32-o32.S file. One of the patch in this patch series will generate syscall table file. But CONFIG_MIPS_MT_FPAFF flag will add more complexity in the script to generate the syscall table file.

[PATCH v5 2/7] mips: remove unused macros

2018-12-13 Thread Firoz Khan
Remove NR_syscalls from asm/unistd.h as there is no users to use NR_syscalls macro in mips kernel. Remove __NR_Linux_syscalls from uapi/asm/unistd.h as there is no users to use NR_syscalls macro in mips kernel. MAX_SYSCALL_NO can also remove as there is commit 2957c9e61ee9 ("[MIPS] IRIX: Goodbye

[PATCH v5 3/7] mips: rename macros and files from '64' to 'n64'

2018-12-13 Thread Firoz Khan
When we get nanoMIPS support we'll be introducing the p32 ABI, and there's a reasonable chance that the equivalent p64 ABI may come along in the future. Using 'n64' now would avoid confusion in that case where we may have 2 different 64-bit ABIs. Suggested-by: Paul Burton Signed-off-by: Firoz Kha

[PATCH v5 0/7] mips: system call table generation support

2018-12-13 Thread Firoz Khan
The purpose of this patch series is, we can easily add/modify/delete system call table support by cha- nging entry in syscall.tbl file instead of manually changing many files. The other goal is to unify the system call table generation support implementation across all the architectures. The sy

Re: [PATCHv2 01/12] acpi: Create subtable parsing infrastructure

2018-12-13 Thread kbuild test robot
Hi Keith, I love your patch! Yet something to improve: [auto build test ERROR on pm/linux-next] [also build test ERROR on v4.20-rc6] [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/linux/commits/Keith-Busch/a

[RESEND PATCH v4 1/1] dt-bindings: arm-smmu: Add binding doc for Qcom smmu-500

2018-12-13 Thread Vivek Gautam
Qcom's implementation of arm,mmu-500 works well with current arm-smmu driver implementation. Adding a soc specific compatible along with arm,mmu-500 makes the bindings future safe. Signed-off-by: Vivek Gautam Reviewed-by: Rob Herring Cc: Will Deacon --- Hi Joerg, I am picking this out separate

Re: [PATCH v2 2/3] spi: meson-axg: enhance output enable feature

2018-12-13 Thread Jerome Brunet
On Thu, 2018-12-13 at 16:39 +0800, Sunny Luo wrote: > The SPICC controller in Meson-AXG is capable of driving the CLK/MOSI/SS > signal lines through the idle state (between two transmission operation), > which avoid the signals floating in unexpected state. > > Signed-off-by: Sunny Luo > Signed-o

Re: Can we drop upstream Linux x32 support?

2018-12-13 Thread Richard Weinberger
On Thu, Dec 13, 2018 at 6:03 AM Kevin Easton wrote: > > On Tue, Dec 11, 2018 at 11:29:14AM +0100, John Paul Adrian Glaubitz wrote: > ... > > I can't say anything about the syscall interface. However, what I do know > > is that the weird combination of a 32-bit userland with a 64-bit kernel > > int

[PATCH v5 5/5] powerpc: generate uapi header and system call table files

2018-12-13 Thread Firoz Khan
System call table generation script must be run to gener- ate unistd_32/64.h and syscall_table_32/64/c32/spu.h files. This patch will have changes which will invokes the script. This patch will generate unistd_32/64.h and syscall_table- _32/64/c32/spu.h files by the syscall table generation script

[PATCH v5 3/5] powerpc: add system call table generation support

2018-12-13 Thread Firoz Khan
The system call tables are in different format in all architecture and it will be difficult to manually add or modify the system calls in the respective files. To make it easy by keeping a script and which will generate the uapi header and syscall table file. This change will also help to unify the

<    5   6   7   8   9   10   11   >