Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2680249rwd; Wed, 17 May 2023 12:55:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ57gV3d+UwB1y9vgYZRiCi0TcRQYyPrVvBgHHu4zdqG7E4EDfnTqeL1GqA0qgq2VeM0c+91 X-Received: by 2002:a05:6a20:3d10:b0:101:3fe5:8785 with SMTP id y16-20020a056a203d1000b001013fe58785mr37822394pzi.44.1684353334601; Wed, 17 May 2023 12:55:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684353334; cv=none; d=google.com; s=arc-20160816; b=l0AqWKtMEA5jdoeLPXJqo4s2WfOKN29G8rAW3Tftt8BmyEZFECIbdEORoi90aTQXpD DQrrhIPlJio755G8+k4Sm8oqgJCqGG96d1hnMVeyFPUnA1igzsbHAH+dy52ZVwnWA/C7 O7m/eKJ2rDi+gzgrm6BrIo1OM3ZfF4b6z9HE8vOiycjPwWWKKkx1sUTf7t7tupFij4OS Pu7xXoHpxG+wAh6Xk8CUO1EUoZ0dOB6NrVNO78KW6k8qMGhozDciLtKJvx+zQlNLzcm7 9g5kePlJI+/XO/GYanXf2Yfa1sRZU1nfHq+7NqX6LQvf1Xb2ipzFJQw/w2wvvANNTu3E AKSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=AE8+B3pWQ4l7QxfBqXUnPyiVc+aZlt+BtRcwXsFR3Kg=; b=fZ/CC7A85tziK4k8dG3j0Jn57aLFyvCFBhc60pxNmW//YEMCRhCNtYtmVSME6yWZgn D53Twl2SKv+iSRkQyWDOHfs42ofwzTQ/53mfrK1VARUK7JTvpWInF8L86kH4s1uQFF92 osUrvVkrnI7QWO6bh95LylBRZ30kjpVs6ILULLda8O1KOUW4prrH1jVIe3NUi9C7B18H qtalpcsBC3OMDXVJq8CWx3Rim6zhL5X0vZKBZd3h1yHcG2jXL/lpe7G4QCAy1UaT0V4e jxbzdp+pX0ZB6Ckx7viii2VXXbaqV+w2DHPTDSWYJLBSMjAITHdptMh3Co8g0X2o1DRy S8rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JeDzLUDQ; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s67-20020a637746000000b005303a12ee8dsi22029561pgc.293.2023.05.17.12.55.20; Wed, 17 May 2023 12:55:34 -0700 (PDT) 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=@linaro.org header.s=google header.b=JeDzLUDQ; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229641AbjEQTlw (ORCPT + 99 others); Wed, 17 May 2023 15:41:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229556AbjEQTlu (ORCPT ); Wed, 17 May 2023 15:41:50 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14B44197 for ; Wed, 17 May 2023 12:41:49 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-965a68abfd4so210160266b.2 for ; Wed, 17 May 2023 12:41:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684352507; x=1686944507; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=AE8+B3pWQ4l7QxfBqXUnPyiVc+aZlt+BtRcwXsFR3Kg=; b=JeDzLUDQ2pq/eW+97XnNWJdM/lObXBgEGxcH7lBWg6seb0FFwdy+Skry85v27s6EvM QkKH/tarHJPDjjQLK1puuvgut2LSyAGVlXvtgQk85PVSFy2ZrpUXtZCoQdoEG4NYgMJq ecYIECc3PBpmL8RasuQeCZ8hXX7hhxfC2bTTNXwk7kQw9Yp3FrTvUxxIvUe9j2IPmmj8 XYAnodyLH69Fi5r5Z0kVGXZz57/Xitgrslunok7K0u2BrSApjH7yzTPKUGDHH4SwwMj1 bnIg4tChp1M9aS3koD+8rutqnoTrCa3Cc+09L8PFzVd5FnecZA/i+KSehJoymjAUhr21 QwXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684352507; x=1686944507; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=AE8+B3pWQ4l7QxfBqXUnPyiVc+aZlt+BtRcwXsFR3Kg=; b=E5HdUSUC40w8t/kMPvs6oW0qfL7e+3pmN7+4OPtjV8T+2gFLK4vVF42u4g75PI17PG S+l44VZyoV4KXrs1pE4IWCR8D3oxf/UZqW25jR1eO7Dlgl/U5PNw0+y2mbdgcGlIeFig gvTb8L/bQEU7UoP7GdMaVsmGtVDAkHYi89QjJIzHGGrBTOjju+fsHRvMk4QR6Uqe8xut iXZCFGWOduMkDmn1Gu+TFojC/2swqPb+FMH05t0lTxjLu5K4h+LcEditp/L6uEmiyKP3 LWE+PPUvItmqcl2x8DFUZ27RXzPyvfhMZkBivZQuMreFNu9XKKtmlOO2EQt4B8Tkz+B1 ixvQ== X-Gm-Message-State: AC+VfDwGgyRBR3wLtMstWcBbXFpJ1/9F8cbo7mD1FbSe77cpKAwqnMQb 0/jMqc9e8oIia/ZLGSYk7sepcA== X-Received: by 2002:a17:907:8a04:b0:95f:de3c:6c98 with SMTP id sc4-20020a1709078a0400b0095fde3c6c98mr39648716ejc.58.1684352507571; Wed, 17 May 2023 12:41:47 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:d7a:e7cc:21b3:c435? ([2a02:810d:15c0:828:d7a:e7cc:21b3:c435]) by smtp.gmail.com with ESMTPSA id og16-20020a1709071dd000b0096637a19dcasm12671085ejc.4.2023.05.17.12.41.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 May 2023 12:41:47 -0700 (PDT) Message-ID: Date: Wed, 17 May 2023 21:41:45 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 7/7] dt-bindings: Add bidings for mtk,apu-drm Content-Language: en-US From: Krzysztof Kozlowski To: Alexandre Bailon , airlied@gmail.com, daniel@ffwll.ch, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, sumit.semwal@linaro.org, christian.koenig@amd.com, jstephan@baylibre.com, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org, khilman@baylibre.com, nbelin@baylibre.com, bero@baylibre.com References: <20230517145237.295461-1-abailon@baylibre.com> <20230517145237.295461-8-abailon@baylibre.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On 17/05/2023 21:38, Krzysztof Kozlowski wrote: > On 17/05/2023 16:52, Alexandre Bailon wrote: >> This adds the device tree bindings for the APU DRM driver. >> >> Signed-off-by: Alexandre Bailon >> Reviewed-by: Julien Stephan > > There are so many errors in this patch... that for sure it was not > tested. Reduced review, except what was already said: > >> --- >> .../devicetree/bindings/gpu/mtk,apu-drm.yaml | 38 +++++++++++++++++++ >> 1 file changed, 38 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/gpu/mtk,apu-drm.yaml >> >> diff --git a/Documentation/devicetree/bindings/gpu/mtk,apu-drm.yaml b/Documentation/devicetree/bindings/gpu/mtk,apu-drm.yaml >> new file mode 100644 >> index 000000000000..6f432d3ea478 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/gpu/mtk,apu-drm.yaml >> @@ -0,0 +1,38 @@ >> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/gpu/mediatek,apu-drm.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: AI Processor Unit DRM >> + >> +properties: >> + compatible: >> + const: mediatek,apu-drm > > drm is not hardware. Drop everywhere or explain the acronym. If you > explain it like Linux explains, then: drm is not hardware. > >> + >> + remoteproc: >> + maxItems: 2 >> + description: >> + Handle to remoteproc devices controlling the APU > > Missing type/ref. Does not look like generic property, so missing vendor > prefix. > >> + >> + iova: >> + maxItems: 1 >> + description: >> + Address and size of virtual memory that could used by the APU > > So it is a reg? > >> + >> +required: >> + - compatible >> + - remoteproc >> + - iova >> + >> +additionalProperties: false >> + >> +examples: >> + - | >> + apu@0 { > > Where is reg? @0 says you have it... > >> + compatible = "mediatek,apu-drm"; >> + remoteproc = <&vpu0>, <&vpu1>; >> + iova = <0 0x60000000 0 0x10000000>; > > Why would you store virtual address, not real, in DT? Let's say you have > some randomization like KASLR. How is it going to work? Drop, it is not > hardware property. Actually RANDOMIZE_BASE. KASLR randomizes the physical. Best regards, Krzysztof