Re: [PATCH ppc-next] powerpc/fsl-booke: don't load early TLB at once

2018-09-21 Thread York Sun
On 09/21/2018 10:47 AM, Scott Wood wrote: > On Fri, 2018-09-21 at 17:40 +0000, York Sun wrote: >> On 09/20/2018 05:31 PM, Scott Wood wrote: >>> On Fri, 2018-09-21 at 00:48 +0200, David Lamparter wrote: >>>> This is a *partial* revert of "powerpc/85xx: Load

Re: [PATCH ppc-next] powerpc/fsl-booke: don't load early TLB at once

2018-09-21 Thread York Sun
On 09/20/2018 05:31 PM, Scott Wood wrote: > On Fri, 2018-09-21 at 00:48 +0200, David Lamparter wrote: >> This is a *partial* revert of "powerpc/85xx: Load all early TLB entries >> at once" (d9e1831a420267a7ced708bb259d65b0a3c0344d.) >> >> My dusty old P4080DS just completely fails to boot (no

Re: [PATCH] QE GPIO: Add qe_gpio_set_multiple

2018-07-03 Thread York Sun
gt;>> -Original Message- >>>> From: Linuxppc-dev >>>> [mailto:linuxppc-dev-bounces+qiang.zhao=nxp@lists.ozlabs.org] On >>>> Behalf Of Joakim Tjernlund >>>> Sent: 2018年6月20日 0:22 >>>> To: York Sun ; linuxppc-dev >

Re: [PATCH] QE GPIO: Add qe_gpio_set_multiple

2018-06-19 Thread York Sun
On 06/19/2018 09:22 AM, Joakim Tjernlund wrote: > This cousin to gpio-mpc8xxx was lacking a multiple pins method, > add one. > > Signed-off-by: Joakim Tjernlund > --- > drivers/soc/fsl/qe/gpio.c | 28 > 1 file changed, 28 insertions(+) > Joakim, I am not the

Re: [PATCH] spi/fsl-espi: Add missing cell-index OF property

2018-06-19 Thread York Sun
Joakim, I am not the maintainer for this driver. Adding Mark Brown. York On 06/19/2018 09:23 AM, Joakim Tjernlund wrote: > espi does not look for a OF cell-index property which > makes the bus numbering dynamic only. This add an > optional cell-index. > > Signed-off-by: Joakim Tjernlund > ---

Re: FSL serial 166550 errata broken?

2017-09-27 Thread York Sun
On 09/27/2017 04:03 AM, Joakim Tjernlund wrote: > On Mon, 2017-09-25 at 17:26 +0000, York Sun wrote: >> On 09/25/2017 09:55 AM, Joakim Tjernlund wrote: >>> We got some "broken" boards(mpx8321) where UART RX is held low(BREAK) >>> There we get a few: >&g

Re: FSL serial 166550 errata broken?

2017-09-25 Thread York Sun
On 09/25/2017 09:55 AM, Joakim Tjernlund wrote: > We got some "broken" boards(mpx8321) where UART RX is held low(BREAK) > There we get a few: >serial8250: too much work for irq18 > and the board freezes. > > Looking inte to driver/CPU there is an errtum(A-004737) w.r.t BREAK handling > and I

Re: Machine Check in P2010(e500v2)

2017-09-06 Thread York Sun
Scott is no longer with Freescale/NXP. Adding Leo. On 09/05/2017 01:40 AM, Joakim Tjernlund wrote: > So after some debugging I found this bug: > @@ -996,7 +998,7 @@ int fsl_pci_mcheck_exception(struct pt_regs *regs) > if (is_in_pci_mem_space(addr)) { > if

Re: [PATCH] fsl_pci: Correct fsl_pci_mcheck_exception

2017-09-06 Thread York Sun
On 09/05/2017 04:59 AM, Joakim Tjernlund wrote: > get_user() had it args reversed causing NIP to be NULL:ed instead > of fixing up the PCI access. > > Note: This still hangs my P1020 Freescale CPU hard, but at least > I get a NIP now. > > Signed-off-by: Joakim Tjernlund

Re: [Patch v3 01/11] arch/powerpc/pci: Fix compiling error for mpc85xx_edac

2016-08-08 Thread york sun
On 08/05/2016 12:01 AM, Borislav Petkov wrote: > On Fri, Aug 05, 2016 at 04:26:26AM +0000, york sun wrote: >> I don't have deep knowledge of this driver. What I am trying is to >> separate the common DDR part and share it with ARM platforms. Along the >> way, I found the com

Re: [Patch v3 01/11] arch/powerpc/pci: Fix compiling error for mpc85xx_edac

2016-08-05 Thread york sun
On 08/05/2016 02:09 PM, Scott Wood wrote: > On Fri, 2016-08-05 at 20:29 +0000, york sun wrote: >> On 08/04/2016 08:43 PM, Michael Ellerman wrote: >>> >>> Does the driver really need to use these routines? They're meant for use >>> early in boot, before PCI i

Re: [Patch v3 01/11] arch/powerpc/pci: Fix compiling error for mpc85xx_edac

2016-08-05 Thread york sun
On 08/04/2016 08:43 PM, Michael Ellerman wrote: > York Sun <york@nxp.com> writes: > >> Two symbols are missing if mpc85xx_edac driver is compiled as module. >> >> Signed-off-by: York Sun <york@nxp.com> >> >> --- >> Change log >

Re: [Patch v3 01/11] arch/powerpc/pci: Fix compiling error for mpc85xx_edac

2016-08-05 Thread york sun
On 08/04/2016 04:36 PM, Andrew Donnellan wrote: > On 05/08/16 08:58, York Sun wrote: >> Two symbols are missing if mpc85xx_edac driver is compiled as module. >> >> Signed-off-by: York Sun <york@nxp.com> > > Good catch! One comment below. > > Reviewed-by:

Re: [Patch v3 01/11] arch/powerpc/pci: Fix compiling error for mpc85xx_edac

2016-08-05 Thread york sun
On 08/04/2016 08:43 PM, Michael Ellerman wrote: > York Sun <york@nxp.com> writes: > >> Two symbols are missing if mpc85xx_edac driver is compiled as module. >> >> Signed-off-by: York Sun <york@nxp.com> >> >> --- >> Change log >

[Patch v3 01/11] arch/powerpc/pci: Fix compiling error for mpc85xx_edac

2016-08-04 Thread York Sun
Two symbols are missing if mpc85xx_edac driver is compiled as module. Signed-off-by: York Sun <york@nxp.com> --- Change log v3: Change subject tag v2: no change arch/powerpc/kernel/pci-common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/kernel/pci-comm

Re: [v2,1/2] powerpc/mpc8xxx: Change EDAC for FSL SoC

2015-05-29 Thread York Sun
On 05/28/2015 05:46 PM, Scott Wood wrote: On Thu, May 07, 2015 at 05:41:37PM +0800, songwenbin wrote: From: York Sun york...@freescale.com Remove mpc83xx and mpc85xx as dependency. Signed-off-by: York Sun york...@freescale.com Signed-off-by: songwenbin wenbin.s...@freescale.com

Re: [PATCH] fsl/smp: add low power boot support to replace spin boot

2015-01-15 Thread York Sun
On 01/14/2015 10:05 PM, Dongsheng Wang wrote: From: Wang Dongsheng dongsheng.w...@freescale.com U-boot put non-boot cpus into an low power state(PW10/PW20 or DOZE) when cpu powered up. To exit low power state kernel will send DOORBELL or MPIC-IPI signal to all those CPUs. e500/e500v2

Re: [5/7] powerpc/corenet64_smp_defconfig: Enable most SPI splash

2013-10-28 Thread York Sun
On 10/28/2013 05:28 PM, Scott Wood wrote: On Fri, Sep 06, 2013 at 08:43:17AM -0700, York Sun wrote: Enable CONFIG_MTD_M25P80 for corenet64_smp_defconfig. Verified on P5040DS. Signed-off-by: York Sun york...@freescale.com Reviewed-by: Wood Scott-B07421 scottw...@freescale.com Reviewed

[Patch v2] powerpc/corenet64_smp_defconfig: Enable most SPI splash

2013-09-16 Thread York Sun
Enable CONFIG_MTD_M25P80 for corenet64_smp_defconfig. Verified on P5040DS. Signed-off-by: York Sun york...@freescale.com --- Change log: v2: remote reviewed-by and tested-by lines added by gerrit arch/powerpc/configs/corenet64_smp_defconfig |1 + 1 file changed, 1 insertion(+) diff --git

[Patch v2 1/2] powerpc/t4240emu: Add device tree file for t4240emu

2013-09-16 Thread York Sun
T4240EMU is an emulator target with minimum peripherals. It is based on T4240QDS and trimmed down most peripherals due to either not modeled or lack of board level connections. The main purpose of this minimum dts is to speed up booting on emulator. Signed-off-by: York Sun york...@freescale.com

[Patch v2 2/2] powerpc/b4860emu: Add device tree file for b4860emu

2013-09-16 Thread York Sun
B4860EMU is a emualtor target with minimum peripherals. It is based on B4860QDS and trimmed down most peripherals due to either not modeled or lack of board level connections. The main purpose of this minimum dts is to speed up booting on emulator. Signed-off-by: York Sun york...@freescale.com

Re: [linuxppc-release] [Patch v2] powerpc/corenet64_smp_defconfig: Enable most SPI splash

2013-09-16 Thread York Sun
On 09/16/2013 04:35 PM, York Sun wrote: Enable CONFIG_MTD_M25P80 for corenet64_smp_defconfig. Verified on P5040DS. Signed-off-by: York Sun york...@freescale.com --- Change log: v2: remote reviewed-by and tested-by lines added by gerrit Pardon my typo. I meant to type remove, instead

Re: [linuxppc-release] [Patch v2 1/2] powerpc/t4240emu: Add device tree file for t4240emu

2013-09-16 Thread York Sun
On 09/16/2013 04:38 PM, York Sun wrote: T4240EMU is an emulator target with minimum peripherals. It is based on T4240QDS and trimmed down most peripherals due to either not modeled or lack of board level connections. The main purpose of this minimum dts is to speed up booting on emulator

[PATCH 2/7] powerpc/mpc8xxx: Change EDAC for FSL SoC

2013-09-06 Thread York Sun
Remove mpc83xx and mpc85xx as dependency. Signed-off-by: York Sun york...@freescale.com Reviewed-by: Fleming Andrew-AFLEMING aflem...@freescale.com Tested-by: Fleming Andrew-AFLEMING aflem...@freescale.com --- drivers/edac/Kconfig |4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH 3/7] i2c/rtc-ds3232: Fix irq for probing

2013-09-06 Thread York Sun
Driver shouldn't request irq when irq = 0. It is returned from parsing device tree. 0 means no interrupt. Signed-off-by: York Sun york...@freescale.com Reviewed-by: Zang Tiefei-R61911 tie-fei.z...@freescale.com Reviewed-by: Fleming Andrew-AFLEMING aflem...@freescale.com Tested-by: Fleming Andrew

[PATCH 6/7] powerpc/t4240emu: Add device tree file for t4240emu

2013-09-06 Thread York Sun
T4240EMU is an emulator target with minimum peripherals. It is based on T4240QDS and trimmed down most peripherals due to either not modeled or lack of board level connections. The main purpose of this minimum dts is to speed up booting on emulator. Signed-off-by: York Sun york...@freescale.com

[PATCH 5/7] powerpc/corenet64_smp_defconfig: Enable most SPI splash

2013-09-06 Thread York Sun
Enable CONFIG_MTD_M25P80 for corenet64_smp_defconfig. Verified on P5040DS. Signed-off-by: York Sun york...@freescale.com Reviewed-by: Wood Scott-B07421 scottw...@freescale.com Reviewed-by: Fleming Andrew-AFLEMING aflem...@freescale.com Tested-by: Fleming Andrew-AFLEMING aflem...@freescale.com

[PATCH 7/7] powerpc/b4860emu: Add device tree file for b4860emu

2013-09-06 Thread York Sun
B4860EMU is a emualtor target with minimum peripherals. It is based on B4860QDS and trimmed down most peripherals due to either not modeled or lack of board level connections. The main purpose of this minimum dts is to speed up booting on emulator. Signed-off-by: York Sun york...@freescale.com

[PATCH 4/7] power/mpc85xx: Add delay after enabling I2C master

2013-09-06 Thread York Sun
. It is safe to apply to all of them for mpc_i2c_fixup(). Signed-off-by: York Sun york...@freescale.com Reviewed-by: Wood Scott-B07421 scottw...@freescale.com Reviewed-by: Fleming Andrew-AFLEMING aflem...@freescale.com Tested-by: Fleming Andrew-AFLEMING aflem...@freescale.com CC: linux-...@vger.kernel.org

Re: [RFC] power/mpc85xx: Add delay after enabling I2C master

2013-07-23 Thread York Sun
On 07/22/2013 05:33 PM, Scott Wood wrote: On Mon, May 13, 2013 at 02:27:08PM -0700, York Sun wrote: Erratum A-006037 indicates I2C controller executes the write to I2CCR only after it sees SCL idle for 64K cycle of internal I2C controller clocks. If during this waiting period, I2C controller

Re: [RFC] power/mpc85xx: Add delay after enabling I2C master

2013-07-23 Thread York Sun
On 07/23/2013 11:43 AM, Scott Wood wrote: Yes. The max divider from sys clock to i2c clcok is 32K. i2c-real_clk is the clock I2C controller pumps out, not its internal operation clock. 32K is the max for all implementations? Yes, according to application note 2919 (published). BTW,

[PATCH RFC] power/mpc85xx: Add delay after enabling I2C master

2013-05-13 Thread York Sun
. It is safe to apply to all of them for mpc_i2c_fixup(). Signed-off-by: York Sun york...@freescale.com --- I'd like to get rid of the #ifdef if mpc5121 is OK with the longer delay. drivers/i2c/busses/i2c-mpc.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/i2c

[PATCH] powerpc/mpc85xx: Change spin table to cached memory

2012-09-29 Thread York Sun
table is recommended by ePAPR. Signed-off-by: York Sun york...@freescale.com Acked-by: Timur Tabi ti...@freescale.com --- This patch applies to git://git.kernel.org/pub/scm/linux/kernel/git/galak/powerpc.git next branch. arch/powerpc/platforms/85xx/smp.c | 49

[PATCH] powerpc/85xx: Add back condition for smp

2012-04-17 Thread York Sun
, .take_timebase = smp_generic_take_timebase, Signed-off-by: York Sun york...@freescale.com Acked-by: Li Yang le...@freescale.com --- arch/powerpc/platforms/85xx/smp.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/platforms/85xx/smp.c b/arch/powerpc

Re: [PATCH v3 09/11] powerpc/mpc5121: shared DIU framebuffer support

2010-02-18 Thread York Sun
On Tue, 2010-02-16 at 11:06 -0700, Grant Likely wrote: [...] diff --git a/drivers/video/fsl-diu-fb.c b/drivers/video/fsl-diu-fb.c index 72d68b3..29c7f31 100644 --- a/drivers/video/fsl-diu-fb.c +++ b/drivers/video/fsl-diu-fb.c @@ -34,7 +34,7 @@ #include linux/of_platform.h

[PATCH 1/2] Added virtual resolution and panning support.

2008-08-13 Thread York Sun
Application can now have the virtual resoltuion and use FBIOPAN_DISPLAY ioctl to pan. Signed-off-by: York Sun [EMAIL PROTECTED] --- drivers/video/fsl-diu-fb.c | 28 +++- 1 files changed, 23 insertions(+), 5 deletions(-) diff --git a/drivers/video/fsl-diu-fb.c b

[PATCH 2/2] Bug fix. Add sanity check for AOI position

2008-08-13 Thread York Sun
AOI position cannot be negative. Signed-off-by: York Sun [EMAIL PROTECTED] --- drivers/video/fsl-diu-fb.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/video/fsl-diu-fb.c b/drivers/video/fsl-diu-fb.c index d67e79b..8898d2a 100644 --- a/drivers/video/fsl-diu

[PATCH 0/2] Add virtual resolution and panning for Freescale DIU

2008-08-13 Thread York Sun
This patch set adds virtual resolutoin suppport for Freescale DIU driver. Applications such as fbset can set visible resolution and virtual resoltuion. X window can use the virtual resolution if xorg.conf has the following option. option virtual vxres vyres The second patch fixes a bug of AOI

Re: [PATCH 2/2 v5] Add DIU platform code for MPC8610HPCD

2008-04-02 Thread York Sun
On Tue, 2008-04-01 at 14:00 -0700, Andrew Morton wrote: On Mon, 31 Mar 2008 11:23:25 -0500 York Sun [EMAIL PROTECTED] wrote: Add platform code to support Freescale DIU. The platform code includes framebuffer memory allocation, pixel format, monitor port, etc. Signed-off-by: York Sun

v5 patch to add FSL DIU framebuffer driver

2008-03-31 Thread York Sun
Thanks for the feedback from Scott and Anton. Here is the version 5 patch. My previous patch didn't arrive at [EMAIL PROTECTED] Hopefully this issue has been fixed and more feedback from the mailing list. Regards, York ___ Linuxppc-dev mailing list

[PATCH 2/2 v5] Add DIU platform code for MPC8610HPCD

2008-03-31 Thread York Sun
Add platform code to support Freescale DIU. The platform code includes framebuffer memory allocation, pixel format, monitor port, etc. Signed-off-by: York Sun [EMAIL PROTECTED] Signed-off-by: Timur Tabi [EMAIL PROTECTED] --- This patch addes platform support for Freescale DIU driver, targeting

[PATCH 1/2 v5] Driver for Freescale 8610 and 5121 DIU

2008-03-31 Thread York Sun
, monitor with the same syntax above. Signed-off-by: York Sun [EMAIL PROTECTED] Signed-off-by: Timur Tabi [EMAIL PROTECTED] --- This patch addes new feature of Freescale DIU driver, targeting 2.6.26 kernel. Documentation/powerpc/booting-without-of.txt | 33 + arch/powerpc/boot/dts

Re: [PATCH 1/2 v4] Driver for Freescale 8610 and 5121 DIU

2008-03-28 Thread York Sun
On Fri, 2008-03-28 at 20:48 +0300, Anton Vorontsov wrote: + if (copy_from_user(pix_fmt, (void __user *)arg, + sizeof(pix_fmt))) OK, you fixed the cast here... Maybe better would be to define buf at the top of this function as void __user *buf = (void

v4 patch to add FSL DIU framebuffer driver

2008-03-27 Thread York Sun
Thanks for the feedback. The following mails are the v4 patch to add Freescale DIU framebuffer driver. York ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

[PATCH 2/2 v4] Add DIU platform code for MPC8610HPCD

2008-03-27 Thread York Sun
Add platform code to support Freescale DIU. The platform code includes framebuffer memory allocation, pixel format, monitor port, etc. Signed-off-by: York Sun [EMAIL PROTECTED] Signed-off-by: Timur Tabi [EMAIL PROTECTED] --- This patch adds DIU platform support for MPC8610HPCD board, targeting

[PATCH 1/2 v4] Driver for Freescale 8610 and 5121 DIU

2008-03-27 Thread York Sun
, monitor with the same syntax above. Signed-off-by: York Sun [EMAIL PROTECTED] Signed-off-by: Timur Tabi [EMAIL PROTECTED] --- This patch addes new feature of Freescale Display Unit framebuffer driver, targeting 2.6.26 kernel. Documentation/powerpc/booting-without-of.txt | 33 + arch/powerpc

V3 Patch - Driver for Freescale 8610 and 5121 DIU

2008-03-25 Thread York Sun
The following two patches are the 3rd version of the DIU patch for Freescale 8610 and 5121. It fixed the issues according to the feedback from Andrew Morton. Andrew, incremental patches are available if requested. Regards, York ___ Linuxppc-dev

[PATCH 2/2 v3] Add DIU platform code for MPC8610HPCD

2008-03-25 Thread York Sun
Add platform code to support Freescale DIU. The platform code includes framebuffer memory allocation, pixel format, monitor port, etc. Signed-off-by: York Sun [EMAIL PROTECTED] --- This patch enables Freescale DIU driver for MPC8610HPCD board. arch/powerpc/configs/mpc8610_hpcd_defconfig | 198

[PATCH 1/2 v3] Driver for Freescale 8610 and 5121 DIU

2008-03-25 Thread York Sun
, monitor with the same syntax above. Signed-off-by: York Sun [EMAIL PROTECTED] Signed-off-by: Timur Tabi [EMAIL PROTECTED] --- This patch addes new feature of Freescale DIU driver, targeting 2.6.26 kernel. Documentation/powerpc/booting-without-of.txt | 34 + arch/powerpc/boot/dts

v2 patch for Freescale DIU driver

2008-03-19 Thread York Sun
This is the version 2 patch for Freescale DIU driver. Thanks for all the feedback. The first patch is the driver. The second patch adds platform support for MPC8610HPCD board. To compile, enable the Freescale MPC8610/MPC5121 DIU framebuffer support in the menuconfig.

[PATCH 2/2 v2] Add DIU platform code for MPC8610HPCD

2008-03-19 Thread York Sun
Add platform code to support Freescale DIU. The platform code includes framebuffer memory allocation, pixel format, monitor port, etc. Signed-off-by: York Sun [EMAIL PROTECTED] --- This patch is targeting 2.6.26 kernel. arch/powerpc/platforms/86xx/mpc8610_hpcd.c | 182