Re: [PATCH 0/3] soc: fsl: dpio: Enable QMAN batch enqueuing

2020-02-19 Thread Li Yang
On Thu, Feb 6, 2020 at 2:41 PM Roy Pledge wrote: > > On 12/12/2019 12:01 PM, Youri Querry wrote: > > This patch set consists of: > > - We added an interface to enqueue several packets at a time and > >improve performance. > > - Make the algorithm decisions once at initialization and use > >

[PATCH] usb/fsl_udc: fix dequeuing a request in progress

2011-11-11 Thread Li Yang
The original implementation of dequeuing a request in progress is not correct. Change to use a correct process and also clean up the related functions a little bit. Signed-off-by: Li Yang --- drivers/usb/gadget/fsl_udc_core.c | 62 +--- 1 files changed, 29

[PATCH v2] usb/fsl_udc: fix dequeuing a request in progress

2011-11-23 Thread Li Yang
The original implementation of dequeuing a request in progress is not correct. Change to use a correct process and also clean up the related functions a little bit. Signed-off-by: Li Yang Cc: Peter Chen --- drivers/usb/gadget/fsl_udc_core.c | 68 +--- drivers

Re: [PATCH 3/3] mtd/nand : workaround for Freescale FCM to support large-page Nand chip

2011-12-14 Thread Li Yang
On Thu, Dec 15, 2011 at 4:15 AM, Scott Wood wrote: > On 12/14/2011 02:41 AM, LiuShuo wrote: >> 于 2011年12月13日 10:46, LiuShuo 写道: >>> 于 2011年12月13日 05:30, Scott Wood 写道: On 12/12/2011 03:19 PM, Artem Bityutskiy wrote: > On Mon, 2011-12-12 at 15:15 -0600, Scott Wood wrote: >> NAND chips

Re: [PATCH 3/3] mtd/nand : workaround for Freescale FCM to support large-page Nand chip

2011-12-19 Thread Li Yang
On Sat, Dec 17, 2011 at 1:59 AM, Scott Wood wrote: > On 12/15/2011 08:44 PM, LiuShuo wrote: >> hi Artem, >> Could this patch be applied now and we make a independent patch for  bad >> block information >> migration later? > > This patch is not safe to use without migration. Hi Scott, We agree it

Re: [PATCH 3/3] mtd/nand : workaround for Freescale FCM to support large-page Nand chip

2011-12-20 Thread Li Yang
On Tue, Dec 20, 2011 at 12:47 AM, Scott Wood wrote: > On 12/19/2011 05:05 AM, Li Yang wrote: >> On Sat, Dec 17, 2011 at 1:59 AM, Scott Wood wrote: >>> On 12/15/2011 08:44 PM, LiuShuo wrote: >>>> hi Artem, >>>> Could this patch be applied now and we ma

Re: [PATCH][SDK v1.2] sata: I/O load balancing

2012-01-13 Thread Li Yang
On Fri, Jan 13, 2012 at 4:25 PM, Qiang Liu wrote: > From: Qiang Liu > > Reduce interrupt singnals through reset Interrupt Coalescing Control Reg. > Increase the threshold value of interrupt and timer will reduce the number > of complete interrupt sharply. Improve the system performance effectivel

Re: [PATCH] powerpc/sgmii: Add phy nodes in SGMII mode

2012-07-12 Thread Li Yang
On Thu, Jul 12, 2012 at 8:18 PM, Kumar Gala wrote: > > On Jul 12, 2012, at 5:28 AM, Jia Hongtao-B38951 wrote: > >> Note that this patch works with uboot update. >> Please refer to: >> http://patchwork.ozlabs.org/patch/170627/ >> >> -Hongtao. > > Will RGMII still work with this patch if I dont upda

Re: [PATCH v3 3/4] fsl-dma: change release process of dma descriptor for supporting async_tx

2012-07-16 Thread Li Yang
ma channels, it affects the process of raid operations > due to ack_tx is not checked in fsl dma. The no-acked descriptor is freed > which is submitted just now, as a dependent tx, this freed descriptor trigger > BUG_ON(async_tx_test_ack(depend_tx)) in async_tx_submit(). > > Cc: Dan

Re: [linuxppc-release] [PATCH v3 4/4] fsl-dma: use spin_lock_bh to instead of spin_lock_irqsave

2012-07-16 Thread Li Yang
l; herb...@gondor.hengli.com.au; Dan Williams; Li Yang-R58472; >> da...@davemloft.net >> Subject: Re: [linuxppc-release] [PATCH v3 4/4] fsl-dma: use spin_lock_bh >> to instead of spin_lock_irqsave >> >> Qiang Liu wrote: >> > Use spin_lock_bh to instead of spin

Re: [PATCH v8 0/7] power management patch set

2012-07-26 Thread Li Yang
On Fri, Jul 20, 2012 at 8:42 PM, Zhao Chenhui wrote: > Changes for v8: > * Separated the cpu hotplug patch into three patches, as follows > [PATCH v8 1/7] powerpc/smp: use a struct epapr_spin_table to replace macros > [PATCH v8 2/7] powerpc/smp: add generic_set_cpu_up() to set cpu_state as >

Re: [PATCH v8 0/7] power management patch set

2012-07-26 Thread Li Yang
On Fri, Jul 27, 2012 at 1:29 AM, Kumar Gala wrote: > > On Jul 26, 2012, at 9:02 AM, Li Yang wrote: > >> On Fri, Jul 20, 2012 at 8:42 PM, Zhao Chenhui >> wrote: >>> Changes for v8: >>> * Separated the cpu hotplug patch into three patches, as follows >&

