Re: [PATCH 4/9] dt-bindings: display: renesas,lvds: Document r8a774e1 bindings

2020-08-13 Thread Geert Uytterhoeven
On Wed, Aug 12, 2020 at 4:03 PM Lad Prabhakar wrote: > From: Marian-Cristian Rotariu > > Document the RZ/G2H (R8A774E1) LVDS bindings. > > Signed-off-by: Marian-Cristian Rotariu > > Signed-off-by: Lad Prabhakar For the logical change (ported to .yaml): Reviewed-by: Geert Uytterhoeven Gr{oet

Re: [PATCH 3/9] arm64: dts: renesas: r8a774e1: Populate DU device node

2020-08-13 Thread Geert Uytterhoeven
On Wed, Aug 12, 2020 at 4:03 PM Lad Prabhakar wrote: > From: Marian-Cristian Rotariu > > Populate the DU device node properties in R8A774E1 SoC dtsi. > > Signed-off-by: Marian-Cristian Rotariu > > Signed-off-by: Lad Prabhakar Reviewed-by: Geert Uytterhoeven > --- a/arch/arm64/boot/dts/renes

[v4,2/3] arm64: dts: mt7622: add reset node for mmc device

2020-08-13 Thread Wenbin Mei
This commit adds reset node for mmc device. Cc: # v5.4+ Fixes: 966580ad236e ("mmc: mediatek: add support for MT7622 SoC") Signed-off-by: Wenbin Mei Tested-by: Frank Wunderlich --- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts

[v4,3/3] mmc: mediatek: add optional module reset property

2020-08-13 Thread Wenbin Mei
This patch fixs eMMC-Access on mt7622/Bpi-64. Before we got these Errors on mounting eMMC ion R64: [ 48.664925] blk_update_request: I/O error, dev mmcblk0, sector 204800 op 0x1:(WRITE) flags 0x800 phys_seg 1 prio class 0 [ 48.676019] Buffer I/O error on dev mmcblk0p1, logical block 0, lost syn

Re: [PATCH v4 1/4] fpga: dfl: change data type of feature id to u16

2020-08-13 Thread Xu Yilun
On Thu, Aug 13, 2020 at 08:28:05AM +, David Laight wrote: > From: Xu Yilun > > Sent: 13 August 2020 08:59 > > On Wed, Aug 12, 2020 at 08:52:39AM +, David Laight wrote: > > > From: Moritz Fischer > > > > Sent: 12 August 2020 04:56 > > > > > > > > On Mon, Aug 10, 2020 at 10:41:10AM +0800, Xu

[v4,1/3] mmc: dt-bindings: Add resets/reset-names for Mediatek MMC bindings

2020-08-13 Thread Wenbin Mei
Add description for resets/reset-names. Cc: # v5.4+ Fixes: 966580ad236e ("mmc: mediatek: add support for MT7622 SoC") Signed-off-by: Wenbin Mei Tested-by: Frank Wunderlich --- Documentation/devicetree/bindings/mmc/mtk-sd.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/d

[v4,0/3] mmc: mediatek: add optional reset property mmc: mediatek: add optional module reset property arm64: dts: mt7622: add reset node for mmc device Documentation/devicetree/bindings/mmc/mtk-sd.t

2020-08-13 Thread Wenbin Mei
-- 2.18.0

Re: [PATCH 1/9] dt-bindings: display: renesas,du: Document r8a774e1 bindings

2020-08-13 Thread Geert Uytterhoeven
Hi Prabhakar, Laurent, Kieran, On Wed, Aug 12, 2020 at 4:02 PM Lad Prabhakar wrote: > From: Marian-Cristian Rotariu > > Document the RZ/G2H (a.k.a. r8a774e1) SoC in the R-Car DU bindings. > > Signed-off-by: Marian-Cristian Rotariu > > Signed-off-by: Lad Prabhakar > --- > Documentation/device

Re: [PATCH] arm64: Add KRYO4XX gold CPU core to spectre-v2 safe list

2020-08-13 Thread Will Deacon
On Thu, Aug 13, 2020 at 01:48:34PM +0530, Sai Prakash Ranjan wrote: > KRYO4XX gold/big CPU cores are based on Cortex-A76 which has CSV2 > bits set and are spectre-v2 safe. But on big.LITTLE systems where > they are coupled with other CPU cores such as the KRYO4XX silver > based on Cortex-A55 which

Re: [PATCH v5 9/9] RISC-V: Add page table dump support for uefi

2020-08-13 Thread Anup Patel
On Thu, Aug 13, 2020 at 5:18 AM Atish Patra wrote: > > Extend the current page table dump support in RISC-V to include efi > pages as well. > > Here is the output of efi runtime page table mappings. > > ---[ UEFI runtime start ]--- > 0x20002000-0x20003000 0xbe732000 4K PTE

RE: [PATCH] fs/select.c: batch user writes in do_sys_poll

2020-08-13 Thread David Laight
From: Christoph Hellwig > Sent: 13 August 2020 08:32 > > On Thu, Aug 13, 2020 at 05:11:20PM +1000, Daniel Axtens wrote: > > When returning results to userspace, do_sys_poll repeatedly calls > > put_user() - once per fd that it's watching. > > > > This means that on architectures that support some

Re: [PATCH v5 5/9] RISC-V: Add PE/COFF header for EFI stub

2020-08-13 Thread Anup Patel
On Thu, Aug 13, 2020 at 5:18 AM Atish Patra wrote: > > Linux kernel Image can appear as an EFI application With appropriate > PE/COFF header fields in the beginning of the Image header. An EFI > application loader can directly load a Linux kernel Image and an EFI > stub residing in kernel can boot

Re: [PATCH v2] module: Harden STRICT_MODULE_RWX

2020-08-13 Thread Will Deacon
On Wed, Aug 12, 2020 at 05:42:05PM +0100, Szabolcs Nagy wrote: > The 08/12/2020 18:37, Ard Biesheuvel wrote: > > On Wed, 12 Aug 2020 at 18:00, Jessica Yu wrote: > > > +++ Szabolcs Nagy [12/08/20 15:15 +0100]: > > > >for me it bisects to > > > > > > > >https://sourceware.org/git/?p=binutils-gdb.git

Re: [PATCH v2] PCI: Introduce flag for detached virtual functions

2020-08-13 Thread Niklas Schnelle
On 8/13/20 3:55 AM, Oliver O'Halloran wrote: > On Thu, Aug 13, 2020 at 5:21 AM Matthew Rosato wrote: >> >> s390x has the notion of providing VFs to the kernel in a manner >> where the associated PF is inaccessible other than via firmware. >> These are not treated as typical VFs and access to th

[PATCH v3] dt-bindings: at25: convert the binding document to yaml

2020-08-13 Thread Christian Eggers
Convert the binding document for at25 EEPROMs from txt to yaml. Signed-off-by: Christian Eggers --- On Wednesday, 12 August 2020, 22:06:02 CEST, Rob Herring wrote: > > +This file has been moved to at25.yaml. > > We only do this to save updating a bunch of references and there aren't > any, so ju

Re: [PATCH] mtd: spi-nor: intel-spi: Do not try to make the SPI flash chip writable

2020-08-13 Thread Greg Kroah-Hartman
On Wed, Aug 12, 2020 at 12:41:35PM -0300, Daniel Gutson wrote: > ping What does that mean here?

Re: [PATCH v7 5/7] iommu/uapi: Rename uapi functions

2020-08-13 Thread Auger Eric
Hi Jacob, On 7/30/20 2:21 AM, Jacob Pan wrote: > User APIs such as iommu_sva_unbind_gpasid() may also be used by the > kernel. Since we introduced user pointer to the UAPI functions, Practically this is done in the next patch. What about something like: We plan to have two flavors of the same API

Re: [PATCH v2 1/3] dt-bindings: pinctrl: Add bindings for Actions S500 SoC

2020-08-13 Thread Cristian Ciocaltea
On Wed, Aug 12, 2020 at 01:56:51PM -0600, Rob Herring wrote: > On Mon, Aug 03, 2020 at 05:20:54PM +0300, Cristian Ciocaltea wrote: > > Add pinctrl and gpio bindings for Actions Semi S500 SoC. > > > > Signed-off-by: Cristian Ciocaltea > > --- > > Changes in v2: > > - Added myself to the list of m

Re: [PATCH v5 3/9] RISC-V: Implement late mapping page table allocation functions

2020-08-13 Thread Anup Patel
On Thu, Aug 13, 2020 at 5:19 AM Atish Patra wrote: > > Currently, page table setup is done during setup_va_final where fixmap can > be used to create the temporary mappings. The physical frame is allocated > from memblock_alloc_* functions. However, this won't work if page table > mapping needs to

RE: [PATCH v5 3/3] fpga: dfl: add support for N3000 Nios private feature

2020-08-13 Thread Wu, Hao
> Subject: [PATCH v5 3/3] fpga: dfl: add support for N3000 Nios private feature > > This patch adds support for the Nios handshake private feature on Intel > PAC (Programmable Acceleration Card) N3000. > > The Nios is the embedded processor on the FPGA card. This private feature > provides a hand

Re: [PATCH v7] scsi: ufs: Quiesce all scsi devices before shutdown

2020-08-13 Thread Stanley Chu
Hi Bart, Can, Chaotian, Very appreciate your comments and suggestions, please see update below, On Tue, 2020-08-04 at 00:04 +0800, Bart Van Assche wrote: > On 2020-08-03 03:04, Stanley Chu wrote: > > diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c > > index 307622284239..7cb220

Re: [PATCH v5 2/9] RISC-V: Add early ioremap support

2020-08-13 Thread Anup Patel
On Thu, Aug 13, 2020 at 5:18 AM Atish Patra wrote: > > UEFI uses early IO or memory mappings for runtime services before > normal ioremap() is usable. Add the necessary fixmap bindings and > pmd mappings for generic ioremap support to work. > > Signed-off-by: Atish Patra > --- > arch/riscv/Kconf

Re: file metadata via fs API

2020-08-13 Thread Karel Zak
On Wed, Aug 12, 2020 at 02:43:32PM +0200, Miklos Szeredi wrote: > On Wed, Aug 12, 2020 at 1:28 PM Karel Zak wrote: > > > The proposal is based on paths and open(), how do you plan to deal > > with mount IDs? David's fsinfo() allows to ask for mount info by mount > > ID and it works well with moun

[PATCH] mm/slub: sysfs cleanup on cpu partial when !SLUB_CPU_PARTIAL

2020-08-13 Thread wuyun.wu
From: Abel Wu Hide cpu partial related sysfs entries when !CONFIG_SLUB_CPU_PARTIAL to avoid confusion. Signed-off-by: Abel Wu --- mm/slub.c | 56 +++ 1 file changed, 32 insertions(+), 24 deletions(-) diff --git a/mm/slub.c b/mm/slub.c index

Re: [PATCH v2] riscv: Setup exception vector for nommu platform

2020-08-13 Thread Anup Patel
On Thu, Aug 13, 2020 at 9:10 AM Qiu Wenbo wrote: > > Exception vector is missing on nommu platform and that is an issue. > This patch is tested in Sipeed Maix Bit Dev Board. > > Fixes: 79b1feba5455 ("RISC-V: Setup exception vector early") > Suggested-by: Anup Patel > Suggested-by: Atish Patra >

RE: [PATCH] x86: work around clang IAS bug referencing __force_order

2020-08-13 Thread David Laight
From: Nick Desaulniers > Sent: 13 August 2020 01:13 > > On Thu, Aug 6, 2020 at 3:11 PM Thomas Gleixner wrote: > > > > Arnd Bergmann writes: > > > When using the clang integrated assembler, we get a reference > > > to __force_order that should normally get ignored in a few > > > rare cases: > > >

Re: [PATCH] fs/select.c: batch user writes in do_sys_poll

2020-08-13 Thread Daniel Axtens
Christoph Hellwig writes: > On Thu, Aug 13, 2020 at 05:11:20PM +1000, Daniel Axtens wrote: >> When returning results to userspace, do_sys_poll repeatedly calls >> put_user() - once per fd that it's watching. >> >> This means that on architectures that support some form of >> kernel-to-userspace

[RFC] arm64: dts: imx8qm: added lvds pwm

2020-08-13 Thread Oliver Graute
Hello Aisheng, I tried to add lvds pwm to imx8qm.dtsi to get backlight working. But without success. I'am running into this issue: [0.858737] lcd0-pwm0: failed to power up resource 188 ret -22 Can you review and comment please? This patch is based on your patch series. Best regards, Oliv

Re: [PATCH v3 2/2] ASoC: Intel: Add period size constraint on strago board

2020-08-13 Thread Takashi Iwai
On Thu, 13 Aug 2020 10:36:57 +0200, Yu-Hsuan Hsu wrote: > > Lu, Brent 於 2020年8月13日 週四 下午3:55寫道: > > > > > > > > > > > > CRAS calls snd_pcm_hw_params_set_buffer_size_max() to use as large > > > > > buffer as possible. So the period size is an arbitrary number in > > > > > different platforms. Atom

[v3,1/3] mmc: dt-bindings: Add resets/reset-names for Mediatek MMC bindings

2020-08-13 Thread Wenbin Mei
Add description for resets/reset-names. Cc: # v5.4+ Fixes: 966580ad236e ("mmc: mediatek: add support for MT7622 SoC") Signed-off-by: Wenbin Mei Tested-by: Frank Wunderlich --- Documentation/devicetree/bindings/mmc/mtk-sd.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/d

Re: [PATCH] pinctrl: armada-37xx: Add comment for pcie1_reset pin group

2020-08-13 Thread Linus Walleij
On Fri, Jul 24, 2020 at 3:25 PM Pali Rohár wrote: > Group name 'pcie1' is misleading as it controls only PCIe reset pin. Like > other PCIe groups it should have been called 'pcie1_reset'. But due to > backward compatibility it is not possible to change existing group name. > So just add comment d

[v3,3/3] mmc: mediatek: add optional module reset property

2020-08-13 Thread Wenbin Mei
This patch fixs eMMC-Access on mt7622/Bpi-64. Before we got these Errors on mounting eMMC ion R64: [ 48.664925] blk_update_request: I/O error, dev mmcblk0, sector 204800 op 0x1:(WRITE) flags 0x800 phys_seg 1 prio class 0 [ 48.676019] Buffer I/O error on dev mmcblk0p1, logical block 0, lost syn

[v3,0/3] mmc: mediatek: add optional reset property mmc: mediatek: add optional module reset property arm64: dts: mt7622: add reset node for mmc device Documentation/devicetree/bindings/mmc/mtk-sd.tx

2020-08-13 Thread Wenbin Mei
-- 2.18.0

[v3,2/3] arm64: dts: mt7622: add reset node for mmc device

2020-08-13 Thread Wenbin Mei
This commit adds reset node for mmc device. Cc: # v5.4+ Fixes: 966580ad236e ("mmc: mediatek: add support for MT7622 SoC") Signed-off-by: Wenbin Mei Tested-by: Frank Wunderlich --- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts

[PATCH v1 1/2] Bluetooth: btusb: define HCI packet sizes of USB Alts

2020-08-13 Thread Joseph Hwang
It is desirable to define the HCI packet payload sizes of USB alternate settings so that they can be exposed to user space. Reviewed-by: Alain Michaud Reviewed-by: Abhishek Pandit-Subedi Signed-off-by: Joseph Hwang --- drivers/bluetooth/btusb.c| 43 in

[PATCH v1 2/2] Bluetooth: sco: expose WBS packet length in socket option

2020-08-13 Thread Joseph Hwang
It is desirable to expose the wideband speech packet length via a socket option to the user space so that the user space can set the value correctly in configuring the sco connection. Reviewed-by: Alain Michaud Reviewed-by: Abhishek Pandit-Subedi Signed-off-by: Joseph Hwang --- include/net/bl

[PATCH] [v2] ASoC: intel: Fix memleak in sst_media_open

2020-08-13 Thread Dinghao Liu
When power_up_sst() fails, stream needs to be freed just like when try_module_get() fails. However, current code is returning directly and ends up leaking memory. Fixes: 0121327c1a68b ("ASoC: Intel: mfld-pcm: add control for powering up/down dsp") Signed-off-by: Dinghao Liu --- Changelog: v2:

[PATCH v1 0/2] To support the HFP WBS, a chip vendor may choose a particular

2020-08-13 Thread Joseph Hwang
USB alternate seeting of which the packet size is distinct. The patches are to expose the packet size to user space so that the user space does not need to hard code those values. We have verified this patch on Chromebooks which use - Realtek 8822CE controller with USB alt setting 1 - Intel contro

Re: POC: Alternative solution: Re: [PATCH 0/4] printk: reimplement LOG_CONT handling

2020-08-13 Thread Petr Mladek
On Thu 2020-08-13 09:50:25, John Ogness wrote: > On 2020-08-13, Sergey Senozhatsky wrote: > > This is not an unseen pattern, I'm afraid. And the problem here can > > be more general: > > > > pr_info("text"); > > pr_cont("1"); > > exception/IRQ/NMI > > pr_alert("text\n"); >

Re: [PATCH v3 2/2] ASoC: Intel: Add period size constraint on strago board

2020-08-13 Thread Yu-Hsuan Hsu
Lu, Brent 於 2020年8月13日 週四 下午3:55寫道: > > > > > > > > > CRAS calls snd_pcm_hw_params_set_buffer_size_max() to use as large > > > > buffer as possible. So the period size is an arbitrary number in > > > > different platforms. Atom SST platform happens to be 256, and CML > > > > SOF platform is 1056 f

Re: [PATCH v2] module: Harden STRICT_MODULE_RWX

2020-08-13 Thread Ard Biesheuvel
On Wed, 12 Aug 2020 at 22:00, Peter Zijlstra wrote: > > On Wed, Aug 12, 2020 at 06:37:57PM +0200, Ard Biesheuvel wrote: > > I know there is little we can do at this point, apart from ignoring > > the permissions - perhaps we should just defer the w^x check until > > after calling module_frob_arch_

Re: [PATCH v2 0/5] Fixes and improvements for Xen pvdrm

2020-08-13 Thread Oleksandr Andrushchenko
Juergen, Boris, can we please merge these via Xen Linux tree as I have collected enough Ack/R-b? The series has DRM patches, but those anyway are Xen related, so I think this should be fine from DRI point of view. Thank you, Oleksandr On 8/13/20 9:21 AM, Oleksandr Andrushchenko wrote: > From:

Re: [PATCH v2 5/7] regulator: plug of_node leak in regulator_register()'s error path

2020-08-13 Thread Vladimir Zapolskiy
On 8/12/20 5:09 PM, Michał Mirosław wrote: > On Wed, Aug 12, 2020 at 09:29:12AM +0300, Vladimir Zapolskiy wrote: >> On 8/12/20 4:31 AM, Michał Mirosław wrote: > [...] >>> config = kmemdup(cfg, sizeof(*cfg), GFP_KERNEL); >>> if (config == NULL) { >>> - kfree(rdev); >>>

RE: [PATCH v4 1/4] fpga: dfl: change data type of feature id to u16

2020-08-13 Thread David Laight
From: Xu Yilun > Sent: 13 August 2020 08:59 > On Wed, Aug 12, 2020 at 08:52:39AM +, David Laight wrote: > > From: Moritz Fischer > > > Sent: 12 August 2020 04:56 > > > > > > On Mon, Aug 10, 2020 at 10:41:10AM +0800, Xu Yilun wrote: > > > > The feature id is stored in a 12 bit field in DFH. So a

Re: [PATCH] genirq/proc: Show percpu irq affinity

2020-08-13 Thread Thomas Gleixner
Yunfeng Ye writes: > When the "affinity=" cmdline parameter is configured, There is no such parameter. > the interrupt affinity displayed in the proc directory does not match > with that of the the percu interrupt, and the percu interrupt uses > desc->percu_affinity. And when the non-existing

Re: Re: [PATCH] ASoC: intel: Fix memleak in sst_media_open

2020-08-13 Thread dinghao . liu
> > On 8/9/20 3:56 AM, Dinghao Liu wrote: > > When power_up_sst() fails, stream needs to be freed > > just like when try_module_get() fails. However, current > > code is returning directly and ends up leaking memory. > > > > Fixes: 0121327c1a68b ("ASoC: Intel: mfld-pcm: add control for powering

Re: [PATCH RT 1/6] signal: Prevent double-free of user struct

2020-08-13 Thread Rasmus Villemoes
On 13/08/2020 03.45, Steven Rostedt wrote: > 5.4.54-rt33-rc1 stable review patch. > If anyone has any objections, please let me know. > No objections, quite the contrary. I think this should also be applied to 4.19-rt: Commit fda31c50292a is also in 4.19.y (as 797479da0ae9), since 4.19.112 and he

Re: [PATCH 2/2 v3] usb: typec: pd: Fix formatting in pd.h header

2020-08-13 Thread Heikki Krogerus
On Tue, Aug 11, 2020 at 07:29:34PM -0700, Badhri Jagan Sridharan wrote: > Replacing spaces with tabs for PD_T_* constants. > > Signed-off-by: Badhri Jagan Sridharan Reviewed-by: Heikki Krogerus > --- > Change history: > First version. Keeping the version number same as the parent. > > --- >

Re: [PATCH 1/2 v3] tcpm: During PR_SWAP, source caps should be sent only after tSwapSourceStart

2020-08-13 Thread Heikki Krogerus
Hi, > This fixes TD.PD.CP.E3, TD.PD.CP.E4, TD.PD.CP.E5 failures I'm sorry, but that statement is way too cryptic. You really need to explain what those are. thanks, -- heikki

Re: [PATCH v7 06/13] pwm: add support for sl28cpld PWM controller

2020-08-13 Thread Lee Jones
On Mon, 10 Aug 2020, Michael Walle wrote: > Am 2020-08-10 09:13, schrieb Lee Jones: > > On Fri, 07 Aug 2020, Michael Walle wrote: > > > > > Hi Uwe, Hi Lee, > > > > > > Am 2020-08-06 10:40, schrieb Uwe Kleine-König: > > > > On Mon, Aug 03, 2020 at 11:35:52AM +0200, Michael Walle wrote: > > > > >

Re: [PATCH v2 1/2] mmap locking API: add mmap_lock_is_contended()

2020-08-13 Thread Steven Price
On 13/08/2020 03:13, Chinwen Chang wrote: Add new API to query if someone wants to acquire mmap_lock for write attempts. Using this instead of rwsem_is_contended makes it more tolerant of future changes to the lock type. Signed-off-by: Chinwen Chang Reviewed-by: Steven Price --- include

Re: [PATCH v2 2/2] mm: proc: smaps_rollup: do not stall write attempts on mmap_lock

2020-08-13 Thread Steven Price
On 13/08/2020 03:13, Chinwen Chang wrote: smaps_rollup will try to grab mmap_lock and go through the whole vma list until it finishes the iterating. When encountering large processes, the mmap_lock will be held for a longer time, which may block other write requests like mmap and munmap from prog

[PATCH] arm64: Add KRYO4XX gold CPU core to spectre-v2 safe list

2020-08-13 Thread Sai Prakash Ranjan
KRYO4XX gold/big CPU cores are based on Cortex-A76 which has CSV2 bits set and are spectre-v2 safe. But on big.LITTLE systems where they are coupled with other CPU cores such as the KRYO4XX silver based on Cortex-A55 which are spectre-v2 safe but do not have CSV2 bits set, the system wide safe valu

Re: [PATCH 00/23] proc: Introduce /proc/namespaces/ directory to expose namespaces lineary

2020-08-13 Thread Kirill Tkhai
On 12.08.2020 20:53, Andrei Vagin wrote: > On Tue, Aug 11, 2020 at 01:23:35PM +0300, Kirill Tkhai wrote: >> On 10.08.2020 20:34, Andrei Vagin wrote: >>> On Fri, Aug 07, 2020 at 11:47:57AM +0300, Kirill Tkhai wrote: On 06.08.2020 11:05, Andrei Vagin wrote: > On Mon, Aug 03, 2020 at 01:03:17

Re: KMSAN: kernel-usb-infoleak in hif_usb_send

2020-08-13 Thread syzbot
syzbot has found a reproducer for the following issue on: HEAD commit:ce8056d1 wip: changed copy_from_user where instrumented git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=1355581690 kernel config: https://syzkaller.ap

[RFC PATCH] mm : using bdi->ra_pages instead of ra->ra_pages within readahead

2020-08-13 Thread Zhaoyang Huang
file->f_ra->ra_pages will remain the initialized value since it opend, which may be NOT equal to bdi->ra_pages as the latter one is updated somehow(etc, echo xxx > /sys/block/dm/queue/read_ahead_kb).So having readahead use bdi->ra_pages. Signed-off-by: Zhaoyang Huang --- mm/filemap.c | 4 ++-- 1

Re: [PATCH v2 03/41] ARM: s3c24xx: fix mmc gpio lookup tables

2020-08-13 Thread Linus Walleij
On Thu, Aug 6, 2020 at 8:21 PM Krzysztof Kozlowski wrote: > From: Arnd Bergmann > > The gpio controller names differ between s3c24xx and s3c64xx, > and it seems that these all got the wrong names, using GPx instead > of GPIOx. > > Fixes: d2951dfa070d ("mmc: s3cmci: Use the slot GPIO descriptor")

Re: [PATCH] genirq/affinity: show managed irq affinity correctly

2020-08-13 Thread Thomas Gleixner
Yunfeng Ye writes: > The "managed_irq" for isolcpus is supported after the commit > 11ea68f553e2 ("genirq, sched/isolation: Isolate from handling managed > interrupts"), but the interrupt affinity shown in proc directory is > still the original affinity. > > So modify the interrupt affinity corre

Re: [PATCH v3] usb: typec: tcpm: Fix TDA 2.2.1.1 and TDA 2.2.1.2 failures

2020-08-13 Thread Heikki Krogerus
Hi, On Tue, Aug 11, 2020 at 07:51:26PM -0700, Badhri Jagan Sridharan wrote: > >From the spec: > "7.1.5 Response to Hard Resets > Hard Reset Signaling indicates a communication failure has occurred and > the Source Shall stop driving VCONN, Shall remove Rp from the VCONN pin > and Shall drive VBUS

Re: [PATCH] iio: imu: inv_mpu6050: check for temp_fifo_enable

2020-08-13 Thread Jean-Baptiste Maneyrol
Hello, this is a case that should never be happening since available scan mask only advertise Accel + Temp, Gyro + Temp, or Accel + Gyro + Temp. More than that, temperature sensor is not working when MEMS engine is off. (it's only purpose it to measure temperature of the MEMS to do data temperat

Re: [net-next v4 1/6] net: marvell: prestera: Add driver for Prestera family ASIC devices

2020-08-13 Thread Jonathan McDowell
On Mon, Jul 27, 2020 at 03:22:37PM +0300, Vadym Kochan wrote: > Marvell Prestera 98DX326x integrates up to 24 ports of 1GbE with 8 > ports of 10GbE uplinks or 2 ports of 40Gbps stacking for a largely > wireless SMB deployment. > > The current implementation supports only boards designed for the Ma

Re: [RFC PATCH 0/5] Introduce /proc/all/ to gather stats from all processes

2020-08-13 Thread Andrei Vagin
On Wed, Aug 12, 2020 at 10:47:32PM -0600, David Ahern wrote: > On 8/12/20 1:51 AM, Andrei Vagin wrote: > > > > I rebased the task_diag patches on top of v5.8: > > https://github.com/avagin/linux-task-diag/tree/v5.8-task-diag > > Thanks for updating the patches. > > > > > /proc/pid files have th

Re: [PATCH] drm/hisilicon: Fix build error of no type of module_init

2020-08-13 Thread Thomas Zimmermann
Hi Am 13.08.20 um 05:39 schrieb Tian Tao: > Add missing include to fix build error: > hibmc_drm_drv.c:385:1: warning: data definition has no type or storage > class [enabled by default] > hibmc_drm_drv.c:385:1: error: type defaults to ‘int’ in declaration > of ‘module_init’ [-Werror=implicit-int]

Re: [PATCH v4 1/4] fpga: dfl: change data type of feature id to u16

2020-08-13 Thread Xu Yilun
On Wed, Aug 12, 2020 at 08:52:39AM +, David Laight wrote: > From: Moritz Fischer > > Sent: 12 August 2020 04:56 > > > > On Mon, Aug 10, 2020 at 10:41:10AM +0800, Xu Yilun wrote: > > > The feature id is stored in a 12 bit field in DFH. So a u16 variable is > > > enough for feature id. > > > > >

Re: [PATCH 1/1] mfd: core: Fix memory leak of 'cell'

2020-08-13 Thread Lee Jones
On Thu, 13 Aug 2020, Marek Szyprowski wrote: > Hi All, > > On 05.08.2020 16:26, Marek Szyprowski wrote: > > On 16.07.2020 16:28, Lee Jones wrote: > >> When creating a platform device from an MFD cell description, we > >> allocate some memory and make a copy which is then stored inside the > >> pl

Re: [PATCH 00/44] SPMI patches needed by Hikey 970

2020-08-13 Thread Lee Jones
On Wed, 12 Aug 2020, Mauro Carvalho Chehab wrote: > Hi Greg, > > This patch series is part of a work I'm doing in order to be able to support > a HiKey 970 board that I recently got on my hands. > > I received some freedback from Mark and from Jonathan on a first > attempt I made to upstream thi

RE: [PATCH v3 2/2] ASoC: Intel: Add period size constraint on strago board

2020-08-13 Thread Lu, Brent
> > > > > > CRAS calls snd_pcm_hw_params_set_buffer_size_max() to use as large > > > buffer as possible. So the period size is an arbitrary number in > > > different platforms. Atom SST platform happens to be 256, and CML > > > SOF platform is 1056 for example. > > > > ok, but earlier in this threa

Re: [PATCH v4 2/2] xen: add helpers to allocate unpopulated memory

2020-08-13 Thread Roger Pau Monné
On Thu, Aug 13, 2020 at 08:33:37AM +0100, Christoph Hellwig wrote: > On Tue, Aug 11, 2020 at 11:44:47AM +0200, Roger Pau Monne wrote: > > If enabled (because ZONE_DEVICE is supported) the usage of the new > > functionality untangles Xen balloon and RAM hotplug from the usage of > > unpopulated phys

Re: [PATCH v2] PCI: Introduce flag for detached virtual functions

2020-08-13 Thread Niklas Schnelle
On 8/13/20 3:59 AM, Oliver O'Halloran wrote: > On Thu, Aug 13, 2020 at 6:33 AM Alex Williamson > wrote: >> >> On Wed, 12 Aug 2020 15:21:11 -0400 >> Matthew Rosato wrote: >> ... snip ... >> >> Is there too much implicit knowledge in defining a "detached VF"? For >> example, why do we know that

[PATCH v5 0/5] iio: temperature: mlx90632: Add extended calibration calculations

2020-08-13 Thread Crt Mori
Add extended calibration calculations for the new subversion of DSP5. V5 review comments from Andy Shevchenko V5: - Add style changes patch along with current series. V4 review comments from Andy Shevchenko : - Move the function creation for Ta4 to first patch - Add ke

[PATCH v5 2/5] iio:temperature:mlx90632: Add kerneldoc to the internal struct

2020-08-13 Thread Crt Mori
Document internal/private struct for mlx90632 device. Signed-off-by: Crt Mori --- drivers/iio/temperature/mlx90632.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/iio/temperature/mlx90632.c b/drivers/iio/temperature/mlx90632.c index c3de10ba5b1e..ce75f5a348

[PATCH v5 3/5] iio:temperature:mlx90632: Convert polling while loop to do-while

2020-08-13 Thread Crt Mori
Reduce number of lines and improve readability to convert polling while loops to do-while. The iopoll.h interface was not used, because we require more than 20ms timeout, because time for sensor to perform a measurement is around 10ms and it needs to perform measurements for each channel (which cur

[PATCH v5 1/5] iio:temperature:mlx90632: Reduce number of equal calulcations

2020-08-13 Thread Crt Mori
TAdut4 was calculated each iteration although it did not change. In light of near future additions of the Extended range DSP calculations, this function refactoring will help reduce unrelated changes in that series as well as reduce the number of new functions needed. Signed-off-by: Crt Mori Revi

[PATCH v5 5/5] iio:temperature:mlx90632: Some stylefixing leftovers

2020-08-13 Thread Crt Mori
There is some inconsistency and whitespace cleanup performed in this patch. It was done on top of my other patches, but I can rebase to head of the togreg branch if it would go in sooner. Signed-off-by: Crt Mori --- drivers/iio/temperature/mlx90632.c | 41 -- 1 file c

[PATCH v5 4/5] iio:temperature:mlx90632: Adding extended calibration option

2020-08-13 Thread Crt Mori
For some time the market wants medical grade accuracy in medical range, while still retaining the declared accuracy outside of the medical range within the same sensor. That is why we created extended calibration which is automatically switched to when object temperature is too high. This patch al

Re: [PATCH] dt-bindings: Whitespace clean-ups in schema files

2020-08-13 Thread Geert Uytterhoeven
Hi Rob, On Wed, Aug 12, 2020 at 10:36 PM Rob Herring wrote: > Clean-up incorrect indentation, extra spaces, long lines, and missing > EOF newline in schema files. Most of the clean-ups are for list > indentation which should always be 2 spaces more than the preceding > keyword. > > Found with yam

Re: WARN_ON_ONCE(1) in iomap_dio_actor()

2020-08-13 Thread Qian Cai
> On Aug 13, 2020, at 1:44 AM, Dave Chinner wrote: > > Ok: > > file.fd_write = safe_open("./testfile", O_RDWR|O_CREAT); > > file.fd_read = safe_open("./testfile", O_RDWR|O_CREAT|O_DIRECT); > > file.ptr = safe_mmap(NULL, fsize, PROT_READ|PROT_WRITE, MAP_SHARED, >file.fd_w

Re: POC: Alternative solution: Re: [PATCH 0/4] printk: reimplement LOG_CONT handling

2020-08-13 Thread Petr Mladek
On Thu 2020-08-13 14:18:53, Sergey Senozhatsky wrote: > On (20/08/13 02:30), John Ogness wrote: > > 2. I haven't yet figured out how to preserve calling context when a > > newline appears. For example: > > > > pr_info("text"); > > pr_cont(" 1"); > > pr_cont(" 2\n"); > > pr_cont("3"); > > pr_cont("

[PATCH v3 7/9] pinctrl: realtek: DHC: Fix pinctrl driver coding style according to checkpatch.pl.

2020-08-13 Thread TY Chang
Fix Realtek DHC SoC pinctrl driver coding style. Signed-off-by: TY Chang --- drivers/pinctrl/pinctrl-rtd1195.h | 131 +++--- drivers/pinctrl/pinctrl-rtd119x.c | 125 + drivers/pinctrl/pinctrl-rtd1295.h | 407 ++ 3 files changed, 467 insertions(+), 196 dele

[PATCH v3 8/9] pinctrl: realtek: DHC: Move pinctrl drivers to realtek directory and rename.

2020-08-13 Thread TY Chang
Move Realtek DHC SoC pinctrl drivers to realtek directory and rename pinctrl-rtd119x.c to pinctrl-rtd.c. Signed-off-by: TY Chang --- drivers/pinctrl/Kconfig | 10 +- drivers/pinctrl/Makefile | 2 +- drivers/pinctrl/realtek/Kconfig | 14

Re: [RFC-PATCH 1/2] mm: Add __GFP_NO_LOCKS flag

2020-08-13 Thread Michal Hocko
On Wed 12-08-20 02:13:25, Thomas Gleixner wrote: [...] > I can understand your rationale and what you are trying to solve. So, if > we can actually have a distinct GFP variant: > > GFP_I_ABSOLUTELY_HAVE_TO_DO_THAT_AND_I_KNOW_IT_CAN_FAIL_EARLY Even if we cannot make the zone->lock raw I would pr

[PATCH v3 4/9] dt-bindings: pinctrl: realtek: Add Realtek DHC SoC rtd1195

2020-08-13 Thread TY Chang
Add device tree binding Documentation for rtd1195 pinctrl driver. Signed-off-by: TY Chang --- .../pinctrl/realtek,rtd1195-pinctrl.yaml | 133 ++ 1 file changed, 133 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/realtek,rtd1195-pinctrl.yaml dif

[PATCH v3 3/9] pinctrl: realtek: rtd1195: Add missed pins and pin configs.

2020-08-13 Thread TY Chang
Add missed pins and pin configs for Realtek DHC SoC RTD1195 pinctrl driver. Signed-off-by: TY Chang --- drivers/pinctrl/pinctrl-rtd1195.h | 332 +++--- 1 file changed, 258 insertions(+), 74 deletions(-) diff --git a/drivers/pinctrl/pinctrl-rtd1195.h b/drivers/pinctrl/pi

[PATCH v3 6/9] arm64: dts: realtek: rtd129x: fix SDIO pinctrl node

2020-08-13 Thread TY Chang
Fix sdio function value of pinctrl property. Signed-off-by: TY Chang --- arch/arm64/boot/dts/realtek/rtd129x.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/realtek/rtd129x.dtsi b/arch/arm64/boot/dts/realtek/rtd129x.dtsi index 59a68581f542..38ec852df

[PATCH v3 9/9] pinctrl: realtek: DHC: Add suspend/resume callback function.

2020-08-13 Thread TY Chang
Add suspend and resume callback function for Realtek DHC SoC pinctrl driver. Signed-off-by: TY Chang --- drivers/pinctrl/realtek/pinctrl-rtd.c | 39 + drivers/pinctrl/realtek/pinctrl-rtd1195.h | 33 +++ drivers/pinctrl/realtek/pinctrl-rtd1295.h | 67 ++

[PATCH v3 5/9] dt-bindings: pinctrl: realtek: Add Realtek DHC SoC rtd1295

2020-08-13 Thread TY Chang
Add device tree binding Documentation for rtd1295 pinctrl driver. Signed-off-by: TY Chang --- .../pinctrl/realtek,rtd1295-pinctrl.yaml | 192 ++ 1 file changed, 192 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/realtek,rtd1295-pinctrl.yaml dif

[PATCH v3 1/9] pinctrl: realtek: rtd1295: Add missed pins.

2020-08-13 Thread TY Chang
The current Realtek DHC SoC RTD1295 pinctrl driver missed some pins definition that may make the pin group does not mux completely. Signed-off-by: TY Chang --- drivers/pinctrl/pinctrl-rtd119x.c | 4 +- drivers/pinctrl/pinctrl-rtd1295.h | 192 +- 2 files changed, 161

[PATCH v3 2/9] pinctrl: realtek: rtd1295: Add pin configs.

2020-08-13 Thread TY Chang
Add pin configs for Realtek DHC SoC RTD1295 pinctrl driver. Signed-off-by: TY Chang --- drivers/pinctrl/pinctrl-rtd119x.c | 257 +- drivers/pinctrl/pinctrl-rtd1295.h | 194 ++ 2 files changed, 447 insertions(+), 4 deletions(-) diff --git a/drivers

[PATCH v3 0/9] pinctrl: update realtek DHC pinctrl driver

2020-08-13 Thread TY Chang
Hi Andreas, This series update Realtek DHC pinctrl driver with the following details: * add missed pins * add pin configuration feature * add realtek DHC pinctrl documentation * fix the warnings checked by running scripts/checkpatch.pl * move realtek DHC pinctrl driver to realtek directory * add

[PATCH] [v2] ALSA: echoaudio: Fix potential Oops in snd_echo_resume()

2020-08-13 Thread Dinghao Liu
Freeing chip on error may lead to an Oops at the next time the system goes to resume. Fix this by removing all snd_echo_free() calls on error. Fixes: 47b5d028fdce8 ("ALSA: Echoaudio - Add suspend support #2") Signed-off-by: Dinghao Liu --- Changelog: v2: - Remove snd_echo_free() calls in all er

Re: [PATCH v2] mm: LMK, adjust oom_score_adj when fork a new process

2020-08-13 Thread Christian Brauner
On Thu, Aug 13, 2020 at 10:53:31AM +0800, hui yang wrote: > From: YangHui > > Also it rely on inheritance,But there are some things you need't inheriting > if all children oom_score_adj is -1000,the oom is meaningless I can just reapeat what I said before: we will not be changing inheritance beh

Re: [PATCH] block: insert a general SMP memory barrier before wake_up_bit()

2020-08-13 Thread Jacob Wen
On 8/13/20 3:31 PM, Christoph Hellwig wrote: On Thu, Aug 13, 2020 at 10:44:38AM +0800, Jacob Wen wrote: wake_up_bit() uses waitqueue_active() that needs the explicit smp_mb(). Sounds like the barrier should go into wake_up_bit then.. wake_up_bit() doesn't know which one to chose: smp_mb__af

Re: [RFC PATCH 1/3] mm: Drop locked from isolate_migratepages_block

2020-08-13 Thread Alex Shi
在 2020/8/13 下午12:02, Alexander Duyck 写道: > - rcu_read_lock(); > - lruvec = mem_cgroup_page_lruvec(page, pgdat); > - > /* If we already hold the lock, we can skip some rechecking */ > - if (lruvec != locked) { > - if (locked) >

Re: POC: Alternative solution: Re: [PATCH 0/4] printk: reimplement LOG_CONT handling

2020-08-13 Thread John Ogness
On 2020-08-13, Sergey Senozhatsky wrote: > This is not an unseen pattern, I'm afraid. And the problem here can > be more general: > > pr_info("text"); > pr_cont("1"); > exception/IRQ/NMI > pr_alert("text\n"); > pr_cont("2"); > pr_cont("\n"); > > I guess

Re: [PATCH 4/6] drm/rockchip: dw_hdmi: Add vendor hdmi properties

2020-08-13 Thread Pekka Paalanen
On Wed, 12 Aug 2020 16:30:17 +0300 Laurent Pinchart wrote: > Hi Algea, > > On Wed, Aug 12, 2020 at 07:08:10PM +0800, crj wrote: > > 在 2020/8/12 17:33, Laurent Pinchart 写道: > > > On Wed, Aug 12, 2020 at 04:35:43PM +0800, Algea Cao wrote: > > >> Introduce struct dw_hdmi_property_ops in plat_da

[tip: irq/urgent] genirq: Unlock irq descriptor after errors

2020-08-13 Thread tip-bot2 for Guenter Roeck
The following commit has been merged into the irq/urgent branch of tip: Commit-ID: f107cee94ba4d2c7357fde59a1d84346c73d4958 Gitweb: https://git.kernel.org/tip/f107cee94ba4d2c7357fde59a1d84346c73d4958 Author:Guenter Roeck AuthorDate:Tue, 11 Aug 2020 11:00:12 -07:00 Committe

RE: [PATCH v5 2/3] fpga: dfl: create a dfl bus type to support DFL devices

2020-08-13 Thread Wu, Hao
> Subject: [PATCH v5 2/3] fpga: dfl: create a dfl bus type to support DFL > devices > > A new bus type "dfl" is introduced for private features which are not > initialized by DFL feature drivers (dfl-fme & dfl-afu drivers). So these > private features could be handled by separate driver modules.

Re: [PATCH 1/3] mm: don't call activate_page() on new ksm pages

2020-08-13 Thread Yu Zhao
On Wed, Aug 12, 2020 at 10:19:24PM -0700, Yang Shi wrote: > On Tue, Aug 11, 2020 at 9:04 PM Yu Zhao wrote: > > > > lru_cache_add_active_or_unevictable() already adds new ksm pages to > > active lru. Calling activate_page() isn't really necessary in this > > case. > > > > Signed-off-by: Yu Zhao >

Re: [PATCH] softirq: add irq off checking for __raise_softirq_irqoff

2020-08-13 Thread Thomas Gleixner
Jiafei Pan writes: > __raise_softirq_irqoff will update per-CPU mask of pending softirqs, Please write __raise_softirq_irqoff() so it's clear that this is about a function. > void __raise_softirq_irqoff(unsigned int nr) > { > + /* This function can only be called in irq disabled context, >

Re: [PATCH v4 2/2] xen: add helpers to allocate unpopulated memory

2020-08-13 Thread Christoph Hellwig
On Tue, Aug 11, 2020 at 11:44:47AM +0200, Roger Pau Monne wrote: > If enabled (because ZONE_DEVICE is supported) the usage of the new > functionality untangles Xen balloon and RAM hotplug from the usage of > unpopulated physical memory ranges to map foreign pages, which is the > correct thing to do

<    4   5   6   7   8   9   10   >