[PATCH v2 5/5] arm: kexec_file: load zImage or uImage, initrd and dtb

2020-06-02 Thread Łukasz Stelmach
This is kexec_file_load implementation for ARM. It loads zImage and initrd from file descripters and resuses DTB. Most code is derived from arm64 kexec_file_load implementation and from kexec-tools. Cc: AKASHI Takahiro Signed-off-by: Łukasz Stelmach --- arch/arm/Kconfig |

[PATCH v2 1/5] arm: decompressor: set malloc pool size for the decompressor

2020-06-02 Thread Łukasz Stelmach
Move the definition of malloc pool size of the decompressor to a single place. This value will be exposed later for kexec_file loader. Signed-off-by: Łukasz Stelmach --- arch/arm/boot/compressed/Makefile | 7 +-- arch/arm/boot/compressed/head.S | 6 -- 2 files changed, 9

Re: [PATCH 4/4] workqueue: slash half memory usage in 32bit system

2020-06-02 Thread Tejun Heo
Hello, On Tue, Jun 02, 2020 at 08:08:10AM +0800, Lai Jiangshan wrote: > It is not noticable from the "free" command. > By counting the number of allocated pwq (mainly percpu pwq), > it saves 20k in my simple kvm guest (4cpu). > I guess it highly various in different boxes with various > kernel

Re: [PATCH] cxl: Fix kobject memleak

2020-06-02 Thread Frederic Barrat
Le 02/06/2020 à 14:07, Wang Hai a écrit : Currently the error return path from kobject_init_and_add() is not followed by a call to kobject_put() - which means we are leaking the kobject. Fix it by adding a call to kobject_put() in the error path of kobject_init_and_add(). Fixes:

[GIT PULL] kgdb changes for v5.8-rc1

