Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3722749pxv; Tue, 13 Jul 2021 02:07:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxu450K+kpbWAFge6UnoXP38J/WfdPsLZP7LHJ6CnfaFq3yG73O78L4rRz/Ldz2lRp0NxdV X-Received: by 2002:a05:6402:501:: with SMTP id m1mr4424591edv.163.1626167253622; Tue, 13 Jul 2021 02:07:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626167253; cv=none; d=google.com; s=arc-20160816; b=l9nxa6R595qpEsUuYU1IAxsBXdTnAQt4dwl8f3kfbVxzuS3nM02wqR/5J1YbaYnAaV 1d6Yfns555XRNxjqX6/K9Uc9Recr/p6l8VgdS/SMEjQ0YUwzWlB+gvPSNWQw/D7weJc7 fdfBIVCRVmaSGNJvBkRZE+EXqiB8IgwN29HwzWCKsegwm7WKEaioY/Sh9V5IGw2V0J+w RskWKtwgOGB1f/MoweMn/GuZh6UYIhPvSA9OtbULsSKYdmovxbPcI8N755Qa+b4E+5Tx j7XIhnlxyFRN8KCCut8m+CmqR7G971mMkSWQiMJ9HsqySEoBVb16SbuLx/p4n7HFbIrs k7OA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=0WOJOt7FoNNdbU6eZCXmOzp8mABgTTjOaj0L45g8wKs=; b=X/v6nOPgLxSRaCcleZnXJgfG+CwVdU1ZaVNBKbX2IzIZ1XsUME4VU9HymlT1yxBJtW 5gPFyeCvwLaHQPhEKkkmAq310vOJe8X21pxi77nvsn5sNYd5+eq+4q1yCOhfnRa1Mi/f TYuoM3WdOSB7OfoVyHS7+HpA5ZACKC1lBfF89u8uXVEuiwulXMUg9RKVoZrbCu9HyNvJ NkbkGUIGn7WSyAxnPyG/RZknG+Dofja25ZaK8Ruu5koOZ/1ANkqzYEZsNDSloN9j8K4W yONo3vzyeH+4+lEo1s1YVRgyMTARUGg16ZbEHmMyE/+L6xTl5GC/81NrJWCp2mjKYeub 2XxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TNf+xPCL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp16si23373954ejc.554.2021.07.13.02.07.09; Tue, 13 Jul 2021 02:07:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TNf+xPCL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234854AbhGMJIT (ORCPT + 99 others); Tue, 13 Jul 2021 05:08:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234845AbhGMJIS (ORCPT ); Tue, 13 Jul 2021 05:08:18 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 011D5C0613DD for ; Tue, 13 Jul 2021 02:05:28 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id l4-20020a05600c4f04b0290220f8455631so1803009wmq.1 for ; Tue, 13 Jul 2021 02:05:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=0WOJOt7FoNNdbU6eZCXmOzp8mABgTTjOaj0L45g8wKs=; b=TNf+xPCLerhLd+lHMLt14shq/V3BBfLbOjPiLDmplEfX1pe3QZEIsAD+ICoBCAkjA9 7dO75sEE1PaiefPkfmdAIIMnQo4m3LvMBcZvVH45caWT5vrl7d87183oDxOvgXmvgCS6 VbuF2vTH6Zgu5UGaRGj1vr9umdPhozjOvUFxscWX8Zb7roJ4Laj/czHZmfU4TDgQxbRk Cq90HSXs5zma5fO6NyCaMfYwiwrevZlblE5lpFF4OJY8PgomO4dINejCXIhLvQMMZxGt JZxhtWNjrV6G5zHQoj0+UBwmTVvFd+iaoYTmvshc96LmTH1HIuPQ6DdCcxc+uGN/GcDG Up6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=0WOJOt7FoNNdbU6eZCXmOzp8mABgTTjOaj0L45g8wKs=; b=MC1Eq4UJXSaCTEBdQWeUswecrvIJvkYeyde0ZoDjPIvBd6lJ/2LxKn6dPtxfJ7DrNk y93TLAHjhhdvFuy65bOnC98+nSk2M0agYa5I9O6k3FUPbTx1smzKhZmoHesCjvN7kmt0 vqPRJF/O8d1y8fpAudO6Lvju1Gt+oDQnkVXcCXXt85jl57+e4Aku2LFxxPxp32sktXg/ DtbIySURNOoItEdiNHuqC9r4n/0JaTTbwQovPVNwHRpP7SQBfhEO4PxEbyylnLapYAj5 qlRqmYAozyJ5FlcFg9JlB8mQZQ93ql3b0dH4zETSGVGU5PwUViShV6iN7+d8DH/oFTIs x+kA== X-Gm-Message-State: AOAM531QFCOxIG/Rqv2THydm9Djwu7WRKX5FYe+w7rw54nP5B9Him+l6 cush0y0XwzZAlUKnvoXZTasYPw== X-Received: by 2002:a1c:2182:: with SMTP id h124mr3852357wmh.44.1626167126538; Tue, 13 Jul 2021 02:05:26 -0700 (PDT) Received: from google.com ([109.180.115.218]) by smtp.gmail.com with ESMTPSA id v9sm4774176wml.36.2021.07.13.02.05.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jul 2021 02:05:25 -0700 (PDT) Date: Tue, 13 Jul 2021 10:05:23 +0100 From: Lee Jones To: Kevin Hilman Cc: Marc Zyngier , Neil Armstrong , Jerome Brunet , linux-amlogic@lists.infradead.org, linux-arm-kernel , open list Subject: Re: [PATCH 1/2] irqchip: irq-meson-gpio: make it possible to build as a module Message-ID: References: <20201020072532.949137-1-narmstrong@baylibre.com> <20201020072532.949137-2-narmstrong@baylibre.com> <7hsga8kb8z.fsf@baylibre.com> <87r1hwwier.wl-maz@kernel.org> <7h7diwgjup.fsf@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <7h7diwgjup.fsf@baylibre.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 14 Jun 2021, Kevin Hilman wrote: > Marc Zyngier writes: > > > On Fri, 21 May 2021 10:47:48 +0100, > > Lee Jones wrote: > >> > >> [1 ] > >> On Tue, 20 Oct 2020 at 19:23, Kevin Hilman wrote: > >> > >> > Neil Armstrong writes: > >> > > >> > > In order to reduce the kernel Image size on multi-platform distributions, > >> > > make it possible to build the Amlogic GPIO IRQ controller as a module > >> > > by switching it to a platform driver. > >> > > > >> > > Signed-off-by: Neil Armstrong > >> > > >> > Reviewed-by: Kevin Hilman > >> > Tested-by: Kevin Hilman > >> > > >> > Tested as a module on meson-sm1-khadas-vim3l where the wired networking > >> > uses GPIO IRQs. > >> > > >> > >> Good morning Neil, Kevin, > >> > >> What happened to this set in the end? I still don't see it in Mainline. > > > > Last time I tried this patch, it broke my test setup in non-obvious > > ways. Has someone checked that the issue I reported back then has been > > resolved now that fw_devlink is more usable? > > OK, after much anticipation (and much delay due to me forgetting about > this), I just gave this series a spin again on top of v5.13-rc6, and it > seems to work fine with `fw_devlink=on` > > I started with your config[1] and accepting all the defaults of any new > configs. IOW, I ran: yes '' | make oldconfig after copying your config > to .config. > > With that it seems to be working fine for me. > > Right after boot (and before network probes) I see module loaded, but no > users yet in /proc/interrupts: > > / # uname -a > Linux buildroot 5.13.0-rc6-00002-g679c8e852942 #5 SMP PREEMPT Mon Jun 14 15:08:40 PDT 2021 aarch64 GNU/Linux > / # lsmod |grep gpio > irq_meson_gpio 20480 0 > leds_gpio 16384 0 > / # cat /proc/interrupts > CPU0 CPU1 CPU2 CPU3 > 9: 0 0 0 0 GICv2 25 Level vgic > 11: 0 0 0 0 GICv2 30 Level kvm guest ptimer > 12: 0 0 0 0 GICv2 27 Level kvm guest vtimer > 13: 1416 916 534 1421 GICv2 26 Level arch_timer > 15: 5 0 0 0 GICv2 89 Edge dw_hdmi_top_irq, ff600000.hdmi-tx > 22: 38 0 0 0 GICv2 225 Edge ttyAML0 > 23: 20 0 0 0 GICv2 227 Edge ff805000.i2c > 25: 2 0 0 0 GICv2 232 Edge ff809000.adc > 28: 322 0 0 0 GICv2 35 Edge meson > 31: 0 0 0 0 GICv2 222 Edge ffe05000.sd > 32: 787 0 0 0 GICv2 223 Edge ffe07000.mmc > 34: 0 0 0 0 GICv2 194 Level panfrost-job > 35: 0 0 0 0 GICv2 193 Level panfrost-mmu > 36: 3 0 0 0 GICv2 192 Level panfrost-gpu > 39: 0 0 0 0 GICv2 63 Level ff400000.usb, ff400000.usb > 40: 32 0 0 0 GICv2 62 Level xhci-hcd:usb1 > IPI0: 425 544 664 925 Rescheduling interrupts > IPI1: 86 166 269 136 Function call interrupts > IPI2: 0 0 0 0 CPU stop interrupts > IPI3: 0 0 0 0 CPU stop (for crash dump) interrupts > IPI4: 0 0 0 0 Timer broadcast interrupts > IPI5: 0 0 0 0 IRQ work interrupts > IPI6: 0 0 0 0 CPU wake-up interrupts > Err: 0 > > So then I init the network interface and PHY works, DHCP works etc. > > / # udhcpc > udhcpc: started, v1.31.1 > [ 102.250449] meson8b-dwmac ff3f0000.ethernet eth0: PHY [0.0:00] driver [RTL8211F Gigabit Ethernet] (irq=37) > [ 102.256413] meson8b-dwmac ff3f0000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0 > [ 102.269433] meson8b-dwmac ff3f0000.ethernet eth0: No Safety Features support found > [ 102.271357] meson8b-dwmac ff3f0000.ethernet eth0: PTP not supported by HW > [ 102.278493] meson8b-dwmac ff3f0000.ethernet eth0: configuring for phy/rgmii link mode > udhcpc: sending discover > [ 104.743301] meson8b-dwmac ff3f0000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx > [ 104.746470] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready > udhcpc: sending discover > udhcpc: sending select for 192.168.0.122 > udhcpc: lease of 192.168.0.122 obtained, lease time 600 > deleting routers > adding dns 192.168.0.254 > adding dns 192.168.0.254 > / # cat /proc/interrupts > CPU0 CPU1 CPU2 CPU3 > 9: 0 0 0 0 GICv2 25 Level vgic > 11: 0 0 0 0 GICv2 30 Level kvm guest ptimer > 12: 0 0 0 0 GICv2 27 Level kvm guest vtimer > 13: 1575 1018 604 1588 GICv2 26 Level arch_timer > 14: 8 0 0 0 GICv2 40 Level eth0 > 15: 5 0 0 0 GICv2 89 Edge dw_hdmi_top_irq, ff600000.hdmi-tx > 22: 132 0 0 0 GICv2 225 Edge ttyAML0 > 23: 20 0 0 0 GICv2 227 Edge ff805000.i2c > 25: 2 0 0 0 GICv2 232 Edge ff809000.adc > 28: 322 0 0 0 GICv2 35 Edge meson > 31: 0 0 0 0 GICv2 222 Edge ffe05000.sd > 32: 787 0 0 0 GICv2 223 Edge ffe07000.mmc > 34: 0 0 0 0 GICv2 194 Level panfrost-job > 35: 0 0 0 0 GICv2 193 Level panfrost-mmu > 36: 3 0 0 0 GICv2 192 Level panfrost-gpu > 37: 2 0 0 0 meson-gpio-irqchip 26 Level 0.0:00 > 39: 0 0 0 0 GICv2 63 Level ff400000.usb, ff400000.usb > 40: 32 0 0 0 GICv2 62 Level xhci-hcd:usb1 > IPI0: 476 567 720 956 Rescheduling interrupts > IPI1: 93 166 270 137 Function call interrupts > IPI2: 0 0 0 0 CPU stop interrupts > IPI3: 0 0 0 0 CPU stop (for crash dump) interrupts > IPI4: 0 0 0 0 Timer broadcast interrupts > IPI5: 0 0 0 0 IRQ work interrupts > IPI6: 0 0 0 0 CPU wake-up interrupts > Err: 0 > / # > > Kevin > > [1] http://www.loen.fr/tmp/Config.full-arm64 Thanks Kevin. Now that -rc1 is out, hopefully Marc can assign some time to this. -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog