From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it1-f193.google.com (mail-it1-f193.google.com [209.85.166.193]) by dpdk.org (Postfix) with ESMTP id 6B50056A3 for ; Sat, 3 Nov 2018 08:19:49 +0100 (CET) Received: by mail-it1-f193.google.com with SMTP id b7-v6so6161444itd.5 for ; Sat, 03 Nov 2018 00:19:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DwQENfKPCg7gQ5tJZRt5FdFZxAk/gajEjLSZvp24CgQ=; b=cwUGlyp/jKpybhFTrIV/y72eTWqkx4TbXMvCnO1qNNn507K698sHV1flgzlBfgT1VT ni/fIWTxOkZ57fs2zePLnbJIDZQ8LQGRHULQ3iY5De8HDs7WB0cR8nzyh36UNIaJqAhR Xu+Sbvhz72zIewKKVh0B4aOUzoghzf70CAuCY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DwQENfKPCg7gQ5tJZRt5FdFZxAk/gajEjLSZvp24CgQ=; b=lBKFbNUNWg26pKJisz2n9q0x5V4yedP+hjSgjmwnNYFOp3FA4cql8z7iUrpIxSxyGE xYt/UhqRI1AR+GKfm3D88td+ks77ZEDBm1EcvjNO+5DqUgScSvFffp5BH6X8i4IzZ33f 8uKsv5gjSDLjZybYDQ2XE1VBgMYcsMU2tL1MU28gPhGvW+eCyYhk1HOts/o15QKVGKfW c3RiXNchOsK7awTK2P+0g0FB0tnj6rUzf0E8dPIPHDSbYuWC6dKPpn5D/YgXXqwYDYer Tpr+UzqahaLF7nEgWFPUIlLjbwYpPYYN+x9YcdqWSIvJ6xVPRtWEwMpuGPk5jbA4MQ6y rWTQ== X-Gm-Message-State: AGRZ1gK4fl3aaAXl6PkG/a4LB6fH5nx/tj0RRmsk0tz9jKQ9X52Fhuvs 4IL0+JlTdPRc1s65HZuFLNkWmV+u8JfweOG/1HcuGA== X-Google-Smtp-Source: AJdET5d3g31y2jeZBN4jCB5tlJBUW+jqIVO1Ai4+qO+v6E6DJqtYo38gOc+86RVatbg4OgTdqqNjM4f6ovcUYfEbdGs= X-Received: by 2002:a05:660c:383:: with SMTP id x3mr91377itj.121.1541229588601; Sat, 03 Nov 2018 00:19:48 -0700 (PDT) MIME-Version: 1.0 References: <051139db-381e-5f2f-32dc-1b91e8e45fee@intel.com> <3B45A79A-D782-4274-984C-DB1CD49B7252@intel.com> <5891119E-2F06-4467-A737-55FF37668D37@intel.com> In-Reply-To: From: Somnath Kotur Date: Sat, 3 Nov 2018 12:49:40 +0530 Message-ID: To: keith.wiles@intel.com Cc: anatoly.burakov@intel.com, dev Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] Question about rte_manage_timer() and eal_intr_handle_interrupts X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Nov 2018 07:19:49 -0000 Hello Keith/Anatoly, Another strange thing, it appears that if i keep a breakpoint (using gdb) on my async intr handler(bnxt_int_handler), then it seems to hit it (after the alarm callback is invoked first) and then i can see both this alarm going off every 2s and those async/interrupts arriving on my driver.... Thanks Som On Sat, Nov 3, 2018 at 9:58 AM Somnath Kotur wrote: > Hi Anatoly/keith, > I just tried using rte_eal_alarm_set() in the driver > like so: > > rte_eal_alarm_set(US_PER_S * 2, timer0_cb, (void *)data); > > The moment i start this off, i stop getting async events/interrupt > notifications in my driver ...I'm hitting the same problem as it was before > with rte_timer_manage() as well. > What is going wrong here ? Something we are missing ? > > Thanks > Som > > On Sat, Nov 3, 2018 at 8:06 AM Somnath Kotur > wrote: > >> Thank you Anatoly and keith for your replies. What i still don't get is >> why the two cannot seem to co-exist? >> That is , whenever this while loop was running in the EAL thread that i >> showed in the code, my driver would stop receiving interrupts/async events >> ...Do we understand that? >> But you are right Anatoly, i need something to be called in my driver at >> a cadence of ~2s, I was registering timers in my driver and running >> rte_timer_manage() in this seperate thread to check and ensure the >> callbacks are executed on expiry. >> so if you are saying, i can achieve same functionality using rte_alarm() >> while i can get async events in my driver at the same time, i will explore >> this option >> Thanks a lot >> >> Som >> >> On Fri, Nov 2, 2018 at 8:07 PM Wiles, Keith >> wrote: >> >>> >>> >>> > On Nov 2, 2018, at 9:35 AM, Wiles, Keith >>> wrote: >>> > >>> > >>> Sorry, meant to hit cancel for my previous email, Anatoly answered it >>> correctly. >>> >>> Regards, >>> Keith >>> >>>