Re: [PATCH 0/2] media: meson: vdec: Add compliant H264 support

2019-10-08 Thread Maxime Jourdan
On 07/10/2019 18:39, Hans Verkuil wrote: On 10/7/19 6:24 PM, Maxime Jourdan wrote: On 07/10/2019 17:12, Hans Verkuil wrote: On 10/7/19 4:59 PM, Maxime Jourdan wrote: Hello, This patch series aims to bring H.264 support as well as compliance update to the amlogic stateful video decoder

Re: [PATCH 4.19 033/106] drm/amd/display: support spdif

2019-10-08 Thread Pavel Machek
Hi! > [ Upstream commit b5a41620bb88efb9fb31a4fa5e652e3d5bead7d4 ] > > [Description] > port spdif fix to staging: > spdif hardwired to afmt inst 1. > spdif func pointer > spdif resource allocation (reserve last audio endpoint for spdif only) I'm sorry, but I don't understand this changelog.

[PATCH] pidfd: show pids for nested pid namespaces in fdinfo

2019-10-08 Thread Christian Kellner
From: Christian Kellner The fdinfo file for a process file descriptor already contains the pid of the process in the callers namespaces. Additionally, if pid namespaces are configured, show the process ids of the process in all nested namespaces in the same format as in the procfs status file,

Re: [PATCH v2] mm/page_isolation: fix a deadlock with printk()

2019-10-08 Thread Michal Hocko
On Tue 08-10-19 09:06:29, Qian Cai wrote: > On Tue, 2019-10-08 at 14:39 +0200, Michal Hocko wrote: > > On Tue 08-10-19 08:00:43, Qian Cai wrote: > > > > > > > > > > On Oct 8, 2019, at 6:39 AM, Michal Hocko wrote: > > > > > > > > Have you actually triggered any real deadlock? With a zone->lock

Hello

2019-10-08 Thread Shayma
Hallo liebe Hoffnung, Sie haben meine Nachricht erhalten, bitte Ich brauche eine sofortige Antwort danke michelle

Re: [PATCH v2 for 5.4 2/4] media: hantro: Fix H264 max frmsize supported on RK3288

2019-10-08 Thread Tomasz Figa
On Tue, Oct 8, 2019 at 7:42 PM Tomasz Figa wrote: > > On Tue, Oct 8, 2019 at 3:31 PM Jonas Karlman wrote: > > > > On 2019-10-08 07:27, Tomasz Figa wrote: > > > Hi Ezequiel, Jonas, > > > > > > On Tue, Oct 8, 2019 at 2:46 AM Ezequiel Garcia > > > wrote: > > >> From: Jonas Karlman > > >> > > >>

Re: [PATCH v22 07/24] x86/sgx: Add wrappers for ENCLS leaf functions

2019-10-08 Thread Sean Christopherson
On Tue, Oct 08, 2019 at 09:18:45AM +0200, Borislav Petkov wrote: > On Mon, Oct 07, 2019 at 09:04:05PM -0700, Sean Christopherson wrote: > > > BIT(30) > > > > This is intentionally open coded so that it can be stringified in asm. > > It stringifies just fine with the BIT() macro too: > > # 187

Re: [PATCH v2] mm/page_isolation: fix a deadlock with printk()

2019-10-08 Thread Steven Rostedt
On Tue, 08 Oct 2019 09:23:52 -0400 Qian Cai wrote: > I feel like that is what I trying to do, but there seems a lot of resistances > with that approach where pragmatism met with perfectionism. It's the way it came across. It sounded as if you were proposing "the solution". I'm coming out and

Re: [PATCH v2] mm/page_isolation: fix a deadlock with printk()

2019-10-08 Thread Qian Cai
On Tue, 2019-10-08 at 15:08 +0200, Petr Mladek wrote: > On Mon 2019-10-07 10:59:10, Qian Cai wrote: > > It is almost impossible to eliminate all the indirect call chains from > > console_sem/console_owner_lock to zone->lock because it is too normal that > > something later needs to allocate some

Re: [PATCH v22 09/24] x86/sgx: Add functions to allocate and free EPC pages

2019-10-08 Thread Sean Christopherson
On Tue, Oct 08, 2019 at 11:09:31AM +0200, Borislav Petkov wrote: > On Mon, Oct 07, 2019 at 07:50:11AM -0700, Sean Christopherson wrote: > > The caller is responsible for ensuring EREMOVE can be safely executed, > > e.g. by holding the enclave's lock. > > lockdep_assert_held() here maybe? There

Re: [PATCH v4 3/4] vfio: zpci: defining the VFIO headers

2019-10-08 Thread Cornelia Huck
On Fri, 20 Sep 2019 11:14:28 -0400 Matthew Rosato wrote: > On 9/20/19 10:02 AM, Cornelia Huck wrote: > > On Thu, 19 Sep 2019 16:55:57 -0400 > > Matthew Rosato wrote: > > > >> On 9/19/19 11:20 AM, Cornelia Huck wrote: > >>> On Fri, 6 Sep 2019 20:13:50 -0400 > >>> Matthew Rosato wrote: >

Re: [PATCH] staging: fieldbus: make use of devm_platform_ioremap_resource

2019-10-08 Thread Sven Van Asbroeck
On Tue, Oct 8, 2019 at 2:11 AM hariprasad Kelam wrote: > > From: Hariprasad Kelam > > fix below issues reported by coccicheck > drivers/staging//fieldbus/anybuss/arcx-anybus.c:135:1-5: WARNING: Use > devm_platform_ioremap_resource for base >

