[PATCH v6 10/16] spi: dw: Move Non-DMA code to the DW PCIe-SPI driver

2020-05-29 Thread Serge Semin
This is a preparation patch before adding the DW DMA support into the DW SPI MMIO driver. We need to unpin the Non-DMA-specific code from the intended to be generic DW APB SSI DMA code. This isn't that hard, since the most part of the spi-dw-mid.c driver in fact implements a generic DMA interface

[PATCH v6 09/16] spi: dw: Add core suffix to the DW APB SSI core source file

2020-05-29 Thread Serge Semin
Generic DMA support is going to be part of the DW APB SSI core object. In order to preserve the kernel loadable module name as spi-dw.ko, let's add the "-core" suffix to the object with generic DW APB SSI code and build it into the target spi-dw.ko driver. Signed-off-by: Serge Semin

[PATCH v6 01/16] spi: dw: Set xfer effective_speed_hz

2020-05-29 Thread Serge Semin
Seeing DW APB SSI controller doesn't support setting the exactly requested SPI bus frequency, but only a rounded frequency determined by means of the odd-numbered half-worded reference clock divider, it would be good to tune the SPI core up and initialize the current transfer effective_speed_hz.

[PATCH v6 04/16] spi: dw: Add SPI Tx-done wait method to DMA-based transfer

2020-05-29 Thread Serge Semin
Since DMA transfers are performed asynchronously with actual SPI bus transfers, then even if DMA transactions are finished it doesn't mean all data is actually pushed to the SPI bus. Some data might still be in the controller FIFO. This is specifically true for Tx-only transfers. In this case if

[PATCH v6 07/16] spi: dw: Use DMA max burst to set the request thresholds

2020-05-29 Thread Serge Semin
Each channel of DMA controller may have a limited length of burst transaction (number of IO operations performed at ones in a single DMA client request). This parameter can be used to setup the most optimal DMA Tx/Rx data level values. In order to avoid the Tx buffer overrun we can set the DMA Tx

[PATCH v6 03/16] spi: dw: Locally wait for the DMA transfers completion

2020-05-29 Thread Serge Semin
In general each DMA-based SPI transfer can be split up into two stages: DMA data transmission/reception and SPI-bus transmission/reception. DMA asynchronous transactions completion can be tracked by means of the DMA async Tx-descriptor completion callback. But that callback being called indicates

Re: [PATCH 3/4] pinctrl: bcm2835: Match BCM7211 compatible string

2020-05-29 Thread Stefan Wahren
Hi Florian, Am 28.05.20 um 21:21 schrieb Florian Fainelli: > The BCM7211 SoC uses the same pinconf_ops as the ones defined for the > BCM2711 SoC, match the compatible string and use the correct set of > options. > > Signed-off-by: Florian Fainelli > --- > drivers/pinctrl/bcm/pinctrl-bcm2835.c |

Re: [PATCH v2 0/2] regulator_sync_state() support

2020-05-29 Thread Mark Brown
On Thu, May 28, 2020 at 12:06:08PM -0700, Saravana Kannan wrote: > The simplified explanation of the problem is, for regulators left on by > the bootloader, we want to keep them on until all the consumers are > probed. This is because we need to protect consumer-A from turning off a > shared

Re: [PATCH 00/10] iommu/amd: Updates and Cleanups

2020-05-29 Thread Joerg Roedel
On Fri, May 29, 2020 at 07:15:13PM +0700, Suravee Suthikulpanit wrote: > Thank you for cleaning up. > > Reviewed-by: Suravee Suthikulpanit Thanks for you review, Suravee. Patches are now applied.

RE: clean up kernel_{read,write} & friends v2

2020-05-29 Thread David Laight
From: Casey Schaufler > Sent: 28 May 2020 22:21 > It's true, nobody uses a TTY33 anymore. Those of us who have done so > understand how "{" is preferable to "BEGIN" and why tabs are better than > multiple spaces. A narrow "terminal" requires less neck and mouse movement. > Any width limit is

Re: [PATCH 12/13] sysctl: add helper to register empty subdir

