Re: kernel panic: stack is corrupted in get_kernel_gp_address

2020-11-13 Thread Dmitry Vyukov
On Fri, Nov 13, 2020 at 9:27 AM syzbot wrote: > > syzbot suspects this issue was fixed by commit: > > commit a49145acfb975d921464b84fe00279f99827d816 > Author: George Kennedy > Date: Tue Jul 7 19:26:03 2020 + > > fbmem: add margin check to fb_check_caps() > > bisection log: https://syz

Re: [PATCH v2 16/25] arch: arm: mach-at91: pm: Move prototypes to mutually included header

2020-11-13 Thread Alexandre Belloni
On 12/11/2020 10:48:10+, Lee Jones wrote: > On Thu, 12 Nov 2020, Alexandre Belloni wrote: > > > Hi, > > > > On 12/11/2020 09:39:18+, Lee Jones wrote: > > > Both the caller and the supplier's source file should have access to > > > the include file containing the prototypes. > > > > > > F

[PATCH v2] iio: ad_sigma_delta: Don't put SPI transfer buffer on the stack

2020-11-13 Thread Alexandru Ardelean
From: Lars-Peter Clausen Use a heap allocated memory for the SPI transfer buffer. Using stack memory can corrupt stack memory when using DMA on some systems. This change moves the buffer from the stack of the trigger handler call to the heap of the buffer of the state struct. The size increases

[PATCH v1 0/4] Add bus format negotiation support for Cadence MHDP8546 driver

2020-11-13 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: Add output bus format negotiation Add minimal output bus format negotiation support. 2. drm: bridge: cdns-mhdp8546: Modif

[PATCH v1 2/4] drm: bridge: cdns-mhdp8546: Modify atomic_get_input_bus_format bridge function

2020-11-13 Thread Yuti Amonkar
Modify atomic_get_input_bus_format function to return input formats based on the output format instead of using hardcoded value. Signed-off-by: Yuti Amonkar --- .../drm/bridge/cadence/cdns-mhdp8546-core.c | 110 -- 1 file changed, 100 insertions(+), 10 deletions(-) diff --git

Re: [PATCH v2 2/2] firmware: arm_scmi: Augment SMC/HVC to allow optional interrupt

2020-11-13 Thread Sudeep Holla
On Thu, Nov 12, 2020 at 12:56:27PM -0500, Jim Quinlan wrote: > The SMC/HVC SCMI transport is modified to allow the completion of an SCMI > message to be indicated by an interrupt rather than the return of the smc > call. This accommodates the existing behavior of the BrcmSTB SCMI > "platform" whos

[PATCH v1 1/4] drm: bridge: cdns-mhdp8546: Add output bus format negotiation

2020-11-13 Thread Yuti Amonkar
This patch adds minimal output bus format negotiation support. Currently we are adding support for only MEDIA_BUS_FMT_FIXED. Signed-off-by: Yuti Amonkar --- .../drm/bridge/cadence/cdns-mhdp8546-core.c| 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/gpu/drm/brid

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

2020-11-13 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 a/drivers/gpu/drm/bridge/

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

2020-11-13 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 a/drivers/gpu/drm/bridge/caden

[PATCH] rtl8xxxu: remove the unused variable timeout value assignment

2020-11-13 Thread xiakaixu1987
From: Kaixu Xia The value of variable timeout is overwritten by the following statement in rtl8xxxu_gen1_init_aggregation(), so here the value assignment is useless. Remove it. Reported-by: Tosk Robot Signed-off-by: Kaixu Xia --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 2 +- 1

[PATCH v2] libfs: fix error cast of negative value in simple_attr_write()

2020-11-13 Thread Yicong Yang
The attr->set() receive a value of u64, but simple_strtoll() is used for doing the conversion. It will lead to the error cast if user inputs a negative value. Use kstrtoull() instead of simple_strtoll() to convert a string got from the user to an unsigned value. The former will return '-EINVAL' if

Re: [PATCH 19/19] mips/vdso: Migrate to user_landing

2020-11-13 Thread kernel test robot
Hi Dmitry, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on c34f157421f6905e6b4a79a312e9175dce2bc607] url: https://github.com/0day-ci/linux/commits/Dmitry-Safonov/Add-generic-user_landing-tracking/20201109-090354 base:c34f157421f6905e6b4a79a312e9175dce2b

Re: [PATCH v2 16/25] arch: arm: mach-at91: pm: Move prototypes to mutually included header

2020-11-13 Thread Lee Jones
On Fri, 13 Nov 2020, Alexandre Belloni wrote: > On 12/11/2020 10:48:10+, Lee Jones wrote: > > On Thu, 12 Nov 2020, Alexandre Belloni wrote: > > > > > Hi, > > > > > > On 12/11/2020 09:39:18+, Lee Jones wrote: > > > > Both the caller and the supplier's source file should have access to > >

Re: [RFT for v9] (Was Re: [PATCH v8 -tip 00/26] Core scheduling)

2020-11-13 Thread Ning, Hongyu
On 2020/11/13 17:22, Ning, Hongyu wrote: > On 2020/11/7 4:55, Joel Fernandes wrote: >> All, >> >> I am getting ready to send the next v9 series based on tip/master >> branch. Could you please give the below tree a try and report any results in >> your testing? >> git tree: >> https://git.kernel.o

Re: [PATCH v1 1/5] dt-binding: mfd: syscon: add Rockchip QoS register compatibles

2020-11-13 Thread Lee Jones
On Sat, 07 Nov 2020, Johan Jonker wrote: > With the conversion of syscon.yaml minItems for compatibles > was set to 2. Current Rockchip dtsi files only use "syscon" for > QoS registers. Add Rockchip QoS compatibles to reduce notifications > produced with: > > make ARCH=arm dtbs_check > DT_SCHEMA_

