[PATCH 0/3] Fixes hibernation bugs on x86-32 system

2018-08-27 Thread Gu Zhimin
From: Zhimin Gu Currently there are mainly three bugs in x86-32 system when doing hibernation: 1. The page copy code is not running in safe page, which might cause hang during resume. 2. There's no text mapping for the final jump address of the original kernel, which might cause the system

[PATCH 2/3] x86, hibernate: Extract the common code of 64/32 bit system

2018-08-27 Thread Gu Zhimin
From: Zhimin Gu Reduce the hibernation code duplication between x86-32 and x86-64 by extracting the common code into hibernate.c. No functional change. Suggested-by: Pavel Machek Acked-by: Chen Yu Signed-off-by: Zhimin Gu --- arch/x86/power/hibernate.c| 255 +

[PATCH 1/3] x86, hibernate: Fix nosave_regions setup for hibernation

2018-08-27 Thread Gu Zhimin
From: Zhimin Gu On 32bit systems, nosave_regions(non RAM areas) located between max_low_pfn and max_pfn are not excluded from hibernation snapshot currently, which may result in a machine check exception when trying to access these unsafe regions during hibernation: [ 612.800453] Disabling lock

[PATCH 3/3] x86, hibernate: Backport several fixes from 64bits to 32bits hibernation

2018-08-27 Thread Gu Zhimin
From: Zhimin Gu Currently there are mainly three bugs in 32bits system when doing hibernation: 1. The page copy code is not running in safe page, which might cause hang during resume. 2. There's no text mapping for the final jump address of the original kernel, which might cause the system

[PATCHv2] perf tools: Add struct ordered_events_buffer layer

