Re: power-off delay/hang due to commit 6d25be57 (mainline)

2020-06-15 Thread Stephen Berman
On Mon, 15 Jun 2020 17:58:46 +0200 Sebastian Andrzej Siewior wrote: > On 2020-06-15 17:41:06 [+0200], Stephen Berman wrote: >> > If you do this "t" then there should be a lot of output on your console. >> > If you do this from an xterm then you can see the output after typing >> > "dmesg". The o

[PATCH v16 00/14] Introduce Data Access MONitor (DAMON)

2020-06-15 Thread SeongJae Park
From: SeongJae Park Introduction DAMON is a data access monitoring framework subsystem for the Linux kernel. The core mechanisms of DAMON called 'region based sampling' and 'adaptive regions adjustment' (refer to 'mechanisms.rst' in the 11th patch of this patchset for the detail) ma

[PATCH v16 03/14] mm/damon: Implement region based sampling

2020-06-15 Thread SeongJae Park
From: SeongJae Park This commit implements DAMON's target address space independent high level logics for basic access check and region based sampling. The target address space specific logics for the monitoring target address regions construction and the access check are required, though. The

[PATCH v16 02/14] mm: Introduce Data Access MONitor (DAMON)

2020-06-15 Thread SeongJae Park
From: SeongJae Park This commit introduces a kernel module named DAMON. Note that this commit is implementing only the stub for the module load/unload, basic data structures, and simple manipulation functions of the structures to keep the size of commit small. The core mechanisms of DAMON will

Re: [PATCH V2] dt-bindings: rtc: Convert imxdi rtc to json-schema

2020-06-15 Thread Rob Herring
On Thu, 04 Jun 2020 09:35:55 +0800, Anson Huang wrote: > Convert the i.MXDI RTC binding to DT schema format using json-schema > > Signed-off-by: Anson Huang > --- > Changes since V1: > - add "additionalProperties: false". > --- > .../devicetree/bindings/rtc/imxdi-rtc.txt | 20

[PATCH v16 01/14] mm/page_ext: Export lookup_page_ext() to GPL modules

2020-06-15 Thread SeongJae Park
From: SeongJae Park This commit exports 'lookup_page_ext()' to GPL modules. It will be used by DAMON in following commit for the implementation of the region based sampling. Signed-off-by: SeongJae Park Reviewed-by: Leonard Foerster Reviewed-by: Varad Gautam --- mm/page_ext.c | 1 + 1 file

[PATCH v16 04/14] mm/damon: Adaptively adjust regions

2020-06-15 Thread SeongJae Park
From: SeongJae Park Even somehow the initial monitoring target regions are well constructed to fulfill the assumption (pages in same region have similar access frequencies), the data access pattern can be dynamically changed. This will result in low monitoring quality. To keep the assumption as

[PATCH v16 07/14] mm/damon: Implement access pattern recording

2020-06-15 Thread SeongJae Park
From: SeongJae Park This commit implements the recording feature of DAMON. If this feature is enabled, DAMON writes the monitored access patterns in its binary format into a file which specified by the user. This is already able to be implemented by each user using the callbacks. However, as the

[PATCH v16 05/14] mm/damon: Allow dynamic monitoring target regions update

2020-06-15 Thread SeongJae Park
From: SeongJae Park The monitoring target regions can be dynamically changed. For example, virtual memory mapping could be dynamically updated and physical memory could be hot-plugged. To handle such cases, this commit adds a monitoring attribute, ``regions update interval`` and a callback ``in

Re: [PATCH v4 2/3] clk: bcm: Add BCM2711 DVP driver

2020-06-15 Thread Nicolas Saenz Julienne
On Thu, 2020-06-11 at 11:23 +0200, Maxime Ripard wrote: > The HDMI block has a block that controls clocks and reset signals to the > HDMI0 and HDMI1 controllers. > > Let's expose that through a clock driver implementing a clock and reset > provider. > > Cc: Michael Turquette > Cc: Stephen Boyd

[PATCH v16 06/14] mm/damon: Implement callbacks for the virtual memory address spaces

2020-06-15 Thread SeongJae Park
From: SeongJae Park This commit implements the four essential callbacks of DAMON, '->init_target_regions', '->update_target_regions', '->prepare_access_checks', and '->check_accesses' for virtual memory address spaces. Those internally use PTE Accessed bit. Using these callbacks, users can easi

[PATCH v16 08/14] mm/damon: Add tracepoints

2020-06-15 Thread SeongJae Park
From: SeongJae Park This commit adds a tracepoint for DAMON. It traces the monitoring results of each region for each aggregation interval. Using this, DAMON will be easily integrated with any tracepoints supporting tools such as perf. Signed-off-by: SeongJae Park Reviewed-by: Leonard Foerste

[PATCH v16 10/14] tools: Add a minimal user-space tool for DAMON

2020-06-15 Thread SeongJae Park
From: SeongJae Park This commit adds a shallow wrapper python script, ``/tools/damon/damo`` that provides more convenient interface. Note that it is only aimed to be used for minimal reference of the DAMON's debugfs interfaces and for debugging of the DAMON itself. Signed-off-by: SeongJae Park

[PATCH v16 09/14] mm/damon: Add debugfs interface

2020-06-15 Thread SeongJae Park
From: SeongJae Park This commit adds a debugfs interface for DAMON. It works for the virtual address spaces monitoring. DAMON exports four files, ``attrs``, ``pids``, ``record``, and ``monitor_on`` under its debugfs directory, ``/damon/``. Attributes -- Users can read and write the ``

