Re: [PATCH V2 10/16] dt-bindings: PCI: tegra: Add device tree support for T194

2019-04-15 Thread Thierry Reding
On Fri, Apr 05, 2019 at 01:24:37AM +0530, Vidya Sagar wrote: > Add support for Tegra194 PCIe controllers. These controllers are based > on Synopsys DesignWare core IP. > > Signed-off-by: Vidya Sagar > --- > Changes since [v1]: > * Added documentation for 'power-domains' property > * Removed 'wind

Re: [PATCH v3] platform: chrome: Add ChromeOS EC ISHTP driver

2019-04-15 Thread Enric Balletbo i Serra
Hi, On 12/4/19 17:22, Srinivas Pandruvada wrote: > On Thu, 2019-04-11 at 15:54 +0200, Enric Balletbo i Serra wrote: >> Hi, >> >> On 11/4/19 13:10, Rushikesh S Kadam wrote: >>> Hi Enric, Srinivas >>> >>> On Thu, Apr 11, 2019 at 12:55:13PM +0200, Enric Balletbo i Serra >>> wrote: Hi,

Re: [PATCH] fs/reiserfs/journal.c: Make remove_journal_hash static

2019-04-15 Thread Bharath Vedartham
On Mon, Apr 15, 2019 at 11:47:39AM +0200, Jan Kara wrote: > On Sun 14-04-19 16:54:38, Bharath Vedartham wrote: > > This fixes the -WDecl sparse warning in journal.c. Function was declared > > as static void but the definition was void. > > > > Signed-off-by: Bharath Vedartham > > Thanks! I've ad

Re: kernel BUG at kernel/cred.c:434!

2019-04-15 Thread Oleg Nesterov
On 04/15, Paul Moore wrote: > > On Mon, Apr 15, 2019 at 9:43 AM Oleg Nesterov wrote: > > Well, acct("/proc/self/attr/current") doesn't look like a good idea, but I > > do > > not know where should we put the additional check... And probably > > "echo /proc/self/attr/current > /proc/sys/kernel/cor

Re: [PATCH] Staging: greybus: Cleanup in header file control.h

2019-04-15 Thread Johan Hovold
On Mon, Apr 15, 2019 at 05:40:16PM +0300, Dan Carpenter wrote: > What I'm saying is that if we just apply it then we avoid the long > discussion forever. The macro is OK, sure, but it's not like anyone is > going to come back later and argue that macros are better or preferred. That may be a vali

Re: [PATCH v2 1/2] arm64: dts: fsl: librem5: Add a device tree for the Librem5 devkit

