[RFC/PATCH 04/11] mfd: bcm2835-pm: Add support for BCM2711

2021-02-05 Thread Nicolas Saenz Julienne
In BCM2711 the new ARGON ASB took over V3D. The old ASB is still present with the ISP and H264 bits, and V3D is in the same place in the new ASB as the old one. As per the devicetree bindings, BCM2711 will provide both the old and new ASB registers, so get both of them and pass them into 'bcm2835-

[RFC/PATCH 03/11] ARM: dts: bcm2711: Use proper compatible in PM/Watchdog node

2021-02-05 Thread Nicolas Saenz Julienne
A new compatible string was introduced specifically for BCM2711, so make use of it. Signed-off-by: Nicolas Saenz Julienne --- arch/arm/boot/dts/bcm2711.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/bcm2711.dtsi b/arch/arm/boot/dts/bcm2711.dtsi index 4

[RFC/PATCH 02/11] dt-bindings: soc: bcm: brcm,bcm2835-pm: Add support for bcm2711

2021-02-05 Thread Nicolas Saenz Julienne
Add a new compatible string for bcm2711 and the option to provide a third reg property for the board's new Argon ASB. The new Argon ASB took over V3D, which is our only consumer of this driver so far. The old ASB is still be present with ISP and H264 bits but no V3D. Signed-off-by: Nicolas Saenz

[RFC/PATCH 01/11] dt-bindings: soc: bcm: bcm2835-pm: Convert bindings to DT schema

2021-02-05 Thread Nicolas Saenz Julienne
This converts the brcm,bcm2835-pc bindings from text to proper schema. Signed-off-by: Nicolas Saenz Julienne --- .../bindings/soc/bcm/brcm,bcm2835-pm.txt | 46 --- .../bindings/soc/bcm/brcm,bcm2835-pm.yaml | 79 +++ 2 files changed, 79 insertions(+), 46 deletions

Re: [PATCH 1/8] sched/fair: Clean up active balance nr_balance_failed trickery

2021-02-05 Thread Vincent Guittot
On Thu, 28 Jan 2021 at 19:32, Valentin Schneider wrote: > > When triggering an active load balance, sd->nr_balance_failed is set to > such a value that any further can_migrate_task() using said sd will ignore > the output of task_hot(). > > This behaviour makes sense, as active load balance intent

Re: [PATCH v28 04/12] landlock: Add ptrace restrictions

2021-02-05 Thread Serge E. Hallyn
On Tue, Feb 02, 2021 at 05:27:02PM +0100, Mickaël Salaün wrote: > From: Mickaël Salaün > > Using ptrace(2) and related debug features on a target process can lead > to a privilege escalation. Indeed, ptrace(2) can be used by an attacker > to impersonate another task and to remain undetected whil

Re: [PATCH 1/2] mm: provide a sane PTE walking API for modules

2021-02-05 Thread Jason Gunthorpe
On Fri, Feb 05, 2021 at 05:32:58AM -0500, Paolo Bonzini wrote: > Currently, the follow_pfn function is exported for modules but > follow_pte is not. However, follow_pfn is very easy to misuse, > because it does not provide protections (so most of its callers > assume the page is writable!) and bec

[PATCH 2/4] thermal: ti-soc-thermal: Fix stuck sensor with continuous mode for 4430

2021-02-05 Thread Tony Lindgren
At least for 4430, trying to use the single conversion mode eventually hangs the thermal sensor. This can be quite easily seen with errors: thermal thermal_zone0: failed to read out thermal zone (-5) Also, trying to read the temperature shows a stuck value with: $ while true; do cat /sys/class/t

Re: [PATCH V3 1/5] perf/core: Add PERF_SAMPLE_WEIGHT_STRUCT

2021-02-05 Thread Liang, Kan
On 2/5/2021 5:43 AM, Namhyung Kim wrote: On Fri, Feb 5, 2021 at 12:24 AM Liang, Kan wrote: On 2/4/2021 9:00 AM, Namhyung Kim wrote: Hi Kan, On Sat, Jan 30, 2021 at 2:25 AM Liang, Kan wrote: [SNIP] diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h index b15e3

[PATCHv2 0/4] Thermal fixes for omaps for single mode read

2021-02-05 Thread Tony Lindgren
Hi all, Here's v2 set of thermal fixes for single mode read. Turns out the EOCZ and SOC bit handling is quite different between the various SoCs. With these changes we fix the following issues for reading a single sample: - Get rid of pointless register access and loops for dra7 - Fix omap3 to

Re: [PATCH] drivers: mtd: Better word replace a not so good word in the file mtd_blkdevs.c

2021-02-05 Thread Miquel Raynal
Hi Bhaskar, Bhaskar Chowdhury wrote on Fri, 5 Feb 2021 18:11:51 +0530: > s/fucking/invite/ > > > Signed-off-by: Bhaskar Chowdhury > --- > drivers/mtd/mtd_blkdevs.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mtd/mtd_blkdevs.c b/drivers/mtd/mtd_blkdevs.c

[GIT PULL] MMC fixes for v5.11-rc7

2021-02-05 Thread Ulf Hansson
Hi Linus, Here's a PR with a couple of MMC fixes intended for v5.11-rc7. Details about the highlights are as usual found in the signed tag. Please pull this in! Kind regards Ulf Hansson The following changes since commit 1048ba83fb1c00cd24172e23e8263972f6b5d9ac: Linux 5.11-rc6 (2021-01-31 1

Re: [PATCH v19 04/25] x86/cpufeatures: Introduce X86_FEATURE_CET and setup functions

2021-02-05 Thread Borislav Petkov
On Wed, Feb 03, 2021 at 02:55:26PM -0800, Yu-cheng Yu wrote: > @@ -1252,6 +1260,13 @@ static void __init cpu_parse_early_param(void) > if (cmdline_find_option_bool(boot_command_line, "noxsaves")) > setup_clear_cpu_cap(X86_FEATURE_XSAVES); > > +#ifdef CONFIG_X86_CET > + if

Re: [PATCH] media: pwc: Fix the URB buffer allocation

2021-02-05 Thread Takashi Iwai
On Fri, 05 Feb 2021 14:13:02 +0100, Andrew Lunn wrote: > > Hi Takashi > > > Indeed, looks so. In most cases, this doesn't matter since both point > > to the same device object. In some cases like xhci-plat HCD, they > > differ. And sysdev might be a better choice from the consistency > > POV.

Re: [PATCH net-next 2/7] net: ipa: synchronize NAPI only for suspend

2021-02-05 Thread Alex Elder
On 2/4/21 10:53 PM, Jakub Kicinski wrote: > On Wed, 3 Feb 2021 09:28:50 -0600 Alex Elder wrote: >> int gsi_channel_suspend(struct gsi *gsi, u32 channel_id, bool stop) >> { >> struct gsi_channel *channel = &gsi->channel[channel_id]; >> +int ret; >> >> -return __gsi_channel_stop(cha

Re: [RESEND RFC: timer passthrough 0/9] Support timer passthrough for VM

2021-02-05 Thread Paolo Bonzini
On 05/02/21 11:03, Zhimin Feng wrote: The main motivation for this patch is to improve the performance of VM. This patch series introduces how to enable the timer passthrough in non-root mode. The main idea is to offload the host timer to the preemtion timer in non-root mode. Through doing this,

Re: [PATCH v3 1/2] mtd: spi-nor: Add Global Block Unlock command

2021-02-05 Thread Tudor Ambarus
On Thu, 21 Jan 2021 13:05:45 +0200, Tudor Ambarus wrote: > The Global Block Unlock command has different names depending > on the manufacturer, but always the same command value: 0x98. > Macronix's MX25U12835F names it Gang Block Unlock, Winbond's > W25Q128FV names it Global Block Unlock and Microc

Re: [PATCH v3 09/13] vhost/vdpa: remove vhost_vdpa_config_validate()

2021-02-05 Thread Michael S. Tsirkin
On Fri, Feb 05, 2021 at 10:16:51AM +0100, Stefano Garzarella wrote: > On Fri, Feb 05, 2021 at 11:27:32AM +0800, Jason Wang wrote: > > > > On 2021/2/5 上午1:22, Stefano Garzarella wrote: > > > get_config() and set_config() callbacks in the 'struct vdpa_config_ops' > > > usually already validated the

[PATCH v10 0/7] Support running driver's probe for a device powered off

2021-02-05 Thread Sakari Ailus
Hello everyone, These patches enable calling (and finishing) a driver's probe function without powering on the respective device on busses where the practice is to power on the device for probe. While it generally is a driver's job to check the that the device is there, there are cases where it mi

[PATCH v10 7/7] at24: Support probing while off

2021-02-05 Thread Sakari Ailus
In certain use cases (where the chip is part of a camera module, and the camera module is wired together with a camera privacy LED), powering on the device during probe is undesirable. Add support for the at24 to execute probe while being powered off. For this to happen, a hint in form of a device

[PATCH v10 5/7] ov5670: Support probe whilst the device is in a low power state

2021-02-05 Thread Sakari Ailus
Tell ACPI device PM code that the driver supports the device being in a low power state when the driver's probe function is entered. Also do identification on the first access of the device, whether in probe or when starting streaming. Signed-off-by: Sakari Ailus Reviewed-by: Tomasz Figa --- d

[PATCH v10 4/7] ACPI: Add a convenience function to tell a device is in low power state

2021-02-05 Thread Sakari Ailus
Add a convenience function to tell whether a device is in low power state, primarily for use in drivers' probe or remove functions on busses where the custom is to power on the device for the duration of both. Returns false on non-ACPI systems. Suggested-by: Mika Westerberg Signed-off-by: Sakari

Re: [PATCH net-next 3/8] net: dsa: microchip: add DSA support for microchip lan937x

2021-02-05 Thread Andrew Lunn
> > > +bool lan937x_is_internal_tx_phy_port(struct ksz_device *dev, int > > > port) > > > +{ > > > + /* Check if the port is internal tx phy port */ > > > > What is an internal TX phy port? Is it actually a conventional t2 > > Fast > > Ethernet port, as opposed to a t1 port? > This is 100 Base

Re: [patch 05/12] x86/irq: Provide macro for inlining irq stack switching

2021-02-05 Thread Thomas Gleixner
Uros, On Fri, Feb 05 2021 at 12:03, Uros Bizjak wrote: can you please fix your mail client to generate at least the 'In-Reply-to:' header? Lacking that header breaks threading on lore: https://lore.kernel.org/lkml/20210204204903.350275...@linutronix.de/ Your mail is missing there. Ideal

Re: [PATCH] drivers: cpufreq: Change a word with a word , good one in the file powernow-k7.c

2021-02-05 Thread Bhaskar Chowdhury
On 14:08 Fri 05 Feb 2021, Rafael J. Wysocki wrote: On Fri, Feb 5, 2021 at 1:55 PM Bhaskar Chowdhury wrote: s/fucked/messed/ I wouldn't make the changelog so explicit, just say "Use more appropriate language" or similar. okay. Signed-off-by: Bhaskar Chowdhury --- drivers/cpufreq/power

[PATCH v2] sparc32: Limit memblock allocation to low memory

2021-02-05 Thread Andreas Larsson
Commit cca079ef8ac29a7c02192d2bad2ffe4c0c5ffdd0 changed sparc32 to use memblocks instead of bootmem, but also made high memory available via memblock allocation which does not work together with e.g. phys_to_virt and can lead to kernel panic. This changes back to only low memory being allocatable

Re: [PATCH 0/3] fs/efs: Follow kernel style guide

2021-02-05 Thread David Sterba
On Thu, Feb 04, 2021 at 08:52:14PM -0800, Amy Parker wrote: > As the EFS driver is old and non-maintained, Is anybody using EFS on current kernels? There's not much point updating it to current coding style, deleting fs/efs is probably the best option. The EFS name is common for several filesyste

Re: [PATCH v2] arm64: dts: qcom: sdm845-xiaomi-beryllium: Add DSI and panel bits

2021-02-05 Thread Amit Pundir
Hi Konrad, On Thu, 4 Feb 2021 at 19:46, Konrad Dybcio wrote: > > Hi! > > >vreg_l14a_1p88: ldo14 { > >+ regulator-min-microvolt = <180>; > >+ regulator-max-microvolt = <180>; > > Should probably be renamed to vreg_l14a_1p8 then. ack. > > > >+

Re: [External] Re: [PATCH] printk: fix deadlock when kernel panic

2021-02-05 Thread Muchun Song
On Fri, Feb 5, 2021 at 7:09 PM Petr Mladek wrote: > > Hi, > > first, I am sorry for the late reply. I have been somehow distracted > this week. > > On Mon 2021-02-01 18:26:01, Muchun Song wrote: > > We found a deadlock bug on our server when the kernel panic. It can be > > described in the followi

Re: [PATCH] media: pwc: Fix the URB buffer allocation

2021-02-05 Thread Andrew Lunn
Hi Takashi > Indeed, looks so. In most cases, this doesn't matter since both point > to the same device object. In some cases like xhci-plat HCD, they > differ. And sysdev might be a better choice from the consistency > POV. > > But this brought an interesting question, too. eg. USB chipidea

Re: [PATCH v2 1/2] EDAC/ghes: Add EDAC device for reporting the CPU cache errors

2021-02-05 Thread Borislav Petkov
On Fri, Feb 05, 2021 at 01:54:04PM +0100, Rafael J. Wysocki wrote: > Boris, James, I need your input here. Gave mine already: https://lkml.kernel.org/r/20210119101655.gd27...@zn.tnic -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette

Re: [PATCH] fs: notify: inotify: Replace a common bad word with better common word

2021-02-05 Thread Bhaskar Chowdhury
On 14:45 Fri 05 Feb 2021, Amir Goldstein wrote: On Fri, Feb 5, 2021 at 2:20 PM Bhaskar Chowdhury wrote: s/fucked/messed/ Signed-off-by: Bhaskar Chowdhury --- fs/notify/inotify/inotify_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/notify/inotify/inotify_user

[PATCH] coresight: etm4x: Fix merge resolution for amba rework

2021-02-05 Thread Uwe Kleine-König
This was non-trivial to get right because commits c23bc382ef0e ("coresight: etm4x: Refactor probing routine") and 5214b563588e ("coresight: etm4x: Add support for sysreg only devices") changed the code flow considerably. With this change the driver can be built again. Fixes: 0573d3fa4864 ("Merge b

Re: [PATCH] drivers: cpufreq: Change a word with a word , good one in the file powernow-k7.c

2021-02-05 Thread Rafael J. Wysocki
On Fri, Feb 5, 2021 at 1:55 PM Bhaskar Chowdhury wrote: > > > > s/fucked/messed/ I wouldn't make the changelog so explicit, just say "Use more appropriate language" or similar. > > Signed-off-by: Bhaskar Chowdhury > --- > drivers/cpufreq/powernow-k7.c | 2 +- > 1 file changed, 1 insertion(+),

Re: [PATCH] mm/slub: embed __slab_alloc to its caller

2021-02-05 Thread Vlastimil Babka
On 2/3/21 2:41 AM, Abel Wu wrote: >> On Feb 2, 2021, at 6:11 PM, Christoph Lameter wrote: >> >> On Tue, 2 Feb 2021, Abel Wu wrote: >> >>> Since slab_alloc_node() is the only caller of __slab_alloc(), embed >>> __slab_alloc() to its caller to save function call overhead. This >>> will also expand

[PATCH] drivers: gpu: drm: nouveau: Change not good word with a good one in the file init.c

2021-02-05 Thread Bhaskar Chowdhury
s/fucking/messing/ Signed-off-by: Bhaskar Chowdhury --- drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c b/drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c index 9de74f41dcd2..bc

Re: [PATCH] arch: m68k: include: asm: Reconstruct the sentence in file sun3ints.h

2021-02-05 Thread Andreas Schwab
On Feb 05 2021, Bhaskar Chowdhury wrote: > -/* master list of VME vectors -- don't fuck with this */ > +/* master list of VME vectors -- don't do anything with this */ don't mess with this Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF

Re: [PATCH v5] ACPI / APEI: fix the regression of synchronous external aborts occur in user-mode

2021-02-05 Thread Rafael J. Wysocki
On Tue, Jan 26, 2021 at 2:32 PM tanxiaofei wrote: > > @James > Hi James, please help to review this patch. Thank you very much. :) James, Boris, any comments? > On 2020/12/10 20:09, Xiaofei Tan wrote: > > After the commit 8fcc4ae6faf8 ("arm64: acpi: Make apei_claim_sea() > > synchronise with APE

Re: [PATCH] media: pwc: Fix the URB buffer allocation

2021-02-05 Thread Andrew Lunn
On Fri, Feb 05, 2021 at 01:36:43PM +0100, Hans Verkuil wrote: > Hi Takashi, > > Thank you for this patch, but it clashes with another patch trying to do the > same thing > that has already been merged in our tree: > > https://patchwork.linuxtv.org/project/linux-media/patch/20210104170007.20625-1

[PATCH] drivers: cpufreq: Change a word with a word , good one in the file powernow-k7.c

2021-02-05 Thread Bhaskar Chowdhury
s/fucked/messed/ Signed-off-by: Bhaskar Chowdhury --- drivers/cpufreq/powernow-k7.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/powernow-k7.c b/drivers/cpufreq/powernow-k7.c index 5d515fc34836..2e114fc75e68 100644 --- a/drivers/cpufreq/powernow-k7.c +++

Re: [PATCH v4 2/4] lib: vsprintf: Fix handling of number field widths in vsscanf

2021-02-05 Thread Andy Shevchenko
On Fri, Feb 5, 2021 at 1:35 PM Richard Fitzgerald wrote: > On 04/02/2021 16:35, Petr Mladek wrote: > > On Wed 2021-02-03 21:45:55, Andy Shevchenko wrote: > >> On Wed, Feb 03, 2021 at 04:50:07PM +, Richard Fitzgerald wrote: ... > >>> + for (; max_chars > 0; max_chars--) { > >> > >> Less fra

Re: [PATCH v7 1/2] Kbuild: make DWARF version a choice

2021-02-05 Thread Mark Wielaard
Hi Nick, On Thu, 2021-02-04 at 14:06 -0800, Nick Desaulniers wrote: > On Thu, Feb 4, 2021 at 12:28 PM Mark Wielaard wrote: > > I believe so yes, we did a mass-rebuild of all of Fedora a few weeks > > back with a GCC11 pre-release and did find some tools which weren't > > ready, but as far as I kn

Re: [PATCH v3 11/11] iio: buffer: add ioctl() to support opening extra buffers for IIO device

2021-02-05 Thread Alexandru Ardelean
On Fri, Feb 5, 2021 at 2:44 PM Jonathan Cameron wrote: > > On Fri, 5 Feb 2021 11:51:13 +0200 > Alexandru Ardelean wrote: > > > On Thu, Feb 4, 2021 at 9:06 PM Jonathan Cameron > > wrote: > > > > > > On Mon, 1 Feb 2021 16:51:05 +0200 > > > Alexandru Ardelean wrote: > > > > > > > With this change,

Re: [PATCH 2/2] powercap/intel_rapl: Use topology interface in rapl_init_domains()

2021-02-05 Thread Rafael J. Wysocki
On Sat, Jan 23, 2021 at 11:07 AM Yunfeng Ye wrote: > > It's not a good way to access the phys_proc_id of cpuinfo directly. > So using topology_physical_package_id(cpu) instead. > > Signed-off-by: Yunfeng Ye Srinivas, Rui, any concerns? > --- > drivers/powercap/intel_rapl_common.c | 2 +- > 1 f

Re: [PATCH net-next v1 1/6] lan743x: boost performance on cpu archs w/o dma cache snooping

2021-02-05 Thread Sergej Bauer
Hi Sven I can confirm great stability improvement after your patch "lan743x: boost performance on cpu archs w/o dma cache snooping". Please note, that test_ber opens raw sockets as s = socket(AF_PACKET, SOCK_RAW, ETH_P_ALL) and resulting 'average speed' is a average egress speed. Test machine is I

Re: [RFC: timer passthrough 5/9] KVM: vmx: use tsc_adjust to enable tsc_offset timer passthrough

2021-02-05 Thread Peter Zijlstra
On Fri, Feb 05, 2021 at 06:03:13PM +0800, Zhimin Feng wrote: > when in vm: > rdtsc = host_tsc * (TSC multiplier) + tsc_offset(<0) > so when vm write tsc_deadline_msr the value always less than > tsc stampcounter msr value, the irq never be triggered. > > the tsc_adjust msr use as below, host execu

[PATCH] drivers: mtd: Better word replace a not so good word in the file mtd_blkdevs.c

2021-02-05 Thread Bhaskar Chowdhury
s/fucking/invite/ Signed-off-by: Bhaskar Chowdhury --- drivers/mtd/mtd_blkdevs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/mtd_blkdevs.c b/drivers/mtd/mtd_blkdevs.c index fb8e12d590a1..756a0995e474 100644 --- a/drivers/mtd/mtd_blkdevs.c +++ b/drivers/mtd

[PATCH] drivers: ide: Fixed a word by replacing a word in the file cmd640.c

2021-02-05 Thread Bhaskar Chowdhury
s/fucked/spoils/ Signed-off-by: Bhaskar Chowdhury --- drivers/ide/cmd640.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ide/cmd640.c b/drivers/ide/cmd640.c index f48decb9fac4..ac926653b826 100644 --- a/drivers/ide/cmd640.c +++ b/drivers/ide/cmd640.c @@ -12,7 +12,

Re: [PATCH] media: pwc: Fix the URB buffer allocation

2021-02-05 Thread Hans Verkuil
Hi Takashi, Thank you for this patch, but it clashes with another patch trying to do the same thing that has already been merged in our tree: https://patchwork.linuxtv.org/project/linux-media/patch/20210104170007.20625-1-mat...@sai.msu.ru/ I do prefer your patch over the one already merged sinc

Re: [PATCH v3 05/11] iio: buffer: group attr count and attr alloc

2021-02-05 Thread Jonathan Cameron
> > > > > > + attr = kcalloc(buffer_attrcount + ARRAY_SIZE(iio_buffer_attrs) + 1, > > > +sizeof(struct attribute *), GFP_KERNEL); > > > + if (!attr) { > > > + ret = -ENOMEM; > > > + goto error_free_scan_mask; > > > + } > > > + > > > + me

Re: [PATCH v19 3/3] scsi: ufs: Prepare HPB read for cached sub-region

2021-02-05 Thread Bean Huo
On Fri, 2021-02-05 at 11:29 +0800, Can Guo wrote: > > + *rgn_idx = lpn >> hpb->entries_per_rgn_shift; > > + rgn_offset = lpn & hpb->entries_per_rgn_mask; > > + *srgn_idx = rgn_offset >> hpb->entries_per_srgn_shift; > > + *offset = rgn_offset & hpb->entries_per_srgn_mask; > > +} > >

Re: [PATCH] staging: fbtft replaced udelay with usleep_range

2021-02-05 Thread kernel test robot
Hi Mayank, Thank you for the patch! Yet something to improve: [auto build test ERROR on staging/staging-testing] url: https://github.com/0day-ci/linux/commits/Mayank-Suman/staging-fbtft-replaced-udelay-with-usleep_range/20210205-171807 base: https://git.kernel.org/pub/scm/linux/kernel/git

[PATCH] fs: configfs: Fix sentence with a better word in the file symlink.c

2021-02-05 Thread Bhaskar Chowdhury
s/fucking/wonderful/ Signed-off-by: Bhaskar Chowdhury --- fs/configfs/symlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/configfs/symlink.c b/fs/configfs/symlink.c index cb61467478ca..26676e27346b 100644 --- a/fs/configfs/symlink.c +++ b/fs/configfs/symlink.c @@ -

Re: [RFC PATCH v4 1/1] iio/scmi: Adding support for IIO SCMI Based Sensors

2021-02-05 Thread Jonathan Cameron
On Thu, 4 Feb 2021 10:20:43 -0800 Jyoti Bhayana wrote: > Hi Jonathan, > > Thanks for the clarification. One last question: > > > Instead of using the read_avail callback (which I'd normally much prefer) > >you can just do what lots of drivers in IIO do (predate the callback) and > >provide your

[PATCH] kernel: irq: Some words replce with better alternatives in the file timings.c

2021-02-05 Thread Bhaskar Chowdhury
Some spelling fixes and replace with other similar meaning words. Signed-off-by: Bhaskar Chowdhury --- kernel/irq/timings.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/kernel/irq/timings.c b/kernel/irq/timings.c index 773b6105c4ae..72f69e3b1e8d 100644 --

[PATCH 1/3] ARM: configs: sama5_defconfig: update and remove unneeded options

2021-02-05 Thread nicolas.ferre
From: Nicolas Ferre Kconfig options are not present anymore or selected by default: remove them from sama5_defconfig. No change to kernel compilation expected. Signed-off-by: Nicolas Ferre --- arch/arm/configs/sama5_defconfig | 11 --- 1 file changed, 11 deletions(-) diff --git a/arch

Re: [RFC: timer passthrough 1/9] KVM: vmx: hook set_next_event for getting the host tscd

2021-02-05 Thread Peter Zijlstra
On Fri, Feb 05, 2021 at 06:03:09PM +0800, Zhimin Feng wrote: > diff --git a/kernel/time/tick-common.c b/kernel/time/tick-common.c > index 6c9c342dd0e5..bc50f4a1a7c0 100644 > --- a/kernel/time/tick-common.c > +++ b/kernel/time/tick-common.c > @@ -26,6 +26,7 @@ > * Tick devices > */ > DEFINE_PER

[PATCH 3/3] ARM: configs: at91_dt_defconfig: add useful helper options

2021-02-05 Thread nicolas.ferre
From: Nicolas Ferre Add GPIO, SPI and I2C options that were missing from the at91_dt_defconfig whereas they were in sama5_defconfig. It unifies all AT91 defconfigs with same set of useful options. Signed-off-by: Nicolas Ferre --- arch/arm/configs/at91_dt_defconfig | 3 +++ 1 file changed, 3 in

[PATCH 2/3] ARM: configs: at91: DT/ATAG defconfig modifications

2021-02-05 Thread nicolas.ferre
From: Nicolas Ferre As all AT91 platforms are converted to DT for a long time, adapt the defconfigs by: - removing legacy CONFIG_ATAGS as a DT will always be provided; - removing the CONFIG_ARM_APPENDED_DTB option on SAMA5 devices as the vast majority of systems will use a DT-aware bootloader o

Re: [PATCH v7 4/4] ima: Support EC keys for signature verification

2021-02-05 Thread Mimi Zohar
On Mon, 2021-02-01 at 10:19 -0500, Stefan Berger wrote: > Add support for IMA signature verification for EC keys. Since SHA type > of hashes can be used by RSA and ECDSA signature schemes we need to > look at the key and derive from the key which signature scheme to use. > Since this can be applied

Re: Possible deny of service with memfd_create()

2021-02-05 Thread Michal Hocko
On Fri 05-02-21 11:57:09, Christian König wrote: > Am 05.02.21 um 11:50 schrieb Michal Hocko: > > On Fri 05-02-21 08:54:31, Christian König wrote: > > > Am 05.02.21 um 01:32 schrieb Hugh Dickins: > > > > On Thu, 4 Feb 2021, Michal Hocko wrote: [...] > > > > > The only existing protection right now

Re: [PATCH v1 2/2] cpufreq: ACPI: Update arch scale-invariance max perf ratio if CPPC is not there

2021-02-05 Thread Rafael J. Wysocki
On Fri, Feb 5, 2021 at 12:59 PM Peter Zijlstra wrote: > > On Thu, Feb 04, 2021 at 06:34:32PM +0100, Rafael J. Wysocki wrote: > > > arch/x86/kernel/smpboot.c |1 + > > drivers/cpufreq/acpi-cpufreq.c |8 > > 2 files changed, 9 insertions(+) > > > > Index: linux-pm/drivers/cpuf

[PATCH] nios2: Don't use _end for calculating min_low_pfn

2021-02-05 Thread Andreas Oetken
From: Andreas Oetken If there is a initramfs linked into the kernel which will be freed later on there is free memory somewhere between _etext and _end, thus using _end for min_low_pfn is not correct. This may lead to issues in dma_capable when checking 'min(addr, end) < phys_to_dma(dev, PFN_PHYS

Re: [PATCH v2 1/2] s390/kvm: extend kvm_s390_shadow_fault to return entry pointer

2021-02-05 Thread Claudio Imbrenda
On Thu, 4 Feb 2021 18:05:15 +0100 Janosch Frank wrote: > On 2/4/21 5:34 PM, Janosch Frank wrote: > > On 2/2/21 7:00 PM, Claudio Imbrenda wrote: > >> Extend kvm_s390_shadow_fault to return the pointer to the valid > >> leaf DAT table entry, or to the invalid entry. > >> > >> Also return some fla

Re: [PATCH v2 1/2] s390/kvm: extend kvm_s390_shadow_fault to return entry pointer

2021-02-05 Thread Claudio Imbrenda
On Thu, 4 Feb 2021 17:34:00 +0100 Janosch Frank wrote: > On 2/2/21 7:00 PM, Claudio Imbrenda wrote: > > Extend kvm_s390_shadow_fault to return the pointer to the valid leaf > > DAT table entry, or to the invalid entry. > > > > Also return some flags in the lower bits of the address: > > DAT_PROT

Re: [PATCH 1/2] mmc: mmci: enable MMC_CAP_NEED_RSP_BUSY

2021-02-05 Thread Yann GAUTIER
On 2/5/21 10:53 AM, Ulf Hansson wrote: - trimmed cc-list On Thu, 4 Feb 2021 at 13:08, wrote: From: Yann Gautier To properly manage commands awaiting R1B responses, the capability MMC_CAP_NEED_RSP_BUSY is enabled in mmci driver, for variants that manage busy detection. This R1B management ne

RE: [PATCH v5 0/4] perf vendor events: Support PMU events for A64FX

2021-02-05 Thread nakamura.s...@fujitsu.com
Hi, John > > Apart from that, I think that we're a bit uncertain about patch 3/4 > What are your concerns? > I think it's okay for perf to read a new event code with a number at the > beginning. The impact of this fix is on {name} and later rules. parse_events.l uses {name} only in one place. Th

[PATCH] lib: Replace obscene word with a better one :)

2021-02-05 Thread Bhaskar Chowdhury
s/fucked/messed/ Signed-off-by: Bhaskar Chowdhury --- lib/vsprintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 3b53c73580c5..470805777117 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -7,7 +7,7 @@ /* vsprintf.c -- Lars Wi

Re: [PATCH 06/24] perf daemon: Add config file support

2021-02-05 Thread Namhyung Kim
On Sun, Jan 31, 2021 at 8:49 AM Jiri Olsa wrote: [SNIP] > @@ -263,9 +605,16 @@ static int __cmd_start(struct daemon *daemon, struct > option parent_options[], > signal(SIGTERM, sig_handler); > > while (!done && !err) { > - if (fdarray__poll(&fda, -1)) { > +

Re: [PATCH] arch: m68k: include: asm: Reconstruct the sentence in file sun3ints.h

2021-02-05 Thread John Paul Adrian Glaubitz
On 2/5/21 1:04 PM, Bhaskar Chowdhury wrote: > s/fuck/"do anything"/ What does this fix? -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5

Re: [PATCH 2/3] iommu/io-pgtable-arm: Add IOMMU_LLC page protection flag

2021-02-05 Thread Sai Prakash Ranjan
On 2021-02-04 03:16, Will Deacon wrote: On Tue, Feb 02, 2021 at 11:56:27AM +0530, Sai Prakash Ranjan wrote: On 2021-02-01 23:50, Jordan Crouse wrote: > On Mon, Feb 01, 2021 at 08:20:44AM -0800, Rob Clark wrote: > > On Mon, Feb 1, 2021 at 3:16 AM Will Deacon wrote: > > > On Fri, Jan 29, 2021 at

Re: [RFC][PATCH 2/2] x86: add extra serialization for non-serializing MSRs

2021-02-05 Thread Andrew Cooper
On 05/02/2021 10:02, Peter Zijlstra wrote: > On Thu, Feb 04, 2021 at 04:11:12PM -0800, Andy Lutomirski wrote: >> I'm wondering if a more mild violation is possible: >> >> Initialize *addr = 0. >> >> mov $1, (addr) >> wrmsr >> >> remote cpu's IDT vector: >> >> mov (addr), %rax >> %rax == 0! >> >> Th

Re: [PATCH] mm: cma: support sysfs

2021-02-05 Thread Matthew Wilcox
On Thu, Feb 04, 2021 at 09:22:18PM -0800, Minchan Kim wrote: > > > + for (i = 0; i < cma_area_count; i++) { > > > + cma = &cma_areas[i]; > > > + stat = kzalloc(sizeof(*stat), GFP_KERNEL); > > > + if (!stat) > > > + goto out; > > > > How many cma areas are th

[PATCH] arch: mips: sgi-ip22: Change the sentences with better word in the file ip22-setup.c

2021-02-05 Thread Bhaskar Chowdhury
s/fucking/"doing anything"/ Signed-off-by: Bhaskar Chowdhury --- arch/mips/sgi-ip22/ip22-setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/sgi-ip22/ip22-setup.c b/arch/mips/sgi-ip22/ip22-setup.c index b69daa02401b..41c4e46a3bf4 100644 --- a/arch/mips/sgi-ip

[PATCH] arch: m68k: include: asm: Reconstruct the sentence in file sun3ints.h

2021-02-05 Thread Bhaskar Chowdhury
s/fuck/"do anything"/ Signed-off-by: Bhaskar Chowdhury --- arch/m68k/include/asm/sun3ints.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/m68k/include/asm/sun3ints.h b/arch/m68k/include/asm/sun3ints.h index 309d6e6a1374..1bbd76545d8f 100644 --- a/arch/m68k/include/a

Re: next/master bisection: baseline.login on rk3288-rock2-square

2021-02-05 Thread Ard Biesheuvel
On Fri, 5 Feb 2021 at 09:21, Ard Biesheuvel wrote: > > On Thu, 4 Feb 2021 at 22:31, Guillaume Tucker > wrote: > > > > On 04/02/2021 18:23, Nick Desaulniers wrote: > > > On Thu, Feb 4, 2021 at 10:12 AM Nathan Chancellor > > > wrote: > > >> > > >> On Thu, Feb 04, 2021 at 10:06:08AM -0800, 'Nick D

Re: [patch 01/12] x86/entry: Fix instrumentation annotation

2021-02-05 Thread Borislav Petkov
On Thu, Feb 04, 2021 at 09:49:04PM +0100, Thomas Gleixner wrote: > Embracing a callout into instrumentation_begin() / instrumentation_begin() > does not really make sense. Make the latter instrumentation_end(). > > Signed-off-by: Thomas Gleixner > --- > arch/x86/entry/common.c |2 +- > 1 fil

RE: [PATCH] net/mlx5: docs: correct section reference in table of contents

2021-02-05 Thread Parav Pandit
> From: Lukas Bulwahn > Sent: Friday, February 5, 2021 3:25 PM > > Commit 142d93d12dc1 ("net/mlx5: Add devlink subfunction port > documentation") refers to a section 'mlx5 port function' in the table of > contents, but includes a section 'mlx5 function attributes' instead. > > Hence, make htm

Re: [PATCH iproute2-next V3] devlink: add support for port params get/set

2021-02-05 Thread Jiri Pirko
Tue, Feb 02, 2021 at 02:04:45PM CET, oleksandr.ma...@plvision.eu wrote: >Add implementation for the port parameters >getting/setting. >Add bash completion for port param. >Add man description for port param. > >Example: >$ devlink dev param set netdevsim/netdevsim0/0 name test_port_parameter value

Re: [PATCH v6 05/21] arm64: Initialise as nVHE before switching to VHE

2021-02-05 Thread Hector Martin 'marcan'
On 01/02/2021 20.56, Marc Zyngier wrote: As we are aiming to be able to control whether we enable VHE or not, let's always drop down to EL1 first, and only then upgrade to VHE if at all possible. This means that if the kernel is booted at EL2, we always start with a nVHE init, drop to EL1 to ini

Re: [PATCH v2] mm/page_owner: Record the timestamp of all pages during free

2021-02-05 Thread Vlastimil Babka
On 2/3/21 6:59 PM, Georgi Djakov wrote: > Collect the time when each allocation is freed, to help with memory > analysis with kdump/ramdump. Add the timestamp also in the page_owner > debugfs file and print it in dump_page(). > > Having another timestamp when we free the page helps for debugging >

Re: [PATCH v10 2/5] sched: CGroup tagging interface for core scheduling

2021-02-05 Thread Peter Zijlstra
On Fri, Jan 22, 2021 at 08:17:01PM -0500, Joel Fernandes (Google) wrote: > +int sched_core_share_tasks(struct task_struct *t1, struct task_struct *t2) > +{ > + static DEFINE_MUTEX(sched_core_tasks_mutex); > + unsigned long cookie; > + int ret = -ENOMEM; > + > + mutex_lock(&sched_cor

Re: [PATCH v1 2/2] cpufreq: ACPI: Update arch scale-invariance max perf ratio if CPPC is not there

2021-02-05 Thread Peter Zijlstra
On Thu, Feb 04, 2021 at 06:34:32PM +0100, Rafael J. Wysocki wrote: > arch/x86/kernel/smpboot.c |1 + > drivers/cpufreq/acpi-cpufreq.c |8 > 2 files changed, 9 insertions(+) > > Index: linux-pm/drivers/cpufreq/acpi-cpufreq.c >

Re: [PATCH] x86/efi: Remove EFI PGD build time checks

2021-02-05 Thread Ard Biesheuvel
On Fri, 5 Feb 2021 at 12:39, Borislav Petkov wrote: > > From: Borislav Petkov > > With CONFIG_X86_5LEVEL, CONFIG_UBSAN and CONFIG_UBSAN_UNSIGNED_OVERFLOW > enabled, clang fails the build with > > x86_64-linux-ld: arch/x86/platform/efi/efi_64.o: in function > `efi_sync_low_kernel_mappings': >

[PATCH] docs: kernel-hacking: Remove the word fuck,trying to be civil :)

2021-02-05 Thread Bhaskar Chowdhury
s/fuck// Signed-off-by: Bhaskar Chowdhury --- Documentation/kernel-hacking/locking.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/kernel-hacking/locking.rst b/Documentation/kernel-hacking/locking.rst index c3448929a824..ed1284c6f078 100644 --- a/Documen

Re: [PATCH v2 3/4] mm/gup: add a range variant of unpin_user_pages_dirty_lock()

2021-02-05 Thread Joao Martins
On 2/5/21 4:49 AM, John Hubbard wrote: > On 2/4/21 12:24 PM, Joao Martins wrote: >> Add a unpin_user_page_range_dirty_lock() API which takes a starting page >> and how many consecutive pages we want to unpin and optionally dirty. >> >> Given that we won't be iterating on a list of changes, change >

[GIT PULL] phy: second round of fixes for v5.11

2021-02-05 Thread Vinod Koul
Hello Greg, Please pull to receive few phy driver fixes for v5.11. Apologies for sending them bit late. The following changes since commit d092bd9110494de3372722b317510b3692f1b2fe: phy: mediatek: allow compile-testing the dsi phy (2021-01-04 13:00:54 +0530) are available in the Git repository

Re: [PATCH v10 2/5] sched: CGroup tagging interface for core scheduling

2021-02-05 Thread Peter Zijlstra
On Fri, Jan 22, 2021 at 08:17:01PM -0500, Joel Fernandes (Google) wrote: > +/* All active sched_core_cookies */ > +static struct rb_root sched_core_cookies = RB_ROOT; > +static DEFINE_RAW_SPINLOCK(sched_core_cookies_lock); > +/* > + * Returns the following: > + * a < b => -1 > + * a == b => 0 >

Re: [PATCH v2 0/9] Add Host control mode to HPB

2021-02-05 Thread Bean Huo
On Fri, 2021-02-05 at 12:36 +0100, Bean Huo wrote: > > to whatever recommendation received from the device - In host > > control > > mode, the host uses its own algorithms to decide which regions > > should > > be activated or inactivated. > > > > We kept the host managed heuristic simple and conc

Re: [PATCH v19 2/3] scsi: ufs: L2P map management for HPB read

2021-02-05 Thread Bean Huo
On Fri, 2021-02-05 at 11:42 +, Avri Altman wrote: > > "If the requested field of the HPB Region or HPB Sub-Region is out > > of > > range, then the device shall terminate the command by sending > > RESPONSE > > UPIU with CHECK CONDITION status, with the SENSE KEY set to ILLEGAL > > REQUEST, and

[PATCH 0/6] move update blocked load outside newidle_balance

2021-02-05 Thread Vincent Guittot
Joel reported long preempt and irq off sequence in newidle_balance because of a large number of cgroups in used and having to be updated. This patchset moves the update outside newidle_imblance in order to enable early abort during the updates in case of pending irq as an example. Instead of kicki

Re: [PATCH v14 4/8] mm: hugetlb: alloc the vmemmap pages associated with each HugeTLB page

2021-02-05 Thread Oscar Salvador
On Thu, Feb 04, 2021 at 11:50:39AM +0800, Muchun Song wrote: > When we free a HugeTLB page to the buddy allocator, we should allocate the > vmemmap pages associated with it. But we may cannot allocate vmemmap pages > when the system is under memory pressure, in this case, we just refuse to > free t

[PATCH 2/6] sched/fair: remove unused parameter of update_nohz_stats

2021-02-05 Thread Vincent Guittot
idle load balance is the only user of update_nohz_stats and doesn't use force parameter. Remove it Signed-off-by: Vincent Guittot --- kernel/sched/fair.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index bfe1e235fe01..60b8c1

Re: [PATCH v4 2/5] KVM: X86: Expose PKS to guest

2021-02-05 Thread Paolo Bonzini
On 05/02/21 12:29, Thomas Gleixner wrote: On Fri, Feb 05 2021 at 11:10, Paolo Bonzini wrote: On 05/02/21 10:56, Borislav Petkov wrote: This would need an ack from the x86 people. Andy, Boris? This looks like the PKS baremetal pile needs to be upstream first. Yes, it does. I would like to

[PATCH 3/6] sched/fair: merge for each idle cpu loop of ILB

2021-02-05 Thread Vincent Guittot
Remove the specific case for handling this_cpu outside for_each_cpu() loop when running ILB. Instead we use for_each_cpu_wrap() and start with the next cpu after this_cpu so we will continue to finish with this_cpu. update_nohz_stats() is now used for this_cpu too and will prevents unnecessary upd

Re: [RFC PATCH 01/11] iommu/arm-smmu-v3: Add feature detection for HTTU

2021-02-05 Thread Robin Murphy
On 2021-02-05 09:13, Keqian Zhu wrote: Hi Robin and Jean, On 2021/2/5 3:50, Robin Murphy wrote: On 2021-01-28 15:17, Keqian Zhu wrote: From: jiangkunkun The SMMU which supports HTTU (Hardware Translation Table Update) can update the access flag and the dirty state of TTD by hardware. It is e

[PATCH 4/6] sched/fair: reorder newidle_balance pulled_task test

2021-02-05 Thread Vincent Guittot
Reorder the tests and skip prevent useless test when no load balance has been performed. Signed-off-by: Vincent Guittot --- kernel/sched/fair.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index c587af230010..935594cd543

Re: [PATCH v3 1/2] dma-mapping: benchmark: use u8 for reserved field in uAPI structure

2021-02-05 Thread Christoph Hellwig
Thanks, applied.

Re: [PATCH v10 2/5] sched: CGroup tagging interface for core scheduling

2021-02-05 Thread Peter Zijlstra
On Fri, Jan 22, 2021 at 08:17:01PM -0500, Joel Fernandes (Google) wrote: > --- a/kernel/fork.c > +++ b/kernel/fork.c > @@ -736,6 +736,7 @@ void __put_task_struct(struct task_struct *tsk) > exit_creds(tsk); > delayacct_tsk_free(tsk); > put_signal_struct(tsk->signal); > + sched_

[RFC PATCH 5/6] sched/fair: trigger the update of blocked load on newly idle cpu

2021-02-05 Thread Vincent Guittot
Instead of waking up a random and already idle CPU, we can take advantage of this_cpu being about to enter idle to run the ILB and update the blocked load. Signed-off-by: Vincent Guittot --- include/linux/sched/nohz.h | 2 ++ kernel/sched/fair.c| 11 --- kernel/sched/idle.c

<    7   8   9   10   11   12   13   14   15   16   >