Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp487234ybb; Fri, 3 Apr 2020 06:37:32 -0700 (PDT) X-Google-Smtp-Source: APiQypJcCGEaxr1sqBsFeHM+ScC+sr7VUc8J1WaqMAmHZkwqZS1vi+jk8+qmusRIUim6jHGDVrfn X-Received: by 2002:a9d:6e92:: with SMTP id a18mr6753091otr.17.1585921052303; Fri, 03 Apr 2020 06:37:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585921052; cv=none; d=google.com; s=arc-20160816; b=Ou/sktzX6MIzlhBcz74Js86mjx3Ar9aG6P9iBZ0QAKCkm0k5IW8v9DKkD3+XpBzYa9 PZTei9MQaPIqEblmg8+vCJ/Q0CnUmVQFa/0dhY9Ytk7BjFuNXl5HmfNpzmZzYpLAxa1q r+uFCAkx8FjfLZpq8CUgROj4w0RiS2jARQ6XIZh4Sf+EH0Y5GzICQgdTd8AiilO+YFKD ArjnXzUJSKe8KCpZJwkrcx4/W+tqTpSziMDdOABxFOit9KvkMWg0iQPJq/F3XQVP0SF1 H6vduR/NHZK5uHr7TwtFMjvzZPbIvmoRU0jaN2x+wrlwgBtzq2qRuoIFXpVFf5i3+Fdb +Gow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=l1XFoW1CdqWqDnln9s/MFzf+07ncPFrbjj53bimt6iA=; b=p8FZnRODcZ2bVFz5ofY+6B+Cm4zn5j58hxL2xIPgDYpv34BvcwiIh7ruee/qzn4ZXs mFCRYTVOXQVN2AEthpE+28OQMHPcBmHc+2EGgL8wBP9I/E3+3l+yQmrYIeLTnHeuZh+d YrsMYzjAipGpEvGXEt1SlvNayzjXZij2IJQoPMWR3nx8Qq7HgSMcQlGNj4cNlHtFqPfE Xd41/WWo8p2n5X80EMDef6+572u1TZS1D5uFPVZc9uVj59hzUixLCSLIgE4rsFvPMbNg ZFOL/BA4O99TnmMRMhMDvpTFfHV6jyLVr0oB2dd7BdE/VhSPjRHmUbBKc3hKY8+Qyc80 +TMA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c195si3666839oig.142.2020.04.03.06.37.20; Fri, 03 Apr 2020 06:37:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390908AbgDCNgm (ORCPT + 99 others); Fri, 3 Apr 2020 09:36:42 -0400 Received: from mail-yb1-f193.google.com ([209.85.219.193]:42491 "EHLO mail-yb1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390892AbgDCNgm (ORCPT ); Fri, 3 Apr 2020 09:36:42 -0400 Received: by mail-yb1-f193.google.com with SMTP id c13so4222166ybp.9; Fri, 03 Apr 2020 06:36:40 -0700 (PDT) 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=l1XFoW1CdqWqDnln9s/MFzf+07ncPFrbjj53bimt6iA=; b=j3MuJboeAjWjLzCBr8aA/Nz1nJ0wXIVTFddVOBIRc0LwkHXZjJEPvZ4TmvXz7oqAAw hYgL5fRmcVB3Uw5BBeBOPpG16ct13k0XwLElliMPdrHspHFrc1xa+Iy626E1alR5vrIU ZoXGCKzXhJ2voM65YAF4dyCvkRa+Pl1MepEz/qWlQ72mQpRpF+s8PA7xpCUeT+OSy1MY Cs//KhuO6e4UR0zQYd8/lumPHstxE05/uwfdE7gQXs0Mi8osuAW1Exzjn1DzHtTZdPch Iysf27AkjgVkITo5fevCEMLzsVPRkTqFesJRvfu6djoJZvLS2Sm4wPpBovzcrixzxcwn wNAA== X-Gm-Message-State: AGi0PuafDh4pf7eCSmeuGMblJJYAlCO93TX3MHDgjRqsS2n6TAZ5Vr1H GeI3StccIT3B3nTI9hzLDJbvn45Nk9nDzjvl1D0= X-Received: by 2002:a25:3d41:: with SMTP id k62mr13561452yba.460.1585920999643; Fri, 03 Apr 2020 06:36:39 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Harini Katakam Date: Fri, 3 Apr 2020 19:06:28 +0530 Message-ID: Subject: Re: [RFC PATCH 0/3] net: macb: Wake-on-Lan magic packet fixes To: Nicolas Ferre Cc: linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, Claudiu Beznea , Harini Katakam , linux-kernel@vger.kernel.org, "David S. Miller" , Alexandre Belloni , Rafal Ozieblo , sergio.prado@e-labworks.com, antoine.tenart@bootlin.com, Florian Fainelli , linux@armlinux.org.uk, Andrew Lunn , Michal Simek Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Nicolas, On Fri, Apr 3, 2020 at 6:45 PM wrote: > > From: Nicolas Ferre > > Hi, > Here are some of my early patches in order to fix WoL magic-packet on the > current macb driver. > Addition of this feature to GEM types of IPs is yet to come. I would like to > have your feedback on these little patches first so that I can continue > investigating the addition of GEM WoL magic-packet. > > Harini, I know that you have patches for GEM in order to integrate WoL ARP > mode [1]. I'll try to integrate some of your work but would need that this feature > is better integrated in current code. For instance, the choice of "magic > packet" or "ARP" should be done by ethtool options and DT properties. For > matching with mainline users, MACB and GEM code must co-exist. Agree. I'll try to test this series and get back to you next week. > The use of dumb buffers for RX seems also fairly platform specific and we would > need to think more about it. I know that the IP versions from r1p10 have a mechanism to disable DMA queues (bit 0 of the queue pointer register) which is cleaner. But for earlier IP versions, I remember discussing with Cadence and there is no way to keep RX enabled for WOL with RX DMA disabled. I'm afraid that means there should be a bare minimum memory region with a dummy descriptor if you do not want to process the packets. That memory should also be accessible while the rest of the system is powered down. Please let me know if you think of any other solution. Regards, Harini