Re: [PATCH v2 03/12][RESEND] iio: buffer: rework buffer & scan_elements dir creation

2021-01-26 Thread Alexandru Ardelean
On Mon, Jan 25, 2021 at 9:32 PM Greg Kroah-Hartman wrote: > > On Sun, Jan 24, 2021 at 06:11:26PM +, Jonathan Cameron wrote: > > On Fri, 22 Jan 2021 18:25:20 +0200 > > Alexandru Ardelean wrote: > > > > > When adding more than one IIO buffer per IIO device, we will need to > > > create > > > a

RE: [PATCH v10 11/12] mm/vmalloc: Hugepage vmalloc mappings

2021-01-26 Thread Nicholas Piggin
Excerpts from David Laight's message of January 25, 2021 10:24 pm: > From: Christophe Leroy >> Sent: 25 January 2021 09:15 >> >> Le 24/01/2021 à 09:22, Nicholas Piggin a écrit : >> > Support huge page vmalloc mappings. Config option HAVE_ARCH_HUGE_VMALLOC >> > enables support on architectures that

Re: [PATCH v2 1/2] dt-bindings: phy: phy-stm32-usbphyc: add #clock-cells required property

2021-01-26 Thread Amelie DELAUNAY
Hi Rob, On 1/25/21 10:40 PM, Rob Herring wrote: On Thu, Jan 14, 2021 at 06:13:13PM +0100, Amelie Delaunay wrote: usbphyc provides a unique clock called ck_usbo_48m. STM32 USB OTG needs a 48Mhz clock (utmifs_clk48) for Full-Speed operation. ck_usbo_48m is a possible parent clock for USB OTG 48Mh

Re: md_raid: mdX_raid6 looping after sync_action "check" to "idle" transition

2021-01-26 Thread Donald Buczek
Dear Guoqing, On 26.01.21 01:44, Guoqing Jiang wrote: Hi Donald, On 1/25/21 22:32, Donald Buczek wrote: On 25.01.21 09:54, Donald Buczek wrote: Dear Guoqing, a colleague of mine was able to produce the issue inside a vm and were able to find a procedure to run the vm into the issue within

Re: [PATCH] can: mcba_usb: remove h from printk format specifier

2021-01-26 Thread Marc Kleine-Budde
On 21-01-24 07:09:16, t...@redhat.com wrote: > From: Tom Rix > > This change fixes the checkpatch warning described in this commit > commit cbacb5ab0aa0 ("docs: printk-formats: Stop encouraging use of > unnecessary %h[xudi] and %hh[xudi]") > > Standard integer promotion is already done and %hx

[PATCH] usb: dwc3: add EXPORT_SYMBOL_GPL for role init functions

2021-01-26 Thread Ray Chi
Currently, role init functions are used in dwc3 driver but can't be called from kernel modules. dwc3_host_init dwc3_host_exit dwc3_gadget_init dwc3_gadget_exit dwc3_event_buffers_setup dwc3_event_buffers_cleanup If other kernel modules want to use these functions, it needs EXPORT_SYMBO

Re: [PATCH] perf/intel: Remove Perfmon-v4 counter_freezing support

2021-01-26 Thread Paolo Bonzini
On 11/11/20 03:42, Xu, Like wrote: Hi Peter, On 2020/11/11 4:52, Stephane Eranian wrote: On Tue, Nov 10, 2020 at 7:37 AM Peter Zijlstra wrote: On Tue, Nov 10, 2020 at 04:12:57PM +0100, Peter Zijlstra wrote: On Mon, Nov 09, 2020 at 10:12:37AM +0800, Like Xu wrote: The Precise Event Based Samp

Re: [PATCH 4.19 46/58] net: dsa: mv88e6xxx: also read STU state in mv88e6250_g1_vtu_getnext

2021-01-26 Thread Rasmus Villemoes
On 26/01/2021 09.50, Greg Kroah-Hartman wrote: > On Mon, Jan 25, 2021 at 08:59:54PM +0100, Rasmus Villemoes wrote: >> On 25/01/2021 20.40, Rasmus Villemoes wrote: >>> On 25/01/2021 19.39, Greg Kroah-Hartman wrote: From: Rasmus Villemoes commit 87fe04367d842c4d97a77303242d4dd4ac351e4

Re: [PATCH v3 1/1] loop: scale loop device by introducing per device lock

2021-01-26 Thread Chaitanya Kulkarni
On 1/25/21 12:15 PM, Pavel Tatashin wrote: > Currently, loop device has only one global lock: > loop_ctl_mutex. Above line can be :- Currently, loop device has only one global lock: loop_ctl_mutex. Also please provide a complete discretion what are the members it protects, i.e. how big the size of

Re: [PATCH v16 06/11] mm: introduce memfd_secret system call to create "secret" memory areas

2021-01-26 Thread David Hildenbrand
On 26.01.21 10:49, Michal Hocko wrote: > On Tue 26-01-21 11:20:11, Mike Rapoport wrote: >> On Tue, Jan 26, 2021 at 10:00:13AM +0100, Michal Hocko wrote: >>> On Tue 26-01-21 10:33:11, Mike Rapoport wrote: On Tue, Jan 26, 2021 at 08:16:14AM +0100, Michal Hocko wrote: > On Mon 25-01-21 23:36:

[PATCH v7 1/5] dt-bindings: input: Add reset-time-sec common property

2021-01-26 Thread Cristian Ciocaltea
Add a new common property 'reset-time-sec' to be used in conjunction with the devices supporting the key pressed reset feature. Signed-off-by: Cristian Ciocaltea Reviewed-by: Rob Herring --- Changes in v7: - None Changes in v6: - None Changes in v5: - None Changes in v4: - Added Reviewed-

[PATCH v7 4/5] input: atc260x: Add onkey driver for ATC260x PMICs

