Re: [PATCH 00/18] Add Hantro regmap and VC8000 h264 decode support

2020-10-29 Thread Mark Brown
On Thu, Oct 29, 2020 at 02:15:10PM +, Robin Murphy wrote: > Or maybe the regmap API itself deserves extending with a "deferred" > operating mode where updates to the cached state can be separated from > committing that state to the underlying hardware. > ...which, after a brief code search ou

Re: [PATCH 20/33] docs: ABI: testing: make the files compatible with ReST output

2020-10-29 Thread Jonathan Cameron
On Wed, 28 Oct 2020 15:23:18 +0100 Mauro Carvalho Chehab wrote: > From: Mauro Carvalho Chehab > > Some files over there won't parse well by Sphinx. > > Fix them. > > Signed-off-by: Mauro Carvalho Chehab > Signed-off-by: Mauro Carvalho Chehab Query below... I'm going to guess a rebase issu

Re: [PATCH v3 05/16] soc: mediatek: pm_domains: Make bus protection generic

2020-10-29 Thread Matthias Brugger
On 27/10/2020 13:57, Fabien Parent wrote: - ret = mtk_infracfg_set_bus_protection(pd->infracfg, - bpd[i].bus_prot_mask, - bpd[i].bus_prot_reg_update); [snip] -

Re: [PATCH 2/4] misc/pvpanic: Add pvpanic driver framework

2020-10-29 Thread kernel test robot
Hi Mihai, Thank you for the patch! Yet something to improve: [auto build test ERROR on char-misc/char-misc-testing] [also build test ERROR on linus/master v5.10-rc1 next-20201029] [cannot apply to linux/master] [If your patch is applied to the wrong git tree, kindly drop us a note. And when

Re: [PATCH v3 15/16] soc: mediatek: pm-domains: Add default power off flag

2020-10-29 Thread Matthias Brugger
On 27/10/2020 12:18, Weiyi Lu wrote: On Tue, 2020-10-27 at 11:53 +0100, Matthias Brugger wrote: On 26/10/2020 18:55, Enric Balletbo i Serra wrote: From: Weiyi Lu For some power domain, like conn on MT8192, it should be default OFF. Because the power on/off control relies the function of c

Re: [PATCH 2/3] watchdog: st_lpc_wdt: remove unnecessary CONFIG_PM_SLEEP

2020-10-29 Thread Coiby Xu
On Thu, Oct 29, 2020 at 07:58:30AM +, Patrice CHOTARD wrote: Hi Coiby On 10/29/20 8:53 AM, Coiby Xu wrote: SIMPLE_DEV_PM_OPS has already took good care of CONFIG_PM_CONFIG. Signed-off-by: Coiby Xu --- drivers/watchdog/st_lpc_wdt.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/driv

Re: [PATCH] iio: light: apds9960: remove unneeded semicolon

2020-10-29 Thread Jonathan Cameron
On Tue, 27 Oct 2020 21:36:17 -0700 Matt Ranostay wrote: > On Tue, Oct 27, 2020 at 1:14 PM wrote: > > > > From: Tom Rix > > > > A semicolon is not needed after a switch statement. > > > > Acked-by: Matt Ranostay Applied to the togreg branch of iio.git. I'll push that out later as testing for

Re: [PATCH 30/33] docs: ABI: cleanup several ABI documents

2020-10-29 Thread Tom Rix
On 10/28/20 7:23 AM, Mauro Carvalho Chehab wrote: > There are some ABI documents that, while they don't generate > any warnings, they have issues when parsed by get_abi.pl script > on its output result. > > Address them, in order to provide a clean output. > > Signed-off-by: Mauro Carvalho Chehab

[PATCH v1] coresched/proc: add forceidle report with coresched enabled

2020-10-29 Thread Aubrey Li
When a CPU is running a task with coresched enabled, its sibling will be forced idle if the sibling does not have a trusted task to run. It is useful to report forceidle to understand the performance of different cookies of tasks throughout the system. forceidle is added at the last column of /pro

Re: [PATCH V3 1/1] nvme: Add quirk for LiteON CL1 devices running FW 220TQ,22001

2020-10-29 Thread Christoph Hellwig
I'm still worried about this. If power state based suspend does always work despite a HMB and is preferred for the specific Google board we should have purely a DMI based quirk for the board independent of the NVMe controller used with it. But if these LiteON devices can't properly handle nvme_de

Re: False positive from checkscript: git git://...

2020-10-29 Thread Joe Perches
On Thu, 2020-10-29 at 14:32 +0100, Jean Delvare wrote: > Hi Andy, Joe, > > I have hit this false positive from checkscript: > > WARNING: Possible repeated word: 'git' > #20: FILE: MAINTAINERS:5289: > +T: git git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging.git > dmi-for-next > >

Re: [PATCH] iio/adc: ingenic: remove unneeded semicolon

2020-10-29 Thread Jonathan Cameron
On Tue, 27 Oct 2020 13:11:28 -0700 t...@redhat.com wrote: > From: Tom Rix > > A semicolon is not needed after a switch statement. > > Signed-off-by: Tom Rix Hi Tom, Ideally this set of similar patches in one subsystem would have been as a series. Makes it easier to pick up with b4 and I'm la

Re: [PATCH 3/3] blk-mq: Use llist_head for blk_cpu_done

2020-10-29 Thread Sebastian Andrzej Siewior
On 2020-10-29 14:05:36 [+], Christoph Hellwig wrote: > Well, usb-storage obviously seems to do it, and the block layer > does not prohibit it. Also loop, nvme-tcp and then I stopped looking. Any objections about adding local_bh_disable() around it? Sebastian

Re: [PATCH 6/9] livepatch/ftrace: Add recursion protection to the ftrace callback

2020-10-29 Thread Petr Mladek
On Thu 2020-10-29 14:51:06, Miroslav Benes wrote: > On Wed, 28 Oct 2020, Steven Rostedt wrote: > > > From: "Steven Rostedt (VMware)" > > > > If a ftrace callback does not supply its own recursion protection and > > does not set the RECURSION_SAFE flag in its ftrace_ops, then ftrace will > > make

Re: [PATCH 3/3] blk-mq: Use llist_head for blk_cpu_done

2020-10-29 Thread Christoph Hellwig
On Thu, Oct 29, 2020 at 03:56:23PM +0100, Sebastian Andrzej Siewior wrote: > On 2020-10-29 14:05:36 [+], Christoph Hellwig wrote: > > Well, usb-storage obviously seems to do it, and the block layer > > does not prohibit it. > > Also loop, nvme-tcp and then I stopped looking. > Any objections a

Re: [PATCH] iio: adc: at91-sama5d2_adc: remove unneeded semicolon

2020-10-29 Thread Jonathan Cameron
On Tue, 27 Oct 2020 13:08:53 -0700 t...@redhat.com wrote: > From: Tom Rix > > A semicolon is not needed after a switch statement. > > Signed-off-by: Tom Rix Applied. Thanks, > --- > drivers/iio/adc/at91-sama5d2_adc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/d

[PATCH v6 2/7] irqchip/gic-v3: Enable support for SGIs to act as NMIs

2020-10-29 Thread Sumit Garg
Add support to handle SGIs as pseudo NMIs. As SGIs or IPIs default to a special flow handler: handle_percpu_devid_fasteoi_ipi(), so skip NMI handler update in case of SGIs. Also, enable NMI support prior to gic_smp_init() as allocation of SGIs as IRQs/NMIs happen as part of this routine. Signed-o

[PATCH v6 5/7] arm64: ipi_nmi: Add support for NMI backtrace

2020-10-29 Thread Sumit Garg
Enable NMI backtrace support on arm64 using IPI turned as an NMI leveraging pseudo NMIs support. It is now possible for users to get a backtrace of a CPU stuck in hard-lockup using magic SYSRQ. Signed-off-by: Sumit Garg --- arch/arm64/include/asm/irq.h | 6 ++ arch/arm64/kernel/ipi_nmi.c |

[PATCH v6 4/7] nmi: backtrace: Allow runtime arch specific override

2020-10-29 Thread Sumit Garg
Add a boolean return to arch_trigger_cpumask_backtrace() to support a use-case where a particular architecture detects at runtime if it supports NMI backtrace or it would like to fallback to default implementation using SMP cross-calls. Currently such an architecture example is arm64 supporting ps

[PATCH v6 1/7] arm64: Add framework to turn IPI as NMI

2020-10-29 Thread Sumit Garg
Introduce framework to turn an IPI as NMI using pseudo NMIs. The main motivation for this feature is to have an IPI that can be leveraged to invoke NMI functions on other CPUs. And current prospective users are NMI backtrace and KGDB CPUs round-up whose support is added via future patches. Signed

[PATCH v6 3/7] arm64: smp: Assign and setup an IPI as NMI

2020-10-29 Thread Sumit Garg
Assign an unused IPI which can be turned as NMI using ipi_nmi framework. Also, invoke corresponding dynamic IPI setup/teardown APIs. Signed-off-by: Sumit Garg --- arch/arm64/kernel/smp.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c

[PATCH v6 0/7] arm64: Add framework to turn an IPI as NMI

2020-10-29 Thread Sumit Garg
With pseudo NMIs support available its possible to configure SGIs to be triggered as pseudo NMIs running in NMI context. And kernel features such as: - NMI backtrace can leverage IPI turned as NMI to get a backtrace of CPU stuck in hard lockup using magic SYSRQ. - kgdb relies on NMI support to ro

[PATCH v6 6/7] kgdb: roundup: Allow runtime arch specific override

2020-10-29 Thread Sumit Garg
Add a new API kgdb_arch_roundup_cpus() for a particular archichecture to override default kgdb roundup and if it detects at runtime to not support NMI roundup then it can fallback to default implementation using async SMP cross-calls. Currently such an architecture example is arm64 supporting pseu

[PATCH v6 7/7] arm64: kgdb: Roundup cpus using IPI as NMI

2020-10-29 Thread Sumit Garg
arm64 platforms with GICv3 or later supports pseudo NMIs which can be leveraged to roundup CPUs which are stuck in hard lockup state with interrupts disabled that wouldn't be possible with a normal IPI. So instead switch to roundup CPUs using IPI turned as NMI. And in case a particular arm64 platf

Re: [RESEND PATCH 2/4] usb: musb: Fix NULL check on struct musb_request field

2020-10-29 Thread Tony Lindgren
* Paul Cercueil [201027 16:42]: > The 'request' variable is a pointer to the 'request' field of the > struct musb_request 'req' pointer. It only worked until now because > the 'request' field is the first one in the musb_request structure, but > as soon as that changes, the check will be invalid.

Re: [PATCH v2] kthread_worker: re-set CPU affinities if CPU come online

2020-10-29 Thread Thomas Gleixner
On Thu, Oct 29 2020 at 14:08, Petr Mladek wrote: > On Thu 2020-10-29 09:27:26, Thomas Gleixner wrote: >> The expected semantics of a cpu bound kthread_worker are completely >> unclear and undocumented. This needs to be fixed first and once this is >> established and agreed on then the gaps in the i

Re: WARN_ON(fuse_insert_writeback(root, wpa)) in tree_insert()

2020-10-29 Thread Qian Cai
[fuse] [ 3353.777295][T124459] Modules linked in: isofs kvm_intel kvm irqbypass nls_ascii nls_cp437 vfat fat ip_tables x_tables virtiofs fuse sr_mod sd_mod cdrom ata_piix virtio_pci virtio_ring e1000 libata virtio dm_d [ 3353.783690][T124459] CPU: 45 PID: 124459 Comm: trinity-c45 Not tainted 5.1

Re: [PATCH v3] AMD_SFH: Fix for incorrect Sensor index

2020-10-29 Thread Jiri Kosina
On Wed, 28 Oct 2020, Sandeep Singh wrote: > From: Sandeep Singh > > It appears like the accelerometer/magnetometer and gyroscope > indices were interchanged in the patch series which got into > for-5.11/amd-sfh-hid until Mandoli/Richard reported to us. > Ideally sensor indices should be 0,1,2 fo

[PATCH 01/18] block: cleanup del_gendisk a bit

2020-10-29 Thread Christoph Hellwig
Merge three hidden gendisk checks into one. Signed-off-by: Christoph Hellwig Reviewed-by: Hannes Reinecke --- block/genhd.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/block/genhd.c b/block/genhd.c index 0a273211fec283..3ed591970ea640 100644 --- a/block/g

Re: [PATCH 6/9] livepatch/ftrace: Add recursion protection to the ftrace callback

2020-10-29 Thread Miroslav Benes
On Thu, 29 Oct 2020, Petr Mladek wrote: > On Thu 2020-10-29 14:51:06, Miroslav Benes wrote: > > On Wed, 28 Oct 2020, Steven Rostedt wrote: > > > Hm, I've always thought that we did not need any kind of recursion > > protection for our callback. It is marked as notrace and it does not call > > a

[PATCH 02/18] block: open code kobj_map into in block/genhd.c

2020-10-29 Thread Christoph Hellwig
Copy and paste the kobj_map functionality in the block code in preparation for completely rewriting it. Signed-off-by: Christoph Hellwig --- block/genhd.c | 130 +- 1 file changed, 117 insertions(+), 13 deletions(-) diff --git a/block/genhd.c b/bl

Re: [PATCH] net/usb/r8153_ecm: support ECM mode for RTL8153

2020-10-29 Thread kernel test robot
Hi Hayes, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on net/master] [also build test WARNING on net-next/master ipvs/master linus/master v5.10-rc1 next-20201029] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting

RE: [PATCH] [v2] x86: apic: avoid -Wshadow warning in header

2020-10-29 Thread David Laight
From: Arnd Bergmann > Sent: 28 October 2020 21:21 > > From: Arnd Bergmann > > There are hundreds of warnings in a W=2 build about a local > variable shadowing the global 'apic' definition: > > arch/x86/kvm/lapic.h:149:65: warning: declaration of 'apic' shadows a global > declaration [-Wshadow]

[PATCH] trace: Fix some typos in comments

2020-10-29 Thread Qiujun Huang
s/detetector/detector/ s/enfoced/enforced/ s/writen/written/ s/actualy/actually/ s/bascially/basically/ s/Regarldess/Regardless/ s/zeroes/zeros/ s/followd/followed/ s/incrememented/incremented/ s/separatelly/separately/ s/accesible/accessible/ s/sythetic/synthetic/ s/enabed/enabled/ s/heurisitc/heu

[PATCH 03/18] block: split block_class_lock

2020-10-29 Thread Christoph Hellwig
Split the block_class_lock mutex into one each to protect bdev_map and major_names. Signed-off-by: Christoph Hellwig Reviewed-by: Hannes Reinecke --- block/genhd.c | 29 +++-- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/block/genhd.c b/block/genhd.c i

Re: SIGHUP on connect

2020-10-29 Thread Michael J. Baars
On Mon, 2020-10-26 at 17:12 +, Bernd Petrovitsch wrote: > Hi all! > > On 25/10/2020 16:11, Michael J. Baars wrote: > [...] > > I've been writing a simple client and server for cluster computing this > > weekend. At first everything appeared to work just fine, but soon enough I > > found > >

[PATCH 04/18] block: rework requesting modules for unclaimed devices

2020-10-29 Thread Christoph Hellwig
Instead of reusing the ranges in bdev_map, add a new helper that is called if no ranges was found. This is a first step to unpeel and eventually remove the complex ranges structure. Signed-off-by: Christoph Hellwig Reviewed-by: Hannes Reinecke --- block/genhd.c | 25 +++--

Re: linux-next: Tree for Oct 29 [drivers/nvdimm/nd_e820.ko]

2020-10-29 Thread Randy Dunlap
On 10/28/20 9:55 PM, Stephen Rothwell wrote: > Hi all, > > Changes since 20201028: > on x86_64: ERROR: modpost: "phys_to_target_node" [drivers/nvdimm/nd_e820.ko] undefined! Full randconfig file is attached. -- ~Randy Reported-by: Randy Dunlap # # Automatically generated file; DO NOT EDIT.