Re: [PATCH V3 1/5] powerpc/fsl-pci: Unify pci/pcie initialization code

2012-07-31 Thread Li Yang
AM >>> To: Wood Scott-B07421 >>> Cc: Jia Hongtao-B38951; linuxppc-dev@lists.ozlabs.org; Wood Scott-B07421; >>> Li Yang-R58472 >>> Subject: Re: [PATCH V3 1/5] powerpc/fsl-pci: Unify pci/pcie >>> initialization code >>> >>> >>>

Re: [PATCH V4 2/3] powerpc/swiotlb: Enable at early stage and disable if not necessary

2012-08-03 Thread Li Yang
t;>> To: Jia Hongtao-B38951 >>> Cc: linuxppc-dev@lists.ozlabs.org; Wood Scott-B07421; Li Yang-R58472 >>> Subject: Re: [PATCH V4 2/3] powerpc/swiotlb: Enable at early stage and >>> disable if not necessary >>> >>> >>> On Aug 2, 2012, at 6:42 AM,

Re: [PATCH V5 3/3] powerpc/fsl-pci: Unify pci/pcie initialization code

2012-08-06 Thread Li Yang
ao-B38951 >>> Cc: linuxppc-dev@lists.ozlabs.org; ga...@kernel.crashing.org; Li Yang- >>> R58472; Wood Scott-B07421 >>> Subject: Re: [PATCH V5 3/3] powerpc/fsl-pci: Unify pci/pcie >>> initialization code >>> >>> On 08/03/2012 05:14 AM, Jia Hongtao wrot

Re: [PATCH 5/6] powerpc/fsl-pci: Add pci inbound/outbound PM support

2012-08-08 Thread Li Yang
; To: Jia Hongtao-B38951 >> Cc: Wood Scott-B07421; linuxppc-dev@lists.ozlabs.org; Li Yang-R58472 >> Subject: Re: [PATCH 5/6] powerpc/fsl-pci: Add pci inbound/outbound PM >> support >> >> >>>>>> >> >>>>>> On Jul 24, 2012, at 5:

Re: [PATCH][V4] powerpc/fsl-pci: Add pci inbound/outbound PM support

2012-09-27 Thread Li Yang
t; Power supply for PCI inbound/outbound window registers is off >>>>>>>>>>>> when system go to deep-sleep state. We save the values of >>>>>>>>>>>> registers >>>>>>>> before >>>>>>>>>>>&

Re: [PATCH 2/3] usb: gadget: fsl_qe_udc: do not use tasklet_disable before tasklet_kill

2012-10-31 Thread Li Yang
On Wed, Oct 31, 2012 at 9:26 PM, Felipe Balbi wrote: > On Wed, Oct 31, 2012 at 04:06:00PM +0800, Xiaotian Feng wrote: >> If tasklet_disable() is called before related tasklet handled, >> tasklet_kill will never be finished. tasklet_kill is enough. > > how did you test this ? Why changing FSL drive

[PATCH] powerpc: Fix typos in Freescale copyright claims

2012-11-01 Thread Li Yang
There are many cases that Semiconductor is misspelled. The patch fix these typos. Signed-off-by: Li Yang --- arch/powerpc/include/asm/dbell.h |2 +- arch/powerpc/include/asm/fsl_gtm.h|2 +- arch/powerpc/include/asm/immap_qe.h |2 +- arch/powerpc/include/asm

Re: [PATCH V2 RESEND] fsl-sata: I/O load balancing

2012-02-14 Thread Li Yang
On Wed, Feb 15, 2012 at 1:49 PM, Qiang Liu wrote: Hi Liu Qiang, The patch is fine except for the title and comment. It's too vague to say I/O load balancing. You need explicit description like "add interrupt coalescing support" as title. > Reduce interrupt signals through reset Interrupt Coal

Re: [PATCH V3] fsl-sata: add support for interrupt coalsecing feature

2012-02-14 Thread Li Yang
on different applications. > > Signed-off-by: Qiang Liu Acked-by: Li Yang - Leo ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

[PATCH 1/2] powerpc/85xx: fix problem that prevents PHYS_64BIT from configurable

2012-02-16 Thread Li Yang
dress manipulating. We should not enable it unless really needed, e.g. use large memory of 4GB or bigger. Signed-off-by: Li Yang --- arch/powerpc/platforms/85xx/Kconfig |6 -- 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/platforms/85xx/Kconfig b/arch/po

[PATCH 2/2] powerpc/85xx: add a 36-bit corenet default config

2012-02-16 Thread Li Yang
This default config should be used by platforms that only provides 36-bit software support in tree, such as P3041DS, P3060QDS, P4080DS, P5020DS, and etc. Signed-off-by: Li Yang --- arch/powerpc/configs/corenet36_smp_defconfig | 185 ++ 1 files changed, 185 insertions

Re: [PATCH] USB: ehci-fsl: Turn on cache snooping on MPC8xxx

2012-02-16 Thread Li Yang
atch upstream earlier. I remember you asked about it a few months ago. :) Acked-by: Li Yang > --- >  drivers/usb/host/ehci-fsl.c |   23 ++- >  1 files changed, 10 insertions(+), 13 deletions(-) > > diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/eh

Re: [PATCH v5 1/5] powerpc/85xx: implement hardware timebase sync

2012-05-29 Thread Li Yang
ase sync. Firstly, stop all timebases, and transfer > the timebase value of the boot core to the other core. Finally, > start all timebases. > > Only apply to dual-core chips, such as MPC8572, P2020, etc. > > Signed-off-by: Zhao Chenhui > Signed-off-by: Li Yang > ---

Re: ppc/sata-fsl: orphan config value: CONFIG_MPC8315_DS

2012-05-30 Thread Li Yang
On Wed, May 30, 2012 at 6:57 AM, Scott Wood wrote: > On 05/29/2012 05:07 PM, Anthony Foiani wrote: >> Scott Wood writes: >> >>> CONFIG_MPC831x_RDB doesn't mean that you're running on such a board, >>> only that the kernel supports those boards.  It should be a runtime >>> test. >> >> Point taken.

Re: [PATCH v5 4/5] fsl_pmc: Add API to enable device as wakeup event source

2012-06-05 Thread Li Yang
On Wed, Jun 6, 2012 at 2:05 AM, Scott Wood wrote: > On 06/05/2012 11:49 AM, Li Yang-R58472 wrote: >> >> >>>>> On 06/04/2012 06:36 AM, Zhao Chenhui wrote: >>>>>> On Fri, Jun 01, 2012 at 05:08:52PM -0500, Scott Wood wrote: >>>>&

Re: [PATCH v5 4/5] fsl_pmc: Add API to enable device as wakeup event source

2012-06-06 Thread Li Yang
On Thu, Jun 7, 2012 at 2:29 AM, Scott Wood wrote: > On 06/05/2012 11:06 PM, Li Yang wrote: >> On Wed, Jun 6, 2012 at 2:05 AM, Scott Wood wrote: >>> You ignored "what about devices other than ethernet". >> >> No, I haven't.  Other devices are so at le

Re: [PATCH][v2] powerpc/fsl: 85xx: add cache-sram support

2010-10-14 Thread Li Yang
Oct 13, 2010 at 8:00 PM, wrote: > From: Harninder Rai > > It adds cache-sram support in P1/P2 QorIQ platforms as under: > >    * A small abstraction over powerpc's remote heap allocator >    * Exports mpc85xx_cache_sram_alloc()/free() APIs >    * Supports only one contiguous SRAM window >    *

Re: [PATCH RFC] PPC: /dev/mem: All RAM is cacheable, not just the kernel's.

2010-10-19 Thread Li Yang
On Tue, Oct 19, 2010 at 6:32 AM, Scott Wood wrote: > If mem= is used on the kernel command line to create reserved regions > for userspace to map using /dev/mem, let it be mapped cacheable as long > as it is within the memory region described in the device tree. > > Signed-off-by: Scott Wood > --

[PATCH v2] fsldma: add support to 36-bit physical address

2010-11-11 Thread Li Yang
Expand the dma_mask of fsldma device to 36-bit, indicating that the DMA engine can deal with 36-bit physical address and does not need the SWIOTLB to create bounce buffer for it when doing dma_map_*(). Signed-off-by: Li Yang --- Add more detailed commit message drivers/dma/fsldma.c |4

[PATCH] ucc_geth: fix ucc halt problem in half duplex mode

2010-11-26 Thread Li Yang
threshold size can cause UCC to halt), setting UTFTT less than [(UTFS x (M - 8)/M) - 128] will prevent this from happening (M is the minimum buffer size). The patch changes UTFTT back to 256. Signed-off-by: Li Yang Cc: Jean-Denis Boyer Cc: Andreas Schmitz Cc: Anton Vorontsov --- drivers/net

[PATCH 1/7] powerpc/85xx: re-enable timebase sync disabled by KEXEC patch

2010-12-03 Thread Li Yang
The timebase sync is not only necessary when using KEXEC. It should also be used by normal boot up and cpu hotplug. Remove the ifdef added by the KEXEC patch. Fix a problem that cpu hotplugging freezes the whole system. Signed-off-by: Jin Qing Singed-off-by: Li Yang --- arch/powerpc

[PATCH 2/7] powerpc/85xx: add HOTPLUG_CPU support

2010-12-03 Thread Li Yang
. This patch brings the bootpage and spin-table from bootloader into kernel because the bootpage in bootloader might have been lost at runtime. Also add support to boot from physical address larger than 32-bit. Signed-off-by: Yutaka Ando Signed-off-by: Li Yang --- arch/powerpc/Kconfig

[PATCH 7/7] P2020ds: add event button handler

2010-12-03 Thread Li Yang
This can be used as a wakeup source for power management. Signed-off-by: Li Yang --- arch/powerpc/boot/dts/p2020ds.dts|9 - arch/powerpc/platforms/85xx/mpc85xx_ds.c | 26 +- 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/arch

[PATCH 3/7] powerpc/85xx: add the deep sleep support

2010-12-03 Thread Li Yang
equal to the Suspend-to-RAM state of Linux Power Management. echo mem > /sys/power/state to enter deep sleep mode. Signed-off-by: Dave Liu Signed-off-by: Li Yang Signed-off-by: Jin Qing Cc: Scott Wood --- arch/powerpc/kernel/l2cr_85xx.S | 53 +++ arch/powerpc/platforms/85xx/susp

[PATCH 5/7] powerpc: add the mpic timer support

2010-12-03 Thread Li Yang
There are global timers in the MPIC interrupt controller. The patch adds support to the timers. The timer can generate interrupt which can be used as a wakeup event. Signed-off-by: Dave Liu Signed-off-by: Li Yang --- arch/powerpc/include/asm/mpic.h |1 + arch/powerpc/sysdev/Makefile

[PATCH 6/7] fsl_pmc: update device bindings

2010-12-03 Thread Li Yang
Signed-off-by: Li Yang --- Documentation/powerpc/dts-bindings/fsl/pmc.txt | 63 +-- 1 files changed, 36 insertions(+), 27 deletions(-) diff --git a/Documentation/powerpc/dts-bindings/fsl/pmc.txt b/Documentation/powerpc/dts-bindings/fsl/pmc.txt index 07256b7..d84b4f8

[PATCH 4/7] powerpc/85xx: add support to JOG feature using cpufreq interface

2010-12-03 Thread Li Yang
Some 85xx silicons like MPC8536 and P1022 has the JOG PM feature. The patch adds the support to change CPU frequency using the standard cpufreq interface. Signed-off-by: Dave Liu Signed-off-by: Li Yang --- arch/powerpc/platforms/85xx/Makefile |1 + arch/powerpc/platforms/85xx/cpufreq.c

Re: [PATCH 1/7] powerpc/85xx: re-enable timebase sync disabled by KEXEC patch

2010-12-03 Thread Li Yang
On Sat, Dec 4, 2010 at 12:40 AM, Kumar Gala wrote: > > On Dec 3, 2010, at 6:34 AM, Li Yang wrote: > >> The timebase sync is not only necessary when using KEXEC.  It should also >> be used by normal boot up and cpu hotplug.  Remove the ifdef added by >> the KEXEC pat

[PATCH] fsldma: fix issue of slow dma

2010-12-08 Thread Li Yang
From: Forrest Shi Fixed fsl dma slow issue by initializing dma mode register with bandwidth control. It boosts dma performance and should works with 85xx board. Signed-off-by: Forrest Shi Signed-off-by: Li Yang --- drivers/dma/fsldma.c |6 -- drivers/dma/fsldma.h |9 - 2

Re: [PATCH 7/7] P2020ds: add event button handler

2010-12-13 Thread Li Yang
On Tue, Dec 14, 2010 at 5:56 AM, Timur Tabi wrote: > On Fri, Dec 3, 2010 at 6:34 AM, Li Yang wrote: >> This can be used as a wakeup source for power management. > > This patch doesn't actually add wake-up support. Any enabled IRQ is a valid wake-up source for standby. The p

Re: [PATCH] USB: fsl_qe_udc: Add fsl,mpc8323-qe-usb compatible entry

2009-08-18 Thread Li Yang
On Wed, Aug 19, 2009 at 6:23 AM, Anton Vorontsov wrote: > Current bindings specify that "fsl,mpc8323-qe-usb" compatible entry > should be used as a base match for QE UDCs, so update the driver to > comply with the bindings. > > Signed-off-by: Anton Vorontsov

[RFC] powerpc/mm: honor O_SYNC flag for memory map

2009-11-16 Thread Li Yang
Rather than the original intelligent way, we grant user more freedom. This enables user to map cacheable memory not managed by Linux. Signed-off-by: Li Yang --- The only direct users of this function is fb_mmap() and /dev/mem mmap. Although I'm not sure if anything is depending o

Re: [RFC] powerpc/mm: honor O_SYNC flag for memory map

2009-11-20 Thread Li Yang
On Fri, Nov 20, 2009 at 5:03 PM, Benjamin Herrenschmidt wrote: > On Fri, 2009-11-20 at 11:00 +0800, Li Yang-R58472 wrote: >> Because there is no way to set mapped memory as cacheable if the >> memory >> is not managed by Linux kernel.  While, it's not rare in real sys

Re: [RFC] powerpc/mm: honor O_SYNC flag for memory map

2009-11-25 Thread Li Yang
On Sun, Nov 22, 2009 at 4:01 AM, Segher Boessenkool wrote: >>> You need to be a bit more careful tho. You must not allow RAM managed by >>> the kernel to be mapped non-cachable. >> >> Even if the user explicitly sets the O_SYNC flag?  IMHO, it's a bug of >> the application if it uses O_SYNC on mai

Re: [RFC] powerpc/mm: honor O_SYNC flag for memory map

2009-11-25 Thread Li Yang
On Wed, Nov 25, 2009 at 7:30 PM, Gabriel Paubert wrote: > On Wed, Nov 25, 2009 at 04:07:46PM +0800, Li Yang wrote: >> On Sun, Nov 22, 2009 at 4:01 AM, Segher Boessenkool >> wrote: >> >>> You need to be a bit more careful tho. You must not allow RAM managed by >

[PATCH] powerpc/mm: honor O_SYNC flag for memory mapping

2009-11-26 Thread Li Yang
cacheable but we can't map it to be cacheable due to the intelligent setting of cacheability. The patch makes the cacheability depend on O_SYNC flag of the file mapped for non-kernel managed memory. Also prints a deprecation warning for mmap users without using O_SYNC. Signed-off-by: Li

Re: [RFC] powerpc/mm: honor O_SYNC flag for memory map

2009-11-30 Thread Li Yang
On Fri, Nov 27, 2009 at 10:30 AM, Paul Mackerras wrote: > Li Yang writes: > >> That's my concern too.  But after all mmap without O_SYNC on I/O >> devices should be deprecated. > > It should?  Why? > > Shouldn't the onus rather be on those proposing an

[PATCH] powerpc/mm: setting mmaped page cache property through device tree

2009-12-01 Thread Li Yang
which is not managed by kernel as cacheable for better performance. Signed-off-by: Li Yang --- Although it will be better if we can come up with a generic solution not only for powerpc arch. Changing the behavior of O_SYNC seems to draw concerns over compatibility of old applications. Suggestion

Re: [PATCH] powerpc/mm: setting mmaped page cache property through device tree

2009-12-01 Thread Li Yang
On Tue, Dec 1, 2009 at 6:58 PM, Benjamin Herrenschmidt wrote: > On Tue, 2009-12-01 at 18:30 +0800, Li Yang wrote: >> The patch adds the ability for powerpc architecture to set page cache >> property of mmaped area through device tree.  This is useful for two >> cases.  Fir