[PATCH 0/2] sched, xfs: Add PF_MEMALLOC_NOLOCKDEP to fix lockdep problem in xfs

2020-06-15 Thread Waiman Long
There is a false positive lockdep warning in how the xfs code handle filesystem freeze: Possible unsafe locking scenario: CPU0CPU1 lock(sb_internal); lock(fs_reclaim); l

[PATCH 2/2] xfs: Fix false positive lockdep warning with sb_internal & fs_reclaim

2020-06-15 Thread Waiman Long
Depending on the workloads, the following circular locking dependency warning between sb_internal (a percpu rwsem) and fs_reclaim (a pseudo lock) may show up: == WARNING: possible circular locking dependency detected 5.0.0-rc1+ #60 Tainted: G

Re: [GIT PULL] SafeSetID LSM changes for v5.8

2020-06-15 Thread Micah Morton
On Sun, Jun 14, 2020 at 10:21 PM James Morris wrote: > > On Sun, 14 Jun 2020, Micah Morton wrote: > > > This patch was sent to the security mailing list and there were no > > objections. > > Standard practice for new or modified LSM hooks is that they are reviewed > and acked by maintainers of ma

Re: [PATCH] media: i2c: adv748x: add enuminput control to adv748x hdmi subdev

2020-06-15 Thread kernel test robot
Hi Ramzi, Thank you for the patch! Yet something to improve: [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v5.8-rc1 next-20200615] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '-

[PATCH v16 12/14] mm/damon: Add kunit tests

2020-06-15 Thread SeongJae Park
From: SeongJae Park This commit adds kunit based unit tests for DAMON. Signed-off-by: SeongJae Park Reviewed-by: Brendan Higgins --- mm/Kconfig | 11 + mm/damon-test.h | 660 mm/damon.c | 6 + 3 files changed, 677 insertions(+) cr

Re: [PATCH 0/6] sched: TTWU, IPI, and assorted stuff

2020-06-15 Thread Paul E. McKenney
On Mon, Jun 15, 2020 at 02:56:54PM +0200, Peter Zijlstra wrote: > Hi, > > So Paul reported rcutorture hitting a NULL dereference, and patch #1 fixes it. > > Now, patch #1 is obviously correct, but I can't explain how exactly it leads > to > the observed NULL pointer dereference. The NULL pointer

[PATCH 1/2] sched: Add PF_MEMALLOC_NOLOCKDEP flag

2020-06-15 Thread Waiman Long
There are cases where calling kmalloc() can lead to false positive lockdep splat. One notable example that can happen in the freezing of the xfs filesystem is as follows: Possible unsafe locking scenario: CPU0CPU1 lock(sb_internal)

[PATCH v16 13/14] mm/damon: Add user space selftests

2020-06-15 Thread SeongJae Park
From: SeongJae Park This commit adds a simple user space tests for DAMON. The tests are using kselftest framework. Signed-off-by: SeongJae Park --- tools/testing/selftests/damon/Makefile| 7 + .../selftests/damon/_chk_dependency.sh| 28 tools/testing/selftests/damon/_c

Re: [PATCH 2/9] rcu: Fixup noinstr warnings

2020-06-15 Thread Peter Zijlstra
On Mon, Jun 15, 2020 at 05:55:13PM +0200, Peter Zijlstra wrote: > On Mon, Jun 15, 2020 at 05:49:05PM +0200, Peter Zijlstra wrote: > > @@ -983,13 +993,17 @@ noinstr void rcu_nmi_enter(void) > > if (!in_nmi()) > > rcu_cleanup_after_idle(); > > > > + instrum

[PATCH v16 14/14] MAINTAINERS: Update for DAMON

2020-06-15 Thread SeongJae Park
From: SeongJae Park This commit updates MAINTAINERS file for DAMON related files. Signed-off-by: SeongJae Park --- MAINTAINERS | 12 1 file changed, 12 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 50659d76976b..2396a9098715 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

Re: [PATCH V2 1/3] dt-bindings: mmc: Convert imx esdhc to json-schema

2020-06-15 Thread Rob Herring
On Thu, Jun 04, 2020 at 09:41:24AM +0800, Anson Huang wrote: > Convert the i.MX ESDHC binding to DT schema format using json-schema > > Signed-off-by: Anson Huang > --- > Changes since V1: > - add "unevaluatedProperties: false". > --- > .../devicetree/bindings/mmc/fsl-imx-esdhc.txt |

Re: [PATCH v2 1/4] spi: bcm63xx-spi: add reset support

2020-06-15 Thread Florian Fainelli
On 6/15/2020 2:09 AM, Álvaro Fernández Rojas wrote: > bcm63xx arch resets the SPI controller at early boot. However, bmips arch > needs to perform a reset when probing the driver. > > Signed-off-by: Álvaro Fernández Rojas > Reviewed-by: Philipp Zabel > --- > v2: use devm_reset_control_get_ex

Re: coccinelle: api: add device_attr_show script

2020-06-15 Thread Markus Elfring
>> +virtual report, org, context, patch >> >> Is such a SmPL code variant more succinct? > > This doens't matter. Can less duplicate code be a bit nicer? >>> +ssize_t show(struct device *dev, struct device_attribute *attr, char *buf) >>> +{ >>> + <... >>> +* return snprintf@p(...); >>> + ..

Re: [PATCH v4 3/3] ARM: dts: bcm2711: Add HDMI DVP

2020-06-15 Thread Nicolas Saenz Julienne
On Thu, 2020-06-11 at 11:23 +0200, Maxime Ripard wrote: > Now that we have a driver for the DVP, let's add its DT node. > > Signed-off-by: Maxime Ripard > --- I can take this patch, but I guess the rest should go trough the clock tree. Is it OK with you? Regards, Nicolas signature.asc Descr

Re: [PATCH v2 0/4] spi: bcm63xx: add BMIPS support

2020-06-15 Thread Florian Fainelli
Hi Alvaro, On 6/15/2020 2:09 AM, Álvaro Fernández Rojas wrote: > BCM63xx SPI and HSSPI controller are present on several BMIPS SoCs (BCM6318, > BCM6328, BCM6358, BCM6362, BCM6368 and BCM63268). > > v2: use devm_reset_control_get_exclusive We would also need to write a binding document for these

Re: [PATCH v2] fs: Do not check if there is a fsnotify watcher on pseudo inodes

2020-06-15 Thread Amir Goldstein
On Mon, Jun 15, 2020 at 3:14 PM Mel Gorman wrote: > > Changelog since v1 > o Updated changelog Slipped to commit message > > The kernel uses internal mounts created by kern_mount() and populated > with files with no lookup path by alloc_file_pseudo for a variety of > reasons. An example of such

Re: [PATCH v2 2/4] spi: bcm63xx-spi: allow building for BMIPS

2020-06-15 Thread Florian Fainelli
On 6/15/2020 2:09 AM, Álvaro Fernández Rojas wrote: > bcm63xx-spi controller is present on several BMIPS SoCs (BCM6358, BCM6362, > BCM6368 and BCM63268). > > Signed-off-by: Álvaro Fernández Rojas Acked-by: Florian Fainelli -- Florian

Re: [PATCH v2 4/4] spi: bcm63xx-hsspi: allow building for BMIPS

2020-06-15 Thread Florian Fainelli
On 6/15/2020 2:09 AM, Álvaro Fernández Rojas wrote: > bcm63xx-hsspi controller is present on several BMIPS SoCs (BCM6318, BCM6328, > BCM6362 and BCM63268). > > Signed-off-by: Álvaro Fernández Rojas Acked-by: Florian Fainelli -- Florian

Re: [PATCH V2 2/3] dt-bindings: mmc: Convert imx mmc to json-schema

2020-06-15 Thread Rob Herring
On Thu, 04 Jun 2020 09:41:25 +0800, Anson Huang wrote: > Convert the i.MX MMC binding to DT schema format using json-schema > > Signed-off-by: Anson Huang > --- > Changes since V1: > - add "unevaluatedProperties: false". > --- > .../devicetree/bindings/mmc/fsl-imx-mmc.txt| 23 -

Re: [GIT PULL] SafeSetID LSM changes for v5.8

2020-06-15 Thread Micah Morton
On Sun, Jun 14, 2020 at 12:20 PM Linus Torvalds wrote: > > On Sun, Jun 14, 2020 at 12:12 PM Micah Morton wrote: > > > > That said I'm a little fuzzy on where to draw the line for which kinds > > of changes really should be required to have bake time in -next. If > > you think this is one of those

Re: [PATCH v4] mtd: parsers: bcm63xx: simplify CFE detection

2020-06-15 Thread Florian Fainelli
On 6/15/2020 2:17 AM, Álvaro Fernández Rojas wrote: > Instead of trying to parse CFE version string, which is customized by some > vendors, let's just check that "CFE1" was passed on argument 3. > > Signed-off-by: Álvaro Fernández Rojas > Signed-off-by: Jonas Gorski Reviewed-by: Florian Fain

Re: [PATCH v4 6/7] Bluetooth: Notify adv monitor removed event

2020-06-15 Thread Jakub Kicinski
On Fri, 12 Jun 2020 16:45:55 -0700 Miao-chen Chou wrote: > This notifies management sockets on MGMT_EV_ADV_MONITOR_REMOVED event. > > The following test was performed. > - Start two btmgmt consoles, issue a btmgmt advmon-remove command on one > console and observe a MGMT_EV_ADV_MONITOR_REMOVED eve

Re: [PATCH] lib: kunit_test_overflow: add KUnit test of check_*_overflow functions

2020-06-15 Thread Vitor Massaru Iha
On Fri, 2020-06-12 at 15:36 -0700, Kees Cook wrote: > On Thu, Jun 11, 2020 at 06:55:01PM -0300, Vitor Massaru Iha wrote: > > This adds the convertion of the runtime tests of check_*_overflow > > fuctions, > > from `lib/test_overflow.c`to KUnit tests. > > > > The log similar to the one seen in dmes

Re: [PATCH v2] iommu/tegra-smmu: Add missing locks around mapping operations

2020-06-15 Thread Dmitry Osipenko
25.05.2020 22:54, Dmitry Osipenko пишет: > The mapping operations of the Tegra SMMU driver are subjected to a race > condition issues because SMMU Address Space isn't allocated and freed > atomically, while it should be. This patch makes the mapping operations > atomic, it fixes an accidentally rel

Re: power-off delay/hang due to commit 6d25be57 (mainline)

2020-06-15 Thread Sebastian Andrzej Siewior
On 2020-06-15 18:19:18 [+0200], Stephen Berman wrote: > It's there, 196 lines above the Start 8d7aa8758a80 line: > > Jun 15 08:56:58 strobe-jhalfs kernel: [ 106.275356] acpi_os_execute(1109) > Adding acpi_ev_notify_dispatch+0x0/0x55 8d7aa84e70a0 So compared with | [ 193.321242] acpi_

Re: [PATCH] lib: kunit_test_overflow: add KUnit test of check_*_overflow functions

