From patchwork Mon Dec 5 09:45:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 29622 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2155230wrr; Mon, 5 Dec 2022 01:54:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf685hvqjMp6rizYg7hu9JZIngZ5mYEX/4lxb4ZaBWkN1rUJu143cfnV2QsJMPoQ/+2qXZmz X-Received: by 2002:a63:fb04:0:b0:476:7faf:e0bf with SMTP id o4-20020a63fb04000000b004767fafe0bfmr55241932pgh.80.1670234092040; Mon, 05 Dec 2022 01:54:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670234092; cv=none; d=google.com; s=arc-20160816; b=OJ1FNQn7GC2OEBJXKDy85LUvLg6aswwqQpDi/KerssWm13gYBjt6YQEE3dcu1S9bXh ZiJSLHLaI6LG57Bbci+y05saDoyp7tgdCeTkPJVNvVlzBm50HBYiDp7KxhOvfMS2XLTQ UlmdAHxvAbqbWda2m/PaMe1rjt3N1WlApdebjZDK7jg4LNiqw228EG4k8lyYIsQSTRaL 30YI+LuMkqDFDxq1K2ovOOg6+ed794DZ5fjdOl0QCQMDGjOZveRNuC9cavwuWb2+J29F U8XNN4ltFaqaGy36Mxosdkk2yJYgBOUABnz3nnuXyB9hdz3SN8F7WSz6L93ZCcvM8GzQ 3mdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=QHp7Cjuk1gdYbjoNDqdCfJ9h/cYbx/WisHAW8bXL8Ns=; b=RM2+NnVVLNqMHar7z3a4SNV7XKpHfDkNUMkhxS0Wr/y4UsLOjSwOyhCqKEyC+Hu9Fg eHdlTFpc9RAfJgpw2eskH3nj5geMP+ue+fTHgUm5UMDzRv5AK3w6VhgTcN9IN0ueAlVY mWpFqsF6GNOqGwVlYtqj0KcgtV4rS/rZcvkeSpGwdOEOmx9Y9F3E/tS2kg55FLEmgt9a mlWslPJqnZTB0Go962YTqFU0m3rSA+UHBS6TEI2KmZ/DopofCapiY0xYRkmXu1cfBCdi Jj1WBHmGz0GVqeQMNVcDnKDhwIxV0amhKE5ZpPakezMUhmPCdAQYua/IubgdqfrlkPW/ hoXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bMM7gHLW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r24-20020a63e518000000b0045ff35cf428si13852851pgh.294.2022.12.05.01.54.38; Mon, 05 Dec 2022 01:54:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bMM7gHLW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231346AbiLEJqe (ORCPT + 99 others); Mon, 5 Dec 2022 04:46:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231366AbiLEJqb (ORCPT ); Mon, 5 Dec 2022 04:46:31 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1982319284; Mon, 5 Dec 2022 01:46:29 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6761760FFB; Mon, 5 Dec 2022 09:46:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6519C433C1; Mon, 5 Dec 2022 09:46:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670233588; bh=vlbWmQAQsqVoCP5/iGG9T+Mh7FPLIm+omDon8p2JA10=; h=From:To:Cc:Subject:Date:From; b=bMM7gHLW3WMCRoSscjKR3d5B7dFagYLse28B06cubnjjcjtgrJoAZ+mozdLgS7ydy y5ZCvY/WCTD6z2bVf0C1W9CFnw59bAxUF9kadLyEG+2HzQMm5/HYH7bd49MnBMdfKR 1tUBwdYYB96V8fKRqnLE7PL+41HSeabo+7seDSyYP7esxY81ZbM7zLbDny4pH5HZk+ y4KdxMaWjF2YIU0+lVh1Z5UVdSsnd8Fuh68iEMqfXaZyaga+vK/ZDp5V+38ankjxya +YoHo9+l/4aIqIJhEV6dNz+CPgjzQen0DRn7EjrZWkEWWpqeZOc7B23iJdH0Z7M/0F talFkUPKSoOlQ== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1p283U-0003MH-Im; Mon, 05 Dec 2022 10:46:33 +0100 From: Johan Hovold To: Lorenzo Pieralisi Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Bjorn Helgaas , Rob Herring , =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH] dt-bindings: PCI: qcom: Allow 'dma-coherent' property Date: Mon, 5 Dec 2022 10:45:30 +0100 Message-Id: <20221205094530.12883-1-johan+linaro@kernel.org> X-Mailer: git-send-email 2.37.4 MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751367383033829263?= X-GMAIL-MSGID: =?utf-8?q?1751367383033829263?= Devices on some PCIe buses may be cache coherent and must be marked as such in the devicetree to avoid data corruption. This is specifically needed on recent Qualcomm platforms like SC8280XP. Signed-off-by: Johan Hovold Acked-by: Rob Herring --- Lorenzo, the corresponding SC8280XP DT fix is heading for 6.2 so it would be nice if this one could be merged for 6.2-rc1 (or -rc2) as well to avoid the corresponding DT validation warnings. Johan Documentation/devicetree/bindings/pci/qcom,pcie.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml index 2f851c804bb0..a5859bb3dc28 100644 --- a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml +++ b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml @@ -62,6 +62,8 @@ properties: minItems: 3 maxItems: 13 + dma-coherent: true + interconnects: maxItems: 2