Re: [PATCH v3 5/7] PCI: Do not use IORESOURCE_STARTALIGN to identify bridge resources

2016-07-01 Thread Gavin Shan
On Fri, Jul 01, 2016 at 03:04:10PM +0800, Yongji Xie wrote: >Hi Gavin, > >On 2016/7/1 10:34, Gavin Shan wrote: > >>On Thu, Jun 30, 2016 at 06:53:11PM +0800, Yongji Xie wrote: >>>Now we use the IORESOURCE_STARTALIGN to identify bridge resources >>>in __assign_resources_sorted(). That's quite fragile

Re: [PATCH v3 2/7] PCI: Ignore enforced alignment to VF BARs

2016-07-01 Thread Gavin Shan
On Fri, Jul 01, 2016 at 02:40:16PM +0800, Yongji Xie wrote: >Hi Gavin, > >On 2016/7/1 14:05, Gavin Shan wrote: > >>On Fri, Jul 01, 2016 at 01:27:17PM +0800, Yongji Xie wrote: On Thu, Jun 30, 2016 at 06:53:08PM +0800, Yongji Xie wrote: >VF BARs are read-only zeroes according to SRIOV spec, >

Re: [PATCH v3 1/2] clk: Add consumer APIs for discovering possible parent clocks

2016-07-01 Thread Scott Wood
On Fri, 2016-07-01 at 22:53 +0200, Rafael J. Wysocki wrote: > On Friday, July 01, 2016 01:55:46 AM Scott Wood wrote: > > > > On Thu, 2016-06-30 at 15:29 +0200, Rafael J. Wysocki wrote: > > > > > > On Thursday, June 30, 2016 05:46:42 AM Scott Wood wrote: > > > > > > > > > > > > On 06/29/2016 10:

Re: [PATCH v3 1/2] clk: Add consumer APIs for discovering possible parent clocks

2016-07-01 Thread Rafael J. Wysocki
On Friday, July 01, 2016 01:55:46 AM Scott Wood wrote: > On Thu, 2016-06-30 at 15:29 +0200, Rafael J. Wysocki wrote: > > On Thursday, June 30, 2016 05:46:42 AM Scott Wood wrote: > > > > > > On 06/29/2016 10:02 PM, Yuantian Tang wrote: > > > > > > > > > > > > > > -Original Message- > > >

Re: [PATCH v3 2/9] kexec_file: Generalize kexec_add_buffer.

2016-07-01 Thread Thiago Jung Bauermann
Am Freitag, 01 Juli 2016, 17:02:23 schrieb Thiago Jung Bauermann: > Am Freitag, 01 Juli 2016, 14:36:02 schrieb Dave Young: > > On 07/01/16 at 02:51pm, Thiago Jung Bauermann wrote: > > > Am Donnerstag, 30 Juni 2016, 17:43:57 schrieb Dave Young: > > > > On 06/30/16 at 01:42pm, Thiago Jung Bauermann w

Re: [PATCH v3 2/9] kexec_file: Generalize kexec_add_buffer.

2016-07-01 Thread Thiago Jung Bauermann
Am Freitag, 01 Juli 2016, 14:36:02 schrieb Dave Young: > On 07/01/16 at 02:51pm, Thiago Jung Bauermann wrote: > > Am Donnerstag, 30 Juni 2016, 17:43:57 schrieb Dave Young: > > > On 06/30/16 at 01:42pm, Thiago Jung Bauermann wrote: > > > > Am Donnerstag, 30 Juni 2016, 12:49:44 schrieb Thiago Jung Ba

Re: [PATCH v3 2/9] kexec_file: Generalize kexec_add_buffer.

2016-07-01 Thread Dave Young
On 07/01/16 at 02:51pm, Thiago Jung Bauermann wrote: > Am Donnerstag, 30 Juni 2016, 17:43:57 schrieb Dave Young: > > On 06/30/16 at 01:42pm, Thiago Jung Bauermann wrote: > > > Am Donnerstag, 30 Juni 2016, 12:49:44 schrieb Thiago Jung Bauermann: > > > > To be honest I think struct kexec_buf is an im

Re: [PATCH v3 2/9] kexec_file: Generalize kexec_add_buffer.

2016-07-01 Thread Thiago Jung Bauermann
Am Donnerstag, 30 Juni 2016, 17:43:57 schrieb Dave Young: > On 06/30/16 at 01:42pm, Thiago Jung Bauermann wrote: > > Am Donnerstag, 30 Juni 2016, 12:49:44 schrieb Thiago Jung Bauermann: > > > To be honest I think struct kexec_buf is an implementation detail > > > inside > > > kexec_locate_mem_hole,

