Re: [PATCH v2 3/5] x86: Kconfig: Remove CONFIG_NODES_SPAN_OTHER_NODES

2019-08-06 Thread Hoan Tran OS
Hi Thomas, On 7/15/19 11:43 AM, Thomas Gleixner wrote: > On Thu, 11 Jul 2019, Hoan Tran OS wrote: > >> Remove CONFIG_NODES_SPAN_OTHER_NODES as it's enabled >> by default with NUMA. > > As I told you before this does not mention that the option is now

Re: [PATCH v2 0/5] mm: Enable CONFIG_NODES_SPAN_OTHER_NODES by default for NUMA

2019-07-30 Thread Hoan Tran OS
Hi, On 7/30/19 1:14 AM, Michal Hocko wrote: > [Sorry for a late reply] > > On Mon 15-07-19 17:55:07, Hoan Tran OS wrote: >> Hi, >> >> On 7/12/19 10:00 PM, Michal Hocko wrote: > [...] >>> Hmm, I thought this was selectable. But I am obviously wrong here.

Re: [PATCH v2 0/5] mm: Enable CONFIG_NODES_SPAN_OTHER_NODES by default for NUMA

2019-07-15 Thread Hoan Tran OS
Hi, On 7/12/19 10:00 PM, Michal Hocko wrote: > On Fri 12-07-19 15:37:30, Will Deacon wrote: >> Hi all, >> >> On Fri, Jul 12, 2019 at 02:12:23PM +0200, Michal Hocko wrote: >>> On Fri 12-07-19 10:56:47, Hoan Tran OS wrote: >>> [...] >>>> It woul

Re: [PATCH v2 0/5] mm: Enable CONFIG_NODES_SPAN_OTHER_NODES by default for NUMA

2019-07-12 Thread Hoan Tran OS
Hi, On 7/12/19 2:02 PM, Michal Hocko wrote: > On Thu 11-07-19 23:25:44, Hoan Tran OS wrote: >> In NUMA layout which nodes have memory ranges that span across other nodes, >> the mm driver can detect the memory node id incorrectly. >> >> For example, with layout below &

[PATCH v2 4/5] sparc: Kconfig: Remove CONFIG_NODES_SPAN_OTHER_NODES

2019-07-11 Thread Hoan Tran OS
Remove CONFIG_NODES_SPAN_OTHER_NODES as it's enabled by default with NUMA. Signed-off-by: Hoan Tran --- arch/sparc/Kconfig | 9 - 1 file changed, 9 deletions(-) diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig index 26ab6f5..13449ea 100644 --- a/arch/sparc/Kconfig +++ b/arch/

[PATCH v2 5/5] s390: Kconfig: Remove CONFIG_NODES_SPAN_OTHER_NODES

2019-07-11 Thread Hoan Tran OS
Remove CONFIG_NODES_SPAN_OTHER_NODES as it's enabled by default with NUMA. Signed-off-by: Hoan Tran --- arch/s390/Kconfig | 8 1 file changed, 8 deletions(-) diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig index 109243f..788a8e9 100644 --- a/arch/s390/Kconfig +++ b/arch

[PATCH v2 0/5] mm: Enable CONFIG_NODES_SPAN_OTHER_NODES by default for NUMA

2019-07-11 Thread Hoan Tran OS
address: Node 1 address: This layout could occur on any architecture. This patch enables CONFIG_NODES_SPAN_OTHER_NODES by default for NUMA to fix this issue. V2: * Revise the patch description Hoan Tran (5): mm: Enable CONFIG_NODES_SPAN_OTHER_NODES by

[PATCH v2 3/5] x86: Kconfig: Remove CONFIG_NODES_SPAN_OTHER_NODES

2019-07-11 Thread Hoan Tran OS
Remove CONFIG_NODES_SPAN_OTHER_NODES as it's enabled by default with NUMA. Signed-off-by: Hoan Tran --- arch/x86/Kconfig | 9 - 1 file changed, 9 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 2bbbd4d..fa9318c 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kc

[PATCH v2 2/5] powerpc: Kconfig: Remove CONFIG_NODES_SPAN_OTHER_NODES

2019-07-11 Thread Hoan Tran OS
Remove CONFIG_NODES_SPAN_OTHER_NODES as it's enabled by default with NUMA. Signed-off-by: Hoan Tran --- arch/powerpc/Kconfig | 9 - 1 file changed, 9 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 8c1c636..bdde8bc 100644 --- a/arch/powerpc/Kconfig

[PATCH v2 1/5] mm: Enable CONFIG_NODES_SPAN_OTHER_NODES by default for NUMA

2019-07-11 Thread Hoan Tran OS
address: Node 1 address: This layout could occur on any architecture. This patch enables CONFIG_NODES_SPAN_OTHER_NODES by default for NUMA to fix this issue. Signed-off-by: Hoan Tran --- mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

Re: [PATCH 3/5] x86: Kconfig: Remove CONFIG_NODES_SPAN_OTHER_NODES

2019-07-09 Thread Hoan Tran OS
Hi Thomas, On 7/10/19 12:58 PM, Thomas Gleixner wrote: > Hoan, > > On Wed, 10 Jul 2019, Hoan Tran OS wrote: >> On 6/25/19 3:45 PM, Thomas Gleixner wrote: >>> On Tue, 25 Jun 2019, Hoan Tran OS wrote: >>>> @@ -1567,15 +1567,6 @@ config X86_

Re: [PATCH 3/5] x86: Kconfig: Remove CONFIG_NODES_SPAN_OTHER_NODES

2019-07-09 Thread Hoan Tran OS
Hi Thomas, Thanks for you comments On 6/25/19 3:45 PM, Thomas Gleixner wrote: > Hoan, > > On Tue, 25 Jun 2019, Hoan Tran OS wrote: > > Please use 'x86/Kconfig: ' as prefix. > >> This patch removes CONFIG_NODES_SPAN_OTHER_NODES as it's >> enabled

