[PATCH v3 0/2] add epoll_pwait2 syscall

2020-11-18 Thread Willem de Bruijn
From: Willem de Bruijn Enable nanosecond timeouts for epoll. Analogous to pselect and ppoll, introduce an epoll_wait syscall variant that takes a struct timespec instead of int timeout. See patch 1 for more details. patch 1: new syscall patch 2: selftest Willem de Bruijn (2): epoll: add

[PATCH manpages RFC] epoll_wait.2: add epoll_pwait2

2020-11-18 Thread Willem de Bruijn
From: Willem de Bruijn Expand the epoll_wait page with epoll_pwait2, an epoll_wait variant that takes a struct timespec to enable nanosecond resolution timeout. int epoll_pwait2(int fd, struct epoll_event *events, int maxevents, const struct

Re: [PATCH v2 3/4] hwmon: (ltc2945): add support for sense resistor

2020-11-18 Thread Alexandru Ardelean
On Wed, Nov 11, 2020 at 11:08 AM Alexandru Ardelean wrote: > > The sense resistor is a parameter of the board. It should be configured in > the driver via a device-tree / ACPI property, so that the proper current > measurements can be done in the driver. > > It shouldn't be necessary that

Re: [PATCH v4 11/19] sched/core: Make migrate disable and CPU hotplug cooperative

2020-11-18 Thread Qian Cai
On Tue, 2020-11-17 at 19:28 +, Valentin Schneider wrote: > We did have some breakage in that area, but all the holes I was aware of > have been plugged. What would help here is to see which tasks are still > queued on that outgoing CPU, and their recent activity. > > Something like > -

Re: [PATCH v2 2/4] docs: hwmon: (ltc2945): change type of val to ULL in ltc2945_val_to_reg()

2020-11-18 Thread Alexandru Ardelean
On Wed, Nov 11, 2020 at 4:54 PM Guenter Roeck wrote: > > On 11/11/20 1:12 AM, Alexandru Ardelean wrote: > > In order to account for any potential overflows that could occur. > > > > Signed-off-by: Alexandru Ardelean > > Thinking about it, this can only really happen if the user provides >

[PATCH][next] octeontx2-af: Fix access of iter->entry after iter object has been kfree'd

2020-11-18 Thread Colin King
From: Colin Ian King The call to pc_delete_flow can kfree the iter object, so the following dev_err message that accesses iter->entry can accessmemory that has just been kfree'd. Fix this by adding a temporary variable 'entry' that has a copy of iter->entry and also use this when indexing into

[PATCH 5/6] Drivers: hv: vmbus: Resolve race condition in vmbus_onoffer_rescind()

2020-11-18 Thread Andrea Parri (Microsoft)
An erroneous or malicious host could send multiple rescind messages for a same channel. In vmbus_onoffer_rescind(), the guest maps the channel ID to obtain a pointer to the channel object and it eventually releases such object and associated data. The host could time rescind messages and lead to

[PATCH 3/6] Drivers: hv: vmbus: Avoid double fetch of payload_size in vmbus_on_msg_dpc()

2020-11-18 Thread Andrea Parri (Microsoft)
vmbus_on_msg_dpc() double fetches from payload_size. The double fetch can lead to a buffer overflow when (mem)copying the hv_message object. Avoid the double fetch by saving the value of payload_size into a local variable. Reported-by: Juan Vazquez Signed-off-by: Andrea Parri (Microsoft) ---

[PATCH 6/6] Drivers: hv: vmbus: Do not allow overwriting vmbus_connection.channels[]

2020-11-18 Thread Andrea Parri (Microsoft)
Currently, vmbus_onoffer() and vmbus_process_offer() are not validating whether a given entry in the vmbus_connection.channels[] array is empty before filling the entry with a call of vmbus_channel_map_relid(). An erroneous or malicious host could rely on this to leak channel objects. Do not

[PATCH 1/6] Drivers: hv: vmbus: Initialize memory to be sent to the host

2020-11-18 Thread Andrea Parri (Microsoft)
__vmbus_open() and vmbus_teardown_gpadl() do not inizialite the memory for the vmbus_channel_open_channel and the vmbus_channel_gpadl_teardown objects they allocate respectively. These objects contain padding bytes and fields that are left uninitialized and that are later sent to the host,

[PATCH 4/6] Drivers: hv: vmbus: Avoid use-after-free in vmbus_onoffer_rescind()

2020-11-18 Thread Andrea Parri (Microsoft)
When channel->device_obj is non-NULL, vmbus_onoffer_rescind() could invoke put_device(), that will eventually release the device and free the channel object (cf. vmbus_device_release()). However, a pointer to the object is dereferenced again later to load the primary_channel. The use-after-free

[PATCH 2/6] Drivers: hv: vmbus: Avoid double fetch of msgtype in vmbus_on_msg_dpc()

2020-11-18 Thread Andrea Parri (Microsoft)
vmbus_on_msg_dpc() double fetches from msgtype. The double fetch can lead to an out-of-bound access when accessing the channel_message_table array. In turn, the use of the out-of-bound entry could lead to code execution primitive (entry->message_handler()). Avoid the double fetch by saving the

[PATCH 0/6] Drivers: hv: vmbus: More VMBus-hardening changes

2020-11-18 Thread Andrea Parri (Microsoft)
Hi all, This set is a continuation of the work for hardening the VMBus drivers against an erroneous or malicious host. This is based on hyperv-next. Thanks, Andrea Andrea Parri (Microsoft) (6): Drivers: hv: vmbus: Initialize memory to be sent to the host Drivers: hv: vmbus: Avoid double

[PATCH v3] tracepoint: Do not fail unregistering a probe due to memory allocation

2020-11-18 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The list of tracepoint callbacks is managed by an array that is protected by RCU. To update this array, a new array is allocated, the updates are copied over to the new array, and then the list of functions for the tracepoint is switched over to the new array.

[PATCH] gpio: omap: handle deferred probe with dev_err_probe() for gpiochip_add_data()

2020-11-18 Thread Grygorii Strashko
The gpiochip_add_data() may return -EPROBE_DEFER which is not handled properly by TI GPIO driver and causes unnecessary boot log messages. Hence, add proper deferred probe handling with new dev_err_probe() API. Signed-off-by: Grygorii Strashko --- drivers/gpio/gpio-omap.c | 7 ++- 1 file

Re: [RFC PATCH 15/27] of/fdt: Introduce early_init_dt_add_memory_hyp()

2020-11-18 Thread Quentin Perret
On Wednesday 18 Nov 2020 at 09:25:47 (+), Quentin Perret wrote: > I'll have a go at the memblock stuff to see if I find a way to make it > work from that angle. OK, no luck with the memblock API, but I figured that I can actually postpone the KVM memory reservation to a later point, after

[gustavoars-linux:testing/clang-ft/lib] BUILD SUCCESS 02ec42c445b349042b8361294a9ff72fc3193f18

2020-11-18 Thread kernel test robot
i386 randconfig-a001-20201117 i386 randconfig-a002-20201117 i386 randconfig-a004-20201117 i386 randconfig-a003-20201117 i386 randconfig-a006-20201118 i386 randconfig-a005-20201118 i386

Re: [PATCH v3] lockdep: Allow tuning tracing capacity constants.

2020-11-18 Thread Tetsuo Handa
The problem is that we can't know what exactly is consuming these resources. My question is do you have a plan to make it possible to know what exactly is consuming these resources. On 2020/11/18 23:23, Peter Zijlstra wrote: > On Wed, Nov 18, 2020 at 10:57:08PM +0900, Tetsuo Handa wrote: >>

[PATCH] gpiolib: do not print err message for EPROBE_DEFER

2020-11-18 Thread Grygorii Strashko
The gpiochip may have dependencies from pinmux and so got deferred. Now it will print error message every time -EPROBE_DEFER is returned which is unnecessary: "gpiochip_add_data_with_key: GPIOs 0..31 (gpio-0-31) failed to register, -517" Hence, do suppress error message for -EPROBE_DEFER case.

Re: possible deadlock in _destroy_id

2020-11-18 Thread syzbot
syzbot has found a reproducer for the following issue on: HEAD commit:20529233 Add linux-next specific files for 20201118 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=16ce97be50 kernel config: https://syzkaller.appspot.com/x/.config?x

Re: linux-next: build warnings after merge of the v4l-dvb tree

2020-11-18 Thread Helen Koike
Hi Stephen, On 11/18/20 2:32 AM, Stephen Rothwell wrote: > Hi all, > > After merging the v4l-dvb tree, today's linux-next build (htmldocs) > produced these warnings: > > Documentation/output/videodev2.h.rst:6: WARNING: undefined label: > v4l2-meta-fmt-rk-isp1-params (if the link has no caption

[PATCH] WIP! media: uvcvideo: Use dma_alloc_noncontiguos API

2020-11-18 Thread Ricardo Ribalda
On architectures where the is no coherent caching such as ARM use the dma_alloc_noncontiguos API and handle manually the cache flushing using dma_sync_single(). With this patch on the affected architectures we can measure up to 20x performance improvement in uvc_video_copy_data_work().

[PATCH] mdio_bus: suppress err message for reset gpio EPROBE_DEFER

2020-11-18 Thread Grygorii Strashko
The mdio_bus may have dependencies from GPIO controller and so got deferred. Now it will print error message every time -EPROBE_DEFER is returned from: __mdiobus_register() |-devm_gpiod_get_optional() without actually identifying error code. "mdio_bus 4a101000.mdio: mii_bus 4a101000.mdio

Re: [PATCH v3] lockdep: Allow tuning tracing capacity constants.

2020-11-18 Thread Peter Zijlstra
On Wed, Nov 18, 2020 at 10:57:08PM +0900, Tetsuo Handa wrote: > Peter, do you have a plan to make this problem actionable? I don't even know what the problem is.. nor do you. You can keep sending this bad paper-over-issues patch until you're blue in the face, I'll not take it for reasons I've

[PATCH] media: admin-guide/pixfmt-meta-rkisp1.rst: pixfmt reference conforming with macro

2020-11-18 Thread Helen Koike
Fix warnings from make htmlddocs: Documentation/output/videodev2.h.rst:6: WARNING: undefined label: v4l2-meta-fmt-rk-isp1-params (if the link has no caption the label must precede a section header) Documentation/output/videodev2.h.rst:6: WARNING: undefined label: v4l2-meta-fmt-rk-isp1-stat-3a

Re: violating function pointer signature

2020-11-18 Thread Steven Rostedt
On Wed, 18 Nov 2020 14:59:29 +0100 Florian Weimer wrote: > * Peter Zijlstra: > > > I think that as long as the function is completely empty (it never > > touches any of the arguments) this should work in practise. > > > > That is: > > > > void tp_nop_func(void) { } > > > > can be used as an

Re: [PATCH] pwm: core: Use octal permission

2020-11-18 Thread Uwe Kleine-König
On Wed, Nov 18, 2020 at 07:36:28PM +0530, Soham Biswas wrote: > On Wed, 18 Nov 2020 at 19:29, Soham Biswas wrote: > > > > Permission bits are easier readable in octal than with using the symbolic > > names. > > > > Fixes the following warning generated by checkpatch: > > > >

Re: [PATCH v2] iommu/vt-d: avoid unnecessory panic if iommu init fail in tboot system

2020-11-18 Thread Will Deacon
On Tue, 10 Nov 2020 15:19:08 +0800, Zhenzhong Duan wrote: > "intel_iommu=off" command line is used to disable iommu but iommu is force > enabled in a tboot system for security reason. > > However for better performance on high speed network device, a new option > "intel_iommu=tboot_noforce" is

Re: [PATCH 0/5] context_tracking: Flatter archs not using exception_enter/exit() v3

2020-11-18 Thread Frederic Weisbecker
On Wed, Nov 18, 2020 at 03:05:03PM +0100, Peter Zijlstra wrote: > On Wed, Nov 18, 2020 at 02:48:26PM +0100, Frederic Weisbecker wrote: > > On Wed, Nov 18, 2020 at 08:39:47AM +0100, Peter Zijlstra wrote: > > > On Tue, Nov 17, 2020 at 04:16:32PM +0100, Frederic Weisbecker wrote: > > > > Frederic

[PATCH] bus: ti-sysc: suppress err msg for timers used as clockevent/source

2020-11-18 Thread Grygorii Strashko
GP Timers used as clockevent/source are not available for ti-sysc bus and handled by Kernel timekeeping core. Now ti-sysc produces error message every time such timer is detected: "ti-sysc: probe of 4804.target-module failed with error -16" Such messages are not necessary, so suppress them

Re: violating function pointer signature

2020-11-18 Thread Florian Weimer
* Peter Zijlstra: >> The default Linux calling conventions are all of the cdecl family, >> where the caller pops the argument off the stack. You didn't quote >> enough to context to tell whether other calling conventions matter in >> your case. > > This is strictly in-kernel, and I think we're

Re: linux-next: manual merge of the gpio tree with the kspp-gustavo tree

2020-11-18 Thread Andy Shevchenko
On Wed, Nov 18, 2020 at 05:00:57AM -0600, Gustavo A. R. Silva wrote: > On Wed, Nov 18, 2020 at 12:52:25PM +0200, Andy Shevchenko wrote: > > On Wed, Nov 18, 2020 at 11:29 AM Andy Shevchenko > > wrote: > > > On Wed, Nov 18, 2020 at 9:53 AM Linus Walleij > > > wrote: > > > > On Wed, Nov 18, 2020

[PATCH][next] scsi: lpfc: Fix memory leak on lcb_context

2020-11-18 Thread Colin King
From: Colin Ian King Currently there is an error return path that neglects to free the allocation for lcb_context. Fix this by adding a new error free exit path that kfree's lcb_context before returning. Use this new kfree exit path in another exit error path that also kfree's the same object,

Re: violating function pointer signature

2020-11-18 Thread Peter Zijlstra
On Wed, Nov 18, 2020 at 02:59:29PM +0100, Florian Weimer wrote: > * Peter Zijlstra: > > > I think that as long as the function is completely empty (it never > > touches any of the arguments) this should work in practise. > > > > That is: > > > > void tp_nop_func(void) { } > > > > can be used as

Re: [EXT] Re: [PATCH v3 4/4] soc: imx8m: change to use platform driver

2020-11-18 Thread Krzysztof Kozlowski
On Wed, Nov 18, 2020 at 02:07:41PM +, Alice Guo wrote: > > > > -Original Message- > > From: Krzysztof Kozlowski > > Sent: 2020年11月18日 18:42 > > To: Alice Guo > > Cc: robh...@kernel.org; shawn...@kernel.org; s.ha...@pengutronix.de; > > dl-linux-imx ; Peng Fan ; > >

[PATCHv2 0/5] Extend Intel service layer, FPGA manager and region

2020-11-18 Thread richard . gong
From: Richard Gong This is 2nd submission of Intel service layer and FPGA patches. The customer wants to verify that a FPGA bitstream can be started properly before saving the bitstream to the QSPI flash memory. Bitstream authentication makes sure a signed bitstream has valid signatures. The

[PATCHv2 5/5] fpga: stratix10-soc: extend driver for bitstream authentication

2020-11-18 Thread richard . gong
From: Richard Gong Extend FPGA manager driver to support FPGA bitstream authentication on Intel SocFPGA platforms. Signed-off-by: Richard Gong --- v2: use flag defined in stratix10-svc driver --- drivers/fpga/stratix10-soc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCHv2 3/5] fpga: of-fpga-region: add authenticate-fpga-config property