2020-06-15 Thread Vitor Massaru Iha
On Sat, 2020-06-13 at 14:56 +0800, David Gow wrote: > On Fri, Jun 12, 2020 at 5:55 AM Vitor Massaru Iha > wrote: > > This adds the convertion of the runtime tests of check_*_overflow > > fuctions, > > from `lib/test_overflow.c`to KUnit tests. > > Nit: couple of minor typos here: convertion -> con

Re: [PATCH v2] spi: bcm2835: Enable shared interrupt support

2020-06-15 Thread Florian Fainelli
On 6/8/2020 4:28 AM, Mark Brown wrote: > On Mon, Jun 08, 2020 at 12:11:11PM +0100, Robin Murphy wrote: > >> Again, 2 cycles. The overhead of a static key alone is at least 50% of that. >> And that's not even considering whether the change in code layout caused by >> doubling up the IRQ handler

Re: [PATCH] arm64: mm: reset address tag set by kasan sw tagging

2020-06-15 Thread Will Deacon
On Wed, 10 Jun 2020 16:39:44 +0530, Shyam Thombre wrote: > KASAN sw tagging sets a random tag of 8 bits in the top byte of the pointer > returned by the memory allocating functions. So for the functions unaware > of this change, the top 8 bits of the address must be reset which is done > by the fun

KMSAN: uninit-value in hash_ip6_del

2020-06-15 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:f0d5ec90 kmsan: apply __no_sanitize_memory to dotraplinkag.. git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=17927f2e10 kernel config: https://syzkaller.appspot.co

Re: [PATCH net] MAINTAINERS: merge entries for felix and ocelot drivers

2020-06-15 Thread Jakub Kicinski
On Sun, 14 Jun 2020 01:07:53 +0300 Vladimir Oltean wrote: > From: Vladimir Oltean > > The ocelot switchdev driver also provides a set of library functions for > the felix DSA driver, which in practice means that most of the patches > will be of interest to both groups of driver maintainers. > >

Re: possible deadlock in send_sigio

2020-06-15 Thread Waiman Long
On 6/12/20 3:01 AM, Boqun Feng wrote: On Fri, Jun 12, 2020 at 07:55:26AM +0800, Boqun Feng wrote: Hi Peter and Waiman, On Thu, Jun 11, 2020 at 12:09:59PM -0400, Waiman Long wrote: On 6/11/20 10:22 AM, Peter Zijlstra wrote: On Thu, Jun 11, 2020 at 09:51:29AM -0400, Waiman Long wrote: There w

Re: [PATCH 05/13] fs: check FMODE_WRITE in __kernel_write

2020-06-15 Thread Linus Torvalds
On Mon, Jun 15, 2020 at 5:13 AM Christoph Hellwig wrote: > > We still need to check if the fѕ is open write, even for the low-level > helper. Is there actually a way to trigger something like this? I'm wondering if it's worth a WARN_ON_ONCE()? It doesn't sound sensible to have some kernel functi

Re: [PATCH 0/6] sched: TTWU, IPI, and assorted stuff

2020-06-15 Thread Peter Zijlstra
On Mon, Jun 15, 2020 at 09:23:30AM -0700, Paul E. McKenney wrote: > On Mon, Jun 15, 2020 at 02:56:54PM +0200, Peter Zijlstra wrote: > > Hi, > > > > So Paul reported rcutorture hitting a NULL dereference, and patch #1 fixes > > it. > > > > Now, patch #1 is obviously correct, but I can't explain h

Re: [PATCH 2/6] exec: simplify the compat syscall handling