2020-06-02 Thread Daniel Thompson
The following changes since commit 6a8b55ed4056ea5559ebe4f6a4b247f627870d4c: Linux 5.7-rc3 (2020-04-26 13:51:02 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/danielt/linux.git/ tags/kgdb-5.8-rc1 for you to fetch changes up to

Re: linux-next: manual merge of the hyperv tree with the kvm tree

2020-06-02 Thread Paolo Bonzini
On 02/06/20 15:56, Wei Liu wrote: >> >> between commit: >> >> 22ad0026d097 ("x86/hyper-v: Add synthetic debugger definitions") >> > Paolo > > As far as I can tell you merged that series a few days ago. Do you plan > to submit it to Linus in this merge window? How do you want to proceed > to fix

Re: [PATCH 5.6 000/174] 5.6.16-rc2 review

2020-06-02 Thread Naresh Kamboju
On Tue, 2 Jun 2020 at 15:55, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.6.16 release. > There are 174 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

[GIT PULL] xfs: new code for 5.8 (now with fixed To line)

2020-06-02 Thread Darrick J. Wong
Sorry Linus, I totally FUBARed the addressing on the pull request. Resending directly to you so that it doesn't get lost in the spam folder. --D --- Hi Linus, Please pull the new XFS code for 5.8. Most of the changes this cycle are refactoring of existing code in preparation for things

Re: memory leak in exfat_parse_param

2020-06-02 Thread Al Viro
On Tue, Jun 02, 2020 at 01:03:05PM +0800, butt3rflyh4ck wrote: > I report a bug (in linux-5.7.0-rc7) found by syzkaller. > > kernel config: > https://github.com/butterflyhack/syzkaller-fuzz/blob/master/config-v5.7.0-rc7 > > and can reproduce. > > A param->string held by exfat_mount_options.

[GIT PULL] keys: Changes for 5.8

2020-06-02 Thread David Howells
for the big_key type. Thanks, David --- The following changes since commit 6a8b55ed4056ea5559ebe4f6a4b247f627870d4c: Linux 5.7-rc3 (2020-04-26 13:51:02 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git tags/keys-next-20200602

Re: linux-next: manual merge of the hyperv tree with the kvm tree

2020-06-02 Thread Wei Liu
On Tue, Jun 02, 2020 at 06:26:26PM +0200, Paolo Bonzini wrote: > On 02/06/20 15:56, Wei Liu wrote: > >> > >> between commit: > >> > >> 22ad0026d097 ("x86/hyper-v: Add synthetic debugger definitions") > >> > > Paolo > > > > As far as I can tell you merged that series a few days ago. Do you plan

Re: [PATCH net-next v7 09/10] net: phy: smsc: use phy_read_poll_timeout() to simplify the code

2020-06-02 Thread Dejin Zheng
On Mon, Jun 01, 2020 at 02:58:21PM -0400, Kevin Groeneveld wrote: > On Mon, Mar 23, 2020 at 11:10 AM Dejin Zheng wrote: > > > > use phy_read_poll_timeout() to replace the poll codes for > > simplify lan87xx_read_status() function. > > > > Suggested-by: Andrew Lunn > > Reviewed-by: Florian

Re: [PATCH RFC] uaccess: user_access_begin_after_access_ok()

2020-06-02 Thread Al Viro
On Tue, Jun 02, 2020 at 04:45:05AM -0400, Michael S. Tsirkin wrote: > So vhost needs to poke at userspace *a lot* in a quick succession. It > is thus benefitial to enable userspace access, do our thing, then > disable. Except access_ok has already been pre-validated with all the > relevant nospec

Re: [PATCH] nvme-fc: Only call nvme_cleanup_cmd() for normal operations

2020-06-02 Thread James Smart
On 5/29/2020 4:37 AM, Daniel Wagner wrote: Asynchronous event notifications do not have an request associated. When fcp_io() fails we unconditionally call nvme_cleanup_cmd() which leads to a crash. Fixes: 16686f3a6c3c ("nvme: move common call to nvme_cleanup_cmd to core layer") Cc: Max

Re: [PATCH v5 11/11] PCI: qcom: Add Force GEN1 support

2020-06-02 Thread Bjorn Helgaas
On Tue, Jun 02, 2020 at 01:53:52PM +0200, Ansuel Smith wrote: > From: Sham Muthayyan > > Add Force GEN1 support needed in some ipq8064 board that needs to limit > some PCIe line to gen1 for some hardware limitation. This is set by the > max-link-speed binding and needed by some soc based on

Re: [PATCH 0/4] selftests, sysctl, lib: Fix prime_numbers and sysctl test to run

2020-06-02 Thread Shuah Khan
On 5/29/20 8:39 AM, Masami Hiramatsu wrote: On Fri, 29 May 2020 08:14:39 -0600 Shuah Khan wrote: On 5/28/20 8:51 AM, Masami Hiramatsu wrote: Hi, Recently, I found some tests were always skipped. Here is a series of patches to fix those issues. The prime_numbers test is skipped in some

Re: [PATCH RFC] uaccess: user_access_begin_after_access_ok()

2020-06-02 Thread Al Viro
On Tue, Jun 02, 2020 at 06:15:57PM +0800, Jason Wang wrote: > > On 2020/6/2 下午4:45, Michael S. Tsirkin wrote: > > So vhost needs to poke at userspace *a lot* in a quick succession. It > > is thus benefitial to enable userspace access, do our thing, then > > disable. Except access_ok has already

Re: [PATCH 4.9 00/59] 4.9.226-rc2 review

2020-06-02 Thread Sasha Levin
On Tue, Jun 02, 2020 at 08:37:26AM -0700, Guenter Roeck wrote: On 6/2/20 3:23 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.9.226 release. There are 59 patches in this series, all will be posted as a response to this one. If anyone has any issues with

Re: [PATCH 4.4 00/47] 4.4.226-rc2 review

2020-06-02 Thread Jon Hunter
On 02/06/2020 11:16, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.226 release. > There are 47 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses

[PATCH 1/2] remoteproc: qcom: q6v5: Update running state before requesting stop

2020-06-02 Thread Sibi Sankar
Sometimes the stop triggers a watchdog rather than a stop-ack. Update the running state to false on requesting stop to skip the watchdog instead. Error Logs: $ echo stop > /sys/class/remoteproc/remoteproc0/state ipa 1e4.ipa: received modem stopping event remoteproc-modem: watchdog received:

[PATCH 2/2] remoteproc: qcom_q6v5_mss: Remove redundant running state

2020-06-02 Thread Sibi Sankar
Remove the redundant running state, as an equivalent is maintained in the common q6v5 resource handling helpers. Signed-off-by: Sibi Sankar --- drivers/remoteproc/qcom_q6v5_mss.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/remoteproc/qcom_q6v5_mss.c

Re: [PATCH] ARM: dts: AM33xx-l4: add gpio-ranges

2020-06-02 Thread Drew Fustini
On Tue, Jun 02, 2020 at 06:51:55AM -0700, Tony Lindgren wrote: > * Grygorii Strashko [200602 13:44]: > > > > > > On 02/06/2020 16:14, Drew Fustini wrote: > > > Add gpio-ranges properties to the gpio controller nodes. > > > > > > These gpio-ranges were created based on "Table 9-10.

Re: [PATCH 4.14 00/76] 4.14.183-rc2 review

2020-06-02 Thread Jon Hunter
On 02/06/2020 11:23, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.183 release. > There are 76 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses

Re: [PATCH 2/2] mtd: spi-nor: intel-spi: fix forced writable option

2020-06-02 Thread Daniel Walker (danielwa)
On Thu, May 28, 2020 at 03:55:21PM +, Jinhua Wu (jinhwu) wrote: > On 2020/5/28, 11:48 PM, "Jinhua Wu" wrote: > Hi Vignesh, > BIOS just locked down parts of flash (such as, code region), others are still > writeable. Once the SPI locked down,it can't be override unless platfrom > reset >

Re: [PATCH v2 00/33] iommu: Move iommu_group setup to IOMMU core code

2020-06-02 Thread Jerry Snitselaar
On Tue Jun 02 20, Joerg Roedel wrote: Hi Jerry, On Mon, Jun 01, 2020 at 05:02:36PM -0700, Jerry Snitselaar wrote: Yeah, that will solve the panic. If you still see the kdump faults, can you please try with the attached diff? I was not able to reproduce them in my setup. Regards,

Re: [PATCH v1] PCI: controller: convert to devm_platform_ioremap_resource_byname()

2020-06-02 Thread Dejin Zheng
On Tue, Jun 02, 2020 at 02:13:23AM +0800, kbuild test robot wrote: > Hi Dejin, > > Thank you for the patch! Perhaps something to improve: > Yes, you are right, I should not modify this file drivers/pci/controller/pcie-xilinx-nwl.c. I will sent the patch v2. Thanks very much! BR, Dejin > [auto

[RESEND PATCH] dt-bindings: property-units: Add picoseconds type

2020-06-02 Thread Dan Murphy
Add the '-ps' picosecond unit suffix for property names. Signed-off-by: Dan Murphy --- Documentation/devicetree/bindings/property-units.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/property-units.txt

Re: [PATCH 0/5] cleanups

2020-06-02 Thread Paul E. McKenney
On Mon, Jun 01, 2020 at 07:45:47PM +0100, Jules Irenge wrote: > > Jules Irenge (5): > rcu/rcutorture: replace 0 with false > rcu: replace 1 with true I queued these two, thank you! > rcu: replace + with | This one I am not all that excited about, so I am leaving it off.

[PATCH net-next v5 0/4] RGMII Internal delay common property

2020-06-02 Thread Dan Murphy
Hello The RGMII internal delay is a common setting found in most RGMII capable PHY devices. It was found that many vendor specific device tree properties exist to do the same function. This creates a common property to be used for PHY's that have tunable internal delays for the Rx and Tx paths.

Re: [PATCH 1/2] sched/uclamp: Add a new sysctl to control RT default boost value

2020-06-02 Thread Dietmar Eggemann
On 29.05.20 12:08, Mel Gorman wrote: > On Thu, May 28, 2020 at 06:11:12PM +0200, Peter Zijlstra wrote: >>> FWIW, I think you're referring to Mel's notice in OSPM regarding the >>> overhead. >>> Trying to see what goes on in there. >> >> Indeed, that one. The fact that regular distros cannot

[PATCH net-next v5 4/4] net: dp83869: Add RGMII internal delay configuration

2020-06-02 Thread Dan Murphy
Add RGMII internal delay configuration for Rx and Tx. Signed-off-by: Dan Murphy --- drivers/net/phy/dp83869.c | 82 +-- 1 file changed, 79 insertions(+), 3 deletions(-) diff --git a/drivers/net/phy/dp83869.c b/drivers/net/phy/dp83869.c index

[PATCH net-next v5 2/4] net: phy: Add a helper to return the index for of the internal delay

2020-06-02 Thread Dan Murphy
Add a helper function that will return the index in the array for the passed in internal delay value. The helper requires the array, size and delay value. The helper will then return the index for the exact match or return the index for the index to the closest smaller value. Signed-off-by: Dan

[PATCH net-next v5 1/4] dt-bindings: net: Add tx and rx internal delays

2020-06-02 Thread Dan Murphy
tx-internal-delays and rx-internal-delays are a common setting for RGMII capable devices. These properties are used when the phy-mode or phy-controller is set to rgmii-id, rgmii-rxid or rgmii-txid. These modes indicate to the controller that the PHY will add the internal delay for the

[PATCH net-next v5 3/4] dt-bindings: net: Add RGMII internal delay for DP83869

2020-06-02 Thread Dan Murphy
Add the internal delay values into the header and update the binding with the internal delay properties. Signed-off-by: Dan Murphy --- .../devicetree/bindings/net/ti,dp83869.yaml | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git

Re: [PATCH 05/14] mm: workingset: let cache workingset challenge anon

2020-06-02 Thread Johannes Weiner
On Tue, Jun 02, 2020 at 11:34:17AM +0900, Joonsoo Kim wrote: > 2020년 6월 2일 (화) 오전 12:56, Johannes Weiner 님이 작성: > > On Mon, Jun 01, 2020 at 03:14:24PM +0900, Joonsoo Kim wrote: > > > But, I still think that modified refault activation equation isn't > > > safe. The next > > > problem I found is

[PATCH v3 2/4] iio: chemical: scd30: add I2C interface driver

2020-06-02 Thread Tomasz Duszynski
Add I2C interface driver for the SCD30 sensor. Signed-off-by: Tomasz Duszynski --- MAINTAINERS | 1 + drivers/iio/chemical/Kconfig | 11 +++ drivers/iio/chemical/Makefile| 1 + drivers/iio/chemical/scd30_i2c.c | 134 +++ 4 files

[PATCH] ntfs: Fix ntfs_test_inode and ntfs_init_locked_inode function type

2020-06-02 Thread Luca Stefani
If the kernel is built with CFI we hit a __cfi_check_fail while mounting a partition Call trace: __cfi_check_fail+0x1c/0x24 name_to_dev_t+0x0/0x404 iget5_locked+0x594/0x5e8 ntfs_fill_super+0xbfc/0x43ec mount_bdev+0x30c/0x3cc ntfs_mount+0x18/0x24 mount_fs+0x1b0/0x380 vfs_kern_mount+0x90/0x398

[PATCH v3 0/4] Add support for SCD30 sensor

2020-06-02 Thread Tomasz Duszynski
Following series adds support for Sensirion SCD30 sensor module capable of measuring carbon dioxide, temperature and relative humidity. CO2 measurements base on NDIR principle while temperature and relative humidity are measured by the on board SHT31. As for sensor communication, both I2C and

[PATCH v3 1/4] iio: chemical: scd30: add core driver

2020-06-02 Thread Tomasz Duszynski
Add Sensirion SCD30 carbon dioxide core driver. Signed-off-by: Tomasz Duszynski --- Documentation/ABI/testing/sysfs-bus-iio-scd30 | 34 + MAINTAINERS | 6 + drivers/iio/chemical/Kconfig | 11 + drivers/iio/chemical/Makefile

[PATCH v3 3/4] iio: chemical: scd30: add serial interface driver

2020-06-02 Thread Tomasz Duszynski
Add serial interface driver for the SCD30 sensor. Signed-off-by: Tomasz Duszynski --- MAINTAINERS | 1 + drivers/iio/chemical/Kconfig| 11 ++ drivers/iio/chemical/Makefile | 1 + drivers/iio/chemical/scd30_serial.c | 266 4

[PATCH v3 4/4] dt-bindings: iio: scd30: add device binding file

2020-06-02 Thread Tomasz Duszynski
Add SCD30 sensor binding file. Signed-off-by: Tomasz Duszynski --- .../iio/chemical/sensirion,scd30.yaml | 68 +++ MAINTAINERS | 1 + 2 files changed, 69 insertions(+) create mode 100644

Re: [PATCH v3 0/4] Add support for SCD30 sensor

2020-06-02 Thread Andy Shevchenko
On Tue, Jun 2, 2020 at 7:49 PM Tomasz Duszynski wrote: > > Following series adds support for Sensirion SCD30 sensor module capable of > measuring carbon dioxide, temperature and relative humidity. CO2 measurements > base on NDIR principle while temperature and relative humidity are measured by >

Re: [PATCH] Documentation: kunit: Add some troubleshooting tips to the FAQ

2020-06-02 Thread Alan Maguire
On Mon, 1 Jun 2020, David Gow wrote: > Add an FAQ entry to the KUnit documentation with some tips for > troubleshooting KUnit and kunit_tool. > > These suggestions largely came from an email thread: >

4.9.0+4.19.0: Bug in megasas driver (?), if booting from USB stick

2020-06-02 Thread Nico Schottelius
Hello kernel hackers, I've this "funny" problem: if I netboot servers via the firmware in the network card, the system comes up normal. If I boot iPXE from a usb stick and then netboot, the megasas driver fails to init (call trace below, full dmesg attached). The system also hangs during the

Re: [PATCH v1] PCI: controller: convert to devm_platform_ioremap_resource_byname()

2020-06-02 Thread Dejin Zheng
On Mon, Jun 01, 2020 at 04:22:29PM -0600, Rob Herring wrote: > On Mon, Jun 01, 2020 at 10:33:45PM +0800, Dejin Zheng wrote: > > Use devm_platform_ioremap_resource_byname() to simplify codes. > > it contains platform_get_resource_byname() and devm_ioremap_resource(). > > > > Signed-off-by: Dejin

[GIT PULL] vfs: improve DAX behavior for 5.8, part 1

2020-06-02 Thread Darrick J. Wong
Hi Linus, After many years of LKML-wrangling about how to enable programs to query and influence the file data access mode (DAX) when a filesystem resides on storage devices such as persistent memory, Ira Weiny has emerged with a proposed set of standard behaviors that has not been shot down by

Re: [PATCH net-next v2] af-packet: new flag to indicate all csums are good

2020-06-02 Thread Victor Julien
On 02-06-2020 16:29, Willem de Bruijn wrote: > On Tue, Jun 2, 2020 at 4:05 AM Victor Julien wrote: >> >> Introduce a new flag (TP_STATUS_CSUM_UNNECESSARY) to indicate >> that the driver has completely validated the checksums in the packet. >> >> The TP_STATUS_CSUM_UNNECESSARY flag differs from

Re: [PATCH] arch/x86: reset MXCSR to default in kernel_fpu_begin()

2020-06-02 Thread Andy Lutomirski
On Tue, Jun 2, 2020 at 3:56 AM Borislav Petkov wrote: > > Hi, > > On Tue, Jun 02, 2020 at 01:29:51PM +0300, Petteri Aimonen wrote: > > The kernel module is not actually x86-specific, even though it is > > currently only enabled for x86. amdgpu driver already does kernel mode > > floating point

Re: [PATCH v3 3/4] iio: chemical: scd30: add serial interface driver

2020-06-02 Thread Andy Shevchenko
On Tue, Jun 2, 2020 at 7:49 PM Tomasz Duszynski wrote: > > Add serial interface driver for the SCD30 sensor. ... > +static u16 scd30_serdev_cmd_lookup_tbl[] = { > + [CMD_START_MEAS] = 0x0036, > + [CMD_STOP_MEAS] = 0x0037, > + [CMD_MEAS_INTERVAL] = 0x0025, > +

RE: [PATCH 0/2] PCI: dwc: Add support to handle prefetchable memory separately

2020-06-02 Thread Gustavo Pimentel
On Tue, Jun 2, 2020 at 11:9:38, Vidya Sagar wrote: > In this patch series, > Patch-1 > adds required infrastructure to deal with prefetchable memory region > information coming from 'ranges' property of the respective device-tree node > separately from non-prefetchable memory region information.

R: [PATCH v5 11/11] PCI: qcom: Add Force GEN1 support

2020-06-02 Thread ansuelsmth
> On Tue, Jun 02, 2020 at 01:53:52PM +0200, Ansuel Smith wrote: > > From: Sham Muthayyan > > > > Add Force GEN1 support needed in some ipq8064 board that needs to > limit > > some PCIe line to gen1 for some hardware limitation. This is set by the > > max-link-speed binding and needed by some soc

Re: [PATCH] x86/resctrl: Fix memory bandwidth counter width for AMD

2020-06-02 Thread Reinette Chatre
Hi Babu, On 6/1/2020 4:00 PM, Babu Moger wrote: > Memory bandwidth is calculated reading the monitoring counter > at two intervals and calculating the delta. It is the software’s > responsibility to read the count often enough to avoid having > the count roll over _twice_ between reads. > > The

Re: [PATCH v3 2/4] iio: chemical: scd30: add I2C interface driver

2020-06-02 Thread Andy Shevchenko
On Tue, Jun 2, 2020 at 7:49 PM Tomasz Duszynski wrote: > > Add I2C interface driver for the SCD30 sensor. ... > +static u16 scd30_i2c_cmd_lookup_tbl[] = { > + [CMD_START_MEAS] = 0x0010, > + [CMD_STOP_MEAS] = 0x0104, > + [CMD_MEAS_INTERVAL] = 0x4600, > + [CMD_MEAS_READY]

[PATCH v2] PCI: controller: convert to devm_platform_ioremap_resource_byname()

2020-06-02 Thread Dejin Zheng
Use devm_platform_ioremap_resource_byname() to simplify codes. it contains platform_get_resource_byname() and devm_ioremap_resource(). Signed-off-by: Dejin Zheng --- v1 -> v2: - Discard changes to the file drivers/pci/controller/pcie-xilinx-nwl.c Due to my mistakes, my patch

Re: [PATCH RFC] uaccess: user_access_begin_after_access_ok()

2020-06-02 Thread Linus Torvalds
On Tue, Jun 2, 2020 at 9:33 AM Al Viro wrote: > > > > > It's not clear whether we need a new API, I think __uaccess_being() has the > > assumption that the address has been validated by access_ok(). > > __uaccess_begin() is a stopgap, not a public API. Correct. It's just an x86 implementation

Re: WARNING in snd_usbmidi_submit_urb/usb_submit_urb

2020-06-02 Thread Andrey Konovalov
On Mon, Jun 1, 2020 at 2:29 PM Greg KH wrote: > > On Mon, Jun 01, 2020 at 02:22:40PM +0200, Andrey Konovalov wrote: > > On Mon, Jun 1, 2020 at 10:43 AM Greg KH wrote: > > > > > > On Mon, Jun 01, 2020 at 12:24:03AM -0700, syzbot wrote: > > > > syzbot has bisected this bug to: > > > > > > > >

Re: [PATCH] cxl: Fix kobject memory leak in cxl_sysfs_afu_new_cr()

2020-06-02 Thread Markus Elfring
> Fix it by adding a call to kobject_put() in the error path of > kobject_init_and_add(). Thanks for another completion of the exception handling. Would an other patch subject be a bit nicer? … > +++ b/drivers/misc/cxl/sysfs.c > @@ -624,7 +624,7 @@ static struct afu_config_record >

Re: [PATCH V11 11/11] fs/xfs: Update xfs_ioctl_setattr_dax_invalidate()

2020-06-02 Thread Darrick J. Wong
On Tue, Apr 28, 2020 at 01:11:38PM -0700, Darrick J. Wong wrote: > On Mon, Apr 27, 2020 at 05:21:42PM -0700, ira.we...@intel.com wrote: > > From: Ira Weiny > > > > Because of the separation of FS_XFLAG_DAX from S_DAX and the delayed > > setting of S_DAX, data invalidation no longer needs to

[PATCH] clk: baikal-t1: remove redundant assignment to variable 'divider'

2020-06-02 Thread Colin King
From: Colin Ian King The variable divider is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King ---

[GIT PULL] vfs: improve DAX behavior for 5.8, part 2

2020-06-02 Thread Darrick J. Wong
Hi Linus, Please pull this second part of the 5.8 DAX changes. This time around, we're hoisting the DONTCACHE flag from XFS into the VFS so that we can make the incore DAX mode changes become effective sooner. We can't change the file data access mode on a live inode because we don't have a

Re: [PATCH] arch/x86: reset MXCSR to default in kernel_fpu_begin()

2020-06-02 Thread Shuah Khan
On 6/2/20 11:03 AM, Andy Lutomirski wrote: On Tue, Jun 2, 2020 at 3:56 AM Borislav Petkov wrote: Hi, On Tue, Jun 02, 2020 at 01:29:51PM +0300, Petteri Aimonen wrote: The kernel module is not actually x86-specific, even though it is currently only enabled for x86. amdgpu driver already does

Re: R: [PATCH v5 11/11] PCI: qcom: Add Force GEN1 support

2020-06-02 Thread Bjorn Helgaas
[+cc Varada] On Tue, Jun 02, 2020 at 07:07:27PM +0200, ansuels...@gmail.com wrote: > > On Tue, Jun 02, 2020 at 01:53:52PM +0200, Ansuel Smith wrote: > > > From: Sham Muthayyan > > > > > > Add Force GEN1 support needed in some ipq8064 board that needs to > > limit > > > some PCIe line to gen1 for

[PATCH] mmc: core: Add error check to avoid kernel panic caused by NULL pointer

2020-06-02 Thread Corey Gao
If __mmc_start_req(host, mrq) fails with error, the mrq->cmd->mrq will be NULL. This will cause kernel panic in the following mmc_wait_for_req_done(host, mrq). Add error check to cancle unnecessary mmc_wait_for_req_done(host, mrq) if __mmc_start_req(host, mrq) fails. Signed-off-by: Corey Gao ---

Re: [PATCH] x86/resctrl: Fix memory bandwidth counter width for AMD

2020-06-02 Thread Babu Moger
On 6/2/20 12:13 PM, Reinette Chatre wrote: > Hi Babu, > > On 6/1/2020 4:00 PM, Babu Moger wrote: >> Memory bandwidth is calculated reading the monitoring counter >> at two intervals and calculating the delta. It is the software’s >> responsibility to read the count often enough to avoid having

[PATCH v3 01/10] dmaengine: Actions: get rid of bit fields from dma descriptor

2020-06-02 Thread Amit Singh Tomar
At the moment, Driver uses bit fields to describe registers of the DMA descriptor structure that makes it less portable and maintainable, and Andre suugested(and even sketched important bits for it) to make use of array to describe this DMA descriptors instead. It gives the flexibility while

[PATCH 1/3] x86, kcsan: Remove __no_kcsan_or_inline usage

2020-06-02 Thread Peter Zijlstra
Now that KCSAN relies on -tsan-distinguish-volatile we no longer need the annotation for constant_test_bit(). Remove it. Signed-off-by: Peter Zijlstra (Intel) --- arch/x86/include/asm/bitops.h |6 +- 1 file changed, 1 insertion(+), 5 deletions(-) --- a/arch/x86/include/asm/bitops.h +++

[PATCH v3 00/10] Add MMC and DMA support for Actions S700

2020-06-02 Thread Amit Singh Tomar
This Series(v3) addressed the review comments provide by Rob, and there are changes in patch 5/10 for it. Also, one of the important change for this series(v3) is about the way we we handle address range conflict between pinctrl and sps node. In the last Series(v2), patch 4/10 was sent as *do

[PATCH 2/3] kcsan: Remove __no_kcsan_or_inline

2020-06-02 Thread Peter Zijlstra
There are no more user of this function attribute, also, with us now actively supporting '__no_kcsan inline' it doesn't make sense to have in any case. Signed-off-by: Peter Zijlstra (Intel) --- Documentation/dev-tools/kcsan.rst |6 -- include/linux/compiler_types.h|5 + 2

[PATCH 0/3] KCSAN cleanups and noinstr

2020-06-02 Thread Peter Zijlstra
Hi all, Here's two KCSAN cleanups and the required noinstr change for x86.

[PATCH 3/3] x86, kcsan: Add __no_kcsan to noinstr

2020-06-02 Thread Peter Zijlstra
The 'noinstr' function attribute means no-instrumentation, this should very much include *SAN. Because lots of that is broken at present, only include KCSAN for now, as that is limited to clang11, which has sane function attribute behaviour. Signed-off-by: Peter Zijlstra (Intel) ---

[PATCH v3 02/10] dmaengine: Actions: Add support for S700 DMA engine

2020-06-02 Thread Amit Singh Tomar
DMA controller present on S700 SoC is compatible with the one on S900 (as most of registers are same), but it has different DMA descriptor structure where registers "fcnt" and "ctrlb" uses different encoding. For instance, on S900 "fcnt" starts at offset 0x0c and uses upper 12 bits whereas on

Re: kobject_init_and_add is easy to misuse

2020-06-02 Thread Greg Kroah-Hartman
On Tue, Jun 02, 2020 at 08:25:14AM -0700, James Bottomley wrote: > On Tue, 2020-06-02 at 05:10 -0700, Matthew Wilcox wrote: > > On Tue, Jun 02, 2020 at 07:50:33PM +0800, Wang Hai wrote: > > > syzkaller reports for memory leak when kobject_init_and_add() > > > returns an error in the function

[PATCH v3 03/10] clk: actions: Add MMC clock-register reset bits

2020-06-02 Thread Amit Singh Tomar
This commit adds reset bits needed for MMC clock registers present on Actions S700 SoC. Signed-off-by: Amit Singh Tomar --- Changes from v2: * No change. Changes from v1: * No change. Changes from RFC: * No change. --- drivers/clk/actions/owl-s700.c | 3 +++ 1 file

Re: [PATCH] kcsan: Prefer '__no_kcsan inline' in test

2020-06-02 Thread Peter Zijlstra
On Tue, Jun 02, 2020 at 04:36:33PM +0200, Marco Elver wrote: > Instead of __no_kcsan_or_inline, prefer '__no_kcsan inline' in test -- > this is in case we decide to remove __no_kcsan_or_inline. > > Suggested-by: Peter Zijlstra > Signed-off-by: Marco Elver > --- > > Hi Paul, > > This is to

[PATCH v3 04/10] arm64: dts: actions: limit address range for pinctrl node

2020-06-02 Thread Amit Singh Tomar
After commit 7cdf8446ed1d ("arm64: dts: actions: Add pinctrl node for Actions Semi S700") following error has been observed while booting Linux on Cubieboard7-lite(based on S700 SoC). [0.257415] pinctrl-s700 e01b.pinctrl: can't request region for resource [mem 0xe01b-0xe01b0fff] [

[PATCH v3 05/10] dt-bindings: dmaengine: convert Actions Semi Owl SoCs bindings to yaml

2020-06-02 Thread Amit Singh Tomar
Converts the device tree bindings for the Actions Semi Owl SoCs DMA Controller over to YAML schemas. It also adds new compatible string "actions,s700-dma". Signed-off-by: Amit Singh Tomar --- Changes since v2: * Addressed Rob's comments: - removed unnecessary description.

Re: [PATCH net-next v2] af-packet: new flag to indicate all csums are good

2020-06-02 Thread Willem de Bruijn
On Tue, Jun 2, 2020 at 1:03 PM Victor Julien wrote: > > On 02-06-2020 16:29, Willem de Bruijn wrote: > > On Tue, Jun 2, 2020 at 4:05 AM Victor Julien wrote: > >> > >> Introduce a new flag (TP_STATUS_CSUM_UNNECESSARY) to indicate > >> that the driver has completely validated the checksums in the

[PATCH v3 08/10] dt-bindings: mmc: owl: add compatible string actions,s700-mmc

2020-06-02 Thread Amit Singh Tomar
The commit adds a new SoC specific compatible string "actions,s700-mmc" in combination with more generic string "actions,owl-mmc". Placement order of these strings should abide by the principle of "from most specific to most general". Reviewed-by: Rob Herring Signed-off-by: Amit Singh Tomar

[PATCH v3 10/10] arm64: dts: actions: Add uSD support for Cubieboard7

2020-06-02 Thread Amit Singh Tomar
This commit adds uSD support for Cubieboard7 board based on Actions Semi S700 SoC. SD0 is connected to uSD slot. Since there is no PMIC support added yet, fixed regulator has been used as a regulator node. Signed-off-by: Amit Singh Tomar --- Changes since v2: * No change. Changes since

[PATCH v3 06/10] arm64: dts: actions: Add DMA Controller for S700

2020-06-02 Thread Amit Singh Tomar
This commit adds DAM controller present on Actions S700, it differs from S900 in terms of number of dma channels and requests. Signed-off-by: Amit Singh Tomar --- Changes since v2: * added power-domain property as sps is enabled now and DMA needs it. Changes since v1: *

[PATCH v3 09/10] arm64: dts: actions: Add MMC controller support for S700

2020-06-02 Thread Amit Singh Tomar
This commits adds support for MMC controllers present on Actions S700 SoC, there are 3 MMC controllers in this SoC which can be used for accessing SD/EMMC/SDIO cards. Signed-off-by: Amit Singh Tomar --- Changes since v2: * No change. Changes since v1: * Added SoC specific

[PATCH v3 07/10] dt-bindings: reset: s700: Add binding constants for mmc

2020-06-02 Thread Amit Singh Tomar
This commit adds device tree binding reset constants for mmc controller present on Actions S700 Soc. Acked-by: Rob Herring Signed-off-by: Amit Singh Tomar --- Changes since v2: * No change. Changes since v1: * No change. Changes since RFC: * added Rob's acked-by tag ---

Re: [PATCH 2/2] remoteproc: qcom_q6v5_mss: Remove redundant running state

2020-06-02 Thread Evan Green
On Tue, Jun 2, 2020 at 9:33 AM Sibi Sankar wrote: > > Remove the redundant running state, as an equivalent is maintained in > the common q6v5 resource handling helpers. > > Signed-off-by: Sibi Sankar This variable was written to and never read, sigh. Thanks for cleaning it up. Reviewed-by:

Re: [PATCH 5.4 000/139] 5.4.44-rc2 review

2020-06-02 Thread Naresh Kamboju
On Tue, 2 Jun 2020 at 15:54, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.4.44 release. > There are 139 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

Re: [PATCH RFC] uaccess: user_access_begin_after_access_ok()

2020-06-02 Thread Al Viro
On Tue, Jun 02, 2020 at 10:18:09AM -0700, Linus Torvalds wrote: > You have exactly two cases: > > (a) the access_ok() would be right above the code and can't be missed > > (b) not (c) what you really want is not quite access_ok(). Again, that "not quite access_ok()" should be right next

Re: [PATCH 1/2] remoteproc: qcom: q6v5: Update running state before requesting stop

2020-06-02 Thread Evan Green
On Tue, Jun 2, 2020 at 9:33 AM Sibi Sankar wrote: > > Sometimes the stop triggers a watchdog rather than a stop-ack. Update > the running state to false on requesting stop to skip the watchdog > instead. > > Error Logs: > $ echo stop > /sys/class/remoteproc/remoteproc0/state > ipa 1e4.ipa:

Re: [PATCH RFC] uaccess: user_access_begin_after_access_ok()

2020-06-02 Thread Al Viro
On Tue, Jun 02, 2020 at 06:44:30PM +0100, Al Viro wrote: > On Tue, Jun 02, 2020 at 10:18:09AM -0700, Linus Torvalds wrote: > > > > You have exactly two cases: > > > > (a) the access_ok() would be right above the code and can't be missed > > > > (b) not > >(c) what you really want is not

[GIT PULL] Hyper-V commits for 5.8

2020-06-02 Thread Wei Liu
Hi Linus Please pull the signed tag for Hyper-V commits for 5.8. There is a conflict in arch/x86/include/asm/hyperv-tlfs.h with a patch in KVM tree. Michael Kelley and Jon Doron touched that file separately. Michael's patches are going through the Hyper-V tree while Jon's patches are going

Re: [PATCH v3 2/4] iio: chemical: scd30: add I2C interface driver

2020-06-02 Thread Tomasz Duszynski
Hello Andy, On Tue, Jun 02, 2020 at 08:14:13PM +0300, Andy Shevchenko wrote: > On Tue, Jun 2, 2020 at 7:49 PM Tomasz Duszynski > wrote: > > > > Add I2C interface driver for the SCD30 sensor. > > ... > > > +static u16 scd30_i2c_cmd_lookup_tbl[] = { > > + [CMD_START_MEAS] = 0x0010, > > +

Re: [PATCH v3 015/105] drm/vc4: hvs: Boost the core clock during modeset

2020-06-02 Thread Eric Anholt
On Tue, Jun 2, 2020 at 5:52 AM Maxime Ripard wrote: > > Hi Eric, > > On Wed, May 27, 2020 at 09:33:44AM -0700, Eric Anholt wrote: > > On Wed, May 27, 2020 at 8:49 AM Maxime Ripard wrote: > > > > > > In order to prevent timeouts and stalls in the pipeline, the core clock > > > needs to be maxed

Re: PANIC: double fault in fixup_bad_iret

2020-06-02 Thread Marco Elver
You were a bit faster with the other patches ;-) I was still experimenting the the patches, but let me briefly respond here. On Tue, 2 Jun 2020 at 11:41, Peter Zijlstra wrote: > > On Mon, Jun 01, 2020 at 02:40:31PM +0200, Marco Elver wrote: > > I think Peter wanted to send a patch to add

Re: [PATCH 04/13] perf tests: Add another metric parsing test

2020-06-02 Thread Ian Rogers
On Tue, Jun 2, 2020 at 4:51 AM Jiri Olsa wrote: > > The test goes through all metrics compiled for arch > within pmu events and try to parse them. > > This test is different from 'test_parsing' in that > we go through all the events in the current arch, > not just one defined for current CPU

Re: [PATCH v3 3/4] iio: chemical: scd30: add serial interface driver

2020-06-02 Thread Tomasz Duszynski
On Tue, Jun 02, 2020 at 08:04:16PM +0300, Andy Shevchenko wrote: > On Tue, Jun 2, 2020 at 7:49 PM Tomasz Duszynski > wrote: > > > > Add serial interface driver for the SCD30 sensor. > > ... > > > +static u16 scd30_serdev_cmd_lookup_tbl[] = { > > + [CMD_START_MEAS] = 0x0036, > > +

Re: PANIC: double fault in fixup_bad_iret

2020-06-02 Thread Peter Zijlstra
On Tue, Jun 02, 2020 at 07:51:40PM +0200, Marco Elver wrote: > We have all attributes except __no_sanitize_coverage. GCC <= 7 has > problems with __always_inline, so we may just have to bump the > required compiler or emit a warning. GCC <= 7 will hard fail the compile with those function

Re: [PATCHv1 00/19] Improve SBS battery support

2020-06-02 Thread Sebastian Reichel
Hi, On Tue, Jun 02, 2020 at 09:17:09AM +0200, Marek Szyprowski wrote: > Hi Sebastian, > > On 01.06.2020 19:05, Sebastian Reichel wrote: > > On Mon, Jun 01, 2020 at 12:40:27PM +0200, Marek Szyprowski wrote: > >> On 13.05.2020 20:55, Sebastian Reichel wrote: > >>> This patchset improves support

[PATCH 5/6] arm64/vdso: Restrict splitting VVAR VMA

2020-06-02 Thread Andrei Vagin
Forbid splitting VVAR VMA resulting in a stricter ABI and reducing the amount of corner-cases to consider while working further on VDSO time namespace support. As the offset from timens to VVAR page is computed compile-time, the pages in VVAR should stay together and not being partically

[PATCH 4/6] arm64/vdso: Handle faults on timens page

2020-06-02 Thread Andrei Vagin
If a task belongs to a time namespace then the VVAR page which contains the system wide VDSO data is replaced with a namespace specific page which has the same layout as the VVAR page. Reviewed-by: Vincenzo Frascino Signed-off-by: Andrei Vagin --- arch/arm64/kernel/vdso.c | 57

[PATCH 3/6] arm64/vdso: Add time namespace page

2020-06-02 Thread Andrei Vagin
Allocate the time namespace page among VVAR pages. Provide __arch_get_timens_vdso_data() helper for VDSO code to get the code-relative position of VVARs on that special page. If a task belongs to a time namespace then the VVAR page which contains the system wide VDSO data is replaced with a

[PATCH 2/6] arm64/vdso: Zap vvar pages when switching to a time namespace

2020-06-02 Thread Andrei Vagin
The VVAR page layout depends on whether a task belongs to the root or non-root time namespace. Whenever a task changes its namespace, the VVAR page tables are cleared and then they will be re-faulted with a corresponding layout. Reviewed-by: Vincenzo Frascino Signed-off-by: Andrei Vagin ---

[PATCH 6/6] arm64: enable time namespace support

2020-06-02 Thread Andrei Vagin
CONFIG_TIME_NS is dependes on GENERIC_VDSO_TIME_NS. Reviewed-by: Vincenzo Frascino Signed-off-by: Andrei Vagin --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 5d513f461957..27d7e4ed1c93 100644 --- a/arch/arm64/Kconfig +++

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