2020-11-18 Thread richard . gong
From: Richard Gong Add authenticate-fpga-config property to support FPGA bitstream authentication, which makes sure a signed bitstream has valid signatures. Signed-off-by: Richard Gong --- v2: changed in alphabetical order --- drivers/fpga/of-fpga-region.c | 3 +++ 1 file changed, 3

[PATCHv2 4/5] dt-bindings: fpga: add authenticate-fpga-config property

2020-11-18 Thread richard . gong
From: Richard Gong Add authenticate-fpga-config property for FPGA bitstream authentication, which makes sure a signed bitstream has valid signatures. Signed-off-by: Richard Gong --- v2: put authenticate-fpga-config above partial-fpga-config update commit messages ---

[PATCHv2 2/5] fpga: fpga-mgr: add FPGA_MGR_BITSTREM_AUTHENTICATION flag

2020-11-18 Thread richard . gong
From: Richard Gong Add FPGA_MGR_BITSTREM_AUTHENTICATION flag for FPGA bitstream authentication, which makes sure a signed bitstream has valid signatures. Except for the actual configuration of the device, the authentication works the same way as FPGA configuration does. If the authentication

[PATCHv2 1/5] firmware: stratix10-svc: add COMMAND_AUTHENTICATE_BITSTREAM flag

