Re: [PATCH v8 09/26] kernel/cpu_pm: Manage runtime PM in the idle path for CPUs

2018-08-06 Thread Rafael J. Wysocki
On Fri, Aug 3, 2018 at 1:42 PM, Ulf Hansson wrote: > [...] > >>> >>> Assuming that I have got that right, there are concerns, mostly regarding >>> patch [07/26], but I will reply to that directly. >> >> Well, I haven't got that right, so never mind. >> >> There are a few minor things to address,

Re: [PATCH v5 09/14] sched: Add over-utilization/tipping point indicator

2018-08-06 Thread Dietmar Eggemann
On 08/06/2018 10:40 AM, Vincent Guittot wrote: On Fri, 3 Aug 2018 at 17:55, Quentin Perret wrote: On Friday 03 Aug 2018 at 15:49:24 (+0200), Vincent Guittot wrote: On Fri, 3 Aug 2018 at 10:18, Quentin Perret wrote: On Friday 03 Aug 2018 at 09:48:47 (+0200), Vincent Guittot wrote: On Thu,

[PATCH v1] ARM: arm: configs: imx_v6_v7: add CONFIG_FW_LOADER_USER_HELPER

2018-08-06 Thread Robin Gong
To support loading sdma firmware automatically from rootfs, enable CONFIG_FW_LOADER_USER_HELPER/CONFIG_FW_LOADER_USER_HELPER_FALLBACK. Please get sdma firmware from below link and put it into rootfs entry -- /lib/firmware/imx/sdma/:

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

2018-08-06 Thread Vincent Guittot
Hi Valentin, On Tue, 31 Jul 2018 at 14:33, Valentin Schneider wrote: > > Hi, > > On 31/07/18 13:17, Vincent Guittot wrote: > > On Fri, 6 Jul 2018 at 16:31, Morten Rasmussen > > wrote: > >> > >> On Fri, Jul 06, 2018 at 12:18:17PM +0200, Vincent Guittot wrote: > >>> [...] > >> > >> Scheduling

Re: [PATCH v5 09/14] sched: Add over-utilization/tipping point indicator

2018-08-06 Thread Vincent Guittot
On Mon, 6 Aug 2018 at 11:43, Quentin Perret wrote: > > On Monday 06 Aug 2018 at 10:40:46 (+0200), Vincent Guittot wrote: > > On Fri, 3 Aug 2018 at 17:55, Quentin Perret wrote: > > For every new task, the cpu selection is done assuming it's a heavy > > task with the max possible load_avg, and it

Re: [PATCH 2/2] pinctrl: ocelot: add support for interrupt controller

2018-08-06 Thread Linus Walleij
Hi Quentin, sorry for delays! On Wed, Jul 25, 2018 at 2:27 PM Quentin Schulz wrote: > This GPIO controller can serve as an interrupt controller as well on the > GPIOs it handles. > > An interrupt is generated whenever a GPIO line changes and the > interrupt for this GPIO line is enabled. This

Re: WARNING in try_charge

2018-08-06 Thread syzbot
Hello, syzbot has tested the proposed patch and the reproducer did not trigger crash: Reported-and-tested-by: syzbot+bab151e82a4e973fa...@syzkaller.appspotmail.com Tested on: commit: 8c8399e0a3fb Add linux-next specific files for 20180806 git tree: linux-next kernel config

Re: WARNING in try_charge

2018-08-06 Thread Dmitry Vyukov
On Mon, Aug 6, 2018 at 1:02 PM, Michal Hocko wrote: >> >> > More interesting stuff is higher in the kernel log >> >> > : [ 366.435015] >> >> > oom-kill:constraint=CONSTRAINT_MEMCG,nodemask=(null),cpuset=/,mems_allowed=0,oom_memcg=/ile0,task_memcg=/ile0,task=syz-executor3,pid=23766,uid=0 >> >> >

Re: INFO: task hung in generic_file_write_iter

