Re: [PATCH v2 2/3] seccomp: Introduce addfd ioctl to seccomp user notifier

2020-05-29 Thread Giuseppe Scrivano
Sargun Dhillon writes: > This adds a seccomp notifier ioctl which allows for the listener to "add" > file descriptors to a process which originated a seccomp user > notification. This allows calls like mount, and mknod to be "implemented", > as the return value, and the arguments are data in memo

Re: [PATCH 4/6] vhost_vdpa: support doorbell mapping via mmap

2020-05-29 Thread Jason Wang
On 2020/5/29 下午5:16, Mika Penttilä wrote: Hi, On 29.5.2020 11.03, Jason Wang wrote: Currently the doorbell is relayed via eventfd which may have significant overhead because of the cost of vmexits or syscall. This patch introduces mmap() based doorbell mapping which can eliminate the overhead

Re: [PATCH v5 03/16] spi: dw: Locally wait for the DMA transactions completion

2020-05-29 Thread Andy Shevchenko
On Fri, May 29, 2020 at 11:12:04AM +0300, Serge Semin wrote: > On Fri, May 29, 2020 at 10:55:32AM +0300, Andy Shevchenko wrote: > > On Fri, May 29, 2020 at 7:02 AM Serge Semin > > wrote: > > > > > > Even if DMA transactions are finished it doesn't mean that the SPI > > > transfers are also complet

Re: [PATCH v4 2/7] mtd: spi-nor: sfdp: parse xSPI Profile 1.0 table

2020-05-29 Thread Pratyush Yadav
On 29/05/20 03:36PM, Mason Yang wrote: > JESD251, xSPI profile 1.0 table supports octal DTR mode. > Extract information like the fast read opcode, dummy cycles for various > frequencies, the number of dummy cycles needed for a Read Status > Register command, the number of address bytes needed for a

Re: [PATCH] function:stacktrace/mips: Fix function:stacktrace for mips

2020-05-29 Thread yuanjunqing
May I ask if you have received this email. 在 2020/5/28 下午8:36, YuanJunQing 写道: > ftrace_call as global symbol in ftrace_caller(), this > will cause function:stacktrace can not work well. > i.e. echo do_IRQ:stacktrace > set_ftrace_filte > > Signed-off-by: YuanJunQing > --- > arch/mips/kernel/mcou

[PATCH] Revert "f2fs: fix quota_sync failure due to f2fs_lock_op"

2020-05-29 Thread Chao Yu
Under heavy fsstress, we may triggle panic while issuing discard, because __check_sit_bitmap() detects that discard command may earse valid data blocks, the root cause is as below race stack described, since we removed lock when flushing quota data, quota data writeback may race with write_checkpoi

Re: [V6 PATCH 2/2] ASoC: max98390: Added Amplifier Driver

2020-05-29 Thread Mark Brown
On Fri, May 29, 2020 at 05:04:36PM +0900, Steve Lee wrote: > On Thu, May 28, 2020 at 8:54 PM Mark Brown wrote: > > > Reported-by: kbuild test robot > > Don't think the lkp bot asked for this driver! :P > Thanks, I will send split patch for this. No, just don't add the line when it's a new d

Re: [git pull] coredump infoleak fix

2020-05-29 Thread Ingo Molnar
* Al Viro wrote: > IOW, copy_xstate_to_kernel()/copy_xstate_to_user() needs not only to map > from compacted format to standard one; it also needs to compensate for > that "we might skip saving the components that are in init state; we'll > report which ones got skipped by way of ->header.xfeat

Re: [PATCH v4 1/2] clk: hisilicon: Use correct return value about hisi_reset_init()

2020-05-29 Thread Stephen Boyd
Quoting Tiezhu Yang (2020-05-28 23:44:20) > On 05/29/2020 12:31 PM, Stephen Boyd wrote: > > Quoting Tiezhu Yang (2020-05-28 21:02:05) > > I think you didn't understand my question. I'm asking where is this > > patch applied to the kernel and what commit is it? I don't see it in the > > clk tree. >

Re: [PATCH v7 3/3] ARM: dts: qcom: ipq4019: add USB devicetree nodes

2020-05-29 Thread Robert Marko
On Mon, May 4, 2020 at 9:39 AM Vinod Koul wrote: > > On 03-05-20, 22:18, Robert Marko wrote: > > From: John Crispin > > > > Since we now have driver for the USB PHY, lets add the necessary nodes to > > DTSI. > > Reviewed-by: Vinod Koul > > Bjorn, I have picked the phy and dt binding, feel free

Re: [PATCH] edac: Fix reference count leak in edac_device_register_sysfs_main_kobj()

2020-05-29 Thread Borislav Petkov
On Fri, May 29, 2020 at 11:20:42AM +0200, Markus Elfring wrote: > * The label “err_out” can be replaced by direct return statement, > can't it? No, it cannot. It keeps the error handling code out-of-line so that the function body remains readable. -- Regards/Gruss, Boris. https://people.k

Re: [git pull] coredump infoleak fix

2020-05-29 Thread Ingo Molnar
* Al Viro wrote: > On Thu, May 28, 2020 at 11:34:38AM -0700, Linus Torvalds wrote: > > On Thu, May 28, 2020 at 12:03 AM Ingo Molnar wrote: > > > > > > I'm wondering, shouldn't we also zero-initialize the dump data to > > > begin with? See the patch below (untested). > > > > I actually got thi

Re: [PATCH] edac: Fix reference count leak in edac_device_register_sysfs_main_kobj()