Re: [RFC PATCH v3 9/9] ipu3-cio2: Add functionality allowing software_node connections to sensors on platforms designed for Windows

2020-11-13 Thread Dan Scally
On 29/10/2020 22:51, Laurent Pinchart wrote: > Hi Andy, > > On Fri, Oct 30, 2020 at 12:22:15AM +0200, Andy Shevchenko wrote: >> On Thu, Oct 29, 2020 at 11:29:30PM +0200, Laurent Pinchart wrote: >>> On Thu, Oct 29, 2020 at 10:26:56PM +0200, Andy Shevchenko wrote: On Thu, Oct 29, 2020 at 10:21 P

[PATCH] soc: aspeed: Fix a reference leak in aspeed_socinfo_init()

2020-11-13 Thread Dan Carpenter
This needs to call of_node_put(np) before returning if of_iomap() fails. Fixes: e0218dca5787 ("soc: aspeed: Add soc info driver") Signed-off-by: Dan Carpenter --- drivers/soc/aspeed/aspeed-socinfo.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/soc/aspeed/aspeed-

Re: [PATCH 1/1] mfd: stmfx: fix dev_err_probe call in stmfx_chip_init

2020-11-13 Thread Lee Jones
On Tue, 10 Nov 2020, Amelie Delaunay wrote: > ret may be 0 so, dev_err_probe should be called only when ret is an error > code. > > Fixes: 41c9c06c491a ("mfd: stmfx: Simplify with dev_err_probe()") > Signed-off-by: Amelie Delaunay > --- > drivers/mfd/stmfx.c | 5 ++--- > 1 file changed, 2 inser

Re: [PATCH] mfd: rt5033: fix errorneous defines