simplify gendisk lookup and remove struct block_device aliases v4

2020-10-29 Thread Christoph Hellwig
Hi all, this series removes the annoying struct block_device aliases, which can happen for a bunch of old floppy drivers (and z2ram). In that case multiple struct block device instances for different dev_t's can point to the same gendisk, without being partitions. The cause for that is the probe

[PATCH][next] sched/debug: fix memory corruption caused by multiple small reads of flags

2020-10-29 Thread Colin King
From: Colin Ian King Reading /proc/sys/kernel/sched_domain/cpu*/domain0/flags mutliple times with small reads causes oopses with slub corruption issues because the kfree is free'ing an offset from a previous allocation. Fix this by adding in a new pointer 'buf' for the allocation and kfree and us

Re: [PATCH] HID: i2c-hid: show the error of failing to fetch the HID Descriptor

2020-10-29 Thread Jiri Kosina
On Wed, 21 Oct 2020, Coiby Xu wrote: > i2c_hid_probe should notify the user of the error of failing to fetch > the HID Descriptor instead of silently exiting. > > Link: > https://forum.manjaro.org/t/elan-touchpad-working-in-live-but-not-in-native-os/31860/55 > Cc: Barnabás Pőcze > Signed-off-by

Re: False positive from checkscript: git git://...

2020-10-29 Thread Jean Delvare
On Thu, 29 Oct 2020 07:55:25 -0700, Joe Perches wrote: > On Thu, 2020-10-29 at 14:32 +0100, Jean Delvare wrote: > > WARNING: Possible repeated word: 'git' > > #20: FILE: MAINTAINERS:5289: > > +T: git git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging.git > > dmi-for-next > > > > Obvio

[PATCH 05/18] block: add an optional probe callback to major_names

2020-10-29 Thread Christoph Hellwig
Add a callback to the major_names array that allows a driver to override how to probe for dev_t that doesn't currently have a gendisk registered. This will help separating the lookup of the gendisk by dev_t vs probe action for a not currently registered dev_t. Signed-off-by: Christoph Hellwig Rev

Re: SIGHUP on connect

2020-10-29 Thread Michael J. Baars
On Mon, 2020-10-26 at 17:12 +, Bernd Petrovitsch wrote: > Hi all! > > On 25/10/2020 16:11, Michael J. Baars wrote: > [...] > > I've been writing a simple client and server for cluster computing this > > weekend. At first everything appeared to work just fine, but soon enough I > > found > >

[PATCH 06/18] ide: remove ide_{,un}register_region

2020-10-29 Thread Christoph Hellwig
There is no need to ever register the fake gendisk used for ide-tape. Signed-off-by: Christoph Hellwig Reviewed-by: Hannes Reinecke --- drivers/ide/ide-probe.c | 32 drivers/ide/ide-tape.c | 2 -- include/linux/ide.h | 3 --- 3 files changed, 37 deletions

Re:Re: [PATCH] Documentation: Chinese translation of Documentation/arm64/perf.rst

