Re: [PATCH v1 13/18] media: hantro: Introduce G2/HEVC decoder

2021-02-18 Thread Benjamin Gaignard
Le 17/02/2021 à 21:45, Ezequiel Garcia a écrit : Hi Benjamin, Before I review the implementation in detail, there's one thing that looks suspicious. On Wed, 2021-02-17 at 09:03 +0100, Benjamin Gaignard wrote: Implement all the logic to get G2 hardware decoding HEVC frames. It support up leve

Re: code style: Re: [PATCH v4] printk: Userspace format enumeration support

2021-02-18 Thread Petr Mladek
On Wed 2021-02-17 16:32:21, Chris Down wrote: > Chris Down writes: > > open(f); > > debugfs_file_get(f); > > fops->open(); > >inode->private = ps; > > debugfs_file_put(f); > > > > remove_printk_fmt_sec(); /* kfree ps */ > > > > read(f); > > debugfs_file_get(f); > > fops->read(); > >p

Re: [PATCH net-next] misc: Add Renesas Synchronization Management Unit (SMU) support

2021-02-18 Thread Arnd Bergmann
On Thu, Feb 18, 2021 at 4:28 AM Min Li wrote: > > If the driver can use the same algorithm that is in your user space software > > today, that would seem to be a nicer way to handle it than requiring a > > separate application. > > > > Hi Arnd > > > What is the device driver that you are referring

Re: [PATCH v1] usb: typec: tcpm: Wait for vbus discharge to VSAFE0V before toggling

2021-02-18 Thread Greg Kroah-Hartman
On Thu, Feb 18, 2021 at 02:38:45AM -0800, Badhri Jagan Sridharan wrote: > Hi Greg, > > This patch is a bug fix for the following patch which was introduced in 5.11. > > commit f321a02caebdd0c56e167610cda2fa148cd96e8b > Author: Badhri Jagan Sridharan > Date: Wed Oct 28 23:31:35 2020 -0700 > >

Re: [PATCH v2] MIPS: Add basic support for ptrace single step

2021-02-18 Thread Thomas Bogendoerfer
On Tue, Feb 16, 2021 at 02:55:36PM +0100, Maciej W. Rozycki wrote: > On Fri, 12 Feb 2021, Thomas Bogendoerfer wrote: > > > > IMHO ptrace single step is for CPUs supporting single stepping and not > > > for emulating it in the kernel. > > > > I've checked other arch how they implement single step,

Re: [PATCH RFC] mm/madvise: introduce MADV_POPULATE to prefault/prealloc memory

2021-02-18 Thread David Hildenbrand
If we hit hardware errors on pages, ignore them - nothing we really can or should do. 3. On errors during MADV_POPULATED, some memory might have been populated. Callers have to clean up if they care. How does caller find out? madvise reports 0 on success so how do you find ou

Re: [PATCH v7 2/3] scmi-cpufreq: Get opp_shared_cpus from opp-v2 for EM

2021-02-18 Thread Viresh Kumar
On 15-02-21, 07:51, Nicola Mazzucato wrote: > + /* > + * Add OPPs only on those CPUs for which we haven't already done so. > + */ > nr_opp = dev_pm_opp_get_opp_count(cpu_dev); Please add a more detailed comment here explaining why you expect OPPs to be present here in advance.

Re: code style: Re: [PATCH v4] printk: Userspace format enumeration support

2021-02-18 Thread Petr Mladek
On Wed 2021-02-17 15:56:38, Chris Down wrote: > Petr Mladek writes: > > > > How about config PRINTK_INDEX? > > > > > > Ah yes, I also like that. PRINTK_INDEX is fine from my perspective and is > > > more straightforward than "enumeration", thanks. > > > > It is better than enumeration. But there

Re: [PATCH v7 1/3] scmi-cpufreq: Remove deferred probe

2021-02-18 Thread Viresh Kumar
On 15-02-21, 07:51, Nicola Mazzucato wrote: > The current implementation of the scmi_cpufreq_init() function returns > -EPROBE_DEFER when the OPP table is not populated. In practice the > cpufreq core cannot handle this error code. > Therefore, fix the return value and clarify the error message. >

Re: [PATCH v1 07/18] media: hantro: Add a field to distinguish the hardware versions

2021-02-18 Thread Dan Carpenter
On Wed, Feb 17, 2021 at 09:02:55AM +0100, Benjamin Gaignard wrote: > Decoders hardware blocks could exist in multiple versions: add > a field to distinguish them at runtime. > Keep the default behavoir to be G1 hardware. > > Signed-off-by: Benjamin Gaignard > Signed-off-by: Ezequiel Garcia > Sig

Re: [PATCH v2 1/2] staging: comedi: cast function output to assigned variable type

2021-02-18 Thread Ian Abbott
On 18/02/2021 08:44, Atul Gopinathan wrote: Fix the following warning generated by sparse: drivers/staging//comedi/comedi_fops.c:2956:23: warning: incorrect type in assignment (different address spaces) drivers/staging//comedi/comedi_fops.c:2956:23:expected unsigned int *chanlist drivers/s

Re: [PATCH v1 06/18] media: hantro: Make sure that ctx->codex_ops is set

2021-02-18 Thread Dan Carpenter
On Wed, Feb 17, 2021 at 09:02:54AM +0100, Benjamin Gaignard wrote: > Do not try to call ctx->codec_ops->done if ctx->codec_ops is not set. > When you're writing a patch like this please say in the commit message if this can happen or not. Option 1: Option 1: sometimes this is NULL in Option 2:

Re: [PATCH v1 09/18] media: hantro: move hantro_needs_postproc function