2020-05-29 Thread Eric W. Biederman
Luis Chamberlain writes: > The way to create a subdirectory from the base set of directories > is a bit obscure, so provide a helper which makes this clear, and > also helps remove boiler plate code required to do this work. I agreee calling: register_sysctl("fs/binfmt_misc",

[PATCH v3 1/6] hwmon: pmbus: adm1266: add support

2020-05-29 Thread alexandru.tachici
From: Alexandru Tachici Add pmbus probing driver for the adm1266 Cascadable Super Sequencer with Margin Control and Fault Recording. Driver is using the pmbus_core, creating sysfs files under hwmon for inputs: vh1->vh4 and vp1->vp13. Signed-off-by: Alexandru Tachici ---

[PATCH v3 0/6] hwmon: pmbus: adm1266: add support

2020-05-29 Thread alexandru.tachici
From: Alexandru Tachici Add PMBus probing driver for the adm1266 Cascadable Super Sequencer with Margin Control and Fault Recording. Driver is using the pmbus_core, creating sysfs files under hwmon for inputs: vh1->vh4 and vp1->vp13. 1. Add PMBus probing driver for inputs vh1->vh4 and

[PATCH v3 5/6] hwmon: pmbus: adm1266: read blackbox

2020-05-29 Thread alexandru.tachici
From: Alexandru Tachici Use the nvmem kernel api to expose the black box chip functionality to userspace. Signed-off-by: Alexandru Tachici --- drivers/hwmon/pmbus/adm1266.c | 160 ++ 1 file changed, 160 insertions(+) diff --git a/drivers/hwmon/pmbus/adm1266.c

Re: [PATCH] KVM: x86: Initialize tdp_level during vCPU creation

2020-05-29 Thread Sean Christopherson
On Fri, May 29, 2020 at 09:46:13AM +0200, Vitaly Kuznetsov wrote: > Sean Christopherson writes: > > > I'll looking into writing a script to run all selftests with a single > > command, unless someone already has one laying around? > > Is 'make run_tests' in tools/testing/selftests/kvm/ what

[PATCH v3 2/6] hwmon: (pmbus/core) Add Block WR

2020-05-29 Thread alexandru.tachici
From: Alexandru Tachici PmBus devices support Block Write-Block Read Process Call described in SMBus specification v 2.0 with the exception that Block writes and reads are permitted to have up 255 data bytes instead of max 32 bytes (SMBus). This patch adds Block WR process call support for

[PATCH v3 6/6] dt-bindings: hwmon: Add bindings for ADM1266

2020-05-29 Thread alexandru.tachici
From: Alexandru Tachici Add bindings for the Analog Devices ADM1266 sequencer. Signed-off-by: Alexandru Tachici --- .../bindings/hwmon/adi,adm1266.yaml | 56 +++ 1 file changed, 56 insertions(+) create mode 100644

[PATCH v3 4/6] hwmon: pmbus: adm1266: add debugfs attr for states

2020-05-29 Thread alexandru.tachici
From: Alexandru Tachici Add debugfs files for go_command and read_state. Signed-off-by: Alexandru Tachici --- drivers/hwmon/pmbus/adm1266.c | 47 +++ 1 file changed, 47 insertions(+) diff --git a/drivers/hwmon/pmbus/adm1266.c b/drivers/hwmon/pmbus/adm1266.c

[PATCH v3 3/6] hwmon: pmbus: adm1266: Add support for GPIOs

2020-05-29 Thread alexandru.tachici
From: Alexandru Tachici Adm1266 exposes 9 GPIOs and 16 PDIOs which are currently read-only. They are controlled by the internal sequencing engine. This patch makes adm1266 driver expose GPIOs and PDIOs to user-space using GPIO provider kernel api. Signed-off-by: Alexandru Tachici ---

Re: [PATCH] btrfs: Replace kmalloc with kzalloc in the error message

2020-05-29 Thread David Sterba
On Thu, May 28, 2020 at 07:03:45PM -0700, Joe Perches wrote: > On Fri, 2020-05-29 at 09:00 +0800, Yi Wang wrote: > > From: Liao Pingfang > > > > Use kzalloc instead of kmalloc in the error message according to > > the previous kzalloc() call. > [] > > diff --git a/fs/btrfs/check-integrity.c

Re: [PATCH] ASoC: mediatek: mt6358: support DMIC one-wire mode

2020-05-29 Thread Mark Brown
On Fri, May 29, 2020 at 07:22:43PM +0800, Tzung-Bi Shih wrote: > On Fri, May 29, 2020 at 7:09 PM Mark Brown wrote: > > What is DMIC one wire mode? This doesn't sound like something I'd > > expect to vary at runtime. > It means: 1 PDM data wire carries 2 channel data (rising edge for left > and

[PATCH v2 0/3] media: rockchip: Introduce driver for the camera interface on PX30

2020-05-29 Thread Maxime Chevallier
Hello everyone, Here's a V2 of the series adding very basic support for the camera interface on the Rockchip PX30 SoC. Thanks to everyone that commented on the first series, your reviews were very helpful :) This Camera Interface is also supported on other Rockchip SoC such as the RK1808,

Re: [RFC][PATCH 3/7] smp: Move irq_work_run() out of flush_smp_call_function_queue()

2020-05-29 Thread Frederic Weisbecker
On Tue, May 26, 2020 at 06:11:00PM +0200, Peter Zijlstra wrote: > This ensures flush_smp_call_function_queue() is strictly about > call_single_queue. > > Signed-off-by: Peter Zijlstra (Intel) > --- > kernel/smp.c | 17 + > 1 file changed, 9 insertions(+), 8 deletions(-) > >

[PATCH v2 3/3] arm64: dts: rockchip: Add the camera interface description of the PX30

2020-05-29 Thread Maxime Chevallier
The PX30 has a camera interface, supporting CSI2, BT656 and Parallel modes. Add a DT description for this interface. Signed-off-by: Maxime Chevallier --- Changes since V1: - Updated the clock and reset names - Reordered the properties to have clocks and resets bundled together

[PATCH v2 2/3] media: rockchip: Introduce driver for Rockhip's camera interface

2020-05-29 Thread Maxime Chevallier
Introduce a driver for the camera interface on some Rockchip platforms. This controller supports CSI2, Parallel and BT656 interfaces, but for now only the parallel interface could be tested, hence it's the only one that's supported in the first version of this driver. This controller can be fond

[PATCH v2 1/3] media: dt-bindings: media: Document Rockchip CIF bindings

2020-05-29 Thread Maxime Chevallier
Add a documentation for the Rockchip Camera Interface controller binding. This controller can be found on platforms such as the PX30 or the RK3288, the PX30 being the only platform supported so far. Signed-off-by: Maxime Chevallier --- Changes since V1 - Updated the clock and reset names -

Re: [PATCHv3 2/2] spi: dw: add optional reset property

2020-05-29 Thread Mark Brown
On Wed, May 27, 2020 at 03:41:10PM -0500, Dinh Nguyen wrote: > Add optional reset property. This doesn't apply against current code, please check and resend. signature.asc Description: PGP signature

Re: [RFC][PATCH 4/7] smp: Optimize send_call_function_single_ipi()

2020-05-29 Thread Frederic Weisbecker
On Tue, May 26, 2020 at 06:11:01PM +0200, Peter Zijlstra wrote: > +void flush_smp_call_function_from_idle(void) > +{ > + unsigned long flags; > + > + if (llist_empty(this_cpu_ptr(_single_queue))) > + return; Now it seems weird that sched_ttwu_pending() didn't have that

Re: [PATCH v2 2/2] regulator: Add support for sync_state() callbacks

2020-05-29 Thread Mark Brown
On Thu, May 28, 2020 at 12:06:10PM -0700, Saravana Kannan wrote: > When a regulator is left on by the bootloader or anything else before > the kernel starts (let's call this a "boot on" regulator), we need to > keep it on till all the consumers of the regulator have probed. This is We we don't in

Re: [PATCH v4 06/36] mm: Introduce offset_in_thp

2020-05-29 Thread Matthew Wilcox
On Fri, May 22, 2020 at 08:15:17PM +0300, Kirill A. Shutemov wrote: > On Fri, May 15, 2020 at 06:16:26AM -0700, Matthew Wilcox wrote: > > +#define offset_in_thp(page, p) ((unsigned long)(p) & (thp_size(page) - > > 1)) > > Looks like thp_mask() would be handy here. It's not the only place we

Re: [PATCHv2] fpga: stratix10-soc: remove the pre-set reconfiguration condition

2020-05-29 Thread Richard Gong
Hi Moritz, Sorry for asking. When you get chance, can you review my version 2 patch submitted on 05/15/20? Regards, Richard On 5/15/20 9:35 AM, richard.g...@linux.intel.com wrote: From: Richard Gong The reconfiguration mode is pre-set by driver as the full reconfiguration. As a result,

Re: [PATCH 3/4] dt-bindings: timer: renesas,cmt: Document r8a7742 CMT support

2020-05-29 Thread Geert Uytterhoeven
Hi Prabhakar, On Wed, May 27, 2020 at 11:19 PM Lad Prabhakar wrote: > Document SoC specific compatible strings for r8a7742. No driver change > is needed as the fallback strings will activate the right code. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Marian-Cristian Rotariu >

Re: [PATCH 02/13] cdrom: use new sysctl subdir helper register_sysctl_subdir()

2020-05-29 Thread Eric W. Biederman
Luis Chamberlain writes: > This simplifies the code considerably. The following coccinelle With register_sysctl the code would read: cdrom_sysctl_header = register_sysctl("dev/cdrom", cdrom_table); Please go that direction. Thank you. Eric

[PATCH 1/2] regulator: extract voltage balancing code to the separate function

2020-05-29 Thread Marek Szyprowski
Move the coupled regulators voltage balancing code to the separate function and allow to call it from the custom regulator couplers. Signed-off-by: Marek Szyprowski --- drivers/regulator/core.c | 49 ++- include/linux/regulator/coupler.h | 8 + 2 files

[PATCH 0/2] Fix regulators coupling for Exynos5800

2020-05-29 Thread Marek Szyprowski
Hi! This patchset is another attempt to fix the regulator coupling on Exynos5800/5422 SoCs. Here are links to the previous attempts: https://lore.kernel.org/linux-samsung-soc/20191008101709.qVNy8eijBi0LynOteWFMnTg4GUwKG599n6OyYoX1Abs@z/

Re: [PATCH] hwmon:(adm1275) Enable adm1278 ADM1278_TEMP1_EN

2020-05-29 Thread Patrick Williams
On Thu, May 28, 2020 at 07:45:23PM +0530, Manikandan Elumalai wrote: Hi Manikandan, Adding the PMBus maintainers... > > The adm1278 temperature sysfs attribute need it for one of the our openbmc > platform . > This functionality is not enabled by default, so PMON_CONFIG needs to be >

[PATCH 2/2] soc: samsung: Add simple voltage coupler for Exynos5800

2020-05-29 Thread Marek Szyprowski
Add custom voltage regulator coupler for Exynos5800 SoCs, which require coupling between "vdd_arm" and "vdd_int" regulators. This coupler ensures that coupled regulators voltage balancing is done only when clients for each regulator (cpufreq for "vdd_arm" and devfreq for "vdd_int") apply their

Re: [PATCH 1/4] dt-bindings: thermal: rcar-thermal: Add device tree support for r8a7742

2020-05-29 Thread Geert Uytterhoeven
On Wed, May 27, 2020 at 11:19 PM Lad Prabhakar wrote: > Add thermal sensor support for r8a7742 SoC. The Renesas RZ/G1H > (r8a7742) thermal sensor module is identical to the R-Car Gen2 family. > > No driver change is needed due to the fallback compatible value > "renesas,rcar-gen2-thermal". > >

Re: [External] Re: [PATCH v5 0/8] Add MA USB Host driver

2020-05-29 Thread Pavel Machek
Hi! > MA USB protocol used by MA USB Host driver has been implemented in > accordance with MA USB Specification Release 1.0b. > >>> > >>> Is that a USB-released spec? > >> Correct, document is being maintained by USB IF and is publicly available. > >> However, I just noticed a typo,

[PATCH v2] hwmon:(adm1275) Enable adm1278 ADM1278_TEMP1_EN

2020-05-29 Thread Manikandan Elumalai
The adm1278 temperature sysfs attribute need it for one of the openbmc platform . This functionality is not enabled by default, so PMON_CONFIG needs to be modified in order to enable it. Signed-off-by : Manikandan Elumalai v2: - Add Signed-off-by. - Removed ADM1278_TEMP1_EN check.

Re: [PATCH 05/15] drm/panfrost: use spinlock instead of atomic

2020-05-29 Thread Steven Price
On 29/05/2020 13:35, Clément Péron wrote: Hi Robin, On Fri, 29 May 2020 at 14:20, Robin Murphy wrote: On 2020-05-10 17:55, Clément Péron wrote: Convert busy_count to a simple int protected by spinlock. A little more reasoning might be nice. I have follow the modification requested for

Re: [PATCH 01/13] sysctl: add new register_sysctl_subdir() helper

2020-05-29 Thread Eric W. Biederman
ebied...@xmission.com (Eric W. Biederman) writes: > Luis Chamberlain writes: > >> Often enough all we need to do is create a subdirectory so that >> we can stuff sysctls underneath it. However, *if* that directory >> was already created early on the boot sequence we really have no >> need to use

Re: [PATCH 07/15] drm/panfrost: use device_property_present to check for OPP

2020-05-29 Thread Clément Péron
Hi Steven, On Thu, 28 May 2020 at 15:22, Steven Price wrote: > > On 10/05/2020 17:55, Clément Péron wrote: > > Instead of expecting an error from dev_pm_opp_of_add_table() > > do a simple device_property_present() check. > > > > Signed-off-by: Clément Péron > > I'm not sure I understand why

Re: [PATCH 0/8] Convert the intel iommu driver to the dma-iommu api

2020-05-29 Thread Christoph Hellwig
On Thu, May 28, 2020 at 06:00:44PM -0600, Logan Gunthorpe wrote: > > This issue is most likely in the i915 driver and is most likely caused by > > the driver not respecting the return value of the dma_map_ops::map_sg > > function. You can see the driver ignoring the return value here: > >

Re: [PATCH 01/13] sysctl: add new register_sysctl_subdir() helper

2020-05-29 Thread Eric W. Biederman
Luis Chamberlain writes: > Often enough all we need to do is create a subdirectory so that > we can stuff sysctls underneath it. However, *if* that directory > was already created early on the boot sequence we really have no > need to use the full boiler plate code for it, we can just use >

Re: [PATCH 08/15] drm/panfrost: move devfreq_init()/fini() in device

2020-05-29 Thread Clément Péron
Hi Steven On Thu, 28 May 2020 at 15:22, Steven Price wrote: > > On 10/05/2020 17:55, Clément Péron wrote: > > Later we will introduce devfreq probing regulator if they > > are present. As regulator should be probe only one time we > > need to get this logic in the device_init(). > > > >

Re: [PATCH 10/15] drm/panfrost: add regulators to devfreq

2020-05-29 Thread Clément Péron
Hi Steven, On Thu, 28 May 2020 at 15:23, Steven Price wrote: > > On 10/05/2020 17:55, Clément Péron wrote: > > Some OPP tables specify voltage for each frequency. Devfreq can > > handle these regulators but they should be get only 1 time to avoid > > issue and know who is in charge. > > > > If

Re: [PATCH] irqchip/gic-v3-its: Don't try to move a disabled irq

2020-05-29 Thread Saidi, Ali
Hi Marc, > On May 29, 2020, at 3:33 AM, Marc Zyngier wrote: > > Hi Ali, > >> On 2020-05-29 02:55, Ali Saidi wrote: >> If an interrupt is disabled the ITS driver has sent a discard removing >> the DeviceID and EventID from the ITT. After this occurs it can't be >> moved to another collection

Re: Some -serious- BPF-related litmus tests

2020-05-29 Thread Peter Zijlstra
On Thu, May 28, 2020 at 10:14:21PM -0700, Andrii Nakryiko wrote: > There is another cluster of applications which are unnecessarily more > complicated just for the fact that there is no ordering between > correlated events that happen on different CPUs. Per-CPU buffers are > not well suited for

[PATCH] init: include nfs header files when CONFIG_ROOT_NFS is enabled

2020-05-29 Thread Anupam Aggarwal
Move inclusion of header files linux/nfs_fs.h, linux/nfs_fs_sb.h & linux/nfs_mount.h under config CONFIG_ROOT_NFS Signed-off-by: Anupam Aggarwal Signed-off-by: Vivek Trivedi Signed-off-by: Amit Sahrawat --- init/do_mounts.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [PATCH 11/15] drm/panfrost: set devfreq clock name

2020-05-29 Thread Clément Péron
Hi Steven, On Thu, 28 May 2020 at 15:23, Steven Price wrote: > > On 10/05/2020 17:55, Clément Péron wrote: > > Some SoCs have several clocks defined and the OPP core > > needs to know the exact name of the clk to use. > > > > Set the clock name to "core". > > > > Signed-off-by: Clément Péron >

[PATCH] dcache: use of d_time under required configs

2020-05-29 Thread Anupam Aggarwal
struct dentry{}->d_time is used when CONFIG_NFS_FS or CONFIG_VBOXSF_FS is on. Limit the d_time only when either of configs CONFIG_NFS_FS or CONFIG_VBOXSF_FS is enabled With this change size of "struct dentry" is reduced by 8-bytes on 64-bit system, while of 32-bit system size remains unchanged

[PATCH] sparc: remove unused header file nfs_fs.h

2020-05-29 Thread Anupam Aggarwal
Remove unused header file linux/nfs_fs.h Signed-off-by: Anupam Aggarwal Signed-off-by: Vivek Trivedi Signed-off-by: Amit Sahrawat --- arch/sparc/kernel/sys_sparc32.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/sparc/kernel/sys_sparc32.c b/arch/sparc/kernel/sys_sparc32.c index

Re: [PATCH 05/15] drm/panfrost: use spinlock instead of atomic

2020-05-29 Thread Clément Péron
Hi Robin, On Fri, 29 May 2020 at 14:20, Robin Murphy wrote: > > On 2020-05-10 17:55, Clément Péron wrote: > > Convert busy_count to a simple int protected by spinlock. > > A little more reasoning might be nice. I have follow the modification requested for lima devfreq and clearly don't have any

Re: system time goes weird in kvm guest after host suspend/resume

2020-05-29 Thread Miklos Szeredi
On Fri, May 29, 2020 at 2:31 PM Miklos Szeredi wrote: > > Can you please describe the setup of this test? > > > > - Host kernel version 5.5.16-100.fc30.x86_64 > > - Guest kernel version 75caf310d16c ("Merge branch 'akpm' (patches from Andrew)") > > - Is the revert done on the host or

[GIT PULL] irqchip updates for Linux 5.8

2020-05-29 Thread Marc Zyngier
Hi Thomas, Here is this merge window's crop of irqchip/irqdomain updates, a pretty quiet one (which nobody will complain about). On the menu this time, a handful of MIPS drivers, some welcome cleanups for irqdomain and irq_sim, the long overdue fixes for GICv3 ITS LPI balancing and managed MSIs,

Re: [PATCH 09/14] fs: don't change the address limit for ->write_iter in __kernel_write

2020-05-29 Thread Christoph Hellwig
On Thu, May 28, 2020 at 11:43:13AM -0700, Linus Torvalds wrote: > On Wed, May 27, 2020 at 10:41 PM Christoph Hellwig wrote: > > > > -ssize_t __kernel_write(struct file *file, const void *buf, size_t count, > > loff_t *pos) > > +ssize_t __kernel_write(struct file *file, const void *buf, size_t

Re: 28307d938f ("percpu: make pcpu_alloc() aware of current gfp .."): BUG: kernel reboot-without-warning in boot stage

2020-05-29 Thread Filipe Manana
On 29/05/20 08:16, kernel test robot wrote: > Greetings, > > 0day kernel testing robot got the below dmesg and the first bad commit is > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > > commit 28307d938fb2e4056ed4c982c06d1503d7719813 > Author: Filipe Manana

Re: system time goes weird in kvm guest after host suspend/resume

2020-05-29 Thread Miklos Szeredi
On Fri, May 29, 2020 at 2:21 PM Thomas Gleixner wrote: > > Miklos, > > Miklos Szeredi writes: > > On Fri, May 29, 2020 at 11:51 AM Miklos Szeredi wrote: > >> On Thu, May 28, 2020 at 10:43 PM Thomas Gleixner > >> wrote: > >> > > >> > Miklos Szeredi writes: > >> > > Bisected it to: > >> > > >

Re: [PATCH v3 0/3] driver core: Add device link related sysfs files

2020-05-29 Thread Greg Kroah-Hartman
On Thu, May 28, 2020 at 02:18:23PM -0700, Saravana Kannan wrote: > On Thu, May 21, 2020 at 12:18 PM Saravana Kannan wrote: > > > > With fw_devlink and with sync_state() callback features, there's a lot > > of device/device link related information that's not available in sysfs. > > > > Exposing

Re: [PATCH 4/4] net: remove kernel_setsockopt

2020-05-29 Thread 'Christoph Hellwig'
On Fri, May 29, 2020 at 12:27:12PM +, David Laight wrote: > From: Christoph Hellwig > > Sent: 29 May 2020 13:10 > > > > No users left. > > There is no point even proposing this until all the changes to remove > its use have made it at least as far into 'net-next' and probably 'net'. If you

[PATCH] x86/resctrl: fix a NULL vs IS_ERR() static checker warning

2020-05-29 Thread Dan Carpenter
The callers don't expect *d_cdp to be set to an error pointer, they only check for NULL. This leads to a static checker warning: arch/x86/kernel/cpu/resctrl/rdtgroup.c:2648 __init_one_rdt_domain() warn: 'd_cdp' could be an error pointer I don't think this will lead to a real life bug,

RE: [PATCH 4/4] net: remove kernel_setsockopt

2020-05-29 Thread David Laight
From: Christoph Hellwig > Sent: 29 May 2020 13:10 > > No users left. There is no point even proposing this until all the changes to remove its use have made it at least as far into 'net-next' and probably 'net'. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton

Re: clone3: allow creation of time namespace with offset

2020-05-29 Thread Michael Kerrisk (man-pages)
Hi Adrian, If there was a revision to this patch, I missed it. Is there still a plan to bring CLONE_NEWTIME to clone3()? Thanks, Michael On Tue, 17 Mar 2020 at 09:32, Adrian Reber wrote: > > This is an attempt to add time namespace support to clone3(). I am not > really sure which way

[PATCH RFT] ravb: Mask PHY mode to avoid inserting delays twice

2020-05-29 Thread Geert Uytterhoeven
Until recently, the Micrel KSZ9031 PHY driver ignored any PHY mode ("RGMII-*ID") settings, but used the hardware defaults, augmented by explicit configuration of individual skew values using the "*-skew-ps" DT properties. The lack of PHY mode support was compensated by the EtherAVB MAC driver,

Re: system time goes weird in kvm guest after host suspend/resume

2020-05-29 Thread Thomas Gleixner
Miklos, Miklos Szeredi writes: > On Fri, May 29, 2020 at 11:51 AM Miklos Szeredi wrote: >> On Thu, May 28, 2020 at 10:43 PM Thomas Gleixner wrote: >> > >> > Miklos Szeredi writes: >> > > Bisected it to: >> > > >> > > b95a8a27c300 ("x86/vdso: Use generic VDSO clock mode storage") >> > > >> > >

Re: [PATCH 05/15] drm/panfrost: use spinlock instead of atomic

2020-05-29 Thread Robin Murphy
On 2020-05-10 17:55, Clément Péron wrote: Convert busy_count to a simple int protected by spinlock. A little more reasoning might be nice. Signed-off-by: Clément Péron --- [...] diff --git a/drivers/gpu/drm/panfrost/panfrost_devfreq.h b/drivers/gpu/drm/panfrost/panfrost_devfreq.h index

Re: [PATCH v4 08/11] dmaengine: dw: Add dummy device_caps callback

2020-05-29 Thread Andy Shevchenko
On Fri, May 29, 2020 at 01:23:58AM +0300, Serge Semin wrote: > Since some DW DMA controllers (like one installed on Baikal-T1 SoC) may > have non-uniform DMA capabilities per device channels, let's add > the DW DMA specific device_caps callback to expose that specifics up to > the DMA consumer.

Re: [PATCH v4 07/11] dmaengine: dw: Set DMA device max segment size parameter

2020-05-29 Thread Andy Shevchenko
On Fri, May 29, 2020 at 01:23:57AM +0300, Serge Semin wrote: > Maximum block size DW DMAC configuration corresponds to the max segment > size DMA parameter in the DMA core subsystem notation. Lets set it with a > value specific to the probed DW DMA controller. It shall help the DMA > clients to

[PATCH] net: octeon: mgmt: Repair filling of RX ring

2020-05-29 Thread Alexander A Sverdlin
From: Alexander Sverdlin The removal of mips_swiotlb_ops exposed a problem in octeon_mgmt Ethernet driver. mips_swiotlb_ops had an mb() after most of the operations and the removal of the ops had broken the receive functionality of the driver. My code inspection has shown no other places except

linux-next: Fixes tag needs some work in the mmc tree

2020-05-29 Thread Stephen Rothwell
Hi all, In commit 7b16993c2bb2 ("mmc: sdhci-msm: Clear tuning done flag while hs400 tuning") Fixes tag Fixes: ff06ce4 ("mmc: sdhci-msm: Add HS400 platform support") has these problem(s): - SHA1 should be at least 12 digits long Can be fixed by setting core.abbrev to 12 (or more) or

[PATCH 1/2] staging: wfx: fix AC priority

2020-05-29 Thread Jerome Pouiller
From: Jérôme Pouiller In order to work properly all the queues of the device must be filled (the device chooses itself the queue to use depending of AC parameters and other things). It is the job of wfx_tx_queues_get_skb() to choose which queue must be filled. However, the sorting algorithm was

Re: [PATCH 01/13] sysctl: add new register_sysctl_subdir() helper

2020-05-29 Thread Luis Chamberlain
On Fri, May 29, 2020 at 11:13:21AM +0300, Jani Nikula wrote: > On Fri, 29 May 2020, Luis Chamberlain wrote: > > Often enough all we need to do is create a subdirectory so that > > we can stuff sysctls underneath it. However, *if* that directory > > was already created early on the boot sequence

[PATCH 2/2] staging: wfx: drop useless loop

2020-05-29 Thread Jerome Pouiller
From: Jérôme Pouiller It is guarantee that the loop will stop at first iteration. So drop the loop. Fixes: 6bf418c50f98a ("staging: wfx: change the way to choose frame to send") Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/queue.c | 19 --- 1 file changed, 8

Re: [PATCH 00/10] iommu/amd: Updates and Cleanups

2020-05-29 Thread Suravee Suthikulpanit
Joerg, On 5/27/2020 6:53 PM, Joerg Roedel wrote: Hi, here is a collection of patches that clean up a few things in the AMD IOMMU driver. Foremost, it moves all related files of the driver into a separate subdirectory. But the patches also remove usage of dev->archdata.iommu and clean up

Re: [PATCH 1/1] i2c: sh_mobile: eliminate a misreported warning

2020-05-29 Thread Wolfram Sang
On Wed, Apr 29, 2020 at 08:40:17PM +0800, Zhen Lei wrote: > The warning is caused by the branches "if (pd->pos == -1)" and > "if (pd->pos == 0)", because they appear after "real_pos = pd->pos - 2", > so the compiler doesn't known the value of real_pos is negative through > these two branches. > >

linux-next: Fixes tag needs some work in the bluetooth tree

2020-05-29 Thread Stephen Rothwell
Hi all, In commit feac90d756c0 ("Bluetooth: hci_qca: Fix suspend/resume functionality failure") Fixes tag Fixes: 41d5b25fed0 ("Bluetooth: hci_qca: add PM support") has these problem(s): - SHA1 should be at least 12 digits long Can be fixed by setting core.abbrev to 12 (or more) or

[PATCH v2] staging: wfx: fix coherency of hif_scan() prototype

2020-05-29 Thread Jerome Pouiller
From: Jérôme Pouiller The function hif_scan() return the timeout for the completion of the scan request. It is the only function from hif_tx.c that return another thing than just an error code. This behavior is not coherent with the rest of file. Worse, if value returned is positive, the caller

Re: [PATCH] i2c: sh_mobile: Fix compilation warning

2020-05-29 Thread Wolfram Sang
On Thu, May 09, 2019 at 10:13:46AM +0530, Viresh Kumar wrote: > This currently generates a warning: > > drivers/i2c/busses/i2c-sh_mobile.c: In function 'sh_mobile_i2c_isr': > drivers/i2c/busses/i2c-sh_mobile.c:399:26: warning: 'data' may be used > uninitialized in this function

Re: [PATCH v4 05/11] dmaengine: Introduce DMA-device device_caps callback

2020-05-29 Thread Andy Shevchenko
On Fri, May 29, 2020 at 01:23:55AM +0300, Serge Semin wrote: > There are DMA devices (like ours version of Synopsys DW DMAC) which have > DMA capabilities non-uniformly redistributed amongst the device channels. > In order to provide a way of exposing the channel-specific parameters to > the DMA

linux-next: Signed-off-by missing for commit in the ext4 tree

2020-05-29 Thread Stephen Rothwell
Hi all, Commit 560d6b3da024 ("ext4: mballoc: fix possible NULL ptr & remove BUG_ONs from DOUBLE_CHECK") is missing a Signed-off-by from its author. -- Cheers, Stephen Rothwell pgpeSVjh4PwUM.pgp Description: OpenPGP digital signature

Re: [PATCH private 1/3] ARC: allow to overwrite default mcpu compiler flag

2020-05-29 Thread Eugeniy Paltsev
Oooops, this one is duplicate and should be dropped. --- Eugeniy Paltsev From: Eugeniy Paltsev Sent: Friday, May 29, 2020 14:55 To: linux-snps-...@lists.infradead.org; Vineet Gupta Cc: linux-kernel@vger.kernel.org; Alexey Brodkin; Eugeniy Paltsev

Re: [PATCH v30 09/20] mm: Introduce vm_ops->may_mprotect()

2020-05-29 Thread Borislav Petkov
On Fri, May 15, 2020 at 03:43:59AM +0300, Jarkko Sakkinen wrote: > From: Sean Christopherson > > Add vm_ops()->may_mprotect() to check additional constrains set by a "constraints" > subsystem for a mprotect() call. > > Signed-off-by: Sean Christopherson > Acked-by: Jethro Beekman >

[PATCH 1/4] sctp: add sctp_sock_set_nodelay

2020-05-29 Thread Christoph Hellwig
Add a helper to directly set the SCTP_NODELAY sockopt from kernel space without going through a fake uaccess. Signed-off-by: Christoph Hellwig --- fs/dlm/lowcomms.c | 10 ++ include/net/sctp/sctp.h | 7 +++ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git

[PATCH 2/4] sctp: refactor sctp_setsockopt_bindx

2020-05-29 Thread Christoph Hellwig
Split out a sctp_setsockopt_bindx_kernel that takes a kernel pointer to the sockaddr and make sctp_setsockopt_bindx a small wrapper around it. This prepares for adding a new bind_add proto op. Signed-off-by: Christoph Hellwig --- net/sctp/socket.c | 61

[PATCH 4/4] net: remove kernel_setsockopt

2020-05-29 Thread Christoph Hellwig
No users left. Signed-off-by: Christoph Hellwig --- include/linux/net.h | 2 -- net/socket.c| 31 --- 2 files changed, 33 deletions(-) diff --git a/include/linux/net.h b/include/linux/net.h index 74ef5d7315f70..e10f378194a59 100644 --- a/include/linux/net.h

remove kernel_setsockopt v4

2020-05-29 Thread Christoph Hellwig
Hi Dave and Marcelo, now that only the dlm calls to sctp are left for kernel_setsockopt, while we haven't really made much progress with the sctp setsockopt refactoring, how about this small series that splits out a sctp_setsockopt_bindx_kernel that takes a kernel space address array to share

[PATCH 3/4] net: add a new bind_add method

2020-05-29 Thread Christoph Hellwig
The SCTP protocol allows to bind multiple address to a socket. That feature is currently only exposed as a socket option. Add a bind_add method struct proto that allows to bind additional addresses, and switch the dlm code to use the method instead of going through the socket option from kernel

Re: [PATCH 09/13] firmware_loader: simplify sysctl declaration with register_sysctl_subdir()

2020-05-29 Thread Luis Chamberlain
On Fri, May 29, 2020 at 12:26:13PM +0200, Greg KH wrote: > On Fri, May 29, 2020 at 07:41:04AM +, Luis Chamberlain wrote: > > From: Xiaoming Ni > > > > Move the firmware config sysctl table to fallback_table.c and use the > > new register_sysctl_subdir() helper. This removes the clutter from

Re: [PATCH 11/13] random: simplify sysctl declaration with register_sysctl_subdir()

2020-05-29 Thread Xiaoming Ni
On 2020/5/29 18:26, Greg KH wrote: On Fri, May 29, 2020 at 07:41:06AM +, Luis Chamberlain wrote: From: Xiaoming Ni Move random_table sysctl from kernel/sysctl.c to drivers/char/random.c and use register_sysctl_subdir() to help remove the clutter out of kernel/sysctl.c. Signed-off-by:

Re: [PATCH v3 3/3] arch, scripts: Add script to check relocations at compile time

2020-05-29 Thread Anup Patel
On Sun, May 24, 2020 at 2:26 PM Alexandre Ghiti wrote: > > Relocating kernel at runtime is done very early in the boot process, so > it is not convenient to check for relocations there and react in case a > relocation was not expected. > > Powerpc architecture has a script that allows to check at

Re: [PATCH v4 03/11] dmaengine: Introduce min burst length capability

2020-05-29 Thread Andy Shevchenko
On Fri, May 29, 2020 at 01:23:53AM +0300, Serge Semin wrote: > Some hardware aside from default 0/1 may have greater minimum burst > transactions length constraints. Here we introduce the DMA device > and slave capability, which if required can be initialized by the DMA > engine driver with the

Re: [PATCH v3 2/3] riscv: Introduce CONFIG_RELOCATABLE

2020-05-29 Thread Anup Patel
On Sun, May 24, 2020 at 2:25 PM Alexandre Ghiti wrote: > > This config allows to compile the kernel as PIE and to relocate it at > any virtual address at runtime: this paves the way to KASLR and to 4-level > page table folding at runtime. Runtime relocation is possible since > relocation metadata

Re: [PATCH 1/1] tty: serial: owl: Initialize lock before registering port

2020-05-29 Thread Andy Shevchenko
On Fri, May 29, 2020 at 2:56 PM Andreas Färber wrote: > > Am 29.05.20 um 13:34 schrieb Greg Kroah-Hartman: > > On Fri, May 29, 2020 at 02:06:47PM +0300, Cristian Ciocaltea wrote: > >> Running a lockdep-enabled kernel leads to the following splat when > >> probing the owl-uart driver: ... > >>

Re: [PATCH 09/13] firmware_loader: simplify sysctl declaration with register_sysctl_subdir()

2020-05-29 Thread Xiaoming Ni
On 2020/5/29 18:26, Greg KH wrote: On Fri, May 29, 2020 at 07:41:04AM +, Luis Chamberlain wrote: From: Xiaoming Ni Move the firmware config sysctl table to fallback_table.c and use the new register_sysctl_subdir() helper. This removes the clutter from kernel/sysctl.c. Signed-off-by:

Re: [Patch 2/2] media: use v4l2_rect_enclosed helper

2020-05-29 Thread Andrzej Pietrasiewicz
Hi Benoit, Thank you for the patch. W dniu 28.05.2020 o 15:26, Benoit Parrot pisze: Several drivers implement the same enclosed_rectangle() function to check if a rectangle is enclosed into another. Replace this with the newly added v4l2_rect_enclosed() helper function. Signed-off-by: Benoit

Re: [Patch 1/2] media: v4l2-rect.h: add enclosed rectangle helper

2020-05-29 Thread Andrzej Pietrasiewicz
Hi Benoit, Thank you for the patch, W dniu 28.05.2020 o 15:26, Benoit Parrot pisze: Add a helper function to check if one rectangle is enclosed inside another. Signed-off-by: Benoit Parrot Acked-by: Andrzej Pietrasiewicz --- include/media/v4l2-rect.h | 20 1 file

Re: 5.6.12 MCE on AMD EPYC 7502

2020-05-29 Thread Borislav Petkov
On Fri, May 29, 2020 at 01:55:29PM +0300, Dmitry Antipov wrote: > Hello, > > I'm facing the following kernel messages running Debian 9 with > custom 5.6.12 kernel running on AMD EPYC 7502 - based hardware: > > [138537.806814] mce: [Hardware Error]: Machine check events logged > [138537.806818]

[PATCH 1/3] ARC: allow to overide default mcpu compiler flag

2020-05-29 Thread Eugeniy Paltsev
By default we set -mcpu=xxx compiler flag depending on the CPU ISA version. It's good starting point, however that may be not enough as for some platforms we may want to use some specific 'mcpu' options for better optimization or to workaround HW issues. We are going to use this option for

[PATCH 0/3] ARC: [plat-hsdk-4xd] initial port for HSDK-4xD board

2020-05-29 Thread Eugeniy Paltsev
Eugeniy Paltsev (3): ARC: allow to overide default mcpu compiler flag ARC: ARCv2: support loop buffer (LPB) disabling ARC: [plat-hsdk-4xd] initial port for HSDK-4xD board arch/arc/Kconfig| 13 ++ arch/arc/Makefile | 4 +

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