2021-01-26 Thread Cristian Ciocaltea
The Actions Semi ATC260x PMICs are able to manage an onkey button. This driver exposes the ATC260x onkey as an input device. It can also be configured to force a system reset on a long key-press with an adjustable duration. The currently supported chip variants are ATC2603C and ATC2609A. Signed-o

Re: [PATCH v2 1/1] x86,sched: On AMD EPYC set freq_max = max_boost in schedutil invariant formula

2021-01-26 Thread Peter Zijlstra
On Tue, Jan 26, 2021 at 10:28:30AM +0100, Giovanni Gherdovich wrote: > On Mon, 2021-01-25 at 11:04 +0100, Peter Zijlstra wrote: > > On Fri, Jan 22, 2021 at 09:40:38PM +0100, Giovanni Gherdovich wrote: > > > This workload is constant in time, so instead of using the PELT sum we can > > > pretend tha

Re: [PATCH] arm: smp: remove unused variable

2021-01-26 Thread Geert Uytterhoeven
Hi Wolfram, On Mon, Dec 28, 2020 at 1:03 PM Wolfram Sang wrote: > Not used anymore after refactoring: > > arch/arm/kernel/smp.c: In function ‘show_ipi_list’: > arch/arm/kernel/smp.c:543:16: warning: variable ‘irq’ set but not used > [-Wunused-but-set-variable] > 543 | unsigned int irq; > > F

Re: [PATCH v3 4/4] hwmon: Support Aspeed AST2600 PWM/Fan tachometer

2021-01-26 Thread Troy Lee
Hi Andrew, The 01/22/2021 12:38, Andrew Jeffery wrote: > Hi Troy, > > On Mon, 18 Jan 2021, at 17:20, Troy Lee wrote: > > Add Aspeed AST2600 PWM/Fan tacho driver. AST2600 has 16 PWM channel and > > 16 FAN tacho channel. > > > > Changes since v2: > > - declare local function as static function >

Re: [PATCH v2 1/1] x86,sched: On AMD EPYC set freq_max = max_boost in schedutil invariant formula

2021-01-26 Thread Peter Zijlstra
On Tue, Jan 26, 2021 at 09:31:40AM +, Mel Gorman wrote: > So, should this patch be merged for 5.11 as a stopgap, fix up > schedutil/cpufreq and then test both AMD and Intel chips reporting the > correct max non-turbo and max-turbo frequencies? That would give time to > give some testing in lin

Re: [PATCH 1/1] iommu/arm-smmu-v3: add support for BBML

2021-01-26 Thread Will Deacon
On Mon, Jan 25, 2021 at 08:23:40PM +, Robin Murphy wrote: > Now we probably will need some degreee of BBML feature awareness for the > sake of SVA if and when we start using it for CPU pagetables, but I still > cannot see any need to consider it in io-pgtable. Agreed; I don't think this is som

Re: [PATCH v4 20/23] powerpc/syscall: Do not check unsupported scv vector on PPC32

2021-01-26 Thread Nicholas Piggin
Excerpts from Christophe Leroy's message of January 26, 2021 12:48 am: > Only PPC64 has scv. No need to check the 0x7ff0 trap on PPC32. > > And ignore the scv parameter in syscall_exit_prepare (Save 14 cycles > 346 => 332 cycles) > > Signed-off-by: Christophe Leroy > --- > arch/powerpc/kernel/e

Re: [PATCH v6 3/7] mfd: Add MFD driver for ATC260x PMICs

2021-01-26 Thread Cristian Ciocaltea
On Tue, Jan 26, 2021 at 08:15:35AM +, Lee Jones wrote: > On Mon, 25 Jan 2021, Cristian Ciocaltea wrote: > > > Hi Lee, > > > > On Mon, Jan 25, 2021 at 02:25:58PM +, Lee Jones wrote: > > > On Wed, 20 Jan 2021, Cristian Ciocaltea wrote: > > > > > > > Add initial support for the Actions Semi

Re: [PATCH v3 0/4] sched/fair: Burstable CFS bandwidth controller

2021-01-26 Thread changhuaixin
> On Jan 21, 2021, at 7:04 PM, Huaixin Chang > wrote: > > Changelog > > v3: > 1. Fix another issue reported by test robot. > 2. Update docs as Randy Dunlap suggested. > > v2: > 1. Fix an issue reported by test robot. > 2. Rewriting docs. Appreciate any further suggestions or help. > > The

Re: [PATCH v16 06/11] mm: introduce memfd_secret system call to create "secret" memory areas

2021-01-26 Thread Michal Hocko
On Tue 26-01-21 10:53:08, David Hildenbrand wrote: [...] > I assume you've seen the benchmark results provided by Xing Zhengjun > > https://lore.kernel.org/linux-mm/213b4567-46ce-f116-9cdf-bbd0c884e...@linux.intel.com/ I was not. Thanks for the pointer. I will have a look. -- Michal Hocko SUSE

[PATCH] drivers/power/supply: fix typo

2021-01-26 Thread zuoqilin1
From: zuoqilin Change 'exeeds' to 'exceeds'. Signed-off-by: zuoqilin --- drivers/power/supply/charger-manager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/power/supply/charger-manager.c b/drivers/power/supply/charger-manager.c index 6fcebe4..731351d8 10064

Re: [PATCH v3 1/3] dt-bindings:drm/bridge:anx7625:add HDCP support flag and swing reg

2021-01-26 Thread Xin Ji
On Mon, Jan 25, 2021 at 08:51:35AM -0600, Rob Herring wrote: > On Mon, 25 Jan 2021 19:12:21 +0800, Xin Ji wrote: > > Add 'bus-type' and 'data-lanes' define for port0, add HDCP support > > flag and DP tx lane0 and lane1 swing register array define. > > > > Signed-off-by: Xin Ji > > --- > > .../bi

Re: [PATCH v4 11/23] powerpc/syscall: Rename syscall_64.c into syscall.c