2018-08-27 Thread Jiri Olsa
On Wed, Aug 15, 2018 at 10:48:25AM +0200, Jiri Olsa wrote: > On Tue, Aug 14, 2018 at 12:14:19AM -0700, Stephane Eranian wrote: > > SNIP > > > > @@ -104,11 +110,12 @@ static struct ordered_event *alloc_event(struct > > > ordered_events *oe, > > > new = list_entry(cache->next, stru

Re: [PATCH v2 2/2] PCI: meson: add the Amlogic Meson PCIe controller driver

2018-08-27 Thread Hanjie Lin
On 2018/8/24 16:22, Jerome Brunet wrote: > On Fri, 2018-08-24 at 15:36 +0800, Hanjie Lin wrote: >> From: Yue Wang >> >> The Amlogic Meson PCIe host controller is based on the Synopsys DesignWare >> PCI core. This patch adds the driver support for Meson PCIe controller. >> >> Signed-off-by: Yue

Re: [PATCH v2 2/2]: perf record: enable asynchronous trace writing

2018-08-27 Thread Alexey Budankov
Hi, On 27.08.2018 11:38, Jiri Olsa wrote: > On Thu, Aug 23, 2018 at 07:47:01PM +0300, Alexey Budankov wrote: > > SNIP > >> static int record__mmap_read_evlist(struct record *rec, struct perf_evlist >> *evlist, >> bool overwrite) >> { >> u64 bytes_written

[PATCH] power: supply: ab8500_fg: fix obsolete function

2018-08-27 Thread Ding Xiang
simple_strtoul is obsolete, and use kstrtoint instead Signed-off-by: Ding Xiang --- drivers/power/supply/ab8500_fg.c | 21 +++-- 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/drivers/power/supply/ab8500_fg.c b/drivers/power/supply/ab8500_fg.c index 02356f9..2bdad

Re: TLB flushes on fixmap changes

2018-08-27 Thread Masami Hiramatsu
On Mon, 27 Aug 2018 10:13:29 +0200 Peter Zijlstra wrote: > On Mon, Aug 27, 2018 at 12:03:05PM +0900, Masami Hiramatsu wrote: > > On Sun, 26 Aug 2018 11:09:58 +0200 > > Peter Zijlstra wrote: > > > > FWIW, before text_poke_bp(), text_poke() would only be used from > > > stop_machine, so all the o

Re: [PATCH v2 5/9] mtd: nand: atmel: fix OF child-node lookup

2018-08-27 Thread Johan Hovold
On Mon, Aug 27, 2018 at 10:48:42AM +0200, Boris Brezillon wrote: > On Mon, 27 Aug 2018 10:44:14 +0200 > Johan Hovold wrote: > > > On Mon, Aug 27, 2018 at 10:28:20AM +0200, Boris Brezillon wrote: > > > Hi Johan > > > > > > On Mon, 27 Aug 2018 10:21:49 +0200 > > > Johan Hovold wrote: > > > > >

Re: [PATCH v2 2/2]: perf record: enable asynchronous trace writing

2018-08-27 Thread Alexey Budankov
Hi, On 27.08.2018 11:43, Jiri Olsa wrote: > On Thu, Aug 23, 2018 at 07:47:01PM +0300, Alexey Budankov wrote: > > SNIP > >> >> static volatile int done; >> @@ -528,13 +530,85 @@ static struct perf_event_header finished_round_event = >> { >> .type = PERF_RECORD_FINISHED_ROUND, >> }; >>

Re: [PATCH 1/3] x86, hibernate: Fix nosave_regions setup for hibernation

2018-08-27 Thread Pavel Machek
On Mon 2018-08-27 17:42:05, Gu Zhimin wrote: > From: Zhimin Gu > > On 32bit systems, nosave_regions(non RAM areas) located between > max_low_pfn and max_pfn are not excluded from hibernation snapshot > currently, which may result in a machine check exception when > trying to access these unsafe r

Re: [PATCH 2/3] x86, hibernate: Extract the common code of 64/32 bit system

2018-08-27 Thread Pavel Machek
On Mon 2018-08-27 17:42:19, Gu Zhimin wrote: > From: Zhimin Gu > > Reduce the hibernation code duplication between x86-32 and x86-64 > by extracting the common code into hibernate.c. > > No functional change. > > Suggested-by: Pavel Machek > Acked-by: Chen Yu > Signed-off-by: Zhimin Gu Than

Build regressions/improvements in v4.19-rc1

2018-08-27 Thread Geert Uytterhoeven
Below is the list of build error/warning regressions/improvements in v4.19-rc1[1] compared to v4.18[2]. Summarized: - build errors: +5/-3 - build warnings: +14732/-179 Note that there may be false regressions, as some logs are incomplete. Still, they're build errors/warnings. Happy fixing! ;

Re: [PATCH v2 0/8] Tegra SDHCI support HS400 on Tegra210 and Tegra186

2018-08-27 Thread Ulf Hansson
On 24 August 2018 at 11:11, Thierry Reding wrote: > On Fri, Aug 10, 2018 at 09:13:57PM +0300, Aapo Vienamo wrote: >> Hi all, >> This series implements support for HS400 signaling on Tegra210 and >> Tegra186. This includes programming the DQS trimmer values, implementing >> enhanced strobe and HS40

Re: [PATCH 0/2] Tegra SDHCI rerun pad calibration periodically

2018-08-27 Thread Ulf Hansson
On 23 August 2018 at 10:50, Thierry Reding wrote: > On Mon, Aug 20, 2018 at 12:23:31PM +0300, Aapo Vienamo wrote: >> Hi all, >> >> This series implements pad drive strength recalibration. The calibration >> is rerun to compensate possible changes in temperature. The calibration >> procedure is rer

Re: TLB flushes on fixmap changes

2018-08-27 Thread Jann Horn
On Mon, Aug 27, 2018 at 10:13 AM Peter Zijlstra wrote: > > On Mon, Aug 27, 2018 at 12:03:05PM +0900, Masami Hiramatsu wrote: > > On Sun, 26 Aug 2018 11:09:58 +0200 > > Peter Zijlstra wrote: > > > > FWIW, before text_poke_bp(), text_poke() would only be used from > > > stop_machine, so all the oth

Re: Build regressions/improvements in v4.19-rc1

2018-08-27 Thread Geert Uytterhoeven
On Mon, Aug 27, 2018 at 11:50 AM Geert Uytterhoeven wrote: > Below is the list of build error/warning regressions/improvements in > v4.19-rc1[1] compared to v4.18[2]. > > Summarized: > - build errors: +5/-3 > - build warnings: +14732/-179 > > Note that there may be false regressions, as some l

Re: Men and Génies - Ymmyc.. (updated)

2018-08-27 Thread Email
Slight update: The last name became a bit too transcendent. So that is whateveryone thinks with unix isn´t it. It is too masochistic. So rather slight update to Ymmyc Isn´t A Trinity OS. And Islam: "The only main difference will be Interest Free Banking." Website is now done: https://nyt.cloud

Re: [PATCH V5 3/8] backlight: qcom-wled: Add new properties for PMI8998

2018-08-27 Thread Pavel Machek
Hi! On Fri 2018-08-24 15:57:42, Kiran Gunda wrote: > Update the bindings with the new properties used for > PMI8998. > Changes from V3: > - Removed the default values. Why? > +- qcom,current-limit-microamp > + Usage:optional > + Value type: > + Definition: uA; per-s

Re: [PATCH v2 2/2]: perf record: enable asynchronous trace writing

2018-08-27 Thread Namhyung Kim
Hello, On Mon, Aug 27, 2018 at 12:33:07PM +0300, Alexey Budankov wrote: > Hi, > > On 27.08.2018 11:38, Jiri Olsa wrote: > > On Thu, Aug 23, 2018 at 07:47:01PM +0300, Alexey Budankov wrote: > > > > SNIP > > > >> static int record__mmap_read_evlist(struct record *rec, struct > >> perf_evlist *e

Re: [PATCH 1/2] mmc: sdhci: Export sdhci_request()

2018-08-27 Thread Ulf Hansson
On 20 August 2018 at 11:23, Aapo Vienamo wrote: > Allow SDHCI drivers to hook code before and after sdhci_request() by > making it externally visible. > > Signed-off-by: Aapo Vienamo This one happens to be useful for other variants but Tegras, hence I have applied this one for next. Thanks! Thi

Re: [PATCH V5 06/10] mmc: sdhci: Disable auto-CMD23 if stuff bits is set in CMD23 argument

2018-08-27 Thread Ulf Hansson
On 23 August 2018 at 14:50, Adrian Hunter wrote: > On 16/08/18 10:54, Chunyan Zhang wrote: >> For version 4.10 and aboves, SDHCI_ARGUMENT2 is also uses to indicate >> 32-bit number of blocks, it doesn't support stuff bits in argument of >> CMD23, but only block count for the following command (CMD

Re: [PATCH v2 0/8] Tegra SDHCI support HS400 on Tegra210 and Tegra186

2018-08-27 Thread Thierry Reding
On Fri, Aug 10, 2018 at 09:13:57PM +0300, Aapo Vienamo wrote: > Hi all, > This series implements support for HS400 signaling on Tegra210 and > Tegra186. This includes programming the DQS trimmer values, implementing > enhanced strobe and HS400 delay line calibration. > > This series depends on the

[PATCH 03/16] pinctrl: mediatek: extend struct mtk_pin_field_calc to pinctrl-mtk-common-v2.c

2018-08-27 Thread sean.wang
From: Sean Wang This patch adds members sz_reg fixed in struct mtk_pin_field_calc - The 'fixed' is used to represent the consecutive pins share the same bits within the same register with the 1st pin so that it can largely reduce the entry size a bit. - The 'sz_reg' is used to indicate the rang

Re: [PATCH v2 00/40] Tegra SDHCI add support for HS200 and UHS signaling

2018-08-27 Thread Thierry Reding
On Fri, Aug 10, 2018 at 09:08:02PM +0300, Aapo Vienamo wrote: > Hi all, > > This series implements support for faster signaling modes on Tegra > SDHCI controllers. This series consist of several parts: changes > requried for 1.8 V signaling and pad control, pad calibration, and > tuning. Following

[PATCH 00/16] Unify MediaTek pinctrl in preparation for MT8183 and MT6765

2018-08-27 Thread sean.wang
From: Sean Wang Irregular register arrangement and their logic access from various MediaTek SoCs being introduced already causes pinctrl-mtk-common to bloat and became really hard to maintain so that the patch creates pinctrl-mtk-common-v2 based on the core of mt7622 pinctrl to try make the regis

[PATCH 12/16] pinctrl: mediatek: add MT7623 pinctrl driver based on generic pinctrl binding

2018-08-27 Thread sean.wang
From: Sean Wang Adding MT7623 pinctrl driver based on generic pinctrl binding, that is good example and demonstrates how to port any other MediaTek SoCs pinctrl-moore core when people really would like to use the generic pinctrl binding to support these MediaTek SoCs. Signed-off-by: Ryder Lee S

[PATCH 15/16] pinctrl: mediatek: adjust error code and message when some register not supported is found

2018-08-27 Thread sean.wang
From: Sean Wang It's usual and not an error for there's some register not supported by a certain SoC or a pin so that in the case we have to adjust the message to print and the error code to get rid of unnecessary false alarm. Signed-off-by: Sean Wang --- drivers/pinctrl/mediatek/pinctrl-mtk-c

[PATCH 16/16] pinctrl: mediatek: extend struct mtk_pin_desc which per-pin driver depends on

2018-08-27 Thread sean.wang
From: Sean Wang Because the pincrl-mtk-common.c is an implementation for per-pin binding, its pin descriptor includes more information than pinctrl-mtk-common-v2 so far can support. So, we complement these data before writing a driver using pincrl-mtk-common-v2.c for per-pin binding. By the way,

[PATCH 13/16] pinctrl: mediatek: use pin descriptor all in pinctrl-mtk-common-v2.c

2018-08-27 Thread sean.wang
From: Sean Wang all use pin descriptor instead in pinctrl-mtk-common-v2.c for the consistency and extensibility. Signed-off-by: Sean Wang --- drivers/pinctrl/mediatek/pinctrl-moore.c | 66 +--- drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c | 76 +-

[PATCH 14/16] pinctrl: mediatek: add multiple register bases support to pinctrl-mtk-common-v2.c

2018-08-27 Thread sean.wang
From: Sean Wang Certain SoC own multiple register base for accessing each pin groups, it's easy to be done with extend struct mtk_pin_field_calc to support the kind of SoC such as MT8183. Signed-off-by: Sean Wang --- drivers/pinctrl/mediatek/pinctrl-moore.c | 30 +++- d

Re: [PATCH 1/2] mmc: sdhci: Export sdhci_request()

2018-08-27 Thread Thierry Reding
On Mon, Aug 27, 2018 at 12:07:08PM +0200, Ulf Hansson wrote: > On 20 August 2018 at 11:23, Aapo Vienamo wrote: > > Allow SDHCI drivers to hook code before and after sdhci_request() by > > making it externally visible. > > > > Signed-off-by: Aapo Vienamo > > This one happens to be useful for othe

Re: [PATCH v2 2/2]: perf record: enable asynchronous trace writing

2018-08-27 Thread Alexey Budankov
Hi Namhyung, On 27.08.2018 13:05, Namhyung Kim wrote: > Hello, > > On Mon, Aug 27, 2018 at 12:33:07PM +0300, Alexey Budankov wrote: >> Hi, >> >> On 27.08.2018 11:38, Jiri Olsa wrote: >>> On Thu, Aug 23, 2018 at 07:47:01PM +0300, Alexey Budankov wrote: >>> >>> SNIP >>> static int record__mma

[RESEND PATCH v2 0/3] add support to non-uniform SFDP SPI NOR flash memories

2018-08-27 Thread Tudor Ambarus
Rebased on spi-nor/next. Backward compatibility test done on mx25l3273fm2i-08g. Non-uniform erase test done on sst26vf064b-104i/sn. Note that in order to do the non-uniform test you'll have to force the spi_nor_has_uniform_erase() to return false, because the erase map is tuned to come back to th

[RESEND PATCH v2 3/3] mtd: spi-nor: parse SFDP 4-byte Address Instruction Table

2018-08-27 Thread Tudor Ambarus
From: Cyrille Pitchen Add support for SFDP (JESD216B) 4-byte Address Instruction Table. This table is optional but when available, we parse it to get the 4-byte address op codes supported by the memory. Using these op codes is stateless as opposed to entering the 4-byte address mode or setting th

[RESEND PATCH v2 2/3] mtd: spi-nor: parse SFDP Sector Map Parameter Table

2018-08-27 Thread Tudor Ambarus
Add support for the SFDP (JESD216B) Sector Map Parameter Table. This table is optional, but when available, we parse it to identify the location and size of sectors within the main data array of the flash memory device and to identify which Erase Types are supported by each sector. Signed-off-by:

[RESEND PATCH v2 1/3] mtd: spi-nor: add support to non-uniform SFDP SPI NOR flash memories

2018-08-27 Thread Tudor Ambarus
Based on Cyrille Pitchen's patch https://lkml.org/lkml/2017/3/22/935. This patch is a transitional patch in introducing the support of SFDP SPI memories with non-uniform erase sizes like Spansion s25fs512s. Non-uniform erase maps will be used later when initialized based on the SFDP data. Introd

Re: [PATCH v2 0/8] Tegra SDHCI support HS400 on Tegra210 and Tegra186

2018-08-27 Thread Adrian Hunter
On 27/08/18 13:08, Thierry Reding wrote: > On Fri, Aug 10, 2018 at 09:13:57PM +0300, Aapo Vienamo wrote: >> Hi all, >> This series implements support for HS400 signaling on Tegra210 and >> Tegra186. This includes programming the DQS trimmer values, implementing >> enhanced strobe and HS400 delay li

Re: [PATCH v2 00/40] Tegra SDHCI add support for HS200 and UHS signaling

2018-08-27 Thread Adrian Hunter
On 27/08/18 13:10, Thierry Reding wrote: > On Fri, Aug 10, 2018 at 09:08:02PM +0300, Aapo Vienamo wrote: >> Hi all, >> >> This series implements support for faster signaling modes on Tegra >> SDHCI controllers. This series consist of several parts: changes >> requried for 1.8 V signaling and pad co

Re: [PATCH 1/2] devres: provide devm_kstrdup_const()

2018-08-27 Thread Mike Rapoport
On Mon, Aug 27, 2018 at 10:21:00AM +0200, Bartosz Golaszewski wrote: > Provide a resource managed version of kstrdup_const(). This variant > internally calls devm_kstrdup() on pointers that are outside of > .rodata section. Also provide a corresponding version of devm_kfree(). > > Signed-off-by: B

Re: [PATCH] Properly interpret indirect call in perf annotate.

2018-08-27 Thread Namhyung Kim
Hello, On Thu, Aug 23, 2018 at 02:29:34PM +0200, Martin Liška wrote: > The patch changes interpretation of: > callq *0x8(%rbx) > > from: > 0.26 │ → callq *8 > to: > 0.26 │ → callq *0x8(%rbx) > > in this can an address is followed by a register, thus > one can't parse only address.

Re: [PATCH v2 2/2]: perf record: enable asynchronous trace writing

2018-08-27 Thread Jiri Olsa
On Mon, Aug 27, 2018 at 01:25:35PM +0300, Alexey Budankov wrote: > Hi Namhyung, > > On 27.08.2018 13:05, Namhyung Kim wrote: > > Hello, > > > > On Mon, Aug 27, 2018 at 12:33:07PM +0300, Alexey Budankov wrote: > >> Hi, > >> > >> On 27.08.2018 11:38, Jiri Olsa wrote: > >>> On Thu, Aug 23, 2018 at 0

Re: [PATCH 0/2] mfd: platform/chrome: some more cleanups between these subsystems.

2018-08-27 Thread Enric Balletbo Serra
Lee, Benson, Missatge de Enric Balletbo i Serra del dia dc., 18 de jul. 2018 a les 18:11: > > Dear Lee, Benson, > > This is another patchset to try to cleanup a bit more the interaction > between the mfd subsystem and platform/chrome. > > The first patch moves some cros-ec include files from inc

Re: [PATCH 2/2] clk: pmc-atom: use devm_kstrdup_const()

2018-08-27 Thread Mike Rapoport
On Mon, Aug 27, 2018 at 10:21:01AM +0200, Bartosz Golaszewski wrote: > Use devm_kstrdup_const() in the pmc-atom driver. This mostly serves as > an example of how to use this new routine to shrink driver code. > > While we're at it: replace a call to kcalloc() with devm_kcalloc(). > > Signed-off-b

Re: -next: Traceback at at drivers/spi/spi.c:2179 spi_register_controller

2018-08-27 Thread Geert Uytterhoeven
Hi Guenter, On Thu, Aug 23, 2018 at 10:08 PM Guenter Roeck wrote: > I see the attached warning when booting 'sabrelite' images in qemu, > using imx_v6_v7_defconfig and imx6dl-sabrelite.dts. > > Context suggests that the warning is seen since commit 1a4327fbf4554 ("spi: > fix IDR collision on syst

Re: [PATCH v2 2/2]: perf record: enable asynchronous trace writing

2018-08-27 Thread Alexey Budankov
On 27.08.2018 13:38, Jiri Olsa wrote: > On Mon, Aug 27, 2018 at 01:25:35PM +0300, Alexey Budankov wrote: >> Hi Namhyung, >> >> On 27.08.2018 13:05, Namhyung Kim wrote: >>> Hello, >>> >>> On Mon, Aug 27, 2018 at 12:33:07PM +0300, Alexey Budankov wrote: Hi, On 27.08.2018 11:38, Jiri

Re: [PATCH 3/4] mm/tlb, x86/mm: Support invalidating TLB caches for RCU_TABLE_FREE

2018-08-27 Thread Peter Zijlstra
On Mon, Aug 27, 2018 at 09:47:01AM +0200, Peter Zijlstra wrote: > And there's only like 4 architectures that still have a custom > mmu_gather: > > - sh > - arm > - ia64 > - s390 > > sh is trivial, arm seems doable, with a bit of luck we can do 'rm -rf > arch/ia64' leaving us with s390. T

Re: [PATCH v2 11/40] mmc: sdhci: Add a quirk to skip clearing the transfer mode register on tuning

2018-08-27 Thread Adrian Hunter
On 10/08/18 21:08, Aapo Vienamo wrote: > Add SDHCI_QUIRK2_TUNE_SKIP_XFERRMODE_REG_PROG to skip programming the > SDHCI_TRANSFER_MODE in sdhci_set_transfer_mode() if tuning command is > being sent. > > On Tegra210 and Tegra186 the tuning sequence hangs if the SDHCI > transfer mode register is touch

[RESEND PATCH v5] PM / devfreq: Fix devfreq_add_device() when drivers are built as modules.

2018-08-27 Thread Enric Balletbo i Serra
When the devfreq driver and the governor driver are built as modules, the call to devfreq_add_device() or governor_store() fails because the governor driver is not loaded at the time the devfreq driver loads. The devfreq driver has a build dependency on the governor but also should have a runtime d

Re: [PATCHv2] perf tools: Add struct ordered_events_buffer layer

2018-08-27 Thread Namhyung Kim
On Mon, Aug 27, 2018 at 11:28:18AM +0200, Jiri Olsa wrote: > When ordering events, we use preallocated buffers to store separated > events. Those buffers currently don't have their own struct, but since > they are basically array of 'struct ordered_event' objects, we use the > first event to hold

Re: [PATCH V5 06/10] mmc: sdhci: Disable auto-CMD23 if stuff bits is set in CMD23 argument

2018-08-27 Thread Chunyan Zhang
On 27 August 2018 at 18:07, Ulf Hansson wrote: > On 23 August 2018 at 14:50, Adrian Hunter wrote: >> On 16/08/18 10:54, Chunyan Zhang wrote: >>> For version 4.10 and aboves, SDHCI_ARGUMENT2 is also uses to indicate >>> 32-bit number of blocks, it doesn't support stuff bits in argument of >>> CMD2

Re: [PATCH] sched/fair: vruntime should normalize when switching from fair

2018-08-27 Thread Peter Zijlstra
On Fri, Aug 24, 2018 at 02:24:48PM -0700, Steve Muckle wrote: > On 08/24/2018 02:47 AM, Peter Zijlstra wrote: > > > > On 08/17/2018 11:27 AM, Steve Muckle wrote: > > > > > > > When rt_mutex_setprio changes a task's scheduling class to RT, > > > > > we're seeing cases where the task's vruntime is n

[PATCH 0/2] x86: Fix SEV guest regression

2018-08-27 Thread Brijesh Singh
The following commit " x86/kvmclock: Remove memblock dependency https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=368a540e0232ad446931f5a4e8a5e06f69f21343 " introduced SEV guest regression. The guest physical address holding the wall_clock and hv_clock_boot are share

[PATCH 1/2] x86/mm: add .data..decrypted section to hold shared variables

2018-08-27 Thread Brijesh Singh
kvmclock defines few static variables which are shared with hypervisor during the kvmclock initialization. When SEV is active, memory is encrypted with a guest-specific key, and if guest OS wants to share the memory region with hypervisor then it must clear the C-bit before sharing it. The '__dec

[PATCH 2/2] x86/kvm: use __decrypted attribute when declaring shared variables

2018-08-27 Thread Brijesh Singh
The following commit: 368a540e0232 (x86/kvmclock: Remove memblock dependency) caused SEV guest regression. When SEV is active, we map the shared variables (wall_clock and hv_clock_boot) with C=0 to ensure that both the guest and the hypervisor is able to access the data. To map the variables we

[PATCH 3/3] Revert "mm, mmu_notifier: annotate mmu notifiers with blockable invalidate callbacks"

2018-08-27 Thread Michal Hocko
From: Michal Hocko This reverts commit 5ff7091f5a2ca1b7b642ca0dbdede8f693a56926. MMU_INVALIDATE_DOES_NOT_BLOCK flags was the only one used and it is no longer needed since 93065ac753e4 ("mm, oom: distinguish blockable mode for mmu notifiers"). We now have a full support for per range !blocking b

[PATCH 0/3] mmu_notifiers follow ups

2018-08-27 Thread Michal Hocko
Hi Andrew, Tetsuo has noticed some fallouts from 93065ac753e4 ("mm, oom: distinguish blockable mode for mmu notifiers"). One of them has been fixed and picked up by AMD/DRM maintainer [1]. XEN issue is fixed by patch 1. I have also clarified expectations about blockable semantic of invalidate_range

[PATCH 1/3] xen/gntdev: fix up blockable calls to mn_invl_range_start

2018-08-27 Thread Michal Hocko
From: Michal Hocko 93065ac753e4 ("mm, oom: distinguish blockable mode for mmu notifiers") has introduced blockable parameter to all mmu_notifiers and the notifier has to back off when called in !blockable case and it could block down the road. The above commit implemented that for mn_invl_range_

[PATCH 2/3] mm, mmu_notifier: be explicit about range invalition non-blocking mode

2018-08-27 Thread Michal Hocko
From: Michal Hocko If invalidate_range_start is called for !blocking mode then all callbacks have to guarantee they will no block/sleep. The same obviously applies to invalidate_range_end because this operation pairs with the former and they are called from the same context. Make sure this is app

Re: [PATCH v2 25/40] mmc: sdhci: Add a quirk to disable card clock during tuning

2018-08-27 Thread Adrian Hunter
On 10/08/18 21:08, Aapo Vienamo wrote: > Add a quirk to disable card clock when the tuning command is sent. > > This has to be done to prevent the SDHCI controller from hanging on > Tegra210. Without the quirk enabled there appears to be around 10% > chance that the tuning sequence will fail and t

Re: removig ia64, was: Re: [PATCH 3/4] mm/tlb, x86/mm: Support invalidating TLB caches for RCU_TABLE_FREE

2018-08-27 Thread Peter Zijlstra
On Mon, Aug 27, 2018 at 01:57:08AM -0700, Christoph Hellwig wrote: > On Mon, Aug 27, 2018 at 09:47:01AM +0200, Peter Zijlstra wrote: > > sh is trivial, arm seems doable, with a bit of luck we can do 'rm -rf > > arch/ia64' leaving us with s390. > > Is removing ia64 a serious plan? I 'joked' about

[RESEND] PCI: imx: Initial imx7d pm support

2018-08-27 Thread Leonard Crestez
On imx7d the pcie-phy power domain is turned off in suspend and this can make the system hang after resume when attempting any read from PCI. Fix this by adding minimal suspend/resume code from the nxp internal tree. This will prepare for powering down on suspend and reset the block on resume. Co

regression: broken ppc64le build with CONFIG_KERNEL_XZ=y

2018-08-27 Thread Michal Kubecek
Building 4.19-rc1 kernel with CONFIG_KERNEL_XZ=y fails with this error: BOOTCC arch/powerpc/boot/decompress.o In file included from arch/powerpc/boot/../../../lib/decompress_unxz.c:233, from arch/powerpc/boot/decompress.c:42: arch/powerpc/boot/../../../lib/xz/xz_crc32.c:18:10:

[PATCH v5 1/6] soc: qcom: smem: Add missing include of sizes.h

2018-08-27 Thread Niklas Cassel
Add missing include of sizes.h. drivers/soc/qcom/smem.c: In function ‘qcom_smem_get_ptable’: drivers/soc/qcom/smem.c:666:64: error: ‘SZ_4K’ undeclared ptable = smem->regions[0].virt_base + smem->regions[0].size - SZ_4K; ^ Signe

[PATCH v5 0/6] soc: qcom: Allow COMPILE_TEST of qcom SoC Kconfigs

2018-08-27 Thread Niklas Cassel
Since commit cab673583d96 ("soc: Unconditionally include qcom Makefile"), we unconditionally include the soc/qcom/Makefile. This opens up the possibility to compile test the code even when building for other architectures. This patch series prepares and enables all but two Kconfigs to be compile

[PATCH v5 5/6] soc: qcom: Remove bogus depends on OF from QCOM_SMD_RPM

2018-08-27 Thread Niklas Cassel
QCOM_SMD_RPM builds perfectly fine without CONFIG_OF set. Remove the bogus depends of OF. Signed-off-by: Niklas Cassel Reviewed-by: Vivek Gautam Reviewed-by: Vinod Koul --- drivers/soc/qcom/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/qcom/Kconfig b/d

[PATCH v5 2/6] soc: qcom: llcc-slice: Add missing include of sizes.h

2018-08-27 Thread Niklas Cassel
Add missing include of sizes.h. drivers/soc/qcom/llcc-slice.c: In function ‘llcc_update_act_ctrl’: drivers/soc/qcom/llcc-slice.c:41:44: error: ‘SZ_4K’ undeclared #define LLCC_TRP_ACT_CTRLn(n) (n * SZ_4K) ^ Signed-off-by: Niklas Cassel Revi

[PATCH v5 3/6] soc: qcom: smp2p: Add select IRQ_DOMAIN

2018-08-27 Thread Niklas Cassel
Since we are using irq_domain_add_linear(), add a select on IRQ_DOMAIN. This is needed in order to be able to remove the depends on ARCH_QCOM. drivers/soc/qcom/smp2p.c: In function ‘qcom_smp2p_inbound_entry’: drivers/soc/qcom/smp2p.c:317:18: error: implicit declaration of function ‘irq_domain_ad

[PATCH v5 4/6] soc: qcom: smsm: Add select IRQ_DOMAIN

2018-08-27 Thread Niklas Cassel
Since we are using irq_domain_add_linear(), add a select on IRQ_DOMAIN. This is needed in order to be able to remove the depends on ARCH_QCOM. drivers/soc/qcom/smsm.c: In function ‘smsm_inbound_entry’: drivers/soc/qcom/smsm.c:411:18: error: implicit declaration of function ‘irq_domain_add_linear

[PATCH v5 6/6] soc: qcom: Allow COMPILE_TEST of qcom SoC Kconfigs

2018-08-27 Thread Niklas Cassel
Since commit cab673583d96 ("soc: Unconditionally include qcom Makefile"), we unconditionally include the soc/qcom/Makefile. This opens up the possibility to compile test the code even when building for other architectures. Allow COMPILE_TEST for all qcom SoC Kconfigs, except for two Kconfigs that

Re: [PATCH v2 00/40] Tegra SDHCI add support for HS200 and UHS signaling

2018-08-27 Thread Adrian Hunter
On 27/08/18 13:26, Adrian Hunter wrote: > On 27/08/18 13:10, Thierry Reding wrote: >> On Fri, Aug 10, 2018 at 09:08:02PM +0300, Aapo Vienamo wrote: >>> Hi all, >>> >>> This series implements support for faster signaling modes on Tegra >>> SDHCI controllers. This series consist of several parts: cha

Re: removig ia64, was: Re: [PATCH 3/4] mm/tlb, x86/mm: Support invalidating TLB caches for RCU_TABLE_FREE

2018-08-27 Thread Jason Duerstock
I cannot speak to how widespread it has been adopted, but the linux (kernel) package for version 4.17.17 has been successfully built and installed for ia64 under Debian ports. There is clearly more work to do to get ia64 rehabilitated, but there are over 10,000 packages currently successfully buil

Re: [PATCH v4] perf/x86/intel: Add support for MISPREDICT bit on Knights Landing cpus

2018-08-27 Thread Jacek Tomaka
> On 2 Aug 2018, at 6:07 pm, Thomas Gleixner wrote: > > The actiual purpose of sending V4 which is identical to V3 is? > >> >> Signed-off-by: Jacek Tomaka >> --- Yes, thanks. I missed it initially, sorry. > It's good practice to add a > > V3 -> V4: changed foo > V2 -> V3: fixed bla > ...

Re: [PATCH v2 0/8] Tegra SDHCI support HS400 on Tegra210 and Tegra186

2018-08-27 Thread Adrian Hunter
On 27/08/18 13:26, Adrian Hunter wrote: > On 27/08/18 13:08, Thierry Reding wrote: >> On Fri, Aug 10, 2018 at 09:13:57PM +0300, Aapo Vienamo wrote: >>> Hi all, >>> This series implements support for HS400 signaling on Tegra210 and >>> Tegra186. This includes programming the DQS trimmer values, impl

Re: [PATCH] Input: elants_i2c - Fix sw reset delays

2018-08-27 Thread Andi Shyti
Hi Derek, next time, could you please avoid using html mails when replying to the mailing list? They are not clear. On Fri, Aug 24, 2018 at 04:07:41PM -0700, dbasehore . wrote: > > > On Fri, Aug 24, 2018 at 1:49 AM Andi Shyti wrote: > > Hi Derek, > > > > > On Thu, Aug 23, 2018 at 04:

Re: [PATCH v2 30/32] selftests/ftrace: Add ftrace cpumask testcase

2018-08-27 Thread Masami Hiramatsu
On Fri, 24 Aug 2018 22:18:22 -0400 Steven Rostedt wrote: > On Fri, 17 Aug 2018 01:43:20 +0900 > Masami Hiramatsu wrote: > > > Add a testcase for tracing_cpumask with function tracer. > > > > Signed-off-by: Masami Hiramatsu > > --- > > .../selftests/ftrace/test.d/ftrace/func_cpumask.tc | 34

Re: [RFC/PATCH] regulator: Support regulators where voltage ranges are selectable

2018-08-27 Thread Matti Vaittinen
On Wed, Aug 22, 2018 at 02:05:07PM +0300, Matti Vaittinen wrote: > For example ROHM BD71837 and ROHM BD71847 Power management ICs have > regulators which provide multiple linear ranges. Ranges can be > selected by individual non contagious bit in vsel register. Add > regmap helper functions for sel

Re: [PATCH] HID: add support for Apple Magic Keyboards

2018-08-27 Thread Benjamin Tissoires
Hi Sean, On Thu, Aug 23, 2018 at 6:40 PM Sean O'Brien wrote: > > USB device > Vendor 05ac (Apple) > Device 026c (Magic Keyboard with Numeric Keypad) > > Bluetooth devices > Vendor 004c (Apple) > Device 0267 (Magic Keyboard) > Device 026c (Magic Keyboard wit

Re: [PATCH 1/1] axi-i2s: set period size register

2018-08-27 Thread Lars-Peter Clausen
On 08/24/2018 06:04 PM, Luca Ceresoli wrote: > The default value of the PERIOD_LEN register is 0 and results in > axi-i2s keeping TLAST always asserted in its AXI Stream output. > > When the AXI Stream is sent to a Xilinx AXI-DMA, this results in the > DMA generating an interrupt flood and ALSA pr

Re: [PATCH 2/2] clk: pmc-atom: use devm_kstrdup_const()

2018-08-27 Thread Bartosz Golaszewski
2018-08-27 12:39 GMT+02:00 Mike Rapoport : > On Mon, Aug 27, 2018 at 10:21:01AM +0200, Bartosz Golaszewski wrote: >> Use devm_kstrdup_const() in the pmc-atom driver. This mostly serves as >> an example of how to use this new routine to shrink driver code. >> >> While we're at it: replace a call to

Re: [PATCH] HID: i2c-hid: Fix flooded incomplete report after S3 on Rayd touchscreen

2018-08-27 Thread Benjamin Tissoires
On Tue, Aug 21, 2018 at 10:55 AM AceLan Kao wrote: > > The incomplete report flooded after S3 and touchscreen becomes > malfunctioned. > [ 1367.646244] i2c_hid i2c-CUST:00: i2c_hid_get_input: incomplete report > (58/18785) > [ 1367.649471] i2c_hid i2c-CUST:00: i2c_hid_get_input: incomplet

Re: [PATCH 1/2] Revert "x86/e820: put !E820_TYPE_RAM regions into memblock.reserved"

2018-08-27 Thread Masayoshi Mizuma
Hi Pavel, I would appreciate if you could send the feedback for the patch. Thanks! Masa On 08/24/2018 04:29 AM, Michal Hocko wrote: > On Fri 24-08-18 00:03:25, Naoya Horiguchi wrote: >> (CCed related people) > > Fixup Pavel email. > >> >> Hi Mizuma-san, >> >> Thank you for the report. >> The m

[PATCH] ARM: imx_v6_v7_defconfig: Make usbnet drivers builtin for boot

2018-08-27 Thread Leonard Crestez
Chips such as imx6sll and imx7ulp have no ethernet support so the common development usecase of nfs boot is supported via usb ethernet dongles. Add drivers for additional usbnet device directly into the kernel image image produced by the imx defconfig. This list is based on the usbnet devices sup

Re: [PATCH] include/linux/compiler*.h: Use feature checking instead of version checks for attributes

2018-08-27 Thread Miguel Ojeda
Hi Joe, On Sun, Aug 26, 2018 at 8:50 PM, Joe Perches wrote: > On Sun, 2018-08-26 at 19:57 +0200, Miguel Ojeda wrote: >> Instead of using version checks per-compiler to define (or not) each >> attribute, >> use __has_attribute to test for them, following the cleanup started with >> commit 815f0dd

[PATCH] vfio: fix potential memory leak in vfio_msi_cap_len

2018-08-27 Thread Li Qiang
Free the vdev->msi_perm in error path. Signed-off-by: Li Qiang --- drivers/vfio/pci/vfio_pci_config.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/vfio/pci/vfio_pci_config.c b/drivers/vfio/pci/vfio_pci_config.c index 115a36f6f403..62023b4a373b 100644 --- a/driv

Re: [PATCH 1/2] devres: provide devm_kstrdup_const()

2018-08-27 Thread kbuild test robot
Hi Bartosz, I love your patch! Perhaps something to improve: [auto build test WARNING on clk/clk-next] [also build test WARNING on v4.19-rc1 next-20180827] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci

Re: [PATCH 07/25] ubifs: Store read superblock node

2018-08-27 Thread Richard Weinberger
Am Mittwoch, 4. Juli 2018, 14:41:19 CEST schrieb Sascha Hauer: > The superblock node is read/modified/written several times throughout > the UBIFS code. Instead of reading it from the device each time just > keep a copy in memory and write back the modified copy when necessary. > This patch helps f

Re: [PATCH 10/25] ubifs: add helper functions for authentication support

2018-08-27 Thread Richard Weinberger
Am Mittwoch, 4. Juli 2018, 14:41:22 CEST schrieb Sascha Hauer: > This patch adds the various helper functions needed for authentication > support. We need functions to hash nodes, to embed HMACs into a node and > to compare hashes and HMACs. Most functions first check if this > filesystem is authen

Re: [PATCH] perf annotate: fix parsing aarch64 branch instructions after objdump update

2018-08-27 Thread Arnaldo Carvalho de Melo
Em Thu, Aug 23, 2018 at 07:10:47PM -0500, Kim Phillips escreveu: > Starting with binutils 2.28, aarch64 objdump adds comments to the > disassembly output to show the alternative names of a condition code [1]. > > It is assumed that commas in objdump comments could occur in other arches > now or in

Re: [PATCH 2/2] clk: pmc-atom: use devm_kstrdup_const()

2018-08-27 Thread Mike Rapoport
On Mon, Aug 27, 2018 at 02:28:45PM +0200, Bartosz Golaszewski wrote: > 2018-08-27 12:39 GMT+02:00 Mike Rapoport : > > On Mon, Aug 27, 2018 at 10:21:01AM +0200, Bartosz Golaszewski wrote: > >> Use devm_kstrdup_const() in the pmc-atom driver. This mostly serves as > >> an example of how to use this n

Re: [PATCH v1 01/10] arm/arm64: dts: msm8974/msm8916: thermal: Split address space into two

2018-08-27 Thread Amit Kucheria
On Sat, Aug 25, 2018 at 4:58 AM Eduardo Valentin wrote: > > On Thu, Aug 09, 2018 at 06:02:33PM +0530, Amit Kucheria wrote: > > We've earlier added support to split the register address space into TM > > and SROT regions. > > > > Split up the regmap address space into two for the remaining platform

Re: [PATCH 2/2] clk: pmc-atom: use devm_kstrdup_const()

2018-08-27 Thread Bartosz Golaszewski
2018-08-27 14:52 GMT+02:00 Mike Rapoport : > On Mon, Aug 27, 2018 at 02:28:45PM +0200, Bartosz Golaszewski wrote: >> 2018-08-27 12:39 GMT+02:00 Mike Rapoport : >> > On Mon, Aug 27, 2018 at 10:21:01AM +0200, Bartosz Golaszewski wrote: >> >> Use devm_kstrdup_const() in the pmc-atom driver. This mostl

Re: [PATCH v2 0/4] clk: meson: clk-pll driver update

2018-08-27 Thread Jerome Brunet
On Sun, 2018-08-12 at 20:26 +0200, Martin Blumenstingl wrote: > Hi Jerome, > > On Wed, Aug 1, 2018 at 4:00 PM Jerome Brunet wrote: > > > > This patchset is yet another round of update to the amlogic pll driver. > > > > 1) Enable bit is added so we don't rely on the bootloader or the init > >

Re: [PATCH] clk: meson: axg: round audio system master clocks down

2018-08-27 Thread Jerome Brunet
On Wed, 2018-08-01 at 16:07 +0200, Jerome Brunet wrote: > Some of the master clocks provided by the axg audio clock controller are > system clock (spdifin and pdm sysclk). They are used to clock an internal > DSP of the related devices. Having them constantly rounded down instead > of closest is pr

Re: [PATCH v1 07/10] thermal: tsens: Check if the IP is correctly enabled by firmware

2018-08-27 Thread Amit Kucheria
On Sat, Aug 25, 2018 at 5:00 AM Eduardo Valentin wrote: > > On Thu, Aug 09, 2018 at 06:02:39PM +0530, Amit Kucheria wrote: > > The SROT registers are initialised by the secure firmware at boot. We > > don't have write access to the registers. Check if the block is enabled > > before continuing. >

Re: [PATCH 2/2] clk: pmc-atom: use devm_kstrdup_const()

2018-08-27 Thread Mike Rapoport
On Mon, Aug 27, 2018 at 02:58:46PM +0200, Bartosz Golaszewski wrote: > 2018-08-27 14:52 GMT+02:00 Mike Rapoport : > > On Mon, Aug 27, 2018 at 02:28:45PM +0200, Bartosz Golaszewski wrote: > >> 2018-08-27 12:39 GMT+02:00 Mike Rapoport : > >> > On Mon, Aug 27, 2018 at 10:21:01AM +0200, Bartosz Golasze

Re: [PATCH 2/2] clk: meson-g12a: Add AO Clock controller driver

2018-08-27 Thread Jerome Brunet
On Fri, 2018-08-24 at 21:34 +0800, Jian Hu wrote: > > > > I am confued about aoclk81's parent clocks. > > I can not get the example of axg audio clock driver, Could you provide > the link? Had it merged into clk-meson.git? Yes and mainline as well : drivers/clk/meson/axg-audio.c Basically thi

Re: [PATCH v1 1/1] Bluetooth: hci_qca: Add poweroff support during hci down for wcn3990

2018-08-27 Thread Balakrishna Godavarthi
Hi Marcel, On 2018-08-25 00:20, Marcel Holtmann wrote: Hi Balakrishna, This patch enables power off support for hci down and power on support for hci up. As wcn3990 power sources are ignited by regulators, we will turn off them during hci down, i.e. an complete power off of wcn3990. So while

Re: [PATCH] clk: meson-axg: pcie: drop the mpll3 clock parent

2018-08-27 Thread Jerome Brunet
On Wed, 2018-08-01 at 12:16 +, Yixun Lan wrote: > We found the PCIe driver doesn't really work with > the mpll3 clock which is actually reserved for debug, > So drop it from the mux list. > > Fixes: 33b89db68236 ("clk: meson-axg: add clocks required by pcie driver") > Tested-by: Jianxin Qin >

<    1   2   3   4   5   6   7   >