From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8EAC4C282D7 for ; Wed, 30 Jan 2019 15:23:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5C13520989 for ; Wed, 30 Jan 2019 15:23:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731093AbfA3PXC (ORCPT ); Wed, 30 Jan 2019 10:23:02 -0500 Received: from mx1.redhat.com ([209.132.183.28]:36193 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727162AbfA3PXC (ORCPT ); Wed, 30 Jan 2019 10:23:02 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 76104356D3; Wed, 30 Jan 2019 15:23:02 +0000 (UTC) Received: from localhost (unknown [10.40.205.101]) by smtp.corp.redhat.com (Postfix) with ESMTP id E61155C21E; Wed, 30 Jan 2019 15:22:57 +0000 (UTC) Date: Wed, 30 Jan 2019 16:22:56 +0100 From: Stanislaw Gruszka To: Felix Fietkau Cc: Lorenzo Bianconi , Kalle Valo , linux-wireless@vger.kernel.org Subject: Re: [PATCH v2 0/7] mt76x02: Beacon support for USB Message-ID: <20190130152255.GA24113@redhat.com> References: <1548678108-9526-1-git-send-email-sgruszka@redhat.com> <87a7jju1mv.fsf@purkki.adurom.net> <8ec3b133-49eb-3c5f-4c3c-bc2bb4e84cde@nbd.name> <87k1inwtu5.fsf@codeaurora.org> <87fttbwtav.fsf@codeaurora.org> <20190129124056.GB2460@localhost.localdomain> <20190130083747.GB2720@redhat.com> <20190130100748.GA5655@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190130100748.GA5655@redhat.com> User-Agent: Mutt/1.8.3 (2017-05-23) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Wed, 30 Jan 2019 15:23:02 +0000 (UTC) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Wed, Jan 30, 2019 at 11:07:48AM +0100, Stanislaw Gruszka wrote: > > >> We can support ps buffering in AP as well using a hrtimer. In this way we > > >> can reuse most of the existing code > > > > > > Yes, but there is issue to address, since kernel timer and device TBT > > > timer are independed, they possibly can get out of sync after some time, > > > for example few hours or days. So there is need to prevent/fix this > > > somehow. > > We could read the TSF timer value from the hardware and sync the hrtimer > > against that. > > Ok then. I'll implement hrtimer solution and repost this set. Patch > 6 will no longer be necessery. This require more changes than I expected to allow programming registers from atomic context for mt76-usb. So I'll repost without AP support for now. Stanislaw