[PATCH v2 2/2] mmc: sdhci-of-dwcmshc: add SDHCI OF Synopsys DWC MSHC driver

2018-07-06 Thread Jisheng Zhang
Add a driver for SDHCI OF Synopsys DesignWare Cores Mobile Storage Signed-off-by: Jisheng Zhang --- drivers/mmc/host/Kconfig| 11 +++ drivers/mmc/host/Makefile | 1 + drivers/mmc/host/sdhci-of-dwcmshc.c | 116 3 files changed, 128

Re: [PATCH] fs, elf: Make sure to page align bss in load_elf_library

2018-07-06 Thread Oscar Salvador
On Thu, Jul 05, 2018 at 08:44:18AM -0700, Kees Cook wrote: > On Thu, Jul 5, 2018 at 7:55 AM, wrote: > > From: Oscar Salvador > > > > The current code does not make sure to page align bss before calling > > vm_brk(), and this can lead to a VM_BUG_ON() in __mm_populate() > > due to the requested

Re: [PATCH] arm64: dts: rockchip: corrected uart1 clock-names for rk3328

2018-07-06 Thread Heiko Stuebner
Hi Huibin, Am Freitag, 6. Juli 2018, 10:03:57 CEST schrieb Huibin Hong: > Corrected the uart clock-names or the uart driver might fail. > > Signed-off-by: Huibin Hong thanks for catching that issue. I've added a Fixes-tag and a stable-cc and applied the patch for 4.19 Thanks Heiko

RE: [PATCH 1/1] X86/Hyper-V:: Fix the circular dependency in IPI enlightenment.

2018-07-06 Thread Thomas Gleixner
On Fri, 6 Jul 2018, KY Srinivasan wrote: > > > > The problem is that the wreckage is in Linus tree and needs to be fixed > > there, i.e. via x86/urgent. > > > > Now we have the new bits queued in x86/hyperv already which collide. So > > we > > need to merge x86/urgent into x86/hyperv after

Re: [PATCH/RFC] ARM: dts: r8a7791: Move enable-method to CPU nodes

2018-07-06 Thread Geert Uytterhoeven
On Wed, May 23, 2018 at 10:50 AM Geert Uytterhoeven wrote: > On Wed, May 23, 2018 at 10:37 AM, Simon Horman wrote: > > On Tue, May 22, 2018 at 03:29:25PM +0200, Geert Uytterhoeven wrote: > >> According to Documentation/devicetree/bindings/arm/cpus.txt, the > >> "enable-method" property should be

[RESEND PATCH v10 5/6] mm/memblock: introduce pfn_valid_region()

2018-07-06 Thread Jia He
From: Jia He Commit b92df1de5d28 ("mm: page_alloc: skip over regions of invalid pfns where possible") optimized the loop in memmap_init_zone(). But there is still some room for improvement. E.g. in early_pfn_valid(), we can record the last returned memblock region. If current pfn and last pfn

[RESEND PATCH v10 4/6] mm/memblock: introduce memblock_search_pfn_regions()

2018-07-06 Thread Jia He
This helper is to find the memory region index of input pfn. Signed-off-by: Jia He --- include/linux/memblock.h | 2 ++ mm/memblock.c| 9 + 2 files changed, 11 insertions(+) diff --git a/include/linux/memblock.h b/include/linux/memblock.h index ca59883..b0f0307 100644 ---

[RESEND PATCH v10 3/6] mm: page_alloc: reduce unnecessary binary search in memblock_next_valid_pfn()

2018-07-06 Thread Jia He
From: Jia He Commit b92df1de5d28 ("mm: page_alloc: skip over regions of invalid pfns where possible") optimized the loop in memmap_init_zone(). But there is still some room for improvement. E.g. if pfn and pfn+1 are in the same memblock region, we can simply pfn++ instead of doing the binary

[RESEND PATCH v10 2/6] mm: page_alloc: remain memblock_next_valid_pfn() on arm/arm64

2018-07-06 Thread Jia He
From: Jia He Commit b92df1de5d28 ("mm: page_alloc: skip over regions of invalid pfns where possible") optimized the loop in memmap_init_zone(). But it causes possible panic bug. So Daniel Vacek reverted it later. But as suggested by Daniel Vacek, it is fine to using memblock to skip gaps and

[RESEND PATCH v10 1/6] arm: arm64: introduce CONFIG_HAVE_MEMBLOCK_PFN_VALID

2018-07-06 Thread Jia He
Make CONFIG_HAVE_MEMBLOCK_PFN_VALID a new config option so it can move memblock_next_valid_pfn to generic code file. All the latter optimizations are based on this config. The memblock initialization time on arm/arm64 can benefit from this. Signed-off-by: Jia He Reviewed-by: Pavel Tatashin ---

[RESEND PATCH v10 0/6] optimize memblock_next_valid_pfn and early_pfn_valid on arm and arm64

2018-07-06 Thread Jia He
Commit b92df1de5d28 ("mm: page_alloc: skip over regions of invalid pfns where possible") optimized the loop in memmap_init_zone(). But it causes possible panic bug. So Daniel Vacek reverted it later. But as suggested by Daniel Vacek, it is fine to using memblock to skip gaps and finding next

Re: [PATCH 07/11] cpufreq/schedutil: take into account interrupt

2018-07-06 Thread Peter Zijlstra
On Fri, Jul 06, 2018 at 11:30:33AM +0530, Viresh Kumar wrote: > On 28-06-18, 17:45, Vincent Guittot wrote: > > The time spent under interrupt can be significant but it is not reflected > > in the utilization of CPU when deciding to choose an OPP. Now that we have > > access to this metric,

[PATCH] ARM: qcom_defconfig: Enable QCOM NAND related configs