2020-06-15 Thread Christoph Hellwig
On Mon, Jun 15, 2020 at 11:33:49AM -0400, Brian Gerst wrote: > If you move those aliases above all the __SYSCALL_* defines it will > work, since that will get the forward declaration too. This would be > the simplest workaround. That compiles and also passes my exaustive x32 tests (chroot + ls -l

Re: [PATCH V2 3/3] dt-bindings: mmc: Convert mxs mmc to json-schema

2020-06-15 Thread Rob Herring
On Thu, 04 Jun 2020 09:41:26 +0800, Anson Huang wrote: > Convert the MXS MMC binding to DT schema format using json-schema > > Signed-off-by: Anson Huang > --- > Changes since V1: > - add "unevaluatedProperties: false". > --- > Documentation/devicetree/bindings/mmc/mxs-mmc.txt | 27 --

Re: [PATCH 05/13] fs: check FMODE_WRITE in __kernel_write

2020-06-15 Thread Christoph Hellwig
On Mon, Jun 15, 2020 at 09:39:31AM -0700, Linus Torvalds wrote: > On Mon, Jun 15, 2020 at 5:13 AM Christoph Hellwig wrote: > > > > We still need to check if the fѕ is open write, even for the low-level > > helper. > > Is there actually a way to trigger something like this? I'm wondering > if it's

[PATCH v2 net] MAINTAINERS: merge entries for felix and ocelot drivers

2020-06-15 Thread Vladimir Oltean
From: Vladimir Oltean The ocelot switchdev driver also provides a set of library functions for the felix DSA driver, which in practice means that most of the patches will be of interest to both groups of driver maintainers. So, as also suggested in the discussion here, let's merge the 2 entries

Re: [PATCH 2/2] xfs: Fix false positive lockdep warning with sb_internal & fs_reclaim

2020-06-15 Thread Darrick J. Wong
On Mon, Jun 15, 2020 at 12:08:30PM -0400, Waiman Long wrote: > Depending on the workloads, the following circular locking dependency > warning between sb_internal (a percpu rwsem) and fs_reclaim (a pseudo > lock) may show up: > > == > WARNING: po

Re: [PATCH net] MAINTAINERS: merge entries for felix and ocelot drivers

2020-06-15 Thread Vladimir Oltean
On Mon, 15 Jun 2020 at 19:37, Jakub Kicinski wrote: > > On Sun, 14 Jun 2020 01:07:53 +0300 Vladimir Oltean wrote: > > From: Vladimir Oltean > > > > The ocelot switchdev driver also provides a set of library functions for > > the felix DSA driver, which in practice means that most of the patches >

Re: [PATCH] ovl: inode reference leak in "ovl_is_inuse" true case.

2020-06-15 Thread Amir Goldstein
On Mon, Jun 15, 2020 at 6:57 PM youngjun wrote: > > When "ovl_is_inuse" true case, trap inode reference not put. > > Signed-off-by: youngjun Fixes: 0be0bfd2de9d ("ovl: fix regression caused by overlapping layers detection") Cc: # v4.19+ Reviewed-by: Amir Goldstein > --- > fs/overlayfs/super

Re: [PATCH 4/5] LSM: Define SELinux function to measure security state

2020-06-15 Thread Lakshmi Ramasubramanian
On 6/15/20 4:57 AM, Stephen Smalley wrote: Hi Stephen, Thanks for reviewing the patches. +void security_state_change(char *lsm_name, void *state, int state_len) +{ + ima_lsm_state(lsm_name, state, state_len); +} + What's the benefit of this trivial function instead of just calling ima_

Re: [PATCH 1/6] sched: Fix ttwu_queue_cond()

2020-06-15 Thread Paul E. McKenney
On Mon, Jun 15, 2020 at 03:34:09PM +0200, Peter Zijlstra wrote: > On Mon, Jun 15, 2020 at 02:56:55PM +0200, Peter Zijlstra wrote: > > Where the condition: > > > > !cpus_share_cache(smp_processor_id(), cpu) > > > > already implies 'cpu != smp_processor_id()', because a CPU always > > shares cach

Re: [PATCH 1/3] mm/slub: Fix slabs_node return value when CONFIG_SLUB_DEBUG disabled

2020-06-15 Thread Vlastimil Babka
On 6/14/20 2:39 PM, Muchun Song wrote: > The slabs_node() always return zero when CONFIG_SLUB_DEBUG is disabled. > But some codes determine whether slab is empty by checking the return > value of slabs_node(). As you know, the result is not correct. This > problem can be reproduce by the follow cod

Re: [PATCH 10/13] integrity/ima: switch to using __kernel_read

2020-06-15 Thread Linus Torvalds
On Mon, Jun 15, 2020 at 5:13 AM Christoph Hellwig wrote: > > __kernel_read has a bunch of additional sanity checks, and this moves > the set_fs out of non-core code. Wel, you also seem to be removing this part: > - if (!(file->f_mode & FMODE_READ)) > - return -EBADF; which y

Re: [RFC PATCH 1/3] dt-bindings: Add ARM PSA FF binding for non-secure VM partitions

2020-06-15 Thread Achin Gupta
On Mon, Jun 15, 2020 at 12:55:49PM +0100, Will Deacon wrote: > On Mon, Jun 15, 2020 at 12:42:20PM +0100, Achin Gupta wrote: > > On Mon, Jun 15, 2020 at 10:51:34AM +0100, Will Deacon wrote: > > > On Mon, Jun 15, 2020 at 10:16:39AM +0100, Achin Gupta wrote: > > > > Right! FFA_PARTITION_INFO_GET is me

Re: [PATCH v8 1/4] bitops: Introduce the for_each_set_clump macro

2020-06-15 Thread kernel test robot
Hi Syed, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on 444fc5cde64330661bf59944c43844e7d4c2ccd8] url: https://github.com/0day-ci/linux/commits/Syed-Nayyar-Waris/Introduce-the-for_each_set_clump-macro/20200615-205729 base

Re: possible deadlock in send_sigio

2020-06-15 Thread Matthew Wilcox
On Fri, Jun 12, 2020 at 03:01:01PM +0800, Boqun Feng wrote: > On the archs using QUEUED_RWLOCKS, read_lock() is not always a recursive > read lock, actually it's only recursive if in_interrupt() is true. So > change the annotation accordingly to catch more deadlocks. [...] > +#ifdef CONFIG_LOCKDE

[PATCH 2/2] cpufreq: Specify default governor on command line

2020-06-15 Thread Quentin Perret
Currently, the only way to specify the default CPUfreq governor is via Kconfig options, which suits users who can build the kernel themselves perfectly. However, for those who use a distro-like kernel (such as Android, with the Generic Kernel Image project), the only way to use a different default

[PATCH 1/2] cpufreq: Register governors at core_initcall

2020-06-15 Thread Quentin Perret
Currently, most CPUFreq governors are registered at core_initcall time when used as default, and module_init otherwise. In preparation for letting users specify the default governor on the kernel command line, change all of them to use core_initcall unconditionally, as is already the case for sched

[PATCH 0/2] cpufreq: Specify the default governor on command line

2020-06-15 Thread Quentin Perret
This series enables users of prebuilt kernels (e.g. distro kernels) to specify their CPUfreq governor of choice using the kernel command line, instead of having to wait for the system to fully boot to userspace to switch using the sysfs interface. This is helpful for 2 reasons: 1. users get to ch

Re: [PATCH 10/13] integrity/ima: switch to using __kernel_read

2020-06-15 Thread Linus Torvalds
On Mon, Jun 15, 2020 at 9:46 AM Linus Torvalds wrote: > > It worries me that you're making these kinds of transformations where > the comments imply it's a no-op, but the actual code doesn't agree. Note that it's not that I think the FMODE_READ check is necessarily _needed_. It's more the discrep

