[PATCH 0/2] select: simplify the usage of restore_saved_sigmask_unless()

2019-06-06 Thread Oleg Nesterov
Lets start from fs/select.c I have no idead how to test these changes, please review. On top of "[PATCH -mm V2 1/1] signal: simplify set_user_sigmask/restore_user_sigmask" it seems that we can do more unrelated cleanups in this code, say, poll_select_prepare(enum poll_time_type pt_type). Oleg.

[PATCH 1/2] select: change do_poll() to return -ERESTARTNOHAND rather than -EINTR

2019-06-06 Thread Oleg Nesterov
do_poll() returns -EINTR if interrupted and after that all its callers have to translate it into -ERESTARTNOHAND. Change do_poll() to return -ERESTARTNOHAND and update (simplify) the callers. Note that this also unifies all users of restore_saved_sigmask_unless(), see the next patch. Signed-off-b

[PATCH 2/2] select: shift restore_saved_sigmask_unless() into poll_select_copy_remaining()

2019-06-06 Thread Oleg Nesterov
Now that restore_saved_sigmask_unless() is always called with the same argument right before poll_select_copy_remaining() we can move it into poll_select_copy_remaining() and make it the only caller of restore() in fs/select.c. The patch also renames poll_select_copy_remaining(), poll_select_finis

Re: [PATCH] sched/fair: don't push cfs_bandwith slack timers forward

2019-06-06 Thread Xunlei Pang
On 2019/6/6 AM 4:06, bseg...@google.com wrote: > When a cfs_rq sleeps and returns its quota, we delay for 5ms before > waking any throttled cfs_rqs to coalesce with other cfs_rqs going to > sleep, as this has has to be done outside of the rq lock we hold. two "has". > > The current code waits fo

Re: [PATCH V4 10/12] misc: xilinx_sdfec: Add stats & status ioctls

2019-06-06 Thread Greg KH
On Sat, May 25, 2019 at 12:37:23PM +0100, Dragan Cvetic wrote: > SD-FEC statistic data are: > - count of data interface errors (isr_err_count) > - count of Correctable ECC errors (cecc_count) > - count of Uncorrectable ECC errors (uecc_count) > > Add support: > 1. clear stats ioctl callback which

Re: [PATCH v2 3/4] perf augmented_raw_syscalls: Support arm64 raw syscalls

2019-06-06 Thread Leo Yan
Hi Arnaldo, On Thu, Jun 06, 2019 at 10:38:38AM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Jun 06, 2019 at 05:48:44PM +0800, Leo Yan escreveu: > > This patch adds support for arm64 raw syscall numbers so that we can use > > it on arm64 platform. > > > > After applied this patch, we need to s

Re: [PATCH] arm64: dts: sdm845: Add iommus property to qup1

2019-06-06 Thread Marc Gonzalez
On 06/06/2019 13:17, Vivek Gautam wrote: > <&apps_smmu 0x6c0 0x3> // for both 0x6c0 (TZ) and 0x6c3 (HLOS) Another possibility is to list both: <&apps_smmu 0x6c0 0x0> <&apps_smmu 0x6c3 0x0> which leaves 0x6c1 and 0x6c2 out of the picture, and makes 0x6c3 appear explicitly (for

Re: [PATCH 2/5] mm/hmm: Clean up some coding style and comments

2019-06-06 Thread Jason Gunthorpe
On Mon, May 06, 2019 at 04:29:39PM -0700, rcampb...@nvidia.com wrote: > From: Ralph Campbell > > There are no functional changes, just some coding style clean ups and > minor comment changes. > > Signed-off-by: Ralph Campbell > Reviewed-by: Jérôme Glisse > Cc: John Hubbard > Cc: Ira Weiny >

Re: [PATCH v2] USB: Disable USB2 LPM at shutdown

2019-06-06 Thread Alan Stern
On Thu, 6 Jun 2019, Kai-Heng Feng wrote: > at 15:55, Kai-Heng Feng wrote: > > > at 18:22, Kai-Heng Feng wrote: > > > >> at 00:01, Kai-Heng Feng wrote: > >> > On Jan 30, 2019, at 16:21, Greg KH wrote: > > On Thu, Jan 24, 2019 at 02:16:43PM +0800, Kai-Heng Feng wrote: > > The

Re: [PATCH v2 1/3] i3c: fix i2c and i3c scl rate by bus mode

2019-06-06 Thread Boris Brezillon
On Thu, 6 Jun 2019 16:00:01 +0200 Vitor Soares wrote: > Currently the I3C framework limits SCL frequency to FM speed when > dealing with a mixed slow bus, even if all I2C devices are FM+ capable. > > The core was also not accounting for I3C speed limitations when > operating in mixed slow mode

Re: rcu_read_lock lost its compiler barrier

