Re: [linux-yocto] [linux-yocto-dev standard/xlnx-soc] usb: dwc3: gadget: fix compile error caused by an unclosed brace

2020-03-11 Thread Bruce Ashfield
On Tue, Mar 10, 2020 at 7:47 AM Quanyang Wang
 wrote:
>
> Hi Bruce,
>
> Would you please help merge this patch to linux-yocto-dev 
> v5.5/standard/xlnx-soc?
>
> This branch also needs this patch.

Done.

Bruce

>
> Thanks,
>
> Quanyang
>
> On 3/3/20 5:07 AM, Bruce Ashfield wrote:
>
> merged (this is specific to linux-yocto, so I've grabbed it)
>
> Cheers,
>
> Bruce
>
> On Fri, Feb 28, 2020 at 1:55 AM  wrote:
>
> From: Quanyang Wang 
>
> When merging upstream commit da10bcdd6f70 ("usb: dwc3: gadget: Delay starting 
> transfer"),
> a brace is lost. Add it to avoid compile error.
>
> Signed-off-by: Quanyang Wang 
> ---
>  drivers/usb/dwc3/gadget.c | 10 ++
>  1 file changed, 6 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
> index 4f8d3a73c03a..d5ca7114ede9 100644
> --- a/drivers/usb/dwc3/gadget.c
> +++ b/drivers/usb/dwc3/gadget.c
> @@ -1490,15 +1490,17 @@ static int __dwc3_gadget_ep_queue(struct dwc3_ep 
> *dep, struct dwc3_request *req)
> list_add_tail(>list, >pending_list);
> req->status = DWC3_REQUEST_STATUS_QUEUED;
>
> +   /* Start the transfer only after the END_TRANSFER is completed */
> +   if (dep->flags & DWC3_EP_END_TRANSFER_PENDING) {
> +   dep->flags |= DWC3_EP_DELAY_START;
> +   return 0;
> +   }
> +
> /* If core is hibernated, need to wakeup (remote wakeup) */
> if (dwc->is_hibernated) {
> dwc->force_hiber_wake = true;
> gadget_wakeup_interrupt(dwc);
> dwc->force_hiber_wake = false;
> -   /* Start the transfer only after the END_TRANSFER is completed */
> -   if (dep->flags & DWC3_EP_END_TRANSFER_PENDING) {
> -   dep->flags |= DWC3_EP_DELAY_START;
> -   return 0;
> }
>
> /*
> --
> 2.17.1
>
>
>
> 



-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8479): 
https://lists.yoctoproject.org/g/linux-yocto/message/8479
Mute This Topic: https://lists.yoctoproject.org/mt/71603831/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [linux-yocto][linux-yocto-dev standard/base][PATCH] x86/mce: Add compat_ioctl assignment to make it compatible with 32-bit system

2020-03-11 Thread Bruce Ashfield

In message: [linux-yocto][linux-yocto-dev standard/base][PATCH] x86/mce: Add 
compat_ioctl assignment to make it compatible with 32-bit system
on 04/03/2020 zhe...@windriver.com wrote:

> From: He Zhe 
> 
> 32-bit user-space program would get errors like the following from ioctl
> syscall due to missing compat_ioctl.
> MCE_GET_RECORD_LEN: Inappropriate ioctl for device
> 
> compat_ptr_ioctl is provided as a generic implementation of .compat_ioctl
> file operation to ioctl functions that either ignore the argument or pass
> a pointer to a compatible data type.
> 
> https://lore.kernel.org/lkml/1583303947-49858-1-git-send-email-zhe...@windriver.com/

I've merged this to the latest -dev, and the v5.2/5.4 kernels as well. Let
me know if I've missed a version you care about.

Cheers,

Bruce

> 
> Signed-off-by: He Zhe 
> ---
>  arch/x86/kernel/cpu/mce/dev-mcelog.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/x86/kernel/cpu/mce/dev-mcelog.c 
> b/arch/x86/kernel/cpu/mce/dev-mcelog.c
> index 7c8958d..6c9b91b7 100644
> --- a/arch/x86/kernel/cpu/mce/dev-mcelog.c
> +++ b/arch/x86/kernel/cpu/mce/dev-mcelog.c
> @@ -328,6 +328,7 @@ static const struct file_operations mce_chrdev_ops = {
>   .write  = mce_chrdev_write,
>   .poll   = mce_chrdev_poll,
>   .unlocked_ioctl = mce_chrdev_ioctl,
> + .compat_ioctl   = compat_ptr_ioctl,
>   .llseek = no_llseek,
>  };
>  
> -- 
> 2.7.4
> 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8478): 
https://lists.yoctoproject.org/g/linux-yocto/message/8478
Mute This Topic: https://lists.yoctoproject.org/mt/71720850/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [linux-yocto] [linux-yocto-dev v5.6] Rebase the Marvell cn96xx SoC support on the new dev kernel

2020-03-11 Thread Bruce Ashfield
In message: [linux-yocto-dev v5.6] Rebase the Marvell cn96xx SoC support on the 
new dev kernel
on 11/03/2020 Kevin Hao wrote:

> Hi Bruce,
> 
> Here is the rebase of the Marvell cn96xx SoC support on the new dev kernel.
> 
> The following changes since commit d7ce3415aeb3f487330749bc3ead9b77e376d569:
> 
>   Merge tag 'v5.6-rc5' into standard/base (2020-03-09 13:09:22 -0400)
> 
> are available in the Git repository at:
> 
>   git://github.com/haokexin/linux standard/cn96xx


merged

Bruce

> 
> for you to fetch changes up to d63556626ee8d4667b8b7d05b1984acde044db02:
> 
>   octeontx2-pf: Fix the page reference and free race in the otx2_alloc_rbuf() 
> (2020-03-11 14:06:19 +0800)
> 
> 
> Aleksey Makarov (2):
>   octeontx2-af: Add low level support for Marvell PTP coprocessor
>   octeontx2-pf: Add support for PTP clock
> 
> Alex Belits (2):
>   arm64: Add support for ASID locking
>   kernel/exit.c: Add task cleanup callbacks
> 
> Andrew Pinski (3):
>   arm64: Add MIDR encoding for some Marvell OcteonTX 2.
>   arm64: Add workaround for Cavium erratum 36890
>   arm64: Add workaround for Marvell erratum 37119
> 
> Angela Czubak (2):
>   octeontx2-af: fix rvu_sso_ggrp_taq_flush
>   octeontx2-af: fix cgx_lmac_rx_tx_enable
> 
> Bharat Bhushan (4):
>   dt-bindings: perf: arm-smmuv3-pmu: Add documentation for arm-smmuv3 pmu
>   perf/smmuv3: Add device tree support
>   perf/smmuv3: Fix programming event type with global  filtering commit 
> 439fc228868bd8f8b8f1cda07f343bf3579af58b from 
> g...@git.assembla.com:cavium/WindRiver.linux.git
>   coresight: Treat ETM4.2 as ETM4.3 on OcteonTx2
> 
> Chandrakala Chavva (1):
>   mmc: cavium_thunderx: Use proper register to clear interrupts
> 
> Christina Jacob (21):
>   octeontx2-pf: Adding ethtool support for link status information.
>   octeontx2-af: Support to get link info like current speed, fec etc
>   octeontx2-pf: Ethtool support for fec configuration
>   octeontx2-af: Move to rvu_fwdata version 1.
>   octeontx2-pf: Add ethtool -m option support.
>   octeontx2-af: Extend fwdata structure with additional information.
>   octeontx2-af: Update fwadata structure with few more reserved fields.
>   octeontx2-af: Fetch FEC stats of the physical link
>   octeontx2-pf: Support to display fec counters also in ethtool stats.
>   octeontx2-af: sync ATF and Kernel firmware data structure.
>   octeontx2-pf: Support to display current settings of a vf network 
> interface via ethtool
>   net:thunderx: fix memory leak in nicvf driver.
>   soc: octeontx2: Add mdio command interface using debugfs
>   soc: octeontx2: Add mdio command interface using debugfs
>   octeontx2-af: Introduce SET_LINK_MODE command to change various 
> configurations of a network interface.
>   octeontx2-pf: support to change link speed and autoneg
>   octeontx2-pf: Disply the link detected status in ethtool command
>   net: thunderx: Do a PCS reset upon SGMII link toggle
>   octeontx2-pf: remove redundant changes from speed change suppcrt.
>   octeontx-af: Interface mode change feature via ethtool
>   octeontx2-pf: Interface Mode change using ethtool.
> 
> Felix Manlunas (5):
>   octeontx2-af: Add new CGX_CMDs to set and get PHY modulation type
>   octeontx2-pf: Add ethtool priv flag to control PAM4 on/off
>   octeontx2-pf: Fix wrong info in ethtool's list of supported link modes
>   octeontx2-pf: Add LIO3 link modes to ethtool's list of supported modes
>   octeontx2-af: Add new CGX_CMD to get PHY FEC statistics
> 
> Geetha sowjanya (21):
>   octeontx2-af: Config receive and transmission of pause frames
>   octeontx2-af: Add mbox message to enable/disable pause frames.
>   octeontx2-af: Add mbox messages to configure backpressure for an 
> interface.
>   octeontx2-pf: Add ethtool support to enable/disable pause frames
>   octeontx2-pf: Configure backpressure level for packet reception
>   octeontx2-af: Check SQ counters to detect the deadlock
>   octeontx2-af: Enable pci bus mastering
>   octeontx2-af: Fix rvu probe on cgx disable
>   octeontx2-pf: Add VF function level reset (FLR) support
>   octeontx2-vf: Configure backpressure level for packet reception
>   octeontx2-af: Update hardware workarounds for 95xx A1 silicon
>   PCI: quirks : Apply ACS quirk for all devices
>   octeontx2-pf: Ignore NPC parser layer errors
>   iommu/arm-smmu-v3: Force 32 byte command queue memory reads
>   octeontx2-pf: Add shutdown sequence for PF/VF
>   octeontx2-pf: Reset the PF/VF on MTU change
>   octeontx: Reduce mbox wait response time.
>   octeontx2-pf: Fix clearing SQ/CQ queue interrupt
>   octeontx2-af: Fix return value in npc_set_pkind
>   octeontx2-af: Update HW workarounds for 96xx C0, 98xx and F95xx B0 chips
>   

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

2020-03-11 Thread Bruce Ashfield
In message: Re: [linux-yocto v5.4] Another patch series for the Marvell cn96xx 
SoC support
on 11/03/2020 Kevin Hao wrote:

> On Wed, Mar 11, 2020 at 09:24:37PM +0800, Kevin Hao wrote:
> > Hi Bruce,
> > 
> > This is another patch series for the Marvell cn96xx SoC support, the main
> > changes are the misc Ethernet bug fixes.
> > 
> > The following changes since commit c27a9ed44dd76fe64998802e322244cb6cdeee8c:
> > 
> >   Merge branch 'v5.4/standard/base' into v5.4/standard/cn96xx (2020-03-03 
> > 20:30:29 -0500)
> > 
> > are available in the Git repository at:
> > 
> >   git://github.com/haokexin/linux v5.4/standard/cn96xx
> 
> Please also merge this into v5.4/standard/preempt-rt/cn96xx branch.

merged to both branches.

Bruce

> 
> Thanks,
> Kevin
> 
> > 
> > for you to fetch changes up to ff37cb986c324411ac8363b8973f51c9c45a99df:
> > 
> >   pci: octeontx2: Use a more lightweight API to get the root bus 
> > (2020-03-10 19:06:09 +0800)
> > 
> > 
> > Geetha sowjanya (1):
> >   octeontx2-pf: Set SMQ MAXLEN to max hardware supported value
> > 
> > Hariprasad Kelam (1):
> >   octeontx2-af: Update tx parse nibble config
> > 
> > Harman Kalra (1):
> >   net: thunder: renaming thunder nicpf and vf module name
> > 
> > Jerin Jacob (1):
> >   octeontx2-af: Allow to configure flow tag LSB byte as RSS adder
> > 
> > Kevin Hao (1):
> >   pci: octeontx2: Use a more lightweight API to get the root bus
> > 
> > Linu Cherian (1):
> >   coresight: tmc: Misc fixes for graceful exit on error
> > 
> > Michal Mazur (1):
> >   octeontx2-af: fix detection of IP layer
> > 
> > Peter Swain (1):
> >   drivers: marvell: octeontx2: sdei_ghes: add LMC
> > 
> > Revital Regev (1):
> >   octeontx2-pf: Implement cgx stat rst
> > 
> > Stanislaw Kardach (8):
> >   octeontx2-af: fix missing blocks quota validation
> >   octeontx2-af: fix LD CUSTOM LTYPE aliasing
> >   octeontx2-af: fix memory leaks on probe failure
> >   octeontx2-af: prepare for custom KPU profiles
> >   octeontx2-af: add support for custom KPU entries
> >   octeontx2-rm: fix compilation warning
> >   octeontx2-dpi: fix compilation warnings
> >   octeontx2-af: fix compilation warning
> > 
> > Sujeet Baranwal (1):
> >   mmc: speed limit for tx2-c0
> > 
> > Sunil Goutham (4):
> >   octeontx2-af: Cleanup nixlf and blkaddr retrieval logic
> >   octeontx2-af: Fix rvu_reg_poll() to poll reg atleast twice
> >   octeontx2-pf: Fix flow control support for LBK devices
> >   octeontx2-pf: Don't configure RSS context when interface is down
> > 
> >  drivers/hwtracing/coresight/coresight-tmc-etr.c|  15 -
> >  drivers/hwtracing/coresight/coresight-tmc.c|   7 ++-
> >  drivers/hwtracing/coresight/coresight-tmc.h|   1 +
> >  drivers/mmc/host/cavium.c  |   2 +
> >  drivers/mmc/host/cavium.h  |  14 +
> >  drivers/net/ethernet/cavium/thunder/Makefile   |  10 +--
> >  drivers/net/ethernet/marvell/octeontx2/af/cgx.c|  28 -
> >  drivers/net/ethernet/marvell/octeontx2/af/cgx.h|   1 +
> >  drivers/net/ethernet/marvell/octeontx2/af/mbox.h   |   5 +-
> >  drivers/net/ethernet/marvell/octeontx2/af/npc.h|  88 
> > --
> >  drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h| 313 
> > +-
> >  drivers/net/ethernet/marvell/octeontx2/af/rvu.c|  45 
> > -
> >  drivers/net/ethernet/marvell/octeontx2/af/rvu.h|  24 ++-
> >  drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c|  27 
> >  drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c| 276 
> > +++-
> >  drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c| 426 
> > ++-
> >  drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c |   5 +-
> >  drivers/net/ethernet/marvell/octeontx2/af/rvu_validation.c | 131 
> > +++---
> >  drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c   |  10 ++-
> >  drivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c  |   9 ++-
> >  drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c |  34 --
> >  drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.h |   2 +-
> >  drivers/pci/controller/pci-octeontx2-pem.c |   4 +-
> >  drivers/soc/marvell/octeontx2-dpi/dpi.c|  11 ++--
> >  drivers/soc/marvell/octeontx2-ghes/otx2-sdei-ghes.c|   5 +-
> >  drivers/soc/marvell/octeontx2-rm/domain_sysfs.c|   2 -
> >  26 files 

[PATCH 0/1] [v2][linux-yocto][linux-yocto v5.4/standard/preempt-rt] aufs5:fix:avoid to access rw_sem.owner in RT kernel

2020-03-11 Thread Xu, Yanfei
From: Yanfei Xu 

Hi Bruce,

v1--->v2

1. Add a if statement to separately operate the owner member 
   between standard and RT kernel.

Also I have completed the smoke test about aufs before this email.

Yanfei Xu (1):
  aufs5:fix:avoid to access rw_sem.owner in RT kernel

 fs/aufs/i_op.c | 4 
 1 file changed, 4 insertions(+)

-- 
2.24.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8474): 
https://lists.yoctoproject.org/g/linux-yocto/message/8474
Mute This Topic: https://lists.yoctoproject.org/mt/71883579/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[linux-yocto] [PATCH 1/1] aufs5:fix:avoid to access rw_sem.owner in RT kernel

2020-03-11 Thread Xu, Yanfei
From: Yanfei Xu 

Fix build failure.

owner member is now made a permanent member of the rw_semaphore in
v5.6 kernel(commitid:c71fd893f). But the rw_semaphore in RT kernel
had been implemented with rt_mutex in rwsem-rt.h. Add if statment
to distinguish the two cases.

-Error messages-
|
/buildarea1/nightly/WRLINUX_MASTER_WR/build_dir/OVP/GIT_202003/lxbuilds/intel-x86-64-preempt-rt-ovp-kvm/wrlinux/build_linux/tmp-glibc/work-shared/intel-x86-64/kernel-source/fs/aufs/i_op.c:
In function 'au_pin_hdir_set_owner':
|
/buildarea1/nightly/WRLINUX_MASTER_WR/build_dir/OVP/GIT_202003/lxbuilds/intel-x86-64-preempt-rt-ovp-kvm/wrlinux/build_linux/tmp-glibc/work-shared/intel-x86-64/kernel-source/fs/aufs/i_op.c:643:45:
error: 'struct rw_semaphore' has no member named 'owner'
|   643 |  atomic_long_set(>hdir->hi_inode->i_rwsem.owner,
(long)task);
|   | ^
|   CC  fs/btrfs/zstd.o
|   AR  fs/kernfs/built-in.a
|   CC  arch/x86/kernel/io_delay.o
|   CC  net/ipv6/udplite.o
| make[3]: ***
[/buildarea1/nightly/WRLINUX_MASTER_WR/build_dir/OVP/GIT_202003/lxbuilds/intel-x86-64-preempt-rt-ovp-kvm/wrlinux/build_linux/tmp-glibc/work-shared/intel-x86-64/kernel-source/scripts/Makefile.build:265:
fs/aufs/i_op.o] Error 1
| make[3]: *** Waiting for unfinished jobs
--

Signed-off-by: Yanfei Xu 
---
 fs/aufs/i_op.c | 4 
 1 file changed, 4 insertions(+)

diff --git a/fs/aufs/i_op.c b/fs/aufs/i_op.c
index ef1e08c7ca10..926795a0101c 100644
--- a/fs/aufs/i_op.c
+++ b/fs/aufs/i_op.c
@@ -640,7 +640,11 @@ int au_pin_hdir_relock(struct au_pin *p)
 
 static void au_pin_hdir_set_owner(struct au_pin *p, struct task_struct *task)
 {
+#if !defined(CONFIG_PREEMPT_RT)
atomic_long_set(>hdir->hi_inode->i_rwsem.owner, (long)task);
+#else
+p->hdir->hi_inode->i_rwsem.rtmutex.owner = task;
+#endif
 }
 
 void au_pin_hdir_acquire_nest(struct au_pin *p)
-- 
2.24.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8475): 
https://lists.yoctoproject.org/g/linux-yocto/message/8475
Mute This Topic: https://lists.yoctoproject.org/mt/71883581/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [linux-yocto] [kernel-cache][PATCH] dm-verity: add missing dependency

2020-03-11 Thread Bruce Ashfield
In message: [kernel-cache][PATCH] dm-verity: add missing dependency
on 09/03/2020 Bartosz Golaszewski wrote:

> From: Bartosz Golaszewski 
> 
> CONFIG_DM_VERITY depends on CONFIG_MD & CONFIG_BLK_DEV_DM. Without these
> options in the .cfg file, the support for dm-verity will not be included.

merged.

Bruce

> 
> Signed-off-by: Bartosz Golaszewski 
> ---
>  features/device-mapper/dm-verity.cfg | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/features/device-mapper/dm-verity.cfg 
> b/features/device-mapper/dm-verity.cfg
> index ca052267..236a9916 100644
> --- a/features/device-mapper/dm-verity.cfg
> +++ b/features/device-mapper/dm-verity.cfg
> @@ -1,2 +1,4 @@
>  # SPDX-License-Identifier: MIT
> +CONFIG_MD=y
> +CONFIG_BLK_DEV_DM=y
>  CONFIG_DM_VERITY=y
> -- 
> 2.19.1
> 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8473): 
https://lists.yoctoproject.org/g/linux-yocto/message/8473
Mute This Topic: https://lists.yoctoproject.org/mt/71839644/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [linux-yocto][linux-yocto-dev standard/base][PATCH 0/5] Revert disk invalidating updates

2020-03-11 Thread Bruce Ashfield

In message: Re: [linux-yocto][linux-yocto-dev standard/base][PATCH 0/5] Revert 
disk invalidating updates
on 11/03/2020 He Zhe wrote:

> 
> 
> On 3/11/20 11:24 AM, Bruce Ashfield wrote:
> > On Wed, Mar 4, 2020 at 10:40 AM  wrote:
> >> From: He Zhe 
> >>
> >> This series of commits do not work with the latest systemd-udevd(v244, 
> >> likely
> >> v245). And the mainline has confirmed this potential misbehaviour.
> >>
> >> https://lore.kernel.org/lkml/20200304133738.gf21...@quack2.suse.cz/
> >>
> >> As it would run out of memory very soon and make the system unavailable, it
> >> seems we'd better apply the reverts first.
> > Since these came out, I've upgraded -dev to v5.6,  I can apply these
> > to v5.5/*. Have you confirmed if 5.6 has the same issue ?
> 
> I just confirmed that it also happens with the latest 5.6-rc5.

I've merged these to the 5.5 and 5.6 branches. I had to fixup one of the
patches for v5.6, so send any fixes as incremental patches.

Bruce

> 
> Zhe
> 
> >
> > Bruce
> >
> >> With this series of reverts applied, I just did some random file and disk
> >> operations and did not meet errors.
> >>
> >> He Zhe (5):
> >>   Revert "block: move clearing bd_invalidated into
> >> check_disk_size_change"
> >>   Revert "block: remove (__)blkdev_reread_part as an exported API"
> >>   Revert "block: fix bdev_disk_changed for non-partitioned devices"
> >>   Revert "block: move rescan_partitions to fs/block_dev.c"
> >>   Revert "block: merge invalidate_partitions into rescan_partitions"
> >>
> >>  block/ioctl.c   | 37 +++
> >>  block/partition-generic.c   | 52 -
> >>  drivers/block/loop.c| 13 -
> >>  drivers/s390/block/dasd_genhd.c |  4 +--
> >>  fs/block_dev.c  | 50 ---
> >>  include/linux/fs.h  |  4 +++
> >>  include/linux/genhd.h   |  5 ++--
> >>  7 files changed, 101 insertions(+), 64 deletions(-)
> >>
> >> --
> >> 2.24.1
> >>
> >
> 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8472): 
https://lists.yoctoproject.org/g/linux-yocto/message/8472
Mute This Topic: https://lists.yoctoproject.org/mt/71728956/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [linux-yocto] v5.2.x - stable updates comprising v5.2.34

2020-03-11 Thread Bruce Ashfield
In message: v5.2.x - stable updates comprising v5.2.34
on 07/03/2020 Paul Gortmaker wrote:

> Bruce, Yocto kernel folks:
> 
> Here is the next 5.2.x stable update "extension" primarily created for
> the Yocto project, as the 13th v5.2.x post-EOL release.
> 
> The content is from an audit of what went into the v5.4.8 release which
> started out around 200 commits.  I front loaded in about a 1/2 dozen CVE
> fixes ahead of that, and after all the dust settled, there are about 175
> commits here that were applicable for this v5.2.34 release.
> 
> As always, there is the repo below with all the details of what was
> rejected and what was used - starting from where v5.2.33 left off.
> 
> I've put this 5.2.34 queue through the usual testing; build testing on
> x86-64/32, ARM-64/32, PPC and MIPS, plus some static analysis and
> finally some sanity runtime tests on x86-64.
> 
> I did the signed tag just as per the previously released versions.
> Please find a signed v5.2.34 tag using this key:
> 
> http://pgp.mit.edu/pks/lookup?op=vindex=0xEBCE84042C07D1D6
> 
> in the repo in the kernel.org directory here:
> 
>   
> https://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux-5.2.y.git/?h=linux-5.2.y
>   git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux-5.2.y.git

Sorry for the delay,

This is now merged.

Bruce

> 
> for merge to standard/base in linux-yocto-5.2 and then out from there
> into the other base and BSP branches.
> 
> For those who are interested, the evolution of the commits is here:
> 
>   https://git.kernel.org/cgit/linux/kernel/git/paulg/longterm-queue-5.2.git/
> 
> This repo isn't needed for anything; it just exists for transparency and
> so people can see the evolution of the raw commits that were originally
> selected to create this 5.2.x release.
> 
> Paul.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8471): 
https://lists.yoctoproject.org/g/linux-yocto/message/8471
Mute This Topic: https://lists.yoctoproject.org/mt/71807377/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


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

2020-03-11 Thread Kevin Hao
On Wed, Mar 11, 2020 at 09:24:37PM +0800, Kevin Hao wrote:
> Hi Bruce,
> 
> This is another patch series for the Marvell cn96xx SoC support, the main
> changes are the misc Ethernet bug fixes.
> 
> The following changes since commit c27a9ed44dd76fe64998802e322244cb6cdeee8c:
> 
>   Merge branch 'v5.4/standard/base' into v5.4/standard/cn96xx (2020-03-03 
> 20:30:29 -0500)
> 
> are available in the Git repository at:
> 
>   git://github.com/haokexin/linux v5.4/standard/cn96xx

Please also merge this into v5.4/standard/preempt-rt/cn96xx branch.

Thanks,
Kevin

> 
> for you to fetch changes up to ff37cb986c324411ac8363b8973f51c9c45a99df:
> 
>   pci: octeontx2: Use a more lightweight API to get the root bus (2020-03-10 
> 19:06:09 +0800)
> 
> 
> Geetha sowjanya (1):
>   octeontx2-pf: Set SMQ MAXLEN to max hardware supported value
> 
> Hariprasad Kelam (1):
>   octeontx2-af: Update tx parse nibble config
> 
> Harman Kalra (1):
>   net: thunder: renaming thunder nicpf and vf module name
> 
> Jerin Jacob (1):
>   octeontx2-af: Allow to configure flow tag LSB byte as RSS adder
> 
> Kevin Hao (1):
>   pci: octeontx2: Use a more lightweight API to get the root bus
> 
> Linu Cherian (1):
>   coresight: tmc: Misc fixes for graceful exit on error
> 
> Michal Mazur (1):
>   octeontx2-af: fix detection of IP layer
> 
> Peter Swain (1):
>   drivers: marvell: octeontx2: sdei_ghes: add LMC
> 
> Revital Regev (1):
>   octeontx2-pf: Implement cgx stat rst
> 
> Stanislaw Kardach (8):
>   octeontx2-af: fix missing blocks quota validation
>   octeontx2-af: fix LD CUSTOM LTYPE aliasing
>   octeontx2-af: fix memory leaks on probe failure
>   octeontx2-af: prepare for custom KPU profiles
>   octeontx2-af: add support for custom KPU entries
>   octeontx2-rm: fix compilation warning
>   octeontx2-dpi: fix compilation warnings
>   octeontx2-af: fix compilation warning
> 
> Sujeet Baranwal (1):
>   mmc: speed limit for tx2-c0
> 
> Sunil Goutham (4):
>   octeontx2-af: Cleanup nixlf and blkaddr retrieval logic
>   octeontx2-af: Fix rvu_reg_poll() to poll reg atleast twice
>   octeontx2-pf: Fix flow control support for LBK devices
>   octeontx2-pf: Don't configure RSS context when interface is down
> 
>  drivers/hwtracing/coresight/coresight-tmc-etr.c|  15 -
>  drivers/hwtracing/coresight/coresight-tmc.c|   7 ++-
>  drivers/hwtracing/coresight/coresight-tmc.h|   1 +
>  drivers/mmc/host/cavium.c  |   2 +
>  drivers/mmc/host/cavium.h  |  14 +
>  drivers/net/ethernet/cavium/thunder/Makefile   |  10 +--
>  drivers/net/ethernet/marvell/octeontx2/af/cgx.c|  28 -
>  drivers/net/ethernet/marvell/octeontx2/af/cgx.h|   1 +
>  drivers/net/ethernet/marvell/octeontx2/af/mbox.h   |   5 +-
>  drivers/net/ethernet/marvell/octeontx2/af/npc.h|  88 
> --
>  drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h| 313 
> +-
>  drivers/net/ethernet/marvell/octeontx2/af/rvu.c|  45 
> -
>  drivers/net/ethernet/marvell/octeontx2/af/rvu.h|  24 ++-
>  drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c|  27 
>  drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c| 276 
> +++-
>  drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c| 426 
> ++-
>  drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c |   5 +-
>  drivers/net/ethernet/marvell/octeontx2/af/rvu_validation.c | 131 
> +++---
>  drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c   |  10 ++-
>  drivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c  |   9 ++-
>  drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c |  34 --
>  drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.h |   2 +-
>  drivers/pci/controller/pci-octeontx2-pem.c |   4 +-
>  drivers/soc/marvell/octeontx2-dpi/dpi.c|  11 ++--
>  drivers/soc/marvell/octeontx2-ghes/otx2-sdei-ghes.c|   5 +-
>  drivers/soc/marvell/octeontx2-rm/domain_sysfs.c|   2 -
>  26 files changed, 990 insertions(+), 505 deletions(-)
> 
> Thanks,
> Kevin




signature.asc
Description: PGP signature
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8470): 
https://lists.yoctoproject.org/g/linux-yocto/message/8470
Mute This Topic: https://lists.yoctoproject.org/mt/71878923/21656
Group Owner: 

[linux-yocto] [linux-yocto-dev v5.6] Rebase the Marvell cn96xx SoC support on the new dev kernel

2020-03-11 Thread Kevin Hao
Hi Bruce,

Here is the rebase of the Marvell cn96xx SoC support on the new dev kernel.

The following changes since commit d7ce3415aeb3f487330749bc3ead9b77e376d569:

  Merge tag 'v5.6-rc5' into standard/base (2020-03-09 13:09:22 -0400)

are available in the Git repository at:

  git://github.com/haokexin/linux standard/cn96xx

for you to fetch changes up to d63556626ee8d4667b8b7d05b1984acde044db02:

  octeontx2-pf: Fix the page reference and free race in the otx2_alloc_rbuf() 
(2020-03-11 14:06:19 +0800)


Aleksey Makarov (2):
  octeontx2-af: Add low level support for Marvell PTP coprocessor
  octeontx2-pf: Add support for PTP clock

Alex Belits (2):
  arm64: Add support for ASID locking
  kernel/exit.c: Add task cleanup callbacks

Andrew Pinski (3):
  arm64: Add MIDR encoding for some Marvell OcteonTX 2.
  arm64: Add workaround for Cavium erratum 36890
  arm64: Add workaround for Marvell erratum 37119

Angela Czubak (2):
  octeontx2-af: fix rvu_sso_ggrp_taq_flush
  octeontx2-af: fix cgx_lmac_rx_tx_enable

Bharat Bhushan (4):
  dt-bindings: perf: arm-smmuv3-pmu: Add documentation for arm-smmuv3 pmu
  perf/smmuv3: Add device tree support
  perf/smmuv3: Fix programming event type with global  filtering commit 
439fc228868bd8f8b8f1cda07f343bf3579af58b from 
g...@git.assembla.com:cavium/WindRiver.linux.git
  coresight: Treat ETM4.2 as ETM4.3 on OcteonTx2

Chandrakala Chavva (1):
  mmc: cavium_thunderx: Use proper register to clear interrupts

Christina Jacob (21):
  octeontx2-pf: Adding ethtool support for link status information.
  octeontx2-af: Support to get link info like current speed, fec etc
  octeontx2-pf: Ethtool support for fec configuration
  octeontx2-af: Move to rvu_fwdata version 1.
  octeontx2-pf: Add ethtool -m option support.
  octeontx2-af: Extend fwdata structure with additional information.
  octeontx2-af: Update fwadata structure with few more reserved fields.
  octeontx2-af: Fetch FEC stats of the physical link
  octeontx2-pf: Support to display fec counters also in ethtool stats.
  octeontx2-af: sync ATF and Kernel firmware data structure.
  octeontx2-pf: Support to display current settings of a vf network 
interface via ethtool
  net:thunderx: fix memory leak in nicvf driver.
  soc: octeontx2: Add mdio command interface using debugfs
  soc: octeontx2: Add mdio command interface using debugfs
  octeontx2-af: Introduce SET_LINK_MODE command to change various 
configurations of a network interface.
  octeontx2-pf: support to change link speed and autoneg
  octeontx2-pf: Disply the link detected status in ethtool command
  net: thunderx: Do a PCS reset upon SGMII link toggle
  octeontx2-pf: remove redundant changes from speed change suppcrt.
  octeontx-af: Interface mode change feature via ethtool
  octeontx2-pf: Interface Mode change using ethtool.

Felix Manlunas (5):
  octeontx2-af: Add new CGX_CMDs to set and get PHY modulation type
  octeontx2-pf: Add ethtool priv flag to control PAM4 on/off
  octeontx2-pf: Fix wrong info in ethtool's list of supported link modes
  octeontx2-pf: Add LIO3 link modes to ethtool's list of supported modes
  octeontx2-af: Add new CGX_CMD to get PHY FEC statistics

Geetha sowjanya (21):
  octeontx2-af: Config receive and transmission of pause frames
  octeontx2-af: Add mbox message to enable/disable pause frames.
  octeontx2-af: Add mbox messages to configure backpressure for an 
interface.
  octeontx2-pf: Add ethtool support to enable/disable pause frames
  octeontx2-pf: Configure backpressure level for packet reception
  octeontx2-af: Check SQ counters to detect the deadlock
  octeontx2-af: Enable pci bus mastering
  octeontx2-af: Fix rvu probe on cgx disable
  octeontx2-pf: Add VF function level reset (FLR) support
  octeontx2-vf: Configure backpressure level for packet reception
  octeontx2-af: Update hardware workarounds for 95xx A1 silicon
  PCI: quirks : Apply ACS quirk for all devices
  octeontx2-pf: Ignore NPC parser layer errors
  iommu/arm-smmu-v3: Force 32 byte command queue memory reads
  octeontx2-pf: Add shutdown sequence for PF/VF
  octeontx2-pf: Reset the PF/VF on MTU change
  octeontx: Reduce mbox wait response time.
  octeontx2-pf: Fix clearing SQ/CQ queue interrupt
  octeontx2-af: Fix return value in npc_set_pkind
  octeontx2-af: Update HW workarounds for 96xx C0, 98xx and F95xx B0 chips
  octeontx2-pf: Set SMQ MAXLEN to max hardware supported value

Hao Zheng (2):
  octeontx2-af: Turn on L2 multicast address check
  octeontx2-af: combine LB_STAG and LB_QINQ to one LB ltype

Hariprasad Kelam (2):
  net: thunderx: fix page reference release in interface tear down
  octeontx2-af: Update tx parse nibble config

Harman 

[linux-yocto] [linux-yocto v5.4] Another patch series for the Marvell cn96xx SoC support

2020-03-11 Thread Kevin Hao
Hi Bruce,

This is another patch series for the Marvell cn96xx SoC support, the main
changes are the misc Ethernet bug fixes.

The following changes since commit c27a9ed44dd76fe64998802e322244cb6cdeee8c:

  Merge branch 'v5.4/standard/base' into v5.4/standard/cn96xx (2020-03-03 
20:30:29 -0500)

are available in the Git repository at:

  git://github.com/haokexin/linux v5.4/standard/cn96xx

for you to fetch changes up to ff37cb986c324411ac8363b8973f51c9c45a99df:

  pci: octeontx2: Use a more lightweight API to get the root bus (2020-03-10 
19:06:09 +0800)


Geetha sowjanya (1):
  octeontx2-pf: Set SMQ MAXLEN to max hardware supported value

Hariprasad Kelam (1):
  octeontx2-af: Update tx parse nibble config

Harman Kalra (1):
  net: thunder: renaming thunder nicpf and vf module name

Jerin Jacob (1):
  octeontx2-af: Allow to configure flow tag LSB byte as RSS adder

Kevin Hao (1):
  pci: octeontx2: Use a more lightweight API to get the root bus

Linu Cherian (1):
  coresight: tmc: Misc fixes for graceful exit on error

Michal Mazur (1):
  octeontx2-af: fix detection of IP layer

Peter Swain (1):
  drivers: marvell: octeontx2: sdei_ghes: add LMC

Revital Regev (1):
  octeontx2-pf: Implement cgx stat rst

Stanislaw Kardach (8):
  octeontx2-af: fix missing blocks quota validation
  octeontx2-af: fix LD CUSTOM LTYPE aliasing
  octeontx2-af: fix memory leaks on probe failure
  octeontx2-af: prepare for custom KPU profiles
  octeontx2-af: add support for custom KPU entries
  octeontx2-rm: fix compilation warning
  octeontx2-dpi: fix compilation warnings
  octeontx2-af: fix compilation warning

Sujeet Baranwal (1):
  mmc: speed limit for tx2-c0

Sunil Goutham (4):
  octeontx2-af: Cleanup nixlf and blkaddr retrieval logic
  octeontx2-af: Fix rvu_reg_poll() to poll reg atleast twice
  octeontx2-pf: Fix flow control support for LBK devices
  octeontx2-pf: Don't configure RSS context when interface is down

 drivers/hwtracing/coresight/coresight-tmc-etr.c|  15 -
 drivers/hwtracing/coresight/coresight-tmc.c|   7 ++-
 drivers/hwtracing/coresight/coresight-tmc.h|   1 +
 drivers/mmc/host/cavium.c  |   2 +
 drivers/mmc/host/cavium.h  |  14 +
 drivers/net/ethernet/cavium/thunder/Makefile   |  10 +--
 drivers/net/ethernet/marvell/octeontx2/af/cgx.c|  28 -
 drivers/net/ethernet/marvell/octeontx2/af/cgx.h|   1 +
 drivers/net/ethernet/marvell/octeontx2/af/mbox.h   |   5 +-
 drivers/net/ethernet/marvell/octeontx2/af/npc.h|  88 
--
 drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h| 313 
+-
 drivers/net/ethernet/marvell/octeontx2/af/rvu.c|  45 -
 drivers/net/ethernet/marvell/octeontx2/af/rvu.h|  24 ++-
 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c|  27 
 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c| 276 
+++-
 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c| 426 
++-
 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c |   5 +-
 drivers/net/ethernet/marvell/octeontx2/af/rvu_validation.c | 131 
+++---
 drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c   |  10 ++-
 drivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c  |   9 ++-
 drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c |  34 --
 drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.h |   2 +-
 drivers/pci/controller/pci-octeontx2-pem.c |   4 +-
 drivers/soc/marvell/octeontx2-dpi/dpi.c|  11 ++--
 drivers/soc/marvell/octeontx2-ghes/otx2-sdei-ghes.c|   5 +-
 drivers/soc/marvell/octeontx2-rm/domain_sysfs.c|   2 -
 26 files changed, 990 insertions(+), 505 deletions(-)

Thanks,
Kevin


signature.asc
Description: PGP signature
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8468): 
https://lists.yoctoproject.org/g/linux-yocto/message/8468
Mute This Topic: https://lists.yoctoproject.org/mt/71878923/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [linux-yocto][linux-yocto v5.4/standard/preempt-rt/base v5.4/standard/preempt-rt/intel-x86 v5.4/standard/preempt-rt/bcm-2xxx-rpi][PATCH] aufs5:fix:avoid to access rw_sem.owner at rt kernel

2020-03-11 Thread He Zhe


On 3/11/20 3:44 PM, Xu, Yanfei wrote:
>
> On 3/11/20 12:14 PM, He Zhe wrote:
>>
>> On 3/10/20 2:50 PM, Xu, Yanfei wrote:
>>> From: Yanfei Xu 
>>>
>>> Fix build failure.
>>>
>>> Even though owner member is now made a permanent member of the
>>> rw_semaphore. The rw_semaphore in rwsem-rt.h doesn't have owner
>>> field still.
>>>
>>> -Error messages-
>>> |
>>> /buildarea1/nightly/WRLINUX_MASTER_WR/build_dir/OVP/GIT_202003/lxbuilds/intel-x86-64-preempt-rt-ovp-kvm/wrlinux/build_linux/tmp-glibc/work-shared/intel-x86-64/kernel-source/fs/aufs/i_op.c:
>>> In function 'au_pin_hdir_set_owner':
>>> |
>>> /buildarea1/nightly/WRLINUX_MASTER_WR/build_dir/OVP/GIT_202003/lxbuilds/intel-x86-64-preempt-rt-ovp-kvm/wrlinux/build_linux/tmp-glibc/work-shared/intel-x86-64/kernel-source/fs/aufs/i_op.c:643:45:
>>> error: 'struct rw_semaphore' has no member named 'owner'
>>> |   643 |  atomic_long_set(>hdir->hi_inode->i_rwsem.owner,
>>> (long)task);
>>> |   | ^
>>> |   CC  fs/btrfs/zstd.o
>>> |   AR  fs/kernfs/built-in.a
>>> |   CC  arch/x86/kernel/io_delay.o
>>> |   CC  net/ipv6/udplite.o
>>> | make[3]: ***
>>> [/buildarea1/nightly/WRLINUX_MASTER_WR/build_dir/OVP/GIT_202003/lxbuilds/intel-x86-64-preempt-rt-ovp-kvm/wrlinux/build_linux/tmp-glibc/work-shared/intel-x86-64/kernel-source/scripts/Makefile.build:265:
>>> fs/aufs/i_op.o] Error 1
>>> | make[3]: *** Waiting for unfinished jobs
>>> --
>>>
>>> Signed-off-by: Yanfei Xu 
>>> ---
>>>   fs/aufs/i_op.c | 2 ++
>>>   1 file changed, 2 insertions(+)
>>>
>>> diff --git a/fs/aufs/i_op.c b/fs/aufs/i_op.c
>>> index ef1e08c7ca10..b6b316b12144 100644
>>> --- a/fs/aufs/i_op.c
>>> +++ b/fs/aufs/i_op.c
>>> @@ -640,7 +640,9 @@ int au_pin_hdir_relock(struct au_pin *p)
>>>     static void au_pin_hdir_set_owner(struct au_pin *p, struct task_struct 
>>> *task)
>>>   {
>>> +#if !defined(CONFIG_PREEMPT_RT)
>>>   atomic_long_set(>hdir->hi_inode->i_rwsem.owner, (long)task);
>>> +#endif
>> This doesn't seem to work as it gives a no-op for RT kernel.
>>
>> The following diff should work, since rwsem in RT kernel had been 
>> implemented with rt_mutex.
>> But I haven't validated it.
>>
>> diff --git a/fs/aufs/i_op.c b/fs/aufs/i_op.c
>> index ef1e08c7ca10..37b535d19060 100644
>> --- a/fs/aufs/i_op.c
>> +++ b/fs/aufs/i_op.c
>> @@ -640,7 +640,7 @@ int au_pin_hdir_relock(struct au_pin *p)
>>     static void au_pin_hdir_set_owner(struct au_pin *p, struct task_struct 
>> *task)
>>   {
>> -   atomic_long_set(>hdir->hi_inode->i_rwsem.owner, (long)task);
>> +   p->hdir->hi_inode->i_rwsem.rtmutex.owner = task;
>>   }
>
> Good suggestion, and I think "#if !defined(CONFIG_PREEMPT_RT)" should be 
> reserved to avoid compile
>
> failure if someone compiles a kernel without CONFIG_PREEMPT_RT with 
> preempt_rt branchs.

The #if does not make much sense, since people wanting standard kernel should 
use standard branches. That's enforced by linux-yocto-*.bb.

>
> I will send a v2 patch soon.

Some smoke test needs to be done to make sure the change works well for aufs.

Zhe

>
> // Yanfei
>
>  
>
>>     void au_pin_hdir_acquire_nest(struct au_pin *p)
>>
>>
>> Zhe
>>
>>>   }
>>>     void au_pin_hdir_acquire_nest(struct au_pin *p)
>>>
>>> 
>>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8467): 
https://lists.yoctoproject.org/g/linux-yocto/message/8467
Mute This Topic: https://lists.yoctoproject.org/mt/71852365/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [linux-yocto][linux-yocto v5.4/standard/preempt-rt/base v5.4/standard/preempt-rt/intel-x86 v5.4/standard/preempt-rt/bcm-2xxx-rpi][PATCH] aufs5:fix:avoid to access rw_sem.owner at rt kernel

2020-03-11 Thread Xu, Yanfei


On 3/11/20 12:14 PM, He Zhe wrote:


On 3/10/20 2:50 PM, Xu, Yanfei wrote:

From: Yanfei Xu 

Fix build failure.

Even though owner member is now made a permanent member of the
rw_semaphore. The rw_semaphore in rwsem-rt.h doesn't have owner
field still.

-Error messages-
|
/buildarea1/nightly/WRLINUX_MASTER_WR/build_dir/OVP/GIT_202003/lxbuilds/intel-x86-64-preempt-rt-ovp-kvm/wrlinux/build_linux/tmp-glibc/work-shared/intel-x86-64/kernel-source/fs/aufs/i_op.c:
In function 'au_pin_hdir_set_owner':
|
/buildarea1/nightly/WRLINUX_MASTER_WR/build_dir/OVP/GIT_202003/lxbuilds/intel-x86-64-preempt-rt-ovp-kvm/wrlinux/build_linux/tmp-glibc/work-shared/intel-x86-64/kernel-source/fs/aufs/i_op.c:643:45:
error: 'struct rw_semaphore' has no member named 'owner'
|   643 |  atomic_long_set(>hdir->hi_inode->i_rwsem.owner,
(long)task);
|   | ^
|   CC  fs/btrfs/zstd.o
|   AR  fs/kernfs/built-in.a
|   CC  arch/x86/kernel/io_delay.o
|   CC  net/ipv6/udplite.o
| make[3]: ***
[/buildarea1/nightly/WRLINUX_MASTER_WR/build_dir/OVP/GIT_202003/lxbuilds/intel-x86-64-preempt-rt-ovp-kvm/wrlinux/build_linux/tmp-glibc/work-shared/intel-x86-64/kernel-source/scripts/Makefile.build:265:
fs/aufs/i_op.o] Error 1
| make[3]: *** Waiting for unfinished jobs
--

Signed-off-by: Yanfei Xu 
---
  fs/aufs/i_op.c | 2 ++
  1 file changed, 2 insertions(+)

diff --git a/fs/aufs/i_op.c b/fs/aufs/i_op.c
index ef1e08c7ca10..b6b316b12144 100644
--- a/fs/aufs/i_op.c
+++ b/fs/aufs/i_op.c
@@ -640,7 +640,9 @@ int au_pin_hdir_relock(struct au_pin *p)
  
  static void au_pin_hdir_set_owner(struct au_pin *p, struct task_struct *task)

  {
+#if !defined(CONFIG_PREEMPT_RT)
atomic_long_set(>hdir->hi_inode->i_rwsem.owner, (long)task);
+#endif

This doesn't seem to work as it gives a no-op for RT kernel.

The following diff should work, since rwsem in RT kernel had been implemented 
with rt_mutex.
But I haven't validated it.

diff --git a/fs/aufs/i_op.c b/fs/aufs/i_op.c
index ef1e08c7ca10..37b535d19060 100644
--- a/fs/aufs/i_op.c
+++ b/fs/aufs/i_op.c
@@ -640,7 +640,7 @@ int au_pin_hdir_relock(struct au_pin *p)
  
  static void au_pin_hdir_set_owner(struct au_pin *p, struct task_struct *task)

  {
-   atomic_long_set(>hdir->hi_inode->i_rwsem.owner, (long)task);
+   p->hdir->hi_inode->i_rwsem.rtmutex.owner = task;
  }


Good suggestion, and I think "#if !defined(CONFIG_PREEMPT_RT)" should be 
reserved to avoid compile


failure if someone compiles a kernel without CONFIG_PREEMPT_RT with 
preempt_rt branchs.


I will send a v2 patch soon.

// Yanfei



  
  void au_pin_hdir_acquire_nest(struct au_pin *p)



Zhe


  }
  
  void au_pin_hdir_acquire_nest(struct au_pin *p)





-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8465): 
https://lists.yoctoproject.org/g/linux-yocto/message/8465
Mute This Topic: https://lists.yoctoproject.org/mt/71852365/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-