[RFC PATCH v1 1/1] powerpc/85xx: Wakeup kexec smp slave cpus in second kernel

2013-08-31 Thread Yu Chen
>From 1ccf579b871dfd5938ce958f729361a203485c74 Mon Sep 17 00:00:00 2001 From: Yu Chen Date: Sat, 31 Aug 2013 23:52:31 +0800 Subject: [PATCH] powerpc/85xx: Wakeup kexec smp slave cpus in second kernel In current 85xx smp kexec implementation,master cpu reset slave cpus by mpic_reset_core, bef

Re: [LKP] [lkp] [x86 tsc] 19fa5e7364: WARNING: CPU: 0 PID: 0 at arch/x86/mm/extable.c:50 ex_handler_rdmsr_unsafe+0x72/0x80

2016-06-20 Thread Yu Chen
Hi, On Mon, Jun 20, 2016 at 3:31 PM, kernel test robot wrote: > > FYI, we noticed the following commit: > > https://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux.git x86 > commit 19fa5e73647fde1e6a7038a8f05cddf4c43f08d3 ("x86 tsc: enumerate SKL > cpu_khz and tsc_khz via CPUID") > > > on tes

printk.time=0 not work?

2016-08-25 Thread Yu Chen
Hi there, I'm trying to disable the printk time stamp by appending printk.time=0 in the grub, but it seems not work, dmesg always shows the timestap. Do I miss something? thanks. cat /sys/module/printk/parameters/time N

Re: [Regression/XFS/PM] Freeze tasks failed in xfsaild

2017-11-13 Thread Yu Chen
On Mon, Nov 13, 2017 at 09:14:14PM +0100, Luis R. Rodriguez wrote: > On Mon, Nov 13, 2017 at 06:31:39PM +0800, Yu Chen wrote: > > The xfs-buf/dm-1 should be freezed according to > > commit 8018ec083c72 ("xfs: mark all internal workqueues > > as freezable"), thu

Re: [Regression/XFS/PM] Freeze tasks failed in xfsaild

2017-11-13 Thread Yu Chen
Hi Dave, On Tue, Nov 14, 2017 at 09:52:16AM +1100, Dave Chinner wrote: > On Mon, Nov 13, 2017 at 06:31:39PM +0800, Yu Chen wrote: > > Hi all, > > Currently we are running hibernation stress test on a server > > and unfortunately after 48 rounds of cycling, it fails at a >

Re: [Regression/XFS/PM] Freeze tasks failed in xfsaild

2017-11-14 Thread Yu Chen
On Tue, Nov 14, 2017 at 03:02:32PM +1100, Dave Chinner wrote: > On Tue, Nov 14, 2017 at 11:39:59AM +0800, Yu Chen wrote: > > Hi Dave, > > On Tue, Nov 14, 2017 at 09:52:16AM +1100, Dave Chinner wrote: > > > On Mon, Nov 13, 2017 at 06:31:39PM +0800, Yu Chen wrote: > >

[PATCH] usb:xhci fix panic in xhci_free_virt_devices_depth_first

2017-11-05 Thread Yu Chen
From: Yu Chen Check vdev->real_port 0 to avoid panic [9.261347] [] xhci_free_virt_devices_depth_first+0x58/0x108 [9.261352] [] xhci_mem_cleanup+0x1bc/0x570 [9.261355] [] xhci_stop+0x140/0x1c8 [9.261365] [] usb_remove_hcd+0xfc/0x1d0 [9.261369] [] xhci_plat_remove+0x6c/0

[PATCH v2] usb:xhci fix panic in xhci_free_virt_devices_depth_first

2017-11-06 Thread Yu Chen
From: Yu Chen Check vdev->real_port 0 to avoid panic [9.261347] [] xhci_free_virt_devices_depth_first+0x58/0x108 [9.261352] [] xhci_mem_cleanup+0x1bc/0x570 [9.261355] [] xhci_stop+0x140/0x1c8 [9.261365] [] usb_remove_hcd+0xfc/0x1d0 [9.261369] [] xhci_plat_remove+0x6c/0

[PATCH 0/3][RFC/RFT] Do not delay the MTRR synchronization for

2017-10-31 Thread Yu Chen
From: Chen Yu The original problem comes from a bug found on MacBookPro that, the instructions run on each APs after resume are very slow, due to the MTRR been scribbled by the BIOS thus it behaves like running in 'uncached' mode. Thus this patch tries to synchronize the MTRR as early as possibl

[PATCH 1/3][RFC/RFT] PM / sleep: Introduce a flag to identify the enable_nonboot_cpus stage

2017-10-31 Thread Yu Chen
From: Chen Yu A new flag is introduced to indicate that, we are in the process of running enable_nonboot_cpus() to bring the APs up. This flag is to prepare for the use of MTRR sync later. Cc: Len Brown Cc: Rafael J. Wysocki Cc: Rui Zhang Signed-off-by: Chen Yu --- include/linux/cpu.h | 2 +

[PATCH 3/3][RFC/RFT] PM / sleep: Do not delay the synchronization of MTRR during resume

2017-10-31 Thread Yu Chen
From: Chen Yu Sometimes it is too late for the APs to synchronize the MTRR after all the APs have been brought up. In some cases the BIOS might scribble the MTRR across suspend/resume, as a result we might get insane MTRR after resumed back, thus every instruction run on this AP would be extremel

[PATCH 2/3][RFC/RFT] x86/mtrr: Add cpu id into the MTRR setting data structure

2017-10-31 Thread Yu Chen
From: Chen Yu We record the cpu which has issued the MTRR setting command, then in the mtrr_rendezvous_handler() we can distinguish it from the other cpus. This is used for MTRR synchronization optimization. Cc: Len Brown Cc: Rafael J. Wysocki Cc: Rui Zhang Signed-off-by: Chen Yu --- arch/x