2018-08-06 Thread Tetsuo Handa
On 2018/08/06 19:09, Jan Kara wrote: >> syzbot reproduced this problem ( >> https://syzkaller.appspot.com/text?tag=CrashLog=11f2fc4440 ) . >> It says that grow_dev_page() is returning 1 but __find_get_block() is >> failing forever. Any idea? So far syzbot reproduced 7 times, and all reports

Re: [PATCH 17/20] perf annotate: Make local period the default percent type

2018-08-06 Thread Arnaldo Carvalho de Melo
Em Sat, Aug 04, 2018 at 03:05:18PM +0200, Jiri Olsa escreveu: > Currently we display the percentages in annotation output > based on number of samples hits. Switching it to period > based percentage by default, because it corresponds more > to the time spent on the line. Thanks, tested, applied.

Re: [PATCH 16/20] perf annotate: Add support to togle percent type

2018-08-06 Thread Arnaldo Carvalho de Melo
Em Sat, Aug 04, 2018 at 03:05:17PM +0200, Jiri Olsa escreveu: > Adding new key bindings to togle percent type/base > in annotation UI browser: Thanks, tested, nice! Applied. - Arnaldo

Re: [PATCH 18/20] perf annotate: Display percent type in stdio output

2018-08-06 Thread Arnaldo Carvalho de Melo
Em Sat, Aug 04, 2018 at 03:05:19PM +0200, Jiri Olsa escreveu: > In following patches we will allow to switch percent type > even for stdio annotation outputs. Adding the percent type > value into the annotation outputs title. > > $ perf annotate --stdio >Percent | Sou ...

Re: [PATCH] firmware: coreboot: Let OF core populate platform device

2018-08-06 Thread Julius Werner
Thanks for the quick fix! Reviewed-by: Julius Werner

Re: [PATCH 19/20] perf annotate: Add --percent-type option

2018-08-06 Thread Arnaldo Carvalho de Melo
Em Sat, Aug 04, 2018 at 03:05:20PM +0200, Jiri Olsa escreveu: > Adding --percent-type option to set annotation percent type > from following choices: > global-period, local-period, global-hits, local-hits > > Examples: > $ perf annotate --percent-type period-local --stdio | head -1 >

Re: [PATCH 19/20] perf annotate: Add --percent-type option

2018-08-06 Thread Arnaldo Carvalho de Melo
Em Mon, Aug 06, 2018 at 04:26:25PM +0200, Jiri Olsa escreveu: > On Mon, Aug 06, 2018 at 10:49:12PM +0900, Namhyung Kim wrote: > > On Sat, Aug 04, 2018 at 03:05:20PM +0200, Jiri Olsa wrote: > > > The local/global keywords set if the percentage is computed > > > in the scope of the function (local)

Re: [PATCH 2/3] x86, perf: Add a separate Arch Perfmon v4 PMI handler

2018-08-06 Thread Peter Zijlstra
On Mon, Aug 06, 2018 at 10:23:42AM -0700, kan.li...@linux.intel.com wrote: > @@ -2044,6 +2056,14 @@ static void intel_pmu_disable_event(struct perf_event > *event) > if (unlikely(event->attr.precise_ip)) > intel_pmu_pebs_disable(event); > > + /* > + * We could

Re: [alsa-devel] [PATCH 9/9] ALSA: intel_hdmi: remove redundant variable cfg_val

2018-08-06 Thread Pierre-Louis Bossart
On 8/1/18 6:00 AM, Takashi Iwai wrote: On Wed, 01 Aug 2018 12:47:42 +0200, Colin King wrote: From: Colin Ian King Variable cfg_val is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: warning: variable 'cfg_val' set but not used

Re: [PATCH 3/3] perf/x86/intel: Add quirk for Goldmont Plus

2018-08-06 Thread Peter Zijlstra
On Mon, Aug 06, 2018 at 10:23:43AM -0700, kan.li...@linux.intel.com wrote: > +static bool intel_glk_counter_freezing_broken(int cpu) > case INTEL_FAM6_ATOM_GEMINI_LAKE: > + x86_add_quirk(intel_counter_freezing_quirk); We really should fix that ATOM naming instead of making it

Re: WARNING in try_charge

2018-08-06 Thread Michal Hocko
On Mon 06-08-18 20:13:39, Michal Hocko wrote: > I simply do not see how this is possible. Let's try with the following > extended debugging patch. > > #syz test: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > 116b181bb646afedd770985de20a68721bdb2648 > > diff --git

Re: [PATCH v5] PCI: Check for PCIe downtraining conditions

2018-08-06 Thread Alex_Gagniuc
On 08/05/2018 02:06 AM, Tal Gilboa wrote: > On 7/31/2018 6:10 PM, Alex G. wrote: >> On 07/31/2018 01:40 AM, Tal Gilboa wrote: >> [snip] >> @@ -2240,6 +2258,9 @@ static void pci_init_capabilities(struct >> pci_dev *dev) >>   /* Advanced Error Reporting */ >>  

Re: [PATCH] vfs: fix statfs64() returning impossible EOVERFLOW for 64-bit f_files

2018-08-06 Thread Linus Torvalds
On Mon, Aug 6, 2018 at 10:06 AM Al Viro wrote: > > That leaves us with f_bsize and f_frsize (the latter defaulting to the > former). > Hugetlbfs can put greater than 4Gb values in there, for really huge pages. > And that's the only thing worth checking in there. > > So the whole

Re: [PATCH v5 05/12] PM / devfreq: Add support for policy notifiers

2018-08-06 Thread Matthias Kaehlcke
Hi Chanwoo, On Fri, Aug 03, 2018 at 08:56:57AM +0900, Chanwoo Choi wrote: > Hi Matthias, > > On 2018년 08월 03일 08:13, Matthias Kaehlcke wrote: > > Hi Chanwoo, > > > > On Thu, Aug 02, 2018 at 10:58:59AM +0900, Chanwoo Choi wrote: > >> Hi Matthias, > >> > >> On 2018년 08월 02일 02:08, Matthias

Re: [PATCH 20/20] perf report: Add --percent-type option

2018-08-06 Thread Arnaldo Carvalho de Melo
Em Sat, Aug 04, 2018 at 03:05:21PM +0200, Jiri Olsa escreveu: > Set annotation percent type from following choices: > global-period, local-period, global-hits, local-hits > > With following report option setup the percent type will be > passed to annotation browser: > > $ perf report

[PATCH] spi: orion: cosmetics - alias long direct_access variables

2018-08-06 Thread Kosta Zertsekel
This change increases the source code readability. Instead of using `spi->child[cs].direct_access.XXX` use `dacc->XXX`. Instead of using `orion_spi->child[cs].direct_access.vaddr` use `vaddr`. Signed-off-by: Kosta Zertsekel --- drivers/spi/spi-orion.c | 22 +++--- 1 file

[PATCH v3 1/6] i2c: designware: use generic table matching

2018-08-06 Thread Alexandre Belloni
Switch to device_get_match_data in probe to match the device specific data instead of using the acpi specific function. Suggested-by: Andy Shevchenko Signed-off-by: Alexandre Belloni --- Changes in v3: - removed unused variable - switched to uintptr_t for the cast

[PATCH v3 3/6] i2c: designware: allow IP specific sda_hold_time

2018-08-06 Thread Alexandre Belloni
Because some old designware IPs were not supporting setting an SDA hold time, vendors developed their own solution. Add a way for the final driver to provide its own SDA hold time handling. Signed-off-by: Alexandre Belloni Reviewed-by: Andy Shevchenko ---

[PATCH v3 6/6] MIPS: dts: mscc: enable i2c on ocelot_pcb123

2018-08-06 Thread Alexandre Belloni
Enable the i2c controller on ocelot PCB123. While there are no i2c devices on the board itself, it can be used to control the SFP transceivers. Signed-off-by: Alexandre Belloni --- arch/mips/boot/dts/mscc/ocelot_pcb123.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH v3 4/6] i2c: designware: add MSCC Ocelot support