2020-10-29 Thread Bailu Lin
>> + >> +对于 non-VHE 主机端该属性将排除 EL2,因为虚拟机监控器运行在 EL2 >> +的任何代码主要用于客户端和主机端的切换。 >> + >> +对于客户端该属性无效。请注意客户端从来不会运行在 EL2。 >> + >> + >> +exclude_host / exclude_guest >> + >> + >> +这些属性分别排除了 KVM 主机端和客户端。 >> + >> +KVM 主机端可能运行在 EL0(用户空间),EL1(non-VHE 内核)和 >> +EL2(VHE 内核 或 non-VHE 虚拟

[PATCH 0/2] DA9121 regulator support

2020-10-29 Thread Vincent Whitchurch
This series adds support for the DA9121, a "High-Performance, 10 A, Dual-Phase DC-DC Converter". The datasheet is currently available here: https://www.dialog-semiconductor.com/sites/default/files/da9121_datasheet_2v3.pdf Vincent Whitchurch (2): dt-bindings: regulator: Add DA9121 regulator

[PATCH 1/2] dt-bindings: regulator: Add DA9121

2020-10-29 Thread Vincent Whitchurch
Add bindings for the Dialog Semiconductor DA9121 voltage regulator. Signed-off-by: Vincent Whitchurch --- .../bindings/regulator/dlg,da9121.yaml| 42 +++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/dlg,da9121.yaml diff

[PATCH 2/2] regulator: Add support for DA9121 regulator

2020-10-29 Thread Vincent Whitchurch
Add support for the Dialog Semiconductor DA9121, a single-channel dual-phase buck converter controlled via I2C. Signed-off-by: Vincent Whitchurch --- drivers/regulator/Kconfig| 12 +++ drivers/regulator/Makefile | 1 + drivers/regulator/da9121-regulator.c | 111 +

[PATCH 07/18] swim: don't call blk_register_region

2020-10-29 Thread Christoph Hellwig
The swim driver (unlike various other floppy drivers) doesn't have magic device nodes for certain modes, and already registers a gendisk for each of the floppies supported by a device. Thus the region registered is a no-op and can be removed. Signed-off-by: Christoph Hellwig Reviewed-by: Hannes

Re: [PATCH V9 0/5] Intel Platform Monitoring Technology

2020-10-29 Thread Lee Jones
On Wed, 28 Oct 2020, David E. Box wrote: > Intel Platform Monitoring Technology (PMT) is an architecture for > enumerating and accessing hardware monitoring capabilities on a device. > With customers increasingly asking for hardware telemetry, engineers not > only have to figure out how to measure

Re: [PATCH v2] net: usb: usbnet: update __usbnet_{read|write}_cmd() to use new API

2020-10-29 Thread Anant Thazhemadam
On 29/10/20 6:52 pm, Anant Thazhemadam wrote: > Currently, __usbnet_{read|write}_cmd() use usb_control_msg(), > and thus consider potential partial reads/writes being done to > be perfectly valid. > Quite a few callers of usbnet_{read|write}_cmd() don't enforce > checking for partial reads/write

[PATCH 08/18] sd: use __register_blkdev to avoid a modprobe for an unregistered dev_t

2020-10-29 Thread Christoph Hellwig
Switch from using blk_register_region to the probe callback passed to __register_blkdev to disable the request_module call for an unclaimed dev_t in the SD majors. Signed-off-by: Christoph Hellwig Reviewed-by: Hannes Reinecke --- drivers/scsi/sd.c | 19 +-- 1 file changed, 5 ins

Re: [PATCH] regmap: provide regmap_assign_bits()

2020-10-29 Thread Mark Brown
On Mon, Oct 26, 2020 at 04:10:15PM +0100, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Add another bits helper to regmap API: this one sets given bits if value > is true and clears them if it's false. What's the use case? > +static inline int regmap_assign_bits(struct regmap *map,

Re: SIGHUP on connect

2020-10-29 Thread Michael J. Baars
Hi Bernd, According to manual page socket(7), SO_REUSEADDR allows for local addresses to be reused for binding. I've tested this socket option with the WAN address, it appears the problem is solved for both local and non-local connections. I also found the the SO_LINGER socket option to be usefu

Hello My Dearest

2020-10-29 Thread Mrs. Sophia Robin
Hello My Dearest Please I appeal to you to exercise a little patience and read through my mail carefully, I am contacting you personally for investment assistance and a long term business relationship in your Country. I am Mrs. Sophia Robin a citizen of the united state of America; I work in HSBC

[PATCH 10/18] loop: use __register_blkdev to allocate devices on demand

2020-10-29 Thread Christoph Hellwig
Use the simpler mechanism attached to major_name to allocate a brd device when a currently unregistered minor is accessed. Signed-off-by: Christoph Hellwig Reviewed-by: Hannes Reinecke --- drivers/block/loop.c | 30 -- 1 file changed, 8 insertions(+), 22 deletions(-)

[PATCH] tracing: Fix in out of bounds write in get_trace_buf

2020-10-29 Thread Qiujun Huang
The boundary condition should be 3 as we access buffer[buffer->nesting][0]. Fixes: e2ace001176dc ("tracing: Choose static tp_printk buffer by explicit nesting count") Signed-off-by: Qiujun Huang --- kernel/trace/trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/

[PATCH v5] x86: add failure injection to get/put/clear_user

2020-10-29 Thread Alexander Potapenko
From: Albert van der Linde To test fault-tolerance of user memory acceses in x86, add support for fault injection. Make both put_user() and get_user() fail with -EFAULT, and clear_user() fail by not clearing any bytes. Reviewed-by: Akinobu Mita Reviewed-by: Alexander Potapenko Signed-off-by:

Re: [PATCH] HID: ghlive: support for ghlive ps3/wii u dongles

2020-10-29 Thread Jiri Kosina
On Thu, 8 Oct 2020, Pascal Giard wrote: > This commit introduces the Guitar Hero Live driver which adds support > for the PS3 and Wii U dongles. Pascal, thanks for the patch. [ ... snip ... ] > --- > drivers/hid/Kconfig | 6 ++ > drivers/hid/Makefile | 1 + > drivers/hid/hid-ghli

[PATCH 11/18] md: use __register_blkdev to allocate devices on demand

2020-10-29 Thread Christoph Hellwig
Use the simpler mechanism attached to major_name to allocate a md device when a currently unregistered minor is accessed. Signed-off-by: Christoph Hellwig Acked-by: Song Liu Reviewed-by: Hannes Reinecke --- drivers/md/md.c | 21 - 1 file changed, 8 insertions(+), 13 deletio

Re: [PATCH] fuse: fix potential accessing NULL pointer problem in fuse_send_init()

2020-10-29 Thread Miklos Szeredi
On Thu, Oct 22, 2020 at 4:52 PM Zhiqiang Liu wrote: > > > In fuse_send_init func, ia is allocated by calling kzalloc func, and > we donot check whether ia is NULL before using it. Thus, if allocating > ia fails, accessing NULL pointer problem will occur. Note the __GFP_NOFAIL flag for kzalloc(),

[PATCH 12/18] ide: switch to __register_blkdev for command set probing

2020-10-29 Thread Christoph Hellwig
ide is the last user of the blk_register_region framework except for the tracking of allocated gendisk. Switch to __register_blkdev, even if that doesn't allow us to trivially find out which command set to probe for. That means we now always request all modules when a user tries to access an uncla

[PATCH 3/3] MAINTAINERS: add files for Mediatek DRM drivers

2020-10-29 Thread Chun-Kuang Hu
Mediatek MIPI DSI phy driver is moved from drivers/gpu/drm/mediatek to drivers/phy/mediatek, so add the new folder to the Mediatek DRM drivers' information. Signed-off-by: Chun-Kuang Hu --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index e73636b75f

Re: [PATCH v2 1/2] ASoC: dt-bindings: fsl_aud2htx: Add binding doc for aud2htx module

2020-10-29 Thread Rob Herring
On Wed, 28 Oct 2020 17:38:49 +0800, Shengjiu Wang wrote: > AUD2HTX (Audio Subsystem TO HDMI TX Subsystem) is a new > IP module found on i.MX8MP. > > Signed-off-by: Shengjiu Wang > --- > changes in v2: > - fix indentation issue > - remove nodename > > .../bindings/sound/fsl,aud2htx.yaml

Re: [PATCH 2/2] regulator: Add support for DA9121 regulator

2020-10-29 Thread Mark Brown
On Thu, Oct 29, 2020 at 04:15:38PM +0100, Vincent Whitchurch wrote: > + config.init_data = of_get_regulator_init_data(dev, dev->of_node, > &da9121_reg); > + if (!config.init_data) > + return -ENOMEM; Don't do this, the core can do the DT bit for you and there is no reason not

Re: [PATCH v4 2/5] dt-bindings: net: Add bindings for AX88796C SPI Ethernet Adapter

2020-10-29 Thread Rob Herring
On Wed, 28 Oct 2020 22:40:09 +0100, Łukasz Stelmach wrote: > Add bindings for AX88796C SPI Ethernet Adapter. > > Signed-off-by: Łukasz Stelmach > --- > .../bindings/net/asix,ax88796c.yaml | 69 +++ > 1 file changed, 69 insertions(+) > create mode 100644 Documentation/d

[PATCH 2/3] phy: mediatek: Move mtk_mipi_dsi_phy driver into drivers/phy/mediatek folder

2020-10-29 Thread Chun-Kuang Hu
mtk_mipi_dsi_phy is currently placed inside mediatek drm driver, but it's more suitable to place a phy driver into phy driver folder, so move mtk_mipi_dsi_phy driver into phy driver folder. Signed-off-by: Chun-Kuang Hu --- drivers/gpu/drm/mediatek/Kconfig | 7 --- d

Re: [PATCH 3/9] mfd: intel_soc_pmic: remove unnecessary CONFIG_PM_SLEEP

2020-10-29 Thread Lee Jones
On Thu, 29 Oct 2020, Coiby Xu wrote: > On Thu, Oct 29, 2020 at 01:00:29PM +0200, Andy Shevchenko wrote: > > On Thu, Oct 29, 2020 at 06:06:41PM +0800, Coiby Xu wrote: > > > SIMPLE_DEV_PM_OPS has already took good care of CONFIG_PM_CONFIG. > > > > Have you compiled this with > > % make W=1 ...

[PATCH 0/3] Move Mediatek MIPI DSI PHY driver from DRM folder to PHY folder

2020-10-29 Thread Chun-Kuang Hu
mtk_mipi_dsi_phy is currently placed inside mediatek drm driver, but it's more suitable to place a phy driver into phy driver folder, so move mtk_mipi_dsi_phy driver into phy driver folder. Chun-Kuang Hu (3): drm/mediatek: Separate mtk_mipi_tx to an independent module phy: mediatek: Move mtk_m

Re: drivers/video/backlight/ltv350qv.c:192:12: warning: stack frame size of 13472 bytes in function 'ltv350qv_power'

2020-10-29 Thread Andrey Konovalov
On Sun, Oct 25, 2020 at 8:17 PM Andrew Morton wrote: > > On Mon, 26 Oct 2020 02:15:37 +0800 kernel test robot wrote: > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > > master > > head: d76913908102044f14381df865bb74df17a538cb > > commit: cae9dc35ed9ff82a99754e

[PATCH 1/3] drm/mediatek: Separate mtk_mipi_tx to an independent module

2020-10-29 Thread Chun-Kuang Hu
mtk_mipi_tx is a part of mtk_drm module, but phy driver should be an independent module rather than be part of drm module, so separate the phy driver to an independent module. Signed-off-by: Chun-Kuang Hu --- drivers/gpu/drm/mediatek/Kconfig | 8 drivers/gpu/drm/mediatek/Makefile

Re: [PATCH v3 14/26] coresight: etm4x: Add sysreg access helpers

2020-10-29 Thread Suzuki K Poulose
Joe, Andy Need your input on the checkpatch failures on this patch. Please see below. On 10/28/20 10:09 PM, Suzuki K Poulose wrote: ETMv4.4 architecture defines the system instructions for accessing ETM via register accesses. Add basic support for accessing a given register via system instruct

[PATCH 13/18] floppy: use a separate gendisk for each media format

2020-10-29 Thread Christoph Hellwig
The floppy driver usually autodetects the media when used with the normal /dev/fd? devices, which also are the only nodes created by udev. But it also supports various aliases that force a given media format. That is currently supported using the blk_register_region framework which finds the floppy

Re: [PATCH][next] sched/debug: fix memory corruption caused by multiple small reads of flags

2020-10-29 Thread Valentin Schneider
On 29/10/20 15:11, Colin King wrote: > Detected by running 'stress-ng --procfs 0' on 5.10-rc1; example splat: > That's definitely what I'll need to run next time I lay my dirty hands on procfs. > Link: https://bugzilla.kernel.org/show_bug.cgi?id=209919 > Reported-by: Jeff Bastian > Fixes: 5b9f

Re: [PATCH v6 6/7] kgdb: roundup: Allow runtime arch specific override

2020-10-29 Thread Daniel Thompson
On Thu, Oct 29, 2020 at 08:26:26PM +0530, Sumit Garg wrote: > Add a new API kgdb_arch_roundup_cpus() for a particular archichecture to > override default kgdb roundup and if it detects at runtime to not support > NMI roundup then it can fallback to default implementation using async > SMP cross-cal

Re: WARN_ON(fuse_insert_writeback(root, wpa)) in tree_insert()

2020-10-29 Thread Miklos Szeredi
On Thu, Oct 29, 2020 at 4:02 PM Qian Cai wrote: > > On Wed, 2020-10-07 at 16:08 -0400, Qian Cai wrote: > > Running some fuzzing by a unprivileged user on virtiofs could trigger the > > warning below. The warning was introduced not long ago by the commit > > c146024ec44c ("fuse: fix warning in tree

[PATCH 09/18] brd: use __register_blkdev to allocate devices on demand

2020-10-29 Thread Christoph Hellwig
Use the simpler mechanism attached to major_name to allocate a brd device when a currently unregistered minor is accessed. Signed-off-by: Christoph Hellwig Reviewed-by: Hannes Reinecke --- drivers/block/brd.c | 39 +++ 1 file changed, 11 insertions(+), 28 del

Re: [PATCH v5 0/3] time namespace aware system boot time

2020-10-29 Thread Christian Brauner
On Tue, Oct 27, 2020 at 09:42:55PM +0100, Michael Weiß wrote: > Time namespaces make it possible to virtualize time inside of > containers, e.g., it is feasible to reset the uptime of a container > to zero by setting the time namespace offset for boottime to the > negated current value of the CLOCK

[PATCH 14/18] amiflop: use separate gendisks for Amiga vs MS-DOS mode

2020-10-29 Thread Christoph Hellwig
Use separate gendisks (which share a tag_set) for the native Amgiga vs the MS-DOS mode instead of redirecting the gendisk lookup using a probe callback. This avoids potential problems with aliased block_device instances and will eventually allow for removing the blk_register_region framework. Sig

[PATCH v2] tracing: Fix out of bounds write in get_trace_buf

2020-10-29 Thread Qiujun Huang
The boundary condition should be 3 as we access buffer[buffer->nesting][0]. Fixes: e2ace001176dc ("tracing: Choose static tp_printk buffer by explicit nesting count") Signed-off-by: Qiujun Huang --- v2: Fix a typo in the title. --- kernel/trace/trace.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: For review: seccomp_user_notif(2) manual page [v2]

2020-10-29 Thread Christian Brauner
On Mon, Oct 26, 2020 at 10:55:04AM +0100, Michael Kerrisk (man-pages) wrote: > Hi all (and especially Tycho and Sargun), > > Following review comments on the first draft (thanks to Jann, Kees, > Christian and Tycho), I've made a lot of changes to this page. > I've also added a few FIXMEs relating

[PATCH 15/18] ataflop: use a separate gendisk for each media format

2020-10-29 Thread Christoph Hellwig
The Atari floppy driver usually autodetects the media when used with the ormal /dev/fd? devices, which also are the only nodes created by udev. But it also supports various aliases that force a given media format. That is currently supported using the blk_register_region framework which finds the f

Re: [PATCH] gpiolib: acpi: Support GpioInt with active_low polarity

2020-10-29 Thread Ricardo Ribalda
Hi Andy On Thu, Oct 29, 2020 at 3:38 PM Andy Shevchenko wrote: > > On Wed, Oct 28, 2020 at 06:17:57PM +0100, Ricardo Ribalda wrote: > > On the current implementation we only support active_high polarity for > > GpioInt. > > > > There can be cases where a GPIO has active_low polarity and it is als

Re: [PATCH] selftests/ftrace: Use $FUNCTION_FORK to reference kernel fork function

2020-10-29 Thread Christian Brauner
On Mon, Oct 26, 2020 at 04:20:32PM -0400, Steven Rostedt wrote: > From: "Steven Rostedt (VMware)" > > Commit cad6967ac108 ("fork: introduce kernel_clone()") replaced "_do_fork()" > with "kernel_clone()". The ftrace selftests reference the fork function in > several of the tests. The rename will m

Re: [RFC PATCH 1/2] rseq: Implement KTLS prototype for x86-64

2020-10-29 Thread Florian Weimer
* Mathieu Desnoyers: > - On Sep 29, 2020, at 4:13 AM, Florian Weimer fwei...@redhat.com wrote: > >> * Mathieu Desnoyers: >> So we have a bootstrap issue here that needs to be solved, I think. >>> >>> The one thing I'm not sure about is whether the vDSO interface is indeed >>> superior to

Re: [PATCH v12 01/10] dt-bindings: usb: Maxim type-c controller device tree binding document

2020-10-29 Thread Rob Herring
On Wed, 28 Oct 2020 23:31:29 -0700, Badhri Jagan Sridharan wrote: > Add device tree binding document for Maxim 33359 Type-C chip driver > > Signed-off-by: Badhri Jagan Sridharan > Reviewed-by: Rob Herring > --- > Changes since v1: > - Changing patch version to v6 to fix version number confusion.

Re: [PATCH 3/3] dt-binding: hwmon: Add documentation for ltc2992

2020-10-29 Thread Rob Herring
On Thu, Oct 29, 2020 at 11:49:11AM +0200, alexandru.tach...@analog.com wrote: > From: Alexandru Tachici > > Add documentation for ltc2992. > > Signed-off-by: Alexandru Tachici > --- > .../bindings/hwmon/adi,ltc2992.yaml | 78 +++ > 1 file changed, 78 insertions(+) >

Re: [PATCH 3/3] dt-binding: hwmon: Add documentation for ltc2992

2020-10-29 Thread Rob Herring
On Thu, 29 Oct 2020 11:49:11 +0200, alexandru.tach...@analog.com wrote: > From: Alexandru Tachici > > Add documentation for ltc2992. > > Signed-off-by: Alexandru Tachici > --- > .../bindings/hwmon/adi,ltc2992.yaml | 78 +++ > 1 file changed, 78 insertions(+) > create

[PATCH 16/18] z2ram: reindent

2020-10-29 Thread Christoph Hellwig
reindent the driver using Lident as the code style was far away from normal Linux code. Signed-off-by: Christoph Hellwig Reviewed-by: Hannes Reinecke --- drivers/block/z2ram.c | 493 -- 1 file changed, 236 insertions(+), 257 deletions(-) diff --git a/dri

Re: [PATCH 3/5] iio: adc: xilinx: use a devres action to disable and unprepare the clock

2020-10-29 Thread Jonathan Cameron
On Mon, 26 Oct 2020 14:36:07 +0100 Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > In order to simplify resource management and error paths in probe(), add > a devm action that calls clk_disable_unprepare() at driver detach. > > Signed-off-by: Bartosz Golaszewski > --- > drivers/i

[PATCH 17/18] z2ram: use separate gendisk for the different modes

2020-10-29 Thread Christoph Hellwig
Use separate gendisks (which share a tag_set) for the different operating modes instead of redirecting the gendisk lookup using a probe callback. This avoids potential problems with aliased block_device instances and will eventually allow for removing the blk_register_region framework. Signed-off-

Re: [PATCH v2] mm: memcg: link page counters to root if use_hierarchy is false

2020-10-29 Thread Michal Koutný
Hi. On Mon, Oct 26, 2020 at 04:13:26PM -0700, Roman Gushchin wrote: > Please note, that in the non-hierarchical mode all objcgs are always > reparented to the root memory cgroup, even if the hierarchy has more > than 1 level. This patch doesn't change it. > > The patch also doesn't affect how th

Re: [PATCH] mtd: spi-nor: intel-spi: Split intel-spi reading from writing

2020-10-29 Thread Daniel Gutson
On Thu, Oct 29, 2020 at 2:40 AM Greg Kroah-Hartman wrote: > > On Wed, Oct 28, 2020 at 06:43:59PM -0300, Daniel Gutson wrote: > > This patch separates the writing part of the intel-spi drivers > > so the 'dangerous' part can be set/unset independently. > > This way, the kernel can be configured to

Re: [PATCH v2 0/2] fs, close_range: add flag CLOSE_RANGE_CLOEXEC

2020-10-29 Thread Christian Brauner
On Mon, Oct 19, 2020 at 12:26:52PM +0200, Giuseppe Scrivano wrote: > When the new flag is used, close_range will set the close-on-exec bit > for the file descriptors instead of close()-ing them. > > It is useful for e.g. container runtimes that want to minimize the > number of syscalls used after

[PATCH] builddeb: Consolidate consecutive chmod calls into one

2020-10-29 Thread Sven Joachim
No need to call chmod three times when it can do everything at once. Signed-off-by: Sven Joachim --- scripts/package/builddeb | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/package/builddeb b/scripts/package/builddeb index 91a502bb97e8..6a100c449579 100755 --

Re: [PATCH v3 0/4] Clarify abstract scale usage for power values in Energy Model, EAS and IPA

2020-10-29 Thread Doug Anderson
Hi, On Thu, Oct 29, 2020 at 5:37 AM Lukasz Luba wrote: > > On 10/20/20 1:15 AM, Doug Anderson wrote: > > Hi, > > > > On Mon, Oct 19, 2020 at 7:06 AM Lukasz Luba wrote: > >> > >> Hi all, > >> > >> The Energy Model supports power values expressed in an abstract scale. > >> This has an impact on In

Re: [RESEND PATCH v3 1/4] dt-bindings: connector: add power-opmode optional property to usb-connector

2020-10-29 Thread Rob Herring
On Thu, Oct 29, 2020 at 10:58:03AM +0100, Amelie Delaunay wrote: > Power operation mode may depends on hardware design, so, add the optional > property power-opmode for usb-c connector to select the power operation > mode capability. > > Signed-off-by: Amelie Delaunay > --- > .../bindings/connec

Re: False positive from checkscript: git git://...

2020-10-29 Thread Joe Perches
On Thu, 2020-10-29 at 16:11 +0100, Jean Delvare wrote: > On Thu, 29 Oct 2020 07:55:25 -0700, Joe Perches wrote: > > On Thu, 2020-10-29 at 14:32 +0100, Jean Delvare wrote: > > > WARNING: Possible repeated word: 'git' > > > #20: FILE: MAINTAINERS:5289: > > > +T: git > > > git://git.kernel.org/

Re: [PATCH][next] sched/debug: fix memory corruption caused by multiple small reads of flags

2020-10-29 Thread Valentin Schneider
On 29/10/20 15:29, Valentin Schneider wrote: >> @@ -269,17 +269,17 @@ static int sd_ctl_doflags(struct ctl_table *table, int >> write, >> return 0; >> } >> >> -tmp = kcalloc(data_size + 1, sizeof(*tmp), GFP_KERNEL); > [...] >> -tmp += *ppos; > [...] >> -kfree(tmp)

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