[PATCH 5/5] s390: Kconfig: Remove CONFIG_NODES_SPAN_OTHER_NODES

2019-06-25 Thread Hoan Tran OS
This patch removes CONFIG_NODES_SPAN_OTHER_NODES as it's enabled by default with NUMA. Signed-off-by: Hoan Tran --- arch/s390/Kconfig | 8 1 file changed, 8 deletions(-) diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig index 109243f..788a8e9 100644 --- a/arch/s390/Kconfig +++ b

[PATCH 4/5] sparc: Kconfig: Remove CONFIG_NODES_SPAN_OTHER_NODES

2019-06-25 Thread Hoan Tran OS
This patch removes CONFIG_NODES_SPAN_OTHER_NODES as it's enabled by default with NUMA. Signed-off-by: Hoan Tran --- arch/sparc/Kconfig | 9 - 1 file changed, 9 deletions(-) diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig index 26ab6f5..13449ea 100644 --- a/arch/sparc/Kconfig

[PATCH 3/5] x86: Kconfig: Remove CONFIG_NODES_SPAN_OTHER_NODES

2019-06-25 Thread Hoan Tran OS
This patch removes CONFIG_NODES_SPAN_OTHER_NODES as it's enabled by default with NUMA. Signed-off-by: Hoan Tran --- arch/x86/Kconfig | 9 - 1 file changed, 9 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 2bbbd4d..fa9318c 100644 --- a/arch/x86/Kconfig +++ b

[PATCH 2/5] powerpc: Kconfig: Remove CONFIG_NODES_SPAN_OTHER_NODES

2019-06-25 Thread Hoan Tran OS
This patch removes CONFIG_NODES_SPAN_OTHER_NODES as it's enabled by default with NUMA. Signed-off-by: Hoan Tran --- arch/powerpc/Kconfig | 9 - 1 file changed, 9 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 8c1c636..bdde8bc 100644 --- a/arch/po

[PATCH 0/5] Enable CONFIG_NODES_SPAN_OTHER_NODES by default for NUMA

2019-06-25 Thread Hoan Tran OS
This patch set enables CONFIG_NODES_SPAN_OTHER_NODES by default for NUMA. The original patch [1] [1] arm64: Kconfig: Enable NODES_SPAN_OTHER_NODES config for NUMA https://www.spinics.net/lists/arm-kernel/msg737306.html Hoan Tran (5): mm: Enable CONFIG_NODES_SPAN_OTHER_NODES by default for NUMA

[PATCH 1/5] mm: Enable CONFIG_NODES_SPAN_OTHER_NODES by default for NUMA

2019-06-25 Thread Hoan Tran OS
This patch enables CONFIG_NODES_SPAN_OTHER_NODES by default for NUMA. As some NUMA nodes have memory ranges that span other nodes. Even though a pfn is valid and between a node's start and end pfns, it may not reside on that node. Signed-off-by: Hoan Tran --- mm/page_alloc.c | 2 +- 1

Re: [PATCH] arm64: Kconfig: Enable NODES_SPAN_OTHER_NODES config for NUMA

2019-06-25 Thread Hoan Tran OS
Hi Will, On 6/25/19 3:12 AM, Will Deacon wrote: > On Mon, Jun 24, 2019 at 02:38:28PM +0000, Hoan Tran OS wrote: >> Some NUMA nodes have memory ranges that span other nodes. >> Even though a pfn is valid and between a node's start and end pfns, >> it may not reside on t

[PATCH] arm64: Kconfig: Enable NODES_SPAN_OTHER_NODES config for NUMA

2019-06-24 Thread Hoan Tran OS
Some NUMA nodes have memory ranges that span other nodes. Even though a pfn is valid and between a node's start and end pfns, it may not reside on that node. This patch enables NODES_SPAN_OTHER_NODES config for NUMA to support this type of NUMA layout. Signed-off-by: Hoan Tran --- arch/

Re: [PATCH] MAINTAINERS: drop Hoan Tran, e-mail is bouncing

2019-02-08 Thread z-Hoan Tran - OS
ver he was maintaining. >> >> Signed-off-by: Thomas Petazzoni > Hoan should we simply change it to: > Hoan Tran ? > > Yours, > Linus Walleij Hi Linus, Sorry for the inconvenience. We're posting a patch to change to the new email. [1] MAINTAINERS: Update Ampere email address https://patchwork.kernel.org/patch/10787557/ Regards Hoan

Re: [PATCH v2] perf: xgene: Add CPU hotplug support

2018-10-02 Thread Hoan Tran
on practices.] > > > Hi Hoan, > > On Wed, Sep 19, 2018 at 06:44:30PM +, Hoan Tran wrote: >> This patch adds CPU hotplug support where the PMU migrates the context to >> another online CPU when its CPU is offline. >> &g

[PATCH v2] perf: xgene: Add CPU hotplug support

2018-09-19 Thread Hoan Tran
ent (l3c0/cycle-count/). /bin/dmesg may provide additional information. No CONFIG_PERF_EVENTS=y kernel support configured? With this patch, when CPU0 is offline, PMU migrates to another online CPU and works on that CPU. Signed-off-by: Hoan Tran --- v2: * Remove the cpuhp instance w

Re: [PATCH] perf: xgene: Add CPU hotplug support

2018-09-19 Thread Hoan Tran
on practices.] > > > On Wed, Aug 15, 2018 at 11:31:35AM -0700, Hoan Tran wrote: >> This patch adds CPU hotplug support where the PMU migrates the context to >> another online CPU when its CPU is offline. >> >> It fixes the be