2021-01-26 Thread Nicholas Piggin
Excerpts from Christophe Leroy's message of January 26, 2021 12:48 am: > syscall_64.c will be reused almost as is for PPC32. > > Rename it syscall.c Could you rename it to interrupt.c instead? A system call is an interrupt, and the file now also has code to return from other interrupts as well,

Re: [RFC v3 net-next] net: core: devlink: add 'dropped' stats field for DROP trap action

2021-01-26 Thread Oleksandr Mazur
On Mon, 25 Jan 2021 14:38:56 +0200 Oleksandr Mazur wrote: > + if (trap_item->action == DEVLINK_TRAP_ACTION_DROP && > + devlink->ops->trap_drop_counter_get) { > + err = devlink->ops->trap_drop_counter_get(devlink, > +   trap

Re: [PATCH v2] locking/rwsem: Remove empty rwsem.h

2021-01-26 Thread Will Deacon
On Tue, Jan 26, 2021 at 12:17:21PM +0200, Nikolay Borisov wrote: > This is a leftover from 7f26482a872c ("locking/percpu-rwsem: Remove the > embedded rwsem") > > Signed-off-by: Nikolay Borisov > --- > V2: > * Add reference to commit which made the file useless. > > kernel/locking/rwsem.h | 0

Re: [PATCH] printk: rectify kernel-doc for prb_rec_init_wr()

2021-01-26 Thread Petr Mladek
On Mon 2021-01-25 09:17:48, Lukas Bulwahn wrote: > The command 'find ./kernel/printk/ | xargs ./scripts/kernel-doc -none' > reported a mismatch with the kernel-doc of prb_rec_init_wr(). > > Rectify the kernel-doc, such that no issues remain for ./kernel/printk/. > > Signed-off-by: Lukas Bulwahn

Re: [PATCH v3 1/2] bio: limit bio max size

2021-01-26 Thread Damien Le Moal
On 2021/01/26 18:37, Changheun Lee wrote: > bio size can grow up to 4GB when muli-page bvec is enabled. > but sometimes it would lead to inefficient behaviors. > in case of large chunk direct I/O, - 32MB chunk read in user space - > all pages for 32MB would be merged to a bio structure if the pages

RE: [PATCH v4 11/23] powerpc/syscall: Rename syscall_64.c into syscall.c

2021-01-26 Thread David Laight
From: Nicholas Piggin > Sent: 26 January 2021 10:21 > > Excerpts from Christophe Leroy's message of January 26, 2021 12:48 am: > > syscall_64.c will be reused almost as is for PPC32. > > > > Rename it syscall.c > > Could you rename it to interrupt.c instead? A system call is an > interrupt, and t

Re: [PATCH] iommu/arm-smmu-qcom: Fix mask extraction for bootloader programmed SMRs

2021-01-26 Thread Robin Murphy
On 2021-01-25 21:52, Isaac J. Manjarres wrote: When extracting the mask for a SMR that was programmed by the bootloader, the SMR's valid bit is also extracted and is treated as part of the mask, which is not correct. Consider the scenario where an SMMU master whose context is determined by a boot

[RFC][PATCH 1/3] PM /devfreq: add user frequency limits into devfreq struct

2021-01-26 Thread Lukasz Luba
The new fields inside devfreq struct allow to check the frequency limits set by the user via sysfs. These limits are important for thermal governor Intelligent Power Allocation (IPA) which needs to know the maximum allowed power consumption of the device. Signed-off-by: Lukasz Luba --- drivers/d

[PATCH] scsi/megaraid: fix spelling typo of allocated

2021-01-26 Thread dingsenjie
From: dingsenjie allocted -> allocated Signed-off-by: dingsenjie --- drivers/scsi/megaraid/megaraid_mbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/megaraid/megaraid_mbox.c b/drivers/scsi/megaraid/megaraid_mbox.c index 4a27ac8..d57e938 100644 --- a/driv

[RFC][PATCH 2/3] thermal: devfreq_cooling: add new callback to get user limit for min state

2021-01-26 Thread Lukasz Luba
User can limit the maximum frequency of the device via sysfs interface. It limits also corresponding maximum allowed power consumption. The IPA governor needs to know maximum power of the device to split the budget. If the user limit is not provided, some power is wasted while it could be added to

Re: [PATCH] PCI: dwc: layerscape: convert to builtin_platform_driver()

2021-01-26 Thread Michael Walle
Am 2021-01-26 11:02, schrieb Lorenzo Pieralisi: On Wed, Jan 20, 2021 at 11:52:46AM +0100, Michael Walle wrote: fw_devlink will defer the probe until all suppliers are ready. We can't use builtin_platform_driver_probe() because it doesn't retry after probe deferral. Convert it to builtin_platfo

[RFC][PATCH 0/3] New thermal interface allowing IPA to get max power

2021-01-26 Thread Lukasz Luba
Hi all, This patch set tries to add the missing feature in the Intelligent Power Allocation (IPA) governor which is: frequency limit set by user space. User can set max allowed frequency for a given device which has impact on max allowed power. In current design there is no mechanism to figure thi

[RFC][PATCH 3/3] thermal: power_allocator: get proper max power limited by user

2021-01-26 Thread Lukasz Luba
Use new API interface to get the maximum power of the cooling device. This is needed to properly allocate and split the total power budget. The allowed limit is taken from supported cooling device and then checked with limits set in DT. The final state value is used for asking for the related power

Re: [PATCH v6 0/2] Documentation: livepatch: Document reliable stacktrace and minor cleanup

2021-01-26 Thread Jiri Kosina
On Fri, 22 Jan 2021, Jiri Kosina wrote: > > > This series adds a document, mainly written by Mark Rutland, which > > > makes explicit the requirements for implementing reliable stacktrace > > > in order to aid architectures adding this feature. It also updates > > > the other livepatching docu

[PATCH BUGFIX/IMPROVEMENT 1/6] block, bfq: always inject I/O of queues blocked by wakers

2021-01-26 Thread Paolo Valente
Suppose that I/O dispatch is plugged, to wait for new I/O for the in-service bfq-queue, say bfqq. Suppose then that there is a further bfq_queue woken by bfqq, and that this woken queue has pending I/O. A woken queue does not steal bandwidth from bfqq, because it remains soon without I/O if bfqq i

[PATCH BUGFIX/IMPROVEMENT 6/6] block, bfq: merge bursts of newly-created queues

2021-01-26 Thread Paolo Valente
Many throughput-sensitive workloads are made of several parallel I/O flows, with all flows generated by the same application, or more generically by the same task (e.g., system boot). The most counterproductive action with these workloads is plugging I/O dispatch when one of the bfq_queues associat

[PATCH] irqchip: ls-extirq: add flag IRQCHIP_SKIP_SET_WAKE to remove call trace

2021-01-26 Thread Biwen Li
From: Biwen Li Add flag IRQCHIP_SKIP_SET_WAKE to remove call trace as follow, [ 45.605239] Unbalanced IRQ 120 wake disable [ 45.609445] WARNING: CPU: 0 PID: 1124 at kernel/irq/manage.c:800 irq_set_irq_wake+0x154/0x1a0 [ 45.617965] Modules linked in: fsl_jr_uio caam_jr caamkeyblob_desc cry

Preemptible idr_alloc() in QRTR code

2021-01-26 Thread Mark Rutland
Hi, When fuzzing arm64 with Syzkaller, I'm seeing some splats where this_cpu_ptr() is used in the bowels of idr_alloc(), by way of radix_tree_node_alloc(), in a preemptible context: | BUG: using smp_processor_id() in preemptible [] code: syz-executor.1/32582 | caller is debug_smp_process

Re: [PATCH] PCI: dwc: layerscape: convert to builtin_platform_driver()

2021-01-26 Thread Lorenzo Pieralisi
On Wed, 20 Jan 2021 11:52:46 +0100, Michael Walle wrote: > fw_devlink will defer the probe until all suppliers are ready. We can't > use builtin_platform_driver_probe() because it doesn't retry after probe > deferral. Convert it to builtin_platform_driver(). Applied to pci/dwc, thanks! [1/1] PCI:

[PATCH BUGFIX/IMPROVEMENT 4/6] block, bfq: fix weight-raising resume with !low_latency

2021-01-26 Thread Paolo Valente
When the io_latency heuristic is off, bfq_queues must not start to be weight-raised. Unfortunately, by mistake, this may happen when the state of a previously weight-raised bfq_queue is resumed after a queue split. This commit fixes this error. Tested-by: Jan Kara Signed-off-by: Paolo Valente --

Re: [PATCH] PCI: dwc: layerscape: convert to builtin_platform_driver()

2021-01-26 Thread Geert Uytterhoeven
Hi Michael, On Tue, Jan 26, 2021 at 11:46 AM Michael Walle wrote: > Am 2021-01-26 11:02, schrieb Lorenzo Pieralisi: > > On Wed, Jan 20, 2021 at 11:52:46AM +0100, Michael Walle wrote: > >> fw_devlink will defer the probe until all suppliers are ready. We > >> can't > >> use builtin_platform_driver

[PATCH 1/2] ARM: dts: rockchip: fix pinctrl sleep nodename for rk3036-kylin and rk3288

2021-01-26 Thread Johan Jonker
A test with the command below aimed at powerpc generates notifications in the Rockchip ARM tree. Fix pinctrl "sleep" nodename by renaming it to "suspend" for rk3036-kylin and rk3288 make ARCH=arm dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/powerpc/sleep.yaml Signed-off-by: Johan

Re: [RFC PATCH v3 0/2] scheduler: expose the topology of clusters and add cluster scheduler

2021-01-26 Thread Dietmar Eggemann
On 25/01/2021 11:50, Song Bao Hua (Barry Song) wrote: > >> -Original Message- >> From: Dietmar Eggemann [mailto:dietmar.eggem...@arm.com] >> Sent: Wednesday, January 13, 2021 12:00 AM >> To: Morten Rasmussen ; Tim Chen >> >> Cc: Song Bao Hua (Barry Song) ; >> valentin.schnei...@arm.com; c

[PATCH v2 3/3] dt-bindings: clock: adi,axi-clkgen: add compatible string for ZynqMP support

2021-01-26 Thread Alexandru Ardelean
The axi-clkgen driver now supports ZynqMP (UltraScale) as well, however the driver needs to use different PFD & VCO limits. For ZynqMP, these needs to be selected by using the 'adi,zynqmp-axi-clkgen-2.00.a' string. Signed-off-by: Alexandru Ardelean --- Documentation/devicetree/bindings/clock/ad

[PATCH v2 2/3] clk: clk-axiclkgen: add ZynqMP PFD and VCO limits

2021-01-26 Thread Alexandru Ardelean
For ZynqMP (Ultrascale) the PFD and VCO limits are different. In order to support these, this change adds a compatible string (i.e. 'adi,zynqmp-axi-clkgen-2.00.a') which will take into account for these limits and apply them. Signed-off-by: Dragos Bogdan Signed-off-by: Mathias Tausen Signed-off

[PATCH v2 0/3] clk: clk-axiclgen: add support for ZynqMP

2021-01-26 Thread Alexandru Ardelean
Previous set: https://lore.kernel.org/linux-clk/20201221144224.50814-1-alexandru.ardel...@analog.com/ Changelog v1 -> v2: * split patch 'clk: axi-clkgen: add support for ZynqMP (UltraScale)' into: - clk: axi-clkgen: remove ARCH dependency in Kconfig - clk: clk-axiclkgen: add ZynqMP PFD a

Re: [PATCH] ARM: mm: harden branch predictor before opening interrupts during fault

2021-01-26 Thread Russell King - ARM Linux admin
On Tue, Jan 26, 2021 at 05:17:08PM +0800, Lecopzer Chen wrote: > Hi all, > > I don't see any fix for this issue now(maybe I missed it..?), > could we fix this if there is better solution? > This issue exists almost two years. I don't think anyone provided an acceptable patch. The first patch mov

Re: [PATCH] ARM: mm: harden branch predictor before opening interrupts during fault

2021-01-26 Thread Sebastian Andrzej Siewior
On 2021-01-26 10:59:32 [+], Russell King - ARM Linux admin wrote: > On Tue, Jan 26, 2021 at 05:17:08PM +0800, Lecopzer Chen wrote: > > Hi all, > > > > I don't see any fix for this issue now(maybe I missed it..?), > > could we fix this if there is better solution? > > This issue exists almost t

Re: [PATCH] ARM: dts: omap3-echo: Add speaker sound card support

2021-01-26 Thread Tony Lindgren
* André Hentschel [201227 19:18]: > This adds audio playback to the first generation Amazon Echo > > Signed-off-by: André Hentschel > --- > > It took me by far too long to get this working as the codec sets one > important bit based on the > combination of provided supplies. That was just too

Re: md_raid: mdX_raid6 looping after sync_action "check" to "idle" transition

2021-01-26 Thread Guoqing Jiang
Hi Donald, On 1/26/21 10:50, Donald Buczek wrote: [...] diff --git a/drivers/md/md.c b/drivers/md/md.c index 2d21c298ffa7..f40429843906 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -4687,11 +4687,13 @@ action_store(struct mddev *mddev, const char *page, size_t len)   cle

Re: [PATCH v1] drm/panel: simple: add SGD GKTW70SDAD1SD

2021-01-26 Thread Fabio Estevam
Hi Oliver, On Mon, Jan 25, 2021 at 7:17 PM Oliver Graute wrote: > I would prefer mine, because I got a wrong colored penguin on bootup > with yours :-) I have originally passed .bpc = 8, but looking at the panel datasheet, this should be: .bpc = 6 instead. In your patch, you pass the timing pa

[RFC] clk: Mark HW enabled clocks as enabled in core

2021-01-26 Thread Abel Vesa
Some clocks are already enabled in HW even before the kernel starts to boot. So, in order to make sure that these clocks do not get disabled when clk_disable_unused call is done or when reparenting clocks, we enable them in core on clock registration. Such a clock will have to be registered with CL

Re: [PATCH 5.4 00/88] 5.4.93-rc2 review

2021-01-26 Thread Greg Kroah-Hartman
On Tue, Jan 26, 2021 at 04:43:51PM +0530, Naresh Kamboju wrote: > On Tue, 26 Jan 2021 at 15:33, Greg Kroah-Hartman > wrote: > > > > This is the start of the stable review cycle for the 5.4.93 release. > > There are 88 patches in this series, all will be posted as a response > > to this one. If an

Re: [PATCH] mm/page_owner: Use helper function zone_end_pfn() to get end_pfn

2021-01-26 Thread David Hildenbrand
On 23.01.21 08:05, Miaohe Lin wrote: Commit 108bcc96ef70 ("mm: add & use zone_end_pfn() and zone_spans_pfn()") introduced the helper zone_end_pfn() to calculate the zone end pfn. But pagetypeinfo_showmixedcount_print forgot to use it. And the initialization of local variable pfn is duplicated, re

Re: [PATCH V2] ARM: dts: omap36xx: Remove turbo mode for 1GHz variants

2021-01-26 Thread Tony Lindgren
* Adam Ford [210109 19:01]: > Previously, the 1GHz variants were marked as a turbo, > because that variant has reduced thermal operating range. > > Now that the thermal throttling is in place, it should be > safe to remove the turbo-mode from the 1GHz variants, because > the CPU will automaticall

Re: [PATCH 5.4 00/88] 5.4.93-rc2 review

2021-01-26 Thread Naresh Kamboju
On Tue, 26 Jan 2021 at 16:46, Greg Kroah-Hartman wrote: > > On Tue, Jan 26, 2021 at 04:43:51PM +0530, Naresh Kamboju wrote: > > On Tue, 26 Jan 2021 at 15:33, Greg Kroah-Hartman > > wrote: > > > > > > This is the start of the stable review cycle for the 5.4.93 release. > > > There are 88 patches i

Re: [RFC][PATCH] locking/refcount: Provide __refcount API to obtain the old value

2021-01-26 Thread David Howells
Will Deacon wrote: > > @@ -219,9 +235,14 @@ static inline void refcount_add(int i, r > > * > > * Return: true if the increment was successful, false otherwise > > */ > > +static inline __must_check bool __refcount_inc_not_zero(refcount_t *r, int > > *oldp) > > +{ > > + return __refcount_

Re: [PATCH] perf/intel: Remove Perfmon-v4 counter_freezing support

2021-01-26 Thread Xu, Like
On 2021/1/26 17:51, Paolo Bonzini wrote: On 11/11/20 03:42, Xu, Like wrote: Hi Peter, On 2020/11/11 4:52, Stephane Eranian wrote: On Tue, Nov 10, 2020 at 7:37 AM Peter Zijlstra  wrote: On Tue, Nov 10, 2020 at 04:12:57PM +0100, Peter Zijlstra wrote: On Mon, Nov 09, 2020 at 10:12:37AM +0800, L

[PATCH net-next] hv_netvsc: Copy packets sent by Hyper-V out of the receive buffer

2021-01-26 Thread Andrea Parri (Microsoft)
Pointers to receive-buffer packets sent by Hyper-V are used within the guest VM. Hyper-V can send packets with erroneous values or modify packet fields after they are processed by the guest. To defend against these scenarios, copy (sections of) the incoming packet after validating their length an

Re: [PATCH] optee: simplify i2c access

2021-01-26 Thread Jorge Ramirez-Ortiz, Foundries
On 26/01/21, Arnd Bergmann wrote: > On Tue, Jan 26, 2021 at 9:08 AM Jorge Ramirez-Ortiz, Foundries > wrote: > > > > On 25/01/21, Arnd Bergmann wrote: > > > From: Arnd Bergmann > > > > > > Storing a bogus i2c_client structure on the stack adds overhead and > > > causes a compile-time warning: > >

Re: [PATCH] x86/kgdb: Allow removal of early BPs

2021-01-26 Thread Peter Zijlstra
On Mon, Dec 14, 2020 at 03:13:12PM +0100, Stefan Saecherl wrote: > One thing to consider when doing this is that code can go away during boot > (e.g. .init.text). Previously kgdb_arch_remove_breakpoint handled this case > gracefully by just having copy_to_kernel_nofault fail but if one then calls

Re: [PATCH 5.10 000/203] 5.10.11-rc2 review

2021-01-26 Thread Pavel Machek
Hi! > This is the start of the stable review cycle for the 5.10.11 release. > There are 203 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 should be made by Thu, 28 Jan 2021 09:42:40 +

Re: [PATCH v3 2/4] KVM: SVM: Add emulation support for #GP triggered by SVM instructions

2021-01-26 Thread Paolo Bonzini
On 26/01/21 09:18, Wei Huang wrote: @@ -288,6 +290,9 @@ int svm_set_efer(struct kvm_vcpu *vcpu, u64 efer) if (!(efer & EFER_SVME)) { svm_leave_nested(svm); svm_set_gif(svm, true); + /* #GP intercept is still ne

Re: [RESEND, V2] i2c: mediatek: Move suspend and resume handling to NOIRQ phase

2021-01-26 Thread Qii Wang
Hi Wolfram, On Sat, 2021-01-09 at 16:29 +0800, qii.w...@mediatek.com wrote: > From: Qii Wang > > Some i2c device driver indirectly uses I2C driver when it is now > being suspended. The i2c devices driver is suspended during the > NOIRQ phase and this cannot be changed due to other dependencies.

Re: [PATCH v16 07/11] secretmem: use PMD-size pages to amortize direct map fragmentation

2021-01-26 Thread Michal Hocko
On Thu 21-01-21 14:27:19, Mike Rapoport wrote: > From: Mike Rapoport > > Removing a PAGE_SIZE page from the direct map every time such page is > allocated for a secret memory mapping will cause severe fragmentation of > the direct map. This fragmentation can be reduced by using PMD-size pages > a

Re: [PATCH] arm: smp: remove unused variable

2021-01-26 Thread Russell King - ARM Linux admin
On Tue, Jan 26, 2021 at 11:04:47AM +0100, Geert Uytterhoeven wrote: > Hi Wolfram, > > On Mon, Dec 28, 2020 at 1:03 PM Wolfram Sang > wrote: > > Not used anymore after refactoring: > > > > arch/arm/kernel/smp.c: In function ‘show_ipi_list’: > > arch/arm/kernel/smp.c:543:16: warning: variable ‘irq’

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

2021-01-26 Thread Stephen Rothwell
Hi all, Commits daa94e1d8977 ("NFS: Convert readpage to readahead and use netfs_readahead for fscache") 08a636bcf023 ("NFS: Convert to the netfs API and nfs_readpage to use netfs_readpage") 56ee45bd6a23 ("NFS: Allow internal use of read structs and functions") 31d24fb6dff4 ("NFS: Add nf

Re: [PATCH v2 1/3] iommu/arm-smmu: Add support for driver IOMMU fault handlers

2021-01-26 Thread Robin Murphy
On 2021-01-25 21:51, Jordan Crouse wrote: On Fri, Jan 22, 2021 at 12:53:17PM +, Robin Murphy wrote: On 2021-01-22 12:41, Will Deacon wrote: On Tue, Nov 24, 2020 at 12:15:58PM -0700, Jordan Crouse wrote: Call report_iommu_fault() to allow upper-level drivers to register their own fault hand

Re: [v7,3/7] PCI: mediatek-gen3: Add MediaTek Gen3 driver for MT8192

2021-01-26 Thread Jianjun Wang
On Mon, 2021-01-25 at 13:54 -0600, Rob Herring wrote: > On Wed, Jan 13, 2021 at 07:39:57PM +0800, Jianjun Wang wrote: > > MediaTek's PCIe host controller has three generation HWs, the new > > generation HW is an individual bridge, it supports Gen3 speed and > > compatible with Gen2, Gen1 speed. > >

Re: [PATCH v3 0/4] Handle #GP for SVM execution instructions

2021-01-26 Thread Paolo Bonzini
On 26/01/21 09:18, Wei Huang wrote: While running SVM related instructions (VMRUN/VMSAVE/VMLOAD), some AMD CPUs check EAX against reserved memory regions (e.g. SMM memory on host) before checking VMCB's instruction intercept. If EAX falls into such memory areas, #GP is triggered before #VMEXIT. T

Re: [PATCH] arm/mach-omap2: fix spellint typo

2021-01-26 Thread Tony Lindgren
* Wang Qing [200917 10:49]: > Change the comment typo: "ununsed" -> "unused". Sorry looks like this is still pending, applying into omap-for-v5.12/soc. Thanks, Tony

Re: [PATCH v3 4/4] KVM: SVM: Support #GP handling for the case of nested on nested

2021-01-26 Thread Paolo Bonzini
On 26/01/21 09:18, Wei Huang wrote: Under the case of nested on nested (L0->L1->L2->L3), #GP triggered by SVM instructions can be hided from L1. Instead the hypervisor can inject the proper #VMEXIT to inform L1 of what is happening. Thus L1 can avoid invoking the #GP workaround. For this reason

Re: [RFC] clk: Mark HW enabled clocks as enabled in core

2021-01-26 Thread Sascha Hauer
On Tue, Jan 26, 2021 at 01:21:36PM +0200, Abel Vesa wrote: > Some clocks are already enabled in HW even before the kernel > starts to boot. So, in order to make sure that these clocks do not > get disabled when clk_disable_unused call is done or when > reparenting clocks, we enable them in core on

Re: [PATCH v3 2/4] KVM: SVM: Add emulation support for #GP triggered by SVM instructions

2021-01-26 Thread Maxim Levitsky
On Tue, 2021-01-26 at 03:18 -0500, Wei Huang wrote: > From: Bandan Das > > While running SVM related instructions (VMRUN/VMSAVE/VMLOAD), some AMD > CPUs check EAX against reserved memory regions (e.g. SMM memory on host) > before checking VMCB's instruction intercept. If EAX falls into such > mem

Re: [PATCH v11 12/13] mm/vmalloc: Hugepage vmalloc mappings

2021-01-26 Thread Ding Tianhong
On 2021/1/26 17:47, Nicholas Piggin wrote: > Excerpts from Ding Tianhong's message of January 26, 2021 4:59 pm: >> On 2021/1/26 12:45, Nicholas Piggin wrote: >>> Support huge page vmalloc mappings. Config option HAVE_ARCH_HUGE_VMALLOC >>> enables support on architectures that define HAVE_ARCH_HUGE_

Re: [PATCH v3 3/4] KVM: SVM: Add support for SVM instruction address check change

2021-01-26 Thread Maxim Levitsky
On Tue, 2021-01-26 at 03:18 -0500, Wei Huang wrote: > New AMD CPUs have a change that checks #VMEXIT intercept on special SVM > instructions before checking their EAX against reserved memory region. > This change is indicated by CPUID_0x800A_EDX[28]. If it is 1, #VMEXIT > is triggered before #G

Re: [PATCH] perf/intel: Remove Perfmon-v4 counter_freezing support

2021-01-26 Thread Peter Zijlstra
On Tue, Jan 26, 2021 at 10:51:39AM +0100, Paolo Bonzini wrote: > What is the state of this work? I was expecting a new version that doesn't > use counter_freezing. However, I see that counter_freezing is still in > there, so this patch from Peter has never been applied. Bah, I forgot about it. L

Re: [PATCH v4 1/3] arm64: Improve kernel address detection of __is_lm_address()

2021-01-26 Thread Vincenzo Frascino
On 1/25/21 5:56 PM, Catalin Marinas wrote: > On Mon, Jan 25, 2021 at 04:09:57PM +, Vincenzo Frascino wrote: >> On 1/25/21 2:59 PM, Catalin Marinas wrote: >>> On Mon, Jan 25, 2021 at 02:36:34PM +, Vincenzo Frascino wrote: On 1/25/21 1:02 PM, Mark Rutland wrote: > On Fri, Jan 22,

[PATCH v3 0/2] iommu: fix the failure of deferred attach for iommu attach device

2021-01-26 Thread Lianbo Jiang
This patchset is to fix the failure of deferred attach for iommu attach device, it includes the following two patches: [1] [PATCH 1/2] dma-iommu: use static-key to minimize the impact in the fast-path This is a prepared patch for the second one, move out the is_kdump_kernel() check from i

Re: [PATCH] arm64/smp: Remove unused irq variable in arch_show_interrupts()

2021-01-26 Thread Geert Uytterhoeven
Hi Zenghui, On Fri, Dec 25, 2020 at 8:05 AM Zenghui Yu wrote: > On 2020/12/15 18:30, Geert Uytterhoeven wrote: > > arch/arm64/kernel/smp.c: In function ‘arch_show_interrupts’: > > arch/arm64/kernel/smp.c:808:16: warning: unused variable ‘irq’ > > [-Wunused-variable] > >808 |

[PATCH v3 1/2] dma-iommu: use static-key to minimize the impact in the fast-path

2021-01-26 Thread Lianbo Jiang
Let's move out the is_kdump_kernel() check from iommu_dma_deferred_attach() to iommu_dma_init(), and use the static-key in the fast-path to minimize the impact in the normal case. Signed-off-by: Lianbo Jiang Co-developed-by: Robin Murphy Signed-off-by: Robin Murphy --- drivers/iommu/dma-iommu.

[PATCH v3 2/2] iommu: use the __iommu_attach_device() directly for deferred attach

2021-01-26 Thread Lianbo Jiang
Currently, because domain attach allows to be deferred from iommu driver to device driver, and when iommu initializes, the devices on the bus will be scanned and the default groups will be allocated. Due to the above changes, some devices could be added to the same group as below: [3.859417]

[PATCH] mm/hugetlb: Fix use after free when subpool max_hpages accounting is not enabled

2021-01-26 Thread Miaohe Lin
When subpool max_hpages accounting is not enabled, used_hpages is always 0 and might lead to release subpool prematurely because it indicates no pages are used now while there might be. In order to fix this issue, we should check used_hpages == 0 iff max_hpages accounting is enabled. As max_hpages

Re: [PATCH v3 1/2] bio: limit bio max size

2021-01-26 Thread Ming Lei
On Tue, Jan 26, 2021 at 06:26:02AM +, Damien Le Moal wrote: > On 2021/01/26 15:07, Ming Lei wrote: > > On Tue, Jan 26, 2021 at 04:06:06AM +, Damien Le Moal wrote: > >> On 2021/01/26 12:58, Ming Lei wrote: > >>> On Tue, Jan 26, 2021 at 10:32:34AM +0900, Changheun Lee wrote: > bio size c

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

2021-01-26 Thread Bastien Nocera
On Tue, 2021-01-26 at 19:54 +1100, Stephen Rothwell wrote: > Hi all, > > Commit > >   98d2c3e17310 ("Bluetooth: L2CAP: Try harder to accept device not > knowing options") > > is missing a Signed-off-by from its author. Marcel, is it possible to amend this to add my Signed-off-by? Signed-off-by

[PATCH v2 4/4] hv_netvsc: Restrict configurations on isolated guests

2021-01-26 Thread Andrea Parri (Microsoft)
Restrict the NVSP protocol version(s) that will be negotiated with the host to be NVSP_PROTOCOL_VERSION_61 or greater if the guest is running isolated. Moreover, do not advertise the SR-IOV capability and ignore NVSP_MSG_4_TYPE_SEND_VF_ASSOCIATION messages in isolated guests, which are not suppose

[PATCH v2 2/4] Drivers: hv: vmbus: Restrict vmbus_devices on isolated guests

2021-01-26 Thread Andrea Parri (Microsoft)
Only the VSCs or ICs that have been hardened and that are critical for the successful adoption of Confidential VMs should be allowed if the guest is running isolated. This change reduces the footprint of the code that will be exercised by Confidential VMs and hence the exposure to bugs and vulnera

Re: [RESEND v13 03/10] KVM: x86/pmu: Use IA32_PERF_CAPABILITIES to adjust features visibility

2021-01-26 Thread Paolo Bonzini
On 08/01/21 02:36, Like Xu wrote: @@ -401,6 +398,9 @@ static void intel_pmu_init(struct kvm_vcpu *vcpu) pmu->fixed_counters[i].idx = i + INTEL_PMC_IDX_FIXED; pmu->fixed_counters[i].current_config = 0; } + + vcpu->arch.perf_capabilities = guest_cpuid_

[PATCH v2 3/4] Drivers: hv: vmbus: Enforce 'VMBus version >= 5.2' on isolated guests

2021-01-26 Thread Andrea Parri (Microsoft)
Restrict the protocol version(s) that will be negotiated with the host to be 5.2 or greater if the guest is running isolated. This reduces the footprint of the code that will be exercised by Confidential VMs and hence the exposure to bugs and vulnerabilities. Signed-off-by: Andrea Parri (Microsof

Re: [PATCH v11 12/13] mm/vmalloc: Hugepage vmalloc mappings

2021-01-26 Thread Nicholas Piggin
Excerpts from Ding Tianhong's message of January 26, 2021 4:59 pm: > On 2021/1/26 12:45, Nicholas Piggin wrote: >> Support huge page vmalloc mappings. Config option HAVE_ARCH_HUGE_VMALLOC >> enables support on architectures that define HAVE_ARCH_HUGE_VMAP and >> supports PMD sized vmap mappings. >>

[PATCH v2 0/4] Drivers: hv: vmbus: Restrict devices and configurations on 'isolated' guests

2021-01-26 Thread Andrea Parri (Microsoft)
Changes since v1 [1]: - improve/add logging (Haiyang Zhang) - move NVSC version check after version negotiation (Haiyang Zhang) [1] https://lkml.kernel.org/r/20210119175841.22248-1-parri.and...@gmail.com Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: "H. Peter Anvin" Cc: Arnd

[PATCH v2 1/4] x86/hyperv: Load/save the Isolation Configuration leaf

2021-01-26 Thread Andrea Parri (Microsoft)
If bit 22 of Group B Features is set, the guest has access to the Isolation Configuration CPUID leaf. On x86, the first four bits of EAX in this leaf provide the isolation type of the partition; we entail three isolation types: 'SNP' (hardware-based isolation), 'VBS' (software-based isolation), an

Re: [PATCH v16 07/11] secretmem: use PMD-size pages to amortize direct map fragmentation

2021-01-26 Thread David Hildenbrand
On 26.01.21 12:46, Michal Hocko wrote: On Thu 21-01-21 14:27:19, Mike Rapoport wrote: From: Mike Rapoport Removing a PAGE_SIZE page from the direct map every time such page is allocated for a secret memory mapping will cause severe fragmentation of the direct map. This fragmentation can be red

Re: [PATCH] perf/intel: Remove Perfmon-v4 counter_freezing support

2021-01-26 Thread Paolo Bonzini
On 26/01/21 12:35, Xu, Like wrote: Ah, now we have the v3 version on guest PEBS feature. It does not rely on counter_freezing, but disables the co-existence of guest PEBS and host PEBS. I am not clear about your attitude towards this co-existence. There are also more interesting topics for

[PATCH v1] mm/memory_hotplug: MEMHP_MERGE_RESOURCE -> MHP_MERGE_RESOURCE

2021-01-26 Thread David Hildenbrand
Let's make "MEMHP_MERGE_RESOURCE" consistent with "MHP_NONE", "mhp_t" and "mhp_flags". As discussed recently [1], "mhp" is our internal acronym for memory hotplug now. [1] https://lore.kernel.org/linux-mm/c37de2d0-28a1-4f7d-f944-cfd7d81c3...@redhat.com/ Cc: Andrew Morton Cc: "K. Y. Srinivasan"

Re: [PATCH v3 4/4] KVM: SVM: Support #GP handling for the case of nested on nested

2021-01-26 Thread Maxim Levitsky
On Tue, 2021-01-26 at 03:18 -0500, Wei Huang wrote: > Under the case of nested on nested (L0->L1->L2->L3), #GP triggered by > SVM instructions can be hided from L1. Instead the hypervisor can > inject the proper #VMEXIT to inform L1 of what is happening. Thus L1 > can avoid invoking the #GP workaro

Re: [v7,1/7] dt-bindings: PCI: mediatek-gen3: Add YAML schema

2021-01-26 Thread Jianjun Wang
On Mon, 2021-01-25 at 14:22 -0600, Rob Herring wrote: > On Wed, Jan 13, 2021 at 07:39:55PM +0800, Jianjun Wang wrote: > > Add YAML schemas documentation for Gen3 PCIe controller on > > MediaTek SoCs. > > > > Signed-off-by: Jianjun Wang > > Acked-by: Ryder Lee > > --- > > .../bindings/pci/mediat

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