Re: [PATCH v7 01/13] tools/libperf: introduce notion of static polled file descriptors

2020-06-15 Thread Jiri Olsa
On Mon, Jun 15, 2020 at 05:37:53PM +0300, Alexey Budankov wrote: > > On 15.06.2020 15:30, Jiri Olsa wrote: > > On Mon, Jun 15, 2020 at 08:20:38AM +0300, Alexey Budankov wrote: > >> > >> On 08.06.2020 19:07, Jiri Olsa wrote: > >>> On Mon, Jun 08, 2020 at 12:54:31PM +0300, Alexey Budankov wrote: > >

Re: [PATCH v6 3/5] OPP: Add and export helper to set bandwidth

2020-06-15 Thread Matthias Kaehlcke
On Sat, Jun 06, 2020 at 03:03:30AM +0530, Sibi Sankar wrote: > Add and export 'dev_pm_opp_set_bw' to set the bandwidth > levels associated with an OPP. > > Signed-off-by: Sibi Sankar Reviewed-by: Matthias Kaehlcke

Re: [PATCH v2 5/5] drm/tegra: plane: Support 180° rotation

2020-06-15 Thread Ville Syrjälä
On Sun, Jun 14, 2020 at 11:01:21PM +0300, Dmitry Osipenko wrote: > Combining horizontal and vertical reflections gives us 180 degrees of > rotation. > > Signed-off-by: Dmitry Osipenko > --- > drivers/gpu/drm/tegra/dc.c | 13 - > 1 file changed, 12 insertions(+), 1 deletion(-) > > di

Re: [PATCH v2] spi: bcm2835: Enable shared interrupt support

2020-06-15 Thread Mark Brown
On Mon, Jun 15, 2020 at 09:34:58AM -0700, Florian Fainelli wrote: > OK, so this has been dropped for spi/for-next right? How do we move from > there? Well, I actually have it queued up for applying so unless I pull it before my scripts get that far through the stuff I queued over the merge window

Re: [RFC] io_uring: add restrictions to support untrusted applications and guests

2020-06-15 Thread Jens Axboe
On 6/15/20 7:33 AM, Stefano Garzarella wrote: > On Mon, Jun 15, 2020 at 11:04:06AM +0200, Jann Horn wrote: >> +Kees, Christian, Sargun, Aleksa, kernel-hardening for their opinions >> on seccomp-related aspects >> >> On Tue, Jun 9, 2020 at 4:24 PM Stefano Garzarella >> wrote: >>> Hi Jens, >>> Stef

Re: [PATCH v2] spi: bcm2835: Enable shared interrupt support

2020-06-15 Thread Florian Fainelli
On 6/15/2020 10:00 AM, Mark Brown wrote: > On Mon, Jun 15, 2020 at 09:34:58AM -0700, Florian Fainelli wrote: > >> OK, so this has been dropped for spi/for-next right? How do we move from >> there? > > Well, I actually have it queued up for applying so unless I pull it > before my scripts get t

Re: [PATCH V2 1/3] dt-bindings: i2c: Convert imx lpi2c to json-schema

2020-06-15 Thread Rob Herring
On Thu, 04 Jun 2020 09:49:16 +0800, Anson Huang wrote: > Convert the i.MX LPI2C binding to DT schema format using json-schema > > Signed-off-by: Anson Huang > --- > Changes since V1: > - add "additionalProperties: false". > --- > .../devicetree/bindings/i2c/i2c-imx-lpi2c.txt | 20

Re: [PATCH V2 2/3] dt-bindings: i2c: Convert mxs i2c to json-schema

2020-06-15 Thread Rob Herring
On Thu, Jun 04, 2020 at 09:49:17AM +0800, Anson Huang wrote: > Convert the MXS I2C binding to DT schema format using json-schema > > Signed-off-by: Anson Huang > --- > Changes since V1: > - add "additionalProperties: false". > --- > Documentation/devicetree/bindings/i2c/i2c-mxs.txt | 25 -

Re: [tip: x86/entry] x86/entry: Treat BUG/WARN as NMI-like entries

