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=-12.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable 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 D89E5C433E2 for ; Mon, 13 Jul 2020 10:07:18 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A3F9320758 for ; Mon, 13 Jul 2020 10:07:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="nV2VV8QN"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="Pp2WdjeA" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A3F9320758 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=K25OTQeEf7fKyTGyous6yw8XsVdDepZdZRFb2SNSrYg=; b=nV2VV8QN0/jLlCrK5x3Ej8GLtN RwfCxpE/CrcFvFR54V3YbSEUIry25UR7jMuL5mALUa8MDY+ksKRT9w/FUXLcEfqOFOgsUW1KW9pWk +Qx6dkYPUQZsmKUqH0SQJwAJM8I+PRNWcebbFKGs7Fs7FkCA9SS25DxxhqFXdh8sMlZyHo2tji9Z1 vBkYxo30jEL1AfSVXySOINNO2BD9CCm90XJKjE3Ip4EGiJcWPcW3eLCcOwZXMHLOmd0bV360IcZOn 4mzgxzPpFxCFcuJgC87Ophm7W3lFLzkhLGpLh8QWvHBjcferrCeQhE2AZaM/Tqs2SDsD150DTdz3L WxKNzlbw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1juvLS-0004sq-K3; Mon, 13 Jul 2020 10:05:58 +0000 Received: from esa4.microchip.iphmx.com ([68.232.154.123]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1juvLL-0004pI-U5 for linux-arm-kernel@lists.infradead.org; Mon, 13 Jul 2020 10:05:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1594634751; x=1626170751; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=iEPXg4m/PV2bFSjHkkjCWZpki+k4rKh/UyV/yzZSQ0M=; b=Pp2WdjeA1nbSBMecg7qVsB/mo18jGVxYdp6lsIhd+OiAbzQNhfrwdJJA 0acQC82VHv0Rd2Jd4qU5BK1Cgt6zChG/TCfziA2O30AbaxvJSSNdxXPA5 quzmJNorTlA1NmD99Vj8DLundg1eGRE89q9iBE2TAj4rysN0Nw/GCRm6H WY/P44Y5OyyFU3xTN8mSYZHY8ALVZtj/fGhh/WmVxPAEVFqMxbDnJqGRk QU0wQHvCwN8nzC+TtFIXqC+tGfWhLKLgYkK0SMTCXo7zOn4xtvS6H8fPl 7MaPTWylR+Q1iD29Ym0PPR+2ZHwEZjut/X5+2FXF70nXc1Q32/RNxvhJK g==; IronPort-SDR: meGEHEUjaT0fMMXyYcZqeGoQpnTvH3DTaH1aev/07RNploieJ9h5IeW0beRH6EslITv1iyRox5 B9lI9X/I7pXsUmozhMp91rOkhmkObZ8bWzT3EjC+szJAzGkxc1J69/x3bQWy5/kXfSFe7+sBKm 5VKZNBlbk7pFzSs/WzPAEtVRd2FL5W7syFD+bh2uG7OUDXsqOpwVMNZhPV2r06+4yUp8r9GUXF O/84ZMtUJgJh2mWt2zIHCxxMgA+w0hzBCkPIj2iWDz97VIaqTkW9ebCUuP0MSy9BGPA/F+GJgm 0fg= X-IronPort-AV: E=Sophos;i="5.75,347,1589266800"; d="scan'208";a="79679482" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 13 Jul 2020 03:05:48 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Mon, 13 Jul 2020 03:05:48 -0700 Received: from ness.mchp-main.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.1979.3 via Frontend Transport; Mon, 13 Jul 2020 03:05:14 -0700 From: To: , , , Claudiu Beznea , , Subject: [PATCH v6 0/2] net: macb: Wake-on-Lan magic packet GEM and MACB handling Date: Mon, 13 Jul 2020 12:05:24 +0200 Message-ID: X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200713_060552_112727_AC61B39E X-CRM114-Status: GOOD ( 10.61 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: antoine.tenart@bootlin.com, Alexandre Belloni , linux-kernel@vger.kernel.org, "David S. Miller" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Nicolas Ferre Hi, Here is the second part of support for WoL magic-packet on the current macb driver. This one is addressing the bulk of the feature and is based on current net-next/master. MACB and GEM code must co-exist and as they don't share exactly the same register layout, I had to specialize a bit the suspend/resume paths and plug a specific IRQ handler in order to avoid overloading the "normal" IRQ hot path. These changes were tested on both sam9x60 which embeds a MACB+FIFO controller and sama5d2 which has a GEM+packet buffer type of controller. Best regards, Nicolas Changes in v6: - rebase on net-next/master now that the "fixes" patches of the series are merged in both net and net-next. - GEM addition and MACB update to finish the support of WoL magic-packet on the two revisions of the controller. These 2 patches were last posted in v3 series. History of previous changes already added to git commit message here: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f9f41e3db40ee8d61b427d4d88c7365d968052a9 Nicolas Ferre (2): net: macb: WoL support for GEM type of Ethernet controller net: macb: Add WoL interrupt support for MACB type of Ethernet controller drivers/net/ethernet/cadence/macb.h | 3 + drivers/net/ethernet/cadence/macb_main.c | 188 +++++++++++++++++++---- 2 files changed, 164 insertions(+), 27 deletions(-) -- 2.27.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel 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=-11.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable 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 94329C433E4 for ; Mon, 13 Jul 2020 10:05:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6ECAB207F9 for ; Mon, 13 Jul 2020 10:05:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="plSd9J0b" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729623AbgGMKFx (ORCPT ); Mon, 13 Jul 2020 06:05:53 -0400 Received: from esa4.microchip.iphmx.com ([68.232.154.123]:27478 "EHLO esa4.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729143AbgGMKFt (ORCPT ); Mon, 13 Jul 2020 06:05:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1594634749; x=1626170749; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=iEPXg4m/PV2bFSjHkkjCWZpki+k4rKh/UyV/yzZSQ0M=; b=plSd9J0bmW18eTQhfQR9VlIqV5bR2Fl9Q1kPYz+65he0PykjFFlWLjci u2xGCaEibyiYPfXbFeHDOQ3AOckaXkQ3POlfimZKmiiwtZC+axlJrSp3W 199P6OLiIv5ynG9JvNwoaPW2FuApHMVk6niPBXMT81h76+25WrfpemPZi 7bHWXvKnwOtxh3Zi3EdU5xhBq6x0SsP3VyWQZpNxJww0FQdotITdPPKw3 SuEycNvccYk3tszcMbQ7xL3lBCpVLEqoApIlZy62hx+nn2YQk80wlzDnR D5vdAnGaEoBHjGUjgE0zRxGt7J6xmFjOIXrQz8Jqy+2/qMcrVNZ8Y3XXx g==; IronPort-SDR: meGEHEUjaT0fMMXyYcZqeGoQpnTvH3DTaH1aev/07RNploieJ9h5IeW0beRH6EslITv1iyRox5 B9lI9X/I7pXsUmozhMp91rOkhmkObZ8bWzT3EjC+szJAzGkxc1J69/x3bQWy5/kXfSFe7+sBKm 5VKZNBlbk7pFzSs/WzPAEtVRd2FL5W7syFD+bh2uG7OUDXsqOpwVMNZhPV2r06+4yUp8r9GUXF O/84ZMtUJgJh2mWt2zIHCxxMgA+w0hzBCkPIj2iWDz97VIaqTkW9ebCUuP0MSy9BGPA/F+GJgm 0fg= X-IronPort-AV: E=Sophos;i="5.75,347,1589266800"; d="scan'208";a="79679482" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 13 Jul 2020 03:05:48 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Mon, 13 Jul 2020 03:05:48 -0700 Received: from ness.mchp-main.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.1979.3 via Frontend Transport; Mon, 13 Jul 2020 03:05:14 -0700 From: To: , , , Claudiu Beznea , , CC: , "David S. Miller" , Alexandre Belloni , , Nicolas Ferre Subject: [PATCH v6 0/2] net: macb: Wake-on-Lan magic packet GEM and MACB handling Date: Mon, 13 Jul 2020 12:05:24 +0200 Message-ID: X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nicolas Ferre Hi, Here is the second part of support for WoL magic-packet on the current macb driver. This one is addressing the bulk of the feature and is based on current net-next/master. MACB and GEM code must co-exist and as they don't share exactly the same register layout, I had to specialize a bit the suspend/resume paths and plug a specific IRQ handler in order to avoid overloading the "normal" IRQ hot path. These changes were tested on both sam9x60 which embeds a MACB+FIFO controller and sama5d2 which has a GEM+packet buffer type of controller. Best regards, Nicolas Changes in v6: - rebase on net-next/master now that the "fixes" patches of the series are merged in both net and net-next. - GEM addition and MACB update to finish the support of WoL magic-packet on the two revisions of the controller. These 2 patches were last posted in v3 series. History of previous changes already added to git commit message here: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f9f41e3db40ee8d61b427d4d88c7365d968052a9 Nicolas Ferre (2): net: macb: WoL support for GEM type of Ethernet controller net: macb: Add WoL interrupt support for MACB type of Ethernet controller drivers/net/ethernet/cadence/macb.h | 3 + drivers/net/ethernet/cadence/macb_main.c | 188 +++++++++++++++++++---- 2 files changed, 164 insertions(+), 27 deletions(-) -- 2.27.0