Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1569599pxj; Sat, 12 Jun 2021 12:42:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpOcFW//V987Jc759skyxANXE1SraUUQ0LCK5otb4PARk+E5mj8CZYxcBY0iR2lblS2/ur X-Received: by 2002:a17:906:a3cc:: with SMTP id ca12mr8891694ejb.534.1623526978585; Sat, 12 Jun 2021 12:42:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623526978; cv=none; d=google.com; s=arc-20160816; b=vB7cCqGlqubGnt+b+13aH3E3sym5jV5aSeogLGJtrkhY3oiS6uKdCQd/cR1ta/QETa L5RqdKAFgGvQ7h/cV/lT7AbVOQ6INPDA19mqPHfca688BgZPqE5aNyqMx190BD1on2bQ 7G/oYBxwZXTMsCxWHY9hRRijoBx3HcvDpNszqzuCTvWnN6rHiWBBd+8pCio9rHzh7Zub pjGYUrRvC3OJoYRSJvMNDFtdq4hJDQbiSdSPdlKsYGwuUza/7OVRp6QLwMMA9AnmgJXe hEHcANTjQI4qPOeyZwbY6x+Xp8VHw25cN2u8IWOmD/cqFvCuslOp2jG/ZRU80nc8bUMz 1IbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=MW1kNODWYvMdH56aohzTZVrTUuJvzKS/RTtb99iNrq0=; b=Cc88VEpcPTRBrlT1O3Hx7GstW6a02S3NsqwVErDH01shDgzeCGdFtoZF/HX744/S7i NZHi1vDdqFPBZSqNmQhK42rChCVl2fxyTt2WodnjlupcvQw9o7UdS4aYTBM+2a/3JuUk 0HDwPgvhxGOdXM03OR4jXOyyoDFbda0TtpffGc5QTOIc1yzqLZEniqN8N2dwTxXV/OLe 58+QiIr2JTdStj/h0aRIX6ILFHYAOxmIMzb6TX49JGiEcmx2lhuqjr0fblr9uYUqkaGy 28/V+2V7GtH2SyNNPLz521jpXSF19d/GpdxTsGdSCU1p37VMcYataBFJP4+hOCcgwQlz /6gQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 3si7851405ejl.361.2021.06.12.12.42.33; Sat, 12 Jun 2021 12:42:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231532AbhFLTla (ORCPT + 99 others); Sat, 12 Jun 2021 15:41:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231479AbhFLTl2 (ORCPT ); Sat, 12 Jun 2021 15:41:28 -0400 Received: from relay08.th.seeweb.it (relay08.th.seeweb.it [IPv6:2001:4b7a:2000:18::169]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B397CC061574; Sat, 12 Jun 2021 12:39:27 -0700 (PDT) Received: from [192.168.1.101] (83.6.168.161.neoplus.adsl.tpnet.pl [83.6.168.161]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id 2C9873F356; Sat, 12 Jun 2021 21:39:24 +0200 (CEST) Subject: Re: [PATCH 1/2] arm64: dts: qcom: sm8250: Disable Adreno and Venus by default To: Rob Clark Cc: ~postmarketos/upstreaming@lists.sr.ht, Martin Botka , AngeloGioacchino Del Regno , Marijn Suijten , jamipkettunen@somainline.org, Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List References: <20210611113514.27173-1-konrad.dybcio@somainline.org> From: Konrad Dybcio Message-ID: <94bf5d73-6939-75dc-46da-ddb8d6ae017a@somainline.org> Date: Sat, 12 Jun 2021 21:39:23 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11.06.2021 20:54, Rob Clark wrote: > On Fri, Jun 11, 2021 at 4:35 AM Konrad Dybcio > wrote: >> Components that rely on proprietary (not to mention signed!) firmware should >> not be enabled by default, as lack of the aforementioned firmware could cause >> various issues, from random errors to straight-up failing to boot. > I admit I probably don't test much without fw, but I think maybe > *that* is the issue to solve instead. > > Taking a guess, I think the situation is that you have *some* of the > fw (ie. the unsigned parts coming from linux-firmware) but not > specifically the zap fw. So adreno_zap_shader_load() returns -ENODEV, > which is interpreted to mean "this is a platform that doesn't need zap > to take GPU out of secure mode", and then things go boom when we try > to write RBBM_SECVID_TRUST_CNTL ? While we're not yet there to test that out on A6xx-equipped platforms, my experience with lack ofAdreno firmware so far has been like so: no ZAP, wrong ZAP address in the DT, bad ZAP - either a lockup or a reboot no pm4/pfp - mostly a sane failing route with GPU just not activating after all, yet still I can recall having some problems that I probably won't be able to reproduce right now no GMU fw - as stated before, can't really test properly just yet Konrad