Re: pasemi: Fix boot failure on 4.7-rc1

2016-07-01 Thread Darren Stevens
Hello Olof On 29/06/2016, Olof Johansson wrote: > I don't see the panic here on a Chitra, at least not on recent -next. > > What config are you building with when you see this? If you are not seeing this on the Chitra, it means that our Nemo patch is causing the problem. I don't know where, as we

Re: device tree passing feature

2016-07-01 Thread Thiago Jung Bauermann
Hi Samuel, Thanks for your response. Am Freitag, 01 Juli 2016, 11:46:21 schrieb Samuel Mendoza-Jonas: > On Thu, 2016-06-30 at 11:27 -0300, Thiago Jung Bauermann wrote: > > I have a question about the petitboot feature which allows the user to > > specify a device tree blob to pass to the target O

Re: [RFC] arm64: kexec_file_load support

2016-07-01 Thread Thiago Jung Bauermann
Am Freitag, 01 Juli 2016, 14:11:12 schrieb AKASHI Takahiro: > I'm not sure whether there is any demand for kexec_file_load > support on arm64, but anyhow I'm working on this and now > my early prototype code does work fine. It is necessary if you want to support loading only signed kernels, and al

Re: [PATCH v5] cpuidle: Fix last_residency division

2016-07-01 Thread Daniel Lezcano
On 07/01/2016 04:24 PM, Shreyas B. Prabhu wrote: Snooze is a poll idle state in powernv and pseries platforms. Snooze has a timeout so that if a cpu stays in snooze for more than target residency of the next available idle state, then it would exit thereby giving chance to the cpuidle governor to

[PATCH v5] cpuidle: Fix last_residency division

2016-07-01 Thread Shreyas B. Prabhu
Snooze is a poll idle state in powernv and pseries platforms. Snooze has a timeout so that if a cpu stays in snooze for more than target residency of the next available idle state, then it would exit thereby giving chance to the cpuidle governor to re-evaluate and promote the cpu to a deeper idle s

Re: [PATCH v2] cxl: Ignore CAPI adapters misplaced in switched slots

2016-07-01 Thread Frederic Barrat
Le 01/07/2016 13:32, Philippe Bergheaud a écrit : One should not attempt to switch a PHB into CAPI mode if there is a switch between the PHB and the adapter. This patch modifies the cxl driver to ignore CAPI adapters misplaced in switched slots. Signed-off-by: Philippe Bergheaud --- This patc

Re: [PATCH v4] cpuidle: Fix last_residency division

2016-07-01 Thread Shreyas B Prabhu
On 07/01/2016 01:36 PM, Daniel Lezcano wrote: > On 06/30/2016 05:37 PM, Nicolas Pitre wrote: >> On Thu, 30 Jun 2016, Daniel Lezcano wrote: >>> +} +} >>> >>> >>> What bothers me with this division is the benefit of adding an extra >>> ultra >>> optimized division by 1000 in cpuidle.h whil

Re: [PATCH v3 3/4] perf annotate: add powerpc support

2016-07-01 Thread Ravi Bangoria
Hi Balbir, On Friday 01 July 2016 06:18 PM, Balbir Singh wrote: On Fri, 2016-07-01 at 14:13 +0530, Ravi Bangoria wrote: Thanks Michael for your suggestion. On Thursday 30 June 2016 11:51 AM, Michael Ellerman wrote: On Thu, 2016-06-30 at 11:44 +0530, Ravi Bangoria wrote: diff --git a/to

Re: [PATCH v4] cpuidle: Fix last_residency division

