Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp115214lqb; Tue, 28 May 2024 10:14:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU4q2Imy6JuWDUYToegiMEWdyX7rlWdOLhnvHPd9SXbVYoB7kdRSSLWWQVO8uQo6u0aVJvoH/HWAao4FcFkmZpxUzN9B56kH05tJe2gDA== X-Google-Smtp-Source: AGHT+IF0xqOdulkBs9Gd34xDykY7W5pF8/DXpUO0kwAbjDeFFlqnR0wdzMfp8j3S4qJUA/U2s9CM X-Received: by 2002:a17:903:8c3:b0:1e4:c8b3:dbaf with SMTP id d9443c01a7336-1f448c24e3emr129999525ad.33.1716916493208; Tue, 28 May 2024 10:14:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716916493; cv=pass; d=google.com; s=arc-20160816; b=uslQ0WdD9Kk90yh7uTCmTHFxLOknXUwQMg7RwegpRZ8N4/69dqNoRTzIxpeGSdAuCj IEx8Ur2qZ6HngrdNvK2GoQeN7t9lz43fDNLl6mUeE6qsCEVeagoAgjs76d1LDyNqiSGV wuQBwWiZ079q4k7kdBi/RF/WYtSl5FJYXDMEsRR4HARuH9yewSdv6QFmAYa1UoY9MP9u e3DiusQ9DCQMjEnEAR+DtWRXxOYBWk+JR18BLipRlCZ+pIuxzunJdEnqusj9c17iS1vS BO3XIhwaX0jKyZJlbWFi2FvygYc9H4iK57Z4XtTvQFmc2Q2Lj12niRp6xvJVdTfeMChy ej+g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7FDUfe0dHzawpl7vTRYr+qivadc2YiSsZf7UFcvig8E=; fh=+PDfre4Q6rLv/soSIiD+2Ld9P4e/jHZ7xVpXXwlNqjE=; b=b6d26b/0DwWD+ToZexdqLmFKVGK6I3cfpakd/xfZZGU6JGoAm7N8/i+jimPKob3w3o j/s4fGnh5LQNsBQb2+Wzvap9mJqi3qBBe7EI5Zuck9pBVK5iHTngg7Ao/ewgaIOnpMDV 7+TzeRTALk78imTGrjeNGNQWwYgdvMVTn8jWK8pAdRobnS27zoavcs4NG835Gazq79HA 7o8FzyjxsCDDNOsB2ZjGaFiF0OtZuJoTKrE1EQOFi8+rJVI1+0XF14E/7eqUs5iS2vr3 9Ih5wEpOO4PA5YUQbkJJBS4psP9iS8M8+QkZgeoGMw1JWGQKK+jOy+ht94YjLNGAwBvF xUPA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DQXZGMAO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-192798-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192798-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1f467950c8dsi64458925ad.623.2024.05.28.10.14.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 10:14:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192798-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DQXZGMAO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-192798-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192798-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A0DE7286ABA for ; Tue, 28 May 2024 17:14:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E5304174EC3; Tue, 28 May 2024 17:14:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DQXZGMAO" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1912117332E; Tue, 28 May 2024 17:14:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716916486; cv=none; b=Zna42g9Z3AdY51pjmTH5bGJ6pgjPcKmQlXyksEPCMxAP70PXonrv0UHkQRgswufWIopDJs1YSFlhseqC6i+feq//arn9qNxitXbUZRZcFsQCbsKLkAXdKbBgmyJFRK7Pgjodz/KDXMvI8doDF5Qs6lG93U53PC0cE9c7EBxP3OA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716916486; c=relaxed/simple; bh=qyrjilBChXcbabeuPYMmcl4KCvAVqkL8gOwikW3ih3U=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KQJTkmvAOGMKwckfa8xxDL3ZSXh/tGJm5F6xfyJXhW1yq34fHZyG6SSUgO4qrsqAuUseE1e3HMV9U/hSvt9FAOQDYs0OwYeowhi4ySpdd9gVHmBLY5tJfcVOy889EN4lykTRD9BUlHCH55Tbyo0tA7L5Hw+oCJodPL9+AY5j/TI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DQXZGMAO; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6879C32789; Tue, 28 May 2024 17:14:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716916486; bh=qyrjilBChXcbabeuPYMmcl4KCvAVqkL8gOwikW3ih3U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DQXZGMAOWpmruXCqCzgdqN+FgfpL0xIelwQi6ettbFGm47F9kLaHUFcm2wZTi0TV7 R0XKnoXQIaCboVzE7ohGePcLfD01H8kZMOnEK/fkNwTolKh0ENqoilPPD/F6Aj2XkL 7sd94QFlMPmltjCQ/1DKassUe8slfYBJ5PtssVIyUihRErPaj6gNFIqqRFdDnn5alz C4pAk+h74bqzVOwxNh8CrrFLcfeGHCQyf5wmEAmODSgjWmG4LOQsVxSiHL4EfA2vrz sBeWkfmY+T9P2vbCxywziaDrQM4+HbyBuMyOq+SeuM9zRZFz7cjbs/dKKvfHzOP8gL YUwu3XQQVtzbA== Date: Tue, 28 May 2024 12:14:44 -0500 From: "Rob Herring (Arm)" To: Marc Zyngier Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Saravana Kannan , Anup Patel Subject: Re: [PATCH] of: property: Fix fw_devlink handling of interrupt-map Message-ID: <171691641513.1016774.9157485411952411160.robh@kernel.org> References: <20240528164132.2451685-1-maz@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240528164132.2451685-1-maz@kernel.org> On Tue, 28 May 2024 17:41:32 +0100, Marc Zyngier wrote: > Commit d976c6f4b32c ("of: property: Add fw_devlink support for > interrupt-map property") tried to do what it says on the tin, > but failed on a couple of points: > > - it confuses bytes and cells. Not a huge deal, except when it > comes to pointer arithmetic > > - it doesn't really handle anything but interrupt-maps that have > their parent #address-cells set to 0 > > The combinations of the two leads to some serious fun on my M1 > box, with plenty of WARN-ON() firing all over the shop, and > amusing values being generated for interrupt specifiers. > > Address both issues so that I can boot my machines again. > > Fixes: d976c6f4b32c ("of: property: Add fw_devlink support for interrupt-map property") > Signed-off-by: Marc Zyngier > Cc: Anup Patel > Cc: Saravana Kannan > Cc: Rob Herring (Arm) > --- > drivers/of/property.c | 16 ++++++++++++++-- > 1 file changed, 14 insertions(+), 2 deletions(-) > Applied, thanks!