[PATCH] device property: Fix the description of struct fwnode_operations

2019-10-08 Thread Heikki Krogerus
Adding description for the device_is_available member which was missing, and fixing the description of the member property_read_int_array. Signed-off-by: Heikki Krogerus --- include/linux/fwnode.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/fwnode.h

Re: [PATCH] regulator: core: Skip balancing of the enabled regulators in regulator_enable()

2019-10-08 Thread Bartlomiej Zolnierkiewicz
On 10/8/19 2:47 PM, Mark Brown wrote: > On Tue, Oct 08, 2019 at 02:38:55PM +0200, Marek Szyprowski wrote: > >> Then if I get it right, the issue is caused by the commit 7f93ff73f7c8 >> ("opp: core: add regulators enable and disable"). I've checked and >> indeed reverting it fixes Peach Pi to

Re: [PATCH v2] mm/page_isolation: fix a deadlock with printk()

2019-10-08 Thread Qian Cai
On Tue, 2019-10-08 at 09:13 -0400, Steven Rostedt wrote: > On Tue, 8 Oct 2019 10:15:10 +0200 > Petr Mladek wrote: > > > There are basically three possibilities: > > > > 1. Do crazy exercises with locks all around the kernel to > >avoid the deadlocks. It is usually not worth it. And > >

Re: [PATCH] staging: vchiq: don't leak kernel address

2019-10-08 Thread Dan Carpenter
The subject doesn't match the patch. It should just be "remove useless printk". regards, dan carpenter

[PATCH RFC] kconfig: add hvconfig for Linux on Hyper-V

2019-10-08 Thread Wei Liu
From: Wei Liu Add an config file snippet which enalbes additional options useful for running the kernel in a Hyper-V guest. The expected use case is a user provides an existing config file then executes `make hvconfig`. It will merge those options with the provided config file. Based on

Re: [PATCH] Convert filldir[64]() from __put_user() to unsafe_put_user()

2019-10-08 Thread Greg KH
On Tue, Oct 08, 2019 at 05:57:12AM +0100, Al Viro wrote: > > OK... BTW, do you agree that the use of access_ok() in > drivers/tty/n_hdlc.c:n_hdlc_tty_read() is wrong? It's used as an early > cutoff, so we don't bother waiting if user has passed an obviously bogus > address.

Re: [PATCH v2] mm/page_isolation: fix a deadlock with printk()

2019-10-08 Thread Steven Rostedt
On Tue, 8 Oct 2019 10:15:10 +0200 Petr Mladek wrote: > There are basically three possibilities: > > 1. Do crazy exercises with locks all around the kernel to >avoid the deadlocks. It is usually not worth it. And >it is a "whack a mole" approach. > > 2. Use printk_deferred() in

Re: [PATCH] rcu: Avoid to modify mask_ofl_ipi in sync_rcu_exp_select_node_cpus()

2019-10-08 Thread Paul E. McKenney
On Tue, Oct 08, 2019 at 01:01:40PM +0800, Boqun Feng wrote: > "mask_ofl_ipi" is used for iterate CPUs which IPIs are needed to send > to, however in the IPI sending loop, "mask_ofl_ipi" along with another > variable "mask_ofl_test" might also get modified to record which CPU's > quiesent state can

Re: [PATCH v2 3/4] module: Properly propagate MODULE_STATE_COMING failure

2019-10-08 Thread Miroslav Benes
On Mon, 7 Oct 2019, Peter Zijlstra wrote: > Now that notifiers got unbroken; use the proper interface to handle > notifier errors and propagate them. > > There were already MODULE_STATE_COMING notifiers that failed; notably: > > - jump_label_module_notifier() > - tracepoint_module_notify() >

Re: [PATCH v2] mm/page_isolation: fix a deadlock with printk()

2019-10-08 Thread Petr Mladek
On Mon 2019-10-07 10:59:10, Qian Cai wrote: > It is almost impossible to eliminate all the indirect call chains from > console_sem/console_owner_lock to zone->lock because it is too normal that > something later needs to allocate some memory dynamically, so as long as it > directly call printk()

Re: [PATCH v2 2/3] pinctrl: meson-a1: add pinctrl driver for Meson A1 Soc

2019-10-08 Thread Neil Armstrong
Hi, On 08/10/2019 13:09, Qianggui Song wrote: > Add pinctrl driver for Meson A1 Soc which share the same register layout of > pinmux with previous Meson-G12A, however there is difference for gpio > and pin config register in A1.The main difference is that registers before A1 > are grouped by

Re: [PATCH v2] mm/page_isolation: fix a deadlock with printk()

2019-10-08 Thread Qian Cai
On Tue, 2019-10-08 at 14:39 +0200, Michal Hocko wrote: > On Tue 08-10-19 08:00:43, Qian Cai wrote: > > > > > > > On Oct 8, 2019, at 6:39 AM, Michal Hocko wrote: > > > > > > Have you actually triggered any real deadlock? With a zone->lock in > > > place it would be pretty clear with hard

Maybe a bug in kernel/irq/chip.c unmask_irq(), device IRQ masked unexpectedly. (re-formated the mail body, sorry)

2019-10-08 Thread Yi Zheng
Hi, I found something wrong on my AM3352 SoC machine, the GPIO triggered IRQ is masked unexpectedly. That bug cause the devices using that GPIO-IRQ can not work. Even the latest kernel version (v5.4-rc2-20-geda57a0e4299)! After a long time hacking, I guess the bug is in

Re: [PATCH v2] platform/x86: peaq-wmi: switch to using polled mode of input devices

2019-10-08 Thread Hans de Goede
Hi, On 01-10-2019 20:58, Dmitry Torokhov wrote: We have added polled mode to the normal input devices with the intent of retiring input_polled_dev. This converts peaq-wmi driver to use the polling mode of standard input devices and removes dependency on INPUT_POLLDEV. Because the new polling

Re: [PATCH v3 04/10] sched/fair: rework load_balance

2019-10-08 Thread Peter Zijlstra
On Wed, Oct 02, 2019 at 11:21:20AM +0200, Dietmar Eggemann wrote: > I thought we should always order local variable declarations from > longest to shortest line but can't find this rule in coding-style.rst > either. You're right though, that is generally encouraged. From last years (2018) KS

[PATCH] binder: prevent UAF read in print_binder_transaction_log_entry()

2019-10-08 Thread Christian Brauner
When a binder transaction is initiated on a binder device coming from a binderfs instance, a pointer to the name of the binder device is stashed in the binder_transaction_log_entry's context_name member. Later on it is used to print the name in print_binder_transaction_log_entry(). By the time

Re: [PATCH 1/2] Drivers: hv: vmbus: Introduce table of VMBus protocol versions

2019-10-08 Thread Vitaly Kuznetsov
Andrea Parri writes: >> > @@ -244,21 +234,18 @@ int vmbus_connect(void) >> > * version. >> > */ >> > >> > - version = VERSION_CURRENT; >> > + for (i = 0; ; i++) { >> > + version = vmbus_versions[i]; >> > + if (version == VERSION_INVAL) >> > + goto

Re: [PATCH] checkpatch: use patch subject when reading from stdin

2019-10-08 Thread Geert Uytterhoeven
Hi Joe, On Tue, Oct 8, 2019 at 2:50 PM Joe Perches wrote: > On Tue, 2019-10-08 at 11:40 +0200, Geert Uytterhoeven wrote: > > When reading a patch file from standard input, checkpatch calls it "Your > > patch", and reports its state as: > > > > Your patch has style problems, please review. >

RE: [PATCH v10 3/3] mm: fix double page fault on arm64 if PTE_AF is cleared

2019-10-08 Thread Justin He (Arm Technology China)
Hi Will > -Original Message- > From: Will Deacon > Sent: 2019年10月8日 20:40 > To: Justin He (Arm Technology China) > Cc: Catalin Marinas ; Mark Rutland > ; James Morse ; Marc > Zyngier ; Matthew Wilcox ; Kirill A. > Shutemov ; linux-arm- > ker...@lists.infradead.org;

Re: ptrace/strace and freezer oddities and v5.2+ kernels

2019-10-08 Thread Bruce Ashfield
On Tue, Oct 8, 2019 at 8:36 AM Oleg Nesterov wrote: > > On 10/08, Bruce Ashfield wrote: > > > > So I've been looking through the config delta's and late last night, I was > > able to move the runtime back to a failed 4 minute state by adding the > > CONFIG_PREEMPT settings that we have by default

Re: [PATCH] usb:cdns3: Fix for CV CH9 running with g_zero driver.

2019-10-08 Thread Felipe Balbi
Hi, Peter Chen writes: > On 19-10-07 07:39:11, Pawel Laszczak wrote: >> Patch fixes issue with Halt Endnpoint Test observed > > %s/Endnpoint/Endpoint > >> >> during using g_zero >> driver as DUT. Bug occurred only on some testing board. > > g_zero is legacy, please use configfs function

[PATCH v2] PCI/MSI: Enable PCI_MSI_IRQ_DOMAIN support for Microblaze

2019-10-08 Thread Michal Simek
From: Kuldeep Dave Add Microblaze as an arch that supports PCI_MSI_IRQ_DOMAIN and add generation of msi.h in the Microblaze arch. The same change has been done by commit 251a44888183 ("riscv: include generic support for MSI irqdomains") and by commit 2a9af0273c1c ("PCI/MSI: Enable

Re: [PATCH v2] arm64: dts: marvell: add ESPRESSObin variants

2019-10-08 Thread Gregory CLEMENT
> Hi Tomasz Maciej Nowak, > >> This commit adds dts for different variants of ESPRESSObin board: >> >> ESPRESSObin with soldered eMMC, >> >> ESPRESSObin V7, compared to prior versions some passive elements changed >> and ethernet ports labels positions have been reversed, >> >> ESPRESSObin V7 with

Re: [PATCH v6 00/10] s390: vfio-ap: dynamic configuration support

2019-10-08 Thread Pierre Morel
On 10/8/19 12:48 PM, Halil Pasic wrote: On Fri, 13 Sep 2019 17:26:48 -0400 Tony Krowiak wrote: The current design for AP pass-through does not support making dynamic changes to the AP matrix of a running guest resulting in three deficiencies this patch series is intended to mitigate: 1.

Re: mount on tmpfs failing to parse context option

2019-10-08 Thread Karel Zak
On Tue, Oct 08, 2019 at 08:38:18PM +0800, Ian Kent wrote: > > That's because the options in shmem_parse_options() are > > "size=4G,nr_inodes=0", which indeed looks like an attempt to > > retroactively limit size; but the user never asked "size=4G" there. > > I believe that's mount(8) doing that.

Re: [PATCH v2] mm/page_isolation: fix a deadlock with printk()

2019-10-08 Thread Christian Borntraeger
Adding Peter Oberparleiter. Peter, can you have a look? On 08.10.19 10:27, Michal Hocko wrote: > On Tue 08-10-19 09:43:57, Petr Mladek wrote: >> On Mon 2019-10-07 16:49:37, Michal Hocko wrote: >>> [Cc s390 maintainers - the lockdep is >>>

Re: [PATCH v2] arm64: dts: marvell: add ESPRESSObin variants

2019-10-08 Thread Gregory CLEMENT
Hi Tomasz Maciej Nowak, > This commit adds dts for different variants of ESPRESSObin board: > > ESPRESSObin with soldered eMMC, > > ESPRESSObin V7, compared to prior versions some passive elements changed > and ethernet ports labels positions have been reversed, > > ESPRESSObin V7 with soldered

Re: [PATCH] PCI/MSI: Enable PCI_MSI_IRQ_DOMAIN support for Microblaze

2019-10-08 Thread Michal Simek
On 08. 10. 19 14:47, Bjorn Helgaas wrote: > On Tue, Oct 08, 2019 at 12:39:22PM +0200, Michal Simek wrote: >> From: Kuldeep Dave >> >> Add Microblaze as an arch that supports PCI_MSI_IRQ_DOMAIN. >> Enabling msi.h generation is done by separate patch. >> >> Similar change was done by commit

Re: mount on tmpfs failing to parse context option

2019-10-08 Thread Ian Kent
On Tue, 2019-10-08 at 20:38 +0800, Ian Kent wrote: > On Mon, 2019-10-07 at 17:50 -0700, Hugh Dickins wrote: > > On Mon, 7 Oct 2019, Laura Abbott wrote: > > > On 9/30/19 12:07 PM, Laura Abbott wrote: > > > > Hi, > > > > > > > > Fedora got a bug report > >

Re: [PATCH 1/3] regulator: core: fix boot-on regulators use_count usage

2019-10-08 Thread Mark Brown
On Tue, Oct 08, 2019 at 08:03:11AM +0200, Marco Felsch wrote: > On 19-10-07 19:29, Mark Brown wrote: > > On Mon, Oct 07, 2019 at 11:34:29AM +0200, Marco Felsch wrote: > > > Sorry that won't fix my problem. If I drop the regulator-boot-on state > > > the fixed-regulator will disable this regulator

Re: [PATCH 4.19 001/106] tpm: use tpm_try_get_ops() in tpm-sysfs.c.

2019-10-08 Thread Pavel Machek
On Sun 2019-10-06 19:20:07, Greg Kroah-Hartman wrote: > From: Jarkko Sakkinen > > commit 2677ca98ae377517930c183248221f69f771c921 upstream > > Use tpm_try_get_ops() in tpm-sysfs.c so that we can consider moving > other decorations (locking, localities, power management for example) > inside it.

Re: [PATCH] checkpatch: use patch subject when reading from stdin

2019-10-08 Thread Joe Perches
On Tue, 2019-10-08 at 11:40 +0200, Geert Uytterhoeven wrote: > When reading a patch file from standard input, checkpatch calls it "Your > patch", and reports its state as: > > Your patch has style problems, please review. > > or: > > Your patch has no obvious style problems and is ready

Re: ehci-pci breakage with dma-mapping changes in 5.4-rc2

2019-10-08 Thread Christoph Hellwig
On Tue, Oct 08, 2019 at 07:51:03AM -0400, Arvind Sankar wrote: > What I mean is, do there exist devices (which would necessarily support > 64-bit DMA) that want to DMA using bigger than 4Gb buffers. Eg a GPU > accelerator card with 16Gb of RAM on-board that wants to map 6Gb for DMA > in one go, or

Maybe a bug in kernel/irq/chip.c unmask_irq(), device irq is masked unexpectedly.

2019-10-08 Thread Yi Zheng
Hi, I found something wrong on my AM3352 SoC machine, the GPIO triggered IRQ is masked unexpectedly. That bug cause the devices using that GPIO-IRQ can not work. Even the latest kernel version (v5.4-rc2-20-geda57a0e4299)! After a long time hacking, I guess the bug is in

Re: [PATCH] regulator: core: Skip balancing of the enabled regulators in regulator_enable()

2019-10-08 Thread Mark Brown
On Tue, Oct 08, 2019 at 02:38:55PM +0200, Marek Szyprowski wrote: > Then if I get it right, the issue is caused by the commit 7f93ff73f7c8 > ("opp: core: add regulators enable and disable"). I've checked and > indeed reverting it fixes Peach Pi to boot properly. The question is if > this is

Re: [PATCH] PCI/MSI: Enable PCI_MSI_IRQ_DOMAIN support for Microblaze

2019-10-08 Thread Bjorn Helgaas
On Tue, Oct 08, 2019 at 12:39:22PM +0200, Michal Simek wrote: > From: Kuldeep Dave > > Add Microblaze as an arch that supports PCI_MSI_IRQ_DOMAIN. > Enabling msi.h generation is done by separate patch. > > Similar change was done by commit 2a9af0273c1c > ("PCI/MSI: Enable PCI_MSI_IRQ_DOMAIN

Re: linux-next: build failure after merge of the staging tree

2019-10-08 Thread Greg KH
On Tue, Oct 08, 2019 at 01:49:07PM +1100, Stephen Rothwell wrote: > Hi all, > > After merging the staging tree, today's linux-next build (powerpc > allyesconfig) failed like this: > > In file included from include/linux/byteorder/big_endian.h:5, > from

Re: [PATCH 1/2] dt-bindings: clock: Add AST2600 RMII RCLK gate definitions

2019-10-08 Thread Joel Stanley
On Tue, 8 Oct 2019 at 11:34, Andrew Jeffery wrote: > > The AST2600 has an explicit gate for the RMII RCLK for each of the four > MACs. > > Signed-off-by: Andrew Jeffery > --- > include/dt-bindings/clock/ast2600-clock.h | 5 + > 1 file changed, 5 insertions(+) > > diff --git

Re: [PATCH 1/2] Drivers: hv: vmbus: Introduce table of VMBus protocol versions

2019-10-08 Thread Andrea Parri
> IIUC, you're suggesting that I do: > > for (i = 0; i < ARRAY_SIZE(vmbus_versions); i++) { > version = vmbus_versions[i]; > > ret = vmbus_negotiate_version(msginfo, version); > if (ret == -ETIMEDOUT) > goto cleanup; > >

Re: [PATCH 3/3] net: ftgmac100: Ungate RCLK for RMII on ASPEED MACs

2019-10-08 Thread Joel Stanley
On Tue, 8 Oct 2019 at 11:50, Andrew Jeffery wrote: > > The 50MHz RCLK has to be enabled before the RMII interface will function. > > Signed-off-by: Andrew Jeffery > --- > drivers/net/ethernet/faraday/ftgmac100.c | 35 +++- > 1 file changed, 28 insertions(+), 7 deletions(-) >

Re: [PATCH 1/2] Drivers: hv: vmbus: Introduce table of VMBus protocol versions

2019-10-08 Thread Andrea Parri
On Mon, Oct 07, 2019 at 05:25:18PM +, Dexuan Cui wrote: > > From: linux-hyperv-ow...@vger.kernel.org > > On Behalf Of Andrea Parri > > Sent: Monday, October 7, 2019 9:31 AM > > > > +/* > > + * Table of VMBus versions listed from newest to oldest; the table > > + * must terminate with

Re: [PATCH 2/3] dt-bindings: net: ftgmac100: Describe clock properties

2019-10-08 Thread Joel Stanley
On Tue, 8 Oct 2019 at 11:50, Andrew Jeffery wrote: > > Critically, the AST2600 requires ungating the RMII RCLK if e.g. NCSI is > in use. > > Signed-off-by: Andrew Jeffery > --- > Documentation/devicetree/bindings/net/ftgmac100.txt | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git

Re: [PATCH 1/2] Drivers: hv: vmbus: Introduce table of VMBus protocol versions

2019-10-08 Thread Andrea Parri
> > @@ -244,21 +234,18 @@ int vmbus_connect(void) > > * version. > > */ > > > > - version = VERSION_CURRENT; > > + for (i = 0; ; i++) { > > + version = vmbus_versions[i]; > > + if (version == VERSION_INVAL) > > + goto cleanup; > > If you use

Re: [PATCH 1/3] dt-bindings: net: ftgmac100: Document AST2600 compatible

2019-10-08 Thread Joel Stanley
On Tue, 8 Oct 2019 at 11:50, Andrew Jeffery wrote: > > The AST2600 contains an FTGMAC100-compatible MAC, although it no-longer > contains an MDIO controller. > > Signed-off-by: Andrew Jeffery Acked-by: Joel Stanley > --- > Documentation/devicetree/bindings/net/ftgmac100.txt | 1 + > 1 file

Re: [PATCH 2/2] clk: ast2600: Add RMII RCLK gates for all four MACs

2019-10-08 Thread Joel Stanley
On Tue, 8 Oct 2019 at 11:35, Andrew Jeffery wrote: > > RCLK is a fixed 50MHz clock derived from HPLL/HCLK that is described by a > single gate for each MAC. > > Signed-off-by: Andrew Jeffery We could have mac12rclk and mac34rclk described in the device tree, as was mentioned in previous reviews

Re: [PATCH v2] mm/page_isolation: fix a deadlock with printk()

2019-10-08 Thread Michal Hocko
On Tue 08-10-19 08:00:43, Qian Cai wrote: > > > > On Oct 8, 2019, at 6:39 AM, Michal Hocko wrote: > > > > Have you actually triggered any real deadlock? With a zone->lock in > > place it would be pretty clear with hard lockups detected. > > Yes, I did trigger here and there, and those lockdep

Re: [PATCH v10 3/3] mm: fix double page fault on arm64 if PTE_AF is cleared

2019-10-08 Thread Will Deacon
On Tue, Oct 08, 2019 at 02:19:05AM +, Justin He (Arm Technology China) wrote: > > -Original Message- > > From: Will Deacon > > Sent: 2019年10月1日 20:54 > > To: Justin He (Arm Technology China) > > Cc: Catalin Marinas ; Mark Rutland > > ; James Morse ; Marc > > Zyngier ; Matthew Wilcox

Re: [PATCH] regulator: core: Skip balancing of the enabled regulators in regulator_enable()

2019-10-08 Thread Marek Szyprowski
Hi Mark, On 08.10.2019 14:06, Mark Brown wrote: > On Tue, Oct 08, 2019 at 02:01:15PM +0200, Marek Szyprowski wrote: >> On 08.10.2019 13:50, Mark Brown wrote: >>> This then means that for users that might legitimately enable and >>> disable regulators that need to be constrained are forced to

Re: [PATCH] staging: media: sunxi: make use of devm_platform_ioremap_resource

2019-10-08 Thread Greg Kroah-Hartman
On Tue, Oct 08, 2019 at 12:29:34PM +0530, haripra...@osuosl.org wrote: > From: Hariprasad Kelam > > fix below issue reported by coccicheck > drivers/staging//media/sunxi/cedrus/cedrus_hw.c:229:1-10: WARNING: Use > devm_platform_ioremap_resource for dev -> base > > Signed-off-by: Hariprasad

Re: [PATCH] rtl8723bs: core: Remove code valid only for 5GHZ

2019-10-08 Thread Greg Kroah-Hartman
On Sun, Sep 29, 2019 at 07:24:57PM +0530, haripra...@osuosl.org wrote: > From: Hariprasad Kelam > > As per TODO ,remove code valid only for 5 GHz(channel > 14). > > Signed-off-by: Hariprasad Kelam > --- > drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 19 ++- > 1 file

Re: mount on tmpfs failing to parse context option

2019-10-08 Thread Ian Kent
On Mon, 2019-10-07 at 17:50 -0700, Hugh Dickins wrote: > On Mon, 7 Oct 2019, Laura Abbott wrote: > > On 9/30/19 12:07 PM, Laura Abbott wrote: > > > Hi, > > > > > > Fedora got a bug report > https://bugzilla.redhat.com/show_bug.cgi?id=1757104 > > > of a failure to parse options with the context

Re: [PATCH 1/2] dt-bindings: clock: Add AST2500 RMII RCLK definitions

2019-10-08 Thread Joel Stanley
On Tue, 8 Oct 2019 at 11:34, Andrew Jeffery wrote: > > The AST2500 has an explicit gate for the RMII RCLK for each of the two > MACs. > > Signed-off-by: Andrew Jeffery > --- > include/dt-bindings/clock/aspeed-clock.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git

[PATCH v4 2/2] perf: add support for logging debug messages to file

2019-10-08 Thread Changbin Du
When in TUI mode, it is impossible to show all the debug messages to console. This make it hard to debug perf issues using debug messages. This patch adds support for logging debug messages to file to resolve this problem. The usage is: perf -debug verbose=2,file=~/perf.log COMMAND

[PATCH v4 1/2] perf: support multiple debug options separated by ','

2019-10-08 Thread Changbin Du
This patch adds support for multiple debug options separated by ',' and non-int values. --debug verbose=2,stderr Signed-off-by: Changbin Du --- tools/perf/Documentation/perf.txt | 10 ++-- tools/perf/util/debug.c | 86 --- 2 files changed, 50

Re: ptrace/strace and freezer oddities and v5.2+ kernels

2019-10-08 Thread Oleg Nesterov
On 10/08, Bruce Ashfield wrote: > > So I've been looking through the config delta's and late last night, I was > able to move the runtime back to a failed 4 minute state by adding the > CONFIG_PREEMPT settings that we have by default in our reference > kernel. Aha... Can you try the patch below?

[PATCH v4 0/2] perf: add support for logging debug messages to file

2019-10-08 Thread Changbin Du
When in TUI mode, it is impossible to show all the debug messages to console. This make it hard to debug perf issues using debug messages. This patch adds support for logging debug messages to file to resolve this problem. v4: o fix another segfault. v3: o fix a segfault issue. v2: o

[PATCH 2/2] mmc: sdhci-of-at91: add DT property to enable calibration on full reset

2019-10-08 Thread Nicolas Ferre
Add a property to keep the analog calibration cell powered. This feature is specific to the Microchip SDHCI IP and outside of the standard SDHCI register map. By always keeping it on, after a full reset sequence, we make sure that this feature is activated and not disabled. We expose a hardware

[PATCH 1/2] dt-bindings: sdhci-of-at91: add the microchip,sdcal-inverted property

2019-10-08 Thread Nicolas Ferre
Add the specific microchip,sdcal-inverted property to at91 sdhci device binding. This optional property describes how the SoC SDCAL pin is connected. It could be handled at SiP, SoM or board level. This property read by at91 sdhci driver will allow to put in place a software workaround that would

dma coherent memory user-space maps

2019-10-08 Thread VMware
Hi, Christoph, Following our previous discussion I wonder if something along the lines of the following could work / be acceptible typedef unsigned long dma_pfn_t /* Opaque pfn type. Arch dependent. This could if needed be a struct with a pointer and an offset */ /* Similar to

[PATCH] staging: vchiq: don't leak kernel address

2019-10-08 Thread Matteo Croce
Since commit ad67b74d2469d9b8 ("printk: hash addresses printed with %p"), an obfuscated kernel pointer is printed at boot: vchiq: vchiq_init_state: slot_zero = (ptrval) Remove the the print completely, as it's useless without the address. Signed-off-by: Matteo Croce ---

Re: [PATCH v3 0/2] perf: add support for logging debug messages to file

2019-10-08 Thread Changbin Du
On Mon, Oct 07, 2019 at 01:26:24PM +0200, Jiri Olsa wrote: > On Fri, Oct 04, 2019 at 10:39:52AM +0800, Changbin Du wrote: > > When in TUI mode, it is impossible to show all the debug messages to > > console. This make it hard to debug perf issues using debug messages. > > This patch adds support

Re: [PATCH v3] perf tools: avoid sample_reg_masks being const + weak

2019-10-08 Thread Jiri Olsa
On Mon, Sep 30, 2019 at 05:36:23PM -0700, Ian Rogers wrote: > Being const + weak breaks with some compilers that constant-propagate > from the weak symbol. This behavior is outside of the specification, but > in LLVM is chosen to match GCC's behavior. > > LLVM's implementation was set in this

Re: [PATCH 1/2] dt-bindings: iio: light: Add binding for ADUX1020

2019-10-08 Thread Jonathan Cameron
On Mon, 7 Oct 2019 13:21:50 + "Ardelean, Alexandru" wrote: > On Mon, 2019-10-07 at 18:10 +0530, Manivannan Sadhasivam wrote: > > [External] > > > > Hi Ardelean, > > > > On 7 October 2019 3:51:16 PM IST, "Ardelean, Alexandru" < > > alexandru.ardel...@analog.com> wrote: > > > On Mon,

Re: [PATCH v2 2/2] iio: light: Add support for ADUX1020 sensor

2019-10-08 Thread Jonathan Cameron
On Mon, 7 Oct 2019 21:09:17 +0530 Manivannan Sadhasivam wrote: > Add initial support for Analog Devices ADUX1020 Photometric sensor. > Only proximity mode has been enabled for now. > > Signed-off-by: Manivannan Sadhasivam Hi Manivannan, Various minor comments inline. Thanks, Jonathan >

Re: [PATCH v8 6/6] PCI: Fix bug resulting in double hpmemsize being assigned to MMIO window

2019-10-08 Thread mika.westerb...@linux.intel.com
On Fri, Jul 26, 2019 at 12:55:03PM +, Nicholas Johnson wrote: > Background > == I don't think the above are needed. > Currently, the kernel can sometimes assign the MMIO_PREF window > additional size into the MMIO

[PATCH v2 0/2] extcon: axp288: Move to swnodes

2019-10-08 Thread Heikki Krogerus
Hi Hans, Fixed the compiler warning in this version. No other changes. The original cover letter: That AXP288 extcon driver is the last that uses build-in connection description. I'm replacing it with a code that finds the role mux software node instead. I'm proposing also here a little helper

[PATCH v2 2/2] extcon: axp288: Remove the build-in connection description

2019-10-08 Thread Heikki Krogerus
Getting handle to the USB role switch by first finding its software fwnode. Signed-off-by: Heikki Krogerus --- drivers/extcon/extcon-axp288.c | 38 -- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/drivers/extcon/extcon-axp288.c

[PATCH v2 1/2] usb: roles: Add usb_role_switch_find_by_fwnode()

2019-10-08 Thread Heikki Krogerus
Simple wrapper function that searches USB role switches with class_find_device_by_fwnode(). Signed-off-by: Heikki Krogerus --- drivers/usb/roles/class.c | 21 + include/linux/usb/role.h | 3 +++ 2 files changed, 24 insertions(+) diff --git a/drivers/usb/roles/class.c

Re: [PATCH 4.19 061/106] PCI: rockchip: Propagate errors for optional regulators

2019-10-08 Thread Pavel Machek
On Sun 2019-10-06 19:21:07, Greg Kroah-Hartman wrote: > From: Thierry Reding > > [ Upstream commit 0e3ff0ac5f71bdb6be2a698de0ed0c7e6e738269 ] > > regulator_get_optional() can fail for a number of reasons besides probe > deferral. It can for example return -ENOMEM if it runs out of memory as >

Re: [PATCH v9 00/12] Device property improvements, add %pfw format specifier

2019-10-08 Thread Petr Mladek
On Thu 2019-10-03 15:32:07, Sakari Ailus wrote: > Hi all, > > This set adds functionality into the device property API (counting a > node's parents as well as obtaining its name) in order to support printing > fwnode names using a new conversion specifier "%pfw". The names that are > produced are

Re: [PATCH 4.19 018/106] clk: actions: Dont reference clk_init_data after registration

2019-10-08 Thread Pavel Machek
On Sun 2019-10-06 19:20:24, Greg Kroah-Hartman wrote: > From: Stephen Boyd > > [ Upstream commit cf9ec1fc6d7cceb73e7f1efd079d2eae173fdf57 ] > > A future patch is going to change semantics of clk_register() so that > clk_hw::init is guaranteed to be NULL after a clk is registered. Avoid >

Re: [PATCH 4.19 012/106] ipmi_si: Only schedule continuously in the thread in maintenance mode

2019-10-08 Thread Corey Minyard
On Tue, Oct 08, 2019 at 11:49:15AM +0200, Pavel Machek wrote: > Hi! > > > @@ -1013,11 +1016,20 @@ static int ipmi_thread(void *data) > > spin_unlock_irqrestore(&(smi_info->si_lock), flags); > > busy_wait = ipmi_thread_busy_wait(smi_result, smi_info, > >

Re: [PATCH v8 5/6] PCI: Add hp_mmio_size and hp_mmio_pref_size parameters

2019-10-08 Thread mika.westerb...@linux.intel.com
On Fri, Jul 26, 2019 at 12:54:44PM +, Nicholas Johnson wrote: > Add kernel parameter pci=hpmmiosize=nn[KMG] to set MMIO bridge window > size for hotplug bridges. > > Add kernel parameter pci=hpmmioprefsize=nn[KMG] to set MMIO_PREF bridge > window size for hotplug bridges. > > Leave

Re: ptrace/strace and freezer oddities and v5.2+ kernels

2019-10-08 Thread Bruce Ashfield
On Mon, Oct 7, 2019 at 7:28 PM Roman Gushchin wrote: > > On Mon, Oct 07, 2019 at 04:11:07PM -0400, Bruce Ashfield wrote: > > On Mon, Oct 7, 2019 at 8:54 AM Bruce Ashfield > > wrote: > > > > > > On Thu, Oct 3, 2019 at 8:09 PM Roman Gushchin wrote: > > > > > > > > On Wed, Oct 02, 2019 at

[PATCH 04/20] fsl/fman: add API to get the device behind a fman port

2019-10-08 Thread Madalin Bucur
From: Laurentiu Tudor Add an API that retrieves the 'struct device' that the specified FMan port probed against. The new API will be used in a subsequent patch that corrects the DMA devices used by the dpaa_eth driver. Signed-off-by: Laurentiu Tudor Signed-off-by: Madalin Bucur ---

[PATCH 05/20] dpaa_eth: change DMA device

2019-10-08 Thread Madalin Bucur
The DPAA Ethernet driver is using the FMan MAC as the device for DMA mapping. This is not actually correct, as the real DMA device is the FMan port (the FMan Rx port for reception and the FMan Tx port for transmission). Changing the device used for DMA mapping to the Fman Rx and Tx port devices.

[PATCH 09/20] dpaa_eth: perform DMA unmapping before read

2019-10-08 Thread Madalin Bucur
DMA unmapping is required before accessing the HW provided timestamping information. Fixes: 4664856e9ca2 ("dpaa_eth: add support for hardware timestamping") Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 32 ++ 1 file changed, 17

[PATCH 13/20] dpaa_eth: use a page to store the SGT

2019-10-08 Thread Madalin Bucur
Use a page to store the scatter gather table on the transmit path. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 43 +- 1 file changed, 21 insertions(+), 22 deletions(-) diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c

Re: [PATCH v2] KVM: Don't shrink/grow vCPU halt_poll_ns if host side polling is disabled

2019-10-08 Thread Paolo Bonzini
On 29/09/19 03:06, Wanpeng Li wrote: > From: Wanpeng Li > > Don't waste cycles to shrink/grow vCPU halt_poll_ns if host > side polling is disabled. > > Acked-by: Marcelo Tosatti > Cc: Marcelo Tosatti > Signed-off-by: Wanpeng Li > --- > v1 -> v2: > * fix coding style > >

Re: [PATCH 3/3] KVM: x86/vPMU: Add lazy mechanism to release perf_event per vPMC

2019-10-08 Thread Peter Zijlstra
On Tue, Oct 01, 2019 at 08:33:45PM +0800, Like Xu wrote: > Hi Peter, > > On 2019/10/1 16:23, Peter Zijlstra wrote: > > On Mon, Sep 30, 2019 at 03:22:57PM +0800, Like Xu wrote: > > > + union { > > > + u8 event_count :7; /* the total number of created perf_events */ > > > + bool

Re: [PATCH] kasan: fix the missing underflow in memmove and memcpy with CONFIG_KASAN_GENERIC=y

2019-10-08 Thread Dmitry Vyukov
On Tue, Oct 8, 2019 at 1:42 PM Qian Cai wrote: > > On Oct 8, 2019, at 7:02 AM, Walter Wu wrote: > > I don't know very well in UBSAN, but I try to build ubsan kernel and > > test a negative number in memset and kmalloc_memmove_invalid_size(), it > > look like no check. > > It sounds like more

[PATCH 08/20] dpaa_eth: use page backed rx buffers

2019-10-08 Thread Madalin Bucur
Change the buffers used for reception from netdev_frags to pages. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 51 +++--- 1 file changed, 22 insertions(+), 29 deletions(-) diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c

[PATCH 19/20] dpaa_eth: add dpaa_dma_to_virt()

2019-10-08 Thread Madalin Bucur
Centralize the phys_to_virt() calls. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 45 ++ 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c

[PATCH 10/20] dpaa_eth: avoid timestamp read on error paths

2019-10-08 Thread Madalin Bucur
The dpaa_cleanup_tx_fd() function is called by the frame transmit confirmation callback but also on several error paths. This function is reading the transmit timestamp value. Avoid reading an invalid timestamp value on the error paths. Fixes: 4664856e9ca2 ("dpaa_eth: add support for hardware

[PATCH 20/20] dpaa_eth: cleanup skb_to_contig_fd()

2019-10-08 Thread Madalin Bucur
Remove cast, align variable name, simplify DMA map size computation. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c

[PATCH 16/20] dpaa_eth: add dropped frames to percpu ethtool stats

2019-10-08 Thread Madalin Bucur
Prior to this change, the frames dropped on receive or transmit were not displayed in the ethtool statistics, leaving the dropped frames unaccounted for. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c | 8 1 file changed, 8 insertions(+) diff --git

[PATCH 18/20] dpaa_eth: extend delays in ndo_stop

2019-10-08 Thread Madalin Bucur
Make sure all the frames that are in flight have time to be processed before the interface is completely brought down. Add a missing delay for the Rx path. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)

[PATCH 17/20] dpaa_eth: remove netdev_err() for user errors

2019-10-08 Thread Madalin Bucur
User reports that an application making an (incorrect) call to restart AN on a fixed link DPAA interface triggers an error in the kernel log while the returned EINVAL should be enough. Reported-by: Joakim Tjernlund Signed-off-by: Madalin Bucur ---

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