Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3193251rwe; Mon, 29 Aug 2022 07:23:11 -0700 (PDT) X-Google-Smtp-Source: AA6agR40AdmdeJgIHiOgcUux/m3YDtY0L7t6hm+moToFU1GLv4ZcdhMxubiM8lvccjLHEN/2DveO X-Received: by 2002:a17:906:f88f:b0:731:463d:4b15 with SMTP id lg15-20020a170906f88f00b00731463d4b15mr13667758ejb.299.1661782991108; Mon, 29 Aug 2022 07:23:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661782991; cv=none; d=google.com; s=arc-20160816; b=awG0Mmv7WlUqoOfOxUib3/Zg6bHl8RezEEkea9Nl2Hh0Svgr1ZCF7Pyp48u++X8vJE IaMbEdqftkunyXo/m+hp8wQ1CehWFfWAQFJCAUK0oG32ehw/nWRMS8nwHyznCASjCD9E qQbnld7yfVwLuRQKTr2BQ3/YocUkLGbE6W2JyxKdRVqTRWjy6WKuisANpYPUBtpgU9Zk vkt6xcSiy0p82+hXc6f7epcy2PnCPikgzuQPgf2d/WTG/3n0tovxUeEDqsGeJcSO07AJ 5RoKMheeIEUn4Em3r9Y/4A1JIIVExUBnhMufcaaDhC1+LAcYbQ6lPUhMaYK/wn8i/EuS 29iw== 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 :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=5wpayB1lnaPj7/n3wK8pMtSfgarMRuAsk+PETC9WPK0=; b=hF6beIIz14MMlurBSydOu3j0XPTtXqTV0epImO2DuInL5MpEkBdbaTtjiYuEOm4m0V CL0ebDgFAmVDXF7UdR2F1aIJ1hltlXhjHWr1Gea2ZB+rYIaH0/3fd5O7l5tqBCE9VzY1 FRc5OnQ/SMOZs6ifgo8Vnko1gddwZpV37m5xmtiZ8GRtimG9HiWrmK3yucBKbW+riOuv olKWFdEPZBbAD9Xu9G4XvlhXWCNYKQtR6wRcp58KLQQt2xwgM2scXxgzIJPpLf/tDOiK Mh58HXv8MuLLoDgAa+lRPUKVVWM9ADN+xiNR+nA/yN7UVKcIFHqdV2/nPiFCMpJ8N4xT 5J+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=1oA2RIqX; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r4-20020a508d84000000b004466a9af14esi5640289edh.461.2022.08.29.07.22.45; Mon, 29 Aug 2022 07:23:11 -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=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=1oA2RIqX; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230098AbiH2Ngn (ORCPT + 99 others); Mon, 29 Aug 2022 09:36:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229983AbiH2Ng3 (ORCPT ); Mon, 29 Aug 2022 09:36:29 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E1EF6D9DE for ; Mon, 29 Aug 2022 06:36:27 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id r204-20020a1c44d5000000b003a84b160addso100750wma.2 for ; Mon, 29 Aug 2022 06:36:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date; bh=5wpayB1lnaPj7/n3wK8pMtSfgarMRuAsk+PETC9WPK0=; b=1oA2RIqXljlku7LpRGyd44Edx5qjba3TQf0Pzps65/nABAPw10GcN3vR8271f/yoVp ZTEqKrfiC2kcHZNG3vPAvfIisARcwZZ9lsk2z6ra6uO1hFokLdkaet6Ftmublf2t7wiI wviY2ik7gSpLKt53nL5/Y38Sqmy998v4yEJSIRXw+c2bP9Dd1XvL/d4BbqMQvjVlQ6Do 7UYgXxpl1wKmfcNLtV08ScYKc1NcfnrFjy1p75LyeWixlf/SnMcM6d6faWaWQCJY7N1S APJCdNhmVdS90jz5hoNIOJrEDISBeJLxxaqG4+EnKRCX4DbO9ZSOEbEKgepgH2jBxY1g 7WTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date; bh=5wpayB1lnaPj7/n3wK8pMtSfgarMRuAsk+PETC9WPK0=; b=I6YzsmTLWakwFsru1bsKfVf5WTp2no/9tLayvky1NAYknq4r7QETp6GcEOCDjBZsE6 G38IGSZ3VlRX6yM7CaunyCxlPGRs4jPIZ/AFRZxeR7hPUm03IeGGnNBlNVjvcF7HSaDf d73GPDEeQCAgror41HuMGhxCbCzcN2/zZHVRcj2fi453Rca0ZXetTd8ukNA5XBWxIu62 M/71aKO7BBRzFq79eNh34JVboikVnCDSkyRVy6H0X1foPWwd/0lPUplemUmxQ5GhUo4T ENKS0SrKWBLDv9gxE17vGaYM8aL7+B4Hkz6tFeQhUoo5+9XGNYiHVmVaVdXjHp+evVM5 OI2g== X-Gm-Message-State: ACgBeo2RrX2b3zNAiTBCtSOn9EM8pqoWL3MbJNEVme5PsNJy7SmRRD4W 8aUr6FJApo7BXrug2Jnjgw4YYw== X-Received: by 2002:a05:600c:a02:b0:39d:bdf8:a4f4 with SMTP id z2-20020a05600c0a0200b0039dbdf8a4f4mr6847055wmp.201.1661780185608; Mon, 29 Aug 2022 06:36:25 -0700 (PDT) Received: from ?IPV6:2a01:e0a:982:cbb0:6124:6b74:2847:d37b? ([2a01:e0a:982:cbb0:6124:6b74:2847:d37b]) by smtp.gmail.com with ESMTPSA id q125-20020a1c4383000000b003a5f783abb8sm8990765wma.30.2022.08.29.06.36.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 29 Aug 2022 06:36:25 -0700 (PDT) Message-ID: Date: Mon, 29 Aug 2022 15:36:24 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH] drm/bridge: sii902x: add support for DRM_BRIDGE_ATTACH_NO_CONNECTOR Content-Language: en-US To: Linus Walleij Cc: Dmitry Osipenko , andrzej.hajda@intel.com, robert.foss@linaro.org, Rob Herring , jernej.skrabec@gmail.com, jonas@kwiboo.se, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Laurent.pinchart@ideasonboard.com, Sudeep Holla References: <20220113144305.1074389-1-narmstrong@baylibre.com> <25976b46-21b4-6e3f-0182-85dd4ca2b654@gmail.com> <13bd6440-9a61-d444-518c-f4e8cba0b825@baylibre.com> <5a1df5ce-a497-760b-8e2c-130a0e659c0b@gmail.com> <3725619d-72c5-5c9d-513b-80bbc727dd07@baylibre.com> From: Neil Armstrong Organization: Baylibre In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 25/08/2022 14:48, Linus Walleij wrote: > On Wed, Aug 17, 2022 at 3:31 PM Neil Armstrong wrote: >> On 15/08/2022 02:15, Dmitry Osipenko wrote: >>> 08.08.2022 12:51, Neil Armstrong пишет: >>>> On 08/08/2022 11:15, Neil Armstrong wrote: > >>>>>> This patch broke ARM/QEMU vexpress display because of_drm_find_bridge() >>>>>> always fail with -EPROBE_DEFER. Reverting this patch returns display >>>>>> back. Please fix or revert, thanks in advance. >>>>> >>>>> Can you share a QEMU cmdline to reproduce ? >>>> >>>> Actually the vexpress DT has multiple input ports instead of a single >>>> input port at @0 >>>> and an output port at @1 like documented in the bindings: >>>> >>>> vexpress-v2m.dtsi#L303-L307: >>>> ports { >>>> #address-cells = <1>; >>>> #size-cells = <0>; >>>> >>>> /* >>>> * Both the core tile and the motherboard routes their output >>>> * pads to this transmitter. The motherboard system controller >>>> * can select one of them as input using a mux register in >>>> * "arm,vexpress-muxfpga". The Vexpress with the CA9 core tile is >>>> * the only platform with this specific set-up. >>>> */ >>>> port@0 { >>>> reg = <0>; >>>> dvi_bridge_in_ct: endpoint { >>>> remote-endpoint = <&clcd_pads_ct>; >>>> }; >>>> }; >>>> port@1 { >>>> reg = <1>; >>>> dvi_bridge_in_mb: endpoint { >>>> remote-endpoint = <&clcd_pads_mb>; >>>> }; >>>> }; >>>> }; >>>> >>>> bindings: >>>> ports: >>>> $ref: /schemas/graph.yaml#/properties/ports >>>> >>>> properties: >>>> port@0: >>>> $ref: /schemas/graph.yaml#/properties/port >>>> description: Parallel RGB input port >>>> >>>> port@1: >>>> $ref: /schemas/graph.yaml#/properties/port >>>> description: HDMI output port >>>> >>>> port@3: >>>> $ref: /schemas/graph.yaml#/properties/port >>>> description: Sound input port >>>> >>>> The patch is conform to the bindings, the DT was working but is actually >>>> not valid. >>> >>> I haven't looked closely at how to fix this properly, but if we can fix >>> it using of_machine_is_compatible("arm,vexpress") workaround in the >>> driver, then it will be good enough at least as a temporal fix, IMO. >> >> If other maintainers are ok with that, it can be temporary fix until the DT gets fixed. > > That's fine with me, will you send a patch? Who, me ? > > I don't know how you expect the DT to get "fixed" though. > > The hardware looks like this, it's maybe not the most elegant > electronics design but it exists, so... I wrote this DT with two > inputs, see commit f1fe12c8bf332, the code handling this > awkward mux is part of the DRM driver, see > drivers/gpu/drm/pl111/pl111_versatile.c function > pl111_vexpress_clcd_init() for an idea of how it works. The proper fix would be the other way around, adding a mux bridge before the sii902x returning the next bridge or nothing to the right controller. > > Yours, > Linus Walleij Neil