2020-06-15 Thread Andy Lutomirski
On Mon, Jun 15, 2020 at 7:50 AM Peter Zijlstra wrote: > > On Fri, Jun 12, 2020 at 07:50:08PM -, tip-bot2 for Andy Lutomirski wrote: > > +DEFINE_IDTENTRY_RAW(exc_invalid_op) > > { > > + bool rcu_exit; > > + > > + /* > > + * Handle BUG/WARN like NMIs instead of like normal idtentri

Re: [PATCH V2 3/3] dt-bindings: i2c: Convert imx i2c to json-schema

2020-06-15 Thread Rob Herring
On Thu, Jun 04, 2020 at 09:49:18AM +0800, Anson Huang wrote: > Convert the i.MX I2C binding to DT schema format using json-schema, > some improvements applied, such as update example based on latest DT > file, add more compatible for existing SoCs, and remove unnecessary > common property "pinctrl"

RE: [PATCH v2 12/12] x86/traps: Fix up invalid PASID

2020-06-15 Thread Luck, Tony
>> The heuristic always initializes the MSR with the per mm PASID IIF the >> mm has a valid PASID but the MSR doesn't have one. This heuristic usually >> happens only once on the first #GP in a thread. > > But it doesn't guarantee the PASID is the right one. Suppose both the mm > has a PASID and th

Re: [PATCH V2 1/3] dt-bindings: spi: Convert mxs spi to json-schema

2020-06-15 Thread Rob Herring
On Thu, Jun 04, 2020 at 09:55:29AM +0800, Anson Huang wrote: > Convert the MXS SPI binding to DT schema format using json-schema > > Signed-off-by: Anson Huang > --- > Changes since V1: > - add "unevaluatedProperties: false". > --- > Documentation/devicetree/bindings/spi/mxs-spi.txt | 26

Re: [PATCH v16 02/14] mm: Introduce Data Access MONitor (DAMON)

2020-06-15 Thread vrd
On 6/15/20 6:19 PM, SeongJae Park wrote: > From: SeongJae Park > > This commit introduces a kernel module named DAMON. Note that this > commit is implementing only the stub for the module load/unload, basic > data structures, and simple manipulation functions of the structures to > keep the size

Re: [RFC v2 2/3] drivers: nvmem: Add QTI qfprom-efuse support

2020-06-15 Thread Doug Anderson
Hi, On Mon, Jun 15, 2020 at 3:44 AM Srinivas Kandagatla wrote: > > > * Reading should still read "corrected", not "raw". Added a sysfs > > knob to allow you to read "raw", though. > > We could create an additional nvmem read-only provider in future if > required to read raw!. Makes sense. For

Re: possible deadlock in send_sigio

2020-06-15 Thread Waiman Long
On 6/15/20 12:49 PM, Matthew Wilcox wrote: On Fri, Jun 12, 2020 at 03:01:01PM +0800, Boqun Feng wrote: On the archs using QUEUED_RWLOCKS, read_lock() is not always a recursive read lock, actually it's only recursive if in_interrupt() is true. So change the annotation accordingly to catch more de

Re: [PATCH 2/9] rcu: Fixup noinstr warnings

2020-06-15 Thread Paul E. McKenney
On Mon, Jun 15, 2020 at 06:24:27PM +0200, Peter Zijlstra wrote: > On Mon, Jun 15, 2020 at 05:55:13PM +0200, Peter Zijlstra wrote: > > On Mon, Jun 15, 2020 at 05:49:05PM +0200, Peter Zijlstra wrote: > > > @@ -983,13 +993,17 @@ noinstr void rcu_nmi_enter(void) > > > if (!in_nmi()) > > >

powerpc64le-linux-ld: arch/powerpc/platforms/pseries/lpar.o:undefined reference to `mmu_pid_bits'

2020-06-15 Thread kernel test robot
with RADIX_MMU=n date: 8 months ago config: powerpc64-randconfig-c004-20200615 (attached as .config) compiler: powerpc64le-linux-gcc (GCC) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>, old ones

Re: [PATCH 1/2] i2c: designware: Only check the first byte for SMBus block read length

2020-06-15 Thread Sultan Alsawaf
On Mon, Jun 15, 2020 at 07:07:42PM +0300, Andy Shevchenko wrote: > On Mon, Jun 15, 2020 at 7:06 PM Sultan Alsawaf wrote: > > On Mon, Jun 15, 2020 at 12:40:19PM +0300, Andy Shevchenko wrote: > > > On Sun, Jun 14, 2020 at 02:02:54PM -0700, Sultan Alsawaf wrote: > > > > From: Sultan Alsawaf > > > >

Re: [PATCH V2 2/3] dt-bindings: spi: Convert imx cspi to json-schema

2020-06-15 Thread Rob Herring
On Thu, Jun 04, 2020 at 09:55:30AM +0800, Anson Huang wrote: > Convert the i.MX CSPI binding to DT schema format using json-schema, > update compatible, remove obsolete properties "fsl,spi-num-chipselects" > and update the example based on latest DT file. > > Signed-off-by: Anson Huang > --- > Ch

Re: [PATCH 1/4] arm64: dts: qcom: sc7180: Add support to skip powering up of ETM

2020-06-15 Thread Mathieu Poirier
On Tue, Jun 09, 2020 at 07:00:28PM +0530, Sai Prakash Ranjan wrote: > Add "qcom,skip-power-up" property to skip powering up ETM > on SC7180 SoC to workaround a hardware errata where CPU > watchdog counter is stopped when ETM power up bit is set > (i.e., when TRCPDCR.PU = 1). > > Signed-off-by: Sai

Re: [PATCH 3/4] arm64: dts: qcom: sc7180: Add support for context losing replicator

2020-06-15 Thread Mathieu Poirier
On Tue, Jun 09, 2020 at 07:00:30PM +0530, Sai Prakash Ranjan wrote: > Add "qcom,replicator-loses-context" property to the replicator > in Always-on domain in SC7180 SoC to enable coresight replicator > driver to handle this variation of replicator designs. > > Signed-off-by: Sai Prakash Ranjan >

Re: [PATCH 0/6] sched: TTWU, IPI, and assorted stuff

2020-06-15 Thread Paul E. McKenney
On Mon, Jun 15, 2020 at 06:40:48PM +0200, Peter Zijlstra wrote: > On Mon, Jun 15, 2020 at 09:23:30AM -0700, Paul E. McKenney wrote: > > On Mon, Jun 15, 2020 at 02:56:54PM +0200, Peter Zijlstra wrote: > > > Hi, > > > > > > So Paul reported rcutorture hitting a NULL dereference, and patch #1 > > >

Re: [PATCH v6 4/5] cpufreq: qcom: Update the bandwidth levels on frequency change

2020-06-15 Thread Matthias Kaehlcke
Hi Sibi, On Sat, Jun 06, 2020 at 03:03:31AM +0530, Sibi Sankar wrote: > Add support to parse optional OPP table attached to the cpu node when > the OPP bandwidth values are populated. This allows for scaling of > DDR/L3 bandwidth levels with frequency change. > > Signed-off-by: Sibi Sankar > ---

Re: [PATCH v2] fs: Do not check if there is a fsnotify watcher on pseudo inodes

2020-06-15 Thread Mel Gorman
On Mon, Jun 15, 2020 at 07:26:38PM +0300, Amir Goldstein wrote: > On Mon, Jun 15, 2020 at 3:14 PM Mel Gorman > wrote: > > > > Changelog since v1 > > o Updated changelog > > Slipped to commit message > It's habit, it's the layout I generally use for mm even though others prefer having it below

Re: [PATCH 1/2] video: ssd1307fb: Print PWM period using 64-bit format specifier

2020-06-15 Thread kernel test robot
Hi Thierry, I love your patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.8-rc1 next-20200615] [cannot apply to pwm/for-next] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we

Re: [PATCH 3/3] spi: bcm2835: Enable shared interrupt support

2020-06-15 Thread Rob Herring
On Thu, Jun 04, 2020 at 06:17:32AM +0200, Lukas Wunner wrote: > On Wed, Jun 03, 2020 at 08:46:55PM -0700, Florian Fainelli wrote: > > +static const struct of_device_id bcm2835_spi_match[] = { > > + { .compatible = "brcm,bcm2835-spi", .data = &bcm2835_spi_interrupt }, > > + { .compatible = "brcm

[tip: x86/cleanups] x86/msr: Lift AMD family 0x15 power-specific MSRs

2020-06-15 Thread tip-bot2 for Borislav Petkov
The following commit has been merged into the x86/cleanups branch of tip: Commit-ID: d9124642495d0d91f2a09db933c0485f1abe6611 Gitweb: https://git.kernel.org/tip/d9124642495d0d91f2a09db933c0485f1abe6611 Author:Borislav Petkov AuthorDate:Mon, 08 Jun 2020 16:19:49 +02:00 Comm

Re: [PATCH 1/2] video: ssd1307fb: Print PWM period using 64-bit format specifier

2020-06-15 Thread kernel test robot
Hi Thierry, I love your patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.8-rc1 next-20200615] [cannot apply to pwm/for-next] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we

Re: [PATCH 1/1] of: reserved_mem: Fix typo in the too-many-regions message

2020-06-15 Thread Rob Herring
On Wed, 03 Jun 2020 22:49:00 -0700, Danny Lin wrote: > Minor fix for a missing preposition in the error message that appears > when there are too many reserved memory regions for the allocated array > to store. > > Signed-off-by: Danny Lin > --- > drivers/of/of_reserved_mem.c | 2 +- > 1 file ch

[RFC PATCH 1/3] futex: introduce FUTEX_SWAP operation

2020-06-15 Thread Peter Oskolkov
>From 6fbe0261204692a7f488261ab3c4ac696b91db5c Mon Sep 17 00:00:00 2001 From: Peter Oskolkov Date: Tue, 9 Jun 2020 16:03:14 -0700 Subject: [RFC PATCH 1/3] futex: introduce FUTEX_SWAP operation This is an RFC! As Paul Turner presented at LPC in 2013 ... - pdf: http://pdxplumbers.osuosl.org/2013/

[RFC PATCH 3/3] selftests/futex: add futex_swap selftest

2020-06-15 Thread Peter Oskolkov
>From 42709b7f82d38c573fc1ff5f5aa7d0065ee54b82 Mon Sep 17 00:00:00 2001 From: Peter Oskolkov Date: Tue, 2 Jun 2020 13:01:17 -0700 Subject: [RFC PATCH 3/3] selftests/futex: add futex_swap selftest This is the final RFC patch in FUTEX_SWAP patchset. It adds a test/benchmark to validate behavior and

[RFC PATCH 2/3] futex, sched: add wake_up_swap, use in FUTEX_SWAP

2020-06-15 Thread Peter Oskolkov
>From 2e5a6e670f4d5f5ab94893fe0bff17150b56c142 Mon Sep 17 00:00:00 2001 From: Peter Oskolkov Date: Sun, 14 Jun 2020 17:08:00 -0700 Subject: [RFC PATCH 2/3] futex, sched: add wake_up_swap, use in FUTEX_SWAP This is an RFC! As described in the previous patch in this patchset ("futex: introduce FUT

[RFC PATCH 0/3] futex/sched: introduce FUTEX_SWAP operation

2020-06-15 Thread Peter Oskolkov
>From 42709b7f82d38c573fc1ff5f5aa7d0065ee54b82 Mon Sep 17 00:00:00 2001 From: Peter Oskolkov Date: Mon, 15 Jun 2020 10:17:36 -0700 Subject: [RFC PATCH 0/3] futex/sched: introduce FUTEX_SWAP operation As Paul Turner presented at LPC in 2013 ... - pdf: http://pdxplumbers.osuosl.org/2013/ocw//syste

Re: [PATCH v2] spi: bcm2835: Enable shared interrupt support

2020-06-15 Thread Mark Brown
On Mon, Jun 15, 2020 at 10:04:46AM -0700, Florian Fainelli wrote: > OK, how about I send you an increment patch (would a fixup be okay?) > that adds __always_inline since we know from this thread that some > compilers may mis-optimize the function inlining? That's fine for me. signature.asc Des

Re: [PATCH] media: i2c: adv748x: add enuminput control to adv748x hdmi subdev

2020-06-15 Thread kernel test robot
Hi Ramzi, Thank you for the patch! Yet something to improve: [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v5.8-rc1 next-20200615] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '-

<    4   5   6   7   8   9   10   11   12   13   >