Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1576299rdb; Mon, 19 Feb 2024 23:41:39 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUgVJ7QYqVleMPZGoJqtvbUPrpw5oSVcLiaH7SL96brYHsKNhfvbY1T+tjgRLlG+8NlPMMCtfA8myGZVeJCjbcgwOakLjOR2uDYaji0sw== X-Google-Smtp-Source: AGHT+IFWG7tcr0fEP/utoJVgwHYeaqh0UN3VIZQ6yNuvKbeErE5j7DJHy91YsDcW8xyufFAWWVbp X-Received: by 2002:a05:6214:2022:b0:68f:5fe8:9ea2 with SMTP id 2-20020a056214202200b0068f5fe89ea2mr4520952qvf.42.1708414899405; Mon, 19 Feb 2024 23:41:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708414899; cv=pass; d=google.com; s=arc-20160816; b=qTNtFAk2C9UwE+hQNsmxbb58C43VjAi3xeqSCRZqc8jXAxufXdH5FtrDOCV4K4op3S cYjRMkw+XRm8PmJ+lEIn4UFx6cvvAoZijIcKoTHCk4hS/5sHdBdKLli0N2vZBZHVAepL 0av0db2RET601XYFcd2IB+Mpc/P0JJfRXLCHa71T+syrRHRWmdXzFz2lcolb2eQvO0JL kFsFzMk3Gmgsvo3JLO0bAKN4nN3h1X2cJZJRfWh/J3rTnl5IBDr8vQrD7FhGhpcpq4g6 w4Gbf/NSMypifrBVX1Eu+neP3XzG182qJ3DccW3ZulHIE9em0b68FtAPtowTZhFXh+Nj 3edQ== 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=3ZurXDMWXsXxg8i5OyGsE833KHfLP/QhkbyDAqHDfC4=; fh=Or9owNrDYMzqYvKUK5wP1jeu3QqWpl28yvTKVLMU9Kk=; b=B4PDh8ZwnakEr4oEBz76G+89DuAGO1uQLIDbTr7VoM4jNT3031M4QtYnUPiEr1pR7P rPj2xesodYOOx8q4t6Ql+oc1tTepGrSE8BLfsTs64wTeJsrFfl92XkgOZfuJtH+vfjzN EBIcVLwTZ3lxUUvumAiM8ec0xORPDp8pe8yirpKLs6dnJAjW6pLJvcSSHMZuI02pjGiS kwh8mK0EOEoetdPHEXxs/Y6af1oWtNga3HXpUVgWSct1udZ2KkqATJk8Kd/+ZI935YHo xeVfIJrQK/XCSsqhxC8WJaWoJLAG+P7T8bzDG6tb0GkfYKBsROmFNxNUIT7NmnpXbhLw Dylw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JY6Toh2B; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-72487-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72487-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id jf5-20020a0562142a4500b0068f724fa6aasi3690464qvb.545.2024.02.19.23.41.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 23:41:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72487-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JY6Toh2B; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-72487-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72487-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 17D791C224F5 for ; Tue, 20 Feb 2024 07:41:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7414D5A7AE; Tue, 20 Feb 2024 07:41:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JY6Toh2B" 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 907DE3D69; Tue, 20 Feb 2024 07:41:27 +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=1708414887; cv=none; b=GWWopRcUQ2NL5qXo0PmaSGAcKmSw3JYFE5OKmGQMkbA07JYdfXCwepNF0hcXawkiW2qJ/a6SX+R1ciqXgBvdmfAB4zKScK7Ws3YgfB/f5Hg+TlyOfyedJqXowyQXBg7kvwRY+hQGN7eAT+Au9DMWqD8+yMYBmsKpfVQPGLDFjWE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708414887; c=relaxed/simple; bh=J+HORaFB9BevhmkmzQueEU/imUrqvh0T/whWu92LpyQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pY1Mm5o8Hj8sRU0MFp7KVrz1FGtSY25wSATmpN9kPALc1WLJ708GIzpi7u+/4tl2BjYrZH/pqS0+xMFBgjJ3yL7XnHqtlYRTnakmhm2TKrP23GeRdTM9N4MK6lxlsudG7W+ejnc2Am67FlbtOnjVPyhDcFwhsTEfr0X5oOeIFr0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JY6Toh2B; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14AFCC433F1; Tue, 20 Feb 2024 07:41:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708414887; bh=J+HORaFB9BevhmkmzQueEU/imUrqvh0T/whWu92LpyQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JY6Toh2BDGiFy9xwulIfY5B+iEbVfcXmqWyqe7oWtbzY3v+xzOZXGq0iK1CxtaOBv spxKlF7t3ceCJTFb1AREMYL7HmtcjbTmoRS4AmCMTtAV7OcQOahZuYr9WlngZAc/CO 3Q47hDZdH+upXWEmzmw/NvDczUwSdMjHE7TDFxDcTrmZOraP8O+AxcvxA/FBvQQzeZ xcVmpoCEP83w2bGGijXyXcsoOs/hGCs/M8APdaf8b0T2bbWMMCRPtvVPFQq+koQeQE VXkD5kfl/d8OjC+o2IFGEQFIeFIxUu0ruJYG5aNbtzjf/EERMaiHHFIPCP5f0xzA76 K7A+KE27Ib9ug== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rcKkn-000000002Ca-2uih; Tue, 20 Feb 2024 08:41:25 +0100 Date: Tue, 20 Feb 2024 08:41:25 +0100 From: Johan Hovold To: Manivannan Sadhasivam Cc: Krzysztof Kozlowski , Johan Hovold , Bjorn Andersson , Bjorn Helgaas , Konrad Dybcio , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 02/10] dt-bindings: PCI: qcom: Do not require 'msi-map-mask' Message-ID: References: <20240212165043.26961-1-johan+linaro@kernel.org> <20240212165043.26961-3-johan+linaro@kernel.org> <59bd6e54-0d5d-4e1a-818a-475a96c223ff@linaro.org> <20240216165406.GD39963@thinkpad> 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: <20240216165406.GD39963@thinkpad> On Fri, Feb 16, 2024 at 10:24:06PM +0530, Manivannan Sadhasivam wrote: > On Wed, Feb 14, 2024 at 02:38:57PM +0100, Krzysztof Kozlowski wrote: > > On 14/02/2024 13:54, Johan Hovold wrote: > > > On Wed, Feb 14, 2024 at 01:01:20PM +0100, Krzysztof Kozlowski wrote: > > >> On 12/02/2024 17:50, Johan Hovold wrote: > > >>> Whether the 'msi-map-mask' property is needed or not depends on how the > > >>> MSI interrupts are mapped and it should therefore not be described as > > >>> required. > > >> > > >> I could imagine that on all devices the interrupts are mapped in a way > > >> you need to provide msi-map-mask. IOW, can there be a Qualcomm platform > > >> without msi-map-mask? > > > > > > I don't have access to the documentation so I'll leave that for you guys > > > to determine. I do note that the downstream DT does not use it and that > > > we have a new devicetree in linux-next which also does not have it: > > > > > > https://lore.kernel.org/r/20240125-topic-sm8650-upstream-pcie-its-v1-1-cb506deeb43e@linaro.org > > > > > > But at least the latter looks like an omission that should be fixed. > > > > Hm, either that or the mask for sm8450 was not needed as well. Anyway, > > thanks for explanation, appreciated! > > msi-map-mask is definitely needed as it would allow all the devices under the > same bus to reuse the MSI identifier. Currently, excluding this property will > not cause any issue since there is a single device under each bus. But we cannot > assume that is going to be the case on all boards. Are you saying that there is never a use case for an identity mapping? Just on Qualcomm hardware or in general? It looks like we have a fairly large number of mainline devicetrees that do use an identity mapping here (i.e. do not specify 'msi-map-mask') and the binding document also has an explicit example of this. Documentation/devicetree/bindings/pci/pci-msi.txt > I will submit a patch to fix SM8650. Johan