Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2862905pxb; Fri, 12 Feb 2021 03:26:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJwp4ptXejUYVV3Bir7hGAcg0RCG0GNzD3B4Q1MmIuww0tnDwv7c90H6qJzuGdMRPoZghn+C X-Received: by 2002:a17:906:2b59:: with SMTP id b25mr2544042ejg.401.1613129166095; Fri, 12 Feb 2021 03:26:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613129166; cv=none; d=google.com; s=arc-20160816; b=qGfPMJszJqK3MZPIsZbEFBlJyhUwyVLSn+9aDrZbtaKabjwLFeqmJ0O/5jy5vLcIuJ 3kLjHQHg7nq34VZG2x9l4aTQeCNVdmpxeHxB1CgZCY5Qb11W3zJmMSq3xoK4lzYsiFF2 9LHgAR2L7xEeY68yfL8K57RDUMkewKTTGby70QWQ9mSWwM6xKBRzsJIY4s2+86sNwzto CIcnr3C8+f73+hsUYQFmJOUjQBJobw14xg+Nx3oKmsZBUlr/ZyuBDZqsNLkdye5LpJ6b ZCt9wGe3SmihB57ehGBv99FQtRt32qCa0q6sq6UfFvbvZBnctPx+aWOIJDkzgHDkySfO bqoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :date:cc:to:from:subject:message-id; bh=RaefG7zdFzNl+f/TiiSIZTcndBbj71DkKXHUmKr/uTA=; b=osxapw4uUYkVScfzHrd2kCiDw3z2fVejYsNBXzsj/PNmLiUvAIyFnUtPumyxLe+lmg KuBAK7gNjW/lEC3OAR7vH1ja4bf48ZY7zXzc/XF8WDJaDVNh7oym3ndM5vK+OZj+EIgx y/DCRq2Gf2MdLPGdgTVNZeSu/ldx/mMZxExETABfFnn+QHMEzpHG5HNso2HnZXBv3tTB RLYxv1d9Cyn0G5nSFt1W4OFiCWXnjG1HYzWd1/zSDOSHw7OkaAcxiZ9ycto/3dECOEyA R7OpovrJbPxVyeeoS+07IJU4CxeTTrlKkMIowWMPOXwQr5FRtsYVYrQ3h5OpjK9EHSrj JW+Q== 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 g20si5747400edb.494.2021.02.12.03.25.42; Fri, 12 Feb 2021 03:26:06 -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 S231184AbhBLLW0 (ORCPT + 99 others); Fri, 12 Feb 2021 06:22:26 -0500 Received: from mx2.suse.de ([195.135.220.15]:35538 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230259AbhBLLVI (ORCPT ); Fri, 12 Feb 2021 06:21:08 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 6DE31AC69; Fri, 12 Feb 2021 11:20:17 +0000 (UTC) Message-ID: <97eef5ad872b08b174dfd4ed903508371b1baaa5.camel@suse.de> Subject: Re: [PATCH v2 14/15] ARM: dts: bcm2711: Add the BSC interrupt controller From: Nicolas Saenz Julienne To: Florian Fainelli , Dave Stevenson , Marc Zyngier Cc: Maxime Ripard , Thomas Gleixner , Eric Anholt , Maarten Lankhorst , Thomas Zimmermann , Daniel Vetter , David Airlie , linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Hans Verkuil , LKML , DRI Development , bcm-kernel-feedback-list@broadcom.com, Mauro Carvalho Chehab , Linux Media Mailing List Date: Fri, 12 Feb 2021 12:20:14 +0100 In-Reply-To: References: <20210111142309.193441-1-maxime@cerno.tech> <20210111142309.193441-15-maxime@cerno.tech> <20210210144043.s4plyc7ekwnnu7k4@gilmour> <9d868bf76072fee7838b6f2ff73a575c@kernel.org> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-c2ZiMS/8MK1k9wh+A4JP" User-Agent: Evolution 3.38.3 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-c2ZiMS/8MK1k9wh+A4JP Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2021-02-10 at 10:49 -0800, Florian Fainelli wrote: > On 2/10/21 7:49 AM, Dave Stevenson wrote: > > Hi Marc. > >=20 > > On Wed, 10 Feb 2021 at 15:30, Marc Zyngier wrote: > > >=20 > > > Hi Maxime, > > >=20 > > > On 2021-02-10 14:40, Maxime Ripard wrote: > > > > Hi Dave, > > > >=20 > > > > On Tue, Feb 09, 2021 at 09:49:05AM +0000, Dave Stevenson wrote: > > > > > On Mon, 11 Jan 2021 at 14:23, Maxime Ripard w= rote: > > > > > >=20 > > > > > > The BSC controllers used for the HDMI DDC have an interrupt con= troller > > > > > > shared between both instances. Let's add it to avoid polling. > > > > >=20 > > > > > This seems to have unintended side effects. > > > > > GIC interrupt 117 is shared between the standard I2C controllers > > > > > (i2c-bcm2835) and the l2-intc block handling the HDMI I2C interru= pts. > > > > >=20 > > > > > Whilst i2c-bcm2835 requests the interrupt with IRQF_SHARED, that > > > > > doesn't appear to be an option for l2-intc registering as an inte= rrupt > > > > > controller. i2c-bcm2835 therefore loses out and fails to register= for > > > > > the interrupt. > > > > >=20 > > > > > Is there an equivalent flag that an interrupt controller can add = to > > > > > say that the parent interrupt is shared? Is that even supported? > > > >=20 > > > > Indeed, it looks like setting an equivalent to IRQF_SHARED would be= the > > > > solution, but I couldn't find anything that would allow us to in th= e > > > > irqchip code. > > > >=20 > > > > Marc, Thomas, is it something that is allowed? > > >=20 > > > No, not really. That's because the chained handler is actually an > > > interrupt flow, and not a normal handler. IRQF_SHARED acts at the wro= ng > > > level for that. > > >=20 > > > I can see two possibilities: > > >=20 > > > - the l2-intc gets turned into a normal handler, and does the demux > > > =C2=A0=C2=A0=C2=A0from there. Horrible stuff. > > >=20 > > > - the i2c controller gets parented to the l2c-int as a fake interrupt= , > > > =C2=A0=C2=A0=C2=A0and gets called from there. Horrible stuff. > > >=20 > > > Pick your poison... :-/ > >=20 > > Thanks for the info. > >=20 > > Option 3 - remove l2-intc and drop back to polling the i2c-brcmstb > > blocks (which the driver supports anyway). > > HDMI I2C generally isn't heavily used once displays are connected, so > > I'd be OK with that. > >=20 > > (We can keep the l2-intc that handles CEC and HPD as that is on a > > unique GIC interrupt). >=20 > Agreed, Maxime or Nicolas do you want me to send a revert of this patch? Reverting seems the safe move, but I'll defer to whatever Maxime says. Regards, Nicolas --=-c2ZiMS/8MK1k9wh+A4JP Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEErOkkGDHCg2EbPcGjlfZmHno8x/4FAmAmZG4ACgkQlfZmHno8 x/5YOgf/R/l8SyblxkstWXvc6zfCjfB89hKUbIctbdEK1RHkvwIvanO4qScRUL4d EaUHq3za69fXEHf6Uplk+nANGMncTVG3nDlpD60vjf1/v4hixsn+7j8bf1eFiKF3 i71eFfzGgEjh2v5k+qjzfDdjYbs5y2QuT7u1Dfrr+RmRt/vX2MB/8yuByXHl5+iV 54WT4Qo9BRUIWeAIPBg9ewTT9+d/Fg+NcxjPxe5daoYJcj6VLRcr61MG2QK7+t/d LoxHQGBqkWdrBE930lYCGMeA/NtMExYdiUEyf0jHhDMkONb+lvQ8F3Hy5aK6bqcK SfTZI6wEcCZkB2q+GrVmTXf5EE6BXA== =TacG -----END PGP SIGNATURE----- --=-c2ZiMS/8MK1k9wh+A4JP--