2020-05-29 Thread Markus Elfring
>> * The label “err_out” can be replaced by direct return statement, >> can't it? > > No, it cannot. It keeps the error handling code out-of-line so that the > function body remains readable. Have we got different programming expectations also around the application of the Linux coding style? R

Re: [PATCH] function:stacktrace/mips: Fix function:stacktrace for mips

2020-05-29 Thread WANG Xuerui
On 2020/5/29 17:29, yuanjunqing wrote: May I ask if you have received this email. At least I have received the complete thread in my inbox, so others may well have no problem. It's not polite to ping maintainers just one day after sending your patch BTW; keep the patch submitting guide[1]

Re: [PATCH RFCv2 9/9] arm64: Support async page fault

2020-05-29 Thread Marc Zyngier
On 2020-05-29 00:02, Gavin Shan wrote: Hi Paolo, On 5/28/20 8:48 PM, Paolo Bonzini wrote: On 28/05/20 08:14, Gavin Shan wrote: - for x86 we're also thinking of initiating the page fault from the exception handler, rather than doing so from the hypervisor before injecting the exception.  If ARM

Re: [PATCH v4 7/7] mtd: spi-nor: macronix: Add Octal 8D-8D-8D supports for Macronix mx25uw51245g

2020-05-29 Thread Pratyush Yadav
On 29/05/20 03:36PM, Mason Yang wrote: > Macronix mx25uw51245g is a SPI NOR that supports 1-1-1/8-8-8 mode. > > Correct the dummy cycles to device for various frequencies > after xSPI profile 1.0 table parsed. > > Enable mx25uw51245g to Octal DTR mode by executing the command sequences > to chang

[tip: x86/urgent] copy_xstate_to_kernel(): don't leave parts of destination uninitialized

2020-05-29 Thread tip-bot2 for Al Viro
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: 9e4636545933131de15e1ecd06733538ae939b2f Gitweb: https://git.kernel.org/tip/9e4636545933131de15e1ecd06733538ae939b2f Author:Al Viro AuthorDate:Tue, 26 May 2020 18:39:49 -04:00 Committer:

Re: Subject: [PATCH] ASoC: soc-pcm: fix BE dai not hw_free and shutdown during mixer update

2020-05-29 Thread Mark Brown
On Fri, May 29, 2020 at 12:10:26PM +0800, zhucancan wrote: > +++ b/sound/soc/soc-pcm.c > @@ -2730,12 +2730,12 @@ static int dpcm_run_update_startup(struct > snd_soc_pcm_runtime *fe, int stream) > close: > dpcm_be_dai_shutdown(fe, stream); > disconnect: > - /* disconnect any non started BEs */

Re: [PATCH] KVM: VMX: Replace zero-length array with flexible-array

2020-05-29 Thread Paolo Bonzini
On 07/05/20 20:56, Gustavo A. R. Silva wrote: > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to declare > variable-length types such as these ones is a flexible array member[1][2], > introduced in C99: > > struct foo

[PATCH] watchdog: sunxi_wdt: fix improper error exit code

2020-05-29 Thread Frank Lee
From: Martin Wu sunxi_wdt_probe() should return -ENOMEM when devm_kzalloc() fails. Signed-off-by: Martin Wu Signed-off-by: Frank Lee --- drivers/watchdog/sunxi_wdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/sunxi_wdt.c b/drivers/watchdog/sunxi_wdt.c

Re: [PATCH v5 05/16] spi: dw: Add SPI Rx-done wait method to DMA-based transfer

2020-05-29 Thread Andy Shevchenko
On Fri, May 29, 2020 at 06:59:03AM +0300, Serge Semin wrote: > Having any data left in the Rx FIFO after the DMA engine claimed it has > finished all DMA transactions is an abnormal situation, since the DW SPI > controller driver expects to have all the data being fetched and placed > into the SPI

Re: [PATCH 0/3] MIPS: Loongson64: Initial LS7A PCH support

2020-05-29 Thread Huacai Chen
Hi, Jiaxun, On Fri, May 29, 2020 at 12:37 PM Jiaxun Yang wrote: > > > > 于 2020年5月29日 GMT+08:00 下午12:13:36, Huacai Chen 写到: > >Hi, Jiaxun, > > > >On Fri, May 29, 2020 at 11:45 AM Jiaxun Yang wrote: > >> > >> With this series, LS7A and Loongson-3A4000 is finally supported > >> note that this seri

Re: [PATCH] edac: Fix reference count leak in edac_device_register_sysfs_main_kobj()

2020-05-29 Thread Borislav Petkov
On Fri, May 29, 2020 at 11:40:47AM +0200, Markus Elfring wrote: > Have we got different programming expectations also around the application > of the Linux coding style? We have me stopping you from giving new submitters wrong review and bad advice. Please refrain from "reviewing" EDAC patches!

Re: [PATCH] hwmon:(adm1275) Enable adm1278 ADM1278_TEMP1_EN

2020-05-29 Thread Manikandan
On Thu, May 28, 2020 at 05:34:22PM +, Vijay Khemka wrote: > > > On 5/28/20, 7:15 AM, "Manikandan Elumalai" > wrote: > > > The adm1278 temperature sysfs attribute need it for one of the our > openbmc platform . > This functionality is not enabled by default, so PMON_CONFIG n

Re: [PATCH v4 6/7] KVM: MIPS: clean up redundant 'kvm_run' parameters

2020-05-29 Thread Paolo Bonzini
On 27/05/20 08:24, Tianjia Zhang wrote: >>> >>> > > Hi Huacai, > > These two patches(6/7 and 7/7) should be merged into the tree of the > mips architecture separately. At present, there seems to be no good way > to merge the whole architecture patchs. > > For this series of patches, some archite