2018-07-06 Thread Abhishek Sahu
IPQ8064 and IPQ4019 boards contain NAND flash memory for which these configs need to be enabled. Signed-off-by: Abhishek Sahu --- arch/arm/configs/qcom_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/qcom_defconfig b/arch/arm/configs/qcom_defconfig index

Re: [PATCHv4 00/12] sched/fair: Migrate 'misfit' tasks on asymmetric capacity systems

2018-07-06 Thread Vincent Guittot
Hi Morten, On Wed, 4 Jul 2018 at 12:18, Morten Rasmussen wrote: > > On asymmetric cpu capacity systems (e.g. Arm big.LITTLE) it is crucial > for performance that cpu intensive tasks are aggressively migrated to > high capacity cpus as soon as those become available. The capacity > awareness

Re: [RFC PATCH v4 12/12] OPTIONAL: cpufreq: dt: Register an Energy Model

2018-07-06 Thread Quentin Perret
On Friday 06 Jul 2018 at 12:10:02 (+0200), Vincent Guittot wrote: > On Thu, 28 Jun 2018 at 13:41, Quentin Perret wrote: > > +static int of_est_power(unsigned long *mW, unsigned long *KHz, int cpu) > > +{ > > + unsigned long mV, Hz, MHz; > > + struct device *cpu_dev; > > + struct

Re: [PATCHv4 12/12] sched/core: Disable SD_PREFER_SIBLING on asymmetric cpu capacity domains

2018-07-06 Thread Vincent Guittot
On Wed, 4 Jul 2018 at 12:18, Morten Rasmussen wrote: > > The 'prefer sibling' sched_domain flag is intended to encourage > spreading tasks to sibling sched_domain to take advantage of more caches > and core for SMT systems. It has recently been changed to be on all > non-NUMA topology level.

Re: [PATCH v4 4/6] bus: ti-sysc: Add support for software reset

2018-07-06 Thread Tony Lindgren
* Faiz Abbas [180706 10:05]: > Hi, > > On Thursday 05 July 2018 09:17 PM, Tony Lindgren wrote: > > * Faiz Abbas [180705 14:24]: > >> +static int sysc_reset(struct sysc *ddata) > >> +{ > >> + int offset = ddata->offsets[SYSC_SYSCONFIG]; > >> + int val = sysc_read(ddata, offset); > > > > Can

Re: 4.17.x won't boot due to "x86/boot/compressed/64: Handle 5-level paging boot if kernel is above 4G"

2018-07-06 Thread Kirill A. Shutemov
On Fri, Jul 06, 2018 at 03:37:58PM +0900, Masahiro Yamada wrote: > >> > > Also see https://bugzilla.kernel.org/show_bug.cgi?id=200385 , > >> > > > >> > > 0a1756bd2897951c03c1cb671bdfd40729ac2177 is acting up > >> > > too with the same symptoms > >> > > >> > I tracked it down to -flto in LDFLAGS.

Re: [REGRESSION 4.17] Spurious wakeup / reboot with power button

2018-07-06 Thread Rafael J. Wysocki
On Fri, Jul 6, 2018 at 1:12 PM, Thomas Hänig wrote: > Am 06.07.2018 um 08:55 schrieb Takashi Iwai: >> On Fri, 06 Jul 2018 07:18:36 +0200, >> Thomas H4nig wrote: >>> >>> >>> >>> Am 05.07.2018 um 18:56 schrieb Takashi Iwai: On Thu, 05 Jul 2018 18:02:11 +0200, Rafael J. Wysocki wrote:

Re: [RFC PATCH v4 08/12] sched: Add over-utilization/tipping point indicator

2018-07-06 Thread Peter Zijlstra
On Thu, Jun 28, 2018 at 12:40:39PM +0100, Quentin Perret wrote: > @@ -698,6 +698,9 @@ struct root_domain { > /* Indicate more than one runnable task for any CPU */ > booloverload; While there, make that an int. > + /* Indicate one or more cpus over-utilized

Re: [PATCH] EDAC, thunderx: Remove VLA usage

2018-07-06 Thread Jan Glauber
On Fri, Jun 29, 2018 at 11:48:50AM -0700, Kees Cook wrote: > In the quest to remove all stack VLA usage from the kernel[1], this > switches to using a kmalloc-allocated buffer instead of stack space. > This should be fine since the existing routine is allocating memory > too. > > [1] >

Re: [PATCH V2 11/19] csky: Atomic operations

2018-07-06 Thread Peter Zijlstra
On Fri, Jul 06, 2018 at 07:01:31PM +0800, Guo Ren wrote: > On Thu, Jul 05, 2018 at 07:50:59PM +0200, Peter Zijlstra wrote: > > What's the memory ordering rules for your LDEX/STEX ? > Every CPU has a local exclusive monitor. > > "Ldex rz, (rx, #off)" will add an entry into the local monitor, and

Re: [REGRESSION 4.17] Spurious wakeup / reboot with power button

2018-07-06 Thread Rafael J. Wysocki
On Friday, July 6, 2018 1:21:50 PM CEST Rafael J. Wysocki wrote: > On Fri, Jul 6, 2018 at 1:12 PM, Thomas Hänig wrote: [cut] > So the latest patch: > > https://patchwork.kernel.org/patch/10511211/ > > should work for you (please verify) and the change in > drivers/acpi/sleep.c in it most

Re: [RFC PATCH] watchdog: sp805: Add clock-frequency property

2018-07-06 Thread Srinath Mannam
Hi Guenter, Thank you very much for your feedback. Please find my comments. On Thu, Jul 5, 2018 at 8:58 PM, Guenter Roeck wrote: > On 07/04/2018 08:22 PM, Srinath Mannam wrote: >> >> When using ACPI node, binding clock devices are >> not available as device tree, So clock-frequency >> property

[RFC PATCH 2/2] mm/pmem: Add memblock based e820 platform driver

2018-07-06 Thread Aneesh Kumar K.V
This patch steal system RAM and use that to emulate pmem device using the e820 platform driver. This adds a new kernel command line 'pmemmap' which takes the format to allocate memory early in the boot. This memory is later registered as persistent memory range. Based on original patch from

[RFC PATCH 1/2] mm/nvidmm: Drop x86 dependency on nvdimm e820 device

2018-07-06 Thread Aneesh Kumar K.V
This patch adds new Kconfig variable PMEM_PLATFORM_DEVICE and use that to select the nvdimm e820 device. The x86 config is now named X86_PMEM_LEGACY_DEVICE. Not-Signed-off-by: Aneesh Kumar K.V --- arch/x86/Kconfig | 5 + arch/x86/include/asm/e820/types.h | 2 +-

Re: [PATCH v3 3/5] arm64/mm: Create initial page tables in init_pg_dir

2018-07-06 Thread James Morse
Hi Jun, On 02/07/18 12:16, Jun Yao wrote: > Create initial page tables in init_pg_dir and then create final > page tables in swapper_pg_dir directly. This is what the patch does, but doesn't preserve the why for the git-log. Could you expand it to describe why we're doing this. The series so

Re: [PATCH v3 4/5] arm64/mm: Make swapper_pg_dir smaller

2018-07-06 Thread James Morse
Hi Jun, On 02/07/18 12:16, Jun Yao wrote: > Make swapper_pg_dir smaller so we don't need to memblock_free() it. Patch looks good, but could the commit message explain why its now safe to do this? Thanks, James > diff --git a/arch/arm64/kernel/vmlinux.lds.S b/arch/arm64/kernel/vmlinux.lds.S

Re: [PATCH v2] time: Fix sleeptime injection for non-stop clocksource & persistent clock

2018-07-06 Thread Thomas Gleixner
On Fri, 6 Jul 2018, Mukesh Ojha wrote: > Hi Thomas, > > Could you raise a formal patch on this as you are the author now? I'm short of cycles ATM. Feel free to pick it up and write a nice changelog. Just add Originally-by: Thomas Gleixner Thanks, tglx

Re: [PATCH] kbuild: document the KBUILD_KCONFIG env. variable

2018-07-06 Thread Cao jin
On 07/05/2018 10:47 AM, Randy Dunlap wrote: > From: Randy Dunlap > > Add usage info for the Kbuild environment variable KBUILD_KCONFIG. > > Signed-off-by: Randy Dunlap I can recall this variable does take me a little while to find out its meaning during my earliest time in kbuild, so,

Re: [PATCH v7 00/11] track CPU utilization

2018-07-06 Thread Peter Zijlstra
On Fri, Jul 06, 2018 at 11:35:22AM +0530, Viresh Kumar wrote: > On 05-07-18, 14:36, Peter Zijlstra wrote: > > +/* > > + * This function computes an effective utilization for the given CPU, to be > > + * used for frequency selection given the linear relation: f = u * f_max. > > + * > > + * The

Re: [PATCH v12 04/11] kvm/x86: remove kvm memblock dependency

2018-07-06 Thread Paolo Bonzini
On 06/07/2018 11:24, Thomas Gleixner wrote: >> The reason for this is to avoid wasting a lot of BSS memory when KVM is >> not in use. Thomas is going to send his take on this! > Got it working with per cpu variables, but there is a different subtle > issue with that. > > The pvclock data is

Re: [PATCH] Bluetooth: Add a new Realtek 8723DE ID 0bda:b009

2018-07-06 Thread Marcel Holtmann
Hi Jian-Hong, > Without this patch we cannot turn on the Bluethooth adapter on HP > 14-bs007la. > > T: Bus=01 Lev=02 Prnt=03 Port=00 Cnt=01 Dev#= 4 Spd=12 MxCh= 0 > D: Ver= 1.10 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs= 1 > P: Vendor=0bda ProdID=b009 Rev= 2.00 > S: Manufacturer=Realtek

[PATCH] arm64: dts: rockchip: corrected uart1 clock-names for rk3328

2018-07-06 Thread Huibin Hong
Corrected the uart clock-names or the uart driver might fail. Signed-off-by: Huibin Hong --- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi b/arch/arm64/boot/dts/rockchip/rk3328.dtsi index

Re: [RFC] a question about reuse hwpoison page in soft_offline_page()

2018-07-06 Thread Naoya Horiguchi
On Fri, Jul 06, 2018 at 11:37:41AM +0800, 裘稀石(稀石) wrote: > This patch add05cec > (mm: soft-offline: don't free target page in successful page migration) > removes > set_migratetype_isolate() and unset_migratetype_isolate() in soft_offline_page > (). > > And this patch 243abd5b > (mm: hugetlb:

Re: [PATCH v3 2/5] arm64/mm: Make __enable_mmu() take the ttbr1 page as an argument

2018-07-06 Thread James Morse
Hi Jun, On 02/07/18 12:16, Jun Yao wrote: > Make __enable_mmu() take the physical address of the ttbr1 page as > an argument. > diff --git a/arch/arm64/kernel/head.S b/arch/arm64/kernel/head.S > index 3f99c59ba193..a1c7a4d3b9f3 100644 > --- a/arch/arm64/kernel/head.S > +++

Re: [PATCH v6 00/11] Add MSI-X support on pcitest tool

2018-07-06 Thread Gustavo Pimentel
Hi, Just a gentle reminder. Thanks. On 21/06/2018 17:01, Gustavo Pimentel wrote: > Patch series made against Lorenzo's master branch. > > Add MSI-X support on pcitest tool. > > Add new callbacks methods and handlers to trigger the MSI-X interrupts > on the EP DesignWare IP driver. > > Allow

Re: [PATCH v3 1/5] arm64/mm: Introduce init_pg_dir

2018-07-06 Thread James Morse
Hi Jun, On 02/07/18 12:16, Jun Yao wrote: > Add init_pg_dir to vmlinux.lds.S and boiler-plate > clearing/cleaning/invalidating it in head.S. With just this patch I get a weird link error from ld[0]: aarch64-linux-gnu-ld:./arch/arm64/kernel/vmlinux.lds:90 cannot move location counter backwards

[RESEND PATCH v10 6/6] mm: page_alloc: reduce unnecessary binary search in early_pfn_valid()

2018-07-06 Thread Jia He
Commit b92df1de5d28 ("mm: page_alloc: skip over regions of invalid pfns where possible") optimized the loop in memmap_init_zone(). But there is still some room for improvement. E.g. in early_pfn_valid(), if pfn and pfn+1 are in the same memblock region, we can record the last returned memblock

Mrs Nicole Benoite Marois.

2018-07-06 Thread Mrs Nicole Benoite Marois
Dear Beloved, I am Mrs Nicole Benoite Marois and i have been suffering from ovarian cancer disease and the doctor says that i have just few days to leave. I am from (Paris) France but based in Africa Burkina Faso since eight years ago as a business woman dealing with gold exportation. Now that i

Re: [PATCH] ARM64: dts: meson-axg: add the audio clock controller

2018-07-06 Thread kbuild test robot
Hi Jerome, I love your patch! Yet something to improve: [auto build test ERROR on v4.18-rc3] [also build test ERROR on next-20180705] [cannot apply to robh/for-next] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH 1/3] rhashtable: further improve stability of rhashtable_walk

2018-07-06 Thread kbuild test robot
Hi NeilBrown, Thank you for the patch! Yet something to improve: [auto build test ERROR on net-next/master] [also build test ERROR on next-20180706] [cannot apply to linus/master linux-sof-driver/master v4.18-rc3] [if your patch is applied to the wrong git tree, please drop us a note to help

Re: [PATCH 2/2] tools/memory-model: Add write ordering by release-acquire and by locks

2018-07-06 Thread Will Deacon
On Thu, Jul 05, 2018 at 09:56:02AM -0700, Paul E. McKenney wrote: > On Thu, Jul 05, 2018 at 05:22:26PM +0100, Will Deacon wrote: > > On Thu, Jul 05, 2018 at 08:44:39AM -0700, Daniel Lustig wrote: > > > On 7/5/2018 8:31 AM, Paul E. McKenney wrote: > > > > On Thu, Jul 05, 2018 at 10:21:36AM -0400,

Re: [RFC PATCH v4 03/12] PM: Introduce an Energy Model management framework

2018-07-06 Thread Quentin Perret
On Friday 06 Jul 2018 at 12:03:53 (+0200), Peter Zijlstra wrote: > On Fri, Jul 06, 2018 at 11:57:37AM +0200, Vincent Guittot wrote: > > > > IIUC the formula above, you consider that all CPUs in a frequency > > domain has the same capacity. This sounds a reasonable assumption but > > it would be

Sitio web

2018-07-06 Thread David Carreras
Estimados/as señores/as: Tras realizar un análisis previo de tu página web hemos descubierto errores en el código que influyen de manera significativa en la baja posición de tu página en buscadores, incluido Googl Les proponemos la optimización de su página web sin necesidad de contrato, de

[PATCH] uts: Don't randomize "struct uts_namespace".

2018-07-06 Thread Tetsuo Handa
I noticed that makedumpfile utility is failing to check kernel version, for it depends on offset of "struct uts_namespace"->name being sizeof(int). -- int check_release(void) { unsigned long utsname; /* * Get the kernel version. */ if

Re: [RFC PATCH v4 12/12] OPTIONAL: cpufreq: dt: Register an Energy Model

2018-07-06 Thread Vincent Guittot
On Thu, 28 Jun 2018 at 13:41, Quentin Perret wrote: > > *** > * This patch illustrates the usage of the newly introduced Energy * > * Model framework and isn't supposed to be merged as-is. * >

Re: [PATCH v12 04/11] kvm/x86: remove kvm memblock dependency

2018-07-06 Thread Paolo Bonzini
On 06/07/2018 11:45, Thomas Gleixner wrote: >> One possibility is to introduce another layer of indirection: in >> addition to the percpu pvclock data, add a percpu pointer to the pvclock >> data and initialize it to point to a page-aligned variable in BSS. CPU0 >> (used by vDSO) doesn't touch

Re: [PATCH v10 1/2] mfd: bd71837: mfd driver for ROHM BD71837 PMIC

2018-07-06 Thread Lee Jones
On Fri, 06 Jul 2018, Matti Vaittinen wrote: > On Fri, Jul 06, 2018 at 07:09:13AM +0100, Lee Jones wrote: > > [snip] > ' > > page trying to find your response was a little painful. TIA. > > Acronyms can be confusing for non native english speakers like me. > Luckily we have the internet =) > >

Re: [PATCH V2 16/19] csky: SMP support

2018-07-06 Thread Guo Ren
On Fri, Jul 06, 2018 at 06:24:33AM +0100, Mark Rutland wrote: > > + if (cpu >= NR_CPUS) > > + goto error; > > + > > + if (of_property_read_string(node, "status", )) > > + status = "enable"; > > + > > + if (strcmp(status, "disable") == 0) > > + goto error; > >

Re: [PATCH] power: reset: zx-reboot: put device node in zx_reboot_probe()

2018-07-06 Thread Sebastian Reichel
Hi, On Sun, Jun 03, 2018 at 01:22:05AM +0300, Alexey Khoroshilov wrote: > zx_reboot_probe() increments refcnt of zx296702-pcu device node by > of_find_compatible_node() and leaves it undecremented on both > successful and error paths. > > Found by Linux Driver Verification project

Re: [PATCH] power: supply: max1721x: fix spelling mistake "RSenese" -> "RSense"

2018-07-06 Thread Sebastian Reichel
Hi, On Sat, May 26, 2018 at 02:56:06PM +0100, Colin King wrote: > From: Colin Ian King > > Trivial fix to spelling mistake in dev_warn message text > > Signed-off-by: Colin Ian King > --- Thanks, queued to power-supply-next. -- Sebastian signature.asc Description: PGP signature

Re: [RFC PATCH v4 08/12] sched: Add over-utilization/tipping point indicator

2018-07-06 Thread Peter Zijlstra
On Thu, Jun 28, 2018 at 12:40:39PM +0100, Quentin Perret wrote: > @@ -5384,6 +5402,7 @@ enqueue_task_fair(struct rq *rq, struct task_struct *p, > int flags) > { > struct cfs_rq *cfs_rq; > struct sched_entity *se = >se; > + int task_new = !(flags & ENQUEUE_WAKEUP); > > /*

Re: [PATCH] power: supply: tps65217: Switch to SPDX identifier.

2018-07-06 Thread Sebastian Reichel
Hi, On Tue, Jun 05, 2018 at 12:00:21PM +0200, Enric Balletbo i Serra wrote: > Adopt the SPDX license identifier headers to ease license compliance > management. > > Signed-off-by: Enric Balletbo i Serra > --- Thanks, queued to power-supply-next. -- Sebastian signature.asc Description: PGP

[PATCH] fs/dax: remove unused function

2018-07-06 Thread Anders Roxell
When CONFIG_FS_DAX is enabled we get this warning: fs/dax.c:106:14: warning: ‘dax_make_page_entry’ defined but not used [-Wunused-function] static void *dax_make_page_entry(struct page *page, void *entry) ^~~ Remove the unused function. Fixes: 9bfcbe5ef12f ("dax:

Re: [PATCH V2 11/19] csky: Atomic operations

2018-07-06 Thread Peter Zijlstra
On Fri, Jul 06, 2018 at 07:44:03PM +0800, Guo Ren wrote: > On Thu, Jul 05, 2018 at 07:59:02PM +0200, Peter Zijlstra wrote: > > On Mon, Jul 02, 2018 at 01:30:14AM +0800, Guo Ren wrote: > > > > > +static inline void arch_spin_lock(arch_spinlock_t *lock) > > > +{ > > > + unsigned int *p = >lock; > >

Re: [PATCH V2 11/19] csky: Atomic operations

2018-07-06 Thread Peter Zijlstra
On Fri, Jul 06, 2018 at 01:56:14PM +0200, Peter Zijlstra wrote: > > But I couldn't undertand what's wrong without the 1th smp_mb()? > > 1th smp_mb will make all ld/st finish before ldex.w. Is it necessary? > > Yes. > > CPU0CPU1 > > r1 = READ_ONCE(x);

[PATCH v2 0/2] mmc: add SDHCI OF Synopsys DWC MSHC dirver

2018-07-06 Thread Jisheng Zhang
Add support for Synopsys SDHCI compatible DesignWare Cores Mobile Storage Host Controller which can support eMMC/SD/SDIO. Since v1: - move the dt bindings into a separate patch Jisheng Zhang (2): dt: bindings: Add bindings for SDHCI Synopsys DWC MSHC mmc: sdhci-of-dwcmshc: add SDHCI OF

[PATCH 1/5] mtd: rawnand: qcom: remove driver specific bad block check function

2018-07-06 Thread Abhishek Sahu
The QCOM NAND controller skips the bad block bytes when reading with ECC enabled. The NAND base layer invokes ->read_oob() function for bad block check which expects the BBM bytes to be copied at badblockpos offset in OOB buffer. When initial support for this driver was added, the driver specific

[PATCH 5/5] mtd: rawnand: qcom: reorganization by removing read/write helpers

2018-07-06 Thread Abhishek Sahu
Driver does not send the commands to NAND device for page read/write operations in ->cmdfunc(). It just does some minor variable initialization and rest of the things are being done in actual ->read/write_oob[_raw]. The generic helper function calls for invoking commands during page read/write

[PATCH 4/5] mtd: rawnand: qcom: update BBT related flags

2018-07-06 Thread Abhishek Sahu
Remove the NAND_SKIP_BBTSCAN to use RAM based BBT. Flash based BBT is not used since bootloaders doesn't have support for the same. Signed-off-by: Abhishek Sahu --- drivers/mtd/nand/raw/qcom_nandc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

Re: [PATCH v7 3/4] phy: Add QMP phy based UFS phy support for sdm845

2018-07-06 Thread cang
On 2018-06-28 04:17, Evan Green wrote: On Tue, Jun 19, 2018 at 1:38 AM Can Guo wrote: Add UFS PHY support to make SDM845 UFS work with common PHY framework. Signed-off-by: Can Guo --- drivers/phy/qualcomm/phy-qcom-qmp.c | 173 +++-

Re: [PATCH v2 2/3] perf arm64: Generate system call table from asm/unistd.h

2018-07-06 Thread Hendrik Brueckner
Hi Kim, On Thu, Jul 05, 2018 at 06:12:16PM -0500, Kim Phillips wrote: > This should speed up accessing new system calls introduced with the > kernel rather than waiting for libaudit updates to include them. > > Using the existing other arch scripts resulted in this error: > >

[PATCH v10 2/6] mm: page_alloc: remain memblock_next_valid_pfn() on arm/arm64

2018-07-06 Thread Jia He
From: Jia He Commit b92df1de5d28 ("mm: page_alloc: skip over regions of invalid pfns where possible") optimized the loop in memmap_init_zone(). But it causes possible panic bug. So Daniel Vacek reverted it later. But as suggested by Daniel Vacek, it is fine to using memblock to skip gaps and

[PATCH v10 1/6] arm: arm64: introduce CONFIG_HAVE_MEMBLOCK_PFN_VALID

2018-07-06 Thread Jia He
Make CONFIG_HAVE_MEMBLOCK_PFN_VALID a new config option so it can move memblock_next_valid_pfn to generic code file. All the latter optimizations are based on this config. The memblock initialization time on arm/arm64 can benefit from this. Signed-off-by: Jia He Reviewed-by: Pavel Tatashin ---

[PATCH v10 4/6] mm/memblock: introduce memblock_search_pfn_regions()

2018-07-06 Thread Jia He
This helper is to find the memory region index of input pfn. Signed-off-by: Jia He --- include/linux/memblock.h | 2 ++ mm/memblock.c| 9 + 2 files changed, 11 insertions(+) diff --git a/include/linux/memblock.h b/include/linux/memblock.h index ca59883..b0f0307 100644 ---

Re: [PATCH v2] time: Fix sleeptime injection for non-stop clocksource & persistent clock

2018-07-06 Thread Mukesh Ojha
Hi Thomas, Could you raise a formal patch on this as you are the author now? Thanks, Mukesh On 6/25/2018 8:34 PM, Thomas Gleixner wrote: On Mon, 25 Jun 2018, Mukesh Ojha wrote: On 6/23/2018 2:57 AM, Thomas Gleixner wrote: @@ -1671,7 +1685,6 @@ void timekeeping_resume(void) struct

[PATCH v10 6/6] mm: page_alloc: reduce unnecessary binary search in early_pfn_valid()

2018-07-06 Thread Jia He
Commit b92df1de5d28 ("mm: page_alloc: skip over regions of invalid pfns where possible") optimized the loop in memmap_init_zone(). But there is still some room for improvement. E.g. in early_pfn_valid(), if pfn and pfn+1 are in the same memblock region, we can record the last returned memblock

[PATCH v2 resend] checkpatch: Update section keywords

2018-07-06 Thread Geert Uytterhoeven
As of commit bd721ea73e1f9655 ("treewide: replace obsolete _refok by __ref"), __init_refok no longer exists, so it can be removed. While at it, add the modern variants that were still missing. Signed-off-by: Geert Uytterhoeven Acked-by: Joe Perches --- v2: - Add Acked-by, - Improve one-line

RE: [PATCH] clk: clk-fixed-factor: Use new macro CLK_OF_DECLARE_DRIVER

2018-07-06 Thread Rajan Vaja
Hi Stephen, > -Original Message- > From: Rajan Vaja > Sent: 04 June 2018 09:11 AM > To: 'Stephen Boyd' > Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; Jolly Shah > ; Michal Simek ; > mturque...@baylibre.com > Subject: RE: [PATCH] clk: clk-fixed-factor: Use new macro >

Re: [RFC PATCH] drm/atomic: add ASYNC_UPDATE flag to the Atomic IOCTL.

2018-07-06 Thread Gustavo Padovan
Hi Ville, On Thu, 2018-06-28 at 16:35 +0300, Ville Syrjälä wrote: > On Wed, Jun 27, 2018 at 11:25:06PM +0200, Enric Balletbo i Serra > wrote: > > From: Gustavo Padovan > > > > This flag tells core to jump ahead the queued update if the > > conditions > > in drm_atomic_async_check() are met.

Re: [PATCH V2 11/19] csky: Atomic operations

2018-07-06 Thread Peter Zijlstra
On Fri, Jul 06, 2018 at 07:48:12PM +0800, Guo Ren wrote: > On Thu, Jul 05, 2018 at 08:00:08PM +0200, Peter Zijlstra wrote: > > On Mon, Jul 02, 2018 at 01:30:14AM +0800, Guo Ren wrote: > > > +#ifdef CONFIG_CPU_HAS_LDSTEX > > > +ENTRY(csky_cmpxchg) > > > + USPTOKSP > > > + mfcra3, epc > > > +

Re: [PATCH v3 0/3] uio: fix potential crash bug

2018-07-06 Thread Xiubo Li
On 2018/7/6 11:31, Hamish Martin wrote: Hi Xiubo, Thanks for your patch that addresses the regression found with my earlier commit. I will take your code and run it in our scenario that showed the bug that led to my commit. Unfortunately I won't be able to get that done until mid-next week. I

Re: [PATCH] mm,oom: Bring OOM notifier callbacks to outside of OOM killer.

2018-07-06 Thread Paul E. McKenney
On Fri, Jul 06, 2018 at 07:39:42AM +0200, Michal Hocko wrote: > On Tue 03-07-18 09:01:01, Paul E. McKenney wrote: > > On Tue, Jul 03, 2018 at 09:24:13AM +0200, Michal Hocko wrote: > > > On Mon 02-07-18 14:37:14, Paul E. McKenney wrote: > > > [...] > > > > commit

Re: [PATCH] net/9p/client.c: put refcount of trans_mod in error case in parse_opts()

2018-07-06 Thread jiangyiwen
On 2018/7/6 17:42, piaojun wrote: >>From my test, the second mount will fail after umounting successfully. > The reason is that we put refcount of trans_mod in the correct case rather > than the error case in parse_opts() at last. That will cause the refcount > decrease to -1, and when we try to

Re: [RFC PATCH v4 03/12] PM: Introduce an Energy Model management framework

2018-07-06 Thread Quentin Perret
Hi Vincent, On Friday 06 Jul 2018 at 11:57:37 (+0200), Vincent Guittot wrote: > On Thu, 28 Jun 2018 at 13:41, Quentin Perret wrote: > > +static inline unsigned long em_fd_energy(struct em_freq_domain *fd, > > + unsigned long max_util, unsigned long > > sum_util) >

Re: [RFC PATCH v4 03/12] PM: Introduce an Energy Model management framework

2018-07-06 Thread Peter Zijlstra
On Fri, Jul 06, 2018 at 11:57:37AM +0200, Vincent Guittot wrote: > > IIUC the formula above, you consider that all CPUs in a frequency > domain has the same capacity. This sounds a reasonable assumption but > it would be good to write that somewhere Yes, I think there used to be a WARN and kill

[tip:x86/hyperv] x86/hyper-v: Fix the circular dependency in IPI enlightenment

2018-07-06 Thread tip-bot for K. Y. Srinivasan
Commit-ID: 1268ed0c474a5c8f165ef386f3310521b5e00e27 Gitweb: https://git.kernel.org/tip/1268ed0c474a5c8f165ef386f3310521b5e00e27 Author: K. Y. Srinivasan AuthorDate: Tue, 3 Jul 2018 16:01:55 -0700 Committer: Thomas Gleixner CommitDate: Fri, 6 Jul 2018 12:32:59 +0200 x86/hyper-v: Fix

RE: [PATCH 1/1] X86/Hyper-V:: Fix the circular dependency in IPI enlightenment.

2018-07-06 Thread Thomas Gleixner
On Fri, 6 Jul 2018, Thomas Gleixner wrote: > On Fri, 6 Jul 2018, KY Srinivasan wrote: > > > > > > The problem is that the wreckage is in Linus tree and needs to be fixed > > > there, i.e. via x86/urgent. > > > > > > Now we have the new bits queued in x86/hyperv already which collide. So > > > we

Re: [PATCH 1/2] power: supply: sbs-battery: don't assume MANUFACTURER_DATA formats

2018-07-06 Thread Sebastian Reichel
Hi, On Tue, Jun 12, 2018 at 01:20:41PM -0700, Brian Norris wrote: > This driver was originally submitted for the TI BQ20Z75 battery IC > (commit a7640bfa10c5 ("power_supply: Add driver for TI BQ20Z75 gas gauge > IC")) and later renamed to express generic SBS support. While it's > mostly true that

Re: [RFC PATCH v4 08/12] sched: Add over-utilization/tipping point indicator

2018-07-06 Thread Valentin Schneider
On 06/07/18 12:41, Peter Zijlstra wrote: > On Thu, Jun 28, 2018 at 12:40:39PM +0100, Quentin Perret wrote: >> @@ -698,6 +698,9 @@ struct root_domain { >> /* Indicate more than one runnable task for any CPU */ >> booloverload; > > While there, make that an int.

Re: [PATCH V2 11/19] csky: Atomic operations

2018-07-06 Thread Guo Ren
On Thu, Jul 05, 2018 at 08:00:08PM +0200, Peter Zijlstra wrote: > On Mon, Jul 02, 2018 at 01:30:14AM +0800, Guo Ren wrote: > > +#ifdef CONFIG_CPU_HAS_LDSTEX > > +ENTRY(csky_cmpxchg) > > + USPTOKSP > > + mfcra3, epc > > + INCTRAP a3 > > + > > + subisp, 8 > > + stw a3, (sp, 0)

Re: [PATCH] gpiolib: Defer on non-DT find_chip_by_name() failure

2018-07-06 Thread Richard Fitzgerald
On 05/07/18 21:56, Janusz Krzysztofik wrote: On Thursday, July 5, 2018 7:50:37 AM CEST Lee Jones wrote: On Wed, 04 Jul 2018, Janusz Krzysztofik wrote: On Tuesday, July 3, 2018 7:31:41 PM CEST Boris Brezillon wrote: Hi Janusz, On Tue, 3 Jul 2018 19:26:35 +0200 Janusz Krzysztofik wrote:

[PATCH] arm64: defconfig: Enable CONFIG_MTD_NAND_QCOM for IPQ8074

2018-07-06 Thread Abhishek Sahu
QCOM IPQ8074 boards contain NAND flash memory for which this config needs to be enabled. Signed-off-by: Abhishek Sahu --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 6739fc7..339f3dd 100644

[PATCH v3 0/5] Add support for audio on SDM845 SoC

2018-07-06 Thread Rohit kumar
This provides initial patchset to support audio on Qualcomm Techonologies Inc. SDM845 SoC. Currently, it supports audio playback/capture over Primary MI2S and Quaternary TDM ports. Changes since v2: - Added new file to parse dai-links from device tree and use it in sdm845 and apq8096 machine

Re: [REGRESSION 4.17] Spurious wakeup / reboot with power button

2018-07-06 Thread Rafael J. Wysocki
On Friday, July 6, 2018 8:55:18 AM CEST Takashi Iwai wrote: > On Fri, 06 Jul 2018 07:18:36 +0200, > Thomas H4nig wrote: > > > > > > > > Am 05.07.2018 um 18:56 schrieb Takashi Iwai: > > > On Thu, 05 Jul 2018 18:02:11 +0200, > > > Rafael J. Wysocki wrote: > > >> > > >> [The Lv's address is not

[PATCH] driver core: Drop devices_kset_move_last() call from really_probe()

2018-07-06 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The devices_kset_move_last() call in really_probe() is a mistake as it may cause parents to follow children in the devices_kset list which then causes system shutdown to fail. Namely, if a device has children before really_probe() is called for it (which is not

Re: [PATCH v2 0/5] Initial support of Trusted Foundations on Tegra30

2018-07-06 Thread Dmitry Osipenko
Kexec works for me on T30 with the following kernel config options on top of the tegra_defconfig: CONFIG_SMP=n CONFIG_CPU_IDLE=n CONFIG_TEGRA_IOMMU_SMMU=n CPU stopping isn't working correctly with the trusted foundations and it's not obvious what is wrong. I hope we'll fix it at some point.

Re: [PATCH v2] leds: ledtrig-morse: send out morse code

2018-07-06 Thread Geert Uytterhoeven
Hi Willy, On Wed, Jul 4, 2018 at 4:41 AM Willy Tarreau wrote: > On Tue, Jul 03, 2018 at 09:43:06PM +0300, Andy Shevchenko wrote: > Well, in this case it's even possible to go further and avoid storing > 36 strings. Indeed, no representation is longer than 5 symbols, so you > can use 5 bits for

[PATCH v2 1/2] dt: bindings: Add bindings for SDHCI Synopsys DWC MSHC

2018-07-06 Thread Jisheng Zhang
Synopsys SDHCI compatible DesignWare Cores Mobile Storage Host Controller can support eMMC/SD/SDIO. Add the bindings. Signed-off-by: Jisheng Zhang --- .../bindings/mmc/sdhci-of-dwcmshc.txt | 20 +++ 1 file changed, 20 insertions(+) create mode 100644

Re: [PATCH] arm64: hikey960: update idle-states

2018-07-06 Thread Daniel Lezcano
On 06/07/2018 08:57, Vincent Guittot wrote: > Update entry/exit latency and residency time of hikey960 to use more > realistic figures based on unitary tests done on the platform. > > The complete results (in us) : > big cluster > cluster CPU > max entry

[PATCH] regulator: max8997: clean up a condition in max8997_list_voltage()

2018-07-06 Thread Dan Carpenter
The current code generates a static cehcker warnings because "rid < 0" is always false: drivers/regulator/max8997-regulator.c:169 max8997_list_voltage() warn: condition is always false The problem is that because of type promotion, if "rid" is negative the comparison against ARRAY_SIZE()

Re: [BUG] Serial/dma stall/failure after "dmaengine: fsl-edma: extract common fsl-edma code (no changes in behavior intended)"

2018-07-06 Thread Angelo Dureghello
Hi, On Fri, Jul 06, 2018 at 08:16:29AM +0200, Krzysztof Kozlowski wrote: > On 6 July 2018 at 08:05, Vinod wrote: > > On 05-07-18, 18:23, Angelo Dureghello wrote: > >> Hi Stafan, > >> > >> On Thu, Jul 05, 2018 at 05:55:31PM +0200, Stefan Agner wrote: > >> > Hi Vinod, Hi Angelo, > >> > > >> > On

Re: [PATCH 07/11] cpufreq/schedutil: take into account interrupt

2018-07-06 Thread Vincent Guittot
On Fri, 6 Jul 2018 at 11:14, Peter Zijlstra wrote: > > On Fri, Jul 06, 2018 at 11:30:33AM +0530, Viresh Kumar wrote: > > On 28-06-18, 17:45, Vincent Guittot wrote: > > > The time spent under interrupt can be significant but it is not reflected > > > in the utilization of CPU when deciding to

Re: [PATCH v10 0/6] optimize memblock_next_valid_pfn and early_pfn_valid on arm and arm64

2018-07-06 Thread Jia He
Sorry for my mistake, I have to resend this set because I missed some important maillists. Please ignore this thread. Terribly sorry about it Cheers, Jia On 7/6/2018 4:14 PM, Jia He Wrote: > From: Jia He > > Commit b92df1de5d28 ("mm: page_alloc: skip over regions of invalid pfns > where

Re: [PATCH v12 04/11] kvm/x86: remove kvm memblock dependency

2018-07-06 Thread Thomas Gleixner
On Fri, 6 Jul 2018, Paolo Bonzini wrote: > On 06/07/2018 11:24, Thomas Gleixner wrote: > >> The reason for this is to avoid wasting a lot of BSS memory when KVM is > >> not in use. Thomas is going to send his take on this! > > Got it working with per cpu variables, but there is a different subtle

[PATCH] bitops: Introduce BITS_PER_TYPE

2018-07-06 Thread Chris Wilson
net_dim.h has a rather useful extension to BITS_PER_BYTE to compute the number of bits in a type (BITS_PER_BYTE * sizeof(T)), so promote the macro to bitops.h, alongside BITS_PER_BYTE, for wider usage. Signed-off-by: Chris Wilson Cc: Jani Nikula Cc: Andy Gospodarek Cc: David S. Miller Cc:

Re: [PATCH 1/1] X86/Hyper-V:: Fix the circular dependency in IPI enlightenment.

2018-07-06 Thread Ingo Molnar
* Thomas Gleixner wrote: > On Fri, 6 Jul 2018, Ingo Molnar wrote: > > * KY Srinivasan wrote: > > > I am confused. The label ipi_mask_done was introduced in this patch > > > (the patch under question fixes a circular dependency in this patch): > > > > > > commit

Re: [PATCH v12 04/11] kvm/x86: remove kvm memblock dependency

2018-07-06 Thread Thomas Gleixner
On Fri, 6 Jul 2018, Paolo Bonzini wrote: > On 06/07/2018 11:45, Thomas Gleixner wrote: > >> One possibility is to introduce another layer of indirection: in > >> addition to the percpu pvclock data, add a percpu pointer to the pvclock > >> data and initialize it to point to a page-aligned variable

[PATCH RT v2] sched/migrate_disable: fallback to preempt_disable() instead barrier()

2018-07-06 Thread Sebastian Andrzej Siewior
On SMP + !RT migrate_disable() is still around. It is not part of spin_lock() anymore so it has almost no users. However the futex code has a workaround for the !in_atomic() part of migrate disable which fails because the matching migrade_disable() is no longer part of spin_lock(). On !SMP + !RT

  1   2   3   4   5   6   7   8   9   10   >