2020-11-18 Thread richard . gong
From: Richard Gong Add COMMAND_AUTHENTICATE_BITSTREAM command flag for new added bitstream authentication feature. Authenticating a bistream is to make sure a signed bitstream has the valid signatures. Except for the actual configuration of the device, the bitstream authentication works the

RE: [EXT] Re: [PATCH v3 4/4] soc: imx8m: change to use platform driver

2020-11-18 Thread Alice Guo
> -Original Message- > From: Krzysztof Kozlowski > Sent: 2020年11月18日 18:42 > To: Alice Guo > Cc: robh...@kernel.org; shawn...@kernel.org; s.ha...@pengutronix.de; > dl-linux-imx ; Peng Fan ; > devicet...@vger.kernel.org; linux-kernel@vger.kernel.org; >

Re: [PATCH] pwm: core: Use octal permission

2020-11-18 Thread Soham Biswas
On Wed, 18 Nov 2020 at 19:29, Soham Biswas wrote: > > Permission bits are easier readable in octal than with using the symbolic > names. > > Fixes the following warning generated by checkpatch: > > drivers/pwm/core.c:1341: WARNING: Symbolic permissions 'S_IRUGO' are not > preferred. > Consider

Re: [EXTERNAL] [tip: x86/apic] x86/io_apic: Cleanup trigger/polarity helpers

2020-11-18 Thread Thomas Gleixner
Suravee, On Wed, Nov 18 2020 at 17:29, Suravee Suthikulpanit wrote: > On 11/17/20 9:00 AM, Suravee Suthikulpanit wrote: > > I might need your help debugging this issue. I'm seeing the following error: > > [ 14.005937] irq 29, desc: d200500b, depth: 0, count: 0, unhandled: > 0 > [

Re: [RFC PATCH V2] acpi/irq: Add stacked IRQ domain support to PCI interrupt link

2020-11-18 Thread Chen Baozi
Hi Lorenzo, > On Nov 18, 2020, at 5:51 PM, Lorenzo Pieralisi > wrote: > > On Tue, Nov 17, 2020 at 09:42:14PM +0800, Chen Baozi wrote: >> Some PCIe designs require software to do extra acknowledgements for >> legacy INTx interrupts. If the driver is written only for device tree, >> things are

Re: [PATCH 0/5] context_tracking: Flatter archs not using exception_enter/exit() v3

2020-11-18 Thread Peter Zijlstra
On Wed, Nov 18, 2020 at 02:48:26PM +0100, Frederic Weisbecker wrote: > On Wed, Nov 18, 2020 at 08:39:47AM +0100, Peter Zijlstra wrote: > > On Tue, Nov 17, 2020 at 04:16:32PM +0100, Frederic Weisbecker wrote: > > > Frederic Weisbecker (5): > > > context_tracking: Introduce

[PATCH v2 0/3] Add bus format negotiation support for Cadence MHDP8546 driver

2020-11-18 Thread Yuti Amonkar
This patch series add bus format negotiation support for Cadence MHDP8546 bridge driver. The patch series has four patches in the below sequence: 1. drm: bridge: cdns-mhdp8546: Modify atomic_get_input_bus_format bridge function. Return all the input formats supported. 2. drm: bridge:

[PATCH v2 1/3] drm: bridge: cdns-mhdp8546: Modify atomic_get_input_bus_format bridge function

2020-11-18 Thread Yuti Amonkar
Modify atomic_get_input_bus_format function to return input formats supported instead of using hardcoded value. Signed-off-by: Yuti Amonkar --- .../drm/bridge/cadence/cdns-mhdp8546-core.c | 45 ++- 1 file changed, 35 insertions(+), 10 deletions(-) diff --git

[PATCH v2 3/3] drm: bridge: cdns-mhdp8546: Retrieve the pixel format and bpc based on bus format

2020-11-18 Thread Yuti Amonkar
Get the pixel format and bpc based on the output bus format negotiated instead of hardcoding the values. Signed-off-by: Yuti Amonkar --- .../drm/bridge/cadence/cdns-mhdp8546-core.c | 82 +++ 1 file changed, 64 insertions(+), 18 deletions(-) diff --git

[PATCH] x86/msr: Filter MSR writes

2020-11-18 Thread Mathieu Chouquet-Stringer
On Wed, Nov 18, 2020 at 12:50:27PM +0100, Borislav Petkov wrote: > On Wed, Nov 18, 2020 at 10:09:29AM +0100, Mathieu Chouquet-Stringer wrote: > > Speaking of doc, looking at the patches you submitted, I didn't see any > > update to the documentation. Would you like me to create a patch for > >