[PATCH] perf: xgene: Add CPU hotplug support

2018-08-15 Thread Hoan Tran
ent (l3c0/cycle-count/). /bin/dmesg may provide additional information. No CONFIG_PERF_EVENTS=y kernel support configured? With this patch, when CPU0 is offline, PMU migrates to another online CPU and works on that CPU. Signed-off-by: Hoan Tran --- drivers/perf/xgene_pmu.c |

[PATCH] perf: xgene: Fix IOB SLOW PMU parser error

2018-06-06 Thread Hoan Tran
character inside the PMU name. Signed-off-by: Hoan Tran --- drivers/perf/xgene_pmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/perf/xgene_pmu.c b/drivers/perf/xgene_pmu.c index 6bdb1da..0e31f13 100644 --- a/drivers/perf/xgene_pmu.c +++ b/drivers/perf/xgene_pmu.c @@

Re: [PATCH v6] gpio: dwapb: Add support for 1 interrupt per port A GPIO

2018-05-17 Thread Hoan Tran
Hi Lee, On 5/16/18, 11:25 PM, "Lee Jones" wrote: On Wed, 16 May 2018, Hoan Tran wrote: > Hi Phil, > > On 5/11/18, 1:31 AM, "Phil Edworthy" wrote: > > The DesignWare GPIO IP can be configured for either 1 interrupt or 1

Re: [PATCH v6] gpio: dwapb: Add support for 1 interrupt per port A GPIO

2018-05-16 Thread Hoan Tran
platform_get_irq() to get the DT interrupts as they are in the port sub-node and hence do not have an associated platform device. v5: - Rolled ACPI companion code provided by Hoan Tran into this patch. v4: - Use of_irq_get() instead of of_irq_parse_one()+irq_creat

Re: [PATCH v5] gpio: dwapb: Add support for 1 interrupt per port A GPIO

2018-04-26 Thread Hoan Tran
r single interrupt hardware. > > ACPI companion code provided by Hoan Tran . This was tested > on X-Gene by Hoan. > > Signed-off-by: Phil Edworthy > Reviewed-by: Rob Herring > Acked-by: Lee Jones > --- > One point to mention is that I have made it possible for users to h

Re: [PATCH v3] gpio: dwapb: Add support for 1 interrupt per port A GPIO

2018-04-19 Thread Hoan Tran
Hi Phil, On Thu, Apr 19, 2018 at 3:03 AM, Phil Edworthy wrote: > Hi Hoan > > On 18 April 2018 08:03 Hoan Tran wrote: >> On Fri, Apr 13, 2018 at 9:47 AM, Phil Edworthy wrote: >> > On 13 April 2018 17:37 Hoan Tran wrote: >> >> On Fri, Apr 13, 2018 at 1:51

Re: [PATCH v3] gpio: dwapb: Add support for 1 interrupt per port A GPIO

2018-04-18 Thread Hoan Tran
Hi Phil, On Fri, Apr 13, 2018 at 9:47 AM, Phil Edworthy wrote: > Hi Hoan, > > On 13 April 2018 17:37 Hoan Tran wrote: >> On Fri, Apr 13, 2018 at 1:51 AM, Phil Edworthy wrote: >> > The DesignWare GPIO IP can be configured for either 1 interrupt or 1 >> > p

Re: [PATCH v3] gpio: dwapb: Add support for 1 interrupt per port A GPIO

2018-04-13 Thread Hoan Tran
Hi Phil, On Fri, Apr 13, 2018 at 1:51 AM, Phil Edworthy wrote: > The DesignWare GPIO IP can be configured for either 1 interrupt or 1 > per GPIO in port A, but the driver currently only supports 1 interrupt. > See the DesignWare DW_apb_gpio Databook description of the > 'GPIO_INTR_IO' parameter.

Re: hwmon: xgene: Minor clean up of ifdef and acpi_match_table reference

2017-11-01 Thread Hoan Tran
On Wed, Nov 1, 2017 at 6:15 AM, Guenter Roeck wrote: > On Tue, Oct 31, 2017 at 01:58:07PM -0700, hotran wrote: >> This patch removes the un-necessary ifdef CONFIG_ACPI and directly >> uses the acpi_match_table from the driver pdev. >> >> Signed-off-by: Hoan Tran >

[PATCH] hwmon: xgene: Minor clean up of ifdef and acpi_match_table reference

2017-10-31 Thread Hoan Tran
This patch removes the un-necessary ifdef CONFIG_ACPI and directly uses the acpi_match_table from the driver pdev. Signed-off-by: Hoan Tran --- drivers/hwmon/xgene-hwmon.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/hwmon/xgene-hwmon.c b/drivers/hwmon

Re: [PATCH v2] i2c: xgene-slimpro: Support v2

2017-10-31 Thread Hoan Tran
Hi Andy, On Tue, Oct 31, 2017 at 2:14 AM, Andy Shevchenko wrote: > On Mon, 2017-10-30 at 15:24 -0700, Hoan Tran wrote: >> This patch supports xgene-slimpro-i2c v2 which uses the non-cachable >> memory >> as the PCC shared memory. >> > > Reviewed-by: Andy Shevc

[PATCH v2] i2c: xgene-slimpro: Support v2

2017-10-30 Thread Hoan Tran
This patch supports xgene-slimpro-i2c v2 which uses the non-cachable memory as the PCC shared memory. Signed-off-by: Hoan Tran --- v2: - Remove un-necessary ifdef CONFIG_ACPI - Use acpi_match_table pointer from pdev - Use MEMREMAP_WT for non-cachable memory drivers/i2c/busses/i2c-xgene

Re: [PATCH] i2c: xgene-slimpro: Support v2

