Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp377266imn; Thu, 28 Jul 2022 03:38:09 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tSIr7zbuF7pFotH3zYNsEL360Wyb+WsAfl+CiORb85sP0arVsWL4mR5pA2nazH/6pL3V8h X-Received: by 2002:a17:902:6b07:b0:16b:f220:92fb with SMTP id o7-20020a1709026b0700b0016bf22092fbmr26823315plk.96.1659004689079; Thu, 28 Jul 2022 03:38:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659004689; cv=none; d=google.com; s=arc-20160816; b=JKhFQXepiWUZbBWHBgI/Ez7IShMiQAeKvhUZ7+pE98omxi6MQqK8/ghEkAgENNEfTt VitjBXgwdsPQfXgZ03U/GTRFayY9vSuq9dlxRFBukpQqQ3FehLhc85qOPzPHDubW5U5I xwV/tYF3Ivg/dVLVVblycVK+x92r3KgTxVBg/HE4crcIIV7QuHAvUfyy7n5ch3JvNv6r Oc4KRpLb1+7v6ydh75Ow12HbWDcQhK/l+bfWQkK8bxwyrNsvMkCOtRgynWzvN0MGiaUp Iiga0Y/X3F9TwYKeALfA9f/owPO31h4jFT+5NAAllB/oKNMFB/T2MhqRiL7ArZI5oZ0g HZpw== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=C2NORPL69rdS/U3sQy8SH5nhaMctHSblMz/j5TFc1qU=; b=GQvaCw0qGIRJq8KBswf6cl5hr1YRFsQKzWPA8E2U2qqDzxY4K/OOz3P+077X7XAy5e c7egMuteZmuocjfdNxLZ7GLZVaTNgee6t9URswFo2XgZOm/gHbPefUKzrdVP3SpTk6kp 4ZQUBr3IDlu09P9US2eabY93p9Ghe4VKChbHkSG88MyUgEbkhB4vSRwNWCoYKngI5aiD v1YcQNmGiTHBLw0I88nudzfhLYT/viPsXOnCGRcXGGrvqLM9kmSX/tYu6qPeuNINuRav kAnlorzCyztOGePapoqxeOUulLhLHhBy/l+ClUDhge4+sJrsQlIYJ8d/HzHeKsMjtUHM sUVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RVllnvZb; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q71-20020a632a4a000000b004199ede8011si617106pgq.846.2022.07.28.03.37.53; Thu, 28 Jul 2022 03:38:09 -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=@gmail.com header.s=20210112 header.b=RVllnvZb; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235668AbiG1KZq (ORCPT + 99 others); Thu, 28 Jul 2022 06:25:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233296AbiG1KZo (ORCPT ); Thu, 28 Jul 2022 06:25:44 -0400 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAC2148CBB; Thu, 28 Jul 2022 03:25:42 -0700 (PDT) Received: by mail-wr1-x432.google.com with SMTP id q18so1593780wrx.8; Thu, 28 Jul 2022 03:25:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=C2NORPL69rdS/U3sQy8SH5nhaMctHSblMz/j5TFc1qU=; b=RVllnvZbKqvxgjkF8jZ3dNEwDhUbJv2ZQCgSl+Dk70BceDMHGABft7XwtNRjqe8prt gWcQxWJXxkA+DJIkxNRltxYYmEaLp8IvvW5dKn+rhmxcZWjgKuOZQe6xzoCKkMw9fXjR Set/zPeq7GoMUlSO7A5LBiKq595meQNyo27pghVYBZ8uOqtAy4HSIT7BKU7uN61l2ttC 3FZmyltrUSiQQ7oZV9yix5geqjca2TUffOvlbeJ078rPR8/Xl8vIvAs7epY52X+1sGh9 e+lxzcbu4gXiSfzPDZ9XMlIzaJfGUCWJkOqQibKA+CvR4ciJvg+9OUdNn7lF5DzQazkC RFBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=C2NORPL69rdS/U3sQy8SH5nhaMctHSblMz/j5TFc1qU=; b=C/FxVJK5rKNGssa3qx7jjHcsJKh8Achzkdxf97VqBaWBoCeoFAc8p5JD6kcqInXhNf uYuaYNX3rjrLVsrqxSmy8qgyV3fSCdFIJWOg2OIJF/kDigKdXcPJjeixC7zMJVyXA9a2 Sy05SPIjA50oVM78RLGRu2WPoxy9ICP8ITirMCKq4VM0WVyKB9+qxksERs/VyKc+p6sO 4k+A5ow8zhGnWN0iEHT3qZrcHO2VRuUh1lJOOnFpioP2nVguPbvzM0peM+2erVZ7J34g wIWfjrOBBKijXxDbtFmJbr8BOPVOFqmPugYO75E2L6OnMeZWOcNFbzKGwLb1FzwGH/0p PM7Q== X-Gm-Message-State: AJIora+x8e/GREz+BvIYkR/TKnXTcnuj3Ue/mJJkoVi3o7IEM5UsXaZj kSqelVlHKvN2N1SqTzfxDxTZKkYWXk8= X-Received: by 2002:adf:fbc4:0:b0:21e:bd8d:be09 with SMTP id d4-20020adffbc4000000b0021ebd8dbe09mr6207738wrs.216.1659003941111; Thu, 28 Jul 2022 03:25:41 -0700 (PDT) Received: from [192.168.2.202] (pd9ea36f8.dip0.t-ipconnect.de. [217.234.54.248]) by smtp.gmail.com with ESMTPSA id f11-20020a05600c4e8b00b003a31673515bsm6038414wmq.7.2022.07.28.03.25.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Jul 2022 03:25:40 -0700 (PDT) Message-ID: Date: Thu, 28 Jul 2022 12:25:39 +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 4/4] dt-bindings: firmware: Add Qualcomm UEFI Secure Application client Content-Language: en-US To: Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Ard Biesheuvel Cc: Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Steev Klimaszewski , Shawn Guo , Sudeep Holla , Cristian Marussi , Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org, linux-efi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov , Vinod Koul References: <20220723224949.1089973-1-luzmaximilian@gmail.com> <20220723224949.1089973-5-luzmaximilian@gmail.com> <87c19c5a-d7f4-7183-1322-f62267e01b3b@gmail.com> <11e5c369-c0da-7756-b9e2-ac375dc78e9d@linaro.org> <2e522bcd-5d55-e87f-126c-514f5edaa560@gmail.com> <53a602e2-0590-6c6a-597b-fd55faa3a4ab@linaro.org> <95cbcda8-d1bc-376c-b338-92d1b923f04a@linaro.org> From: Maximilian Luz In-Reply-To: <95cbcda8-d1bc-376c-b338-92d1b923f04a@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,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 On 7/28/22 09:48, Krzysztof Kozlowski wrote: [...] >>>>> The problem with existing approach is: >>>>> 1. Lack of any probe ordering or probe deferral support. >>>>> 2. Lack of any other dependencies, e.g. for PM. >>>> >>>> I'm not entirely sure what you mean by "lack of probe deferral support". >>>> We have qcom_scm_is_available() and defer probe if that fails. So >>>> deferral works, unless I'm misunderstanding something. >>> >>> And how do you differentiate that qcom_scm_is_available() failed because >>> it is not yet available (defer probe) or it is broken and will never >>> load? All regular consumer-provider interfaces have it sorted out. >> >> Fair point. By shifting that to device links you'll at least know what >> it's waiting for and the driver won't attempt to probe until that's >> resolved. But your question applies to that then as well: How do you >> differentiate between the device link or supplier being broken somehow >> and the supplier being just not ready yet? > > For example like tegra_bpmp_get() is doing. But tegra_bpmp_get() can also not differentiate whether the supplier driver is ever going to be successfully probed or not. I'm not sure you can ever really solve that. The only thing it does in addition is check whether the phandle and device is there. Or do you mean those not being present by "broken"? That's a point I agree should be improved with SCM. Regards, Max