2016-07-01 Thread Nicolas Pitre
On Fri, 1 Jul 2016, Balbir Singh wrote: > On Fri, 2016-07-01 at 10:06 +0200, Daniel Lezcano wrote: > > On 06/30/2016 05:37 PM, Nicolas Pitre wrote: > > >  > > > On Thu, 30 Jun 2016, Daniel Lezcano wrote: > > [ ... ] > >  > > >  > > > >  > > > > >  > > > > > + if (likely(nsec < DIV_APPROXIMATIO

Re: [PATCH v4] cpuidle: Fix last_residency division

2016-07-01 Thread Nicolas Pitre
On Fri, 1 Jul 2016, Daniel Lezcano wrote: > On 06/30/2016 05:37 PM, Nicolas Pitre wrote: > > On Thu, 30 Jun 2016, Daniel Lezcano wrote: > > [ ... ] > > > > > + if (likely(nsec < DIV_APPROXIMATION_THRESHOLD)) { > > > > + u32 usec = nsec; > > > > + > > > > + usec

Re: [PATCH v3 3/4] perf annotate: add powerpc support

2016-07-01 Thread Balbir Singh
On Fri, 2016-07-01 at 14:13 +0530, Ravi Bangoria wrote: > Thanks Michael for your suggestion. >  > On Thursday 30 June 2016 11:51 AM, Michael Ellerman wrote: > >  > > On Thu, 2016-06-30 at 11:44 +0530, Ravi Bangoria wrote: > > >  > > > diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annot

Re: [PATCH v4] cpuidle: Fix last_residency division

2016-07-01 Thread Balbir Singh
On Fri, 2016-07-01 at 10:06 +0200, Daniel Lezcano wrote: > On 06/30/2016 05:37 PM, Nicolas Pitre wrote: > >  > > On Thu, 30 Jun 2016, Daniel Lezcano wrote: > [ ... ] >  > >  > > >  > > > >  > > > > + if (likely(nsec < DIV_APPROXIMATION_THRESHOLD)) { > > > > + u32 usec = nsec; >

[PATCH v2] cxl: Ignore CAPI adapters misplaced in switched slots

2016-07-01 Thread Philippe Bergheaud
One should not attempt to switch a PHB into CAPI mode if there is a switch between the PHB and the adapter. This patch modifies the cxl driver to ignore CAPI adapters misplaced in switched slots. Signed-off-by: Philippe Bergheaud --- This patch fixes Bz 142217. Changes since v1: - As suggested

Re: [PATCH 2/2] crypto: powerpc: Add POWER8 optimised crc32c

2016-07-01 Thread Herbert Xu
On Fri, Jul 01, 2016 at 08:19:45AM +1000, Anton Blanchard wrote: > From: Anton Blanchard > > Use the vector polynomial multiply-sum instructions in POWER8 to > speed up crc32c. > > This is just over 41x faster than the slice-by-8 method that it > replaces. Measurements on a 4.1 GHz POWER8 show i

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

2016-07-01 Thread Colin Ian King
On 01/07/16 06:27, Stephen Rothwell wrote: > Hi all, > > After merging the powerpc tree, today's linux-next build (powerpc > allyesconfig) failed like this: > > arch/powerpc/kernel/fadump.c: In function 'fadump_invalidate_dump': > arch/powerpc/kernel/fadump.c:1014:2: error: expected ';' before '}

Re: [PATCH] cxl: Ignore CAPI adapters misplaced in switched slots

2016-07-01 Thread Frederic Barrat
Salut Philippe, Le 30/06/2016 13:45, Philippe Bergheaud a écrit : + if (cxl_slot_is_switched(dev)) { + dev_dbg(&dev->dev, "cxl_init_adapter: Ignoring switched slot device\n"); + return -ENODEV; + } I think it would be useful for the user who has insert

Re: [PATCH v3 3/4] perf annotate: add powerpc support

2016-07-01 Thread Ravi Bangoria
Thanks Michael for your suggestion. On Thursday 30 June 2016 11:51 AM, Michael Ellerman wrote: On Thu, 2016-06-30 at 11:44 +0530, Ravi Bangoria wrote: diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index 36a5825..b87eac7 100644 --- a/tools/perf/util/annotate.c +++ b/tools/

Re: [PATCH v2] cxl: Fix bug where AFU disable operation had no effect

2016-07-01 Thread Frederic Barrat
It looks good to me. I can live with the extra 'clear' parameter, because as you say, the approach I had suggested would require more testing, so let's play safe for the time being. And thanks for clarifying/fixing the deactivate paths. Reviewed-by: Frederic Barrat Fred Le 30/06/2016 18:5

Re: [PATCH v4] cpuidle: Fix last_residency division

2016-07-01 Thread Daniel Lezcano
On 06/30/2016 05:37 PM, Nicolas Pitre wrote: On Thu, 30 Jun 2016, Daniel Lezcano wrote: [ ... ] + if (likely(nsec < DIV_APPROXIMATION_THRESHOLD)) { + u32 usec = nsec; + + usec += usec >> 5; + usec = usec >> 10; + + /* Can safely ca

Re: [PATCH v3 5/7] PCI: Do not use IORESOURCE_STARTALIGN to identify bridge resources

2016-07-01 Thread Yongji Xie
Hi Gavin, On 2016/7/1 10:34, Gavin Shan wrote: On Thu, Jun 30, 2016 at 06:53:11PM +0800, Yongji Xie wrote: Now we use the IORESOURCE_STARTALIGN to identify bridge resources in __assign_resources_sorted(). That's quite fragile. We may also set flag IORESOURCE_STARTALIGN for SR-IOV resources in