2017-10-30 Thread Hoan Tran
Hi Andy, On Sat, Oct 28, 2017 at 12:37 PM, Andy Shevchenko wrote: > On Sat, 2017-10-28 at 14:11 +0200, Wolfram Sang wrote: >> Thanks for the patch! >> >> On Mon, Oct 23, 2017 at 03:12:20PM -0700, Hoan Tran wrote: >> > This patch supports xgene-slimpro-i2c

[PATCH] i2c: xgene-slimpro: Support v2

2017-10-23 Thread Hoan Tran
This patch supports xgene-slimpro-i2c v2 which uses the non-cachable memory as the PCC shared memory. Signed-off-by: Hoan Tran --- drivers/i2c/busses/i2c-xgene-slimpro.c | 45 +- 1 file changed, 34 insertions(+), 11 deletions(-) diff --git a/drivers/i2c/busses

Re: [v4] hwmon: xgene: Support hwmon v2

2017-10-23 Thread Hoan Tran
Hi, On Sat, Oct 21, 2017 at 8:56 AM, Guenter Roeck wrote: > On Tue, Oct 17, 2017 at 11:28:34AM -0700, hotran wrote: >> This patch supports xgene-hwmon v2 which uses the non-cachable memory >> as the PCC shared memory. >> >> Signed-off-by: Hoan Tran >> --- >&g

[PATCH v4] hwmon: xgene: Support hwmon v2

2017-10-17 Thread Hoan Tran
This patch supports xgene-hwmon v2 which uses the non-cachable memory as the PCC shared memory. Signed-off-by: Hoan Tran --- v4 - Initialize version variable v3 - Use local version variable - Use inline calls instead of the private map function v2 - Map PCC shared mem by ioremap() in case

Re: [PATCH v3] hwmon: xgene: Support hwmon v2

2017-10-13 Thread Hoan Tran
Hi On Fri, Oct 13, 2017 at 9:54 PM, Guenter Roeck wrote: > On 10/13/2017 09:38 PM, Hoan Tran wrote: >> >> Hi Guenter, >> >> On Fri, Oct 13, 2017 at 9:28 PM, Guenter Roeck wrote: >>> >>> On 10/13/2017 04:10 PM, Hoan Tran wrote: >>>> >&g

Re: [PATCH v3] hwmon: xgene: Support hwmon v2

2017-10-13 Thread Hoan Tran
Hi Guenter, On Fri, Oct 13, 2017 at 9:28 PM, Guenter Roeck wrote: > On 10/13/2017 04:10 PM, Hoan Tran wrote: >> >> This patch supports xgene-hwmon v2 which uses the non-cachable memory >> as the PCC shared memory. >> >> Signed-off-by: Hoan Tran >> ---

[PATCH v3] hwmon: xgene: Support hwmon v2

2017-10-13 Thread Hoan Tran
This patch supports xgene-hwmon v2 which uses the non-cachable memory as the PCC shared memory. Signed-off-by: Hoan Tran --- v3 - Use local version variable - Use inline calls instead of the private map function v2 - Map PCC shared mem by ioremap() in case hwmon is v2 drivers/hwmon/xgene

Re: [PATCH v2] hwmon: xgene: Support hwmon v2

2017-10-11 Thread Hoan Tran
Hi Guenter, On Tue, Oct 10, 2017 at 8:54 PM, Guenter Roeck wrote: > On 10/10/2017 05:10 PM, Hoan Tran wrote: >> >> This patch supports xgene-hwmon v2 which uses the non-cachable memory >> as the PCC shared memory. >> >> Signed-off-by: Hoan Tran >> --

[PATCH v2] hwmon: xgene: Support hwmon v2

2017-10-10 Thread Hoan Tran
This patch supports xgene-hwmon v2 which uses the non-cachable memory as the PCC shared memory. Signed-off-by: Hoan Tran --- v2 - Map PCC shared mem by ioremap() in case hwmon is v2 drivers/hwmon/xgene-hwmon.c | 52 +++-- 1 file changed, 41 insertions

[PATCH] MAINTAINERS: Add entry for Synopsys DesignWare APB GPIO driver

2017-09-22 Thread Hoan Tran
This patch adds maintainer for Synopsys DesignWare APB GPIO driver. Signed-off-by: Hoan Tran --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 36cf85d..7ee8957 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12929,6 +12929,12 @@ F: arch

[PATCH 1/2] hwmon: xgene: Support hwmon v2

2017-09-21 Thread Hoan Tran
This patch supports xgene-hwmon v2 which uses the non-cachable memory as the PCC shared memory. Signed-off-by: Hoan Tran --- drivers/hwmon/xgene-hwmon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hwmon/xgene-hwmon.c b/drivers/hwmon/xgene-hwmon.c index 9c0dbb8..5cd327e 100644

[PATCH 2/2] hwmon: xgene: Support PCC shared memory in IO region

2017-09-21 Thread Hoan Tran
As the PCC shared memory could be in IO region which doesn't support caching, this patch simply uses ioremap() for IO region. Signed-off-by: Hoan Tran --- drivers/hwmon/xgene-hwmon.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/hwmon/xgene-hw

[PATCH 0/2] hwmon: xgene: Support hwmon v2

2017-09-21 Thread Hoan Tran
This patch supports xgene-hwmon v2 which uses the non-cachable memory as the PCC shared memory. Hoan Tran (2): hwmon: xgene: Support hwmon v2 hwmon: xgene: Support PCC shared memory in IO region drivers/hwmon/xgene-hwmon.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions

[PATCH] gpio: dwapb: Add wakeup source support

2017-09-08 Thread Hoan Tran
This patch supports irq_set_wake for dwapb gpio. It allows GPIOs to be configured as wakeup sources and wake the system from suspend. Signed-off-by: Hoan Tran --- drivers/gpio/gpio-dwapb.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/drivers/gpio