2021-02-18 Thread Dan Carpenter
On Wed, Feb 17, 2021 at 09:02:57AM +0100, Benjamin Gaignard wrote: > hantro_needs_postproc function becoming to much complex to > stray inline in .h file move it to .c file. > Yeah. I do think this would make more sense folded in with patch 7. regards, dan carpenter

Re: [PATCH] coccinelle: misc: add swap script

2021-02-18 Thread Denis Efremov
On 2/18/21 1:17 PM, Julia Lawall wrote: > > > On Thu, 18 Feb 2021, Denis Efremov wrote: > >> >> >> On 2/18/21 12:31 AM, Julia Lawall wrote: +@depends on patch@ +identifier tmp; +expression a, b; +type T; +@@ + +( +- T tmp; +| +- T tmp = 0; >>>

Re: [PATCH] irqdomain: remove debugfs_file from struct irq_domain

2021-02-18 Thread Marc Zyngier
On 2021-02-18 09:38, Greg KH wrote: On Thu, Feb 18, 2021 at 09:04:42AM +, Marc Zyngier wrote: On Thu, 18 Feb 2021 08:54:00 +, Greg KH wrote: [...] > > > Wow, wait, you are removing a debugfs file _before_ debugfs is even > > > initialized? Didn't expect that, ok, let me go try this a

Re: {standard input}:577: Error: unsupported relocation against base

2021-02-18 Thread Michael Ellerman
Feng Tang writes: > Hi Michael, > > On Tue, Feb 16, 2021 at 08:36:02PM +1100, Michael Ellerman wrote: >> Feng Tang writes: >> > Hi Christophe and Michael, >> > >> > On Mon, Jan 18, 2021 at 10:24:08PM +0800, Christophe Leroy wrote: >> >> >> >> Le 05/01/2021 ? 11:58, kernel test robot a 閏rit : >>

Re: [PATCH v5 1/8] smp: Run functions concurrently in smp_call_function_many_cond()

2021-02-18 Thread Peter Zijlstra
On Thu, Feb 18, 2021 at 09:36:09AM +, Nadav Amit wrote: > I prefer to export on_each_cpu_cond_mask() and instead turn the users > (on_each_cpu(), on_each_cpu_mask() and on_each_cpu_cond()) into inline > functions in smp.h. That makes it impossible (barring LTO) for the compiler to do constant

pstore: fix compression

2021-02-18 Thread Jiri Bohac
pstore_compress() and decompress_record() use a mistyped config option name ("PSTORE_COMPRESSION" instead of "PSTORE_COMPRESS"). As a result compression and decompressionm of pstore records is always disabled. Use the correct config option name. Signed-off-by: Jiri Bohac Fixes: fd49e03280e596e54

Re: [PATCH RFC] mm/madvise: introduce MADV_POPULATE to prefault/prealloc memory

2021-02-18 Thread Rolf Eike Beer
Let's introduce MADV_POPULATE with the following semantics 1. MADV_POPULATED does not work on PROT_NONE and special VMAs. It works on everything else. 2. Errors during MADV_POPULATED (especially OOM) are reported. If we hit hardware errors on pages, ignore them - nothing we really can or

[PATCH] drivers: hv: channel: fixed a tab having spaces before hv: connection: fixed required space for "=" sign before.

2021-02-18 Thread Vasanth
Fixed checkpatch warning: Tab space before having normal space. Fixed checkpatch error: Required space for "=" sign before. Signed-off-by: Vasanth --- drivers/hv/channel.c| 2 +- drivers/hv/connection.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hv/channe

Re: linux-next: manual merge of the devicetree tree with the powerpc tree

2021-02-18 Thread Stephen Rothwell
Hi Michael, On Thu, 18 Feb 2021 21:44:37 +1100 Michael Ellerman wrote: > > I think it just needs this? > > diff --git a/arch/powerpc/kexec/elf_64.c b/arch/powerpc/kexec/elf_64.c > index 87e34611f93d..0492ca6003f3 100644 > --- a/arch/powerpc/kexec/elf_64.c > +++ b/arch/powerpc/kexec/elf_64.c > @@

[tip:perf/core] BUILD SUCCESS 8bcfdd7cad3dffdd340f9a79098cbf331eb2cd53

2021-02-18 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf/core branch HEAD: 8bcfdd7cad3dffdd340f9a79098cbf331eb2cd53 Merge branch 'perf/kprobes' into perf/core, to pick up finished branch elapsed time: 724m configs tested: 113 configs skipped: 61 The following configs have

Re: [PATCH 2/3] x86/sev-es: Check if regs->sp is trusted before adjusting #VC IST stack

2021-02-18 Thread Joerg Roedel
Hi Andy, On Wed, Feb 17, 2021 at 10:09:46AM -0800, Andy Lutomirski wrote: > Can you get rid of the linked list hack while you're at it? This code > is unnecessarily convoluted right now, and it seems to be just asking > for weird bugs. Just stash the old value in a local variable, please. Yeah,

[tip:sched/core] BUILD SUCCESS c5e6fc08feb2b88dc5dac2f3c817e1c2a4cafda4

2021-02-18 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched/core branch HEAD: c5e6fc08feb2b88dc5dac2f3c817e1c2a4cafda4 sched,x86: Allow !PREEMPT_DYNAMIC elapsed time: 724m configs tested: 115 configs skipped: 3 The following configs have been built successfully. More config

drivers/gpu/drm/drm_mipi_dbi.c:262:52: warning: Either the condition '!fb' is redundant or there is possible null pointer dereference: fb.

2021-02-18 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: f40ddce88593482919761f74910f42f4b84c004b commit: 7e06886bbfca73717e45a0f20cdb4053793c191b drm/mipi-dbi: Remove ->enabled date: 8 months ago compiler: riscv64-linux-gcc (GCC) 9.3.0 If you fix the issue, kin

Re: [PATCH RFC] mm/madvise: introduce MADV_POPULATE to prefault/prealloc memory

2021-02-18 Thread David Hildenbrand
> Am 18.02.2021 um 12:15 schrieb Rolf Eike Beer : > >  >> >>> Let's introduce MADV_POPULATE with the following semantics >>> 1. MADV_POPULATED does not work on PROT_NONE and special VMAs. It works >>> on everything else. >>> 2. Errors during MADV_POPULATED (especially OOM) are reported. If w

Re: [PATCH RFC] mm/madvise: introduce MADV_POPULATE to prefault/prealloc memory

2021-02-18 Thread David Hildenbrand
If we hit hardware errors on pages, ignore them - nothing we really can or should do. 3. On errors during MADV_POPULATED, some memory might have been populated. Callers have to clean up if they care. How does caller find out? madvise reports 0 on success so how do you find ou

[PATCH] KVM: x86: dump_vmcs should not assume GUEST_IA32_EFER is valid

2021-02-18 Thread David Edmondson
When dumping the VMCS, retrieve the current guest value of EFER from the kvm_vcpu structure if neither VM_EXIT_SAVE_IA32_EFER or VM_ENTRY_LOAD_IA32_EFER is set, which can occur if the processor does not support the relevant VM-exit/entry controls. Fixes: 4eb64dce8d0a ("KVM: x86: dump VMCS on inval

[PATCH v2 1/1] clk: sunxi-ng: v3s: use sigma-delta modulation for audio-pll

2021-02-18 Thread Tobias Schramm
Previously it was not possible to achieve clock rates of 24.576MHz and 22.5792MHz, which are commonly required core clocks for the i2s peripheral of v3s based SoCs. Add support for those clock rates through the audio pll's sigma-delta modulator. Signed-off-by: Tobias Schramm --- drivers/clk/sun

Re: [PATCH] coccinelle: misc: add swap script

2021-02-18 Thread Julia Lawall
On Thu, 18 Feb 2021, Denis Efremov wrote: > > > On 2/18/21 1:17 PM, Julia Lawall wrote: > > > > > > On Thu, 18 Feb 2021, Denis Efremov wrote: > > > >> > >> > >> On 2/18/21 12:31 AM, Julia Lawall wrote: > +@depends on patch@ > +identifier tmp; > +expression a, b; > +type T; >

[PATCH v2 0/1] clk: sunxi-ng: v3s: use sigma-delta modulation for audio-pll

2021-02-18 Thread Tobias Schramm
Hi, this patch extends the v3s audio-pll declaration to use sdm for supporting 24.576MHz and 22.5792MHz clock rates, required by the i2s peripheral driver. This is v2 of the patch. The previous version used a flexible postdivider only. However, that setup was unable to provide the 22.5792MHz cloc

[tip:master] BUILD SUCCESS e3e6a51e779fad0084e12091a6670f41cbdb1132

2021-02-18 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git master branch HEAD: e3e6a51e779fad0084e12091a6670f41cbdb1132 Merge branch 'core/mm' elapsed time: 725m configs tested: 117 configs skipped: 4 The following configs have been built successfully. More configs may be tested i

[irqchip: irq/irqchip-next] irqdomain: Remove debugfs_file from struct irq_domain

2021-02-18 Thread irqchip-bot for Greg Kroah-Hartman
The following commit has been merged into the irq/irqchip-next branch of irqchip: Commit-ID: c83fd57be3fefa1522e7381f044fe0b702cbc6ad Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/c83fd57be3fefa1522e7381f044fe0b702cbc6ad Author:Greg Kroah-Hartman A

[irqchip: irq/irqchip-next] debugfs: do not attempt to create a new file before the filesystem is initalized

2021-02-18 Thread irqchip-bot for Greg Kroah-Hartman
The following commit has been merged into the irq/irqchip-next branch of irqchip: Commit-ID: fb0757f54bc9259c4c67907fd97ca3ad109d3f6f Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/fb0757f54bc9259c4c67907fd97ca3ad109d3f6f Author:Greg Kroah-Hartman A

[irqchip: irq/irqchip-next] debugfs: be more robust at handling improper input in debugfs_lookup()

2021-02-18 Thread irqchip-bot for Greg Kroah-Hartman
The following commit has been merged into the irq/irqchip-next branch of irqchip: Commit-ID: 2ad058730606cb68e75177ee7e330e1f94ab7b4b Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/2ad058730606cb68e75177ee7e330e1f94ab7b4b Author:Greg Kroah-Hartman A

Re: [PATCH RFC] mm/madvise: introduce MADV_POPULATE to prefault/prealloc memory

2021-02-18 Thread Michal Hocko
On Thu 18-02-21 11:44:41, David Hildenbrand wrote: > On 18.02.21 11:25, Michal Hocko wrote: > > On Wed 17-02-21 16:48:44, David Hildenbrand wrote: > > > When we manage sparse memory mappings dynamically in user space - also > > > sometimes involving MADV_NORESERVE - we want to dynamically populate/

Re: [RFC] IRQ handlers run with some high-priority interrupts(not NMI) enabled on some platform

2021-02-18 Thread Arnd Bergmann
On Thu, Feb 18, 2021 at 6:30 AM Finn Thain wrote: > On Wed, 17 Feb 2021, Song Bao Hua (Barry Song) wrote: > > > On Sat, 13 Feb 2021, Song Bao Hua (Barry Song) wrote: > > > > > > That scenario seems a little contrived to me (drivers for two or more > > > devices sharing state through their interrup

Re: 5.10 LTS Kernel: 2 or 6 years?

2021-02-18 Thread Willy Tarreau
On Thu, Feb 18, 2021 at 08:43:48AM +0100, Greg Kroah-Hartman wrote: > On Wed, Feb 17, 2021 at 11:48:21AM -0800, Scott Branden wrote: > > Other difficulty with the LTS version is the frequency it is updated. What a stange statement! So basically if fixes come in quickly so that customers are not ex

Re: [PATCH] coccinelle: misc: add swap script

2021-02-18 Thread Denis Efremov
On 2/18/21 2:29 PM, Julia Lawall wrote: > > > On Thu, 18 Feb 2021, Denis Efremov wrote: > >> >> >> On 2/18/21 1:17 PM, Julia Lawall wrote: >>> >>> >>> On Thu, 18 Feb 2021, Denis Efremov wrote: >>> On 2/18/21 12:31 AM, Julia Lawall wrote: >> +@depends on patch@ >> +ident

Re: [PATCH v2 3/8] xen/events: avoid handling the same event on two cpus at the same time

2021-02-18 Thread Jürgen Groß
On 15.02.21 22:35, Boris Ostrovsky wrote: On 2/11/21 5:16 AM, Juergen Gross wrote: @@ -622,6 +623,7 @@ static void xen_irq_lateeoi_locked(struct irq_info *info, bool spurious) } info->eoi_time = 0; + smp_store_release(&info->is_active, 0); Can this be done in lateeoi_a

Re: riscv+KASAN does not boot

2021-02-18 Thread Dmitry Vyukov
On Thu, Feb 18, 2021 at 8:54 AM Alex Ghiti wrote: > > Hi Dmitry, > > > On Wed, Feb 17, 2021 at 5:36 PM Alex Ghiti wrote: > >> > >> Le 2/16/21 à 11:42 PM, Dmitry Vyukov a écrit : > >>> On Tue, Feb 16, 2021 at 9:42 PM Alex Ghiti wrote: > > Hi Dmitry, > > Le 2/16/21 à 6:25 AM, D

[PATCH net-next] net: mscc: Fix MRP switchdev driver

2021-02-18 Thread Horatiu Vultur
This patch fixes the ocelot MRP switchdev driver such that also DSA driver can use these functions. Before the driver presumed that the net_device uses a 'struct ocelot_port_private' as priv which was wrong. The only reason for using ocelot_port_private was to access the net_device, but this can b

Re: pstore: fix compression

2021-02-18 Thread Matteo Croce
On Thu, Feb 18, 2021 at 12:15 PM Jiri Bohac wrote: > > pstore_compress() and decompress_record() use a mistyped config option > name ("PSTORE_COMPRESSION" instead of "PSTORE_COMPRESS"). > As a result compression and decompressionm of pstore records is always > disabled. > > Use the correct config

Re: [PATCH v1 13/18] media: hantro: Introduce G2/HEVC decoder

2021-02-18 Thread Dan Carpenter
On Wed, Feb 17, 2021 at 09:03:01AM +0100, Benjamin Gaignard wrote: > diff --git a/drivers/staging/media/hantro/hantro_drv.c > b/drivers/staging/media/hantro/hantro_drv.c > index e1443c394f62..d171fb80876a 100644 > --- a/drivers/staging/media/hantro/hantro_drv.c > +++ b/drivers/staging/media/hantro

Re: [PATCH v2 10/11] drm/qxl: rework cursor plane

2021-02-18 Thread Gerd Hoffmann
Hi, > I'm still trying to wrap my head around the qxl cursor code. > > Getting vmap out of the commit tail is good, but I feel like this isn't > going in the right direction overall. > > In ast, these helper functions were only good when converting the drvier to > atomic modesetting. So I remo

Re: [PATCH V0 3/6] soc: qcom: dcc:Add driver support for Data Capture and Compare unit(DCC)

2021-02-18 Thread schowdhu
On 2021-02-18 12:29, Vinod Koul wrote: On 17-02-21, 12:18, Souradeep Chowdhury wrote: The DCC is a DMA Engine designed to capture and store data during system crash or software triggers.The DCC operates ^^^ Space after . (quite a few here, pls fix them)

Re: [PATCH RFC] mm/madvise: introduce MADV_POPULATE to prefault/prealloc memory

2021-02-18 Thread Michal Hocko
On Thu 18-02-21 11:54:48, David Hildenbrand wrote: > > > > If we hit > > > > hardware errors on pages, ignore them - nothing we really can or > > > > should do. > > > > 3. On errors during MADV_POPULATED, some memory might have been > > > > populated. Callers have to clean up if

Re: output: was: Re: [PATCH v4] printk: Userspace format enumeration support

2021-02-18 Thread Petr Mladek
On Wed 2021-02-17 15:28:24, Chris Down wrote: > Petr Mladek writes: > > I guess that you already use it internally and have its own tooling > > around it. > > Hmm, we're actually not using it yet widely because I don't want to backport > it to our prod kernel until we're reasonably agreed on the f

Re: [PATCH] KVM: x86: dump_vmcs should not assume GUEST_IA32_EFER is valid

2021-02-18 Thread Paolo Bonzini
On 18/02/21 11:04, David Edmondson wrote: When dumping the VMCS, retrieve the current guest value of EFER from the kvm_vcpu structure if neither VM_EXIT_SAVE_IA32_EFER or VM_ENTRY_LOAD_IA32_EFER is set, which can occur if the processor does not support the relevant VM-exit/entry controls. Print

Re: [PATCH] PCI: imx6: Limit DBI register length for imx6qp pcie

2021-02-18 Thread Krzysztof Wilczyński
Hi Richard, Thank you for sending the patch over! > Refer to commit 075af61c19cd ("PCI: imx6: Limit DBI register length"), > i.MX6QP PCIe has the similar issue. > Define the length of the DBI registers and limit config space to its > length for i.MX6QP PCIe too. You could probably flip these two

[PATCH v3 0/2] hwmon: (pmbus) Add ST STPDDC60 pmbus driver

2021-02-18 Thread Erik Rosen
This patch series adds hardware monitoring support for the ST STPDDC60 chip. The driver has been tested with a Flex BMR481 converter. The checkpatch script complains about an unneeded paranthesis in an if-statement but gcc gives a warning if it is removed. v3 stpddc60_get_offset: -Change type f

Re: [PATCH] serial: 8250: add option to disable registration of legacy ISA ports

2021-02-18 Thread Maarten Brock
On 2021-01-31 14:18, Måns Rullgård wrote: What userspace visable change will be caused by this? There won't be /dev/ttyS devices for ports that don't exist. Oh yes, please! That would mean I can create ttyS2 and upward while keeping ttyPS0 and ttyPS1 (which invaded the serial alias namespac

[PATCH v2 1/2] mm: Make alloc_contig_range handle free hugetlb pages

2021-02-18 Thread Oscar Salvador
alloc_contig_range will fail if it ever sees a HugeTLB page within the range we are trying to allocate, even when that page is free and can be easily reallocated. This has proofed to be problematic for some users of alloc_contic_range, e.g: CMA and virtio-mem, where those would fail the call even w

[PATCH v2 2/2] mm: Make alloc_contig_range handle in-use hugetlb pages

2021-02-18 Thread Oscar Salvador
alloc_contig_range() will fail miserably if it finds a HugeTLB page within the range, without a chance to handle them. Since HugeTLB pages can be migrated as any other page (LRU and Movable), it does not make sense to bail out without trying. Enable the interface to recognize in-use HugeTLB pages s

[PATCH v2 0/2] Make alloc_contig_range handle Hugetlb pages

2021-02-18 Thread Oscar Salvador
v1 -> v2: - Adressed feedback by Michal - Restrict the allocation to a node with __GFP_THISNODE - Drop PageHuge check in alloc_and_dissolve_huge_page - Re-order comments in isolate_or_dissolve_huge_page - Extend comment in isolate_migratepages_block - Place put_page right after we got the pag

[PATCH v3 1/2] hwmon: (pmbus) Add pmbus_set_update() function to set update flag

2021-02-18 Thread Erik Rosen
For the STPDDC60 chip, the vout alarm-limits are represented as an offset relative to the commanded output voltage. This means that the limits are dynamic and must not be cached by the pmbus driver. This patch adds a pmbus_set_sensor() function to pmbus_core to be able to set the update flag on sel

Re: [PATCH v6 03/34] mailbox: vpu-ipc-mailbox: Add support for Intel VPU IPC mailbox

2021-02-18 Thread Alessandrelli, Daniele
Hi Jassi, Thank you very much for your feedback. On Sun, 2021-02-14 at 22:54 -0600, Jassi Brar wrote: > IIUIC, maybe the solution is simpler What if we set txdone_poll. > Always return success in send_data(). And check if we overflew the > fifo in last_tx_done(). If we did overflow, try to r

Re: [PATCH v2 8/8] xen/evtchn: use READ/WRITE_ONCE() for accessing ring indices

2021-02-18 Thread Jürgen Groß
On 17.02.21 14:29, Ross Lagerwall wrote: On 2021-02-11 10:16, Juergen Gross wrote: For avoiding read- and write-tearing by the compiler use READ_ONCE() and WRITE_ONCE() for accessing the ring indices in evtchn.c. Signed-off-by: Juergen Gross --- V2: - modify all accesses (Julien Grall) --- d

Re: [PATCH] staging: wlan-ng: Fixed incorrect type warning in p80211netdev.c

2021-02-18 Thread Dan Carpenter
On Wed, Feb 17, 2021 at 09:12:55PM +0530, Pritthijit Nath wrote: > This change fixes a sparse warning "incorrect type in argument 1 > (different address spaces)". > > Signed-off-by: Pritthijit Nath > --- > drivers/staging/wlan-ng/p80211netdev.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletio

Re: [PATCH v3] arm64: dts: mediatek: Add mt8192 power domains controller

2021-02-18 Thread Enric Balletbo Serra
Hi Weiyi, Missatge de Weiyi Lu del dia dj., 18 de febr. 2021 a les 11:31: > > On Mon, 2020-11-30 at 19:16 +0800, Weiyi Lu wrote: > > On Fri, 2020-11-27 at 13:42 +0100, Matthias Brugger wrote: > > > > > > On 19/11/2020 15:13, Enric Balletbo Serra wrote: > > > > Hi Weiyi, > > > > > > > > Missatge d

[PATCH v4] kdb: Simplify kdb commands registration

2021-02-18 Thread Sumit Garg
Simplify kdb commands registration via using linked list instead of static array for commands storage. Signed-off-by: Sumit Garg --- Changes in v4: - Fix kdb commands memory allocation issue prior to slab being available with an array of statically allocated commands. Now it works fine with

Re: pstore: fix compression

2021-02-18 Thread Greg KH
On Thu, Feb 18, 2021 at 12:15:47PM +0100, Jiri Bohac wrote: > pstore_compress() and decompress_record() use a mistyped config option > name ("PSTORE_COMPRESSION" instead of "PSTORE_COMPRESS"). > As a result compression and decompressionm of pstore records is always > disabled. > > Use the correct

Re: [PATCH v2] vfs: prevent copy_file_range to copy across devices

2021-02-18 Thread Luis Henriques
Luis Henriques writes: > Amir Goldstein writes: > >> On Thu, Feb 18, 2021 at 9:42 AM Christoph Hellwig wrote: >>> >>> Looks good: >>> >>> Reviewed-by: Christoph Hellwig >>> >>> This whole idea of cross-device copie has always been a horrible idea, >>> and I've been arguing against it since the

[PATCH] erofs: support adjust lz4 history window size

2021-02-18 Thread Huang Jianan
From: huangjianan lz4 uses LZ4_DISTANCE_MAX to record history preservation. When using rolling decompression, a block with a higher compression ratio will cause a larger memory allocation (up to 64k). It may cause a large resource burden in extreme cases on devices with small memory and a large n

Re: [RFC PATCH] mm, oom: introduce vm.sacrifice_hugepage_on_oom

2021-02-18 Thread Eiichi Tsukata
Hi Michal > On Feb 17, 2021, at 21:31, Michal Hocko wrote: > > On Wed 17-02-21 10:42:24, Eiichi Tsukata wrote: >> Hi All, >> >> Firstly, thank you for your careful review and attention to my patch >> (and apologies for top-posting!). Let me first explain why our use >> case requires hugetlb ov

[PATCH RFC] madvise.2: Document MADV_POPULATE

2021-02-18 Thread David Hildenbrand
Preview of MADV_POPULATE documentation, which is still under discussion: https://lkml.kernel.org/r/20210217154844.12392-1-da...@redhat.com Once/if merged, there will be an official patch to man-page folks. Cc: Andrew Morton Cc: Arnd Bergmann Cc: Michal Hocko Cc: Oscar Salvador Cc: Matthew Wil

Re: of overlay: how to insert new nodes with references to it

2021-02-18 Thread Enrico Weigelt, metux IT consult
On 18.02.21 10:14, Enrico Weigelt, metux IT consult wrote: Hi folks, answering myself ;-) Problem: dtc adds my new 'gpio1' node to the __fixups__ list, which is used for resolving symbols against the live tree - obviously it can't exist there, since it's added by the overlay. Therefore applyi

[PATCH v3 0/2] io_uring: add support for IORING_OP_GETDENTS

2021-02-18 Thread Lennert Buytenhek
These patches add support for IORING_OP_GETDENTS, which is a new io_uring opcode that more or less does an lseek(sqe->fd, sqe->off, SEEK_SET) followed by a getdents64(sqe->fd, (void *)sqe->addr, sqe->len). A dumb test program for IORING_OP_GETDENTS is available here: https://krautbox.want

Re: [PATCH v4 11/16] rpmsg: virtio: register the rpmsg_ctrl device

2021-02-18 Thread Dan Carpenter
Hi Arnaud, url: https://github.com/0day-ci/linux/commits/Arnaud-Pouliquen/introduce-a-generic-IOCTL-interface-for-RPMsg-channels-management/20210217-214044 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git f40ddce88593482919761f74910f42f4b84c004b config: x86_64-randco

Re: [RFC] execve.2: SYNOPSIS: Document both glibc wrapper and kernel sycalls

2021-02-18 Thread Michael Kerrisk (man-pages)
Hi Alex, On 2/14/21 2:39 PM, Alejandro Colomar wrote: > Until now, the manual pages have (usually) documented only either > the glibc (or another library) wrapper for a syscall, or the raw > syscall (this only when there's not a wrapper). > > Let's document both prototypes, which many times are s

[PATCH v3 2/2] io_uring: add support for IORING_OP_GETDENTS

2021-02-18 Thread Lennert Buytenhek
IORING_OP_GETDENTS behaves much like getdents64(2) and takes the same arguments, but with a small twist: it takes an additional offset argument, and reading from the specified directory starts at the given offset. For the first IORING_OP_GETDENTS call on a directory, the offset parameter can be se

Re: [RFC] IRQ handlers run with some high-priority interrupts(not NMI) enabled on some platform

2021-02-18 Thread Geert Uytterhoeven
Hi Arnd, On Thu, Feb 18, 2021 at 12:20 PM Arnd Bergmann wrote: > Most of these are normal short-lived interrupts that only transfer > a few bytes or schedule deferred processing of some sort. > Most of the scsi and network drivers process the data in > a softirq, so those are generally fine here,

[PATCH v2] misc/pvpanic: Export module FDT device table

2021-02-18 Thread Shile Zhang
Export the module FDT device table to ensure the FDT compatible strings are listed in the module alias. This help the pvpanic driver can be loaded on boot automatically not only the ACPI device, but also the FDT device. Fixes: 46f934c9a12fc ("misc/pvpanic: add support to get pvpanic device info F

[rcu:dev.2021.02.09a] BUILD SUCCESS 4d6b82d995eedfdb354e2ce3ff7f7a346f641d03

2021-02-18 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2021.02.09a branch HEAD: 4d6b82d995eedfdb354e2ce3ff7f7a346f641d03 squash! tools/memory-model: Add access-marking documentation elapsed time: 724m configs tested: 95 configs skipped: 2 The following configs

[PATCH 1/2] dt-bindings: arm: fsl: add Kontron pITX-imx8m board

2021-02-18 Thread Heiko Thiery
Add the Kontron pITX-imx8m board compatibles binding. Signed-off-by: Heiko Thiery --- Documentation/devicetree/bindings/arm/fsl.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bindings/arm/fsl.yaml index 297c87f4

[PATCH 0/2] add Kontron pITX-imx8m board

2021-02-18 Thread Heiko Thiery
This patch series adds support for the Kontron pITX-imx8m board: https://www.kontron.com/products/boards-and-standard-form-factors/single-board-computer/pitx-imx8m.html Heiko Thiery (2): dt-bindings: arm: fsl: add Kontron pITX-imx8m board arm64: dts: fsl: add support for Kontron pitx-imx8m bo

[PATCH 2/2] arm64: dts: fsl: add support for Kontron pitx-imx8m board

2021-02-18 Thread Heiko Thiery
The Kontron pitx-imx8m board is based on an i.MX8MQ soc. Signed-off-by: Heiko Thiery --- arch/arm64/boot/dts/freescale/Makefile| 1 + .../freescale/imx8mq-kontron-pitx-imx8m.dts | 675 ++ 2 files changed, 676 insertions(+) create mode 100644 arch/arm64/boot/dts/frees

ERROR: modpost: "uio_unregister_device" undefined!

2021-02-18 Thread kernel test robot
-randconfig-r013-20210218 (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://git.kernel.org

Re: [PATCH v4 14/16] rpmsg: char: introduce a RPMsg driver for the RPMsg char device

2021-02-18 Thread Dan Carpenter
Hi Arnaud, url: https://github.com/0day-ci/linux/commits/Arnaud-Pouliquen/introduce-a-generic-IOCTL-interface-for-RPMsg-channels-management/20210217-214044 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git f40ddce88593482919761f74910f42f4b84c004b config: riscv-randcon

watchdog: pcf2127: systemd fails on 5.11

2021-02-18 Thread Bruno Thomsen
Hi, After updating the kernel from 5.8.17 to 5.11 systemd (246.6) is unable to init watchdog in pcf2127 during boot. Kernel option CONFIG_WATCHDOG_OPEN_TIMEOUT=300 is working as expected. It's possible to get watchdog from userspace working in the following 2 ways. 1) Disable watchdog in systemd a

[v4] drm/msm/disp/dpu1: turn off vblank irqs aggressively in dpu driver

2021-02-18 Thread Kalyan Thota
Set the flag vblank_disable_immediate = true to turn off vblank irqs immediately as soon as drm_vblank_put is requested so that there are no irqs triggered during idle state. This will reduce cpu wakeups and help in power saving. To enable vblank_disable_immediate flag the underlying KMS driver ne

Re: [PATCH v2 1/2] staging: comedi: cast function output to assigned variable type

2021-02-18 Thread Greg KH
On Thu, Feb 18, 2021 at 04:17:55PM +0530, Atul Gopinathan wrote: > On Thu, Feb 18, 2021 at 10:31:15AM +, Ian Abbott wrote: > > On 18/02/2021 08:44, Atul Gopinathan wrote: > > > Fix the following warning generated by sparse: > > > > > > drivers/staging//comedi/comedi_fops.c:2956:23: warning: in

Re: [PATCH] misc/pvpanic: Export module FDT device table

2021-02-18 Thread Greg Kroah-Hartman
On Thu, Feb 18, 2021 at 06:51:08PM +0800, Shile Zhang wrote: > > > On 2021/2/18 18:00, Greg Kroah-Hartman wrote: > > On Thu, Feb 18, 2021 at 05:40:24PM +0800, Shile Zhang wrote: > > > Export the module FDT device table to ensure the FDT compatible strings > > > are listed in the module alias. Thi

Re: [PATCH] drm/msm/a6xx: fix for kernels without CONFIG_NVMEM

2021-02-18 Thread Akhil P Oommen
On 2/18/2021 2:05 AM, Jonathan Marek wrote: On 2/17/21 3:18 PM, Rob Clark wrote: On Wed, Feb 17, 2021 at 11:08 AM Jordan Crouse wrote: On Wed, Feb 17, 2021 at 07:14:16PM +0530, Akhil P Oommen wrote: On 2/17/2021 8:36 AM, Rob Clark wrote: On Tue, Feb 16, 2021 at 12:10 PM Jonathan Marek wrot

Re: [PATCH v4] printk: Userspace format enumeration support

2021-02-18 Thread Chris Down
Petr Mladek writes: - Move to another file, kernel/printk/debug_formats.c or similar Just to be sure. The filename should be ideally based on the configure option and API names, e.g. formats_index.c or so. The printk_ prefix is not strictly necessary. The file is in printk/ directory. IMHO, we

[PATCH v3 1/2] readdir: split the core of getdents64(2) out into vfs_getdents()

2021-02-18 Thread Lennert Buytenhek
So that IORING_OP_GETDENTS may use it, split out the core of the getdents64(2) syscall into a helper function, vfs_getdents(). vfs_getdents() calls into filesystems' ->iterate{,_shared}() which expect serialization on struct file, which means that callers of vfs_getdents() are responsible for eith

Re: [PATCH 01/14] KVM: x86/mmu: Expand collapsible SPTE zap for TDP MMU to ZONE_DEVICE pages

2021-02-18 Thread Paolo Bonzini
On 13/02/21 01:50, Sean Christopherson wrote: Zap SPTEs that are backed by ZONE_DEVICE pages when zappings SPTEs to rebuild them as huge pages in the TDP MMU. ZONE_DEVICE huge pages are managed differently than "regular" pages and are not compound pages. Cc: Ben Gardon Fixes: 14881998566d ("kv

RE: [Linuxarm] Re: [PATCH v2] sched/topology: fix the issue groups don't span domain->span for NUMA diameter > 2

2021-02-18 Thread Valentin Schneider
Hi Barry, On 18/02/21 09:17, Song Bao Hua (Barry Song) wrote: > Hi Valentin, > > I understand Peter's concern is that the local group has different > size with remote groups. Is this patch resolving Peter's concern? > To me, it seems not :-) > If you remove the '&& i != cpu' in build_overlap_sc

Re: [PATCH 1/2] dt-bindings: arm: fsl: add Kontron pITX-imx8m board

2021-02-18 Thread Michael Walle
Am 2021-02-18 13:33, schrieb Heiko Thiery: Add the Kontron pITX-imx8m board compatibles binding. Signed-off-by: Heiko Thiery --- Documentation/devicetree/bindings/arm/fsl.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/dev

Re: [PATCH v1] vdpa/mlx5: Restore the hardware used index after change map

2021-02-18 Thread Si-Wei Liu
On 2/17/2021 8:44 PM, Jason Wang wrote: On 2021/2/10 下午4:59, Si-Wei Liu wrote: On 2/9/2021 7:53 PM, Jason Wang wrote: On 2021/2/10 上午10:30, Si-Wei Liu wrote: On 2/8/2021 10:37 PM, Jason Wang wrote: On 2021/2/9 下午2:12, Eli Cohen wrote: On Tue, Feb 09, 2021 at 11:20:14AM +0800, Jason

Re: [PATCH ghak124 v3] audit: log nftables configuration change events

2021-02-18 Thread Richard Guy Briggs
On 2021-02-18 09:22, Florian Westphal wrote: > Richard Guy Briggs wrote: > > On 2021-02-11 23:09, Florian Westphal wrote: > > > So, if just a summary is needed a single audit_log_nfcfg() > > > after 'step 3' and outside of the list_for_each_entry_safe() is all > > > that is needed. > > > > Ok, so

Re: [RFC PATCH] mm, oom: introduce vm.sacrifice_hugepage_on_oom

2021-02-18 Thread Chris Down
Eiichi Tsukata writes: But that comes with a challenge: despite listening on cgroup for pressure notifications (which happen from those runtime events we do not control), We do also have global pressure (PSI) counters. Have you tried to look into those and try to back off even when the situatio

Re: [PATCH v4] printk: Userspace format enumeration support

2021-02-18 Thread Petr Mladek
On Thu 2021-02-18 12:21:55, Chris Down wrote: > Thanks for all your feedback, Petr and Steven. :-) > > Petr, I believe this is a comprehensive checklist of everything we discussed > for v5 -- any chance you could double check I'm not missing anything you > folks wanted? Thanks! > > - Use seq_file

Re: [PATCH 08/14] KVM: x86/mmu: Make dirty log size hook (PML) a value, not a function

2021-02-18 Thread Paolo Bonzini
On 13/02/21 01:50, Sean Christopherson wrote: Store the vendor-specific dirty log size in a variable, there's no need to wrap it in a function since the value is constant after hardware_setup() runs. For now... :) Paolo Signed-off-by: Sean Christopherson --- arch/x86/include/asm/kvm-x86-o

RE: [EXT] Re: drivers/infiniband/hw/qedr/verbs.c:1925 qedr_create_user_qp() error: we previously assumed 'ctx' could be null (see line 1900)

2021-02-18 Thread Michal Kalderon
> From: Jason Gunthorpe > Sent: Tuesday, February 16, 2021 9:03 PM > > -- > On Mon, Feb 15, 2021 at 04:31:25PM +0300, Dan Carpenter wrote: > > tree: https://urldefense.proofpoint.com/v2/url?u=https- > 3A__git.kernel.org_pub_scm

Re: [PATCH 2/2] arm64: dts: fsl: add support for Kontron pitx-imx8m board

2021-02-18 Thread Michael Walle
Am 2021-02-18 13:33, schrieb Heiko Thiery: The Kontron pitx-imx8m board is based on an i.MX8MQ soc. Signed-off-by: Heiko Thiery --- arch/arm64/boot/dts/freescale/Makefile| 1 + .../freescale/imx8mq-kontron-pitx-imx8m.dts | 675 ++ 2 files changed, 676 insertions(+)

Re: [PATCH v2] vfs: prevent copy_file_range to copy across devices

2021-02-18 Thread Amir Goldstein
On Thu, Feb 18, 2021 at 2:14 PM Luis Henriques wrote: > > Luis Henriques writes: > > > Amir Goldstein writes: > > > >> On Thu, Feb 18, 2021 at 9:42 AM Christoph Hellwig > >> wrote: > >>> > >>> Looks good: > >>> > >>> Reviewed-by: Christoph Hellwig > >>> > >>> This whole idea of cross-device c

Re: [PATCH] ARM: dts: nuvoton: Fix flash layout

2021-02-18 Thread Paul Menzel
Dear Anton, Thank you for your patch. Am 18.02.21 um 13:25 schrieb gmo...@google.com: From: "Anton D. Kachalov" This change satisfy OpenBMC requirements for flash layout. Can you please list these requirements in the commit message? Maybe, also add OpenBMC to the commit message summary.

Re: [PATCH 10/14] KVM: x86: Further clarify the logic and comments for toggling log dirty

2021-02-18 Thread Paolo Bonzini
On 13/02/21 01:50, Sean Christopherson wrote: -* Nothing to do for RO slots or CREATE/MOVE/DELETE of a slot. -* See comments below. +* Nothing to do for RO slots (which can't be dirtied and can't be made +* writable) or CREATE/MOVE/DELETE of a slot. See comments

Re: 5.10 LTS Kernel: 2 or 6 years?

2021-02-18 Thread Pavel Machek
Hi! > Why would you backport new features to an old kernel? That's not what > they are there for. For CIP project, this is one of advantages for "supported" boards, as we'll backport patches improving their support as long as those patches are mainline. > > If the CIP project has committed to 1

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