Re: [PATCH] powerpc/mm: setting mmaped page cache property through device tree

2009-12-01 Thread Li Yang
On Tue, Dec 1, 2009 at 10:35 PM, Segher Boessenkool wrote: >> The scenario for the first case is that in a multicore system running >> ASMP which means different OS runs on different cores.  They might >> communicate through a shared memory region.  The region on every OS >> need to be mapped with

Re: [PATCH] powerpc/mm: setting mmaped page cache property through device tree

2009-12-02 Thread Li Yang
On Thu, Dec 3, 2009 at 12:15 PM, Segher Boessenkool wrote: The scenario for the first case is that in a multicore system running ASMP which means different OS runs on different cores.  They might communicate through a shared memory region.  The region on every OS need to be map

[PATCH] powerpc/mm: fix typo of cpumask_clear_cpu()

2009-12-14 Thread Li Yang
The function name of cpumask_clear_cpu was not correct. Reported-by: Jin Qing Signed-off-by: Li Yang --- This also implies that the CONFIG_HOTPLUG_CPU was never tested. We are trying to add cpu hotplug for SMP suspend, but seeing the following error(on 2.6.31 with context patches applied). Any

Re: [PATCH 2/2] powerpc/83xx: Fix TSEC0 workability on MPC8313E-RDB boards

2009-02-08 Thread Li Yang
On Fri, Feb 6, 2009 at 4:10 AM, Anton Vorontsov wrote: > TSEC0 is connected to Vitesse 7385 5-port switch. The switch > isn't connected to any mdio bus, the link to the switch is fixed > to Full-duplex 1000 Mb/s (no pause). It's a complex case for RDB boards. The revision A and revision B boards

Re: [PATCH] fix the interrupt loss problem on powerpc IPIC (2.6.23)

2009-02-17 Thread Li Yang
On Tue, Feb 17, 2009 at 10:12 PM, Kumar Gala wrote: > > On Feb 17, 2009, at 6:44 AM, > wrote: > >> From: Da Yu >> Date: Tue, 17 Feb 2009 19:58:20 +0800 >> Subject: [PATCH] fix the interrupt loss problem on powerpc IPIC (2.6.23) >> >> Signed-off-by: Da Yu >> --- > > Please provide a bit more de

Re: [PATCH] fix the interrupt loss problem on powerpc IPIC (2.6.23)