[PATCH] mailbox: pcc: Fix crash when request PCC channel 0

2017-07-21 Thread Hoan Tran
] [] kernel_init_freeable+0x190/0x22c [8.031431] [] kernel_init+0x10/0xfc [8.031432] [] ret_from_fork+0x10/0x50 [8.031434] Code: cb030e63 8b030013 b140067f 54fffda8 (f9400a61) [8.031448] ---[ end trace 14eb48a4e1e1f9fb ]--- Signed-off-by: Hoan Tran --- drivers/mailbox/pcc.c | 2 +- 1 file

Re: [PATCH v3 3/3] perf: xgene: Add support for SoC PMU version 3

2017-06-22 Thread Hoan Tran
On Thu, Jun 22, 2017 at 11:17 AM, Mark Rutland wrote: > On Thu, Jun 22, 2017 at 11:13:08AM -0700, Hoan Tran wrote: >> On Thu, Jun 22, 2017 at 10:52 AM, Mark Rutland wrote: >> > On Tue, Jun 06, 2017 at 11:02:26AM -0700, Hoan Tran wrote: >> > > static inline void >

Re: [PATCH v3 3/3] perf: xgene: Add support for SoC PMU version 3

2017-06-22 Thread Hoan Tran
Hi Mark, On Thu, Jun 22, 2017 at 11:18 AM, Mark Rutland wrote: > On Thu, Jun 22, 2017 at 06:52:56PM +0100, Mark Rutland wrote: >> Hi Hoan, >> >> This largely looks good; I have one minor comment. >> >> On Tue, Jun 06, 2017 at 11:02:26AM -0700, Hoan Tra

Re: [PATCH v3 3/3] perf: xgene: Add support for SoC PMU version 3