Re: linux-next: Fixes tag needs some work in the spi-nor tree

2020-05-29 Thread Stephen Rothwell
Hi, On Fri, 29 May 2020 07:31:47 + wrote: > > Right. Maybe it is worth to add this kind of check in checkpatch.pl. One can > generate the Fixes tag by adding an alias in .gitconfig: > > [alias] > fixes = show --format='Fixes: %h (\"%s\")' -s I usually suggest git log -1 --

Re: mm: mkfs.ext4 invoked oom-killer on i386 - pagecache_get_page

2020-05-29 Thread Michal Hocko
On Fri 29-05-20 02:56:44, Chris Down wrote: > Yafang Shao writes: > > Look at this patch[1] carefully you will find that it introduces the > > same issue that I tried to fix in another patch [2]. Even more sad is > > these two patches are in the same patchset. Although this issue isn't > > related

Re: [PATCH v5 01/16] spi: dw: Set xfer effective_speed_hz

2020-05-29 Thread Serge Semin
On Fri, May 29, 2020 at 11:49:12AM +0300, Sergei Shtylyov wrote: > Hello! > > On 29.05.2020 6:58, Serge Semin wrote: > > > Seeing DW APB SSI controller doesn't support setting the exactly > > requested SPI bus frequency, but only a rounded frequency determined > > by means of the odd-numbered hal

[PATCH net-next] net: phy: mscc: fix PHYs using the vsc8574_probe

2020-05-29 Thread Antoine Tenart
PHYs using the vsc8574_probe fail to be initialized and their config_init return -EIO leading to errors like: "could not attach PHY: -5". This is because when the conversion of the MSCC PHY driver to use the shared PHY package helpers was done, the base address retrieval and the base PHY read and

Re: system time goes weird in kvm guest after host suspend/resume

2020-05-29 Thread Miklos Szeredi
On Thu, May 28, 2020 at 10:43 PM Thomas Gleixner wrote: > > Miklos Szeredi writes: > > Bisected it to: > > > > b95a8a27c300 ("x86/vdso: Use generic VDSO clock mode storage") > > > > The effect observed is that after the host is resumed, the clock in > > the guest is somewhat in the future and is

Re: [PATCH v5 03/16] spi: dw: Locally wait for the DMA transactions completion

2020-05-29 Thread Serge Semin
On Fri, May 29, 2020 at 12:26:10PM +0300, Andy Shevchenko wrote: > On Fri, May 29, 2020 at 11:12:04AM +0300, Serge Semin wrote: > > On Fri, May 29, 2020 at 10:55:32AM +0300, Andy Shevchenko wrote: > > > On Fri, May 29, 2020 at 7:02 AM Serge Semin > > > wrote: > > > > > > > > Even if DMA transactio

Re: system time goes weird in kvm guest after host suspend/resume

2020-05-29 Thread Miklos Szeredi
On Fri, May 29, 2020 at 11:51 AM Miklos Szeredi wrote: > > On Thu, May 28, 2020 at 10:43 PM Thomas Gleixner wrote: > > > > Miklos Szeredi writes: > > > Bisected it to: > > > > > > b95a8a27c300 ("x86/vdso: Use generic VDSO clock mode storage") > > > > > > The effect observed is that after the hos

linux-next: manual merge of the akpm-current tree with the tip tree

2020-05-29 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: fs/squashfs/decompressor_multi_percpu.c between commit: fd56200a16c7 ("squashfs: Make use of local lock in multi_cpu decompressor") from the tip tree and commit: 5697b27554f3 ("squashfs-migrate-from-ll_rw_block

Re: [PATCH v2 1/3] seccomp: Add find_notification helper

2020-05-29 Thread Christian Brauner
On Thu, May 28, 2020 at 04:08:56AM -0700, Sargun Dhillon wrote: > This adds a helper which can iterate through a seccomp_filter to > find a notification matching an ID. It removes several replicated > chunks of code. > > Signed-off-by: Sargun Dhillon > Cc: Matt Denton > Cc: Kees Cook , > Cc: Jan

Re: [PATCH v2 1/4] gpio: gpiolib: Allow GPIO IRQs to lazy disable

2020-05-29 Thread Maulik Shah
Hi, On 5/29/2020 3:52 AM, Stephen Boyd wrote: Quoting Maulik Shah (2020-05-28 06:11:23) Hi, On 5/28/2020 6:38 AM, Stephen Boyd wrote: Quoting Maulik Shah (2020-05-27 04:26:14) On 5/27/2020 3:14 PM, Stephen Boyd wrote: Quoting Maulik Shah (2020-05-23 10:11:10) diff --git a/drivers/gpio/gpio

Re: [PATCH v5 4/5] cpufreq: qcom: Update the bandwidth levels on frequency change

2020-05-29 Thread Viresh Kumar
On 28-05-20, 01:51, Sibi Sankar wrote: > Add support to parse optional OPP table attached to the cpu node when > the OPP bandwidth values are populated. This allows for scaling of > DDR/L3 bandwidth levels with frequency change. > > Signed-off-by: Sibi Sankar > --- > > V5: > * Use dev_pm_opp_ad

Re: [PATCHSET v5 0/12] Add support for async buffered reads

2020-05-29 Thread Sedat Dilek
[ ... ] > > Hi Jens, > > > > I have pulled linux-block.git#async-buffered.5 on top of Linux v5.7-rc7. > > > > From first feelings: > > The booting into the system (until sddm display-login-manager) took a > > bit longer. > > The same after login and booting into KDE/Plasma. > > There is no differe

linux-next: manual merge of the akpm-current tree with the tip tree

2020-05-29 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: include/linux/sched.h between commits: 5567d11c21a1 ("x86/mce: Send #MC singal from task work") from the tip tree and commit: e87f27165be1 ("fs/buffer.c: add debug print for __getblk_gfp() stall problem") from

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

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

Re: [PATCH] mm, memcg: reclaim more aggressively before high allocator throttling

2020-05-29 Thread Chris Down
Michal Hocko writes: > > task->memcg_nr_pages_over_high is not vague, it's a best-effort > > mechanism to distribute fairness. It's the current task's share of the > > cgroup's overage, and it allows us in the majority of situations to > > distribute reclaim work and sleeps in proportion to how m

Re: [PATCH v5 3/6] irqchip: RISC-V per-HART local interrupt controller driver

2020-05-29 Thread Marc Zyngier
On 2020-05-21 14:32, Anup Patel wrote: The RISC-V per-HART local interrupt controller manages software interrupts, timer interrupts, external interrupts (which are routed via the platform level interrupt controller) and other per-HART local interrupts. This patch adds a driver for the RISC-V loc

Re: [PATCH] scsi: Fix reference count leak in iscsi_boot_create_kobj()

2020-05-29 Thread Markus Elfring
> kobject_init_and_add() should be handled when it return an error, > because kobject_init_and_add() takes reference even when it fails. I find this wording approach improvable. > Previous commit "b8eb718348b8" fixed a similar problem. I suggest to omit this information from the commit message.

Re: [PATCH] scsi: Fix reference count leak in iscsi_boot_create_kobj()

2020-05-29 Thread Markus Elfring
> kobject_init_and_add() should be handled when it return an error, > because kobject_init_and_add() takes reference even when it fails. I find this wording approach improvable. > Previous commit "b8eb718348b8" fixed a similar problem. I suggest to omit this information from the commit message.

Question: livepatch failed for new fork() task stack unreliable

2020-05-29 Thread Wang ShaoBo
Stack unreliable error is reported by stack_trace_save_tsk_reliable() when trying to insmod a hot patch for module modification, this results in frequent failures sometimes. We found this 'unreliable' stack is from task just fork. The task just fork need to go through these steps will the problem

Re: [PATCH 05/10] comedi: get rid of compat_alloc_user_space() mess in COMEDI_INSN compat

2020-05-29 Thread Ian Abbott
On 29/05/2020 01:35, Al Viro wrote: From: Al Viro Just take copy_from_user() out of do_insn_ioctl() into the caller and have compat_insn() build a native version and pass it to do_insn_ioctl() directly. One difference from the previous commits is that the helper used to convert 32bit variant t

Re: [RFC v3 0/3] Re-introduce TX FIFO resize for larger EP bursting

2020-05-29 Thread Greg KH
On Wed, May 27, 2020 at 06:46:00PM -0700, Wesley Cheng wrote: > Changes in V3: > - Removed "Reviewed-by" tags > - Renamed series back to RFC > - Modified logic to ensure that fifo_size is reset if we pass the minimum >threshold. Tested with binding multiple FDs requesting 6 FIFOs. > > Chan

Re: [PATCH v5 05/16] spi: dw: Add SPI Rx-done wait method to DMA-based transfer

2020-05-29 Thread Serge Semin
On Fri, May 29, 2020 at 12:46:48PM +0300, Andy Shevchenko wrote: > On Fri, May 29, 2020 at 06:59:03AM +0300, Serge Semin wrote: > > Having any data left in the Rx FIFO after the DMA engine claimed it has > > finished all DMA transactions is an abnormal situation, since the DW SPI > > controller dri

Re: [PATCH v5 0/6] New RISC-V Local Interrupt Controller Driver

2020-05-29 Thread Marc Zyngier
On 2020-05-27 19:47, Palmer Dabbelt wrote: [...] I think it's best if this all goes in through a single tree, as it seems more work than it's worth to split it up. I'm happy to take it through my tree if that's OK with the irqchip folks? This still needs some fixing on patch 3 (the exporte

Re: [PATCH v3 1/9] dt-bindings: atmel-tcb: convert bindings to json-schema

2020-05-29 Thread Sebastian Andrzej Siewior
Rob, could you please bless the DT parts of this series? Daniel Lezcano asked for the blessing in: https://lkml.kernel.org/r/f0feb409-11fb-08de-cc06-216a16de9...@linaro.org On 2020-05-06 10:05:46 [+0200], Alexandre Belloni wrote: > Convert Atmel Timer Counter Blocks bindings to DT schema format

Re: [PATCH] mm, memcg: reclaim more aggressively before high allocator throttling

2020-05-29 Thread Michal Hocko
On Fri 29-05-20 11:08:58, Chris Down wrote: > Michal Hocko writes: > > > > > task->memcg_nr_pages_over_high is not vague, it's a best-effort > > > > > mechanism to distribute fairness. It's the current task's share of the > > > > > cgroup's overage, and it allows us in the majority of situations to

[PATCH 1/4 v3] exfat: redefine PBR as boot_sector

2020-05-29 Thread Tetsuhiro Kohada
Aggregate PBR related definitions and redefine as "boot_sector" to comply with the exFAT specification. And, rename variable names including 'pbr'. Signed-off-by: Tetsuhiro Kohada --- Changes in v2: - rebase with patch 'optimize dir-cache' applied Changes in v3: - rename BOOTSEC_OEM_NAME_LEN to

[PATCH 3/4 v3] exfat: add boot region verification

2020-05-29 Thread Tetsuhiro Kohada
Add Boot-Regions verification specified in exFAT specification. Note that the checksum type is strongly related to the raw structure, so the'u32 'type is used to clarify the number of bits. Signed-off-by: Tetsuhiro Kohada --- Changes in v2: - rebase with patch 'optimize dir-cache' applied - jus

[PATCH 2/4 v3] exfat: separate the boot sector analysis

2020-05-29 Thread Tetsuhiro Kohada
Separate the boot sector analysis to read_boot_sector(). And add a check for the fs_name field. Furthermore, add a strict consistency check, because overlapping areas can cause serious corruption. Signed-off-by: Tetsuhiro Kohada --- Changes in v2: - rebase with patch 'optimize dir-cache' applied

[PATCH 4/4 v3] exfat: standardize checksum calculation

2020-05-29 Thread Tetsuhiro Kohada
To clarify that it is a 16-bit checksum, the parts related to the 16-bit checksum are renamed and change type to u16. Furthermore, replace checksum calculation in exfat_load_upcase_table() with exfat_calc_checksum32(). Signed-off-by: Tetsuhiro Kohada --- Changes in v2: - rebase with patch 'optim

Re: [PATCH 4/5] iio: light: lm3533-als: remove explicit parent assignment

2020-05-29 Thread Johan Hovold
On Fri, May 22, 2020 at 11:22:07AM +0300, Alexandru Ardelean wrote: > This assignment is the more peculiar of the bunch as it assigns the parent > of the platform-device's device (i.e. pdev->dev.parent) as the IIO device's > parent. > > It's unclear whether this is intentional or not. > Hence it is

Re: [PATCH net-next v3] net: phy: micrel: add phy-mode support for the KSZ9031 PHY

2020-05-29 Thread Geert Uytterhoeven
Hi Andrew, On Thu, May 28, 2020 at 6:08 PM Andrew Lunn wrote: > On Thu, May 28, 2020 at 03:10:06PM +0200, Geert Uytterhoeven wrote: > > On Wed, May 27, 2020 at 10:52 PM Andrew Lunn wrote: > > > > You may wonder what's the difference between 3 and 4? It's not just the > > > > PHY driver that look

linux-next: manual merge of the akpm-current tree with the tip tree

2020-05-29 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: mm/swap.c between commit: b01b2141 ("mm/swap: Use local_lock for protection") from the tip tree and commit: 48c1ce8726a7 ("mm: fold and remove lru_cache_add_anon() and lru_cache_add_file()") from the akpm

Subject: [PATCH v2] ASoC: soc-pcm: fix BE dai not hw_free and shutdown during mixer update

2020-05-29 Thread 朱灿灿
FE state is SND_SOC_DPCM_STATE_PREPARE now, BE1 is used by FE. Later when new BE2 is added to FE by mixer update, it will call dpcm_run_update_startup() to update BE2's state, but unfortunately BE2 .prepare() meets error, it will disconnect all non started BE. This make BE1 dai skip .hw_free() an

Re: [PATCH v4 1/2] clk: hisilicon: Use correct return value about hisi_reset_init()

2020-05-29 Thread Tiezhu Yang
On 05/29/2020 05:36 PM, Stephen Boyd wrote: Quoting Tiezhu Yang (2020-05-28 23:44:20) On 05/29/2020 12:31 PM, Stephen Boyd wrote: Quoting Tiezhu Yang (2020-05-28 21:02:05) I think you didn't understand my question. I'm asking where is this patch applied to the kernel and what commit is it? I do

Re: [PATCH v5 05/16] spi: dw: Add SPI Rx-done wait method to DMA-based transfer

2020-05-29 Thread Andy Shevchenko
On Fri, May 29, 2020 at 01:13:28PM +0300, Serge Semin wrote: > On Fri, May 29, 2020 at 12:46:48PM +0300, Andy Shevchenko wrote: > > On Fri, May 29, 2020 at 06:59:03AM +0300, Serge Semin wrote: > > > Having any data left in the Rx FIFO after the DMA engine claimed it has > > > finished all DMA trans

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

2020-05-29 Thread Mel Gorman
On Thu, May 28, 2020 at 05:51:31PM +0100, Qais Yousef wrote: > > Indeed, that one. The fact that regular distros cannot enable this > > feature due to performance overhead is unfortunate. It means there is a > > lot less potential for this stuff. > > I had a humble try to catch the overhead but wa

Re: [PATCH] PCI: tegra: fix runtime pm imbalance on error

2020-05-29 Thread Lorenzo Pieralisi
On Wed, May 20, 2020 at 11:39:08PM +0530, Vidya Sagar wrote: > Thanks for pushing a patch to fix it. I've been under the wrong assumption > that a failing pm_runtime_get_sync() wouldn't increment the usage counter. > With Thierry's and Bjorn's comments addressed > > Acked-by: Vidya Sagar Thierry

Re: [Qemu-devel PATCH] target/i386: define a new MSR based feature word - FEAT_PERF_CAPABILITIES

2020-05-29 Thread Paolo Bonzini
On 29/05/20 09:43, Like Xu wrote: > +if (!cpu->enable_pmu) { > +*ecx &= ~CPUID_EXT_PDCM; > +} > break; > case 2: > /* cache info: needed for Pentium Pro compatibility */ > @@ -6505,6 +6528,12 @@ static void x86_cpu_realizefn(DeviceState *dev, Error

Re: [PATCH v4 09/11] dmaengine: dw: Initialize min_burst capability

2020-05-29 Thread Andy Shevchenko
On Fri, May 29, 2020 at 01:23:59AM +0300, Serge Semin wrote: > According to the DW APB DMAC data book the minimum burst transaction > length is 1 and it's true for any version of the controller since > isn't parametrised in the coreAssembler so can't be changed at the > IP-core synthesis stage. Let

Re: [PATCH 09/13] firmware_loader: simplify sysctl declaration with register_sysctl_subdir()

2020-05-29 Thread Greg KH
On Fri, May 29, 2020 at 07:41:04AM +, Luis Chamberlain wrote: > From: Xiaoming Ni > > Move the firmware config sysctl table to fallback_table.c and use the > new register_sysctl_subdir() helper. This removes the clutter from > kernel/sysctl.c. > > Signed-off-by: Xiaoming Ni > Signed-off-by:

Re: [PATCH 11/13] random: simplify sysctl declaration with register_sysctl_subdir()

2020-05-29 Thread Greg KH
On Fri, May 29, 2020 at 07:41:06AM +, Luis Chamberlain wrote: > From: Xiaoming Ni > > Move random_table sysctl from kernel/sysctl.c to drivers/char/random.c > and use register_sysctl_subdir() to help remove the clutter out of > kernel/sysctl.c. > > Signed-off-by: Xiaoming Ni > Signed-off-by

Re: [PATCH v4 10/11] dmaengine: dw: Introduce max burst length hw config

2020-05-29 Thread Andy Shevchenko
On Fri, May 29, 2020 at 01:24:00AM +0300, Serge Semin wrote: > IP core of the DW DMA controller may be synthesized with different > max burst length of the transfers per each channel. According to Synopsis > having the fixed maximum burst transactions length may provide some > performance gain. At

Re: [PATCH] [v2] PCI: tegra194: Fix runtime PM imbalance on error

2020-05-29 Thread Lorenzo Pieralisi
On Thu, May 21, 2020 at 11:13:49AM +0800, Dinghao Liu wrote: > pm_runtime_get_sync() increments the runtime PM usage counter even > when it returns an error code. Thus a pairing decrement is needed on > the error handling path to keep the counter balanced. > > Signed-off-by: Dinghao Liu > --- >

Re: [PATCH v4 11/11] dmaengine: dw: Initialize max_sg_nents capability

2020-05-29 Thread Andy Shevchenko
On Fri, May 29, 2020 at 01:24:01AM +0300, Serge Semin wrote: > Multi-block support provides a way to map the kernel-specific SG-table so > the DW DMA device would handle it as a whole instead of handling the > SG-list items or so called LLP block items one by one. So if true LLP > list isn't suppor

Re: [PATCH v4 09/11] dmaengine: dw: Initialize min_burst capability

2020-05-29 Thread Andy Shevchenko
On Fri, May 29, 2020 at 01:25:15PM +0300, Andy Shevchenko wrote: > On Fri, May 29, 2020 at 01:23:59AM +0300, Serge Semin wrote: > > According to the DW APB DMAC data book the minimum burst transaction > > length is 1 and it's true for any version of the controller since > > isn't parametrised in th

[GIT PULL] MMC fixes for v5.7-rc8

2020-05-29 Thread Ulf Hansson
Hi Linus, Here's a PR with a couple of MMC fixes intended for v5.7-rc8. 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 b9bbe6ed63b2b9f2c9ee5cbd0f2c946a2723f4ce: Linux 5.7-rc6 (2020-05-17 16:

Re: [PATCH v2 2/3] seccomp: Introduce addfd ioctl to seccomp user notifier

2020-05-29 Thread Christian Brauner
On Thu, May 28, 2020 at 04:08:57AM -0700, Sargun Dhillon wrote: > This adds a seccomp notifier ioctl which allows for the listener to "add" > file descriptors to a process which originated a seccomp user > notification. This allows calls like mount, and mknod to be "implemented", > as the return va

Re: [PATCH V1] mmc: sdhci-msm: Clear tuning done flag while hs400 tuning

2020-05-29 Thread Ulf Hansson
On Thu, 28 May 2020 at 17:14, Veerabhadrarao Badiganti wrote: > > Clear tuning_done flag while executing tuning to ensure vendor > specific HS400 settings are applied properly when the controller > is re-initialized in HS400 mode. > > Without this, re-initialization of the qcom SDHC in HS400 mode

Re: [PATCH 07/10] comedi: lift copy_from_user() into callers of __comedi_get_user_cmd()

2020-05-29 Thread Ian Abbott
On 29/05/2020 01:35, Al Viro wrote: From: Al Viro Signed-off-by: Al Viro --- drivers/staging/comedi/comedi_fops.c | 20 1 file changed, 12 insertions(+), 8 deletions(-) Signed-off-by: Ian Abbott -- -=( Ian Abbott || Web: www.mev.co.uk )=- -=( MEV Ltd. is a company

Re: [PATCH 08/10] comedi: do_cmdtest_ioctl(): lift copyin/copyout into the caller

2020-05-29 Thread Ian Abbott
On 29/05/2020 01:35, Al Viro wrote: From: Al Viro Signed-off-by: Al Viro --- drivers/staging/comedi/comedi_fops.c | 45 ++-- 1 file changed, 22 insertions(+), 23 deletions(-) Signed-off-by: Ian Abbott -- -=( Ian Abbott || Web: www.mev.co.uk )=- -=( MEV L

Re: edac: Fix reference count leak in edac_device_register_sysfs_main_kobj()

2020-05-29 Thread Markus Elfring
> We have me stopping you from giving new submitters wrong review I do not find my suggestions wrong for this issue. > and bad advice. But I can understand that we might occasionally prefer other software development approaches. > Please refrain from "reviewing" EDAC patches! Would you pref

Re: [PATCH v4 09/11] dmaengine: dw: Initialize min_burst capability

2020-05-29 Thread Serge Semin
On Fri, May 29, 2020 at 01:29:02PM +0300, Andy Shevchenko wrote: > On Fri, May 29, 2020 at 01:25:15PM +0300, Andy Shevchenko wrote: > > On Fri, May 29, 2020 at 01:23:59AM +0300, Serge Semin wrote: > > > According to the DW APB DMAC data book the minimum burst transaction > > > length is 1 and it's

Re: [PATCH 04/10] comedi: get rid of compat_alloc_user_space() mess in COMEDI_RANGEINFO compat

2020-05-29 Thread Ian Abbott
On 29/05/2020 01:35, Al Viro wrote: From: Al Viro Just take copy_from_user() out of do_rangeing_ioctl() into the caller and have compat_rangeinfo() build a native version and pass it to do_rangeinfo_ioctl() directly. Signed-off-by: Al Viro --- drivers/staging/comedi/comedi_fops.c | 43

Re: [PATCH 03/10] comedi: get rid of compat_alloc_user_space() mess in COMEDI_CHANINFO compat

2020-05-29 Thread Ian Abbott
On 29/05/2020 01:35, Al Viro wrote: From: Al Viro Just take copy_from_user() out of do_chaninfo_ioctl() into the caller and have compat_chaninfo() build a native version and pass it to do_chaninfo_ioctl() directly. Signed-off-by: Al Viro --- drivers/staging/comedi/comedi_fops.c | 68 +++

Re: [PATCH 01/10] comedi: move compat ioctl handling to native fops

2020-05-29 Thread Ian Abbott
On 29/05/2020 01:35, Al Viro wrote: From: Al Viro mechanical move Signed-off-by: Al Viro --- drivers/staging/comedi/Makefile | 1 - drivers/staging/comedi/comedi_compat32.c | 455 --- drivers/staging/comedi/comedi_compat32.h | 28 -- drivers/stagin

Re: [PATCH 02/10] comedi: get rid of indirection via translated_ioctl()

2020-05-29 Thread Ian Abbott
On 29/05/2020 01:35, Al Viro wrote: From: Al Viro Signed-off-by: Al Viro --- drivers/staging/comedi/comedi_fops.c | 26 -- 1 file changed, 8 insertions(+), 18 deletions(-) Signed-off-by: Ian Abbott -- -=( Ian Abbott || Web: www.mev.co.uk )=- -=( MEV Ltd. is a co

Re: [PATCH v5 3/6] irqchip: RISC-V per-HART local interrupt controller driver

2020-05-29 Thread Anup Patel
On Fri, May 29, 2020 at 3:39 PM Marc Zyngier wrote: > > On 2020-05-21 14:32, Anup Patel wrote: > > The RISC-V per-HART local interrupt controller manages software > > interrupts, timer interrupts, external interrupts (which are routed > > via the platform level interrupt controller) and other per-

Re: [PATCH 09/10] comedi: do_cmd_ioctl(): lift copyin/copyout into the caller

2020-05-29 Thread Ian Abbott
On 29/05/2020 01:35, Al Viro wrote: From: Al Viro Signed-off-by: Al Viro --- drivers/staging/comedi/comedi_fops.c | 48 ++-- 1 file changed, 24 insertions(+), 24 deletions(-) Signed-off-by: Ian Abbott -- -=( Ian Abbott || Web: www.mev.co.uk )=- -=( MEV L

Re: [PATCH 06/10] comedi: get rid of compat_alloc_user_space() mess in COMEDI_INSNLIST compat

2020-05-29 Thread Ian Abbott
On 29/05/2020 01:35, Al Viro wrote: From: Al Viro Signed-off-by: Al Viro --- drivers/staging/comedi/comedi_fops.c | 138 --- 1 file changed, 48 insertions(+), 90 deletions(-) Signed-off-by: Ian Abbott -- -=( Ian Abbott || Web: www.mev.co.uk )=- -=( MEV L

Re: [PATCH] nvmem: Enforce nvmem stride in the sysfs interface

2020-05-29 Thread Ravi Kumar Bokka (Temp)
Hi, On 5/29/2020 5:23 AM, Douglas Anderson wrote: The 'struct nvmem_config' has a stride attribute that specifies the needed alignment for accesses into the nvmem. This is used in nvmem_cell_info_to_nvmem_cell() but not in the sysfs read/write functions. If the alignment is important in one pl

[PATCH v6] erofs: convert to use the new mount fs_context api

2020-05-29 Thread Gao Xiang
From: Chao Yu Convert the erofs to use new internal mount API as the old one will be obsoleted and removed. This allows greater flexibility in communication of mount parameters between userspace, the VFS and the filesystem. See Documentation/filesystems/mount_api.txt for more information. Cc:

linux-next: manual merge of the akpm tree with the tip tree

2020-05-29 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm tree got a conflict in: mm/swap.c between commit: b01b2141 ("mm/swap: Use local_lock for protection") from the tip tree and patch: "mm/swap.c: annotate data races for lru_rotate_pvecs" from the akpm tree. I fixed it up (see below) and c

Re: [PATCH v4 09/11] dmaengine: dw: Initialize min_burst capability

2020-05-29 Thread Andy Shevchenko
On Fri, May 29, 2020 at 01:41:19PM +0300, Serge Semin wrote: > On Fri, May 29, 2020 at 01:29:02PM +0300, Andy Shevchenko wrote: > > On Fri, May 29, 2020 at 01:25:15PM +0300, Andy Shevchenko wrote: > > > On Fri, May 29, 2020 at 01:23:59AM +0300, Serge Semin wrote: ... > > > > /* DMA capabi

Re: [PATCH v3 1/5] regulator: Allow regulators to verify enabled during enable()

2020-05-29 Thread Mark Brown
On Thu, May 28, 2020 at 06:37:43PM -0700, Bjorn Andersson wrote: > On Thu 28 May 08:46 PDT 2020, Sumit Semwal wrote: > > Some regulators might need to verify that they have indeed been enabled > > after the enable() call is made and enable_time delay has passed. > > _regulator_enable_delay(de

Re: [PATCH v4 09/11] dmaengine: dw: Initialize min_burst capability

2020-05-29 Thread Serge Semin
On Fri, May 29, 2020 at 01:50:09PM +0300, Andy Shevchenko wrote: > On Fri, May 29, 2020 at 01:41:19PM +0300, Serge Semin wrote: > > On Fri, May 29, 2020 at 01:29:02PM +0300, Andy Shevchenko wrote: > > > On Fri, May 29, 2020 at 01:25:15PM +0300, Andy Shevchenko wrote: > > > > On Fri, May 29, 2020 at

Re: [PATCH] dt-bindings: sound: tlv320adcx140: Fix dt-binding-check issue

2020-05-29 Thread Mark Brown
On Thu, May 28, 2020 at 09:47:11AM -0500, Dan Murphy wrote: > Fix dt-binding-check issue Please submit patches using subject lines reflecting the style for the subsystem, this makes it easier for people to identify relevant patches. Look at what existing commits in the area you're changing are do

[PATCH] soc: qcom: rpmh: Remove serialization of TCS commands

2020-05-29 Thread Maulik Shah
From: Lina Iyer Requests sent to RPMH can be sent as fire-n-forget or response required, with the latter ensuring the command has been completed by the hardware accelerator. Commands in a request with tcs_cmd::wait set, would ensure that those select commands are sent as response required, even t

Re: [PATCH v3 1/5] regulator: Allow regulators to verify enabled during enable()

2020-05-29 Thread Mark Brown
On Thu, May 28, 2020 at 09:16:21PM +0530, Sumit Semwal wrote: > + while (time_remaining > 0) { > + /* We've already waited for enable_time above; > + * so we can start with immediate check of the > + * status of the regulato

linux-next: manual merge of the akpm tree with the tip tree

2020-05-29 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm tree got a conflict in: arch/x86/xen/smp_pv.c between commit: 66a07b44e765 ("x86/entry: Switch XEN/PV hypercall entry to IDTENTRY") from the tip tree and patch: "mm: introduce include/linux/pgtable.h" from the akpm tree. I fixed it up (see

Re: [PATCH] PCI: tegra: fix runtime pm imbalance on error

2020-05-29 Thread Vidya Sagar
On 29-May-20 3:53 PM, Lorenzo Pieralisi wrote: External email: Use caution opening links or attachments On Wed, May 20, 2020 at 11:39:08PM +0530, Vidya Sagar wrote: Thanks for pushing a patch to fix it. I've been under the wrong assumption that a failing pm_runtime_get_sync() wouldn't incre

Re: [PATCHES] uaccess comedi compat

2020-05-29 Thread Ian Abbott
On 29/05/2020 01:34, Al Viro wrote: The way comedi compat ioctls are done is wrong. Instead of having ->compat_ioctl() copying the 32bit stuff in, then passing the kernel copies to helpers shared with native ->ioctl() and doing copyout with conversion if needed, it's playing silly buggers

Re: [PATCH] i2c: thunderx: Add missed pci_release_regions

2020-05-29 Thread Wolfram Sang
On Sun, Mar 22, 2020 at 05:00:40PM +0100, Wolfram Sang wrote: > On Fri, Dec 06, 2019 at 03:53:49PM +0800, Chuhong Yuan wrote: > > The driver forgets to call pci_release_regions() in probe failure > > and remove. > > Add the missed calls to fix it. > > > > Signed-off-by: Chuhong Yuan > > Jan, any

Re: [RFC PATCH v5 2/3] docs: scheduler: Add scheduler overview documentation

2020-05-29 Thread Peter Zijlstra
On Thu, May 14, 2020 at 12:26:36PM +0300, john mathew wrote: > += > +CFS Overview > += > + > +Linux 2.6.23 introduced a modular scheduler core and a Completely Fair > +Scheduler (CFS) implemented as a scheduling module. A brief overview of the > +CFS design is provided in :

[PATCH] soc: qcom: rpmh: Allow RPMH on ARM SoC

2020-05-29 Thread Maulik Shah
From: Lina Iyer Remove config restriction for RPMH on ARM64 platforms only. Signed-off-by: Lina Iyer --- drivers/soc/qcom/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig index 07bb261..899f8c0 100644 --- a/drivers/

linux-next: manual merge of the akpm-current tree with the tip tree

2020-05-29 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: arch/x86/include/asm/efi.h between commit: 9b47c5275614 ("efi/libstub: Add definitions for console input and events") from the tip tree and patch: "mm: reorder includes after introduction of linux/pgtable.h" f

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