Re: [linux-yocto] [PATCH] powerpc/603: Fix handling of the DIRTY flag

2019-09-24 Thread Bruce Ashfield


In message: [linux-yocto][PATCH] powerpc/603: Fix handling of the DIRTY flag
on 24/09/2019 zhe...@windriver.com wrote:

> From: Christophe Leroy 
> 
> commit 415480dce2ef03bb8335deebd2f402f475443ce0 upstream
> 
> If a page is already mapped RW without the DIRTY flag, the DIRTY
> flag is never set and a TLB store miss exception is taken forever.
> 
> This is easily reproduced with the following app:
> 
> void main(void)
> {
>   volatile char *ptr = mmap(0, 4096, PROT_READ | PROT_WRITE, MAP_SHARED | 
> MAP_ANONYMOUS, -1, 0);
> 
>   *ptr = *ptr;
> }
> 
> When DIRTY flag is not set, bail out of TLB miss handler and take
> a minor page fault which will set the DIRTY flag.
> 
> Fixes: f8b58c64eaef ("powerpc/603: let's handle PAGE_DIRTY directly")
> Cc: sta...@vger.kernel.org # v5.1+
> Reported-by: Doug Crawford 
> Signed-off-by: Christophe Leroy 
> Signed-off-by: Michael Ellerman 
> Link: 
> https://lore.kernel.org/r/80432f71194d7ee75b2f5043ecf1501cf1cca1f3.1566196646.git.christophe.le...@c-s.fr
> Signed-off-by: He Zhe 
> ---
> This is for v5.2/standard/fsl-mpc8315e-rdb. It fixes potential system hang
> without any direct warning or error which has not been observed on qemuppc.
> 
> It has not been ported to stable tree.

but at least is has been cc'd to stable. I'll watch for it to show up in my
future 5.2 -stabe updates.

Cheers,

Bruce

> 
>  arch/powerpc/kernel/head_32.S | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/powerpc/kernel/head_32.S b/arch/powerpc/kernel/head_32.S
> index f255e22..534dd27 100644
> --- a/arch/powerpc/kernel/head_32.S
> +++ b/arch/powerpc/kernel/head_32.S
> @@ -557,9 +557,9 @@ DataStoreTLBMiss:
>   cmplw   0,r1,r3
>   mfspr   r2, SPRN_SPRG_PGDIR
>  #ifdef CONFIG_SWAP
> - li  r1, _PAGE_RW | _PAGE_PRESENT | _PAGE_ACCESSED
> + li  r1, _PAGE_RW | _PAGE_DIRTY | _PAGE_PRESENT | _PAGE_ACCESSED
>  #else
> - li  r1, _PAGE_RW | _PAGE_PRESENT
> + li  r1, _PAGE_RW | _PAGE_DIRTY | _PAGE_PRESENT
>  #endif
>   bge-112f
>   lis r2, (swapper_pg_dir - PAGE_OFFSET)@ha   /* if kernel address, 
> use */
> -- 
> 2.7.4
> 
-- 
___
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto


Re: [linux-yocto] [kernel-cache][PATCH 0/1] xilinx-zynq: enable coresight and xadc kernel options for xilinx-zynq bsp

2019-09-24 Thread Bruce Ashfield


In message: [linux-yocto][kernel-cache][PATCH 0/1] xilinx-zynq: enable 
coresight and xadc kernel options for xilinx-zynq bsp
on 23/09/2019 quanyang.w...@windriver.com wrote:

> From: Quanyang Wang 
> 
> Hi Bruce,
> 
> Would you please help merge this patch to yocto-kernel-cache's branch 
> yocto-5.2 ?

merged.

Bruce

> 
> Thanks,
> Quanyang
> 
> Quanyang Wang (1):
>   xilinx-zynq: enable coresight and xadc kernel options for xilinx-zynq
> bsp
> 
>  bsp/xilinx-zynq/xilinx-zynq.cfg | 9 +
>  1 file changed, 9 insertions(+)
> 
> -- 
> 2.17.1
> 
-- 
___
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto


Re: [linux-yocto] [kernel v5.2/standard/xlnx-soc][PATCH 0/3] patches for zynq7000

2019-09-24 Thread Bruce Ashfield


In message: [linux-yocto][kernel v5.2/standard/xlnx-soc][PATCH 0/3] patches for 
zynq7000
on 23/09/2019 quanyang.w...@windriver.com wrote:

> From: Quanyang Wang 
> 
> Hi Bruce,
> 
> Would you please help merge these patches to linux-yocto 
> v5.2/standard/xlnx-soc branch?

These are now merged.

Are these changes already done upstream, or applicable to upstream ? I just
want to make sure we aren't only fixes these in the yocto kernel when there
are other places that we can fix as well.

Bruce

> 
> Thanks,
> Quanyang
> 
> Quanyang Wang (2):
>   ARM: dts: zc702: Fix I2C bus warnings
>   mmc: sdhci-of-arasan: Fix the incorrect soft reset operation when
> runtime resuming
> 
> Zumeng Chen (1):
>   arm: dts: zynq: enablement of coresight topology
> 
>  arch/arm/boot/dts/zynq-7000.dtsi   | 155 +
>  arch/arm/boot/dts/zynq-zc702.dts   |  12 +--
>  drivers/mmc/host/sdhci-of-arasan.c |   2 +-
>  3 files changed, 162 insertions(+), 7 deletions(-)
> 
> -- 
> 2.17.1
> 
-- 
___
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto


Re: [linux-yocto] [PATCH v5.2] cn96xx: Another patch series for the cn96xx SoC support

2019-09-24 Thread Bruce Ashfield


In message: [PATCH v5.2] cn96xx: Another patch series for the cn96xx SoC support
on 23/09/2019 Kevin Hao wrote:

> Hi Bruce,
> 
> Here is another patch series got from Marvell for the cn96xx SoC support.
> It mainly include some fixes for the mmc and Ethernet. Please help me
> merge this into both v5.2/standard/cn96xx and v5.2/standard/preempt-rt/cn96xx 
> branch.
> 
> The following changes since commit d186856ba1914ca0fbf715fe9b0f31067dd517a4:
> 
>   mmc: cavium: Drop the aligned check for the dma address (2019-09-20 
> 00:23:49 -0400)
> 
> are available in the Git repository at:
> 
>   https://github.com/haokexin/linux v5.2/standard/cn96xx

merged

To ssh://git.yoctoproject.org/linux-yocto.git
   d186856ba191..8ddd7904ae8f  v5.2/standard/cn96xx -> v5.2/standard/cn96xx
   11c5ad93ebda..07da8f9ebdf6  v5.2/standard/preempt-rt/cn96xx -> 
v5.2/standard/preempt-rt/cn96xx
  
Bruce

> 
> for you to fetch changes up to 8ddd7904ae8f42c95c7b13bb877e663d39e802ac:
> 
>   octeontx2-af: Add T98 devid to PTP id table (2019-09-23 17:02:17 +0800)
> 
> 
> Christina Jacob (2):
>   octeontx2-pf: Disply the link detected status in ethtool command
>   net: thunderx: Do a PCS reset upon SGMII link toggle
> 
> Geetha sowjanya (1):
>   octeontx2-pf: Ignore NPC parser layer errors
> 
> Hao Zheng (2):
>   octeontx2-af: add parser support for DSA, extended DSA and eDSA
>   octeontx2-af: combine LB_STAG and LB_QINQ to one LB ltype
> 
> Peter Swain (4):
>   mmc: cavium: reorganize before vqmmc switching
>   mmc: cavium: slot switch by vqmmc/gpio
>   mmc: cavium: do not drop bus lock in tuning
>   mmc: cavium: use calibrated timing taps
> 
> Subbaraya Sundeep (8):
>   octeontx2-pf: Fix memory leaks
>   octeontx2-af: Change message level to debug
>   octeontx2-af: Enable odd number of AF VFs also
>   octeontx2-pf: Use helper function for LBK VF
>   octeontx2-af: Use nix_smq_flush function
>   octeontx2-af: Always enable mcam rules for TX
>   octeontx2-af: Transmit packets during SMQ flush
>   octeontx2-pf: Add barrier to sync interface status
> 
> Sunil Goutham (8):
>   octeontx2-af: Fix programming and logical issues
>   octeontx2-pf: Fix VF id in the FLR handler
>   octeontx2-pf: Fix interface init and shutdown sequence
>   octeontx2-pf: Use post increment STP to free pointers to Aura
>   octeontx2-pf: Add debug messages for MSIX alloc failure
>   arm64: Increase NR_IRQS to a large number
>   octeontx2-af: Fix compilation issue
>   octeontx2-pf: Fix memory leak while freeing SQBs
> 
> Tomasz Michalec (1):
>   octeontx2-af: Add T98 devid to PTP id table
> 
> Vidhya Vidhyaraman (1):
>   octeontx2-af: Add programmed macaddr to RVU pfvf
> 
>  Documentation/devicetree/bindings/mmc/cavium-mmc.txt  |  10 +-
>  arch/arm64/include/asm/irq.h  |   9 ++
>  drivers/mmc/host/cavium-thunderx.c|  97 ++---
>  drivers/mmc/host/cavium.c | 227 
> -
>  drivers/mmc/host/cavium.h |   7 +-
>  drivers/net/ethernet/cavium/thunder/thunder_bgx.c |  35 ++---
>  drivers/net/ethernet/marvell/octeontx2/af/cgx.c   |   6 +-
>  drivers/net/ethernet/marvell/octeontx2/af/mbox.c  |   2 +-
>  drivers/net/ethernet/marvell/octeontx2/af/npc.h   |   9 +-
>  drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h   | 731 
> +---
>  drivers/net/ethernet/marvell/octeontx2/af/ptp.c   |   4 +
>  drivers/net/ethernet/marvell/octeontx2/af/rvu.c   |  12 --
>  drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c   |  26 ++--
>  drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c   |  23 ++-
>  drivers/net/ethernet/marvell/octeontx2/af/rvu_fixes.c |  14 ++
>  drivers/net/ethernet/marvell/octeontx2/af/rvu_fixes.h |  21 +++
>  drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c   |  26 ++--
>  drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c   |  17 +--
>  drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c|  15 +-
>  drivers/net/ethernet/marvell/octeontx2/nic/Makefile   |   2 +-
>  drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c  |  49 ++-
>  drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h  |  29 ++--
>  drivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c |  33 -
>  drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c  |  57 +---
>  drivers/net/ethernet/marvell/octeontx2/nic/otx2_smqvf.c   | 291 
> +
>  drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c|   9 ++
>  drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.h|   6 +-
>  drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c  |  32 ++--
>  28