2019-06-06 Thread Alan Stern
On Thu, 6 Jun 2019, Andrea Parri wrote: > This seems a sensible change to me: looking forward to seeing a patch, > on top of -rcu/dev, for further review and testing! > > We could also add (to LKMM) the barrier() for rcu_read_{lock,unlock}() > discussed in this thread (maybe once the RCU code and

Re: libata: sysctl knob for enabling tpm/opal at runtime

2019-06-06 Thread Enrico Weigelt, metux IT consult
On 05.06.19 21:23, Christoph Hellwig wrote: > On Wed, Jun 05, 2019 at 01:36:25PM +0200, Enrico Weigelt, metux IT consult > wrote: >> Hello folks, >> >> >> here's a patchset that allows enabling libata's tpm features (opal) >> at runtime. Until now we need to boot with special kernel parameter, >>

[PATCH v2 0/7] cpufreq support for Raspberry Pi

2019-06-06 Thread Nicolas Saenz Julienne
Hi all, this aims at adding cpufreq support to the Raspberry Pi family of boards. The series first factors out 'pllb' from clk-bcm2385 and creates a new clk driver that operates it over RPi's firmware interface[1]. We are forced to do so as the firmware 'owns' the pll and we're not allowed to chan

[PATCH v2 1/7] clk: bcm2835: remove pllb

2019-06-06 Thread Nicolas Saenz Julienne
Raspberry Pi's firmware controls this pll, we should use the firmware interface to access it. Signed-off-by: Nicolas Saenz Julienne Acked-by: Eric Anholt --- Changes since v1: - Add comment to explain why pllb isn't there anymore drivers/clk/bcm/clk-bcm2835.c | 28 -

Re: [PATCH][next] drivers: thermal: tsens: remove redundant u32 comparison with less than zero

2019-06-06 Thread Eduardo Valentin
hey Colin, On Fri, May 31, 2019 at 11:57:08AM +0100, Colin King wrote: > From: Colin Ian King > > The u32 variable hw_id is unsigned and cannot be less than zero so > the comparison with less than zero is always false and hence is redundant > and can be removed. > > Addresses-Coverity: ("Unsign

Re: [PATCH v6 4/7] arm: Use common cpu_topology structure and functions.

2019-06-06 Thread Atish Patra
On 5/29/19 2:15 PM, Atish Patra wrote: Currently, ARM32 and ARM64 uses different data structures to represent their cpu topologies. Since, we are moving the ARM64 topology to common code to be used by other architectures, we can reuse that for ARM32 as well. Take this opprtunity to remove the re

Re: [PATCH] [RFC] dmaengine: add fifo_size member

2019-06-06 Thread Jon Hunter
On 06/06/2019 14:45, Dmitry Osipenko wrote: > 06.06.2019 15:37, Jon Hunter пишет: >> >> On 06/06/2019 12:54, Peter Ujfalusi wrote: >>> >>> >>> On 06/06/2019 13.49, Jon Hunter wrote: On 06/06/2019 11:22, Peter Ujfalusi wrote: ... It does sounds like that FIFO_SIZ

Re: [PATCH] signal/usb: Replace kill_pid_info_as_cred with kill_pid_usb_asyncio

2019-06-06 Thread Greg Kroah-Hartman
On Tue, May 21, 2019 at 07:40:35AM -0500, Eric W. Biederman wrote: > > The usb support for asyncio encoded one of it's values in the wrong > field. It should have used si_value but instead used si_addr which is > not present in the _rt union member of struct siginfo. > > The practical result of

Re: [PATCH v4 2/2] arm64: dts: qcom: Add Lenovo Miix 630

2019-06-06 Thread Jeffrey Hugo
On Thu, Jun 6, 2019 at 2:13 AM Lee Jones wrote: > > On Thu, 06 Jun 2019, Bjorn Andersson wrote: > > > On Wed 05 Jun 22:50 PDT 2019, Lee Jones wrote: > > > > > On Tue, 23 Apr 2019, Jeffrey Hugo wrote: > > > > > > > This adds the initial DT for the Lenovo Miix 630 laptop. Supported > > > > function

Re: [PATCH v6 3/7] cpu-topology: Move cpu topology code to common code.

2019-06-06 Thread Atish Patra
On 5/29/19 2:15 PM, Atish Patra wrote: Both RISC-V & ARM64 are using cpu-map device tree to describe their cpu topology. It's better to move the relevant code to a common place instead of duplicate code. To: Will Deacon To: Catalin Marinas Signed-off-by: Atish Patra [Tested on QDF2400] Tested

Re: [PATCH] perf record: Add support to collect callchains from kernel or user space only.

2019-06-06 Thread Arnaldo Carvalho de Melo
Em Thu, May 30, 2019 at 02:29:22PM +0100, ufo19890607 escreveu: > From: yuzhoujian > > One can just record callchains in the kernel or user space with > this new options. We can use it together with "--all-kernel" options. > This two options is used just like print_stack(sys) or print_ustack(usr)

Re: [PATCH] [RFC] dmaengine: add fifo_size member

2019-06-06 Thread Jon Hunter
On 06/06/2019 14:55, Dmitry Osipenko wrote: > 06.06.2019 16:45, Dmitry Osipenko пишет: >> 06.06.2019 15:37, Jon Hunter пишет: >>> >>> On 06/06/2019 12:54, Peter Ujfalusi wrote: On 06/06/2019 13.49, Jon Hunter wrote: > > On 06/06/2019 11:22, Peter Ujfalusi wrote: > >

Re: [PATCH 2/5] mm/hmm: Clean up some coding style and comments

2019-06-06 Thread Jerome Glisse
On Thu, Jun 06, 2019 at 11:16:44AM -0300, Jason Gunthorpe wrote: > On Mon, May 06, 2019 at 04:29:39PM -0700, rcampb...@nvidia.com wrote: > > From: Ralph Campbell > > > > There are no functional changes, just some coding style clean ups and > > minor comment changes. > > > > Signed-off-by: Ralph

[PATCH v2 2/7] clk: bcm283x: add driver interfacing with Raspberry Pi's firmware

2019-06-06 Thread Nicolas Saenz Julienne
Raspberry Pi's firmware offers an interface though which update it's clock's frequencies. This is specially useful in order to change the CPU clock (pllb_arm) which is 'owned' by the firmware and we're unable to scale using the register interface provided by clk-bcm2835. Signed-off-by: Nicolas Sae

[PATCH v2 3/7] firmware: raspberrypi: register clk device

2019-06-06 Thread Nicolas Saenz Julienne
Since clk-raspberrypi is tied to the VC4 firmware instead of particular hardware it's registration should be performed by the firmware driver. Signed-off-by: Nicolas Saenz Julienne Acked-by: Eric Anholt --- drivers/firmware/raspberrypi.c | 10 ++ 1 file changed, 10 insertions(+) diff -

Re: [alsa-devel] [PATCH v2] soundwire: stream: fix bad unlock balance

2019-06-06 Thread Pierre-Louis Bossart
On 6/6/19 6:22 AM, Srinivas Kandagatla wrote: multi bank switching code takes lock on condition but releases without any check resulting in below warning. This patch fixes this. Question to make sure we are talking about the same thing: multi-link bank switching is a capability beyond the sco

Re: [PATCH] perf record: Add support to collect callchains from kernel or user space only.

2019-06-06 Thread Arnaldo Carvalho de Melo
Em Thu, Jun 06, 2019 at 11:26:44AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Thu, May 30, 2019 at 02:29:22PM +0100, ufo19890607 escreveu: > > From: yuzhoujian > > > > One can just record callchains in the kernel or user space with > > this new options. We can use it together with "--all-kern

Re: [PATCH v4 1/2] HID: quirks: Refactor ELAN 400 and 401 handling

2019-06-06 Thread Jeffrey Hugo
On Thu, Jun 6, 2019 at 1:07 AM Benjamin Tissoires wrote: > > On Thu, Jun 6, 2019 at 1:25 AM Jeffrey Hugo wrote: > > > > On Tue, May 21, 2019 at 10:42 AM Bjorn Andersson > > wrote: > > > > > > On Tue 23 Apr 09:06 PDT 2019, Jeffrey Hugo wrote: > > > > > > > There needs to be coordination between h

[PATCH v2 4/7] cpufreq: add driver for Raspbery Pi

2019-06-06 Thread Nicolas Saenz Julienne
Raspberry Pi's firmware offers and interface though which update it's performance requirements. It allows us to request for specific runtime frequencies, which the firmware might or might not respect, depending on the firmware configuration and thermals. As the maximum and minimum frequencies are

[PATCH v2 5/7] clk: raspberrypi: register platform device for raspberrypi-cpufreq

2019-06-06 Thread Nicolas Saenz Julienne
As 'clk-raspberrypi' depends on RPi's firmware interface, which might be configured as a module, the cpu clock might not be available for the cpufreq driver during it's init process. So we register the 'raspberrypi-cpufreq' platform device after the probe sequence succeeds. Signed-off-by: Nicolas

[PATCH v2 6/7] ARM: defconfig: enable cpufreq driver for RPi

2019-06-06 Thread Nicolas Saenz Julienne
This enables on both multi_v7_defconfig and bcm2835_defconfig the new firmware based clock and cpufreq drivers for the Raspberry Pi platform. In the case of bcm2835_defconfig, as the cpufreq subsystem was disabled, the subsystem configuration was copied from multi_v7_defconfig (default governor, s

[PATCH v2 7/7] arm64: defconfig: enable cpufreq support for RPi3

2019-06-06 Thread Nicolas Saenz Julienne
This enables both the new firmware clock driver and cpufreq driver available for the RPi3 family of boards. Signed-off-by: Nicolas Saenz Julienne --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig ind

Re: [PATCH v2 4/4] perf augmented_raw_syscalls: Document clang configuration

2019-06-06 Thread Leo Yan
On Thu, Jun 06, 2019 at 11:08:00AM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Jun 06, 2019 at 05:48:45PM +0800, Leo Yan escreveu: > > To build this program successfully with clang, there have three > > compiler options need to be specified: > > > > - Header file path: tools/perf/include/bp

[PATCH v2] staging: rtl8723bs: Resolve "(foo*)" should be "(foo *)" error reported by checkpatch

2019-06-06 Thread Shobhit Kukreti
Cleaned up the code to remove the error "(foo*)" should be "(foo *)" reported by checkpatch from the file rtl8723bs/os_dep/ioctl_linux.c Signed-off-by: Shobhit Kukreti --- Changes in v2: - Modified commit message to include reported ERROR by checkpatch drivers/staging/rtl8723bs/os_dep/ioctl_li

Re: [PATCHv2 2/2] hwmon: core: fix potential memory leak in *hwmon_device_register*

2019-06-06 Thread Eduardo Valentin
On Wed, Jun 05, 2019 at 01:38:38PM -0700, Guenter Roeck wrote: > On Wed, May 29, 2019 at 07:56:05PM -0700, Eduardo Valentin wrote: > > When registering a hwmon device with HWMON_C_REGISTER_TZ flag > > in place, the hwmon subsystem will attempt to register the device > > also with the thermal subsys

Re: [PATCH] [RFC] dmaengine: add fifo_size member

2019-06-06 Thread Jon Hunter
On 06/06/2019 15:26, Jon Hunter wrote: ... >>> If I understood everything correctly, the FIFO buffer is shared among >>> all of the ADMA clients and hence it should be up to the ADMA driver to >>> manage the quotas of the clients. So if there is only one client that >>> uses ADMA at a time, the

Re: [PATCH] [RFC] dmaengine: add fifo_size member

2019-06-06 Thread Dmitry Osipenko
06.06.2019 17:26, Jon Hunter пишет: > > On 06/06/2019 14:55, Dmitry Osipenko wrote: >> 06.06.2019 16:45, Dmitry Osipenko пишет: >>> 06.06.2019 15:37, Jon Hunter пишет: On 06/06/2019 12:54, Peter Ujfalusi wrote: > > > On 06/06/2019 13.49, Jon Hunter wrote: >> >> On 06/

Re: [PATCH v2] ARM: configs: Remove useless UEVENT_HELPER_PATH

2019-06-06 Thread Dinh Nguyen
On 6/4/19 3:14 AM, Krzysztof Kozlowski wrote: > Remove the CONFIG_UEVENT_HELPER_PATH because: > 1. It is disabled since commit 1be01d4a5714 ("driver: base: Disable >CONFIG_UEVENT_HELPER by default") as its dependency (UEVENT_HELPER) was >made default to 'n', > 2. It is not recommended (h

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

2019-06-06 Thread Dmitry Vyukov
On Thu, Jun 6, 2019 at 3:43 PM Kirill Tkhai wrote: > > On 06.06.2019 16:13, J. Bruce Fields wrote: > > On Thu, Jun 06, 2019 at 10:47:43AM +0300, Kirill Tkhai wrote: > >> This may be connected with that shrinker unregistering is forgotten on > >> error path. > > > > I was wondering about that too.

Re: KASAN: slab-out-of-bounds Read in usage_accumulate

2019-06-06 Thread Dmitry Vyukov
On Thu, Jun 6, 2019 at 3:52 PM syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:156c0591 Merge tag 'linux-kselftest-5.2-rc4' of git://git... > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=15f2095aa0 > kernel config:

Re: KASAN: slab-out-of-bounds Read in corrupted (2)

2019-06-06 Thread Dmitry Vyukov
On Thu, Jun 6, 2019 at 3:52 PM syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:156c0591 Merge tag 'linux-kselftest-5.2-rc4' of git://git... > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=13512d51a0 > kernel config:

Re: [PATCH v2 2/7] clk: bcm283x: add driver interfacing with Raspberry Pi's firmware

2019-06-06 Thread Nicolas Saenz Julienne
On Thu, 2019-06-06 at 16:22 +0200, Nicolas Saenz Julienne wrote: > Raspberry Pi's firmware offers an interface though which update it's > clock's frequencies. This is specially useful in order to change the CPU > clock (pllb_arm) which is 'owned' by the firmware and we're unable to > scale using th

[PATCH] net: ipv4: fib_semantics: fix uninitialized variable

2019-06-06 Thread Enrico Weigelt, metux IT consult
From: Enrico Weigelt fix an uninitialized variable: CC net/ipv4/fib_semantics.o net/ipv4/fib_semantics.c: In function 'fib_check_nh_v4_gw': net/ipv4/fib_semantics.c:1027:12: warning: 'err' may be used uninitialized in this function [-Wmaybe-uninitialized] if (!tbl || err) {

Re: [PATCH v2 3/4] perf augmented_raw_syscalls: Support arm64 raw syscalls

2019-06-06 Thread Arnaldo Carvalho de Melo
Em Thu, Jun 06, 2019 at 10:12:31PM +0800, Leo Yan escreveu: > Hi Arnaldo, > > On Thu, Jun 06, 2019 at 10:38:38AM -0300, Arnaldo Carvalho de Melo wrote: > > Em Thu, Jun 06, 2019 at 05:48:44PM +0800, Leo Yan escreveu: > > > This patch adds support for arm64 raw syscall numbers so that we can use > >

Re: [PATCH] perf record: Add support to collect callchains from kernel or user space only.

2019-06-06 Thread Jiri Olsa
On Thu, Jun 06, 2019 at 11:26:44AM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, May 30, 2019 at 02:29:22PM +0100, ufo19890607 escreveu: > > From: yuzhoujian > > > > One can just record callchains in the kernel or user space with > > this new options. We can use it together with "--all-kernel"

Re: [PATCH] [RFC] dmaengine: add fifo_size member

2019-06-06 Thread Jon Hunter
On 06/06/2019 15:36, Dmitry Osipenko wrote: > 06.06.2019 17:26, Jon Hunter пишет: >> >> On 06/06/2019 14:55, Dmitry Osipenko wrote: >>> 06.06.2019 16:45, Dmitry Osipenko пишет: 06.06.2019 15:37, Jon Hunter пишет: > > On 06/06/2019 12:54, Peter Ujfalusi wrote: >> >> >> On

[PATCH net-next] net: mscc: ocelot: remove unused variable 'vcap_data_t'

2019-06-06 Thread YueHaibing
Fix sparse warning: drivers/net/ethernet/mscc/ocelot_ace.c:96:3: warning: symbol 'vcap_data_t' was not declared. Should it be static? 'vcap_data_t' never used so can be removed Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/net/ethernet/mscc/ocelot_ace.c | 2 +- 1 file changed

Re: [PATCH 4/5] mm/hmm: hmm_vma_fault() doesn't always call hmm_range_unregister()

2019-06-06 Thread Jason Gunthorpe
On Mon, May 06, 2019 at 04:29:41PM -0700, rcampb...@nvidia.com wrote: > From: Ralph Campbell > > The helper function hmm_vma_fault() calls hmm_range_register() but is > missing a call to hmm_range_unregister() in one of the error paths. > This leads to a reference count leak and ultimately a memo

Re: [PATCH 0/5] mm/hmm: HMM documentation updates and code fixes

2019-06-06 Thread Jason Gunthorpe
On Mon, May 06, 2019 at 04:29:37PM -0700, rcampb...@nvidia.com wrote: > From: Ralph Campbell > > I hit a use after free bug in hmm_free() with KASAN and then couldn't > stop myself from cleaning up a bunch of documentation and coding style > changes. So the first two patches are clean ups, the la

Re: [PATCH v4] i2c: i801: Register optional lis3lv02d I2C device on Dell machines

2019-06-06 Thread Jean Delvare
Hi Pali, On Wed, 5 Jun 2019 00:33:03 +0200, Pali Rohár wrote: > Dell platform team told us that some (DMI whitelisted) Dell Latitude > machines have ST microelectronics accelerometer at I2C address 0x29. > > Presence of that ST microelectronics accelerometer is verified by existence > of SMO88xx

Re: KASAN: slab-out-of-bounds Read in usage_accumulate

2019-06-06 Thread syzbot
syzbot has bisected this bug to: commit e9db4ef6bf4ca9894bb324c76e01b8f1a16b2650 Author: John Fastabend Date: Sat Jun 30 13:17:47 2018 + bpf: sockhash fix omitted bucket lock in sock_close bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=111ccbbaa0 start commit: 156

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

2019-06-06 Thread Kirill Tkhai
On 06.06.2019 17:40, Dmitry Vyukov wrote: > On Thu, Jun 6, 2019 at 3:43 PM Kirill Tkhai wrote: >> >> On 06.06.2019 16:13, J. Bruce Fields wrote: >>> On Thu, Jun 06, 2019 at 10:47:43AM +0300, Kirill Tkhai wrote: This may be connected with that shrinker unregistering is forgotten on error

Re: [PATCH 4.19 189/276] iio: adc: ti-ads7950: Fix improper use of mlock

2019-06-06 Thread Jonathan Cameron
On Thu, 6 Jun 2019 15:13:00 +0200 Pavel Machek wrote: > (stable removed from cc list) > > > Indio->mlock is used for protecting the different iio device modes. > > It is currently not being used in this way. Replace the lock with > > an internal lock specifically used for protecting the SPI tran

Re: [alsa-devel] [PATCH v2] soundwire: stream: fix bad unlock balance

2019-06-06 Thread Srinivas Kandagatla
On 06/06/2019 15:28, Pierre-Louis Bossart wrote: On 6/6/19 6:22 AM, Srinivas Kandagatla wrote: multi bank switching code takes lock on condition but releases without any check resulting in below warning. This patch fixes this. Question to make sure we are talking about the same thing: mult

Re: [PATCH v8 00/13] Exynos5 Dynamic Memory Controller driver

2019-06-06 Thread Lukasz Luba
Hi Sylwester, On 6/6/19 3:57 PM, Sylwester Nawrocki wrote: > On 6/5/19 18:53, Lukasz Luba wrote: >> Lukasz Luba (13): >>clk: samsung: add needed IDs for DMC clocks in Exynos5420 >>clk: samsung: add new clocks for DMC for Exynos5422 SoC >>clk: samsung: add BPLL rate table for Exynos 542

[PATCH v2] drivers: scsi: remove unnecessary #ifdef MODULE

2019-06-06 Thread Enrico Weigelt, metux IT consult
From: Enrico Weigelt The MODULE_DEVICE_TABLE() macro already checks for MODULE defined, so the extra check here is not necessary. Changes v2: * make dptids const to fix warning on unused variable Signed-off-by: Enrico Weigelt --- drivers/scsi/BusLogic.c | 2 -- drivers/scsi/dpt_i2o.c | 5

Greetings

2019-06-06 Thread Ann Hester
My name is Ann Hester, please reply me.

Re: [PATCH 01/10] security: Override creds in __fput() with last fputter's creds [ver #3]

2019-06-06 Thread David Howells
Andy Lutomirski wrote: > > So that the LSM can see the credentials of the last process to do an fput() > > on a file object when the file object is being dismantled, do the following > > steps: > > > > I still maintain that this is a giant design error. Yes, I know. This was primarily a post

Re: [PATCH modules 1/2] module: allow arch overrides for .exit section names

2019-06-06 Thread Jessica Yu
+++ Matthias Schiffer [03/06/19 12:57 +0200]: Some archs like ARM store unwind information for .exit.text in sections with unusual names. As this unwind information refers to .exit.text, it must not be loaded when .exit.text is not loaded (when CONFIG_MODULE_UNLOAD is unset); otherwise, loading a

Re: [PATCH -next] pwm: pca9685: Remove set but not used variable 'pwm'

2019-06-06 Thread Sven Van Asbroeck
I was able to test the patch [1] exclusion mechanism without access to actual hardware - by giving it a dummy regmap. See patch below. Test cases (all via sysfs): 1. verify requested pwm cannot be requested as gpio 2. verify requested gpio cannot be requested as pwm 3. verify pwm "all LEDs" cannot

[PATCH v2 3/3] iio: imu: st_lsm6dsx: add i3c basic support for LSM6DSO and LSM6DSR

2019-06-06 Thread Vitor Soares
For today the st_lsm6dsx driver support LSM6DSO and LSM6DSR sensor only in spi and i2c mode. The LSM6DSO and LSM6DSR are also i3c capable so lets give i3c support to them. Signed-off-by: Vitor Soares --- Changes in v2: Add support for LSM6DSR Set pm_ops to st_lsm6dsx_pm_ops drivers/iio/imu

[PATCH v2 1/3] regmap: add i3c bus support

2019-06-06 Thread Vitor Soares
Add basic support for i3c bus. This is a simple implementation that only give support for SDR Read and Write commands. Signed-off-by: Vitor Soares --- Changes in v2: None drivers/base/regmap/Kconfig | 6 +++- drivers/base/regmap/Makefile | 1 + drivers/base/regmap/regmap-i3c.c | 60

[PATCH v2 0/3] Add ST lsm6dso i3c support

2019-06-06 Thread Vitor Soares
This patch series add i3c support for STM LSM6DSO and LSM6DSR sensors. It is also introduced i3c support on regmap api. Due the lack of i3c devices HDR capables on the market the support for now is only for i3c sdr mode by using i3c_device_do_priv_xfers() method. Changes in v2: Change i3c_get_d

[PATCH v2 2/3] i3c: add i3c_get_device_id helper

2019-06-06 Thread Vitor Soares
This helper return the i3c_device_id structure in order the client have access to the driver data. Signed-off-by: Vitor Soares --- Changes in v2: move this function to drivers/i3c/device.c drivers/i3c/device.c | 8 include/linux/i3c/device.h | 1 + 2 files changed, 9 insertions

[PATCH] pinctrl: tb10x: Use flexible-array member and struct_size() helper

2019-06-06 Thread Gustavo A. R. Silva
Update the code to use a flexible array member instead of a pointer in structure i2c_mux_pinctrl and use the struct_size() helper: struct tb10x_pinctrl { ... struct tb10x_of_pinfunc pinfuncs[]; }; Also, make use of the struct_size() helper instead of an open-coded version in order

Re: [patch 2/3] timers: do not raise softirq unconditionally (spinlockless version)

2019-06-06 Thread Marcelo Tosatti
On Tue, Jun 04, 2019 at 02:29:31PM +0800, Peter Xu wrote: > On Mon, Apr 15, 2019 at 05:12:15PM -0300, Marcelo Tosatti wrote: > > Check base->pending_map locklessly and skip raising timer softirq > > if empty. > > > > What allows the lockless (and potentially racy against mod_timer) > > check is

[GIT PULL] xfs: fixes for 5.2-rc4

2019-06-06 Thread Darrick J. Wong
Hi Linus, Here are a couple more bug fixes for 5.2. They've survived a few days of fstests and merge cleanly with upstream as of a few minutes ago. Let me know if there are problems. --D The following changes since commit 5cd213b0fec640a46adc5e6e4dfc7763aa54b3b2: xfs: don't reserve per-AG s

Re: [PATCH v2 2/3] i3c: add i3c_get_device_id helper

2019-06-06 Thread Boris Brezillon
On Thu, 6 Jun 2019 17:12:03 +0200 Vitor Soares wrote: > This helper return the i3c_device_id structure in order the client > have access to the driver data. > > Signed-off-by: Vitor Soares > --- > Changes in v2: > move this function to drivers/i3c/device.c > > drivers/i3c/device.c |

Re: [PATCH v3 1/2] mt76: mt7615: enable support for mesh

2019-06-06 Thread Ryder Lee
On Thu, 2019-06-06 at 12:14 +0200, Sebastian Gottschall wrote: > in addition you should take care about this problem which is raised up > if SAE is used. since AES-CMAC required tid to be non zero > > WARNING: CPU: 2 PID: 15324 at > /home/seg/DEV/mt7621/src/router/private/compat-wireless-2017-09

Re: [PATCH] [RFC] dmaengine: add fifo_size member

2019-06-06 Thread Dmitry Osipenko
06.06.2019 17:25, Jon Hunter пишет: > > > On 06/06/2019 14:45, Dmitry Osipenko wrote: >> 06.06.2019 15:37, Jon Hunter пишет: >>> >>> On 06/06/2019 12:54, Peter Ujfalusi wrote: On 06/06/2019 13.49, Jon Hunter wrote: > > On 06/06/2019 11:22, Peter Ujfalusi wrote: > >

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

2019-06-06 Thread Dmitry Vyukov
On Thu, Jun 6, 2019 at 4:54 PM Kirill Tkhai wrote: > > On 06.06.2019 17:40, Dmitry Vyukov wrote: > > On Thu, Jun 6, 2019 at 3:43 PM Kirill Tkhai wrote: > >> > >> On 06.06.2019 16:13, J. Bruce Fields wrote: > >>> On Thu, Jun 06, 2019 at 10:47:43AM +0300, Kirill Tkhai wrote: > This may be conn

Re: [PATCH 0/6] mailbox: arm_mhu: add support to use in doorbell mode

2019-06-06 Thread Jassi Brar
On Thu, Jun 6, 2019 at 7:51 AM Sudeep Holla wrote: > > > BTW, this is not going to be the end of SCMI troubles (I believe > > that's what his client is). SCMI will eventually have to be broken up > > in layers (protocol and transport) for many legit platforms to use it. > > That is mbox_send_mess

Re: [PATCH modules 0/2] Fix handling of exit unwinding sections (on ARM)

2019-06-06 Thread Jessica Yu
+++ Matthias Schiffer [06/06/19 10:14 +0200]: On Mon, 2019-06-03 at 12:57 +0200, Matthias Schiffer wrote: For some time (050d18d1c651 "ARM: 8650/1: module: handle negative R_ARM_PREL31 addends correctly", v4.11+), building a kernel without CONFIG_MODULE_UNLOAD would lead to module loads failing

Re: [PATCH v2 3/5] locking/qspinlock: Introduce CNA into the slow path of qspinlock

2019-06-06 Thread Alex Kogan
>> Also, the paravirt code is under arch/x86, while CNA is generic (not >> x86-specific). Do you still want to see CNA-related patching residing >> under arch/x86? >> >> We still need a config option (something like NUMA_AWARE_SPINLOCKS) to >> enable CNA patching under this config only, correct?

[PATCH] KVM: nVMX: Rename prepare_vmcs02_*_full to prepare_vmcs02_*_extra

2019-06-06 Thread Paolo Bonzini
These function do not prepare the entire state of the vmcs02, only the rarely needed parts. Rename them to make this clearer. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/vmx/nested.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/kvm/vmx/nested.c b/arch/x

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

2019-06-06 Thread Kirill Tkhai
On 06.06.2019 18:18, Dmitry Vyukov wrote: > On Thu, Jun 6, 2019 at 4:54 PM Kirill Tkhai wrote: >> >> On 06.06.2019 17:40, Dmitry Vyukov wrote: >>> On Thu, Jun 6, 2019 at 3:43 PM Kirill Tkhai wrote: On 06.06.2019 16:13, J. Bruce Fields wrote: > On Thu, Jun 06, 2019 at 10:47:43AM +030

Re: [RFC PATCH v3 00/16] Core scheduling v3

2019-06-06 Thread Julien Desfossez
On 31-May-2019 05:08:16 PM, Julien Desfossez wrote: > > My first reaction is: when shell wakes up from sleep, it will > > fork date. If the script is untagged and those workloads are > > tagged and all available cores are already running workload > > threads, the forked date can lose to the running

Re: [PATCH modules 1/2] module: allow arch overrides for .exit section names

2019-06-06 Thread Matthias Schiffer
On Thu, 2019-06-06 at 17:09 +0200, Jessica Yu wrote: > +++ Matthias Schiffer [03/06/19 12:57 +0200]: > > Some archs like ARM store unwind information for .exit.text in > > sections > > with unusual names. As this unwind information refers to > > .exit.text, it > > must not be loaded when .exit.text

Re: Linux 4.9.180 build fails with gcc 9 and 'cleanup_module' specifies less restrictive attribute than its target …

2019-06-06 Thread Greg KH
On Thu, Jun 06, 2019 at 03:16:03PM +0200, Rolf Eike Beer wrote: > I have at least these 2 instances: > > > In file included from > /tmp/e2/build/linux-4.9.180/include/drm/drm_vma_manager.h:28, > from /tmp/e2/build/linux-4.9.180/include/drm/drmP.h:78, > from > /

Re: Linux 4.9.180 build fails with gcc 9 and 'cleanup_module' specifies less restrictive attribute than its target …

2019-06-06 Thread Greg KH
On Thu, Jun 06, 2019 at 05:27:46PM +0200, Greg KH wrote: > On Thu, Jun 06, 2019 at 03:16:03PM +0200, Rolf Eike Beer wrote: > > I have at least these 2 instances: > > > > > > In file included from > > /tmp/e2/build/linux-4.9.180/include/drm/drm_vma_manager.h:28, > > from /tmp/e2/

Re: [PATCH] timers: Fix up get_target_base() to use old base properly

2019-06-06 Thread Marcelo Tosatti
On Mon, Jun 03, 2019 at 09:29:44PM +0800, Peter Xu wrote: > get_target_base() in the timer code is not using the "base" parameter > at all. My gut feeling is that instead of removing that extra > parameter, what we really want to do is "return the old base if it > does not suite for a new one". H

[PATCH v3 4/9] KVM: VMX: Introduce SPP access bitmap and operation functions

2019-06-06 Thread Yang Weijiang
Create access bitmap for SPP subpages, 4KB/128B = 32bits, for each 4KB physical page, 32bits are required. The bitmap can be easily accessed with a gfn. The initial access bitmap for each physical page is 0x, meaning SPP is not enabled for the subpages. Signed-off-by: Yang Weijiang --- a

[PATCH v3 8/9] KVM: MMU: Enable Lazy mode SPPT setup

2019-06-06 Thread Yang Weijiang
If SPP subpages are set while the physical page are not available in EPT leaf entry, the mapping is first stored in SPP access bitmap buffer. SPPT setup is deferred to access to the protected page, in EPT page fault handler, the SPPT enries are set up. Signed-off-by: Yang Weijiang --- arch/x86/k

[PATCH v3 5/9] KVM: VMX: Add init/set/get functions for SPP

2019-06-06 Thread Yang Weijiang
init_spp() must be called before {get, set}_subpage functions, it creates subpage access bitmaps for memory pages and issues a KVM request to setup SPPT root pages. kvm_mmu_set_subpages() is to enable SPP bit in EPT leaf page and setup corresponding SPPT entries. The mmu_lock is held before above

[PATCH v3 7/9] KVM: VMX: Handle SPP induced vmexit and page fault

2019-06-06 Thread Yang Weijiang
If write to subpage is not allowed, EPT violation is generated, it's propagated to QEMU or VMI to handle. If the target page is SPP protected, however SPPT missing is encoutered while traversing with gfn, vmexit is generated so that KVM can handle the issue. Any SPPT misconfig will be propagated t

[PATCH v3 9/9] KVM: MMU: Handle host memory remapping and reclaim

2019-06-06 Thread Yang Weijiang
Host page swapping/migration may change the translation in EPT leaf entry, if the target page is SPP protected, re-enable SPP protection in MMU notifier. If SPPT shadow page is reclaimed, the level1 pages don't have rmap to clear. Signed-off-by: Yang Weijiang --- arch/x86/kvm/mmu.c | 22

[PATCH v3 6/9] KVM: VMX: Introduce SPP user-space IOCTLs

2019-06-06 Thread Yang Weijiang
User application, e.g., QEMU or VMI, must initialize SPP before gets/sets SPP subpages, the dynamic initialization is to reduce the extra storage cost if the SPP feature is not not used. Signed-off-by: Yang Weijiang --- arch/x86/kvm/x86.c | 90 incl

[PATCH v3 0/9] Enable Sub-page Write Protection Support

2019-06-06 Thread Yang Weijiang
EPT-Based Sub-Page write Protection(SPP)is a HW capability which allows Virtual Machine Monitor(VMM) to specify write-permission for guest physical memory at a sub-page(128 byte) granularity. When this capability is enabled, the CPU enforces write-access check for sub-pages within a 4KB page. The

[PATCH v3 1/9] Documentation: Introduce EPT based Subpage Protection

2019-06-06 Thread Yang Weijiang
Signed-off-by: Yang Weijiang --- Documentation/virtual/kvm/spp_kvm.txt | 216 ++ 1 file changed, 216 insertions(+) create mode 100644 Documentation/virtual/kvm/spp_kvm.txt diff --git a/Documentation/virtual/kvm/spp_kvm.txt b/Documentation/virtual/kvm/spp_kvm.txt new fil

[PATCH v3 2/9] KVM: VMX: Add control flags for SPP enabling

2019-06-06 Thread Yang Weijiang
Check SPP capability in MSR_IA32_VMX_PROCBASED_CTLS2, its 23-bit indicates SPP support. Mark SPP bit in CPU capabilities bitmap if it's supported. Signed-off-by: Yang Weijiang --- arch/x86/include/asm/cpufeatures.h | 1 + arch/x86/include/asm/vmx.h | 1 + arch/x86/kernel/cpu/intel.c

[PATCH v3 3/9] KVM: VMX: Implement functions for SPPT paging setup

2019-06-06 Thread Yang Weijiang
SPPT is a 4-level paging structure similar to EPT, when SPP is kicked for target physical page, bit 61 of the corresponding EPT enty will be flaged, then SPPT is traversed with the gfn to build up entries, the leaf entry of SPPT contains the access bitmap for subpages inside the target 4KB physical

Re: [PATCH V8 05/15] PCI: dwc: Add ext config space capability search API

2019-06-06 Thread Thierry Reding
On Sun, May 26, 2019 at 10:07:41AM +0530, Vidya Sagar wrote: > Add extended configuration space capability search API using struct dw_pcie * > pointer > > Signed-off-by: Vidya Sagar > Acked-by: Gustavo Pimentel > --- > Changes since [v7]: > * Changed data types of return and arguments to be inli

RE: [PATCH] usb: dwc3: gadget: Correct the logic for finding last SG entry

2019-06-06 Thread Anurag Kumar Vulisha
Hi Felipe, >-Original Message- >From: Felipe Balbi [mailto:ba...@kernel.org] >Sent: Wednesday, June 5, 2019 1:34 PM >To: Anurag Kumar Vulisha ; Greg Kroah-Hartman > >Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; >v.anuragku...@gmail.com; Anurag Kumar Vulisha >Subject: Re: [

Re: [PATCH v2 3/5] locking/qspinlock: Introduce CNA into the slow path of qspinlock

2019-06-06 Thread Waiman Long
On 6/6/19 11:21 AM, Alex Kogan wrote: >>> Also, the paravirt code is under arch/x86, while CNA is generic (not >>> x86-specific). Do you still want to see CNA-related patching residing >>> under arch/x86? >>> >>> We still need a config option (something like NUMA_AWARE_SPINLOCKS) to >>> enable CNA

Re: [PATCH v20 15/28] x86/sgx: Add the Linux SGX Enclave Driver

2019-06-06 Thread Jarkko Sakkinen
On Wed, Jun 05, 2019 at 07:52:19AM -0700, Sean Christopherson wrote: > At this point I don't see the access control stuff impacting the LKM > decision. > > Irrespetive of the access control thing, there are (at least) two issues > with using ACPI to probe the driver: > > - ACPI probing breaks i

Re: [PATCH 1/2] mfd: core: Support multiple OF child devices of the same type

2019-06-06 Thread Robert Hancock
On 2019-06-05 11:27 p.m., Lee Jones wrote: Without having the .of_full_name support, both MFD cells ended up wrongly matching against the i2c@c device tree node since we just picked the first one where of_compatible matched. >>> >>> What is contained in each of their resources? >

Re: [PATCH V8 09/15] dt-bindings: PCI: tegra: Add device tree support for Tegra194

2019-06-06 Thread Thierry Reding
On Sun, May 26, 2019 at 10:07:45AM +0530, Vidya Sagar wrote: > Add support for Tegra194 PCIe controllers. These controllers are based > on Synopsys DesignWare core IP. > > Signed-off-by: Vidya Sagar > Reviewed-by: Rob Herring Acked-by: Thierry Reding signature.asc Description: PGP signature

Re: [PATCH V4] drivers: i2c: tegra: fix checkpatch defects

2019-06-06 Thread Dmitry Osipenko
06.06.2019 17:02, Bitan Biswas пишет: > > > On 6/6/19 4:39 AM, Dmitry Osipenko wrote: >> 06.06.2019 10:35, Bitan Biswas пишет: >>> Fix checkpatch.pl warning(s)/error(s)/check(s) in i2c-tegra.c >>> >>> Remove redundant BUG_ON calls or replace with WARN_ON_ONCE >>> as needed. Replace BUG() with err

Re: [PATCH V2] i2c: busses: tegra: Add suspend-resume support

2019-06-06 Thread Dmitry Osipenko
06.06.2019 16:58, Bitan Biswas пишет: > > > On 6/6/19 5:06 AM, Dmitry Osipenko wrote: >> 06.06.2019 8:54, Bitan Biswas пишет: >>> Post suspend I2C registers have power on reset values. Before any >>> transfer initialize I2C registers to prevent I2C transfer timeout >>> and implement suspend and r

Re: [PATCH RFC 00/10] RDMA/FS DAX truncate proposal

2019-06-06 Thread Dan Williams
On Thu, Jun 6, 2019 at 3:42 AM Jan Kara wrote: > > On Wed 05-06-19 18:45:33, ira.we...@intel.com wrote: > > From: Ira Weiny > > > > ... V1,000,000 ;-) > > > > Pre-requisites: > > John Hubbard's put_user_pages() patch series.[1] > > Jan Kara's ext4_break_layouts() fixes[2] > > > > Ba

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