Re: [PATCH 0/3][RFC] Introduce the in-kernel hibernation encryption

2018-06-21 Thread Yu Chen
Hi, On Thu, Jun 21, 2018 at 09:14:43PM +0200, Pavel Machek wrote: > On Thu 2018-06-21 14:08:40, Rafael J. Wysocki wrote: > > On Thu, Jun 21, 2018 at 10:53 AM, Pavel Machek wrote: > > > Hi! > > > > > >> As security becomes more and more important, we add the in-kernel > > >> encryption support for

Re: [PATCH 3/3][RFC] tools: create power/crypto utility

2018-06-21 Thread Yu Chen
Hi Eric, On Wed, Jun 20, 2018 at 10:41:42AM -0700, Eric Biggers wrote: > Hi Chen, > > On Wed, Jun 20, 2018 at 05:40:51PM +0800, Chen Yu wrote: > > crypto_hibernate is a user-space utility to generate > > 512bits AES key and pass it to the kernel via ioctl > > for hibernation encryption.(We can als

Re: [PATCH 0/4][RFC v2] Introduce the in-kernel hibernation encryption

2018-08-08 Thread Yu Chen
Hi Pavel, Joey, Oliver Please let me describe the original requirement and my understanding about hibernation encryption here, thus help us sync on the same thread: On Wed, Aug 08, 2018 at 07:50:36PM +0200, Pavel Machek wrote: > Hi! > > > > > > User space doesn't need to involve. The EFI root key

Re: [PATCH 2/3][RFC] PM / Hibernate: Encrypt the snapshot pages before submitted to the block device

2018-07-19 Thread Yu Chen
On Wed, Jul 18, 2018 at 11:48:19PM +0800, joeyli wrote: > On Fri, Jul 13, 2018 at 03:34:25PM +0800, Yu Chen wrote: > > Hi, > > On Thu, Jul 12, 2018 at 06:10:37PM +0800, joeyli wrote: > > > Hi Yu Chen, > > > > > > Sorry for my delay... > > >

Re: [PATCH 0/4][RFC v2] Introduce the in-kernel hibernation encryption

2018-07-19 Thread Yu Chen
On Thu, Jul 19, 2018 at 01:01:49PM +0200, Pavel Machek wrote: > On Thu 2018-07-19 07:58:51, Yu Chen wrote: > > Hi, > > On Wed, Jul 18, 2018 at 10:22:35PM +0200, Pavel Machek wrote: > > > On Thu 2018-07-19 00:38:06, Chen Yu wrote: > > > > As security becomes mo

Re: [PATCH 2/3][RFC] PM / Hibernate: Encrypt the snapshot pages before submitted to the block device

2018-07-13 Thread Yu Chen
Hi, On Thu, Jul 12, 2018 at 06:10:37PM +0800, joeyli wrote: > Hi Yu Chen, > > Sorry for my delay... > > On Fri, Jul 06, 2018 at 11:28:56PM +0800, Yu Chen wrote: > > Hi Joey Lee, > > On Fri, Jun 29, 2018 at 08:59:43PM +0800, joeyli wrote: > > > On Thu, Jun 2

[PATCH] cpufreq: intel_pstate: enable HWP before manipulating on corresponding registers

2018-01-25 Thread Yu Chen
ct much because users seldom touch HWP registers. Reported-by: Doug Smythies Signed-off-by: Yu Chen --- drivers/cpufreq/intel_pstate.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index 93a0e88bef76..b808f0127192 10064

Re: [PATCH] cpufreq: intel_pstate: enable HWP before manipulating on corresponding registers

2018-01-25 Thread Yu Chen
On Thu, Jan 25, 2018 at 02:44:59PM -0800, Srinivas Pandruvada wrote: > On Thu, 2018-01-25 at 19:08 +0800, Yu Chen wrote: > > Thanks for debugging. > > > The following warning was triggered after resumed from S3 - > > if all the nonboot CPUs were put offline before suspend

[PATCH 1/2] ACPI: processor_perflib: Do not send _PPC change notification if not ready

2018-01-28 Thread Yu Chen
x27;t need to do _PPC change notification. Reported-by: Doug Smythies Suggested-by: Srinivas Pandruvada Signed-off-by: Yu Chen --- drivers/acpi/processor_perflib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/processor_perflib.c b/drivers/acpi/processor_

[PATCH 2/2] cpufreq: intel_pstate: enable HWP after resumed

2018-01-28 Thread Yu Chen
. Reported-by: Doug Smythies Suggested-by: Srinivas Pandruvada Signed-off-by: Yu Chen --- drivers/cpufreq/intel_pstate.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index 93a0e88bef76..89f637e8439c 100644 --- a/drivers/cpufreq

[PATCH][RFC v3] PM / sleep: Do not delay the synchronization of MTRR during resume

2018-01-08 Thread Yu Chen
sted-by: Rafael J. Wysocki Cc: Len Brown Cc: Rafael J. Wysocki Cc: Rui Zhang Signed-off-by: Yu Chen --- arch/x86/include/asm/mtrr.h | 2 ++ arch/x86/kernel/cpu/mtrr/main.c | 29 ++--- arch/x86/kernel/smpboot.c | 4 ++-- 3 files changed, 30 insertions(+), 5 d

Re: [PATCH][v2] tools/power turbostat: if --max_loop, print for specific time of loops

2018-04-11 Thread Yu Chen
On Wed, Apr 11, 2018 at 12:29:04PM +0300, Artem Bityutskiy wrote: > On Tue, 2018-04-10 at 22:51 +0800, Yu Chen wrote: > > + case 't': > > + { > > + int loops = strtod(optarg, NULL); > > + > >

[PATCH][v3] tools/power turbostat: if --max_loop, print for specific time of loops

2018-04-11 Thread Yu Chen
From: Chen Yu There's a use case during test to only print specific round of loops if --iterations is specified, for example, with this patch applied: turbostat -i 5 -t 4 will capture 4 samples with 5 seconds interval. Cc: Len Brown Cc: Rafael J Wysocki Cc: Artem Bityutskiy Cc: linux...@vger

Re: [PATCH][v3] tools/power turbostat: if --max_loop, print for specific time of loops

2018-04-11 Thread Yu Chen
Hi, On Wed, Apr 11, 2018 at 02:02:02PM +0300, Artem Bityutskiy wrote: > A couple of nitpicks. > > On Wed, 2018-04-11 at 18:30 +0800, Yu Chen wrote: > > @@ -48,6 +48,7 @@ char *proc_stat = "/proc/stat"; > > FILE *outf; > > int *fd_percpu; > > str

Re: [PATCH][v3] tools/power turbostat: if --max_loop, print for specific time of loops

2018-04-12 Thread Yu Chen
Hi Doug, On Thu, Apr 12, 2018 at 12:18:44AM -0700, Doug Smythies wrote: > On 2018.04.11 03:31 Yu Chen wrote: > > > From: Chen Yu > > > > There's a use case during test to only print specific round of loops > > if --iterations is specified, for example, with th

[PATCH][v4] tools/power turbostat: if --iterations, print for specific time of iterations

2018-04-12 Thread Yu Chen
From: Chen Yu There's a use case during test to only print specific round of iterations if --iterations is specified, for example, with this patch applied: turbostat -i 5 -I 4 will capture 4 samples with 5 seconds interval. Cc: Len Brown Cc: Rafael J Wysocki Cc: Artem Bityutskiy Cc: Doug Smy

[PATCH][RFC] tools/power turbostat: if --max_loop, print for specific time of loops

2018-04-10 Thread Yu Chen
From: Chen Yu There's a use case during test to only print specific round of loops if --interval is specified, for example, with this patch applied: turbostat -i 5 --max_loops 4 will capture 4 samples with 5 seconds interval. Signed-off-by: Chen Yu --- tools/power/x86/turbostat/turbostat.c |

Re: [PATCH][RFC] tools/power turbostat: if --max_loop, print for specific time of loops

2018-04-10 Thread Yu Chen
On Tue, Apr 10, 2018 at 12:22:16PM +0200, Rafael J. Wysocki wrote: > On Tue, Apr 10, 2018 at 12:18 PM, Yu Chen wrote: > > From: Chen Yu > > > > There's a use case during test to only print specific round of loops > > if --interval is specified, for

Re: [PATCH][RFC] tools/power turbostat: if --max_loop, print for specific time of loops

2018-04-10 Thread Yu Chen
Hi, On Tue, Apr 10, 2018 at 07:02:22PM +0800, Bityutskiy, Artem wrote: > On Tue, 2018-04-10 at 18:18 +0800, Yu Chen wrote: > > @@ -5076,6 +5084,15 @@ void cmdline(int argc, char **argv) > > print_version(); > >

[PATCH][v2] tools/power turbostat: if --max_loop, print for specific time of loops

2018-04-10 Thread Yu Chen
From: Chen Yu There's a use case during test to only print specific round of loops if --iterations is specified, for example, with this patch applied: turbostat -i 5 -t 4 will capture 4 samples with 5 seconds interval. Signed-off-by: Chen Yu --- tools/power/x86/turbostat/turbostat.c | 26

[PATCH] ACPI / PM: Blacklist Low Power S0 Idle _DSM for ThinkPad X1 Tablet(2016)

2018-04-10 Thread Yu Chen
From: Chen Yu ThinkPad X1 Tablet(2016) is reported to have issues with the Low Power S0 Idle _DSM interface and since this machine model generally can do ACPI S3 just fine, and user would like to use S3 as default sleep model, add a blacklist entry to disable that interface for ThinkPad X1 Tablet

Re: [PATCH 2/3][RFC] PM / Hibernate: Encrypt the snapshot pages before submitted to the block device

2018-06-28 Thread Yu Chen
Hi, On Thu, Jun 28, 2018 at 09:07:20PM +0800, joeyli wrote: > Hi Chen Yu, > > On Wed, Jun 20, 2018 at 05:40:32PM +0800, Chen Yu wrote: > > Use the helper functions introduced previously to encrypt > > the page data before they are submitted to the block device. > > Besides, for the case of hiberna

Re: [PATCH 2/3][RFC] PM / Hibernate: Encrypt the snapshot pages before submitted to the block device

2018-06-28 Thread Yu Chen
Hi, On Thu, Jun 28, 2018 at 10:28:56PM +0800, joeyli wrote: > On Thu, Jun 28, 2018 at 09:50:17PM +0800, Yu Chen wrote: > > Hi, > > On Thu, Jun 28, 2018 at 09:07:20PM +0800, joeyli wrote: > > > Hi Chen Yu, > > > > > > On Wed, Jun 20, 2018 at 05:40:32PM +0

Re: [PATCH][RFC v2] ACPI: acpi_pad: Do not launch acpi_pad threads on idle cpus

2018-05-14 Thread Yu Chen
On Sun, May 13, 2018 at 11:30:52AM +0200, Rafael J. Wysocki wrote: > On Saturday, May 5, 2018 1:53:22 PM CEST Chen Yu wrote: > > According to current implementation of acpi_pad driver, > > it does not make sense to spawn any power saving threads > > on the cpus which are already idle - it might bri

Re: [PATCH 0/3][RFC] Introduce the in-kernel hibernation encryption

2018-07-06 Thread Yu Chen
Sorry for late reply. On Fri, Jul 06, 2018 at 12:16:37AM +0800, joeyli wrote: > Hi Chen Yu, > > On Wed, Jun 20, 2018 at 05:39:37PM +0800, Chen Yu wrote: > > Hi, > > As security becomes more and more important, we add the in-kernel > > encryption support for hibernation. > > > > This prototype is

Re: [PATCH 2/3][RFC] PM / Hibernate: Encrypt the snapshot pages before submitted to the block device

2018-07-06 Thread Yu Chen
Hi Joey Lee, On Fri, Jun 29, 2018 at 08:59:43PM +0800, joeyli wrote: > On Thu, Jun 28, 2018 at 10:52:07PM +0800, Yu Chen wrote: > > Hi, > > On Thu, Jun 28, 2018 at 10:28:56PM +0800, joeyli wrote: > > > On Thu, Jun 28, 2018 at 09:50:17PM +0800, Yu Chen wrote: > >

Re: [PATCH][RFC v2] ACPI: acpi_pad: Do not launch acpi_pad threads on idle cpus

2018-12-11 Thread Yu Chen
Hi, On Tue, Dec 11, 2018 at 04:37:54PM +0800, joeyli wrote: > Hi Yu Chen, > > Thanks for your response! > > On Tue, Dec 11, 2018 at 11:12:21AM +0800, Yu Chen wrote: > > Hi Joey, > > On Mon, Dec 10, 2018 at 02:31:53PM +0800, joeyli wrote: > > > Hi Chen Yu a

Re: [PATCH][RFC v2] ACPI: acpi_pad: Do not launch acpi_pad threads on idle cpus

2018-12-10 Thread Yu Chen
Hi Joey, On Mon, Dec 10, 2018 at 02:31:53PM +0800, joeyli wrote: > Hi Chen Yu and ACPI experts, > > On Sat, May 05, 2018 at 07:53:22PM +0800, Chen Yu wrote: > > According to current implementation of acpi_pad driver, > > it does not make sense to spawn any power saving threads > > on the cpus whic

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

2018-09-18 Thread Yu Chen
Hi, On Fri, Sep 14, 2018 at 11:21:17AM +0200, Rafael J. Wysocki wrote: > On Tuesday, September 11, 2018 7:20:46 PM CEST Chen Yu wrote: > > From: Zhimin Gu > > > > Reduce the hibernation code duplication between x86-32 and x86-64 > > by extracting the common code into hibernate.c. > > > > No func

Re: [PATCH][v5] tools/power turbostat: if --iterations, print for specific count of iterations

2018-04-25 Thread Yu Chen
On Mon, Apr 23, 2018 at 10:48:39AM +0200, Rafael J. Wysocki wrote: > On Saturday, April 14, 2018 6:10:55 AM CEST Yu Chen wrote: > > From: Chen Yu > > > > There's a use case during test to only print specific round of iterations > > if --iterations is specifi

Re: [PATCH][RFC] ACPI: add "processor.broadcast_ppc" hook to broadcast _PPC to all online CPUs

2019-02-28 Thread Yu Chen
On Thu, Feb 14, 2019 at 12:36:48PM +0530, Viresh Kumar wrote: > On 14-02-19, 00:55, Yu Chen wrote: > > Hi Viresh, > > On Mon, Feb 11, 2019 at 04:03:07PM +0530, Viresh Kumar wrote: > > > On 09-02-19, 20:02, Chen Yu wrote: > > > > On Dell Inc. XPS13

Re: [PATCH][RFC] ACPI: add "processor.broadcast_ppc" hook to broadcast _PPC to all online CPUs

2019-02-28 Thread Yu Chen
On Thu, Feb 14, 2019 at 11:21:13AM +0100, Rafael J. Wysocki wrote: > On Wed, Feb 13, 2019 at 5:44 PM Yu Chen wrote: > > > > Hi Rafael, > > On Mon, Feb 11, 2019 at 11:41:26AM +0100, Rafael J. Wysocki wrote: > > > On Sat, Feb 9, 2019 at 12:54 PM Chen Yu wrote: >

[PATCH v3 00/12] Add support for usb on Hikey960

2019-03-02 Thread Yu Chen
/25/344 of Heikki Krogerus Yu Chen (12): dt-bindings: phy: Add support for HiSilicon's hi3660 USB PHY dt-bindings: misc: Add bindings for HiSilicon usb hub and data role switch functionality on HiKey960 usb: dwc3: dwc3-of-simple: Add support for dwc3 of Hisilicon Soc Platform

[PATCH v3 06/12] usb: dwc3: Increase timeout for CmdAct cleared by device controller

2019-03-02 Thread Yu Chen
It needs more time for the device controller to clear the CmdAct of DEPCMD on Hisilicon Kirin Soc. Cc: Andy Shevchenko Cc: Felipe Balbi Cc: Greg Kroah-Hartman Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- drivers/usb/dwc3/gadget.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v3 12/12] dts: hi3660: Add support for usb on Hikey960

2019-03-02 Thread Yu Chen
This patch adds support for usb on Hikey960. Cc: Chunfeng Yun Cc: Wei Xu Cc: Rob Herring Cc: Mark Rutland Cc: linux-arm-ker...@lists.infradead.org Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- v2: * Remove device_type property. * Add property "usb-role-switch".

[PATCH v3 11/12] usb: gadget: Add configfs attribuite for controling match_existing_only

2019-03-02 Thread Yu Chen
ig "match_existing_only". Cc: Andy Shevchenko Cc: Felipe Balbi Cc: Greg Kroah-Hartman Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- drivers/usb/gadget/configfs.c | 32 1 file changed, 32 insertions(+) diff --git a/drivers/usb/gadg

[PATCH v3 10/12] hikey960: Support usb functionality of Hikey960

2019-03-02 Thread Yu Chen
roah-Hartman Cc: John Stultz Cc: Binghui Wang Cc: Heikki Krogerus Signed-off-by: Yu Chen --- v1: * Using gpiod API with the gpios. * Removing registering usb role switch. * Registering usb role switch notifier. v2: * Fix license declaration. * Add configuration of gpio direction. * Remove some log p

[PATCH v3 03/12] usb: dwc3: dwc3-of-simple: Add support for dwc3 of Hisilicon Soc Platform

2019-03-02 Thread Yu Chen
This patch adds support for the poweron and shutdown of dwc3 core on Hisilicon Soc Platform. --- drivers/usb/dwc3/dwc3-of-simple.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/dwc3-of-simple.c b/drivers/usb/dwc3/dwc3-of-simple.c index 4c2771c5e727..0ed09

[PATCH v3 08/12] usb: roles: Add usb role switch notifier.

2019-03-02 Thread Yu Chen
This patch adds notifier for drivers want to be informed of the usb role switch. Cc: Greg Kroah-Hartman Cc: Heikki Krogerus Cc: Hans de Goede Cc: Andy Shevchenko Cc: John Stultz Suggested-by: Heikki Krogerus Signed-off-by: Yu Chen --- drivers/usb/roles/class.c | 20

[PATCH v3 02/12] dt-bindings: misc: Add bindings for HiSilicon usb hub and data role switch functionality on HiKey960

2019-03-02 Thread Yu Chen
This patch adds binding documentation to support usb hub and usb data role switch of Hisilicon HiKey960 Board. Cc: Sergei Shtylyov Cc: Rob Herring Cc: Mark Rutland Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- v1: * Fix some format errors as suggested by Sergei. * Modify gpio

[PATCH v3 07/12] phy: Add usb phy support for hi3660 Soc of Hisilicon

2019-03-02 Thread Yu Chen
uo Sun Cc: Masahiro Yamada Cc: Jiancheng Xue Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- v1: * Remove unused code and add comment for time delay as suggested by Kishon Vijay Abraham I. v2: * Fix license declaration. * Remove redundant parens. * Remove unused member variables

[PATCH v3 05/12] usb: dwc3: Execute GCTL Core Soft Reset while switch mdoe for Hisilicon Kirin Soc

2019-03-02 Thread Yu Chen
A GCTL soft reset should be executed when switch mode for dwc3 core of Hisilicon Kirin Soc. Cc: Andy Shevchenko Cc: Felipe Balbi Cc: Greg Kroah-Hartman Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- drivers/usb/dwc3/core.c | 19 +++ drivers/usb/dwc3/core.h | 1

[PATCH v3 09/12] usb: dwc3: Registering a role switch in the DRD code.

2019-03-02 Thread Yu Chen
: Heikki Krogerus Suggested-by: Heikki Krogerus Signed-off-by: Yu Chen --- v2: * Assign fwnode in dwc3_role_switch. v3: * Add default mode property for usb role switch. * Add select USB_ROLE_SWITCH for USB_DWC3_DUAL_ROLE in Kconfig. * Do usb_role_switch_register only if property "usb-role-s

[PATCH v3 01/12] dt-bindings: phy: Add support for HiSilicon's hi3660 USB PHY

2019-03-02 Thread Yu Chen
This patch adds binding documentation for supporting the hi3660 usb phy on boards like the HiKey960. Cc: Rob Herring Cc: Mark Rutland Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- v1: * Fix some format error as suggested by Rob. v2: * Change hi3660 usb PHY to hi3660 USB PHY v3

[PATCH v3 04/12] usb: dwc3: Add splitdisable quirk for Hisilicon Kirin Soc

2019-03-02 Thread Yu Chen
SPLIT_BOUNDARY_DISABLE should be set for DesignWare USB3 DRD Core of Hisilicon Kirin Soc when dwc3 core act as host. Cc: Andy Shevchenko Cc: Felipe Balbi Cc: Greg Kroah-Hartman Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- drivers/usb/dwc3/core.c | 24

Re: [PATCH 2/2][RFC v2] ACPI: Update cpuinfo.max after bootup if necessary

2019-03-02 Thread Yu Chen
On Thu, Feb 28, 2019 at 11:56:48PM +0100, Rafael J. Wysocki wrote: > On Thu, Feb 28, 2019 at 6:59 PM Chen Yu wrote: > > > > On Dell Inc. XPS13 9333, the BIOS changes the value of > > MSR_IA32_MISC_ENABLE_TURBO_DISABLE at runtime (e.g., when > > the power source changes), the maximum frequency of t

Re: [PATCH 1/2][RFC v2] ACPI: add "processor.broadcast_ppc" hook to broadcast _PPC

2019-03-02 Thread Yu Chen
On Fri, Mar 01, 2019 at 10:34:46AM +0100, Rafael J. Wysocki wrote: > On Thu, Feb 28, 2019 at 11:18 PM Rafael J. Wysocki wrote: > > > > On Thu, Feb 28, 2019 at 6:59 PM Chen Yu wrote: > > > > > > On some problematic platforms, the _PPC notifier is > > > only delivered to one CPU, which might cause

Re: [RFT][PATCH 0/2] cpufreq: intel_pstate: Handle _PPC updates on global turbo disable/enable

2019-03-02 Thread Yu Chen
On Fri, Mar 01, 2019 at 09:39:27AM -0800, Srinivas Pandruvada wrote: > On Fri, 2019-03-01 at 13:43 +0100, Rafael J. Wysocki wrote: > > Hi All, > > > > This is how I would fix the issue reported in BZ 200759 (see this > > patch series > > from Yu too: https://marc.info/?l=linux-pm&m=155137672924029

[PATCH] scsi: integer overflow in megadev_ioctl()

2013-12-13 Thread Yu Chen
There is a potential integer overflow in megadev_ioctl() if userspace passes in a large u32 variable uioc.adapno. The int variable adapno would < 0, leading to a error array access for hdb_soft_state[adapno]. Reported-by: Wenliang Fan Suggested-by: Qixue Xiao Signed-off-by: Yu C

Re: [PATCH] scsi: integer overflow in megadev_ioctl()

2013-12-13 Thread Yu Chen
to a error array access for hdb_soft_state[adapno], or a error copy_to_user(uioc.uioc_uaddr, mcontroller+adapno,..) Reported-by: Wenliang Fan Suggested-by: Qixue Xiao Signed-off-by: Yu Chen --- drivers/scsi/megaraid.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) d

Re: [PATCH] scsi: integer overflow in megadev_ioctl()

2013-12-13 Thread Yu Chen
ioctl() if >> userspace passes in a large u32 variable uioc.adapno. >> The int variable adapno would < 0, leading to an error >> array access for hdb_soft_state[adapno], or an error >> copy_to_user(uioc.uioc_uaddr, mcontroller+adapno,..) >> >> Reported-by: Wenlian

Re: [PATCH] scsi: int overflow in st_ioctl()

2013-12-17 Thread Yu Chen
his list: send the line "unsubscribe linux-kernel" in > the body of a message to majord...@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ -- Best Regards ==

Re: [PATCH] [v2] surface pro 3: Add support driver for Surface Pro 3 buttons

2015-08-17 Thread Yu Chen
On 08/11/2015 10:45 AM, Darren Hart wrote: On Fri, Aug 07, 2015 at 08:48:18AM +, Chen, Yu C wrote: On Fri, 2015-08-07 at 01:27 -0700, Joe Perches wrote: On Fri, 2015-08-07 at 15:57 +0800, Chen Yu wrote: \ I think the older switch/case was easier to un

Re: [PATCH] x86, suspend: Save/restore THERM_CONTROL register for suspend

2015-08-17 Thread Yu Chen
(not sure if previous reply has been sent out) Hi, Ingo, thanks for your review, On 08/17/2015 06:11 PM, Ingo Molnar wrote: * Chen Yu wrote: So what your changelog fails to mention: - You only add this code to the 64-bit kernel. Are 32-bit kernels not affected? I missed the 32-bit case,

Re: [PATCH] x86, suspend: Save/restore THERM_CONTROL register for suspend

2015-08-17 Thread Yu Chen
Hi Pavel, thanks for your review, On 08/17/2015 09:27 PM, Pavel Machek wrote: On Mon 2015-08-17 12:11:15, Ingo Molnar wrote: * Chen Yu wrote: A bug is reported(https://bugzilla.redhat.com/show_bug.cgi?id=1227208) Access denied :-( Might need to register for accessing. What HW is this o

Re: [PATCH] x86, suspend: Save/restore THERM_CONTROL register for suspend

2015-08-18 Thread Yu Chen
Hi! On 08/18/2015 04:02 PM, Pavel Machek wrote: Hi! A bug is reported(https://bugzilla.redhat.com/show_bug.cgi?id=1227208) Access denied :-( Might need to register for accessing. What HW is this on? Intel Braswell and Broadwell, detail for Broadwell: Platform: MayanCity Processor: 2x BR

Re: [PATCH] x86: Kill E820_RESERVED_KERN

2015-08-18 Thread Yu Chen
Hi, On 07/29/2015 03:21 AM, Yinghai Lu wrote: E820_RESERVED_KERN was introduced to do early allocation for setup_data when we were using original early_res with e820 map. Now we are using memblock to do early resource reserve/allocation, and setup_data is reserved in memblock early already. For

Re: [PATCH] [v4] x86, suspend: Save/restore extra MSR registers for suspend

2015-11-26 Thread Yu Chen
Hi, On 11/27/2015 11:28 AM, Doug Smythies wrote: On 2015.11.21 08:45 Doug Smythies wrote: On 2015.11.12 01:42 Chen, Yu C wrote: On 2015.11.06 11:34 Doug Smythies wrote: [cut] rdmsr_safe might be better, I'll look into it, thanks. you can refer to acpi_throttling_rdmsr I don't unde

Re: [RFC V2] init: support device of major:minor:offset format

2015-05-06 Thread Yu Chen
Hi, Geert On 05/07/2015 12:49 AM, Geert Uytterhoeven wrote: On Wed, May 6, 2015 at 2:24 AM, Chen Yu wrote: Distribution like Ubuntu uses klibc rather than uswsusp to resume system from hibernation, which will treat swap partition/file in the form of major:minor:offset. For example, 8:3:0 repre

Re: [4.1-rc1][Hibernation failed] bisect result included

2015-05-04 Thread Yu Chen
On 05/04/2015 10:26 PM, Mike Snitzer wrote: On Mon, May 04 2015 at 10:08am -0400, Rafael J. Wysocki wrote: On Sunday, May 03, 2015 03:54:39 PM Chen, Yu C wrote: Hi,all, When we are doing QA test, a hibernation failor was found on latest kernel 4.1-rc1, resume from hibernation failed with the

Re: [4.1-rc1][Hibernation failed] bisect result included

2015-05-05 Thread Yu Chen
On 05/06/2015 10:01 AM, Mike Snitzer wrote: On Tue, May 05 2015 at 4:48pm -0400, Rafael J. Wysocki wrote: On Tuesday, May 05, 2015 10:30:28 AM Yu Chen wrote: Thank you very much, Mike and Rafeal, I'll send another version titled with V2 for review. Have you sent it already? Where

Re: [4.1-rc1][Hibernation failed] bisect result included

2015-05-04 Thread Yu Chen
On 05/04/2015 02:24 AM, Martin Steigerwald wrote: Am Sonntag, 3. Mai 2015, 15:54:39 schrieb Chen, Yu C: Hi,all, Hello! When we are doing QA test, a hibernation failor was found on latest kernel 4.1-rc1, resume from hibernation failed with the following error: PM: Hibernation image not pres

[PATCH v4 12/12] dts: hi3660: Add support for usb on Hikey960

2019-03-15 Thread Yu Chen
This patch adds support for usb on Hikey960. Cc: Chunfeng Yun Cc: Wei Xu Cc: Rob Herring Cc: Mark Rutland Cc: linux-arm-ker...@lists.infradead.org Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- v2: * Remove device_type property. * Add property "usb-role-switch".

[PATCH v4 03/12] usb: dwc3: dwc3-of-simple: Add support for dwc3 of Hisilicon Soc Platform

2019-03-15 Thread Yu Chen
This patch adds support for the poweron and shutdown of dwc3 core on Hisilicon Soc Platform. Cc: Felipe Balbi Cc: Greg Kroah-Hartman Cc: John Stultz Signed-off-by: Yu Chen --- drivers/usb/dwc3/dwc3-of-simple.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/usb

[PATCH v4 01/12] dt-bindings: phy: Add support for HiSilicon's hi3660 USB PHY

2019-03-15 Thread Yu Chen
This patch adds binding documentation for supporting the hi3660 usb phy on boards like the HiKey960. Cc: Rob Herring Cc: Mark Rutland Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- v1: * Fix some format error as suggested by Rob. v2: * Change hi3660 usb PHY to hi3660 USB PHY v3

[PATCH] cpumask: cpumask_test_and_clear_cpu() comment correction

2019-03-19 Thread Yu Chen
Fix code comment for cpumask_test_and_clear_cpu(). Signed-off-by: Yu Chen --- include/linux/cpumask.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/cpumask.h b/include/linux/cpumask.h index 147bdec..73ca70d 100644 --- a/include/linux/cpumask.h +++ b/include

Re: Patch "x86/pm: Introduce quirk framework to save/restore extra MSR registers around suspend/resume" has been added to the 4.4-stable tree

2019-08-28 Thread Yu Chen
On Wed, Aug 28, 2019 at 10:43:51AM +0200, Greg KH wrote: > On Wed, Aug 28, 2019 at 12:12:39AM -0400, Sasha Levin wrote: > > This is a note to let you know that I've just added the patch titled > > > > x86/pm: Introduce quirk framework to save/restore extra MSR registers > > around suspend/res

[PATCH] arm: export memblock_reserve()d regions via /proc/iomem

2019-09-21 Thread Yu Chen
From: Yu Chen memblock reserved regions are not reported via /proc/iomem on ARM, kexec's user-space doesn't know about memblock_reserve()d regions and thus possible for kexec to overwrite with the new kernel or initrd. [    0.00] Booting Linux on physical CPU 0xf00 [    0.000

Re: [PATCH] arm: export memblock_reserve()d regions via /proc/iomem

2019-09-23 Thread Yu Chen
From: Yu Chen On Sat, 21 Sep 2019 15:51:38, Russell King - ARM Linux admin wrote: > On Sat, Sep 21, 2019 at 09:02:49PM +0800, Yu Chen wrote: > > From: Yu Chen > > > > memblock reserved regions are not reported via /proc/iomem on ARM, kexec's > > user-space doe

Re: [PATCH v3 1/2] platform/x86: surfacepro3_button: Fix device check

2019-07-25 Thread Yu Chen
On Sat, Jul 20, 2019 at 05:05:10PM +0200, Maximilian Luz wrote: > Do not use the surfacepro3_button driver on newer Microsoft Surface > models, only use it on the Surface Pro 3 and 4. Newer models (5th, 6th > and possibly future generations) use the same device as the Surface Pro > 4 to represent t

Re: [PATCH v2 1/2] platform: Fix device check for surfacepro3_button

2019-07-01 Thread Yu Chen
Hi, On Tue, Jul 02, 2019 at 02:37:39AM +0200, Maximilian Luz wrote: > Do not use the surfacepro3_button driver on newer Microsoft Surface > models, only use it on the Surface Pro 3 and 4. Newer models (5th, 6th > and possibly future generations) use the same device as the Surface Pro > 4 to represe

Re: [PATCH v2 1/2] platform: Fix device check for surfacepro3_button

2019-07-01 Thread Yu Chen
On Tue, Jul 02, 2019 at 03:33:20AM +0200, Maximilian Luz wrote: > On 7/2/19 3:25 AM, Maximilian Luz wrote: > > On 7/2/19 3:14 AM, Yu Chen wrote: > > > On Tue, Jul 02, 2019 at 02:37:39AM +0200, Maximilian Luz wrote: > > > > +/* > > > > + * Surface Pro 4 and

Re: [PATCH][RFC] ACPI: add "processor.broadcast_ppc" hook to broadcast _PPC to all online CPUs

2019-02-13 Thread Yu Chen
Hi Rafael, On Mon, Feb 11, 2019 at 11:41:26AM +0100, Rafael J. Wysocki wrote: > On Sat, Feb 9, 2019 at 12:54 PM Chen Yu wrote: > > > > On Dell Inc. XPS13 9333, the BIOS changes the value of > > MSR_IA32_MISC_ENABLE_TURBO_DISABLE at runtime (e.g., when > > the power source changes), the maximum fre

Re: [PATCH][RFC] ACPI: add "processor.broadcast_ppc" hook to broadcast _PPC to all online CPUs

2019-02-13 Thread Yu Chen
Hi Viresh, On Mon, Feb 11, 2019 at 04:03:07PM +0530, Viresh Kumar wrote: > On 09-02-19, 20:02, Chen Yu wrote: > > On Dell Inc. XPS13 9333, the BIOS changes the value of > > MSR_IA32_MISC_ENABLE_TURBO_DISABLE at runtime (e.g., when > > the power source changes), the maximum frequency of the > > CPU

[PATCH v2 02/10] dt-bindings: misc: Add bindings for HiSilicon usb hub and data role switch functionality on HiKey960

2019-02-18 Thread Yu Chen
This patch adds binding documentation to support usb hub and usb data role switch of Hisilicon HiKey960 Board. Cc: Sergei Shtylyov Cc: Rob Herring Cc: Mark Rutland Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- v1: * Fix some format errors as suggested by Sergei. * Modify gpio

[PATCH v2 04/10] usb: dwc3: Add two quirks for Hisilicon Kirin Soc Platform

2019-02-18 Thread Yu Chen
: Yu Chen --- v2: * Fix data type of reg from int to u32. --- --- drivers/usb/dwc3/core.c | 43 +++ drivers/usb/dwc3/core.h | 7 +++ drivers/usb/dwc3/gadget.c | 2 +- 3 files changed, 51 insertions(+), 1 deletion(-) diff --git a/drivers/usb/dwc3

[PATCH v2 01/10] dt-bindings: phy: Add support for HiSilicon's hi3660 USB PHY

2019-02-18 Thread Yu Chen
This patch adds binding documentation for supporting the hi3660 usb phy on boards like the HiKey960. Cc: Rob Herring Cc: Mark Rutland Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- v1: * Fix some format error as suggested by Rob. v2: * Change hi3660 usb PHY to hi3660 USB PHY

[PATCH v2 00/10] Add support for usb on Hikey960

2019-02-18 Thread Yu Chen
/lkml/2019/1/25/344 of Heikki Krogerus --- Yu Chen (10): dt-bindings: phy: Add support for HiSilicon's hi3660 USB PHY dt-bindings: misc: Add bindings for HiSilicon usb hub and data role switch functionality on HiKey960 usb: dwc3: dwc3-of-simple: Add support for dwc3 of Hisilico

[PATCH v2 03/10] usb: dwc3: dwc3-of-simple: Add support for dwc3 of Hisilicon Soc Platform

2019-02-18 Thread Yu Chen
This patch adds support for the poweron and shutdown of dwc3 core on Hisilicon Soc Platform. --- drivers/usb/dwc3/dwc3-of-simple.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/dwc3-of-simple.c b/drivers/usb/dwc3/dwc3-of-simple.c index 4c2771c5e727..0ed09

[PATCH v2 10/10] dts: hi3660: Add support for usb on Hikey960

2019-02-18 Thread Yu Chen
This patch adds support for usb on Hikey960. Cc: Wei Xu Cc: Rob Herring Cc: Mark Rutland Cc: linux-arm-ker...@lists.infradead.org Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- v2: * Remove device_type property. * Add property "usb-role-switch". --- --- arch/arm6

[PATCH v2 07/10] usb: dwc3: Registering a role switch in the DRD code.

2019-02-18 Thread Yu Chen
: Heikki Krogerus Signed-off-by: Yu Chen --- v2: * Assign fwnode in dwc3_role_switch. --- --- drivers/usb/dwc3/core.h | 2 ++ drivers/usb/dwc3/drd.c | 45 + 2 files changed, 47 insertions(+) diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h

[PATCH v2 08/10] hikey960: Support usb functionality of Hikey960

2019-02-18 Thread Yu Chen
John Stultz Cc: Binghui Wang Cc: Heikki Krogerus Signed-off-by: Yu Chen --- v1: * Using gpiod API with the gpios. * Removing registering usb role switch. * Registering usb role switch notifier. v2: * Fix license declaration. * Add configuration of gpio direction. * Remove some log p

[PATCH v2 09/10] usb: gadget: Add configfs attribuite for controling match_existing_only

2019-02-18 Thread Yu Chen
ig "match_existing_only". Cc: Andy Shevchenko Cc: Felipe Balbi Cc: Greg Kroah-Hartman Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- drivers/usb/gadget/configfs.c | 32 1 file changed, 32 insertions(+) diff --git a/drivers/usb/gadg

[PATCH v2 06/10] usb: roles: Add usb role switch notifier.

2019-02-18 Thread Yu Chen
This patch adds notifier for drivers want to be informed of the usb role switch. Cc: Greg Kroah-Hartman Cc: Heikki Krogerus Cc: Hans de Goede Cc: Andy Shevchenko Cc: John Stultz Suggested-by: Heikki Krogerus Signed-off-by: Yu Chen --- drivers/usb/roles/class.c | 20

[PATCH v2 05/10] phy: Add usb phy support for hi3660 Soc of Hisilicon

2019-02-18 Thread Yu Chen
uo Sun Cc: Masahiro Yamada Cc: Jiancheng Xue Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- v1: * Remove unused code and add comment for time delay as suggested by Kishon Vijay Abraham I. v2: * Fix license declaration. * Remove redundant parens. * Remove unused member variables

Re: [RFT][Update][PATCH 2/2] cpufreq: intel_pstate: Update max CPU frequency on global turbo changes

2019-03-04 Thread Yu Chen
On Fri, Mar 01, 2019 at 01:57:06PM +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > While the cpuinfo.max_freq value doesn't really matter for > intel_pstate in the active mode, in the passive mode it is used by > governors as the maximum physical frequency of the CPU and the > resul

Re: [PATCH 1/5] PM / hibernate: Create snapshot keys handler

2018-09-13 Thread Yu Chen
On Wed, Sep 12, 2018 at 10:23:33PM +0800, Lee, Chun-Yi wrote: > This patch adds a snapshot keys handler for using the key retention > service api to create keys for snapshot image encryption and > authentication. > > This handler uses TPM trusted key as the snapshot master key, and the > encryptio

Re: [PATCH 2/4][v2] PM / hibernate: Check the success of generating md5 digest before hibernation

2018-09-13 Thread Yu Chen
Hi Thomas, On Thu, Sep 13, 2018 at 10:26:39AM +0200, Thomas Gleixner wrote: > On Wed, 12 Sep 2018, Chen Yu wrote: > > static bool hibernation_e820_mismatch(void *buf) > > @@ -306,6 +307,7 @@ static bool hibernation_e820_mismatch(void *buf) > > int arch_hibernation_header_save(void *addr, unsigned

  1   2   >