From patchwork Fri Dec 16 17:59:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Henrik Austad X-Patchwork-Id: 9478177 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5ABC1601C2 for ; Fri, 16 Dec 2016 18:03:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 50A19288A1 for ; Fri, 16 Dec 2016 18:03:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 45547288D3; Fri, 16 Dec 2016 18:03:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BD863288A1 for ; Fri, 16 Dec 2016 18:03:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757739AbcLPSBL (ORCPT ); Fri, 16 Dec 2016 13:01:11 -0500 Received: from mail-lf0-f67.google.com ([209.85.215.67]:34152 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756557AbcLPSAF (ORCPT ); Fri, 16 Dec 2016 13:00:05 -0500 Received: by mail-lf0-f67.google.com with SMTP id 30so424317lfy.1 for ; Fri, 16 Dec 2016 10:00:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=austad-us.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=euyoSLqYEEgiXloebBk+RiM+3svFwul2mB/xw9C8RpU=; b=WRv2uEMKAyFu5D75h5qMEko0Taq1MucAjgVOUyFJjkibIsCELvHg/8pilPd/vlaXZB +L9NWbcAGaHpzKlqngfZ/8ewCwRMFdEyRABFV260TE92mXQc2oNWrNQ6JaKC4V2HgelO B/MG74TDhABGuNxAG47UUcdXYI/ec3kgcNu901Oc+6GpQSk0Y/SNpxi7xr0Eqz8Qsd3L T30DajnG/3VN1wwJDz0E0L3U5Gs8pv2QCK0GmVnpHYEDtTuVzz5gAlLdvlB1z7g6fBEb Ilje2wQrEDR/SH5KGuFJZDD+IG9cqM7IPP5CPWKVRCT4L6LeyBArT4nbhCb4OYVjmmUQ T4LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=euyoSLqYEEgiXloebBk+RiM+3svFwul2mB/xw9C8RpU=; b=FFMR1RCCtvGnD6vg43Nu8NibDHGnKgRPrs4ISgEZkJPFf3MJUn2oaozJuousnx7iI1 wo+7vUyq/znI4oc2vW/kdHbyqIj0FlOyRimBnLLQFY2tbpjWqav2/Ex/HE9cNblxu+WV d0n2e96hx8On4x3DkPdBLLZNc3xO8SW/C0KOs9AtZIsN0RZGSEbQKi/bFtU3bHgUfCuY 8Qydo+/VPGDSPy7nX/RrlDdcdeXXF6Nv0kFzD1DAq1gACSZlEt4kvwCCnzZj2O3DFpiw Ls3ZMbDyoDyTQQUjE96EnBsB1M1kUvDtQtrkczCDGgmO6WEEOd+IjA2wJLc/IRyBqmdT PUPw== X-Gm-Message-State: AKaTC03cTxDVJCZmtidvobYFjd2n0XlHbmSJfeX1bUCERNPInrgqAPCLC8DotbKSN1AgiQ== X-Received: by 10.25.196.88 with SMTP id u85mr1389534lff.69.1481911198457; Fri, 16 Dec 2016 09:59:58 -0800 (PST) Received: from sisyphus.home.austad.us ([51.175.50.162]) by smtp.gmail.com with ESMTPSA id 137sm1512067lfz.2.2016.12.16.09.59.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 16 Dec 2016 09:59:57 -0800 (PST) From: henrik@austad.us To: linux-kernel@vger.kernel.org Cc: Richard Cochran , henrik@austad.us, linux-media@vger.kernel.org, alsa-devel@vger.kernel.org, netdev@vger.kernel.org, Jeff Kirsher , intel-wired-lan@lists.osuosl.org, Henrik Austad Subject: [TSN RFC v2 1/9] igb: add missing fields to TXDCTL-register Date: Fri, 16 Dec 2016 18:59:05 +0100 Message-Id: <1481911153-549-2-git-send-email-henrik@austad.us> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1481911153-549-1-git-send-email-henrik@austad.us> References: <1481911153-549-1-git-send-email-henrik@austad.us> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Henrik Austad The current list of E1000_TXDCTL-registers is incomplete. This adds the missing parts for the Transmit Descriptor Control (TXDCTL) register. The rest of these values (threshold for descriptor read/write) for TXDCTL seems to be defined in igb/igb.h, not sure why this is split though. It seems that this was left out in the commit that added support for 82575 Gigabit Ethernet driver 9d5c8243 (igb: PCI-Express 82575 Gigabit Ethernet driver). Cc: linux-kernel@vger.kernel.org Cc: Jeff Kirsher Cc: intel-wired-lan@lists.osuosl.org Signed-off-by: Henrik Austad --- drivers/net/ethernet/intel/igb/e1000_82575.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/ethernet/intel/igb/e1000_82575.h b/drivers/net/ethernet/intel/igb/e1000_82575.h index acf0605..7faa482 100644 --- a/drivers/net/ethernet/intel/igb/e1000_82575.h +++ b/drivers/net/ethernet/intel/igb/e1000_82575.h @@ -158,7 +158,11 @@ struct e1000_adv_tx_context_desc { /* Additional Transmit Descriptor Control definitions */ #define E1000_TXDCTL_QUEUE_ENABLE 0x02000000 /* Enable specific Tx Queue */ + +/* Transmit Software Flush, sw-triggered desc writeback */ +#define E1000_TXDCTL_SWFLSH 0x04000000 /* Tx Queue Arbitration Priority 0=low, 1=high */ +#define E1000_TXDCTL_PRIORITY 0x08000000 /* Additional Receive Descriptor Control definitions */ #define E1000_RXDCTL_QUEUE_ENABLE 0x02000000 /* Enable specific Rx Queue */