[PATCH v2 2/3] drm: bridge: cdns-mhdp8546: Remove setting of bus format using connector info

2020-11-18 Thread Yuti Amonkar
As we are using bus negotiations for selecting bus format remove the setting of bus format using the connector info structure. Signed-off-by: Yuti Amonkar --- drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c | 6 -- 1 file changed, 6 deletions(-) diff --git

Re: [PATCH v3 1/3] tools/bootconfig: Fix to check the write failure correctly

2020-11-18 Thread Steven Rostedt
On Wed, 18 Nov 2020 22:37:08 +0900 Masami Hiramatsu wrote: > BTW, I found another bug in bootconfig error handling. > Steve, did you already pick this series? If not yet, I will update the seires > to add that fix. No, I was about to pull it in today. I'll wait for your new series. Thanks!

Re: violating function pointer signature

2020-11-18 Thread Steven Rostedt
On Wed, 18 Nov 2020 14:21:36 +0100 Peter Zijlstra wrote: > I think that as long as the function is completely empty (it never > touches any of the arguments) this should work in practise. > > That is: > > void tp_nop_func(void) { } My original version (the OP of this thread) had this:

[PATCH net-next v3 5/6] net/x25: fix restart request/confirm handling

2020-11-18 Thread Martin Schiller
We have to take the actual link state into account to handle restart requests/confirms well. Also, the T20 timer needs to be stopped, if the link is terminated. Signed-off-by: Martin Schiller --- net/x25/x25_link.c | 45 + 1 file changed, 37

Re: [PATCH RESEND v2 0/3] condition EAS enablement on FI support

2020-11-18 Thread Peter Zijlstra
On Wed, Nov 18, 2020 at 11:42:34AM +, Ionela Voinescu wrote: > Hi guys, > > On Tuesday 27 Oct 2020 at 18:07:10 (+), Ionela Voinescu wrote: > > Given the maturity gained by cpufreq-based Frequency Invariance (FI) > > support following the patches at [1], this series conditions Energy > >

[PATCH net-next v3 6/6] net/x25: remove x25_kill_by_device()

2020-11-18 Thread Martin Schiller
Remove unnecessary function x25_kill_by_device(). Replace the call to x25_kill_by_device() by x25_kill_by_neigh(). Therefore, also remove the call to x25_clear_forward_by_dev() in x25_route_device_down(), as this is already called by x25_kill_by_neigh(). Signed-off-by: Martin Schiller ---

[PATCH net-next v3 4/6] net/lapb: fix t1 timer handling for DCE

2020-11-18 Thread Martin Schiller
fix t1 timer handling for DCE in LAPB_STATE_0: o DTE interface changes immediately to LAPB_STATE_1 and start sending SABM(E). o DCE interface sends N2-times DM and changes to LAPB_STATE_1 afterwards if there is no response in the meantime. Signed-off-by: Martin Schiller ---

[PATCH net-next v3 3/6] net/lapb: handle carrier loss correctly

2020-11-18 Thread Martin Schiller
In case of carrier loss, clear all queues, enter state LABB_STATE_0 and stop all timers. By setting rc = LAPB_NOTCONNECTED, the upper layer is informed about the disconnect. Signed-off-by: Martin Schiller --- net/lapb/lapb_iface.c | 12 1 file changed, 12 insertions(+) diff --git

[PATCH net-next v3 2/6] net/lapb: fix lapb_connect_request() for DCE

2020-11-18 Thread Martin Schiller
For a DTE interface we should change to state LAPB_STATE_1 and start sending SABM(E). But for DCE interfaces, we simply should start the timer t1. Signed-off-by: Martin Schiller --- net/lapb/lapb_iface.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git

[PATCH net-next v3 1/6] net/x25: handle additional netdev events

2020-11-18 Thread Martin Schiller
Add / remove x25_link_device by NETDEV_REGISTER/UNREGISTER and also by NETDEV_POST_TYPE_CHANGE/NETDEV_PRE_TYPE_CHANGE. This change is needed so that the x25_neigh struct for an interface is already created when it shows up and is kept independently if the interface goes UP or DOWN. This is used

Re: violating function pointer signature

2020-11-18 Thread Florian Weimer
* Peter Zijlstra: > I think that as long as the function is completely empty (it never > touches any of the arguments) this should work in practise. > > That is: > > void tp_nop_func(void) { } > > can be used as an argument to any function pointer that has a void > return. In fact, I already do

[PATCH net-next v3 0/6] net/x25: netdev event handling

2020-11-18 Thread Martin Schiller
--- Changes to v2: o restructure complete patch-set o keep netdev event handling in layer3 (X.25) o add patch to fix lapb_connect_request() for DCE o add patch to handle carrier loss correctly in lapb o drop patch for x25_neighbour param handling this may need fixes/cleanup and will be

[PATCH] pwm: core: Use octal permission

2020-11-18 Thread Soham Biswas
Permission bits are easier readable in octal than with using the symbolic names. Fixes the following warning generated by checkpatch: drivers/pwm/core.c:1341: WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'. +debugfs_create_file("pwm", S_IFREG

[PATCH v5 7/7] ARM: dts: rockchip: enable hdmi_sound and i2s0 for rk3066a-mk808

2020-11-18 Thread Johan Jonker
Make some noise with mk808. Enable the hdmi_sound node and add i2s0 as sound source for hdmi. Signed-off-by: Johan Jonker --- arch/arm/boot/dts/rk3066a-mk808.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/rk3066a-mk808.dts

[PATCH v5 6/7] ARM: dts: rockchip: add hdmi-sound node to rk3066a.dtsi

2020-11-18 Thread Johan Jonker
Add hdmi-sound node to rk3066a.dtsi, so that it can be reused by boards with HDMI support. Signed-off-by: Johan Jonker --- arch/arm/boot/dts/rk3066a.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/rk3066a.dtsi b/arch/arm/boot/dts/rk3066a.dtsi index

[PATCH v5 3/7] dt-bindings: display: add #sound-dai-cells property to rockchip rk3066 hdmi

2020-11-18 Thread Johan Jonker
'#sound-dai-cells' is required to properly interpret the list of DAI specified in the 'sound-dai' property. Add it to rockchip,rk3066-hdmi.yaml to document that the rk3066 HDMI TX also can be used to transmit some audio. Signed-off-by: Johan Jonker ---

[PATCH v5 5/7] ARM: dts: rockchip: rk3066a: add #sound-dai-cells to hdmi node

2020-11-18 Thread Johan Jonker
'#sound-dai-cells' is required to properly interpret the list of DAI specified in the 'sound-dai' property, so add them to the 'hdmi' node for 'rk3066a.dtsi'. Signed-off-by: Johan Jonker --- arch/arm/boot/dts/rk3066a.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v5 4/7] drm: rockchip: add sound support to rk3066 hdmi driver

2020-11-18 Thread Johan Jonker
From: Zheng Yang Add sound support to the rk3066 HDMI driver. The I2S input of the HDMI TX allows transmission of DVD-Audio and decoded Dolby Digital to A/V Receivers and high-end displays. The interface supports 2 to 8 channels audio up to 192 kHz. The HDMI TX supports variable word length of

[PATCH v5 2/7] clk: rockchip: fix i2s gate bits on rk3066 and rk3188

2020-11-18 Thread Johan Jonker
The Rockchip PX2/RK3066 uses these bits in CRU_CLKGATE7_CON: hclk_i2s_8ch_gate_en bit 4 (dtsi: i2s0) hclk_i2s0_2ch_gate_en bit 2 (dtsi: i2s1) hclk_i2s1_2ch_gate_en bit 3 (dtsi: i2s2) The Rockchip PX3/RK3188 uses this bit in CRU_CLKGATE7_CON: hclk_i2s_2ch_gate_en bit 2 (dtsi: i2s0) The bits

[PATCH v5 0/7] Enable rk3066a HDMI sound

2020-11-18 Thread Johan Jonker
First fix some legacy things in clk-rk3188.c that was never updated, because probably nobody used rk3066a I2S before in the mainline kernel. Update the rk3066a HDMI documents with a #sound-dai-cells property. Include the code for sound in the HDMI driver. Add a simple-sound-card compatible node to

[PATCH v5 1/7] clk: rockchip: add CLK_SET_RATE_PARENT to sclk for rk3066a i2s and uart clocks

2020-11-18 Thread Johan Jonker
Add CLK_SET_RATE_PARENT to sclk for rk3066a i2s and uart clocks, so that the parent COMPOSITE_FRACMUX and COMPOSITE_NOMUX also update. Signed-off-by: Johan Jonker --- drivers/clk/rockchip/clk-rk3188.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff

hi

2020-11-18 Thread Jessica Vail
Hi dear, I'm Jessica Vail, from the United States,please i wish to have a communication with you. I wait for your answer. Jessica Vail.

Re: [PATCH v3] lockdep: Allow tuning tracing capacity constants.