2018-08-06 Thread Alexandre Belloni
The Microsemi Ocelot I2C controller is a designware IP. It also has a second set of registers to allow tweaking SDA hold time and spike filtering. Cc: Rob Herring Reviewed-by: Andy Shevchenko Signed-off-by: Alexandre Belloni --- .../bindings/i2c/i2c-designware.txt | 9 -

[PATCH v3 5/6] MIPS: dts: mscc: Add i2c on ocelot

2018-08-06 Thread Alexandre Belloni
Ocelot has an i2c controller, add it. There is only one possible pinmux configuration so add it as well. Signed-off-by: Alexandre Belloni --- arch/mips/boot/dts/mscc/ocelot.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/mips/boot/dts/mscc/ocelot.dtsi

[PATCH v3 2/6] i2c: designware: move #ifdef CONFIG_OF to the top

2018-08-06 Thread Alexandre Belloni
Move the #ifdef CONFIG_OF section to the top of the file, after the ACPI section so functions defined there can be used in dw_i2c_plat_probe. Reviewed-by: Andy Shevchenko Signed-off-by: Alexandre Belloni --- drivers/i2c/busses/i2c-designware-platdrv.c | 16 1 file changed, 8

[PATCH v3 0/6] Add support for MSCC Ocelot i2c

2018-08-06 Thread Alexandre Belloni
Hello, Because the designware IP was not able to handle the SDA hold time before version 1.11a, MSCC has its own implementation. Add support for it and then add i2c on ocelot boards. I would expect patches 1 to 4 to go through the i2c tree and 5-6 through the mips tree once patch 4 has been

Re: WARNING in try_charge

2018-08-06 Thread Michal Hocko
The debugging patch was wrong but I guess I see it finally. It's a race : [ 72.901666] Memory cgroup out of memory: Kill process 6584 (syz-executor1) score 55 or sacrifice child : [ 72.917037] Killed process 6584 (syz-executor1) total-vm:37704kB, anon-rss:2140kB, file-rss:0kB,

Re: [PATCH] platform/x86: acer-wmi: use true and false for boolean values

