Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4508525rdb; Tue, 12 Dec 2023 01:08:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IEL3Lz+jhSr52r6IJtJ0tW+ZLjsbyXD4HioiDWtPl+DbQ+75ESeZfdfMR0pMn94wELflGSo X-Received: by 2002:a05:6870:d9a:b0:1fa:f60e:7390 with SMTP id mj26-20020a0568700d9a00b001faf60e7390mr7292651oab.18.1702372107018; Tue, 12 Dec 2023 01:08:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702372106; cv=none; d=google.com; s=arc-20160816; b=aTG451g5oyHmLM7t3BLGRqwL7O4uWRGVR3RUrP57E925MzTkXwkfpmUts8/PXDq6lj SALAaSuq+pCTscZuTgIecLlWonbsdSK4HvC2Hy1ikXlGdC8aaL0NvNEY6c9B2txGcIiP qiqiVoVCazUebAwfykaSCNXSNKNNMl8QE2tlq1Ex+Btl6QL3mMeLdAAZOHS5z+MZ+jQy 7yZRFpApRtGx44voiWyGoqvhAoETzFgyr4etqtZlDk7pqFmuAa+jKGvdXeWpricQjYwo AbLVJekcQQU92Cpt0etBPeeAer4GddS3/pPr8jOH39F7haOgAXQ3cKkCE/3Xzv80j5gL lt4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=QIjPBVeqkpjJISDqusXw3EmS1YdMB1wPejTAPOdPhFM=; fh=nF5PumBcwV03Iy4rtT+nqF8hXa6GT3GkzKqmC7h2nnQ=; b=RwOqO5B6aYGM5jTZd/W566vbvKhPShxMUiaK+0Wh+horZurxx37unYK2mw50DaVxur DPkOQuVTAL32BWHseMz8Lm6vWyceqBt3kvcWWc2y4911SLfHnRCdhax3s5HHnKswaEML ZFrxfi59dAeWGWuTqGQyoeolAJ5d3n9ZYuL1YuCmPIuJqa5SHM9mmm6p2pDHK+a9ynGF nf19lKHqq1kBKcbLQwVoX1TQDENfTJjsEvpVMMNksGZffvLvZDzRUR1YnmsxH5tN0TRH dzlbrCNAg6EdCJQGO1ePaPNNaSXavRrsIkBtzFMkD49tY3F7VyRW80dgTjAsTUcCE6W6 lO4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Zglibz5F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id h2-20020a654042000000b005c66cf231d7si7501833pgp.336.2023.12.12.01.08.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 01:08:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Zglibz5F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 97929809F88D; Tue, 12 Dec 2023 01:08:24 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231322AbjLLJII (ORCPT + 99 others); Tue, 12 Dec 2023 04:08:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229794AbjLLJIH (ORCPT ); Tue, 12 Dec 2023 04:08:07 -0500 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35ECAC7; Tue, 12 Dec 2023 01:08:13 -0800 (PST) Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-50bce78f145so6232279e87.0; Tue, 12 Dec 2023 01:08:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702372091; x=1702976891; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=QIjPBVeqkpjJISDqusXw3EmS1YdMB1wPejTAPOdPhFM=; b=Zglibz5F1zOHeXpIe8espdYCHfBuyKlW4/fsq5XL8o3Fc4XiNRqrNroNkvItm/DJXo IGeRiACqfirCe0tyCQC0z8N0t0X47vnus4zWv+yu7fLor4hewtbrjw4TVnBBahVsvyZE MLQuxcvvO6CTL4UhS3KOsCLv8dPTRdslPjEG50xD0MRct+6i/dsTJe8WzAJMxoTxkary pAuHCIyKdNrz7nb4grYDB6Z/p7xZIeA5d7UKhaUXm+OKrAQsEsLV2w1vD8+u6Lv4JCYC XiSGIjMZvh7yerZz0kurkUgyzs/1eGAdvSQLSTOwIaxulSacCiicsxoq9L+ojgvckycm gg6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702372091; x=1702976891; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=QIjPBVeqkpjJISDqusXw3EmS1YdMB1wPejTAPOdPhFM=; b=Vz8nzPZ0X5h1QZ4XnzAXS7NwTR1tM27AYBMvB9xoNzPVSzPE0Ht8SVQKeh/ZvFu7O0 bm804aeH9xscKKytmL9GmKscOQC3Q2R6wHTzcDPO88UMEqOYqQeJ+c8N2M5I1N716GGb qGPxH+AyH7a67fbiYY2muZW6mn5Jxz0j3Wft67Pe1mqA/erkUk5hH2ukl2g6eMgdh3rN 4AWoN4mxzHAAelV66GX7LIRaOJlh8SodsoZKAHZm/tGVYZOiwF6GhQ+SPIWLMijyIdy9 BuE/2Gi7aj5ERzlyPrbL4xeL5CG+ozhfoULUJr91xsjT/QrnonNH5YePJfrHSwo6V+4f gqsw== X-Gm-Message-State: AOJu0Yyuj6wDUFTS/w/8yl7Yv0rkKUp9GenrmHenAcKb9tUQ9c0JidBR U/NeOZPkVw/X7ryqSJNjYuA= X-Received: by 2002:a05:6512:46f:b0:50b:ed48:247a with SMTP id x15-20020a056512046f00b0050bed48247amr1240510lfd.246.1702372091059; Tue, 12 Dec 2023 01:08:11 -0800 (PST) Received: from mobilestation ([178.176.56.174]) by smtp.gmail.com with ESMTPSA id t8-20020a19ad08000000b0050c0f5ce8c2sm1290876lfc.124.2023.12.12.01.08.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 01:08:10 -0800 (PST) Date: Tue, 12 Dec 2023 12:08:07 +0300 From: Serge Semin To: Jianheng Zhang Cc: Andrew Lunn , Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , "open list:STMMAC ETHERNET DRIVER" , "moderated list:ARM/STM32 ARCHITECTURE" , "moderated list:ARM/STM32 ARCHITECTURE" , open list , James Li , Martin McKenny Subject: Re: [PATCH net-next] net: stmmac: xgmac3+: add FPE handshaking support Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 12 Dec 2023 01:08:24 -0800 (PST) On Tue, Dec 12, 2023 at 07:22:24AM +0000, Jianheng Zhang wrote: > Hi Andrew, > > > > +static int dwxgmac3_fpe_irq_status(void __iomem *ioaddr, struct net_device *dev) > > > +{ > > > + u32 value; > > > + int status; > > > > > > - writel(value, ioaddr + XGMAC_FPE_CTRL_STS); > > > - return; > > > + status = FPE_EVENT_UNKNOWN; > > > + > > > + /* Reads from the XGMAC_FPE_CTRL_STS register should only be performed > > > + * here, since the status flags of MAC_FPE_CTRL_STS are "clear on read" > > > + */ > > > + value = readl(ioaddr + XGMAC_FPE_CTRL_STS); > > > + > > > + if (value & XGMAC_TRSP) { > > > + status |= FPE_EVENT_TRSP; > > > + netdev_info(dev, "FPE: Respond mPacket is transmitted\n"); > > > > netdev_info()? Is this going to spam the logs? Should it be netdev_dbg() > > Yes, netdev_dbg() should be better, let me fix it in the next patch. Please do not forget to keep this change in the refactoring patch (if one will be introduced). So instead of preserving the DW QoS Eth FPE code snipped with netdev_info() utilized, the common FPE implementation would have the netdev_dbg() calls. -Serge(y) > > Jianheng > > > > Andrew >