2009-02-17 Thread Li Yang
On Tue, Feb 17, 2009 at 10:32 PM, Josh Boyer wrote: > On Tue, Feb 17, 2009 at 08:12:33AM -0600, Kumar Gala wrote: >> >> On Feb 17, 2009, at 6:44 AM, > > wrote: >> >>> From: Da Yu >>> Date: Tue, 17 Feb 2009 19:58:20 +0800 >>> Subject: [PATCH] fix the interrupt loss problem on powerpc IPIC >>> (2.

Re: Newby trying to get Ethernet going on MPC83xx series device.

2009-02-18 Thread Li Yang
On Thu, Feb 19, 2009 at 2:58 PM, Dushara Jayasinghe wrote: > That did it. > > > > I based my board specific file on mpc834x_itx.c which had > > > > static struct of_device_id __initdata mpc834x_itx_ids[] = { > > { .compatible = "fsl,pq2pro-localbus", }, > > { .compa

Re: MPC8313E-RDB and USB OTG

2009-02-25 Thread Li Yang
On Thu, Feb 26, 2009 at 3:51 AM, Michael Bergandi wrote: > Hi all, > > I am hoping someone can shed some light on the state of the USB support in > the > 2.6.28 kernel for USB OTG on the MPC8313E RDB. The configuration options are > a bit different than the ones from the provided LTIB kernel--- fo

Re: MPC8313E-RDB and USB OTG

2009-02-27 Thread Li Yang
On Thu, Feb 26, 2009 at 9:22 PM, Michael Bergandi wrote: > Leo, sorry for sending this twice. Forgot to cc the list. > >> > I am hoping someone can shed some light on the state of the USB support >> > in >> > the >> > 2.6.28 kernel for USB OTG on the MPC8313E RDB. The configuration options >> > ar

Re: [PATCH RFC] powerpc/83xx: Move gianfar mdio nodes under the ethernet nodes

2009-03-03 Thread Li Yang
On Wed, Mar 4, 2009 at 3:38 AM, Anton Vorontsov wrote: > Currently it doesn't matter where the mdio nodes are placed, but with > power management support (i.e. when sleep = <> properties will take > effect), mdio nodes placement will become important: mdio controller > is a part of the ethernet bl

Re: suspend-to-mem on the mpc8349e-mitx-gp?

2009-03-25 Thread Li Yang
On Tue, Mar 24, 2009 at 12:54 AM, Scott Wood wrote: > On Sun, Mar 22, 2009 at 10:45:23PM -0700, Li Yang-R58472 wrote: >> > I don't think so, in this case.  The user is not asking for >> > "sleep" or deep sleep"; they are asking for a power state >>

Re: [PATCH] ucc_geth: Rework the TX logic.

2009-03-27 Thread Li Yang
On Fri, Mar 27, 2009 at 1:44 AM, Joakim Tjernlund wrote: > The line: >  if ((bd == ugeth->txBd[txQ]) && (netif_queue_stopped(dev) == 0)) >       break; > in ucc_geth_tx() didn not make sense to me. Rework & cleanup > this logic to something understandable. > --- > > Reworked the patch according to

Re: [PATCH] ucc_geth: Rework the TX logic.

2009-03-27 Thread Li Yang
On Fri, Mar 27, 2009 at 6:23 PM, Joakim Tjernlund wrote: > pku@gmail.com wrote on 27/03/2009 10:45:12: >> On Fri, Mar 27, 2009 at 1:44 AM, Joakim Tjernlund >> wrote: >> > The line: >> >  if ((bd == ugeth->txBd[txQ]) && (netif_queue_stopped(dev) == 0)) >> >       break; >> > in ucc_geth_tx() d

Re: [PATCH 1/2] ucc_geth: Move freeing of TX packets to NAPI context.

2009-03-27 Thread Li Yang
On Thu, Mar 26, 2009 at 8:54 PM, Joakim Tjernlund wrote: > Also set NAPI weight to 64 as this is a common value. > This will make the system alot more responsive while > ping flooding the ucc_geth ethernet interaface. > > Signed-off-by: Joakim Tjernlund > --- >  drivers/net/ucc_geth.c |   32

Re: [PATCH 1/2] ucc_geth: Move freeing of TX packets to NAPI context.

2009-03-30 Thread Li Yang
On Mon, Mar 30, 2009 at 3:48 PM, Joakim Tjernlund wrote: > pku@gmail.com wrote on 30/03/2009 09:36:21: >> >> On Fri, Mar 27, 2009 at 7:52 PM, Joakim Tjernlund >> wrote: >> > pku@gmail.com wrote on 27/03/2009 11:50:09: >> >> >> >> On Thu, Mar 26, 2009 at 8:54 PM, Joakim Tjernlund >> >> wr

Re: [PATCH 1/2] ucc_geth: Move freeing of TX packets to NAPI context.

2009-03-30 Thread Li Yang
On Fri, Mar 27, 2009 at 7:52 PM, Joakim Tjernlund wrote: > pku@gmail.com wrote on 27/03/2009 11:50:09: >> >> On Thu, Mar 26, 2009 at 8:54 PM, Joakim Tjernlund >> wrote: >> > Also set NAPI weight to 64 as this is a common value. >> > This will make the system alot more responsive while >> > pi

Re: [PATCH] ucc_geth: Move freeing of TX packets to NAPI context.

2009-03-30 Thread Li Yang
On Thu, Mar 26, 2009 at 1:51 AM, Joakim Tjernlund wrote: > Anton Vorontsov wrote on 25/03/2009 15:25:40: >> On Wed, Mar 25, 2009 at 02:30:49PM +0100, Joakim Tjernlund wrote: >> > >>From 1c2f23b1f37f4818c0fd0217b93eb38ab6564840 Mon Sep 17 00:00:00 > 2001 >> > From: Joakim Tjernlund >> > Date: Tue

Re: [PATCH] ucc_geth: Move freeing of TX packets to NAPI context.

2009-03-30 Thread Li Yang
On Mon, Mar 30, 2009 at 6:01 PM, Joakim Tjernlund wrote: > pku@gmail.com wrote on 30/03/2009 11:36:36: >> >> On Mon, Mar 30, 2009 at 5:21 PM, Joakim Tjernlund >> wrote: >> > pku@gmail.com wrote on 30/03/2009 10:34:47: >> >> >> >> On Thu, Mar 26, 2009 at 1:51 AM, Joakim Tjernlund >> >> wr

Re: [PATCH] ucc_geth: Move freeing of TX packets to NAPI context.

2009-03-30 Thread Li Yang
On Mon, Mar 30, 2009 at 5:21 PM, Joakim Tjernlund wrote: > pku@gmail.com wrote on 30/03/2009 10:34:47: >> >> On Thu, Mar 26, 2009 at 1:51 AM, Joakim Tjernlund >> wrote: >> > Anton Vorontsov wrote on 25/03/2009 > 15:25:40: >> >> On Wed, Mar 25, 2009 at 02:30:49PM +0100, Joakim Tjernlund wrote

Re: [PATCH] ucc_geth: Rework the TX logic.

2009-03-31 Thread Li Yang
On Tue, Mar 31, 2009 at 1:22 AM, Scott Wood wrote: > Joakim Tjernlund wrote: >> >> gianfar does not seem to use in_/out_ functions for the BDs. Works just >> fine that too it seems. > > It does now that it has explicit barriers in a few places.  Before they were > added, it would sometimes fail un

Re: [PATCH] ucc_geth: Rework the TX logic.

2009-03-31 Thread Li Yang
On Tue, Mar 31, 2009 at 5:07 PM, Joakim Tjernlund wrote: > Scott Wood wrote on 30/03/2009 21:32:23: >> >> Joakim Tjernlund wrote: >> >> different since descriptors are in MURAM which is ioremap()ed -- > though >> >> switching to a cacheable mapping with barriers should be a > performance >> >> im

Re: [PATCH] [net, 83xx] ucc_geth.c: Fix upsmr setting in RMII mode

2009-04-21 Thread Li Yang
On Tue, Apr 21, 2009 at 4:36 PM, Heiko Schocher wrote: > If using the UCC on a MPC8360 in RMII mode, don;t set > UCC_GETH_UPSMR_RPM bit in the upsmr register. > > Signed-off-by: Heiko Schocher Acked-by: Li Yang > --- >  drivers/net/ucc_geth.c |    3 ++- >  1 files change

Re: [PATCH] fsldma: use PCI Read Multiple command

2009-04-27 Thread Li Yang
over the PCI bus. Using DMA to transfer between blocks of > local SDRAM showed no change in performance with this patch. The dmatest > driver was also used to verify the correctness of the transfers, and showed > no errors. > > Signed-off-by: Ir

Re: [PATCH] fsldma: use PCI Read Multiple command

2009-04-27 Thread Li Yang
On Mon, Apr 27, 2009 at 5:09 PM, Liu Dave-R63238 wrote: >> By default, the Freescale 83xx DMA controller uses the PCI Read Line >> command when reading data over the PCI bus. Setting the >> controller to use the PCI Read Multiple command instead allows the >> controller to read much larger bursts

[PATCH] powerpc/fsl_rio: use LAW address from device tree

2009-04-28 Thread Li Yang
Instead of fixed address in old code. Signed-off-by: Li Yang --- arch/powerpc/sysdev/fsl_rio.c | 12 +++- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/arch/powerpc/sysdev/fsl_rio.c b/arch/powerpc/sysdev/fsl_rio.c index abdb124..fa0720f 100644 --- a/arch/powerpc

[PATCH] powerpc: add memory map support to Freescale RapioIO block

2009-04-28 Thread Li Yang
The RIO memory map functions are used to support direct IO memory access to RapidIO space. The patch adds its support for Freescale RapidIO block driver. Signed-off-by: Zhang Wei Signed-off-by: Li Yang --- arch/powerpc/sysdev/fsl_rio.c | 217 - 1 files

Re: [PATCH] rio: warn_unused_result warnings fix

2009-04-28 Thread Li Yang
On Tue, Apr 28, 2009 at 6:51 PM, Michael Ellerman wrote: > On Tue, 2009-04-28 at 18:15 +0800, Li Yang wrote: >> warning: ignoring return value of 'device_add', declared with attribute >> warn_unused_result >> warning: ignoring return value of 'sysfs_create_bi

[PATCH] rapidio: add common mapping APIs for RapidIO memory access

2009-04-28 Thread Li Yang
Add the mapping functions used to support direct IO memory access of rapidIO. Signed-off-by: Zhang Wei Signed-off-by: Li Yang --- drivers/rapidio/rio.c | 95 +++ include/linux/rio.h | 25 include/linux/rio_drv.h | 24

[PATCH] rio: warn_unused_result warnings fix

2009-04-28 Thread Li Yang
warning: ignoring return value of 'device_add', declared with attribute warn_unused_result warning: ignoring return value of 'sysfs_create_bin_file', declared with attribute warn_unused_result Signed-off-by: Li Yang --- drivers/rapidio/rio-scan.c |5 - drivers

[PATCH] rionet: add memory access to simulated Ethernet over rapidio

2009-04-28 Thread Li Yang
Through the newly added IO memory access of Rapidio, sender can write directly to recipient's rx buffer, either by cpu or DMA engine. Signed-off-by: Zhang Wei Signed-off-by: Li Yang --- drivers/net/Kconfig | 10 ++ drivers/net/rionet.c |

[PATCH 0/5] rapidio: adding memory mapping IO support and misc fixes

2009-04-28 Thread Li Yang
The patch series add MMIO support to Linux rapidio and fix a few nits. The patches cross rapidio, netdev, powerpc sub-systems. It will be good for them to go through one tree. Probably Andrew? As the previous rapidio patches are mostly merged by you. - Leo _

Re: [PATCH] rapidio: add common mapping APIs for RapidIO memory access

2009-04-29 Thread Li Yang
On Tue, Apr 28, 2009 at 7:39 PM, David Miller wrote: > > Please number your patches. :-/ > > There is no way for anyone to be able to tell in what order > your changes should be applied. Sorry for that. I thought I have added -n when doing the git-format-patch, but it turns out not the case. :(

[PATCH] mpic: fix problem that affinity is not updated

2009-12-16 Thread Li Yang
Since commit 57b150cce8e004ddd36330490a68bfb59b7271e9, desc->affinity of an irq is changed after calling desc->chip->set_affinity. Therefore we need to fix the irq_choose_cpu() not to depend on the desc->affinity for new mask. Signed-off-by: Jiajun Wu Signed-off-by: Li Yang ---

[PATCH] powerpc: fix ioremap_flags() with book3e pte definition

2010-02-04 Thread Li Yang
We can't just clear the user read permission in book3e pte, because that will also clear supervisor read permission. This surely isn't desired. Fix the problem by adding the supervisor read back. Signed-off-by: Li Yang --- arch/powerpc/mm/pgtable_32.c |5 + 1 files

[PATCH 1/4] fsl_msi: fix the conflict of virt_msir's chip_data

2010-04-15 Thread Li Yang
when calling eoi() of the irq. Signed-off-by: Zhao Chenhui Signed-off-by: Li Yang --- arch/powerpc/sysdev/fsl_msi.c | 30 +- 1 files changed, 25 insertions(+), 5 deletions(-) diff --git a/arch/powerpc/sysdev/fsl_msi.c b/arch/powerpc/sysdev/fsl_msi.c index ad453ca..71

[PATCH 2/4] fsl_msi: enable msi allocation in all banks

2010-04-15 Thread Li Yang
From: Zhao Chenhui Put all fsl_msi banks in a linked list. The list of banks then can be traversed when allocating new msi interrupts. Signed-off-by: Zhao Chenhui Signed-off-by: Li Yang --- arch/powerpc/sysdev/fsl_msi.c | 29 ++--- arch/powerpc/sysdev/fsl_msi.h

[PATCH 3/4] fsl_msi: enable msi sharing through AMP OSes

2010-04-15 Thread Li Yang
From: Zhao Chenhui Make a single PCIe MSI bank shareable through CAMP OSes. The number of MSI used by each core can be configured by dts file. Signed-off-by: Zhao Chenhui Signed-off-by: Li Yang --- arch/powerpc/sysdev/fsl_msi.c|8 +++- arch/powerpc/sysdev/msi_bitmap.c |4

[PATCH 4/4] mpc8572ds: change camp dtses for MSI sharing

2010-04-16 Thread Li Yang
Enable the sharing of MSI interrupt through AMP OSes in the mpc8572ds dtses. Signed-off-by: Zhao Chenhui Signed-off-by: Li Yang --- arch/powerpc/boot/dts/mpc8572ds_camp_core0.dts | 15 +-- arch/powerpc/boot/dts/mpc8572ds_camp_core1.dts |7 ++- 2 files changed, 15

Re: [PATCH 1/4] fsl_msi: fix the conflict of virt_msir's chip_data

2010-04-18 Thread Li Yang
On 4/19/2010 10:40 AM, Michael Ellerman wrote: On Fri, 2010-04-16 at 15:34 +0800, Li Yang wrote: From: Zhao Chenhui In fsl_of_msi_probe(), the virt_msir's chip_data have been stored the pointer to struct mpic. We add a struct fsl_msi_cascade_data to store the pointer to struct fsl_ms

Re: [PATCH 3/4] fsl_msi: enable msi sharing through AMP OSes

2010-04-18 Thread Li Yang
On Mon, Apr 19, 2010 at 10:34 AM, Michael Ellerman wrote: > On Fri, 2010-04-16 at 15:34 +0800, Li Yang wrote: >> From: Zhao Chenhui >> >> Make a single PCIe MSI bank shareable through CAMP OSes. The number of >> MSI used by each core can be configured by dts file

Re: [PATCH 2/4] fsl_msi: enable msi allocation in all banks

2010-04-18 Thread Li Yang
On Mon, Apr 19, 2010 at 10:46 AM, Michael Ellerman wrote: > On Fri, 2010-04-16 at 15:34 +0800, Li Yang wrote: >> From: Zhao Chenhui >> >> Put all fsl_msi banks in a linked list. The list of banks then can be >> traversed when allocating new msi interrupts. > >

Re: [PATCH 1/4] fsl_msi: fix the conflict of virt_msir's chip_data

2010-04-19 Thread Li Yang
On Mon, Apr 19, 2010 at 8:19 PM, Kumar Gala wrote: > > On Apr 18, 2010, at 11:50 PM, Li Yang wrote: > >> On 4/19/2010 10:40 AM, Michael Ellerman wrote: >>> On Fri, 2010-04-16 at 15:34 +0800, Li Yang wrote: >>> >>>> From: Zhao Chenhui >>>> &

[PATCH v2 1/5] fsl_msi: fix the conflict of virt_msir's chip_data

2010-04-20 Thread Li Yang
lling eoi() of the irq. Signed-off-by: Zhao Chenhui Signed-off-by: Li Yang --- arch/powerpc/sysdev/fsl_msi.c | 33 +++-- 1 files changed, 27 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/sysdev/fsl_msi.c b/arch/powerpc/sysdev/fsl_msi.c index ad453ca..93

[PATCH v2 2/5] fsl_msi: enable msi allocation in all banks

2010-04-20 Thread Li Yang
Put all fsl_msi banks in a linked list. The list of banks then can be traversed when allocating new msi interrupts. Also fix failing path of fsl_setup_msi_irqs(). Signed-off-by: Zhao Chenhui Signed-off-by: Li Yang --- arch/powerpc/sysdev/fsl_msi.c | 16 +--- arch/powerpc/sysdev

[PATCH v2 3/5] fsl_msi: enable msi sharing through AMP OSes

2010-04-20 Thread Li Yang
Make a single PCIe MSI bank shareable through CAMP OSes. The number of MSI used by each core can be configured by dts file. Signed-off-by: Zhao Chenhui Signed-off-by: Li Yang --- arch/powerpc/sysdev/fsl_msi.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/arch

[PATCH v2 4/5] mpc8572ds: change camp dtses for MSI sharing

2010-04-20 Thread Li Yang
Enable the sharing of MSI interrupt through AMP OSes in the mpc8572ds dtses. Signed-off-by: Zhao Chenhui Signed-off-by: Li Yang --- arch/powerpc/boot/dts/mpc8572ds_camp_core0.dts | 15 +-- arch/powerpc/boot/dts/mpc8572ds_camp_core1.dts |7 ++- 2 files changed, 15

[PATCH v2 5/5] fsl_msi: add remove path and probe failing path

2010-04-20 Thread Li Yang
Also cleanup the probe function. Signed-off-by: Li Yang --- arch/powerpc/sysdev/fsl_msi.c | 35 +-- arch/powerpc/sysdev/fsl_msi.h |1 + 2 files changed, 30 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/sysdev/fsl_msi.c b/arch/powerpc/sysdev

[PATCH v3 1/5] fsl_msi: fix the conflict of virt_msir's chip_data

2010-04-22 Thread Li Yang
lling eoi() of the irq. Signed-off-by: Zhao Chenhui Signed-off-by: Li Yang --- arch/powerpc/sysdev/fsl_msi.c | 33 +++-- 1 files changed, 27 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/sysdev/fsl_msi.c b/arch/powerpc/sysdev/fsl_msi.c index ad453ca..93

[PATCH v3 2/5] fsl_msi: enable msi allocation in all banks

2010-04-22 Thread Li Yang
Put all fsl_msi banks in a linked list. The list of banks then can be traversed when allocating new msi interrupts. Also fix failing path of fsl_setup_msi_irqs(). Signed-off-by: Zhao Chenhui Signed-off-by: Li Yang --- arch/powerpc/sysdev/fsl_msi.c | 14 +++--- arch/powerpc/sysdev

<    1   2   3   4   5   6   >