Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3380081ybb; Mon, 6 Apr 2020 07:53:40 -0700 (PDT) X-Google-Smtp-Source: APiQypJdeq74YMFvig6h8yFz1intDvdO8/MG88x2+PxEVO860Z9b9kuwDij5WDnLITq6uv5YcP/Y X-Received: by 2002:aca:6056:: with SMTP id u83mr13465600oib.95.1586184820330; Mon, 06 Apr 2020 07:53:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586184820; cv=none; d=google.com; s=arc-20160816; b=cVT+N2IUM+K0Si28Zzzz6TOAfATxlKtzMKwdhCv4jfCxuxTJdALk/QJOZLVGclLzHP hyvjAnAiSYGEFemuWcuqAn/g7oq4jFyU6tpJGD5kFvcoonZOPXRGBFfwyaKtZoZx24GC 8JtAb0WxZWSDVhpOf/TxDVwEUlN4jyV3ep5GqWXgh8nFVJxnksuKoV6pDPDwE3l1iNvC YWxYAfMrqwIcKaElrzfpP5+Uf/sV0aKrd+5TG8+JwG+NSK0sW5a9wMfl7x+qX3y9Uqgv O5GhDbWdioFJaMFtIAVkOiyzXsuGn4CHTANtq2g9aGtRULgnDS96lNvKaxkyJXvl78jk 4tmg== 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=t4wjTXsPVYDAF0Rh7pFMNhwtFuty/N2rOqgxDEfZ/Sw=; b=CzTyvy1oBXnL792iMEu+gJsX4mEeQRdcCKHc4xtkhh6dl0g2j0vJqTywY1I0SpKSJO +/Zntq+2fcAgzvsiagyiJFR6bn0dJ/FpNVytuFMal37lykkt7iDn6q4IhdxYpzwaN8+V 0u/919Uhblc6fjyDdyGBJd6vCPoPql+6YtRYtvRDkbGFAsIQYvubn0FVe4GjRBkAg+ai sa7wir0v9tKWWu0x10naWfNXvcXGJpkPrlWJhEN8SCpzGf+nRKpOM+4gX8lSXHvdYR7v azmHSpAfEdeI9VceHf50zBxqZwS+vihxMk4ZNt/Wv1jzt4xymbsfdwVZBQLAeEStVbwL gX6g== 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 o203si7226239oig.1.2020.04.06.07.53.15; Mon, 06 Apr 2020 07:53:40 -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 S1728787AbgDFOwl (ORCPT + 99 others); Mon, 6 Apr 2020 10:52:41 -0400 Received: from mail-yb1-f194.google.com ([209.85.219.194]:39332 "EHLO mail-yb1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728734AbgDFOwl (ORCPT ); Mon, 6 Apr 2020 10:52:41 -0400 Received: by mail-yb1-f194.google.com with SMTP id h205so8915576ybg.6; Mon, 06 Apr 2020 07:52: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=t4wjTXsPVYDAF0Rh7pFMNhwtFuty/N2rOqgxDEfZ/Sw=; b=SBhq0q/ZK03IfVa4a6D2mf9RXC2ytcswUYBcuVaz3kuZsif/61gpy1LRRI+zsU6++O fWVrwWYFL0SbAiVsex7wd79xGP9NzMufXbwc9DWj074Pt4NsigrVSrH3gj0tjk8TOJi7 iwB6q8g14hF1e0DFdkMKFoS4FIbzSbZFCL0Irn09eu6+beuSgYYkGbzi2GeB0mv7Cybe bYt0oMbKrQOaPokPGCjKGImNAW7m7SWarLy9Snr3MnsldszuNH74KBXIqUbfzLLn4GuP RoFF4GUSMv/5pwjTzaOe8thYd6YgfJ5DK97R8qy7HI+bcnv1r8Rzd9uBfrtMcMbKyX2u gjmg== X-Gm-Message-State: AGi0Pub8refGSTXDCBZCcYc49hPN6tCowtQ5SoSgQBmGAGW8gmkEyYhl /upL4vTUb7s91IdkzepOKKxsEzJpQ71Nuzjm+QQ= X-Received: by 2002:a25:aa29:: with SMTP id s38mr34746167ybi.325.1586184759706; Mon, 06 Apr 2020 07:52:39 -0700 (PDT) MIME-Version: 1.0 References: <9e2ab6cd-526d-f1b5-4bd0-4a8f80d9dd8f@microchip.com> In-Reply-To: <9e2ab6cd-526d-f1b5-4bd0-4a8f80d9dd8f@microchip.com> From: Harini Katakam Date: Mon, 6 Apr 2020 20:22: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 , 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 Mon, Apr 6, 2020 at 7:56 PM Nicolas Ferre wrote: > > Hi Harini, > > On 03/04/2020 at 15:36, Harini Katakam wrote: > > Hi Nicolas, > > > > On Fri, Apr 3, 2020 at 6:45 PM wrote: > >> > >> From: Nicolas Ferre > > > > 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, > > Which IP name are you referring to? GEM, GEM-GXL? What is the value of > register 0xFC then? GEM_GXL > > > 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 > > Very interesting information Harini, thanks a lot for having shared it. > > My GEM IP has 0xFC at value: 0x00020203. But I don't see a way to keep > DMA queues disabled by using the famous bit that you mention above. Yeah, it is not possible in this revision. This is part of the GEM_GXL r1p10 or higher I think. I can't be sure of all the possible variations of the revision reg because the scheme changed at some point but it looks like this: 0x00070100 bits 27:16 (module_ID), bits16:0 (module_revision); they could increase. Regards, Harini