2017-06-22 Thread Hoan Tran
Hi Mark, On Thu, Jun 22, 2017 at 10:52 AM, Mark Rutland wrote: > > Hi Hoan, > > This largely looks good; I have one minor comment. > > On Tue, Jun 06, 2017 at 11:02:26AM -0700, Hoan Tran wrote: > > static inline void > > +xgene_pmu_write_counter64(struct xgene_pmu_

Re: [PATCH v3 0/3] perf: xgene: Add support for SoC PMU version 3

2017-06-20 Thread Hoan Tran
Hi Mark and All, Do you have any comments on this patch set? Thank you! Hoan On Tue, Jun 6, 2017 at 11:02 AM, Hoan Tran wrote: > This patch set adds support for SoC-wide (AKA uncore) Performance Monitoring > Unit version 3. > > It can support up to > - 2 IOB PMU instances

Re: [PATCH] i2c: xgene-slimpro: include linux/io.h for memremap

2017-06-09 Thread Hoan Tran
rs/i2c/busses/i2c-xgene-slimpro.c > +++ b/drivers/i2c/busses/i2c-xgene-slimpro.c > @@ -27,6 +27,7 @@ > #include > #include > #include > +#include > #include > #include > #include > -- > 2.9.0 > Reviewed-by: Hoan Tran Thanks Hoan

[PATCH v3 1/3] perf: xgene: Parse PMU subnode from the match table

2017-06-06 Thread Hoan Tran
This patch parses PMU Subnode from a match table. Signed-off-by: Hoan Tran --- drivers/perf/xgene_pmu.c | 40 ++-- 1 file changed, 30 insertions(+), 10 deletions(-) diff --git a/drivers/perf/xgene_pmu.c b/drivers/perf/xgene_pmu.c index 35b5289..5ffd580

[PATCH v3 3/3] perf: xgene: Add support for SoC PMU version 3

2017-06-06 Thread Hoan Tran
This patch adds support for SoC-wide (AKA uncore) Performance Monitoring Unit version 3. It can support up to - 2 IOB PMU instances - 8 L3C PMU instances - 2 MCB PMU instances - 8 MCU PMU instances and these PMUs support 64 bit counter Signed-off-by: Hoan Tran --- drivers/perf/xgene_pmu.c

[PATCH v3 2/3] perf: xgene: Move PMU leaf functions into function pointer structure

2017-06-06 Thread Hoan Tran
This patch moves PMU leaf functions into a function pointer structure. It helps code maintain and expasion easier. Signed-off-by: Hoan Tran --- drivers/perf/xgene_pmu.c | 85 +--- 1 file changed, 66 insertions(+), 19 deletions(-) diff --git a/drivers

[PATCH v3 0/3] perf: xgene: Add support for SoC PMU version 3

2017-06-06 Thread Hoan Tran
for v3 * Consistent PMU event name * Update comment * Correct active MCU detection v2: * Split into separate patches * Use the function pointers for the PMU leaf functions * Parse PMU subnode by the match table * Dont allow user change agent id by config1 for SoC PMU v3 Hoan Tran (3): perf

Re: [PATCH v2 3/3] perf: xgene: Add support for SoC PMU version 3

2017-06-02 Thread Hoan Tran
Hi Mark, On Fri, Jun 2, 2017 at 9:04 AM, Mark Rutland wrote: > Hi Hoan, > > Apologies for the delay in getting to this. > > On Mon, Apr 03, 2017 at 09:47:57AM -0700, Hoan Tran wrote: >> This patch adds support for SoC-wide (AKA uncore) Performance Monitoring >> U

Re: [PATCH v2 2/2] i2c: xgene-slimpro: Add ACPI support by using PCC mailbox

2017-06-02 Thread Hoan Tran
On Fri, Jun 2, 2017 at 1:31 PM, Wolfram Sang wrote: > On Mon, Apr 24, 2017 at 11:00:26AM -0700, Hoan Tran wrote: >> This patch adds ACPI support by using PCC mailbox communication >> interface. >> >> Signed-off-by: Hoan Tran > > Please make use checkpatc

Re: [PATCH v2 1/3] perf: xgene: Parse PMU subnode from the match table

2017-06-02 Thread Hoan Tran
Hi Mark, On Fri, Jun 2, 2017 at 10:23 AM, Mark Rutland wrote: > On Fri, Jun 02, 2017 at 09:54:32AM -0700, Hoan Tran wrote: >> On Fri, Jun 2, 2017 at 7:59 AM, Mark Rutland wrote: >> > On Mon, Apr 03, 2017 at 09:47:55AM -0700, Hoan Tran wrote: >> >> +stat

Re: [PATCH v2 1/3] perf: xgene: Parse PMU subnode from the match table

2017-06-02 Thread Hoan Tran
Hi Mark On Fri, Jun 2, 2017 at 7:59 AM, Mark Rutland wrote: > Hi Hoan, > > Apologies for the last reply. > > On Mon, Apr 03, 2017 at 09:47:55AM -0700, Hoan Tran wrote: >> +static const struct acpi_device_id xgene_pmu_acpi_type_match[] = { >> + {"APMC0D5D"

Re: [PATCH v2 0/3] perf: xgene: Add support for SoC PMU version 3

2017-05-30 Thread Hoan Tran
Hi All, Ping again Thanks Hoan On Fri, May 5, 2017 at 8:48 AM, Hoan Tran wrote: > Ping! > > Thanks > Hoan > > On Thu, Apr 13, 2017 at 10:50 AM, Hoan Tran wrote: >> Hi All, >> >> Do you have any comments on this patch set? >> >> Thanks >>

Re: [PATCH v2 0/2] i2c: xgene-slimpro: Add ACPI support

2017-05-15 Thread Hoan Tran
Hi All, Do you have any comments on this patch set? Thanks Hoan On Mon, Apr 24, 2017 at 11:00 AM, Hoan Tran wrote: > This patch set adds ACPI support by using PCC mailbox communication interface. > > v2: > * Alphabeltical order > * Use reinit_completion > * Remove mut

Re: [PATCH v2 0/3] perf: xgene: Add support for SoC PMU version 3

2017-05-05 Thread Hoan Tran
Ping! Thanks Hoan On Thu, Apr 13, 2017 at 10:50 AM, Hoan Tran wrote: > Hi All, > > Do you have any comments on this patch set? > > Thanks > Hoan > > On Mon, Apr 3, 2017 at 9:47 AM, Hoan Tran wrote: >> >> This patch set adds support for SoC-wide (AKA uncor

[PATCH v2 1/2] i2c: xgene-slimpro: Use a single function to send command message

2017-04-24 Thread Hoan Tran
This patch refactors the code to use a single message function to send command message. Signed-off-by: Hoan Tran --- drivers/i2c/busses/i2c-xgene-slimpro.c | 67 +- 1 file changed, 26 insertions(+), 41 deletions(-) diff --git a/drivers/i2c/busses/i2c-xgene

[PATCH v2 0/2] i2c: xgene-slimpro: Add ACPI support

2017-04-24 Thread Hoan Tran
This patch set adds ACPI support by using PCC mailbox communication interface. v2: * Alphabeltical order * Use reinit_completion * Remove mutex * Use ENOENT instead of ENODEV Hoan Tran (2): i2c: xgene-slimpro: Use a single function to send command message i2c: xgene-slimpro: Add ACPI

[PATCH v2 2/2] i2c: xgene-slimpro: Add ACPI support by using PCC mailbox

2017-04-24 Thread Hoan Tran
This patch adds ACPI support by using PCC mailbox communication interface. Signed-off-by: Hoan Tran --- drivers/i2c/busses/i2c-xgene-slimpro.c | 174 ++--- 1 file changed, 161 insertions(+), 13 deletions(-) diff --git a/drivers/i2c/busses/i2c-xgene-slimpro.c b

Re: [PATCH 2/2] i2c: xgene-slimpro: Add ACPI support by using PCC mailbox

2017-04-20 Thread Hoan Tran
Hi Wolfram, On Thu, Apr 20, 2017 at 1:05 AM, Wolfram Sang wrote: > Hi, > > have you tested these patches also without PCC? So, we can be sure there > is no regression? These patches are tested with/without PCC. > >> diff --git a/drivers/i2c/busses/i2c-xgene-slimpro.c >> b/drivers/i2c/busses/i2

Re: [PATCH 0/2] i2c: xgene-slimpro: Add ACPI support

2017-04-17 Thread Hoan Tran
Hi All, Do you have any comments on this patch set? Thanks On Tue, Mar 28, 2017 at 1:46 PM, Hoan Tran wrote: > This patch set adds ACPI support by using PCC mailbox communication interface. > > Hoan Tran (2): > i2c: xgene-slimpro: Use a single function to send command message &g

Re: [PATCH v2 0/3] perf: xgene: Add support for SoC PMU version 3

2017-04-17 Thread Hoan Tran
Hi All, Do you have any comments on this patch set? Thanks On Mon, Apr 3, 2017 at 9:47 AM, Hoan Tran wrote: > This patch set adds support for SoC-wide (AKA uncore) Performance Monitoring > Unit version 3. > > It can support up to > - 2 IOB PMU instances > - 8 L3C PMU instan

Re: [PATCH 0/2] Make cppc acpi driver aware of pcc subspace ids

2017-04-03 Thread Hoan Tran
Hi George, On Mon, Apr 3, 2017 at 9:44 AM, Prakash, Prashanth wrote: > Hi George, > > On 3/31/2017 12:24 AM, George Cherian wrote: >> The current cppc acpi driver works with only one pcc subspace id. >> It maintains and registers only one pcc channel even if the acpi table has >> different pcc su

[PATCH v2 1/3] perf: xgene: Parse PMU subnode from the match table

2017-04-03 Thread Hoan Tran
This patch parses PMU Subnode from a match table. Signed-off-by: Hoan Tran --- drivers/perf/xgene_pmu.c | 40 ++-- 1 file changed, 30 insertions(+), 10 deletions(-) diff --git a/drivers/perf/xgene_pmu.c b/drivers/perf/xgene_pmu.c index 35b5289..5ffd580

[PATCH v2 3/3] perf: xgene: Add support for SoC PMU version 3

2017-04-03 Thread Hoan Tran
This patch adds support for SoC-wide (AKA uncore) Performance Monitoring Unit version 3. It can support up to - 2 IOB PMU instances - 8 L3C PMU instances - 2 MCB PMU instances - 8 MCU PMU instances Signed-off-by: Hoan Tran --- drivers/perf/xgene_pmu.c | 572

[PATCH v2 2/3] perf: xgene: Move PMU leaf functions into function pointer structure

2017-04-03 Thread Hoan Tran
This patch moves PMU leaf functions into a function pointer structure. It helps code maintain and expasion easier. Signed-off-by: Hoan Tran --- drivers/perf/xgene_pmu.c | 85 +--- 1 file changed, 66 insertions(+), 19 deletions(-) diff --git a/drivers

[PATCH v2 0/3] perf: xgene: Add support for SoC PMU version 3

2017-04-03 Thread Hoan Tran
* Parse PMU subnode by the match table * Dont allow user change agent id by config1 for SoC PMU v3 Hoan Tran (3): perf: xgene: Parse PMU subnode from the match table perf: xgene: Move PMU leaf functions into function pointer structure perf: xgene: Add support for SoC PMU version 3

Re: [PATCH 2/2] perf: xgene: Add support for SoC PMU of next generation of X-Gene

2017-03-30 Thread Hoan Tran
Hi Mark, On Tue, Mar 14, 2017 at 12:57 PM, Mark Rutland wrote: > On Tue, Mar 14, 2017 at 11:06:52AM -0700, Hoan Tran wrote: >> This patch adds support for SoC-wide (AKA uncore) Performance Monitoring >> Unit in the next generation of X-Gene SoC. >> >&g

[PATCH 2/2] i2c: xgene-slimpro: Add ACPI support by using PCC mailbox

2017-03-28 Thread Hoan Tran
This patch adds ACPI support by using PCC mailbox communication interface. Signed-off-by: Hoan Tran --- drivers/i2c/busses/i2c-xgene-slimpro.c | 179 ++--- 1 file changed, 166 insertions(+), 13 deletions(-) diff --git a/drivers/i2c/busses/i2c-xgene-slimpro.c b

[PATCH 0/2] i2c: xgene-slimpro: Add ACPI support

2017-03-28 Thread Hoan Tran
This patch set adds ACPI support by using PCC mailbox communication interface. Hoan Tran (2): i2c: xgene-slimpro: Use a single function to send command message i2c: xgene-slimpro: Add ACPI support by using PCC mailbox drivers/i2c/busses/i2c-xgene-slimpro.c | 246

[PATCH 1/2] i2c: xgene-slimpro: Use a single function to send command message

2017-03-28 Thread Hoan Tran
This patch refactors the code to use a single message function to send command message. Signed-off-by: Hoan Tran --- drivers/i2c/busses/i2c-xgene-slimpro.c | 67 +- 1 file changed, 26 insertions(+), 41 deletions(-) diff --git a/drivers/i2c/busses/i2c-xgene

[PATCH 1/2] Documentation: perf: xgene: Add support for SoC PMU of next generation of X-Gene

2017-03-14 Thread Hoan Tran
This patch adds support for SoC-wide (AKA uncore) Performance Monitoring Unit in the next generation of X-Gene SoC. Signed-off-by: Hoan Tran --- Documentation/perf/xgene-pmu.txt | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/Documentation/perf/xgene

[PATCH 0/2] perf: xgene: Add support for SoC PMU of next generation of X-Gene

2017-03-14 Thread Hoan Tran
This patch set adds support for SoC-wide (AKA uncore) Performance Monitoring Unit in the next generation of X-Gene SoC. Hoan Tran (2): Documentation: perf: xgene: Add support for SoC PMU of next generation of X-Gene perf: xgene: Add support for SoC PMU of next generation of X-Gene

[PATCH 2/2] perf: xgene: Add support for SoC PMU of next generation of X-Gene

2017-03-14 Thread Hoan Tran
This patch adds support for SoC-wide (AKA uncore) Performance Monitoring Unit in the next generation of X-Gene SoC. Signed-off-by: Hoan Tran --- drivers/perf/xgene_pmu.c | 645 ++- 1 file changed, 575 insertions(+), 70 deletions(-) diff --git a

Re: [PATCH v3] gpio: dwapb: Add support for next generation of X-Gene SoC

2017-02-23 Thread Hoan Tran
On Thu, Feb 23, 2017 at 7:07 AM, Linus Walleij wrote: > On Tue, Feb 21, 2017 at 8:32 PM, Hoan Tran wrote: > >> Next generation of X-Gene SoC's GPIO hardware register map is very >> similar to DW GPIO. It only differs by a few register addresses. >> This pat

[PATCH v3] gpio: dwapb: Add support for next generation of X-Gene SoC

2017-02-21 Thread Hoan Tran
Next generation of X-Gene SoC's GPIO hardware register map is very similar to DW GPIO. It only differs by a few register addresses. This patch modifies DW GPIO driver to accommodate the difference in a few register addresses. Signed-off-by: Hoan Tran --- v3: * Add gpio_reg_v2_convert() fun

Re: [PATCH v2] gpio: dwapb: Add support for next generation of X-Gene SoC

2017-02-17 Thread Hoan Tran
Hi Andy, On Fri, Feb 17, 2017 at 2:23 AM, Andy Shevchenko wrote: > On Fri, Feb 17, 2017 at 3:01 AM, Hoan Tran wrote: >> Next generation of X-Gene SoC's GPIO hardware register map is very >> similar to DW GPIO. It only differs by a few register addresses. >> This patch

[PATCH v2] gpio: dwapb: Add support for next generation of X-Gene SoC

2017-02-16 Thread Hoan Tran
Next generation of X-Gene SoC's GPIO hardware register map is very similar to DW GPIO. It only differs by a few register addresses. This patch modifies DW GPIO driver to accommodate the difference in a few register addresses. Signed-off-by: Hoan Tran --- v2: * Remove ifdef CONFIG

Re: [PATCH] gpio: dwapb: Add support for next generation of X-Gene SoC

2017-02-14 Thread Hoan Tran
Hi Linus, Jamie and all, Do you have any comments on this patch? Thanks Hoan On Mon, Feb 13, 2017 at 1:38 AM, Jamie Iles wrote: > Hi Linus, > > On Mon, Feb 06, 2017 at 11:21:09AM +0100, Linus Walleij wrote: >> On Tue, Jan 31, 2017 at 8:43 PM, Hoan Tran wrote: >> >>

Re: [PATCH] gpio: dwapb: Add support for next generation of X-Gene SoC

2017-02-06 Thread Hoan Tran
Resend with plain text. Hi Linus, On Mon, Feb 6, 2017 at 2:21 AM, Linus Walleij wrote: > On Tue, Jan 31, 2017 at 8:43 PM, Hoan Tran wrote: > >> Next generation of X-Gene SoC's GPIO hardware register map is very >> similar to DW GPIO. It only differs by a few register a

Re: [PATCH] gpio: dwapb: Add support for next generation of X-Gene SoC

2017-02-02 Thread Hoan Tran
Resend with plain text mode. Hi Andy, On Thu, Feb 2, 2017 at 11:47 AM, Andy Shevchenko wrote: > On Tue, Jan 31, 2017 at 9:43 PM, Hoan Tran wrote: >> Next generation of X-Gene SoC's GPIO hardware register map is very >> similar to DW GPIO. It only differs by a few registe

[PATCH] gpio: dwapb: Add support for next generation of X-Gene SoC

2017-01-31 Thread Hoan Tran
Next generation of X-Gene SoC's GPIO hardware register map is very similar to DW GPIO. It only differs by a few register addresses. This patch modifies DW GPIO driver to accommodate the difference in a few register addresses. Signed-off-by: Hoan Tran --- drivers/gpio/gpio-dwapb.c

[PATCH] cpufreq: dt: Add support for APM X-Gene 2

2016-12-15 Thread Hoan Tran
Add the compatible string for supporting the generic device tree cpufreq-dt driver on APM's X-Gene 2 SoC. Signed-off-by: Hoan Tran --- drivers/cpufreq/cpufreq-dt-platdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufr

Re: [PATCH v3] mailbox: PCC: Fix lockdep warning when request PCC channel

2016-11-14 Thread Hoan Tran
Hi, On Sun, Nov 13, 2016 at 11:44 AM, Prakash, Prashanth wrote: > HI Hoan, > > On 11/9/2016 11:39 PM, Hoan Tran wrote: >> Hi All, >> >> On Thu, Oct 27, 2016 at 3:34 PM, Hoan Tran wrote: >>> This patch fixes the lockdep warning below >>> >>>

[PATCH v4] mailbox: PCC: Fix lockdep warning when request PCC channel

2016-11-14 Thread Hoan Tran
t too long. This patch releases spinlock before request_irq() and free_irq() to fix this issue as spinlock is only needed to protect the channel data. Signed-off-by: Hoan Tran --- v4 * Include acpi/pcc.h v3 * Free mailbox irq before reset the channel data * Free channel if it fails to reques

Re: [PATCH v3] mailbox: PCC: Fix lockdep warning when request PCC channel

2016-11-09 Thread Hoan Tran
Hi All, On Thu, Oct 27, 2016 at 3:34 PM, Hoan Tran wrote: > This patch fixes the lockdep warning below > > [7.229767] DEBUG_LOCKS_WARN_ON(irqs_disabled_flags(flags)) > [7.229776] [ cut here ] > [7.229787] WARNING: CPU: 1 PID: 1 at > linux-n

[PATCH v3] mailbox: PCC: Fix lockdep warning when request PCC channel

2016-10-27 Thread Hoan Tran
t too long. This patch releases spinlock before request_irq() and free_irq() to fix this issue as spinlock is only needed to protect the channel data. Signed-off-by: Hoan Tran --- v3 * Free mailbox irq before reset the channel data * Free channel if it fails to request the mailbox irq v2 * Re

Re: [PATCH] i2c: xgene: Avoid dma_buffer overrun

2016-10-24 Thread Hoan Tran
On Mon, Oct 10, 2016 at 10:13 AM, Hoan Tran wrote: > SMBus block command uses the first byte of buffer for the data length. > The dma_buffer should be increased by 1 to avoid the overrun issue. > > Reported-by: Phil Endecott > Signed-off-by: Hoan Tran > --- > drivers

Re: [PATCH v2] mailbox: PCC: Fix lockdep warning when request PCC channel

2016-10-21 Thread Hoan Tran
Hi Prashanth, On Fri, Oct 21, 2016 at 9:13 AM, Prakash, Prashanth wrote: > Hi Hoan, > > On 10/18/2016 1:00 AM, Hoan Tran wrote: >> This patch fixes the lockdep warning below >> >> [7.229767] DEBUG_LOCKS_WARN_ON(irqs_disabled_flags(flags)) >> [

  1   2   3   >