2020-11-13 Thread Lee Jones
On Tue, 10 Nov 2020, michael.s...@seznam.cz wrote: > From: Michael Srba > > Fix regulators on rt5033 by converting some values to bitmasks which were > errorneously not defined as such in the header file. > > Cc: Beomho Seo > Fixes: 0b271258544b ("mfd: rt5033: Add Richtek RT5033 driver core."

Re: [PATCH v2] mfd: MFD_SL28CPLD should depends on ARCH_LAYERSCAPE

2020-11-13 Thread Lee Jones
On Tue, 10 Nov 2020, Geert Uytterhoeven wrote: > Currently the Kontron sl28cpld Board Management Controller is found only > on Kontron boards equipped with a Freescale Layerscape SoC. Hence add a > dependency on ARCH_LAYERSCAPE, to prevent asking the user about a driver > for this controller when

[PATCH] clk: qcom: lpass-sc7180: Clean up on error in lpass_sc7180_init()

2020-11-13 Thread Dan Carpenter
Clean up the first driver if the second driver can't be registered. Fixes: 4ee9fe3e292b ("clk: qcom: lpass-sc7180: Disentangle the two clock devices") Signed-off-by: Dan Carpenter --- drivers/clk/qcom/lpasscorecc-sc7180.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git

Re: [PATCH v2] mfd: kempld-core: Check for DMI definition before ACPI

2020-11-13 Thread Lee Jones
On Tue, 10 Nov 2020, Guenter Roeck wrote: > On Tue, Nov 10, 2020 at 03:23:21PM +, Michael Brunner wrote: > > Change the detection order to priorize DMI table entries over available > > ACPI entries. > > > > This makes it more easy for product developers to patch product specific > > handling

Re: [PATCH v2] mfd: kempld-core: Check for DMI definition before ACPI

2020-11-13 Thread Lee Jones
On Tue, 10 Nov 2020, Michael Brunner wrote: > Change the detection order to priorize DMI table entries over available > ACPI entries. > > This makes it more easy for product developers to patch product specific > handling into the driver. > Furthermore it allows to simplify the implementation a b

Re: [RFC PATCH v2] coresight: etm4x: Modify core-commit of cpu to avoid the overflow of HiSilicon ETM

2020-11-13 Thread Qi Liu
On 2020/11/12 22:03, Suzuki K Poulose wrote: > On 11/12/20 1:09 PM, Qi Liu wrote: >> >> >> On 2020/11/12 1:03, Mathieu Poirier wrote: >>> On Wed, Nov 11, 2020 at 04:58:23PM +0800, Qi Liu wrote: Hi Mathieu, On 2020/9/10 0:26, Mathieu Poirier wrote: > On Wed, Sep 09, 2020 at 12:

Re: [PATCH] clk: mvebu: a3700: fix the XTAL MODE pin to MPP1_9

2020-11-13 Thread Pali Rohár
Michael, Stephen: Could you take this clk patch? On Friday 06 November 2020 11:51:18 Marek Behún wrote: > Also, this is how A3720 WTMI code and ATF determines XTAL clock rate. > No reason for kernel to do it differently. > > Reviewed-by: Marek Behún > > On Fri, 6 Nov 2020 11:00:39 +0100 > Pali

Re: [PATCH v2] mfd: syscon: Add syscon_regmap_lookup_by_phandle_optional() function.

2020-11-13 Thread Lee Jones
On Tue, 10 Nov 2020, Enric Balletbo i Serra wrote: > This adds syscon_regmap_lookup_by_phandle_optional() function to get an > optional regmap. > > It behaves the same as syscon_regmap_lookup_by_phandle() except where > there is no regmap phandle. In this case, instead of returning -ENODEV, > the

Re: [PATCH] mfd: cpcap: Fix interrupt regression with regmap clear_ack

2020-11-13 Thread Lee Jones
On Wed, 11 Nov 2020, Tony Lindgren wrote: > With commit 3a6f0fb7b8eb ("regmap: irq: Add support to clear ack > registers"), the cpcap interrupts are no longer getting acked properly > leading to a very unresponsive device with CPUs fully loaded spinning > in the threaded IRQ handlers. > > To me i

Re: [RFC PATCH v2] coresight: etm4x: Modify core-commit of cpu to avoid the overflow of HiSilicon ETM

2020-11-13 Thread Suzuki K Poulose
On 11/13/20 10:18 AM, Qi Liu wrote: On 2020/11/12 22:03, Suzuki K Poulose wrote: On 11/12/20 1:09 PM, Qi Liu wrote: On 2020/11/12 1:03, Mathieu Poirier wrote: On Wed, Nov 11, 2020 at 04:58:23PM +0800, Qi Liu wrote: Hi Mathieu, On 2020/9/10 0:26, Mathieu Poirier wrote: On Wed, Sep 09, 20

Re: [PATCH V2] fs/ext2: Use ext2_put_page

2020-11-13 Thread Jan Kara
On Thu 12-11-20 09:42:44, ira.we...@intel.com wrote: > From: Ira Weiny > > There are 3 places in namei.c where the equivalent of ext2_put_page() is > open coded on a page which was returned from the ext2_get_page() call > [through the use of ext2_find_entry() and ext2_dotdot()]. > > Move ext2_pu

Re: [PATCH] arm64: dts: marvell: espressobin: Add support for LED2

2020-11-13 Thread Pali Rohár
On Monday 19 October 2020 14:25:37 Andrew Lunn wrote: > On Mon, Oct 19, 2020 at 10:04:08AM +0200, Pali Rohár wrote: > > Hello! Gregory, I would like to remind you following patch. > > Hi Pali > > Since the merge window is open at the moment, no new patches will be > accepted until it closes. > >

Re: 回复: [PATCH] kthread_worker: Add flush delayed work func

2020-11-13 Thread Petr Mladek
On Fri 2020-11-13 08:59:37, Zhang, Qiang wrote: > > > > 发件人: Andrew Morton > 发送时间: 2020年11月13日 8:01 > 收件人: Zhang, Qiang > 抄送: pmla...@suse.com; t...@kernel.org; linux...@kvack.org; > linux-kernel@vger.kernel.org > 主题: Re: [PATCH] kthread_worker: Add flus

Re: [PATCH v41 10/24] mm: Add 'mprotect' hook to struct vm_operations_struct

2020-11-13 Thread Mel Gorman
On Fri, Nov 13, 2020 at 12:01:21AM +0200, Jarkko Sakkinen wrote: > From: Sean Christopherson > > Background > == > > 1. SGX enclave pages are populated with data by copying from normal memory >via ioctl() (SGX_IOC_ENCLAVE_ADD_PAGES), which will be added later in >this series. > 2

Re: [PATCH v2] arm64: dts: marvell: espressobin: Update link to V7 schematic

2020-11-13 Thread Pali Rohár
Ping? On Monday 19 October 2020 10:19:33 Pali Rohár wrote: > Gregory, it is OK now? > > On Monday 05 October 2020 15:35:13 Pali Rohár wrote: > > Up-to-date version of V7 schematic is on new URL linked from official > > tech-spec webpage http://espressobin.net/tech-spec/ > > > > Signed-off-by: Pa

Re: [PATCH v2] cpuset: fix race between hotplug work and later CPU offline

2020-11-13 Thread Tejun Heo
Hello, On Fri, Nov 13, 2020 at 09:16:22AM +0100, Peter Zijlstra wrote: > Works for me. TJ, do I take this or do you want it in the cgroup tree? > > In that case: > > Acked-by: Peter Zijlstra (Intel) Please take it through the sched tree, and FWIW Acked-by: Tejun Heo Thank you. -- tejun

Re: [PATCH v4 10/19] sched: Fix migrate_disable() vs set_cpus_allowed_ptr()

2020-11-13 Thread Peter Zijlstra
On Thu, Nov 12, 2020 at 07:31:12PM +, Valentin Schneider wrote: > I think what is happening here is: > > affine_move_task() > // task_running() case > stop_one_cpu() > wait_for_completion(&pending->done); > > and this is !PREEMPT, so the stopper can very well hit: > >

drivers/vfio/pci/vfio_pci_nvlink2.c:100:9: error: implicit declaration of function 'mm_iommu_put'; did you mean

2020-11-13 Thread kernel test robot
Hi Chen, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 585e5b17b92dead8a3aca4e3c9876fbca5f7e0ba commit: ee8642162a9edd40daafd3fb894e3fd3f909e361 drm/nouveau: fix build error without CONFIG_IOMMU_API date: 10 mon

Re: rmk/for-next bisection: baseline.login on bcm2836-rpi-2-b

2020-11-13 Thread Guillaume Tucker
Hi Ard, Please see the bisection report below about a boot failure on RPi-2b. Reports aren't automatically sent to the public while we're trialing new bisection features on kernelci.org but this one looks valid. There's nothing in the serial console log, probably because it's crashing too early

Re: [PATCH v6 1/2] kunit: Support for Parameterized Testing

2020-11-13 Thread Marco Elver
On Fri, Nov 13, 2020 at 01:17PM +0800, David Gow wrote: > On Thu, Nov 12, 2020 at 8:37 PM Marco Elver wrote: [...] > > > (It also might be a little tricky with the current implementation to > > > produce the test plan, as the parameters come from a generator, and I > > > don't think there's a way

Re: [PATCH v4 bpf-next 4/5] bpf: load and verify kernel module BTFs

2020-11-13 Thread Jessica Yu
+++ Andrii Nakryiko [11/11/20 12:11 -0800]: On Wed, Nov 11, 2020 at 2:13 AM Jessica Yu wrote: +++ Andrii Nakryiko [09/11/20 17:19 -0800]: [snipped] >diff --git a/kernel/module.c b/kernel/module.c >index a4fa44a652a7..f2996b02ab2e 100644 >--- a/kernel/module.c >+++ b/kernel/module.c >@@ -380,6

Re: [PATCH v9 0/5] Exynos: Simple QoS for exynos-bus using interconnect

2020-11-13 Thread Sylwester Nawrocki
Hi Georgi, Chanwoo, On 13.11.2020 10:07, Chanwoo Choi wrote: > On 11/13/20 5:48 PM, Georgi Djakov wrote: >> On 11/12/20 16:09, Sylwester Nawrocki wrote: [...] >> >> Good work Sylwester! Thank you and all the reviewers! What would be the merge >> path for this patchset? Looks like there is no build

Re: linux-next: build failure after merge of the ext3 tree

2020-11-13 Thread Jan Kara
On Fri 13-11-20 10:47:36, Stephen Rothwell wrote: > Hi all, > > After merging the ext3 tree, today's linux-next build (powerpc > ppc64_defconfig) failed like this: > > In file included from fs/ext2/file.c:28: > fs/ext2/ext2.h: In function 'ext2_get_page': > fs/ext2/ext2.h:764:28: error: implicit

Re: rmk/for-next bisection: baseline.login on bcm2836-rpi-2-b

2020-11-13 Thread Ard Biesheuvel
On Fri, 13 Nov 2020 at 11:31, Guillaume Tucker wrote: > > Hi Ard, > > Please see the bisection report below about a boot failure on > RPi-2b. > > Reports aren't automatically sent to the public while we're > trialing new bisection features on kernelci.org but this one > looks valid. > > There's no

arch/arm/include/asm/arch_gicv3.h:44:2: error: implicit declaration of function 'write_sysreg'

2020-11-13 Thread kernel test robot
: arm-randconfig-r005-20201113 (attached as .config) compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https

[PATCH v3 2/5] mm, page_poison: use static key more efficiently

2020-11-13 Thread Vlastimil Babka
Commit 11c9c7edae06 ("mm/page_poison.c: replace bool variable with static key") changed page_poisoning_enabled() to a static key check. However, the function is not inlined, so each check still involves a function call with overhead not eliminated when page poisoning is disabled. Analogically to h

[PATCH v3 0/5] cleanup page poisoning

2020-11-13 Thread Vlastimil Babka
Changes since v2 [2] - rebase to next-20201113 - apply review feedback from David - acks from David and Rafael (thanks!) The first version was called "optimize handling of memory debugging parameters" [1], changes are: - apply review feedback - drop former Patch 3 - add new patches 3

[PATCH v3 3/5] kernel/power: allow hibernation with page_poison sanity checking

2020-11-13 Thread Vlastimil Babka
Page poisoning used to be incompatible with hibernation, as the state of poisoned pages was lost after resume, thus enabling CONFIG_HIBERNATION forces CONFIG_PAGE_POISONING_NO_SANITY. For the same reason, the poisoning with zeroes variant CONFIG_PAGE_POISONING_ZERO used to disable hibernation. The

[PATCH v3 4/5] mm, page_poison: remove CONFIG_PAGE_POISONING_NO_SANITY

2020-11-13 Thread Vlastimil Babka
CONFIG_PAGE_POISONING_NO_SANITY skips the check on page alloc whether the poison pattern was corrupted, suggesting a use-after-free. The motivation to introduce it in commit 8823b1dbc05f ("mm/page_poison.c: enable PAGE_POISONING as a separate option") was to simply sanitize freed pages, optimally t

[PATCH v3 1/5] mm, page_alloc: do not rely on the order of page_poison and init_on_alloc/free parameters

2020-11-13 Thread Vlastimil Babka
Enabling page_poison=1 together with init_on_alloc=1 or init_on_free=1 produces a warning in dmesg that page_poison takes precedence. However, as these warnings are printed in early_param handlers for init_on_alloc/free, they are not printed if page_poison is enabled later on the command line (hand

[PATCH v3 5/5] mm, page_poison: remove CONFIG_PAGE_POISONING_ZERO

2020-11-13 Thread Vlastimil Babka
CONFIG_PAGE_POISONING_ZERO uses the zero pattern instead of 0xAA. It was introduced by commit 1414c7f4f7d7 ("mm/page_poisoning.c: allow for zero poisoning"), noting that using zeroes retains the benefit of sanitizing content of freed pages, with the benefit of not having to zero them again on alloc

Re: [PATCH v2 0/2] iommu/arm-smmu-v3: Improve cmdq lock efficiency

2020-11-13 Thread John Garry
On 21/09/2020 14:58, John Garry wrote: On 21/09/2020 14:43, Will Deacon wrote: On Fri, Aug 21, 2020 at 09:54:20PM +0800, John Garry wrote: As mentioned in [0], the CPU may consume many cycles processing arm_smmu_cmdq_issue_cmdlist(). One issue we find is the cmpxchg() loop to get space on the

Re: [PATCH v2 3/3] net: xfrm: use core API for updating/providing stats

2020-11-13 Thread Heiner Kallweit
Am 13.11.2020 um 10:07 schrieb Lev Stipakov: > Commit d3fd65484c781 ("net: core: add dev_sw_netstats_tx_add") has added > function "dev_sw_netstats_tx_add()" to update net device per-cpu TX > stats. > > Use this function instead of own code. > > While on it, remove xfrmi_get_stats64() and replace

Re: [PATCH v2 1/3] net: mac80211: use core API for updating TX/RX stats

2020-11-13 Thread Heiner Kallweit
Am 13.11.2020 um 09:58 schrieb Lev Stipakov: > Commits > > d3fd65484c781 ("net: core: add dev_sw_netstats_tx_add") > 451b05f413d3f ("net: netdevice.h: sw_netstats_rx_add helper) > > have added API to update net device per-cpu TX/RX stats. > > Use core API instead of ieee80211_tx/rx_stats().

Re: [PATCH v2 2/3] net: openvswitch: use core API to update/provide stats

2020-11-13 Thread Heiner Kallweit
Am 13.11.2020 um 10:02 schrieb Lev Stipakov: > Commit d3fd65484c781 ("net: core: add dev_sw_netstats_tx_add") has added > function "dev_sw_netstats_tx_add()" to update net device per-cpu TX > stats. > > Use this function instead of own code. > > While on it, remove internal_get_stats() and replac

Re: [PATCH v4 1/1] lib/vsprintf: Add support for printing V4L2 and DRM fourccs

2020-11-13 Thread Sakari Ailus
Hi Joe, On Tue, Nov 03, 2020 at 08:49:36AM -0800, Joe Perches wrote: > On Tue, 2020-11-03 at 16:56 +0200, Sakari Ailus wrote: > > On Tue, Nov 03, 2020 at 04:47:47PM +0200, Andy Shevchenko wrote: > > > On Tue, Nov 03, 2020 at 03:34:00PM +0200, Sakari Ailus wrote: > > > > Add a printk modifier %p4cc

Re: [PATCH v2 1/3] net: mac80211: use core API for updating TX/RX stats

2020-11-13 Thread Johannes Berg
On Fri, 2020-11-13 at 10:58 +0200, Lev Stipakov wrote: > Commits > > d3fd65484c781 ("net: core: add dev_sw_netstats_tx_add") > 451b05f413d3f ("net: netdevice.h: sw_netstats_rx_add helper) > > have added API to update net device per-cpu TX/RX stats. > > Use core API instead of ieee80211_tx/rx

[PATCH v5 1/1] lib/vsprintf: Add support for printing V4L2 and DRM fourccs

2020-11-13 Thread Sakari Ailus
Add a printk modifier %p4cc (for pixel format) for printing V4L2 and DRM pixel formats denoted by fourccs. The fourcc encoding is the same for both so the same implementation can be used. Suggested-by: Mauro Carvalho Chehab Signed-off-by: Sakari Ailus --- since v4: - Use correct destination for

Re: [PATCH v9 0/5] Exynos: Simple QoS for exynos-bus using interconnect

2020-11-13 Thread Marek Szyprowski
Hi Sylwester, On 13.11.2020 11:32, Sylwester Nawrocki wrote: > On 13.11.2020 10:07, Chanwoo Choi wrote: >> On 11/13/20 5:48 PM, Georgi Djakov wrote: >>> On 11/12/20 16:09, Sylwester Nawrocki wrote: > [...] >>> Good work Sylwester! Thank you and all the reviewers! What would be the >>> merge >>> p

[PATCH v4 02/21] mm/memory_hotplug: Move {get,put}_page_bootmem() to bootmem_info.c

2020-11-13 Thread Muchun Song
In the later patch, we will use {get,put}_page_bootmem() to initialize the page for vmemmap or free vmemmap page to buddy. So move them out of CONFIG_MEMORY_HOTPLUG_SPARSE. This is just code movement without any functional change. Signed-off-by: Muchun Song Acked-by: Mike Kravetz --- arch/x86/m

Re: [PATCH 03/24] perf: Add build id data in mmap2 event

2020-11-13 Thread Jiri Olsa
On Fri, Nov 13, 2020 at 01:29:35PM +0900, Namhyung Kim wrote: SNIP > > > > struct { > > struct perf_event_headerheader; > > @@ -7997,13 +8003,23 @@ static void perf_event_mmap_output(struct > > perf_event *event, > > mmap_event->event_id.pid = perf_event_pid(event,

[PATCH v4 04/21] mm/hugetlb: Introduce nr_free_vmemmap_pages in the struct hstate

2020-11-13 Thread Muchun Song
If the size of HugeTLB page is 2MB, we need 512 struct page structures (8 pages) to be associated with it. As far as I know, we only use the first 4 struct page structures. Use of first 4 struct page structures comes from HUGETLB_CGROUP_MIN_ORDER. For tail pages, the value of compound_head is the

[PATCH v4 06/21] mm/bootmem_info: Introduce {free,prepare}_vmemmap_page()

2020-11-13 Thread Muchun Song
In the later patch, we can use the free_vmemmap_page() to free the unused vmemmap pages and initialize a page for vmemmap page using via prepare_vmemmap_page(). Signed-off-by: Muchun Song --- include/linux/bootmem_info.h | 24 1 file changed, 24 insertions(+) diff --git

[PATCH v4 07/21] mm/bootmem_info: Combine bootmem info and type into page->freelist

2020-11-13 Thread Muchun Song
The page->private shares storage with page->ptl. In the later patch, we will use the page->ptl. So here we combine bootmem info and type into page->freelist so that we can do not use page->private. Signed-off-by: Muchun Song --- arch/x86/mm/init_64.c| 2 +- include/linux/bootmem_info.h

[tip:x86/urgent] BUILD SUCCESS 77c7e1bc060deab6430f1dff5922ccd3093d9776

2020-11-13 Thread kernel test robot
-20201113 i386 randconfig-a005-20201113 i386 randconfig-a002-20201113 i386 randconfig-a001-20201113 i386 randconfig-a003-20201113 i386 randconfig-a004-20201113 x86_64 randconfig-a015-20201113 x86_64

[PATCH v4 11/21] mm/hugetlb: Allocate the vmemmap pages associated with each hugetlb page

2020-11-13 Thread Muchun Song
When we free a hugetlb page to the buddy, we should allocate the vmemmap pages associated with it. We can do that in the __free_hugepage(). Signed-off-by: Muchun Song --- mm/hugetlb.c | 2 ++ mm/hugetlb_vmemmap.c | 100 +++ mm/hugetlb_vme

[PATCH v4 16/21] mm/hugetlb: Flush work when dissolving hugetlb page

2020-11-13 Thread Muchun Song
We should flush work when dissolving a hugetlb page to make sure that the hugetlb page is freed to the buddy. Signed-off-by: Muchun Song --- mm/hugetlb.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index b853aacd5c16..9aad0b6

[PATCH v4 14/21] mm/hugetlb: Support freeing vmemmap pages of gigantic page

2020-11-13 Thread Muchun Song
The gigantic page is allocated by bootmem, if we want to free the unused vmemmap pages. We also should allocate the page table. So we also allocate page tables from bootmem. Signed-off-by: Muchun Song --- include/linux/hugetlb.h | 3 +++ mm/hugetlb.c| 5 + mm/hugetlb_vmemmap.c

[PATCH v4 18/21] mm/hugetlb: Merge pte to huge pmd only for gigantic page

2020-11-13 Thread Muchun Song
Merge pte to huge pmd if it has ever been split. Now only support gigantic page which's vmemmap pages size is an integer multiple of PMD_SIZE. This is the simplest case to handle. Signed-off-by: Muchun Song --- arch/x86/include/asm/hugetlb.h | 8 +++ mm/hugetlb_vmemmap.c | 118 ++

[PATCH v4 17/21] mm/hugetlb: Add a kernel parameter hugetlb_free_vmemmap

2020-11-13 Thread Muchun Song
Add a kernel parameter hugetlb_free_vmemmap to disable the feature of freeing unused vmemmap pages associated with each hugetlb page on boot. Signed-off-by: Muchun Song --- Documentation/admin-guide/kernel-parameters.txt | 9 + Documentation/admin-guide/mm/hugetlbpage.rst| 3 +++ m

[PATCH v3 3/4] arm64: dts: imx8m: add nvmem-cell related stuff

2020-11-13 Thread Alice Guo
Add nvmem-cell related stuff for the soc unique ID. Signed-off-by: Alice Guo --- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 6 ++ arch/arm64/boot/dts/freescale/imx8mn.dtsi | 6 ++ arch/arm64/boot/dts/freescale/imx8mp.dtsi | 6 ++ arch/arm64/boot/dts/freescale/imx8mq.dtsi | 6 ++

[tip: x86/urgent] iommu/vt-d: Cure VF irqdomain hickup

2020-11-13 Thread tip-bot2 for Thomas Gleixner
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: ff828729be446b86957f7c294068758231cd2183 Gitweb: https://git.kernel.org/tip/ff828729be446b86957f7c294068758231cd2183 Author:Thomas Gleixner AuthorDate:Thu, 12 Nov 2020 20:14:16 +01:00 Commit

[PATCH v4 20/21] mm/hugetlb: Add BUILD_BUG_ON to catch invalid usage of tail struct page

2020-11-13 Thread Muchun Song
There are only `RESERVE_VMEMMAP_SIZE / sizeof(struct page)` struct pages can be used when CONFIG_HUGETLB_PAGE_FREE_VMEMMAP, so add a BUILD_BUG_ON to catch this invalid usage of tail struct page. Signed-off-by: Muchun Song --- mm/hugetlb_vmemmap.c | 3 +++ 1 file changed, 3 insertions(+) diff --

Re: [PATCH] kfence: Avoid stalling work queue task without allocations

2020-11-13 Thread Marco Elver
On Thu, Nov 12, 2020 at 12:00PM -0800, Paul E. McKenney wrote: > On Thu, Nov 12, 2020 at 07:12:54PM +0100, Marco Elver wrote: > > On Thu, Nov 12, 2020 at 09:54AM -0800, Paul E. McKenney wrote: > > > On Thu, Nov 12, 2020 at 05:14:39PM +0100, Marco Elver wrote: > > > > On Thu, Nov 12, 2020 at 01:49PM

Re: [PATCH v2 1/2] arm: lib: xor-neon: remove unnecessary GCC < 4.6 warning

2020-11-13 Thread Adrian Ratiu
Hi Ard, On Fri, 13 Nov 2020, Ard Biesheuvel wrote: On Thu, 12 Nov 2020 at 22:23, Adrian Ratiu wrote: From: Nathan Chancellor Drop warning because kernel now requires GCC >= v4.9 after commit 6ec4476ac825 ("Raise gcc version requirement to 4.9"). Reported-by: Nick Desaulniers Signed-

Re: Regression: QCA6390 fails with "mm/page_alloc: place pages to tail in __free_pages_core()"

2020-11-13 Thread Carl Huang
On 2020-11-13 16:17, Pavel Procopiuc wrote: Op 12.11.2020 om 11:48 schreef David Hildenbrand: Trying to understand the code, it looks like there are always two rounds of reqests. The first one always fails ("requesting one big chunk of DMA memory"), the second one (providing multiple chunks of

Re: [PATCH 24/24] perf record: Add --buildid-mmap option to enable mmap's build id

2020-11-13 Thread Jiri Olsa
On Fri, Nov 13, 2020 at 01:40:00PM +0900, Namhyung Kim wrote: > On Mon, Nov 09, 2020 at 10:54:15PM +0100, Jiri Olsa wrote: > > Adding --buildid-mmap option to enable build id in mmap2 events. > > It will only work if there's kernel support for that and it disables > > build id cache (implies --no-b

Re: [PATCH] KVM: x86: clflushopt should be treated as a no-op by emulation

2020-11-13 Thread Joao Martins
On 11/3/20 12:04 PM, David Edmondson wrote: > The instruction emulator ignores clflush instructions, yet fails to > support clflushopt. Treat both similarly. > > Fixes: 13e457e0eebf ("KVM: x86: Emulator does not decode clflush well") > Signed-off-by: David Edmondson FWIW, Reviewed-by: Joao Mart

[PATCH 4/4] MIPS: mm: Clean up setup of protection map

2020-11-13 Thread Thomas Bogendoerfer
Protection map difference between RIXI and non RIXI cpus is _PAGE_NO_EXEC and _PAGE_NO_READ usage. Both already take care of cpu_has_rixi while setting up the page bits. So we just need one setup of protection map and can drop the now unused (and broken for RIXI) PAGE_* defines. Signed-off-by: Tho

[PATCH 1/4] MIPS: vdso: Use vma page protection for remapping

2020-11-13 Thread Thomas Bogendoerfer
MIPS protection bits are setup during runtime so using defines like PAGE_READONLY ignores these runtime changes. To fix this we simply use the page protection of the setup vma. Signed-off-by: Thomas Bogendoerfer --- arch/mips/kernel/vdso.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-

Re: [PATCH 15/24] perf tools: Synthesize build id for kernel/modules/tasks

2020-11-13 Thread Jiri Olsa
On Fri, Nov 13, 2020 at 01:32:22PM +0900, Namhyung Kim wrote: > On Mon, Nov 09, 2020 at 10:54:06PM +0100, Jiri Olsa wrote: > > Adding build id to synthesized mmap2 events for > > everything - kernel/modules/tasks. > > > > Signed-off-by: Jiri Olsa > > --- > > tools/perf/util/synthetic-events.c |

[PATCH 2/4] MIPS: kvm: Use vm_get_page_prot to get protection bits

2020-11-13 Thread Thomas Bogendoerfer
MIPS protection bits are setup during runtime so using defines like PAGE_SHARED ignores this runtime changes. Using vm_get_page_prot to get correct page protection fixes this. Signed-off-by: Thomas Bogendoerfer --- arch/mips/kvm/mmu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) dif

[PATCH v2 net] devlink: Add missing genlmsg_cancel() in devlink_nl_sb_port_pool_fill()

2020-11-13 Thread Wang Hai
If sb_occ_port_pool_get() failed in devlink_nl_sb_port_pool_fill(), msg should be canceled by genlmsg_cancel(). Fixes: df38dafd2559 ("devlink: implement shared buffer occupancy monitoring interface") Reported-by: Hulk Robot Signed-off-by: Wang Hai --- v1->v2: use goto instead of direct return

[PATCH v4 21/21] mm/hugetlb: Disable freeing vmemmap if struct page size is not power of two

2020-11-13 Thread Muchun Song
We only can free the unused vmemmap to the buddy system when the size of struct page is a power of two. Signed-off-by: Muchun Song --- mm/hugetlb_vmemmap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/hugetlb_vmemmap.c b/mm/hugetlb_vmemmap.c index f67aec6e3bb1..a0a5df

[RFC] lockdep: Put graph lock/unlock under lock_recursion protection

2020-11-13 Thread Boqun Feng
A warning was hit when running xfstests/generic/068 in a Hyper-V guest: [...] [ cut here ] [...] DEBUG_LOCKS_WARN_ON(lockdep_hardirqs_enabled()) [...] WARNING: CPU: 2 PID: 1350 at kernel/locking/lockdep.c:5280 check_flags.part.0+0x165/0x170 [...] ... [...] Workqueue: event

[PATCH v4 19/21] mm/hugetlb: Gather discrete indexes of tail page

2020-11-13 Thread Muchun Song
For hugetlb page, there are more metadata to save in the struct page. But the head struct page cannot meet our needs, so we have to abuse other tail struct page to store the metadata. In order to avoid conflicts caused by subsequent use of more tail struct pages, we can gather these discrete indexe

Re: [PATCH v9 30/44] arm64: kasan: Allow enabling in-kernel MTE

2020-11-13 Thread Vincenzo Frascino
Hi Catalin, On 11/12/20 9:43 AM, Catalin Marinas wrote: > On Tue, Nov 10, 2020 at 11:10:27PM +0100, Andrey Konovalov wrote: >> From: Vincenzo Frascino >> >> Hardware tag-based KASAN relies on Memory Tagging Extension (MTE) >> feature and requires it to be enabled. MTE supports >> >> This patch ad

[PATCH 3/4] MIPS: mm: shorten lines by using macro

2020-11-13 Thread Thomas Bogendoerfer
Introduce helper macro to make lines shorter. Signed-off-by: Thomas Bogendoerfer --- arch/mips/mm/cache.c | 38 +- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/arch/mips/mm/cache.c b/arch/mips/mm/cache.c index 3e81ba96..f66a8bfc030e 1006

[PATCH v3 2/4] arm64: dts: imx8m: add compatible string to .dtsi file

2020-11-13 Thread Alice Guo
Add compatible string to .dtsi file for binding of imx8_soc_init_driver and device. Signed-off-by: Alice Guo --- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 2 +- arch/arm64/boot/dts/freescale/imx8mn.dtsi | 2 +- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 2 +- arch/arm64/boot/dts/freescale/imx

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

2020-11-13 Thread Alice Guo
Directly reading ocotp register depends on that bootloader enables ocotp clk, which is not always effective, so change to use nvmem API. Using nvmem API requires to support driver defer probe and thus change soc-imx8m.c to use platform driver. The other reason is that directly reading ocotp regist

[PATCH v3 1/4] dt-bindings: soc: imx8m: add DT Binding doc for soc unique ID

2020-11-13 Thread Alice Guo
Add DT Binding doc for the Unique ID of i.MX 8M series. Signed-off-by: Alice Guo --- .../devicetree/bindings/arm/fsl.yaml | 25 +++ 1 file changed, 25 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bindings/arm/fsl.

[PATCH v4 15/21] mm/hugetlb: Set the PageHWPoison to the raw error page

2020-11-13 Thread Muchun Song
Because we reuse the first tail page, if we set PageHWPosion on a tail page. It indicates that we may set PageHWPoison on a series of pages. So we can use the head[4].mapping to record the real error page index and set the raw error page PageHWPoison later. Signed-off-by: Muchun Song --- mm/huge

[PATCH v4 13/21] mm/hugetlb: Use PG_slab to indicate split pmd

2020-11-13 Thread Muchun Song
When we allocate hugetlb page from buddy, we may need split huge pmd to pte. When we free the hugetlb page, we can merge pte to pmd. So we need to distinguish whether the previous pmd has been split. The page table is not allocated from slab. So we can reuse the PG_slab to indicate that the pmd has

[PATCH v4 08/21] mm/hugetlb: Initialize page table lock for vmemmap

2020-11-13 Thread Muchun Song
In the later patch, we will use the vmemmap page table lock to guard the splitting of the vmemmap PMD. So initialize the vmemmap page table lock. Signed-off-by: Muchun Song --- mm/hugetlb_vmemmap.c | 69 1 file changed, 69 insertions(+) diff

Re: [PATCH v2 2/2] arm: lib: xor-neon: move pragma options to makefile

2020-11-13 Thread Adrian Ratiu
On Fri, 13 Nov 2020, Ard Biesheuvel wrote: On Thu, 12 Nov 2020 at 22:23, Adrian Ratiu wrote: Using a pragma like GCC optimize is a bad idea because it tags all functions with an __attribute__((optimize)) which replaces optimization options rather than appending so could result in dropping

[PATCH v4 12/21] mm/hugetlb: Introduce remap_huge_page_pmd_vmemmap helper

2020-11-13 Thread Muchun Song
The __free_huge_page_pmd_vmemmap and __remap_huge_page_pmd_vmemmap are almost the same code. So introduce remap_free_huge_page_pmd_vmemmap helper to simplify the code. Signed-off-by: Muchun Song --- mm/hugetlb_vmemmap.c | 108 +-- 1 file changed, 4

[PATCH v4 10/21] mm/hugetlb: Defer freeing of hugetlb pages

2020-11-13 Thread Muchun Song
In the subsequent patch, we will allocate the vmemmap pages when free huge pages. But update_and_free_page() is be called from a non-task context(and hold hugetlb_lock), we can defer the actual freeing in a workqueue to prevent use GFP_ATOMIC to allocate the vmemmap pages. Signed-off-by: Muchun So

Re: [PATCH] um: random: register random as hwrng-core device

2020-11-13 Thread Anton Ivanov
On 27/10/2020 15:30, Christopher Obbard wrote: The UML random driver creates a dummy device under the guest, /dev/hw_random. When this file is read from the guest, the driver reads from the host machine's /dev/random, in-turn reading from the host kernel's entropy pool. This entropy pool could

[PATCH v4 09/21] mm/hugetlb: Free the vmemmap pages associated with each hugetlb page

2020-11-13 Thread Muchun Song
When we allocate a hugetlb page from the buddy, we should free the unused vmemmap pages associated with it. We can do that in the prep_new_huge_page(). Signed-off-by: Muchun Song --- arch/x86/include/asm/hugetlb.h | 9 ++ arch/x86/include/asm/pgtable_64_types.h | 8 ++ mm/hugetlb.c

[PATCH v4 05/21] mm/hugetlb: Introduce pgtable allocation/freeing helpers

2020-11-13 Thread Muchun Song
On x86_64, vmemmap is always PMD mapped if the machine has hugepages support and if we have 2MB contiguos pages and PMD aligned. If we want to free the unused vmemmap pages, we have to split the huge pmd firstly. So we should pre-allocate pgtable to split PMD to PTE. Signed-off-by: Muchun Song --

[PATCH v4 03/21] mm/hugetlb: Introduce a new config HUGETLB_PAGE_FREE_VMEMMAP

2020-11-13 Thread Muchun Song
The purpose of introducing HUGETLB_PAGE_FREE_VMEMMAP is to configure whether to enable the feature of freeing unused vmemmap associated with HugeTLB pages. Now only support x86. Signed-off-by: Muchun Song --- arch/x86/mm/init_64.c | 2 +- fs/Kconfig| 14 ++ 2 files chang

Re: [PATCH RESEND 0/4] regulator: debugging and fixing supply deps

2020-11-13 Thread Ahmad Fatoum
Hello Michał, On 11/13/20 1:20 AM, Michał Mirosław wrote: > It turns out that commit aea6cb99703e ("regulator: resolve supply > after creating regulator") exposed a number of issues in regulator > initialization and introduced a memory leak of its own. One uncovered > problem was already fixed by

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