2019-04-15 Thread Angus Ainslie
On 2019-04-12 07:39, Leonard Crestez wrote: On Fri, 2019-04-12 at 07:04 -0600, Angus Ainslie (Purism) wrote: +&i2c1 { + clock-frequency = <40>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c1>; + status = "okay"; + + pmic: pmic@4b { + reg

[PATCH v2 01/19] PM / devfreq: tegra: Fix kHz to Hz conversion

2019-04-15 Thread Dmitry Osipenko
The kHz to Hz is incorrectly converted in a few places in the code, this results in a wrong frequency being calculated because devfreq core uses OPP frequencies that are given in Hz to clamp the rate, while tegra-devfreq gives to the core value in kHz and then it also expects to receive value in kH

[PATCH v2 03/19] PM / devfreq: tegra: Don't ignore clk errors

2019-04-15 Thread Dmitry Osipenko
The clk_set_min_rate() could fail and in this case clk_set_rate() sets rate to 0, which may drop EMC rate to minimum and make machine very difficult to use. Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra-devfreq.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff -

[PATCH v2 05/19] PM / devfreq: tegra: Replace write memory barrier with the read barrier

2019-04-15 Thread Dmitry Osipenko
The write memory barrier isn't needed because the BUS buffer is flushed by read after write that happens after the removed wmb(), we will also use readl() instead of the relaxed version to ensure that read is indeed completed. Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra-devfreq.c |

[PATCH v2 04/19] PM / devfreq: tegra: Don't set EMC clock rate to maximum on probe

2019-04-15 Thread Dmitry Osipenko
There is no real benefit from doing so, hence let's drop that rate setting for consistency. Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra-devfreq.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/devfreq/tegra-devfreq.c b/drivers/devfreq/tegra-devfreq.c index 69581c9082d4

[PATCH v2 09/19] PM / devfreq: tegra: Change interrupt request order

2019-04-15 Thread Dmitry Osipenko
The interrupt should be requested after devfreq initialization because interrupt handler uses the devfreq, otherwise interrupt handler will crash if interrupt fires before the initialization. This shouldn't happen in practice, but it's more correct to have interrupt available after all of interrupt

[PATCH v2 06/19] PM / devfreq: tegra: Fix missed error checking on devfreq initialization failure

2019-04-15 Thread Dmitry Osipenko
The code doesn't check for devfreq initialization failure, fix it. Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra-devfreq.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/devfreq/tegra-devfreq.c b/drivers/devfreq/tegra-devfreq.c index f0f0d78f6cbf..aa0478464b35 100644

[PATCH v2 07/19] PM / devfreq: tegra: Register clk notifier in the end of driver's probe

2019-04-15 Thread Dmitry Osipenko
The notifier isn't unregistered if something fails after the registration, move it to the end of probe to fix the potential use-after-free problem. Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra-devfreq.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --gi

[PATCH v2 11/19] PM / devfreq: tegra: De-initialize properly on driver's probe error

2019-04-15 Thread Dmitry Osipenko
Reset hardware, disable ACTMON clock, release OPP's and free IRQ before removing devfreq device since there is no guarantee that interrupt handling won't run after masking interrupt in hardware. Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra-devfreq.c | 53 -

[PATCH v2 13/19] PM / devfreq: tegra: Mark ACTMON's governor as immutable

2019-04-15 Thread Dmitry Osipenko
The ACTMON's governor supports only the Tegra's devfreq device and there is no need to use any other governor, hence let's mark Tegra governor as immutable to permanently stick it with Tegra's devfreq device. Signed-off-by: Dmitry Osipenko --- drivers/devfreq/Kconfig | 1 - drivers/devfr

[PATCH v2 14/19] PM / devfreq: tegra: Move governor registration to driver's probe

2019-04-15 Thread Dmitry Osipenko
There is no need to register the ACTMON's governor separately from the driver, hence let's move the registration into the driver's probe function for consistency and to make code cleaner a tad. Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra-devfreq.c | 44 +-

[PATCH v2 16/19] PM / devfreq: tegra: Reconfigure hardware on governor's restart

2019-04-15 Thread Dmitry Osipenko
Move hardware configuration to governor's start/resume methods. This allows to re-initialize hardware counters and reconfigure cleanly if governor was stopped/paused. That is needed because we are not aware of all hardware changes that happened while governor was stopped and the paused state may ge

[PATCH] x86/PCI: fix a memory leak bug

2019-04-15 Thread Wenwen Wang
In pcibios_irq_init(), the PCI IRQ routing table 'pirq_table' is firstly found through pirq_find_routing_table(). If the table is not found and 'CONFIG_PCI_BIOS' is defined, the table is then allocated in pcibios_get_irq_routing_table() using kmalloc(). In the following execution, if the I/O APIC i

[PATCH v2 17/19] PM / devfreq: tegra: Support Tegra30

2019-04-15 Thread Dmitry Osipenko
The devfreq driver can be used on Tegra30 without any code change and it works perfectly fine, the default Tegra124 parameters are good enough for Tegra30. Signed-off-by: Dmitry Osipenko --- drivers/devfreq/Kconfig | 4 ++-- drivers/devfreq/tegra-devfreq.c | 1 + 2 files changed, 3 inser

[PATCH v2 18/19] PM / devfreq: tegra: Enable COMPILE_TEST for the driver

2019-04-15 Thread Dmitry Osipenko
The driver's compilation doesn't have any specific dependencies, hence the COMPILE_TEST option can be supported in Kconfig. Signed-off-by: Dmitry Osipenko --- drivers/devfreq/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/devfreq/Kconfig b/drivers/devfreq/Kco

[PATCH v2 12/19] PM / devfreq: tegra: Avoid inconsistency of current frequency value

2019-04-15 Thread Dmitry Osipenko
The frequency value potentially could change in-between. It doesn't cause any real problem at all right now, but that could change in the future. Hence let's avoid the inconsistency. Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra-devfreq.c | 6 -- 1 file changed, 4 insertions(+), 2

[PATCH v2 19/19] PM / devfreq: Introduce driver for NVIDIA Tegra20

2019-04-15 Thread Dmitry Osipenko
Add devfreq driver for NVIDIA Tegra20 SoC's. The driver periodically reads out Memory Controller counters and adjusts memory frequency based on the memory clients activity. Signed-off-by: Dmitry Osipenko --- MAINTAINERS | 8 ++ drivers/devfreq/Kconfig | 10 ++

[PATCH v2 15/19] PM / devfreq: tegra: Synchronize IRQ after masking it in hardware

2019-04-15 Thread Dmitry Osipenko
There is no guarantee that interrupt handling isn't running in parallel, hence it is necessary to synchronize IRQ in order to ensure that interrupt is indeed disabled. Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra-devfreq.c | 33 - 1 file changed, 16 in

[PATCH v2 02/19] PM / devfreq: tegra: Replace readl-writel with relaxed versions

2019-04-15 Thread Dmitry Osipenko
There is no need to insert memory barrier on each readl/writel invocation, hence use the relaxed versions. Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra-devfreq.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/devfreq/tegra-devfreq.c b/drivers/devf

[PATCH v2 10/19] PM / devfreq: tegra: Drop primary interrupt handler

2019-04-15 Thread Dmitry Osipenko
There is no real need in the primary interrupt handler, hence move everything to the secondary (threaded) handler. In a result locking is consistent now and there are no potential races with the interrupt handler because it is protected with the devfreq's mutex. Signed-off-by: Dmitry Osipenko ---

[PATCH v2 08/19] PM / devfreq: tegra: Remove OPP entries on driver removal

2019-04-15 Thread Dmitry Osipenko
This fixes "_opp_is_duplicate" warning messages on driver's module reload. Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra-devfreq.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/devfreq/tegra-devfreq.c b/drivers/devfreq/tegra-devfreq.c index

[PATCH v2 00/19] NVIDIA Tegra devfreq improvements and Tegra20/30 support

2019-04-15 Thread Dmitry Osipenko
Hello, I tried to utilize the Tegra devfreq driver on Tegra30 and found out that it doesn't work properly due to improper Hz<->kHz conversions made by the driver. After fixing that problem and doing some more testing I noticed that there are things that could be improved and in result here is this

[PATCH v2] x86: mm: Do not use set_{pud,pmd}_safe when splitting the large page

2019-04-15 Thread Singh, Brijesh
The following commit 0a9fe8ca844d ("x86/mm: Validate kernel_physical_mapping_init() PTE population") triggers the below warning in the SEV guest. WARNING: CPU: 0 PID: 0 at arch/x86/include/asm/pgalloc.h:87 phys_pmd_init+0x30d/0x386 Call Trace: kernel_physical_mapping_init+0xce/0x259 early_set_

Re: [PATCH V2 07/16] dt-bindings: PCI: designware: Add binding for CDM register check

2019-04-15 Thread Thierry Reding
On Fri, Apr 05, 2019 at 01:24:34AM +0530, Vidya Sagar wrote: > Add support to enable CDM (Configuration Dependent Module) registers check > for any data corruption. CDM registers include standard PCIe configuration > space registers, Port Logic registers and iATU and DMA registers. > Refer Section

[PATCH v2 1/2] driver core: printk to pr_*

2019-04-15 Thread Willy Wolff
This patch change usage of printk to their pr_* equivalent. Note, pr_debug(...) will not be emitted unless DEBUG is defined or CONFIG_DYNAMIC_DEBUG is enabled. Signed-off-by: Willy Wolff --- Changes in v2: - Add a cover letter. drivers/base/dd.c | 18 -- 1 file changed, 8 ins

Re: [PATCH v3 2/2] power_supply: platform/chrome: wilco_ec: Add charging config driver

2019-04-15 Thread Enric Balletbo i Serra
Hi Nick, On 12/4/19 2:20, Nick Crews wrote: > Add control of the charging algorithm used on Wilco devices. > See Documentation/ABI/testing/sysfs-class-power-wilco for the > userspace interface and other info. > > v3 changes: > -Add this changelog > -Fix commit message tags > v2 changes: > -Updat

Re: [PATCH v8 02/16] sched/core: Add bucket local max tracking

2019-04-15 Thread Patrick Bellasi
On 02-Apr 11:41, Patrick Bellasi wrote: > Because of bucketization, different task-specific clamp values are > tracked in the same bucket. For example, with 20% bucket size and > assuming to have: > Task1: util_min=25% > Task2: util_min=35% > both tasks will be refcounted in the [20..39]% buck

Re: Tracehooks in scheduler

2019-04-15 Thread Qais Yousef
Hi Steve, Peter > On 04/07/19 18:52, Qais Yousef wrote: > > Hi Steve, Peter > > > > I know the topic has sprung up in the past but I couldn't find anything that > > points into any conclusion. > > > > As far as I understand new TRACE_EVENTS() in the scheduler (and probably > > other > > subsyst

Re: kernel BUG at kernel/cred.c:434!

2019-04-15 Thread Paul Moore
On Mon, Apr 15, 2019 at 9:43 AM Oleg Nesterov wrote: > Well, acct("/proc/self/attr/current") doesn't look like a good idea, but I do > not know where should we put the additional check... And probably > "echo /proc/self/attr/current > /proc/sys/kernel/core_pattern" can hit the > same problem, do_c

[PATCH] thermal: intel: int340x: processor_thermal_device: simplify to get driver data

2019-04-15 Thread Sumeet Pawnikar
From: "Pawnikar, Sumeet R" This simplifies getting the 'driver_data' from 'struct device' directly. Going through platform_device or pci_dev is not required. Also removes condition check as the private data stored with dev pointer, means irrespective of enumeration mode, we can use dev_get_drvdat

Re: [PATCH] kcov: improve CONFIG_ARCH_HAS_KCOV help text

2019-04-15 Thread Mark Rutland
On Fri, Apr 12, 2019 at 12:31:10PM +0200, Dmitry Vyukov wrote: > On Fri, Apr 12, 2019 at 12:27 PM Mark Rutland wrote: > > > > The help text for CONFIG_ARCH_HAS_KCOV is stale, and describes the > > feature as being enabled only for x86_64, when it is now enabled for > > several architectures, inclu

Re: [PATCH] Staging: greybus: Cleanup in header file control.h

2019-04-15 Thread Dan Carpenter
What I'm saying is that if we just apply it then we avoid the long discussion forever. The macro is OK, sure, but it's not like anyone is going to come back later and argue that macros are better or preferred. regards, dan carpenter

Re: [PATCH v2 0/2] x86/mm/KASLR: Fix the wrong size of memory sections

2019-04-15 Thread Kees Cook
On Fri, Apr 12, 2019 at 1:55 AM Baoquan He wrote: > > v1->v2: > Rewrite log of the two patches. No functionality change. > > ~ > v1 background: > The fixes for these two bugs were carried in the earlier patchset, patch > 4/6

Re: [PATCH v3 1/2] power_supply: Add more charge types and CHARGE_CONTROL_* properties

2019-04-15 Thread Enric Balletbo i Serra
Hi Nick, On 12/4/19 2:20, Nick Crews wrote: > Add "Standard", "Adaptive", and "Custom" modes to the charge_type > property, to expand the existing "Trickle" and "Fast" modes. > In addition, add POWER_SUPPLY_PROP_CHARGE_CONTROL_START_THRESHOLD > and POWER_SUPPLY_PROP_CHARGE_CONTROL_END_THRESHOLD p

Re: [PATCH] pci/switchtec: fix stream_open.cocci warnings (fwd)

2019-04-15 Thread Sebastian Andrzej Siewior
On 2019-04-13 17:00:59 [+], Kirill Smelkov wrote: > Hello everyone, Hi, > On Sat, Apr 13, 2019 at 06:50:57PM +0200, Julia Lawall wrote: > > Hello, > > > > Kirill will explain about this issue. > > pci/switchtec switching to stream_open is already queued to merge > window and it was acked by

Re: [PATCH v4 3/4] perf stat: Support 'percore' event qualifier

2019-04-15 Thread Ravi Bangoria
On 4/12/19 7:29 PM, Jin Yao wrote: > diff --git a/tools/perf/Documentation/perf-stat.txt > b/tools/perf/Documentation/perf-stat.txt > index 39c05f8..1e312c2 100644 > --- a/tools/perf/Documentation/perf-stat.txt > +++ b/tools/perf/Documentation/perf-stat.txt > @@ -43,6 +43,10 @@ report:: >

[PATCH v3] arm64: sysreg: make mrs_s and msr_s macros work with Clang and LTO

2019-04-15 Thread Kees Cook
From: Alex Matveev Clang's integrated assembler does not allow assembly macros defined in one inline asm block using the .macro directive to be used across separate asm blocks. LLVM developers consider this a feature and not a bug, recommending code refactoring: https://bugs.llvm.org/show_bug.

[PATCH] drivers: fsi: This patch fix the following checkpatch warning.

2019-04-15 Thread Mohan Kumar
As per Documentation/timers/timers-howto.txt Msleep < 20ms can sleep for up to 20ms. so use usleep_range. Signed-off-by: Mohan Kumar --- drivers/fsi/fsi-master-ast-cf.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/fsi/fsi-master-ast-cf.c b/drivers/fsi/fs

[PATCH] power: supply: core: fix typo in function to get current charge control limit

2019-04-15 Thread Enric Balletbo i Serra
There is a spelling mistake in ps_get_cur_charge_cntl_limit function so replace 'chrage' for 'charge'. Signed-off-by: Enric Balletbo i Serra --- drivers/power/supply/power_supply_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/power/supply/power_supply_cor

Re: [PATCH 03/12] misc: atmel_tclib: move definitions to header file

2019-04-15 Thread Alexandre Belloni
On 11/04/2019 17:00:26+0200, Daniel Lezcano wrote: > On 03/04/2019 16:11, Alexandre Belloni wrote: > > Move atmel_tc_divisors and atmel_tcb_dt_ids definitions to the header file > > so they can be used without using tclib. > > Why not kill those structure and use the TIMER_OF_DECLARE with the > co

Re: [PATCH] module: add stub for within_module

2019-04-15 Thread Jessica Yu
+++ Nick Desaulniers [08/04/19 11:08 -0700]: On Sat, Apr 6, 2019 at 7:26 PM Tri Vo wrote: Provide a stub for within_module() when CONFIG_MODULES is not set. This is needed to build CONFIG_GCOV_KERNEL. Fixes: 8c3d220cb6b5 ("gcov: clang support") The above commit got backed out of the -mm tre

+ Hola, soy Jessica. ¿Qué tal todo contigo? Tengo interés en ti después de revisar tu perfil. Realmente quiero tener una buena amistad contigo. Además, tengo algo muy importante que decirte.

2019-04-15 Thread Jessica

Re: linux-next: manual merge of the block tree with Linus' tree

2019-04-15 Thread Jens Axboe
On 4/14/19 9:06 PM, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the block tree got a conflict in: > > include/linux/bvec.h > > between commit: > > 1200e07f3ad4 ("block: don't use for-inside-for in bio_for_each_segment_all") > > from Linus' tree and commit: > > 52d5

Re: [PATCH 04/12] clocksource/drivers/tcb_clksrc: stop depending on atmel_tclib

2019-04-15 Thread Alexandre Belloni
On 11/04/2019 18:19:34+0200, Daniel Lezcano wrote: > > + tc.clk[0] = t0_clk; > > + tc.clk[1] = of_clk_get_by_name(node->parent, "t1_clk"); > > + if (IS_ERR(tc.clk[1])) > > + tc.clk[1] = t0_clk; > > + tc.clk[2] = of_clk_get_by_name(node->parent, "t2_clk"); > > + if (IS_ERR(tc.clk

Re: [PATCH] Staging: greybus: Cleanup in header file control.h

2019-04-15 Thread Johan Hovold
On Mon, Apr 15, 2019 at 04:33:57PM +0300, Dan Carpenter wrote: > On Mon, Apr 15, 2019 at 03:10:02PM +0200, Johan Hovold wrote: > > On Fri, Apr 05, 2019 at 03:14:37PM -0500, Madhumitha Prabakaran wrote: > > > Fix a blank line after function/struct/union/enum > > > declarations. Also, convert to_gb_c

Re: [REGRESSION 4.20-rc1] 45975c7d21a1 ("rcu: Define RCU-sched API in terms of RCU for Tree RCU PREEMPT builds")

2019-04-15 Thread Paul E. McKenney
On Mon, Apr 15, 2019 at 04:35:24PM +0300, Ville Syrjälä wrote: > On Mon, Nov 26, 2018 at 02:01:22PM -0800, Paul E. McKenney wrote: > > On Wed, Nov 14, 2018 at 12:20:13PM -0800, Paul E. McKenney wrote: > > > On Tue, Nov 13, 2018 at 07:10:37AM -0800, Paul E. McKenney wrote: > > > > On Tue, Nov 13, 20

Re: [PATCH -next] PCI: mvebu: Make mvebu_pci_bridge_emul_ops static

2019-04-15 Thread YueHaibing
On 2019/4/15 21:00, Lorenzo Pieralisi wrote: > On Wed, Apr 10, 2019 at 10:09:49PM +0800, Yue Haibing wrote: >> From: YueHaibing >> >> Fix sparse warning: >> >> drivers/pci/controller/pci-mvebu.c:557:28: warning: >> symbol 'mvebu_pci_bridge_emul_ops' was not declared. Should it be static? >> >> Re

[PATCH] KVM: nVMX: always use early vmcs check when EPT is disabled

2019-04-15 Thread Paolo Bonzini
The remaining failures of vmx.flat when EPT is disabled are caused by incorrectly reflecting VMfails to the L1 hypervisor. What happens is that nested_vmx_restore_host_state corrupts the guest CR3, reloading it with the host's shadow CR3 instead, because it blindly loads GUEST_CR3 from the vmcs01.

Re: [PATCH v4 2/2] platform/chrome: wilco_ec: Add h1_gpio status to debugfs

2019-04-15 Thread Enric Balletbo i Serra
On 12/4/19 20:14, Nick Crews wrote: > As part of Chrome OS's FAFT (Fully Automated Firmware Testing) > tests, we need to ensure that the H1 chip is properly setting > some GPIO lines. The h1_gpio attribute exposes the state > of the lines: > - ENTRY_TO_FACT_MODE in BIT(0) > - SPI_CHROME_SEL in B

Re: [PATCH 5/5] leds: lm3697: Introduce the lm3697 driver

2019-04-15 Thread Pavel Machek
> >> diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig > >> index 735009e73414..688bb9a6f275 100644 > >> --- a/drivers/leds/Kconfig > >> +++ b/drivers/leds/Kconfig > >> @@ -776,9 +776,15 @@ config LEDS_NIC78BX > >> To compile this driver as a module, choose M here: the module > >>

Re: [PATCH v4 1/2] platform/chrome: wilco_ec: Fix documentation for debugfs raw attribute

2019-04-15 Thread Enric Balletbo i Serra
Hi Nick, On 12/4/19 20:14, Nick Crews wrote: > In a previous refactor [repo chrome-platform, branch for-next, > commit 9cced499d6fdb60434ffa94f8f4b5087ad35802b > ("platform/chrome: wilco_ec: Standardize mailbox interface")], the > documentation for the raw debugfs attribute became incorrect, but I

Re: [PATCH V2 1/2] mm/hotplug: Reorder arch_remove_memory() call in __remove_memory()

2019-04-15 Thread David Hildenbrand
On 14.04.19 07:59, Anshuman Khandual wrote: > Memory hot remove uses get_nid_for_pfn() while tearing down linked sysfs > entries between memory block and node. It first checks pfn validity with > pfn_valid_within() before fetching nid. With CONFIG_HOLES_IN_ZONE config > (arm64 has this enabled) pfn

Re: [PATCH V2 2/2] arm64/mm: Enable memory hot remove

2019-04-15 Thread David Hildenbrand
> + > +#ifdef CONFIG_MEMORY_HOTREMOVE > +int arch_remove_memory(int nid, u64 start, u64 size, struct vmem_altmap > *altmap) > +{ > + unsigned long start_pfn = start >> PAGE_SHIFT; > + unsigned long nr_pages = size >> PAGE_SHIFT; > + struct zone *zone = page_zone(pfn_to_page(start_pfn))

Re: Adding plain accesses and detecting data races in the LKMM

2019-04-15 Thread Paul E. McKenney
On Mon, Apr 15, 2019 at 09:50:03AM -0400, Alan Stern wrote: > On Mon, 15 Apr 2019, Paul E. McKenney wrote: > > > Another question is "should the kernel permit smp_mb__{before,after}*() > > anywhere other than immediately before or after the primitive being > > strengthened?" > > > > Thoughts? >

Re: [PATCH v5 1/3] Provide in-kernel headers to make extending kernel easier

2019-04-15 Thread Joel Fernandes
On Mon, Apr 15, 2019 at 11:41:18AM +0200, Enrico Weigelt, metux IT consult wrote: [snip] > > This patch seems to have been met with a lot of responses in the tone> of > > "this is not an appealing solution". > > Personally, having generic helpers for putting blobs into /proc files > (like config

Re: [PATCH 2/4] clone: add CLONE_PIDFD

2019-04-15 Thread Christian Brauner
On Mon, Apr 15, 2019 at 03:24:16PM +0200, Oleg Nesterov wrote: > On 04/15, Christian Brauner wrote: > > > > > CLONE_PARENT_SETTID doesn't look very usefule, so what if we add > > > > > > if ((clone_flags & (CLONE_PIDFD|CLONE_PARENT_SETTID)) == > > > (CLONE_PIDFD|CLONE_PARENT_

Re: [PATCH 2/2] tty: add rpmsg driver

2019-04-15 Thread xiang xiao
On Mon, Apr 15, 2019 at 9:14 PM Enrico Weigelt, metux IT consult wrote: > > On 12.04.19 18:00, Arnaud Pouliquen wrote: > > Hi folks, > > > > Haven't followed the whole thread, but I've got the impression that the > device is emulating an uart - if that's the case wouldn't it be better > to implem

Re: Adding plain accesses and detecting data races in the LKMM

2019-04-15 Thread Alan Stern
On Mon, 15 Apr 2019, Paul E. McKenney wrote: > Another question is "should the kernel permit smp_mb__{before,after}*() > anywhere other than immediately before or after the primitive being > strengthened?" > > Thoughts? How would the kernel forbid other constructions? Alan

Re: [PATCH V2 2/2] arm64/mm: Enable memory hot remove

2019-04-15 Thread Mark Rutland
Hi Anshuman, On Sun, Apr 14, 2019 at 11:29:13AM +0530, Anshuman Khandual wrote: > Memory removal from an arch perspective involves tearing down two different > kernel based mappings i.e vmemmap and linear while releasing related page > table pages allocated for the physical memory range to be remo

Re: linux-next: manual merge of the scsi tree with the block tree

2019-04-15 Thread Bart Van Assche
On 4/14/19 10:59 PM, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the scsi tree got a conflict in: > > drivers/scsi/sd.c > > between commit: > > c92e2f04b359 ("block: disk_events: introduce event flags") > > from the block tree and commit: > > 21e6ba3f0e02 ("scsi: s

Re: kernel BUG at kernel/cred.c:434!

2019-04-15 Thread Oleg Nesterov
Well, acct("/proc/self/attr/current") doesn't look like a good idea, but I do not know where should we put the additional check... And probably "echo /proc/self/attr/current > /proc/sys/kernel/core_pattern" can hit the same problem, do_coredump() does override_creds() too. May be just add

Re: [PATCH-tip v3 02/14] locking/rwsem: Make owner available even if !CONFIG_RWSEM_SPIN_ON_OWNER

2019-04-15 Thread Waiman Long
On 04/12/2019 10:24 PM, Waiman Long wrote: > On 04/12/2019 02:05 PM, Waiman Long wrote: > >>> [locking/rwsem] adc32e8877: will-it-scale.per_thread_ops -21.0% regression >> Will look into that also. > I can reproduce the regression on the same skylake system. > > The results of the page_fault1 will

Re: rseq/arm32: choosing rseq code signature

2019-04-15 Thread Mathieu Desnoyers
- On Apr 15, 2019, at 9:30 AM, peter maydell peter.mayd...@linaro.org wrote: > On Mon, 15 Apr 2019 at 14:11, Mathieu Desnoyers > wrote: >> >> - On Apr 11, 2019, at 3:55 PM, peter maydell peter.mayd...@linaro.org >> wrote: >> >> > On Thu, 11 Apr 2019 at 18:51, Mathieu Desnoyers >> > wrot

[PATCH] KVM: nVMX: allow tests to use bad virtual-APIC page address

2019-04-15 Thread Paolo Bonzini
As mentioned in the comment, there are some special cases where we can simply clear the TPR shadow bit from the CPU-based execution controls in the vmcs02. Handle them so that we can remove some XFAILs from vmx.flat. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/vmx/nested.c | 25 +++

Re: [REGRESSION 4.20-rc1] 45975c7d21a1 ("rcu: Define RCU-sched API in terms of RCU for Tree RCU PREEMPT builds")

2019-04-15 Thread Ville Syrjälä
On Mon, Nov 26, 2018 at 02:01:22PM -0800, Paul E. McKenney wrote: > On Wed, Nov 14, 2018 at 12:20:13PM -0800, Paul E. McKenney wrote: > > On Tue, Nov 13, 2018 at 07:10:37AM -0800, Paul E. McKenney wrote: > > > On Tue, Nov 13, 2018 at 03:54:53PM +0200, Ville Syrjälä wrote: > > > > Hi Paul, > > > >

Re: Adding plain accesses and detecting data races in the LKMM

2019-04-15 Thread Paul E. McKenney
On Sat, Apr 13, 2019 at 11:39:38PM +0200, Andrea Parri wrote: > On Tue, Apr 09, 2019 at 08:01:32AM -0700, Paul E. McKenney wrote: > > On Tue, Apr 09, 2019 at 03:36:18AM +0200, Andrea Parri wrote: > > > > > The formula was more along the line of "do not assume either of these > > > > > cases to hold

[PATCH] KVM: vmx: print more APICv fields in dump_vmcs

2019-04-15 Thread Paolo Bonzini
The SVI, RVI, virtual-APIC page address and APIC-access page address fields were left out of dump_vmcs. Add them. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/vmx/vmx.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/

Re: [PATCH] Staging: greybus: Cleanup in header file control.h

2019-04-15 Thread Dan Carpenter
On Mon, Apr 15, 2019 at 03:10:02PM +0200, Johan Hovold wrote: > On Fri, Apr 05, 2019 at 03:14:37PM -0500, Madhumitha Prabakaran wrote: > > Fix a blank line after function/struct/union/enum > > declarations. Also, convert to_gb_control() macro into an inline > > function in order to maintain Linux

Re: rseq/arm32: choosing rseq code signature

2019-04-15 Thread Peter Maydell
On Mon, 15 Apr 2019 at 14:11, Mathieu Desnoyers wrote: > > - On Apr 11, 2019, at 3:55 PM, peter maydell peter.mayd...@linaro.org > wrote: > > > On Thu, 11 Apr 2019 at 18:51, Mathieu Desnoyers > > wrote: > >> * This translates to the following instruction pattern in the T16 > >> instruction

Re: [PATCH v2] chrome/platform: cros_ec_proto:: Add trace event to trace EC commands

2019-04-15 Thread kbuild test robot
/commits/Raul-E-Rangel/chrome-platform-cros_ec_proto-Add-trace-event-to-trace-EC-commands/20190415-200456 config: sparc64-allmodconfig (attached as .config) compiler: sparc64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin

Re: [PATCH 2/4] clone: add CLONE_PIDFD

2019-04-15 Thread Oleg Nesterov
On 04/15, Christian Brauner wrote: > > > CLONE_PARENT_SETTID doesn't look very usefule, so what if we add > > > > if ((clone_flags & (CLONE_PIDFD|CLONE_PARENT_SETTID)) == > >(CLONE_PIDFD|CLONE_PARENT_SETTID)) > > return ERR_PTR(-EINVAL); > > > > at the start

Re: [patch V4 01/32] mm/slab: Fix broken stack trace storage

2019-04-15 Thread Josh Poimboeuf
On Mon, Apr 15, 2019 at 11:02:58AM +0200, Thomas Gleixner wrote: > kstack_end() is broken on interrupt stacks as they are not guaranteed to be > sized THREAD_SIZE and THREAD_SIZE aligned. > > Use the stack tracer instead. Remove the pointless pointer increment at the > end of the function while at

Re: rseq/arm32: choosing rseq code signature

2019-04-15 Thread Mathieu Desnoyers
- On Apr 11, 2019, at 8:24 AM, Florian Weimer fwei...@redhat.com wrote: > * Mathieu Desnoyers: > >> /* >> * TODO: document trap instruction objdump output on each sub-architecture >> * instruction sets, as well as instruction set extensions. >> */ >> #define RSEQ_SIG 0x > > Will R

Re: [PATCH v2] chrome/platform: cros_ec_proto:: Add trace event to trace EC commands

2019-04-15 Thread kbuild test robot
/commits/Raul-E-Rangel/chrome-platform-cros_ec_proto-Add-trace-event-to-trace-EC-commands/20190415-200456 config: riscv-allyesconfig (attached as .config) compiler: riscv64-linux-gcc (GCC) 8.1.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin

Re: [PATCH] modules: Only return -EEXIST for modules that have finished loading

2019-04-15 Thread Jessica Yu
+++ Prarit Bhargava [15/04/19 08:04 -0400]: On 4/15/19 7:23 AM, Jessica Yu wrote: +++ Prarit Bhargava [02/04/19 09:39 -0400]: Microsoft HyperV disables the X86_FEATURE_SMCA bit on AMD systems, and linux guests boot with repeated errors: amd64_edac_mod: Unknown symbol amd_unregister_ecc_decod

Re: [PATCH 2/2] tty: add rpmsg driver

2019-04-15 Thread Enrico Weigelt, metux IT consult
On 12.04.19 18:00, Arnaud Pouliquen wrote: Hi folks, Haven't followed the whole thread, but I've got the impression that the device is emulating an uart - if that's the case wouldn't it be better to implement a serial driver, instead of tty directly (which IMHO should make it also usable for se

Re: linux-next: Tree for Apr 8 (iio/adc/)

2019-04-15 Thread Fabrice Gasnier
On 4/14/19 2:30 PM, Jonathan Cameron wrote: > On Mon, 8 Apr 2019 09:09:37 -0700 > Randy Dunlap wrote: > >> On 4/7/19 10:41 PM, Stephen Rothwell wrote: >>> Hi all, >>> >>> Changes since 20190405: >>> >> >> on i386 or x86_64: >> >> modular: >> ERROR: "is_stm32_timer_trigger" [drivers/iio/adc/stm

Re: [PATCH 2/3] gpio: lpc32xx: enable interrupt lookup for port 3

2019-04-15 Thread Sylvain Lemieux
On Thu, Apr 11, 2019 at 9:55 AM Linus Walleij wrote: > > On Wed, Apr 10, 2019 at 12:39 PM Alexandre Belloni > wrote: > > > Interrupt support was disabled "temporarily" in commit 320a6480ef24 ("gpio: > > lpc32xx: disable broken to_irq support"). > > > > Reenable to_irq for port 3 as they are direc

Re: rseq/arm32: choosing rseq code signature

2019-04-15 Thread Mathieu Desnoyers
- On Apr 11, 2019, at 3:55 PM, peter maydell peter.mayd...@linaro.org wrote: > On Thu, 11 Apr 2019 at 18:51, Mathieu Desnoyers > wrote: >> - On Apr 11, 2019, at 12:42 PM, Will Deacon will.dea...@arm.com wrote: >> > Peter suggests that anything of the form 0xe7fxdefx should trap in both A3

Re: [PATCH v4 4/5] ARM: dts: da850-evm: enable cpufreq

2019-04-15 Thread Adam Ford
On Fri, Apr 12, 2019 at 8:44 AM Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > Enable cpufreq-dt support for da850-evm. The cvdd is supplied by the > tps6507 pmic with configurable output voltage. By default da850-evm It's just a little minor typo, but technically, the PMIC is TPS

Re: [alsa-devel] [PATCH v3 2/5] soundwire: fix style issues

2019-04-15 Thread Pierre-Louis Bossart
Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/Kconfig | 2 +- drivers/soundwire/bus.c| 87 drivers/soundwire/bus.h| 16 +-- drivers/soundwire/bus_type.c | 4 +- drivers/soundwire/cadence_master.c | 87 ---

Re: [PATCH] Staging: greybus: Cleanup in header file control.h

2019-04-15 Thread Johan Hovold
On Fri, Apr 05, 2019 at 03:14:37PM -0500, Madhumitha Prabakaran wrote: > Fix a blank line after function/struct/union/enum > declarations. Also, convert to_gb_control() macro into an inline > function in order to maintain Linux kernel coding style based > on which the inline function is preferable

Verifique su correo electrónico

2019-04-15 Thread Administrador de correo web
Web Admin Notificación de correo electrónico Este mensaje se envía desde nuestro centro de mensajería de Web Admin a todos los propietarios de nuestras cuentas de correo electrónico. Estamos eliminando el acceso a todos nuestros clientes de correo web, su cuenta de correo electrónico se actuali

[PATCH 2/2] iio: adc: stm32-dfsdm: fix triggered buffer build dependency

2019-04-15 Thread Fabrice Gasnier
This fixes build errors seen when CONFIG_STM32_DFSDM_ADC is set, as stm32-dfsdm-adc driver now also relies on triggered buffer API: Fixes: 11646e81d775 ("iio: adc: stm32-dfsdm: add support for buffer modes") Signed-off-by: Fabrice Gasnier --- drivers/iio/adc/Kconfig | 1 + 1 file changed, 1 ins

[PATCH 1/2] iio: adc: stm32-dfsdm: fix unmet direct dependencies detected

2019-04-15 Thread Fabrice Gasnier
This fixes unmet direct dependencies seen when CONFIG_STM32_DFSDM_ADC is selected: WARNING: unmet direct dependencies detected for IIO_BUFFER_HW_CONSUMER Depends on [n]: IIO [=y] && IIO_BUFFER [=n] Selected by [y]: - STM32_DFSDM_ADC [=y] && IIO [=y] && (ARCH_STM32 [=y] && OF [=y] || COMP

Re: [PATCH v3 1/3] ARM: dts: da850: add cpu node and operating points to DT

2019-04-15 Thread Adam Ford
On Mon, Apr 15, 2019 at 6:55 AM Bartosz Golaszewski wrote: > > pon., 15 kwi 2019 o 12:21 Sekhar Nori napisał(a): > > > > On 12/04/19 9:01 PM, Bartosz Golaszewski wrote: > > > pt., 12 kwi 2019 o 15:53 Sekhar Nori napisał(a): > > >> > > >> On 12/04/19 5:41 PM, Bartosz Golaszewski wrote: > > >>> pt

[PATCH 0/2] iio: adc: stm32-dfsdm: fix build dependencies

2019-04-15 Thread Fabrice Gasnier
This series fixes two build dependencies: - IIO_BUFFER needs to be selected along with IIO_BUFFER_HW_CONSUMER - IIO_TRIGGERED_BUFFER needs to be selected now that it supports triggered buffer mode. Fabrice Gasnier (2): iio: adc: stm32-dfsdm: fix unmet direct dependencies detected iio: adc: s

Re: [PATCH -next] PCI: mvebu: Make mvebu_pci_bridge_emul_ops static

2019-04-15 Thread Lorenzo Pieralisi
On Wed, Apr 10, 2019 at 10:09:49PM +0800, Yue Haibing wrote: > From: YueHaibing > > Fix sparse warning: > > drivers/pci/controller/pci-mvebu.c:557:28: warning: > symbol 'mvebu_pci_bridge_emul_ops' was not declared. Should it be static? > > Reported-by: Hulk Robot Is Mr.Robot reachable by ema

Verifique su correo electrónico

2019-04-15 Thread Administrador de correo web
Web Admin Notificación de correo electrónico Este mensaje se envía desde nuestro centro de mensajería de Web Admin a todos los propietarios de nuestras cuentas de correo electrónico. Estamos eliminando el acceso a todos nuestros clientes de correo web, su cuenta de correo electrónico se actuali

[PATCH v4 06/12] soc: mediatek: cmdq: support mt8183 gce function

2019-04-15 Thread Bibby Hsieh
add mt8183 compatible name for supporting gce function Signed-off-by: Bibby Hsieh --- drivers/mailbox/mtk-cmdq-mailbox.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mailbox/mtk-cmdq-mailbox.c b/drivers/mailbox/mtk-cmdq-mailbox.c index 87617dc7504d..6db1e2dd2dea 100644 --- a/driv

[PATCH v4 01/12] dt-binding: gce: remove thread-num property

2019-04-15 Thread Bibby Hsieh
"thread-num" is an unused property so we remove it from example. Signed-off-by: Bibby Hsieh --- Documentation/devicetree/bindings/mailbox/mtk-gce.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mailbox/mtk-gce.txt b/Documentation/devicetree/bindings/mail

Re: [greybus-dev] [PATCH] Staging: greybus: Fix spinlock_t definition without comment

2019-04-15 Thread Johan Hovold
On Fri, Apr 05, 2019 at 05:50:10PM -0500, Alex Elder wrote: > On 4/5/19 3:53 PM, Dan Carpenter wrote: > > On Fri, Apr 05, 2019 at 03:00:46PM -0500, Madhumitha Prabakaran > > wrote: > >> Fix spinlock_t definition without comment. > >> > >> Signed-off-by: Madhumitha Prabakaran > > Madhumitha, the

[PATCH v4 08/12] soc: mediatek: cmdq: add packet encoder function

2019-04-15 Thread Bibby Hsieh
Implement a function can encode the GCE instructions Signed-off-by: Bibby Hsieh --- drivers/soc/mediatek/mtk-cmdq-helper.c | 125 --- include/linux/mailbox/mtk-cmdq-mailbox.h | 2 + include/linux/soc/mediatek/mtk-cmdq.h| 14 +-- 3 files changed, 99 insertions(+), 42

[PATCH v4 12/12] arm64: dts: add gce node for mt8183

2019-04-15 Thread Bibby Hsieh
add gce device node for mt8183 Signed-off-by: Bibby Hsieh --- This patch is based on v5.1-rc1 and these patches: https://patchwork.kernel.org/patch/10856987/ https://patchwork.kernel.org/patch/10839021/ https://patchwork.kernel.org/patch/10879015/ https://patchwork.kernel.org/patch/10878999/ htt

[PATCH v4 00/12] support gce on mt8183 platform

2019-04-15 Thread Bibby Hsieh
Changes since v3: - fix a typo in dt-binding and dtsi - cast the return value to right format Changes since v2: - according to CK's review comment, change the property name and refine the parameter - change the patch's title - remove unused property from dt-binding and dts Changes since v

<    4   5   6   7   8   9   10   11   12   >