Re: [dpdk-dev] [PATCH V20 2/4] eal: add failure handler mechanism for hot plug

2018-05-02 Thread Guo, Jia
On 4/21/2018 12:16 AM, Ananyev, Konstantin wrote: + +static void sigbus_handler(int signum __rte_unused, siginfo_t *info, + void *ctx __rte_unused) +{ + int ret; + + RTE_LOG(ERR, EAL, "SIGBUS error, fault address:%p\n", info->si_addr); + ret = dev

Re: [dpdk-dev] [PATCH V20 2/4] eal: add failure handler mechanism for hot plug

2018-05-02 Thread Guo, Jia
On 4/20/2018 7:14 PM, Ananyev, Konstantin wrote: This patch introduces a failure handler mechanism to handle device hot unplug event. When device be hot plug out, the device resource become invalid, if this resource is still be unexpected read/write, system will crash. This patch let eal help

Re: [dpdk-dev] [PATCH V20 2/4] eal: add failure handler mechanism for hot plug

2018-04-20 Thread Ananyev, Konstantin
> > + > > +static void sigbus_handler(int signum __rte_unused, siginfo_t *info, > > + void *ctx __rte_unused) > > +{ > > + int ret; > > + > > + RTE_LOG(ERR, EAL, "SIGBUS error, fault address:%p\n", info->si_addr); > > + ret = dev_uev_failure_process(NULL, info->si_a

Re: [dpdk-dev] [PATCH V20 2/4] eal: add failure handler mechanism for hot plug

2018-04-20 Thread Ananyev, Konstantin
> This patch introduces a failure handler mechanism to handle device > hot unplug event. When device be hot plug out, the device resource > become invalid, if this resource is still be unexpected read/write, > system will crash. This patch let eal help application to handle > this fault, when sig

Re: [dpdk-dev] [PATCH V20 2/4] eal: add failure handler mechanism for hot plug

2018-04-18 Thread Zhang, Qi Z
Hi Jeff > -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Jeff Guo > Sent: Wednesday, April 18, 2018 9:38 PM > To: step...@networkplumber.org; Richardson, Bruce > ; Yigit, Ferruh ; > Ananyev, Konstantin ; > gaetan.ri...@6wind.com; Wu, Jingjing ; > tho...@monjalon.