2020-11-18 Thread Tetsuo Handa
Peter, do you have a plan to make this problem actionable? On 2020/10/18 22:02, Tetsuo Handa wrote: > Peter, what do you think? Can we apply this patch? > > A potential for-now workaround for syzkaller would be to allow syzkaller > not to encounter the BUG: message (by masking BUG: message on

Re: [PATCH net-next v2 5/6] net/lapb: support netdev events

2020-11-18 Thread Martin Schiller
On 2020-11-18 14:46, Xie He wrote: On Wed, Nov 18, 2020 at 5:03 AM Xie He wrote: On Wed, Nov 18, 2020 at 12:49 AM Martin Schiller wrote: > > I also have a patch here that implements an "on demand" link feature, > which we used for ISDN dialing connections. > As ISDN is de facto dead, this

Re: [PATCH][next] drm/selftests/test-drm_dp_mst_helper: fix memory leak allocated to 'out'

2020-11-18 Thread Lee Jones
On Wed, 18 Nov 2020, Colin King wrote: > From: Colin Ian King > > Currently when txmsg fails to allocate then there is a leak on 'out'. Fix > this by setting result to false and exiting via the clean up exit path. > Note since txmsg is NULL at this point, the kfree of txmsg is a no-op. > >

Re: [RFC PATCH V2] acpi/irq: Add stacked IRQ domain support to PCI interrupt link

2020-11-18 Thread Rafael J. Wysocki
On Wed, Nov 18, 2020 at 2:46 PM Ard Biesheuvel wrote: > > On Tue, 17 Nov 2020 at 19:57, Bjorn Helgaas wrote: > > > > Nit: please don't just make up random styles for the subject. Run > > "git log --oneline" on the file and/or the directory and try to follow > > the existing convention. Using

[PATCH] habanalabs: print CS type when it is stuck

2020-11-18 Thread Oded Gabbay
We have several types of command submissions and the user wants to know which type of command submission has not finished in time when that event occurs. This is very helpful for debug. Signed-off-by: Oded Gabbay --- .../habanalabs/common/command_submission.c| 28 +-- 1 file

[PATCH] habanalabs: mmu map wrapper for sizes larger than a page

2020-11-18 Thread Oded Gabbay
From: Ofir Bitton We introduce a new wrapper which allows us to mmu map any size to any host va_range available. In addition we remove duplicated code from various places in driver and using this new wrapper instead. This wrapper supports mapping only contiguous physical memory blocks and will

[PATCH] habanalabs: fetch pll frequency from firmware

2020-11-18 Thread Oded Gabbay
From: Alon Mizrahi Once firmware security is enabled, driver must fetch pll frequencies through the firmware message interface instead of reading the registers directly. Signed-off-by: Alon Mizrahi Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay ---

Re: [PATCH v2] pwm: core: Use octal permission

2020-11-18 Thread Lee Jones
On Wed, 18 Nov 2020, Soham Biswas wrote: > Sure will do that. Sorry for the inconvenience, I am a bit new to the > process of emailing patches. Should I mark the next patch as v3? Make sure the text you are quoting does above your reply. This is called top-posting and is frowned upon. Yes,

Re: [mm/gup] 47e29d32af: phoronix-test-suite.npb.FT.A.total_mop_s -45.0% regression

2020-11-18 Thread Jan Kara
On Mon 16-11-20 19:35:31, John Hubbard wrote: > > On 11/16/20 6:48 PM, kernel test robot wrote: > > > > Greeting, > > > > FYI, we noticed a -45.0% regression of > > phoronix-test-suite.npb.FT.A.total_mop_s due to commit: > > > > That's a huge slowdown... > > > > > commit:

Re: [PATCH] mmc: sdhci-of-arasan: Add pinctrl support to the driver

2020-11-18 Thread Michal Simek
On 18. 11. 20 7:21, Manish Narani wrote: > Driver should be able to handle optional pinctrl setting. > > Signed-off-by: Michal Simek > Signed-off-by: Manish Narani > --- > drivers/mmc/host/sdhci-of-arasan.c | 24 > 1 file changed, 24 insertions(+) > > diff --git

[PATCH] fail_function: remove a redundant mutex unlock

2020-11-18 Thread Masami Hiramatsu
From: Luo Meng Fix a mutex_unlock() issue where before copy_from_user() is not called mutex_locked. Fixes: 4b1a29a7f542 ("error-injection: Support fault injection framework") Reported-by: Hulk Robot Acked-by: Masami Hiramatsu Signed-off-by: Luo Meng Signed-off-by: Masami Hiramatsu --- 0

[PATCH][next] drm/selftests/test-drm_dp_mst_helper: fix memory leak allocated to 'out'

2020-11-18 Thread Colin King
From: Colin Ian King Currently when txmsg fails to allocate then there is a leak on 'out'. Fix this by setting result to false and exiting via the clean up exit path. Note since txmsg is NULL at this point, the kfree of txmsg is a no-op. Addresses-Coverity: ("Resource leak") Fixes: 09234b88ef55

Re: [PATCH v2] pwm: core: Use octal permission

2020-11-18 Thread Uwe Kleine-König
On Wed, Nov 18, 2020 at 07:11:35PM +0530, Soham Biswas wrote: > Sure will do that. Sorry for the inconvenience, I am a bit new to the > process of emailing patches. Should I mark the next patch as v3? Yes, just pass -v3 to git-format-patch or git-send-email. Best regards Uwe -- Pengutronix

Re: [PATCH 0/5] context_tracking: Flatter archs not using exception_enter/exit() v3

2020-11-18 Thread Frederic Weisbecker
On Wed, Nov 18, 2020 at 08:39:47AM +0100, Peter Zijlstra wrote: > On Tue, Nov 17, 2020 at 04:16:32PM +0100, Frederic Weisbecker wrote: > > Frederic Weisbecker (5): > > context_tracking: Introduce HAVE_CONTEXT_TRACKING_OFFSTACK > > context_tracking: Don't implement

Re: [PATCH net-next v2 5/6] net/lapb: support netdev events

2020-11-18 Thread Xie He
On Wed, Nov 18, 2020 at 5:03 AM Xie He wrote: > > On Wed, Nov 18, 2020 at 12:49 AM Martin Schiller wrote: > > > > I also have a patch here that implements an "on demand" link feature, > > which we used for ISDN dialing connections. > > As ISDN is de facto dead, this is not relevant anymore. But

Re: [RFC PATCH V2] acpi/irq: Add stacked IRQ domain support to PCI interrupt link

2020-11-18 Thread Ard Biesheuvel
On Tue, 17 Nov 2020 at 19:57, Bjorn Helgaas wrote: > > Nit: please don't just make up random styles for the subject. Run > "git log --oneline" on the file and/or the directory and try to follow > the existing convention. Using random styles adds noise to the > system. > > On Tue, Nov 17, 2020

Re: [PATCH 4.19 031/101] ALSA: hda: Reinstate runtime_allow() for all hda controllers

2020-11-18 Thread Sasha Levin
On Wed, Nov 18, 2020 at 11:43:16AM +0100, Pavel Machek wrote: Hi! From: Kai-Heng Feng [ Upstream commit 9fc149c3bce7bdbb94948a8e6bd025e3b3538603 ] The broken jack detection should be fixed by commit a6e7d0a4bdb0 ("ALSA: hda: fix jack detection with Realtek codecs when in D3"), let's try

Re: [PATCH net-next V5] net: Variable SLAAC: SLAAC with prefixes of arbitrary length in PIO

2020-11-18 Thread Dmytro Shytyi
Hello, On Tue, 17 Nov 2020 21:43:48 +0100 Jakub Kicinski wrote > On Fri, 13 Nov 2020 20:36:58 +0100 Dmytro Shytyi wrote: > > Variable SLAAC: SLAAC with prefixes of arbitrary length in PIO (randomly > > generated hostID or stable privacy + privacy extensions). > > The main

Re: [PATCH v2] pwm: core: Use octal permission

2020-11-18 Thread Soham Biswas
Sure will do that. Sorry for the inconvenience, I am a bit new to the process of emailing patches. Should I mark the next patch as v3? On Wed, 18 Nov 2020 at 18:13, Uwe Kleine-König wrote: > > [added "v2" to the subject, would have been better if you had already > done that. I don't know if/how

Re: [PATCH v5 7/8] [DNI] arm64: dts: renesas: salvator-x-max9286: Specify channel amplitude

2020-11-18 Thread Kieran Bingham
Hi Jacopo, On 16/11/2020 13:53, Jacopo Mondi wrote: > Use the newly introduced 'maxim,initial-reverse-channel-mV' > property to specify the initial reverse channel amplitude when > the remote serializers are pre-programmed with noise immunity threshold > enabled. > > Signed-off-by: Jacopo Mondi

Re: possible deadlock in _destroy_id

2020-11-18 Thread Jason Gunthorpe
On Wed, Nov 18, 2020 at 03:10:21AM -0800, syzbot wrote: > HEAD commit:20529233 Add linux-next specific files for 20201118 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=13093cf250 > kernel config: https://syzkaller.appspot.com

Re: [PATCH] fail_function: remove a redundant mutex unlock

2020-11-18 Thread Masami Hiramatsu
Hi, On Tue, 17 Nov 2020 20:08:08 -0800 Alexei Starovoitov wrote: > On Wed, Nov 11, 2020 at 1:31 AM Masami Hiramatsu wrote: > > > > Hi Luo, > > > > On Tue, 10 Nov 2020 16:42:45 +0800 > > Luo Meng wrote: > > > > > Fix a mutex_unlock() issue where before copy_from_user() is > > > not called

[PATCH][next] scsi: lpfc: remove dead code on second !ndlp check

2020-11-18 Thread Colin King
From: Colin Ian King Currently there is a null check on the pointer ndlp that exits via error path issue_ct_rsp_exit followed by another null check on the same pointer that is almost identical to the previous null check stanza and yet can never can be reached because the previous check exited

Re: [PATCH v3 1/3] tools/bootconfig: Fix to check the write failure correctly

2020-11-18 Thread Masami Hiramatsu
On Tue, 17 Nov 2020 20:10:10 +0800 Chen Yu wrote: > On Tue, Nov 17, 2020 at 5:53 PM Masami Hiramatsu wrote: > > > > Fix to check the write(2) failure including partial write > > correctly and try to rollback the partial write, because > > if there is no BOOTCONFIG_MAGIC string, we can not

Re: [RFC PATCH v4] sched/fair: select idle cpu from idle cpumask for task wakeup

2020-11-18 Thread Vincent Guittot
On Wed, 18 Nov 2020 at 04:48, Aubrey Li wrote: > > From: Aubrey Li > > Add idle cpumask to track idle cpus in sched domain. When a CPU > enters idle, if the idle driver indicates to stop tick, this CPU > is set in the idle cpumask to be a wakeup target. And if the CPU > is not in idle, the CPU

Re: [RFC PATCH V2] acpi/irq: Add stacked IRQ domain support to PCI interrupt link

2020-11-18 Thread Chen Baozi
Hi Marc, > On Nov 18, 2020, at 5:27 PM, Marc Zyngier wrote: > > Hi Chen, > > On top of Bjorn's comments: > > On 2020-11-17 13:42, Chen Baozi wrote: >> >> --- >> drivers/acpi/irq.c | 22 +- >> drivers/acpi/pci_irq.c | 6 -- >> drivers/acpi/pci_link.c |

Re: [PATCH v5 0/8] media: i2c: Add RDACM21 camera module

2020-11-18 Thread Kieran Bingham
Hi Jacopo, On 16/11/2020 13:52, Jacopo Mondi wrote: > Hello, >this v5 mostly changes how the rdacm21 driver handles writes to the > OV490 chip by handling the 'high' part of the sensor register through an > helper function as suggested by Kieran and Laurent. > > The diff is available at: >

Re: [PATCH] sched: Fix data-race in wakeup

2020-11-18 Thread Marco Elver
On Tue, Nov 17, 2020 at 10:29AM +0100, Peter Zijlstra wrote: [...] > > Now the million dollar question is why KCSAN hasn't run into this. Hrmph. > > kernel/sched/Makefile:KCSAN_SANITIZE := n > > might have something to do with that, I suppose. For the record, I tried to reproduce this data

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