2018-08-06 Thread Andy Shevchenko
On Mon, Aug 6, 2018 at 7:42 PM, Joe Perches wrote: > On Mon, 2018-08-06 at 16:41 +, David Laight wrote: >> From: Andy Shevchenko >> > Sent: 05 August 2018 11:26 >> > > static bool has_cap(u32 cap) >> > > { >> > > if ((interface->capability & cap) != 0) >> > > - return

Re: [PATCH] spi: orion: cosmetics - alias long direct_access variables

2018-08-06 Thread Andrew Lunn
> @@ -683,6 +683,7 @@ static int orion_spi_probe(struct platform_device *pdev) > > /* Scan all SPI devices of this controller for direct mapped devices */ > for_each_available_child_of_node(pdev->dev.of_node, np) { > + struct orion_direct_acc *dacc; I would prefer

Re: WARNING in try_charge

2018-08-06 Thread syzbot
Hello, syzbot has tested the proposed patch and the reproducer did not trigger crash: Reported-and-tested-by: syzbot+bab151e82a4e973fa...@syzkaller.appspotmail.com Tested on: commit: 116b181bb646 Add linux-next specific files for 20180803 git tree:

Re: [LKP] [mm, oom] c1e4c54f9c: BUG:KASAN:null-ptr-deref_in_d

2018-08-06 Thread Michal Hocko
On Sun 05-08-18 11:41:50, 禹舟键 wrote: > Hi Michal and David, > AFAICS, the null pointer is the task_struct of p in the dump_header. > Why don't we just add a if before printing the victim task's > informaiton. See

Re: [PATCH] Input: cros_ec_keyb: Remove check before calling pm_wakeup_event.

2018-08-06 Thread Dmitry Torokhov
On Sun, Aug 5, 2018 at 10:29 PM Marek Szyprowski wrote: > > Hi Ravi, > > On 2018-08-03 18:53, Ravi Chandra Sadineni wrote: > > Understood. I am trying to reproduce this issue locally. Wanted to > > know the version of the kernel so I can give a try. Marek, can you > > please confirm the kernel

Re: linux-next: manual merge of the kvm tree with the tip tree

2018-08-06 Thread Tianyu Lan
Hi Stephen: Thanks for fix. I will discuss with maintainer about how to deal with the issue. On 8/6/2018 1:12 PM, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the kvm tree got a conflict in: > >arch/x86/include/asm/trace/hyperv.h > > between commit: > >

RE: [PATCH v4 2/2] mmc: host: iproc: Add ACPI support to IPROC SDHCI

2018-08-06 Thread Hunter, Adrian
Acked-by: Adrian Hunter > -Original Message- > From: Srinath Mannam [mailto:srinath.man...@broadcom.com] > Sent: Sunday, August 5, 2018 10:53 AM > To: Ulf Hansson ; Hunter, Adrian > ; Ray Jui ; Scott Branden > ; vikram.prak...@broadcom.com > Cc: bcm-kernel-feedback-l...@broadcom.com;

Re: [PATCH 0/2] dt: thermal: Fix broken cooling-maps

2018-08-06 Thread Zhang Rui
On 五, 2018-08-03 at 14:10 +0530, Viresh Kumar wrote: > On 31-07-18, 14:00, Zhang Rui wrote: > > > > I suppose this patch should go via Eduardo' tree. > > Eduardo, can you please take a look at this patch set? > Zhang, > > Since Eduardo isn't replying, will it be possible for you to pick it > up

[PATCH 2/2] soc: imx: gpcv2: make pgc driver more generic for other i.MX platforms

2018-08-06 Thread Anson Huang
i.MX8MQ and i.MX8MM share same gpc module with i.MX7D, they can reuse gpcv2 pgc driver for power domain control, this patch renames all functions and structure definitions started with "imx7" to "imx", and check machine type to pass platform specific power domain data for power domain driver, thus

[PATCH 1/2] soc: imx: gpc: use A_CORE instread of A7 for more i.MX platforms

2018-08-06 Thread Anson Huang
gpcv2 driver is NOT just used on i.MX7D which has Cortex-A7 cores, but also on i.MX8MQ/i.MX8MM platforms which use Cortex-A53 cores, so let's use A_CORE instread of A7 to avoid confusion. Signed-off-by: Anson Huang --- drivers/soc/imx/gpcv2.c | 20 ++-- 1 file changed, 10

[PATCH v2] resource: Merge resources on a node when hot-adding memory

2018-08-06 Thread Rashmica Gupta
When hot-removing memory release_mem_region_adjustable() splits iomem resources if they are not the exact size of the memory being hot-deleted. Adding this memory back to the kernel adds a new resource. Eg a node has memory 0x0 - 0xf. Offlining and hot-removing 1GB from 0xf4000

Re: [PATCH v4 1/2] leds: core: Introduce LED pattern trigger

2018-08-06 Thread Pavel Machek
Hi! > > In current implementation this file on read returns the number > > of remaining repeat intervals. I'd add that to this description. > > I saw Pavel's comments that he did not suggest do this. So I will keep > the original description? If that is accepted, the code should return

[PATCH] misc: lkdtm: fixed static variable initialization

2018-08-06 Thread Parth Y Shah
Resolved "ERROR: do not initialise statics to 0" Signed-off-by: Parth Y Shah --- drivers/misc/lkdtm/usercopy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/lkdtm/usercopy.c b/drivers/misc/lkdtm/usercopy.c index 9725aed..d8157b8 100644 ---

Re: [PATCH v2 14/18] serial: intel: Add CCF support

2018-08-06 Thread Wu, Songjun
On 8/5/2018 5:03 AM, Arnd Bergmann wrote: On Sat, Aug 4, 2018 at 2:43 PM, Greg Kroah-Hartman wrote: On Sat, Aug 04, 2018 at 12:54:22PM +0200, Hauke Mehrtens wrote: On 08/03/2018 12:30 PM, Greg Kroah-Hartman wrote: On Fri, Aug 03, 2018 at 03:33:38PM +0800, Wu, Songjun wrote: This patch

Re: [PATCH] Input: cros_ec_keyb: Remove check before calling pm_wakeup_event.

2018-08-06 Thread Marek Szyprowski
Hi Dmitry On 2018-08-06 08:16, Dmitry Torokhov wrote: > On Sun, Aug 5, 2018 at 10:29 PM Marek Szyprowski > wrote: >> Hi Ravi, >> >> On 2018-08-03 18:53, Ravi Chandra Sadineni wrote: >>> Understood. I am trying to reproduce this issue locally. Wanted to >>> know the version of the kernel so I can

RE: [External] Re: [PATCH] ACPI: nfit: return -ENODEV if fail to find NFIT at startup

2018-08-06 Thread Ocean HY1 He
> -Original Message- > From: Verma, Vishal L > Sent: Saturday, August 04, 2018 1:12 AM > To: Williams, Dan J ; ross.zwis...@linux.intel.com; > oceanh...@gmail.com; Jiang, Dave ; l...@kernel.org; > r...@rjwysocki.net > Cc: linux-kernel@vger.kernel.org; linux-nvd...@lists.01.org; linux- >

Re: [PATCH v2 14/18] serial: intel: Add CCF support

2018-08-06 Thread Geert Uytterhoeven
Hi Songjun, On Mon, Aug 6, 2018 at 9:15 AM Wu, Songjun wrote: > On 8/5/2018 5:03 AM, Arnd Bergmann wrote: > > On Sat, Aug 4, 2018 at 2:43 PM, Greg Kroah-Hartman > > wrote: > >> On Sat, Aug 04, 2018 at 12:54:22PM +0200, Hauke Mehrtens wrote: > >>> On 08/03/2018 12:30 PM, Greg Kroah-Hartman

Re: [PATCH v2 15/18] serial: intel: Support more platform

2018-08-06 Thread Wu, Songjun
On 8/5/2018 4:37 PM, Christoph Hellwig wrote: The subject line also seems odd, your are changing deps on the lantiq driver, not some (nonexistent) intel serial driver. Your suggestion is reasonable, it will be changed to "serial: lantiq".

[PATCH 1/3] ASoC: AMD: Make ACP->SYSMEM DMA non circular

2018-08-06 Thread Akshu Agrawal
In capture case we don't want ACP to SYSMEM dma to be circular. This is because if an in place DSP filter is applied to captured output then circular DMA can overwrite the filter value with stale data. Signed-off-by: Akshu Agrawal --- sound/soc/amd/acp-pcm-dma.c | 36

[PATCH v2 2/3] ASoC: AMD: Modified DMA pointer for capture

2018-08-06 Thread Akshu Agrawal
From: "Mukunda, Vijendar" Give position on ACP->SYSMEM DMA channel for the number of bytes that have been transferred on the basis of current descriptor under service. Signed-off-by: Vijendar Mukunda Signed-off-by: Akshu Agrawal --- v2: Fixed position, now position = 0 if on 1st descriptor

[PATCH v2 3/3] ASoC: AMD: Set delay value for the capture case

2018-08-06 Thread Akshu Agrawal
ACP->SYSMEM DMA happens at every I2S->SYSMEM period completion. Thus, there is delay of x frames till I2S->SYSMEM reaches a period length. This delay is communicated to user space. Signed-off-by: Akshu Agrawal --- v2: moved reading of bytes transfered from I2S->ACP to get more accurate delay

Re: [PATCH v4 1/2] leds: core: Introduce LED pattern trigger

2018-08-06 Thread Baolin Wang
Hi Pavel, On 6 August 2018 at 15:09, Pavel Machek wrote: > Hi! > >> > In current implementation this file on read returns the number >> > of remaining repeat intervals. I'd add that to this description. >> >> I saw Pavel's comments that he did not suggest do this. So I will keep >> the original

Re: [PATCH 1/3] ASoC: AMD: Make ACP->SYSMEM DMA non circular

2018-08-06 Thread Agrawal, Akshu
On 8/2/2018 3:26 PM, Mark Brown wrote: > On Thu, Aug 02, 2018 at 12:11:54PM +0530, Akshu Agrawal wrote: >> In capture case we don't want ACP to SYSMEM dma >> to be circular. This is because if an in place DSP >> filter is applied to captured output then circular DMA >> can overwrite the filter

Re: linux-next: manual merge of the userns tree with the vfs tree

2018-08-06 Thread Stephen Rothwell
Hi all, On Wed, 20 Jun 2018 12:39:05 +1000 Stephen Rothwell wrote: > > Today's linux-next merge of the userns tree got a conflict in: > > fs/proc/inode.c > fs/proc/root.c > > between commit: > > 0223e0999be2 ("procfs: Move proc_fill_super() to fs/proc/root.c") > 83cd45075c36 ("proc:

Re: [PATCH] KVM: try __get_user_pages_fast even if not in atomic context

2018-08-06 Thread Xiao Guangrong
On 07/27/2018 11:46 PM, Paolo Bonzini wrote: We are currently cutting hva_to_pfn_fast short if we do not want an immediate exit, which is represented by !async && !atomic. However, this is unnecessary, and __get_user_pages_fast is *much* faster because the regular get_user_pages takes

Re: framebuffer corruption due to overlapping stp instructions on arm64

2018-08-06 Thread Mikulas Patocka
On Sun, 5 Aug 2018, Florian Weimer wrote: > On 08/04/2018 01:04 PM, Mikulas Patocka wrote: > > There's plenty of memcpy's in the graphics stack. No one will be rewriting > > all the graphics drivers because of tiny market share that ARM has in > > desktop computers. So if you refuse to fix

Re: framebuffer corruption due to overlapping stp instructions on arm64

2018-08-06 Thread Ramana Radhakrishnan
On Sun, Aug 5, 2018 at 10:36 PM, Pavel Machek wrote: > Hi! > >> > I tried to use a PCIe graphics card on the MacchiatoBIN board and I hit a >> > strange problem. >> > >> > When I use the links browser in graphics mode on the framebuffer, I get >> > occasional pixel corruption. Links does memcpy,

RE: [PATCH v3 3/3] dmaengine: imx-sdma: allocate max 20 bds for one transfer

2018-08-06 Thread Robin Gong
Hello Lucas, Any comment for my reply? > -Original Message- > From: Robin Gong > Sent: 2018年7月25日 9:25 > To: 'Lucas Stach' ; vk...@kernel.org; > dan.j.willi...@intel.com; s.ha...@pengutronix.de; li...@armlinux.org.uk > Cc: dmaeng...@vger.kernel.org; dl-linux-imx ; >

Re: [PATCH v4 1/2] leds: core: Introduce LED pattern trigger

2018-08-06 Thread Pavel Machek
On Mon 2018-08-06 15:33:12, Baolin Wang wrote: > Hi Pavel, > > On 6 August 2018 at 15:09, Pavel Machek wrote: > > Hi! > > > >> > In current implementation this file on read returns the number > >> > of remaining repeat intervals. I'd add that to this description. > >> > >> I saw Pavel's comments

Re: [PATCH v0] clk: rockchip: Add pclk_rkpwm_pmu to PMU critical clocks in rk3399

2018-08-06 Thread Heiko Stuebner
Hi Levin, Am Samstag, 4. August 2018, 09:31:02 CEST schrieb d...@t-chip.com.cn: > From: Levin Du > > PWM2 is commonly used to control voltage of PWM regulator of VDD_LOG in > RK3399. On the Firefly-RK3399 board, PWM2 outputs 40 KHz square wave > from power on and the VDD_LOG is about 0.9V. When

Re: framebuffer corruption due to overlapping stp instructions on arm64

2018-08-06 Thread Ard Biesheuvel
On 6 August 2018 at 10:02, Mikulas Patocka wrote: > > > On Sun, 5 Aug 2018, Florian Weimer wrote: > >> On 08/04/2018 01:04 PM, Mikulas Patocka wrote: >> > There's plenty of memcpy's in the graphics stack. No one will be rewriting >> > all the graphics drivers because of tiny market share that ARM

Re: [PATCH 2/2] irqchip/gic-v3-its: Move ITS' ->pend_page allocation into an early CPU up callback

2018-08-06 Thread Marc Zyngier
Hi Sebastian, On 18/07/18 16:42, Sebastian Andrzej Siewior wrote: > The AP-GIC-starting callback allocates memory for the ->pend_page while > the CPU is started during boot-up. This callback is invoked on the > target CPU with disabled interrupts. > This does not work on -RT because memory

Re: [PATCH] clocksource: ti-32k: Remove CLOCK_SOURCE_SUSPEND_NONSTOP flag

2018-08-06 Thread Tony Lindgren
Keerthy, * Keerthy [180802 06:39]: > With the introduction of below commit: > > commit 39232ed5a1793f67b11430c43ed8a9ed6e96c6eb > > time: Introduce one suspend clocksource to compensate the suspend time > > The suspend/resume fails on AM437x platforms as the source is not > a non-stop while

Re: [PATCH 0/3] KVM: x86: expose a few new features into VM.

2018-08-06 Thread Liu, Jingqi
Hi Paolo, Do you have any comments for the series ? Thanks Jingqi On 7/10/2018 4:54 PM, Jingqi Liu wrote: A few new features including user wait (umwait, umonitor, tpause) and direct stores (movdiri and movdir64b) will be available in Intel Snow Ridge, and need to be exposed to guest VM. The

Re: [PATCH 1/2] irqchip/gic-v3-its: Make its_lock a raw_spin_lock_t

2018-08-06 Thread Marc Zyngier
On 18/07/18 16:42, Sebastian Andrzej Siewior wrote: > The its_lock lock is held while a new device is added to the list and > during setup while the CPU is booted. Even on -RT the CPU-bootup is > performed with disabled interrupts. > > Make its_lock a raw_spin_lock_t. > > Signed-off-by:

Re: [PATCH] Revert "cpufreq: intel_pstate: Fix ->set_policy() interface for no_turbo"

2018-08-06 Thread Rafael J. Wysocki
On Sat, Aug 4, 2018 at 7:31 PM, Gabriele Mazzotta wrote: > On 04/08/2018 17:29, Gabriele Mazzotta wrote: >> This change does not take into account that some BIOSes change >> MSR_IA32_MISC_ENABLE_TURBO_DISABLE depending on the power source. >> If the turbo is disabled when the system boots,

[PATCH 4/4] aio: allow direct aio poll comletions for keyed wakeups

2018-08-06 Thread Christoph Hellwig
If we get a keyed wakeup for a aio poll waitqueue and wake can acquire the ctx_lock without spinning we can just complete the iocb straight from the wakeup callback to avoid a context switch. Signed-off-by: Christoph Hellwig Tested-by: Avi Kivity --- fs/aio.c | 17 +++-- 1 file

Re: [PATCH 0/2] Fix connector probing deadlocks from RPM bugs

2018-08-06 Thread Daniel Vetter
On Wed, Jul 18, 2018 at 04:56:38PM -0400, Lyude Paul wrote: > This is a trimmed down version of > > https://patchwork.freedesktop.org/series/46637/ > > with all of the review comments addressed. > > The last version of this series had fixes for the i2c and DP aux busses > to ensure that the GPU

Re: [PATCH v4 1/2] leds: core: Introduce LED pattern trigger

2018-08-06 Thread Baolin Wang
On 6 August 2018 at 16:06, Pavel Machek wrote: > On Mon 2018-08-06 15:33:12, Baolin Wang wrote: >> Hi Pavel, >> >> On 6 August 2018 at 15:09, Pavel Machek wrote: >> > Hi! >> > >> >> > In current implementation this file on read returns the number >> >> > of remaining repeat intervals. I'd add

[PATCH 2/4] aio: add a iocb refcount

2018-08-06 Thread Christoph Hellwig
This is needed to prevent races caused by the way the ->poll API works. To avoid introducing overhead for other users of the iocbs we initialize it to zero and only do refcount operations if it is non-zero in the completion path. Signed-off-by: Christoph Hellwig Tested-by: Avi Kivity ---

aio poll V22 (aka 2.0)

2018-08-06 Thread Christoph Hellwig
Hi all, this series adds support for the IOCB_CMD_POLL operation to poll for the readyness of file descriptors using the aio subsystem. The API is based on patches that existed in RHAS2.1 and RHEL3, which means it already is supported by libaio. As our dear leader didn't like the ->poll_mask

[PATCH 3/4] aio: implement IOCB_CMD_POLL

2018-08-06 Thread Christoph Hellwig
Simple one-shot poll through the io_submit() interface. To poll for a file descriptor the application should submit an iocb of type IOCB_CMD_POLL. It will poll the fd for the events specified in the the first 32 bits of the aio_buf field of the iocb. Unlike poll or epoll without EPOLLONESHOT

[PATCH 1/4] timerfd: add support for keyed wakeups

2018-08-06 Thread Christoph Hellwig
This prepares timerfd for use with aio poll. Signed-off-by: Christoph Hellwig Tested-by: Avi Kivity --- fs/timerfd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/timerfd.c b/fs/timerfd.c index cdad49da3ff7..f6c54fd56645 100644 --- a/fs/timerfd.c +++

Re: [PATCH] staging/vc04_services: Fix alignment of function arguments

2018-08-06 Thread Stefan Wahren
Hi, Am 06.08.2018 um 06:07 schrieb Greg Gallagher: Fix warning generated by checkpatch.pl for alignment should match open parenthesis. This is a coding style change only. Signed-off-by: Greg Gallagher --- drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c | 2 +- 1 file changed, 1

Re: [PATCH] stop_machine: Disable preemption after queueing stopper threads

2018-08-06 Thread Pavan Kondeti
Hi Prasad, On Wed, Aug 01, 2018 at 01:07:03AM -0700, Sodagudi Prasad wrote: > On 2018-07-30 14:07, Peter Zijlstra wrote: > >On Mon, Jul 30, 2018 at 10:12:43AM -0700, Sodagudi Prasad wrote: > >>How about including below change as well? Currently, there is > >>no way to > >>identify thread

Re: [RFC PATCH 1/2] checkpatch: Correctly detect git commit references that span 3 lines

2018-08-06 Thread Andrew Donnellan
On 06/08/18 15:07, Joe Perches wrote: The multiple line block code can be difficult to read. I 100% agree! My suggestion is to instead write a subroutine to get the commit description and compare that against the returned git commit description. I'll try and do it up more neatly when I've

Re: [PATCH v5 09/14] sched: Add over-utilization/tipping point indicator

2018-08-06 Thread Vincent Guittot
On Fri, 3 Aug 2018 at 17:55, Quentin Perret wrote: > > On Friday 03 Aug 2018 at 15:49:24 (+0200), Vincent Guittot wrote: > > On Fri, 3 Aug 2018 at 10:18, Quentin Perret wrote: > > > > > > On Friday 03 Aug 2018 at 09:48:47 (+0200), Vincent Guittot wrote: > > > > On Thu, 2 Aug 2018 at 18:59,

Re: framebuffer corruption due to overlapping stp instructions on arm64

2018-08-06 Thread Pavel Machek
On Mon 2018-08-06 09:04:33, Ramana Radhakrishnan wrote: > On Sun, Aug 5, 2018 at 10:36 PM, Pavel Machek wrote: > > Hi! > > > >> > I tried to use a PCIe graphics card on the MacchiatoBIN board and I hit a > >> > strange problem. > >> > > >> > When I use the links browser in graphics mode on the

Re: [PATCH] dd: Invoke one probe retry cycle after every initcall level

2018-08-06 Thread Rafael J. Wysocki
On Fri, Aug 3, 2018 at 12:20 AM, Sodagudi Prasad wrote: >> From: RAFAEL J. WYSOCKI >> Date: Wed, Aug 1, 2018 at 2:21 PM >> Subject: Re: [PATCH] dd: Invoke one probe retry cycle after every >> initcall level >> To: Rishabh Bhatnagar >> Cc: "Rafael J. Wysocki" , Greg Kroah-Hartman >> , Linux

Re: [PATCH v2 2/3] dmaengine: imx-sdma: add memcpy interface

2018-08-06 Thread Sascha Hauer
On Fri, Jul 20, 2018 at 09:40:51AM +, Robin Gong wrote: > > -Original Message- > > From: Sascha Hauer [mailto:s.ha...@pengutronix.de] > > Sent: 2018年7月13日 14:16 > > To: Robin Gong > > Cc: vk...@kernel.org; dan.j.willi...@intel.com; shawn...@kernel.org; Fabio > > Estevam ;

Re: [PATCH] mm: Use special value SHRINKER_REGISTERING instead list_empty() check

2018-08-06 Thread Kirill Tkhai
On 05.08.2018 15:50, Matthew Wilcox wrote: > On Sun, Aug 05, 2018 at 08:30:43AM +0300, Kirill Tkhai wrote: >> On 05.08.2018 03:03, Matthew Wilcox wrote: >>> On Sat, Aug 04, 2018 at 09:42:05PM +0300, Kirill Tkhai wrote: This is exactly the thing the patch makes. Instead of inserting a shrinker

Re: [PATCH RESEND 1/5] spi: imx: Remove duplicate variable assignments

2018-08-06 Thread Sascha Hauer
On Tue, Jul 17, 2018 at 04:31:50PM +0200, Maxime Chevallier wrote: > Some fields in struct spi_imx_data are assigned a different value twice > in a row, in spi_imx_setupxfer. > > Signed-off-by: Maxime Chevallier > --- > drivers/spi/spi-imx.c | 2 -- > 1 file changed, 2 deletions(-)

[GIT PULL] irqchip updates for 4.19

2018-08-06 Thread Marc Zyngier
Hi Thomas, The 4.19 PR is more of a GICv3 special than an actual irqchip PR. It reworks the way we allocate LPIs so that it can be much more fine grained (instead of the allocation in chunks of 32 interrupts that we've used so far). This allows supporting system that have thousands of devices

Re: [PATCH 06/31] usb: usbssp: added template functions used by upper layer.

2018-08-06 Thread Roger Quadros
On 04/08/18 09:37, Pawel Laszczak wrote: >>> Patch adds some functionality for initialization process. >>> It adds to driver usbssp_reset and usbssp_start function. >>> >>> Next elements added are objects usbssp_gadget_ep0_ops, >>> usbssp_gadget_ep_ops and usbssp_gadget_ops. These objects >>>

Re: [PATCH v2 14/18] serial: intel: Add CCF support

2018-08-06 Thread Wu, Songjun
On 8/6/2018 3:20 PM, Geert Uytterhoeven wrote: Hi Songjun, On Mon, Aug 6, 2018 at 9:15 AM Wu, Songjun wrote: On 8/5/2018 5:03 AM, Arnd Bergmann wrote: On Sat, Aug 4, 2018 at 2:43 PM, Greg Kroah-Hartman wrote: On Sat, Aug 04, 2018 at 12:54:22PM +0200, Hauke Mehrtens wrote: On 08/03/2018

[PATCH v3] checkpatch: Check for space after "else" keyword

2018-08-06 Thread Michal Zylowski
Current checkpatch implementation permits notation like: } else{ in kernel code. It looks like oversight and inconsistency in checkpatch rules (e.g. instruction like 'do' is tested). Add regex for checking space after 'else' keyword and trigger error if space is not present. Signed-off-by:

Re: [PATCH] staging:mt29f_spinand: MT29F2G failing as only 16-bit arguments and variables used for addressing.

2018-08-06 Thread Dan Carpenter
On Mon, Aug 06, 2018 at 09:49:01AM +0800, Jheng-Jhong Wu wrote: > So should I change this into a revert patch, or you will revert commit > 6efb21d6d0e7 ("staging:mt29f_spinand: MT29F2G failing as only 16 bits > used for addressing.") by yourself? > Thanks. > Are you asking me? I'm not going to

Re: [PATCH] mm/kasan/kasan_init: use true and false for boolean values

2018-08-06 Thread Dmitry Vyukov
On Sun, Aug 5, 2018 at 12:08 AM, Gustavo A. R. Silva wrote: > Return statements in functions returning bool should use true or false > instead of an integer value. > > This code was detected with the help of Coccinelle. > > Signed-off-by: Gustavo A. R. Silva Hi Gustavo, I don't see this code

Re: [PATCH 8/8] rtc: remove struct rtc_task

2018-08-06 Thread Arnd Bergmann
On Thu, Jul 26, 2018 at 3:42 PM Alexandre Belloni wrote: > > Include rtc_task members directly in rtc_timer member. > > Signed-off-by: Alexandre Belloni > --- > drivers/rtc/interface.c | 8 > include/linux/rtc.h | 9 ++--- > 2 files changed, 6 insertions(+), 11 deletions(-) > >

Re: [PATCH 2/4] clk: qcom: Add clk_rcg2_gfx3d_ops for SDM845

2018-08-06 Thread Amit Nischal
On 2018-08-03 04:14, Stephen Boyd wrote: Quoting Amit Nischal (2018-07-30 04:28:56) On 2018-07-25 12:28, Stephen Boyd wrote: > > Ok. Sounds good! Is the rate range call really needed? It can't be > determined in the PLL code with some table or avoided by making sure > GPU > uses OPP table with

Re: framebuffer corruption due to overlapping stp instructions on arm64

2018-08-06 Thread Ard Biesheuvel
On 6 August 2018 at 10:44, Pavel Machek wrote: > On Mon 2018-08-06 09:04:33, Ramana Radhakrishnan wrote: >> On Sun, Aug 5, 2018 at 10:36 PM, Pavel Machek wrote: >> > Hi! >> > >> >> > I tried to use a PCIe graphics card on the MacchiatoBIN board and I hit >> >> > a >> >> > strange problem. >> >>

Re: [PATCH v2 01/18] MIPS: intel: Add initial support for Intel MIPS SoCs

2018-08-06 Thread Hua Ma
On 8/4/2018 1:49 AM, Paul Burton wrote: Hi Songjun / Hua, On Fri, Aug 03, 2018 at 11:02:20AM +0800, Songjun Wu wrote: From: Hua Ma Add initial support for Intel MIPS interAptiv SoCs made by Intel. This series will add support for the grx500 family. The series allows booting a minimal

[PATCH v2 1/2] pinctrl: tegra: Move drivers registration to arch_init level

2018-08-06 Thread Dmitry Osipenko
There is a bug in regards to deferred probing within the drivers core that causes GPIO-driver to suspend before its users. The bug appears if GPIO-driver probe is getting deferred, which happens after introducing dependency on PINCTRL-driver for the GPIO-driver by defining "gpio-ranges" property

[PATCH v2 2/2] gpio: tegra: Move driver registration to subsys_init level

2018-08-06 Thread Dmitry Osipenko
There is a bug in regards to deferred probing within the drivers core that causes GPIO-driver to suspend before its users. The bug appears if GPIO-driver probe is getting deferred, which happens after introducing dependency on PINCTRL-driver for the GPIO-driver by defining "gpio-ranges" property

Re: WARNING in try_charge

2018-08-06 Thread Michal Hocko
On Sat 04-08-18 06:33:02, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:d1e0b8e0cb7a Add linux-next specific files for 20180725 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=15a1c77040 > kernel config:

Re: [PATCH v1 1/2] pinctrl: tegra: Move drivers registration to arch_init level

2018-08-06 Thread Dmitry Osipenko
On Thursday, 2 August 2018 16:01:24 MSK Dmitry Osipenko wrote: > On Thursday, 2 August 2018 14:11:43 MSK Dmitry Osipenko wrote: > > There is a bug in regards to deferred probing within the drivers core > > that causes GPIO-driver to suspend after its users. The bug appears if > > I meant "before

Re: [PATCH RESEND 4/5] spi: imx: remove unnecessary check in spi_imx_can_dma

2018-08-06 Thread Sascha Hauer
On Tue, Jul 17, 2018 at 04:31:53PM +0200, Maxime Chevallier wrote: > The spi_imx_can_dma function computes the watermark level so that > the transfer will fit in exactly N bursts (without a remainder). > > The smallest watermark level possible being one FIFO entry per burst, we > can't never have

[PATCH RT 22/22] Linux 4.9.115-rt94-rc1

2018-08-06 Thread Julia Cartwright
4.9.115-rt94-rc1 stable review patch. If you have any objection to the inclusion of this patch, let me know. --- 8< --- 8< --- 8< --- --- localversion-rt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/localversion-rt b/localversion-rt index e98a1fe050bd..dcc2fd2ca155 100644

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