Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1759645pxb; Fri, 5 Feb 2021 00:14:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJzR0NGfLds50aMGaGcu7VwjFfhTb1vE+s5vtk4cczMz4Z9FaqLiHwMQ6wcg222TvAw9Tti+ X-Received: by 2002:a05:6402:4253:: with SMTP id g19mr2399089edb.343.1612512849696; Fri, 05 Feb 2021 00:14:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612512849; cv=none; d=google.com; s=arc-20160816; b=JBdFn1+uvNau0XpXIoT86iwytffkeqA6Zq71GZbZhDvadGWDdPTMZh6fTWTPGoNTgI qL0Hq2XgP+sD1hEJQowCfcnjtpnru+nFfz7p3hU0k92LssottcSGUFbOjnL8hAQHwy6g xKWSyD70TQVkfFzLrVeC/gxJwXs4khANdRZvDwRtkVwRBx8xGl6cBzpykH4Rilkqv0kO Ep8JVb/JZviVoU0LezxZvhs1Pm7xZKRdDh1hTrMAmLwAFR2R8JOXmo8sh2ouB536URaO QjAg7GpKPylqkspxCpfmcDDHHmYdGdS9OuZPuyJI1Ud3vH6CHyxvJrQ0OdUpLKF+hZzM CSlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=i1sbeZYAOwBKv6wE1Ckk+wE5naRJCnZ4LL+AW39A3/w=; b=hyMoA8yAOxyGOzfPOCtoVoqTWD3h8oLpxrhwLpG2jx/2oJ7QDwOZ2d5UpY9Jzksx2V 2Uoi1wJ1QoYTVCUjIxCrqon6MjOtgZ+b5jmJ5oPrPrkk7UJKdwsX9+3dkPXsS2BBMTku N8wgeJrDvAqFazgV/vm3DrTjXslK1Xeizq9v+iqQkvWuKOze2GNv88G5sdzBOOkmk3BY OMH4V4A9x4tELLDDvRJIvOIUZfLK4am96+N0q9JvQGaktzyRfqxIgjb8vcatc26wdm/E 7XY7Hs8bH/wwddKqxuYFi8WxheypRmK237h/CZwU0bbvHZuB2LydaK5G0cL4F8dLX602 3gGQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z88si4859383ede.280.2021.02.05.00.13.45; Fri, 05 Feb 2021 00:14:09 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231587AbhBEINC (ORCPT + 99 others); Fri, 5 Feb 2021 03:13:02 -0500 Received: from mail-oo1-f49.google.com ([209.85.161.49]:43226 "EHLO mail-oo1-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231574AbhBEIHH (ORCPT ); Fri, 5 Feb 2021 03:07:07 -0500 Received: by mail-oo1-f49.google.com with SMTP id x19so1411722ooj.10; Fri, 05 Feb 2021 00:06:51 -0800 (PST) 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=i1sbeZYAOwBKv6wE1Ckk+wE5naRJCnZ4LL+AW39A3/w=; b=MEMDy3CefHLQJtqvpW2KmzN64CMLgGkkPyiiFndtyX7fZPZkXJD3SpwvnjvAubFsez j+BlWlGN4OS87n9DJGOmoPA7u3ajKPCJvYSJMsD6xNW3QMuH2XlF8RDEGdJHlaEL9CEJ CUiA+YDlTO/Y4l+Czc34vGiEWPZ13vqHCuzbANYKMSEhbmfP3g3Yr5z2aaN9AiVrZM+L rtTRw1QZtSDUqJf+rbF3NfhMERYgF6RQTnbnYcE2WCmDesA8F/Vl9fFicXk7yTCSh59v MaoZG/LODDdEVd+M+rO9gAeN+K7T8/Vg2RAgrXjJLkuEaISTaLuTGWJPMRA/pbnvO5s5 sfOA== X-Gm-Message-State: AOAM533aKSRYcxT8dZukZoK9DmeRDMFP+EpyHU1pTahCkdr9+WXu/aSC xkdTfCrHcjQri4s/hOGiYtFU7ke2p5GbGCmgy8M= X-Received: by 2002:a4a:96b3:: with SMTP id s48mr2624067ooi.11.1612512386119; Fri, 05 Feb 2021 00:06:26 -0800 (PST) MIME-Version: 1.0 References: <20210121225712.1118239-1-saravanak@google.com> <20210121225712.1118239-3-saravanak@google.com> <9692dfc9-4c63-71c9-b52b-d0feba466695@samsung.com> <6b606a5d-0435-1e9d-ac61-a8dacf051067@samsung.com> In-Reply-To: <6b606a5d-0435-1e9d-ac61-a8dacf051067@samsung.com> From: Geert Uytterhoeven Date: Fri, 5 Feb 2021 09:06:14 +0100 Message-ID: Subject: Re: [PATCH v2 2/2] of: property: Add fw_devlink support for interrupts To: Marek Szyprowski Cc: Saravana Kannan , Rob Herring , Frank Rowand , Greg Kroah-Hartman , linux-tegra , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML , Linus Walleij , Bartosz Golaszewski , Jon Hunter , Marc Zyngier , Kevin Hilman , Android Kernel Team , Rob Herring , Thierry Reding Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marek, On Fri, Feb 5, 2021 at 8:38 AM Marek Szyprowski wrote: > On 04.02.2021 22:31, Saravana Kannan wrote: > > On Thu, Feb 4, 2021 at 3:52 AM Marek Szyprowski > > wrote: > >> On 21.01.2021 23:57, Saravana Kannan wrote: > >>> This allows fw_devlink to create device links between consumers of an > >>> interrupt and the supplier of the interrupt. > >>> > >>> Cc: Marc Zyngier > >>> Cc: Kevin Hilman > >>> Cc: Greg Kroah-Hartman > >>> Reviewed-by: Rob Herring > >>> Reviewed-by: Thierry Reding > >>> Reviewed-by: Linus Walleij > >>> Signed-off-by: Saravana Kannan > >> This patch landed some time ago in linux-next as commit 4104ca776ba3 > >> ("of: property: Add fw_devlink support for interrupts"). It breaks MMC > >> host controller operation on ARM Juno R1 board (the mmci@50000 device > >> defined in arch/arm64/boot/dts/arm/juno-motherboard.dtsi). I didn't > > I grepped around and it looks like the final board file is this or > > whatever includes it? > > arch/arm64/boot/dts/arm/juno-base.dtsi > The final board file is arch/arm64/boot/dts/arm/juno-r1.dts > > This patch just finds the interrupt-parent and then tries to use that > > as a supplier if "interrupts" property is listed. But the only > > interrupt parent I can see is: > > gic: interrupt-controller@2c010000 { > > compatible = "arm,gic-400", "arm,cortex-a15-gic"; > > > > And the driver uses IRQCHIP_DECLARE() and hence should be pretty much > > a NOP since those suppliers are never devices and are ignored. > > $ git grep "arm,gic-400" -- drivers/ > > drivers/irqchip/irq-gic.c:IRQCHIP_DECLARE(gic_400, "arm,gic-400", gic_of_init); > > > > This doesn't make any sense. Am I looking at the right files? Am I > > missing something? > > Okay, I've added displaying a list of deferred devices when mounting > rootfs fails and got following items: > > Deferred devices: > 18000000.ethernet platform: probe deferral - supplier > bus@8000000:motherboard-bus not ready > 1c050000.mmci amba: probe deferral - supplier > bus@8000000:motherboard-bus not ready > 1c1d0000.gpio amba: probe deferral - supplier > bus@8000000:motherboard-bus not ready > 2b600000.iommu platform: probe deferral - wait for supplier > scpi-power-domains > 7ff50000.hdlcd platform: probe deferral - wait for supplier scpi-clk > 7ff60000.hdlcd platform: probe deferral - wait for supplier scpi-clk > 1c060000.kmi amba: probe deferral - supplier > bus@8000000:motherboard-bus not ready > 1c070000.kmi amba: probe deferral - supplier > bus@8000000:motherboard-bus not ready > 1c170000.rtc amba: probe deferral - supplier > bus@8000000:motherboard-bus not ready > 1c0f0000.wdt amba: probe deferral - supplier > bus@8000000:motherboard-bus not ready > gpio-keys > Kernel panic - not syncing: VFS: Unable to mount root fs on > unknown-block(0,0) > > I don't see the 'bus@8000000:motherboard-bus' on the deferred devices > list, so it looks that device core added a link to something that is not > a platform device... Lemme guess: bus@8000000 is a simple bus, but it has an interrupt-map, and the devlink code doesn't follow the mapping? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds