From patchwork Tue Jul 20 15:33:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 481546 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp5243510jao; Tue, 20 Jul 2021 08:33:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdsUHiL6l9l+StdThTWE1osjLhbq6aW1krTRLWOrtocvhkXe8gal43I31murSp/dQmjSrX X-Received: by 2002:a63:4e11:: with SMTP id c17mr20883462pgb.54.1626795233399; Tue, 20 Jul 2021 08:33:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626795233; cv=none; d=google.com; s=arc-20160816; b=UkG6L9cy62GTV7k7DQ7qrkWF3iBl0e5gByofccqpqJc95SM+2SNQAu0ragbFNk0FVV K0CAhV+kSd7/wM8nYNbDg7z7u/bueqrptsuxjUOtnBBxA9W5MVCMltWkBaUvH+2LtU9E 9EgRJqUFHBPEFBWpzvWjPVdPYLdkRU2xElOhQCTyAaL/41fUGx/3OcUsbkUA6em2VjvG bvwbCqpySQJ7P8JYO2XXbm1MMWdhjdVcsMktAsdper33goYhIY+Vq01leJFCojLmzxIU RzUQKodiszaxax6TZr2+JVOt1dbQnVd1qasZLoCEV2xGZWhxAI1Ks3O/5qBPTXjcBjEF kipw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:from:to:dkim-signature:date:delivered-to; bh=a/cXIJple0tXhCo8wBmyM+liGV06lwy6xissR4KIOBE=; b=oonX3shIKP/zWEd9pWe2mqxWNg1Vq+Mck7OX06/ladTPOgRk2Pal7lOmeXJ7L5gb2n sf7n7/6wE2ELxUi5L2JSzIv2Ht6PH/xITAS5VTmKnlb/4Tdk84Af6jROgEsyHUQqfLWS ONvmS/h6cCmgI5UMd6E2qvyiBloAMg2oM07fAGMWjhhhpnTvjUrbY3RkmOBhCCLdnuek mUD2+zysGrFH2NMAAoK/gT3oiz8XNRUYPdCkJTwP1rB5jCODmqNFGFNx4LJqW69YfY3y jF6im43NXn+qeL7L0tYpDyCwrGB9KU0xDs51aBS9c2yh6HyAguD+/Pa7VERMAy4LqKlH FLiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@connolly.tech header.s=protonmail header.b=e5PSRNYV; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=connolly.tech Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id t5si27665429pga.44.2021.07.20.08.33.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jul 2021 08:33:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=fail header.i=@connolly.tech header.s=protonmail header.b=e5PSRNYV; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=connolly.tech Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AECD689C17; Tue, 20 Jul 2021 15:33:50 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-41103.protonmail.ch (mail-41103.protonmail.ch [185.70.41.103]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5E08B89C17 for ; Tue, 20 Jul 2021 15:33:49 +0000 (UTC) Received: from mail-0201.mail-europe.com (mail-0201.mail-europe.com [51.77.79.158]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by mail-41103.protonmail.ch (Postfix) with ESMTPS id 4GTjRb4Sh9z50W7L for ; Tue, 20 Jul 2021 15:33:47 +0000 (UTC) Authentication-Results: mail-41103.protonmail.ch; dkim=pass (1024-bit key) header.d=connolly.tech header.i=@connolly.tech header.b="e5PSRNYV" Date: Tue, 20 Jul 2021 15:33:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=connolly.tech; s=protonmail; t=1626795223; bh=a/cXIJple0tXhCo8wBmyM+liGV06lwy6xissR4KIOBE=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=e5PSRNYVIfDTCyWKFDdtWRV/a1CHmQ6s52JrLyxXS9rbHzfboI5GOSvtNzvZnBWcV VCtwbsy8K5xipPFOva8gx7eiSn8BNhQ5xQQq5zzs6BlYwOF35MdXmrIdQsjpEhxOkH KUCJjs5/nplTVb5VpmyJpLmCUZSvkNe21BMEdoYo= To: Caleb Connolly From: Caleb Connolly Subject: [PATCH 1/5] arm64: dts: qcom: sdm845-oneplus: fix reserved-mem Message-ID: <20210720153125.43389-2-caleb@connolly.tech> In-Reply-To: <20210720153125.43389-1-caleb@connolly.tech> References: <20210720153125.43389-1-caleb@connolly.tech> MIME-Version: 1.0 X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Caleb Connolly Cc: devicetree@vger.kernel.org, David Airlie , linux-arm-msm@vger.kernel.org, Rob Herring , Bjorn Andersson , Andy Gross , Thierry Reding , dri-devel@lists.freedesktop.org, Sam Ravnborg Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fix the upper guard and the "removed_region", this fixes the random crashes which used to occur in memory intensive loads. I'm not sure WHY the upper guard being 0x2000 instead of 0x1000 doesn't fix this, but it HAS to be 0x1000. Signed-off-by: Caleb Connolly Fixes: e60fd5ac1f68 ("arm64: dts: qcom: sdm845-oneplus-common: guard rmtfs-mem") --- arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.32.0 diff --git a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi index 4d052e39b348..eb6b1d15293d 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi @@ -69,7 +69,7 @@ rmtfs_mem: memory@f5b01000 { }; rmtfs_upper_guard: memory@f5d01000 { no-map; - reg = <0 0xf5d01000 0 0x2000>; + reg = <0 0xf5d01000 0 0x1000>; }; /* @@ -78,7 +78,7 @@ rmtfs_upper_guard: memory@f5d01000 { */ removed_region: memory@88f00000 { no-map; - reg = <0 0x88f00000 0 0x200000>; + reg = <0 0x88f00000 0 0x1c00000>; }; ramoops: ramoops@ac300000 { From patchwork Tue Jul 20 15:33:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 481553 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp5247961jao; Tue, 20 Jul 2021 08:39:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1OqrkywBxvzxq4+4iBkRbWaarRzwCevVn8Mf1LcGwNr3FayqmXVPZmVYlkxyYSDYQtnLD X-Received: by 2002:a63:5616:: with SMTP id k22mr31173528pgb.211.1626795544403; Tue, 20 Jul 2021 08:39:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626795544; cv=none; d=google.com; s=arc-20160816; b=HsmfuejKJ8pYS6N2Iu7HN/2W7RLreqZMamCUHP92hicxe6Ch31/BhQqD+wMokWWwZ1 xbbtJ4urwVontx+3jM2Tg/J2mdIA1PLSeAqF4x952cobiUK6IfrOPgQj6/l/Qsr62lqo +n5XvPDKULRY+kAjKHMG3Gq0zM8CkJLjEGaM0IFs0CRBlaT5ft1W6p+r4OiRMd0NXvqf Meo+q8iN/ygxArutZ24zyIQdo8ybcLIhJcejUNJpyK1O2fYMPLL9Z+bb7mhYoCTE9HPK Nk8kTFE8myIJL7vMQRBQfiK2y5eRLPyuTAITgEAaljZJdykjvYmyUVwmsbh9p9SC9EkO A8TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:from:to:dkim-signature:date:delivered-to; bh=t8DojydpgKrlFaF/reC4F/AKwWgGLBuBD8TTSdpGt7c=; b=AYK1wuVfQ8x2FVNTRVUasW64187LyShffMBLB9/mCFv2AOv3J3NmIltp6QPCUrNZfd IyTp8Awlku+/c1KqPjdaWicHLWWfUXBY04WRBZP3AilbsqmAAQj43MzHcBHS/vvw8J4/ 5zDic0nmzyYAbBQO4wSqXhgi6bc0H98vKHRhN7fgE2jcfIe1MISZ89fmm+4Cot3rIrTt HRE9OYa2jo3/udp405ZLgSctJXzp9ahyZGTYmo3wdJ/ypeBOKTGpwXuo28v026T9Iuk6 jZiGd1HtXSVb8NTBO7DOuJ1yrOD6UqDQ202n0wd/klK1as8B4h/jgNUt2BsnnDDL7dTf lfLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@connolly.tech header.s=protonmail header.b=hlkCq9KK; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=connolly.tech Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id t193si1479195pgb.307.2021.07.20.08.39.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jul 2021 08:39:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=fail header.i=@connolly.tech header.s=protonmail header.b=hlkCq9KK; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=connolly.tech Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E914789B3B; Tue, 20 Jul 2021 15:38:58 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-4321.protonmail.ch (mail-4321.protonmail.ch [185.70.43.21]) by gabe.freedesktop.org (Postfix) with ESMTPS id 47D8489B20 for ; Tue, 20 Jul 2021 15:38:57 +0000 (UTC) Received: from mail-0201.mail-europe.com (mail-0201.mail-europe.com [51.77.79.158]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by mail-4321.protonmail.ch (Postfix) with ESMTPS id 4GTjRg3sFhz4xZhG for ; Tue, 20 Jul 2021 15:33:51 +0000 (UTC) Authentication-Results: mail-4321.protonmail.ch; dkim=pass (1024-bit key) header.d=connolly.tech header.i=@connolly.tech header.b="hlkCq9KK" Date: Tue, 20 Jul 2021 15:33:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=connolly.tech; s=protonmail; t=1626795227; bh=t8DojydpgKrlFaF/reC4F/AKwWgGLBuBD8TTSdpGt7c=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=hlkCq9KKy2ZQ3nNdVgMg9staiv/IPPp6A0ezhebLzmGZdpKNozDStzUQ28gYP3c58 Anwo8piiEyT67Bc23otsWBOdpduTHKIfnf5GqQqih0AvB1OSCtCrxfj2CpdU9n9PBm M5wKHrl0iAh3ARXiPWTsjAtEL08PmwuugbKeUiuU= To: Caleb Connolly From: Caleb Connolly Subject: [PATCH 2/5] dts: arm64: sdm845-oneplus-common: enable debug UART Message-ID: <20210720153125.43389-3-caleb@connolly.tech> In-Reply-To: <20210720153125.43389-1-caleb@connolly.tech> References: <20210720153125.43389-1-caleb@connolly.tech> MIME-Version: 1.0 X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Caleb Connolly Cc: devicetree@vger.kernel.org, David Airlie , linux-arm-msm@vger.kernel.org, Rob Herring , Bjorn Andersson , Andy Gross , Thierry Reding , dri-devel@lists.freedesktop.org, Sam Ravnborg Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" A labelled diagram showing the location of the Rx and Tx testpoints for the OnePlus 6 is available on the postmarketOS wiki: https://wiki.postmarketos.org/wiki/Serial_debugging:Cable_schematics The device uses 1.8v UART at a baud rate of 115200, bootloader output is also available here. Signed-off-by: Caleb Connolly --- arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) -- 2.32.0 diff --git a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi index eb6b1d15293d..e81f5cc9f26d 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi @@ -19,9 +19,14 @@ / { aliases { + serial0 = &uart9; hsuart0 = &uart6; }; + chosen { + stdout-path = "serial0:115200n8"; + }; + gpio-keys { compatible = "gpio-keys"; label = "Volume keys"; @@ -526,6 +531,11 @@ bluetooth { }; }; +&uart9 { + label = "LS-UART1"; + status = "okay"; +}; + &ufs_mem_hc { status = "okay"; From patchwork Tue Jul 20 15:33:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 481547 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp5243585jao; Tue, 20 Jul 2021 08:33:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwndbVhvNkS6/+8fi4LfFhEGuFdfIYEn8X6QQl3LRVvnippQLS5OeEyTAS2nVfeQJQi10M7 X-Received: by 2002:a17:90a:a27:: with SMTP id o36mr36580320pjo.32.1626795238158; Tue, 20 Jul 2021 08:33:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626795238; cv=none; d=google.com; s=arc-20160816; b=onDDgFTnAE8GIZGMSyXlxs5uUXPeDVvOG1Z8rQyaLL3JouzFaAnyD+dVEpI/PRiBHC /7VvCqFPo1k1An3YaxLJXYZQlCMpCuBOpxahCzFeknxjRfQNR7un7fcF4lGK8B1TOLmL sL0epbKFxMhD891ULqhSgnEg3JK43tSdhnMa3U2AMJGAqClX9J6DMoAc7qvhe4oBW/aI s399Jz+K8PPQJDqDivyJzyaIl6Sd3WVcDBKFarb/FXkkBj71HyJURq10PPTuzvRDtWUm ayR4N49XB5THrX7gj++KNvlFNBTQAKIkfYuPcK6CEjIooOonUEp5eSJ+VoRxM/h3G8Ph fc0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:from:to:dkim-signature:date:delivered-to; bh=d9Q3moj/2J34xlyehWoq/C7zP8ek1tDX6NiP55RbvIw=; b=DGG8291qQMMBKl2U/WTugNUFYUXV5OUZGrYgQ6tcIQI1r1m7WUGCdRerr5gPiiGXAi lWb6mj1ReLeeBvDakmlkwCwv9GQs7g1RV3+DsvEcKs81p8IPFQCRbgs7nI7/ODb66bHG 4bgDD9dY1ruAZC408jzBoQiKmR7TTvUaCUTv9hkg/Nfv5nuP8qFjM5pEWwdNH5vq8iuP eQM8rkWLCJwerW2+uUqT+/EzfDsQmc15O6PsDS63OVg1aKIs15AUnBw5sSdFkdzJsloi BD6NuzZAjJEaKsBudIdN5eMxy1HbzsFOQeYw147ao3y4J0ks/OnAiKA5waejUzrXcE14 96Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@connolly.tech header.s=protonmail header.b=Xg4qOYPU; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=connolly.tech Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id j11si27102760pfc.227.2021.07.20.08.33.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jul 2021 08:33:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=fail header.i=@connolly.tech header.s=protonmail header.b=Xg4qOYPU; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=connolly.tech Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1084F89C33; Tue, 20 Jul 2021 15:33:57 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-41104.protonmail.ch (mail-41104.protonmail.ch [185.70.41.104]) by gabe.freedesktop.org (Postfix) with ESMTPS id D924789C33 for ; Tue, 20 Jul 2021 15:33:54 +0000 (UTC) Received: from mail-0201.mail-europe.com (mail-0201.mail-europe.com [51.77.79.158]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by mail-41104.protonmail.ch (Postfix) with ESMTPS id 4GTjRj1DxWz50MKT for ; Tue, 20 Jul 2021 15:33:53 +0000 (UTC) Authentication-Results: mail-41104.protonmail.ch; dkim=pass (1024-bit key) header.d=connolly.tech header.i=@connolly.tech header.b="Xg4qOYPU" Date: Tue, 20 Jul 2021 15:33:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=connolly.tech; s=protonmail; t=1626795229; bh=d9Q3moj/2J34xlyehWoq/C7zP8ek1tDX6NiP55RbvIw=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=Xg4qOYPUk793e8ucsxhhTPL54VmfiqV/0bzSeQbgFfxV8qKVM5NUA24rdBHPJ4e5Y AaGfTk2+TPzflGIxx6u7Ij+n1ruwAtqH0fHGQMD7onBeH5v7m0g34KQTLuSHtczYBI 0n95i5OOHJpze7akWJI1R8Gm0UHmMU53ssJeinMs= To: Caleb Connolly From: Caleb Connolly Subject: [PATCH 3/5] drm/panel/samsung-sofef00: make gpio optional Message-ID: <20210720153125.43389-4-caleb@connolly.tech> In-Reply-To: <20210720153125.43389-1-caleb@connolly.tech> References: <20210720153125.43389-1-caleb@connolly.tech> MIME-Version: 1.0 X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Caleb Connolly Cc: devicetree@vger.kernel.org, David Airlie , linux-arm-msm@vger.kernel.org, Rob Herring , Bjorn Andersson , Andy Gross , Thierry Reding , dri-devel@lists.freedesktop.org, Sam Ravnborg Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The OnePlus 6T panel fails to initialise if it has been reset, workaround this by allowing panels to not specify a reset GPIO. Signed-off-by: Caleb Connolly --- drivers/gpu/drm/panel/panel-samsung-sofef00.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) -- 2.32.0 diff --git a/drivers/gpu/drm/panel/panel-samsung-sofef00.c b/drivers/gpu/drm/panel/panel-samsung-sofef00.c index 8cb1853574bb..a20a5af14653 100644 --- a/drivers/gpu/drm/panel/panel-samsung-sofef00.c +++ b/drivers/gpu/drm/panel/panel-samsung-sofef00.c @@ -44,6 +44,8 @@ struct sofef00_panel *to_sofef00_panel(struct drm_panel *panel) static void sofef00_panel_reset(struct sofef00_panel *ctx) { + if (!ctx->reset_gpio) + return; gpiod_set_value_cansleep(ctx->reset_gpio, 0); usleep_range(5000, 6000); gpiod_set_value_cansleep(ctx->reset_gpio, 1); @@ -137,7 +139,8 @@ static int sofef00_panel_prepare(struct drm_panel *panel) ret = sofef00_panel_on(ctx); if (ret < 0) { dev_err(dev, "Failed to initialize panel: %d\n", ret); - gpiod_set_value_cansleep(ctx->reset_gpio, 1); + if (ctx->reset_gpio) + gpiod_set_value_cansleep(ctx->reset_gpio, 1); return ret; } @@ -276,7 +279,7 @@ static int sofef00_panel_probe(struct mipi_dsi_device *dsi) return ret; } - ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); + ctx->reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_HIGH); if (IS_ERR(ctx->reset_gpio)) { ret = PTR_ERR(ctx->reset_gpio); dev_warn(dev, "Failed to get reset-gpios: %d\n", ret); From patchwork Tue Jul 20 15:33:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 481548 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp5243681jao; Tue, 20 Jul 2021 08:34:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytdkOZN24JN8n+SkOlV2OhojXUOuMIM8bDUm1L1ih9blPqagp/QExFRMjjU+AZd+RkoTpR X-Received: by 2002:a17:90b:b12:: with SMTP id bf18mr36286226pjb.74.1626795244677; Tue, 20 Jul 2021 08:34:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626795244; cv=none; d=google.com; s=arc-20160816; b=by1JEk0AT53JftJ6oHtXELM03PlIhCmG+2yR1bi38WIPrMSEXtSiInlTyeAwnJHdG1 lCXBQAS7Z87YBGLo1owFadQ/jtfuK9NNSW22qR0QlK4wZJwSnoh03jWFpqL19FAlr9JS 1QSteSZMmA43jPBM52Vcc8K6tyOkykqK7u60MT3RYSfhThYsEU1+2WB9ffWxjzl4Mw9k o7ao8R/1YfjWW4D6IxT2S8qz8Nb50JreL16k6CpGl7ISUxHQ5/tJh3KiCmYUFwuchHhC Ox44APi+8qN9EZNQrYYB3bcb+uOYx8hXqknLkFBwxcmCa36I/twpPvIJAx6LnRoUsmkN Y/8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:from:to:dkim-signature:date:delivered-to; bh=XWgo5tzaR5dmJQplOfD1SfTmwFn2t+d0+Cn+rl7ZkEo=; b=V8uWVjQ5tSfwylJz8bzFjIwHlBBFxPU15dtfHW2vbfxu7SeJ0WJLoI8KUUl9dbpDD1 oD7j08lz25n5cZRQPRUCa3EJ1jGiT8KPMx/qxXQlwiAkF/v1XvxH8/aWSLN43a5dnKW/ AK+1wuwGV+qLETG9uMPT61iH5TE4Of23dy/2EOzUH9ZHlsluF3Ve9vdShCDhOixjnODz nTVUm7NtI8YioPMfFIEabrHVN3SHlamQMk5cMuTDdpiokQLKMPoS2oujnWDvrHFpUIEv YJHX1ReHt6up17wRyBfgBGA0Q4F3U9QH9CWT4WIpR97SPbO6zpKFbPtgIYyFysNumduC G8Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@connolly.tech header.s=protonmail header.b="I/jQhWai"; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=connolly.tech Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id t6si3021290plo.71.2021.07.20.08.34.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jul 2021 08:34:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=fail header.i=@connolly.tech header.s=protonmail header.b="I/jQhWai"; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=connolly.tech Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9F99789C6A; Tue, 20 Jul 2021 15:34:03 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-41104.protonmail.ch (mail-41104.protonmail.ch [185.70.41.104]) by gabe.freedesktop.org (Postfix) with ESMTPS id CD8EA89C6A for ; Tue, 20 Jul 2021 15:34:01 +0000 (UTC) Received: from mail-0201.mail-europe.com (mail-0201.mail-europe.com [51.77.79.158]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by mail-41104.protonmail.ch (Postfix) with ESMTPS id 4GTjRr3kxWz50MKT for ; Tue, 20 Jul 2021 15:34:00 +0000 (UTC) Authentication-Results: mail-41104.protonmail.ch; dkim=pass (1024-bit key) header.d=connolly.tech header.i=@connolly.tech header.b="I/jQhWai" Date: Tue, 20 Jul 2021 15:33:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=connolly.tech; s=protonmail; t=1626795236; bh=XWgo5tzaR5dmJQplOfD1SfTmwFn2t+d0+Cn+rl7ZkEo=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=I/jQhWaiRYOBhX65293I4SO7cFOCf3VqEs634mhUEWvyxZI2N9r7KjC2Mxpk7JfNK EN1eK3EL4BZNNquIqq56sPwVO4JXRYbdO8mQIbs+VWNJNhgvIwA39NTbUbHmZnrUHA PiZQydfaHHxaejppVYrNrkEF7tNXyNExIFclGsnY= To: Caleb Connolly From: Caleb Connolly Subject: [PATCH 4/5] arm64: dts: qcom: sdm845-oneplus-fajita: remove panel reset gpio Message-ID: <20210720153125.43389-5-caleb@connolly.tech> In-Reply-To: <20210720153125.43389-1-caleb@connolly.tech> References: <20210720153125.43389-1-caleb@connolly.tech> MIME-Version: 1.0 X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Caleb Connolly Cc: devicetree@vger.kernel.org, David Airlie , linux-arm-msm@vger.kernel.org, Rob Herring , Bjorn Andersson , Andy Gross , Thierry Reding , dri-devel@lists.freedesktop.org, Sam Ravnborg Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Don't specify the reset GPIO for the OnePlus 6T, the panel in the 6T will refuse to initialise if it has been reset so use this as a workaround. Signed-off-by: Caleb Connolly --- arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi | 4 +--- arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) -- 2.32.0 diff --git a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi index e81f5cc9f26d..1339bac8afc2 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi @@ -331,8 +331,6 @@ display_panel: panel@0 { vddio-supply = <&vreg_l14a_1p88>; - reset-gpios = <&tlmm 6 GPIO_ACTIVE_LOW>; - pinctrl-names = "default"; pinctrl-0 = <&panel_reset_pins &panel_te_pin &panel_esd_pin>; @@ -615,7 +613,7 @@ mux { pins = "gpio6", "gpio25", "gpio26"; function = "gpio"; drive-strength = <8>; - bias-disable = <0>; + bias-disable; }; }; diff --git a/arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts b/arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts index 72842c887617..5c728c1555f3 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts @@ -16,4 +16,6 @@ &display_panel { status = "okay"; compatible = "samsung,sofef00"; + + reset-gpios = <&tlmm 6 GPIO_ACTIVE_LOW>; }; From patchwork Tue Jul 20 15:33:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 481560 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp5251918jao; Tue, 20 Jul 2021 08:44:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz05T6SWYpJQ5laokELKeirOI+nEJugEJeE8Hz1cXztsvx+F8hH/U+x3uNeYYavjCL9VpkR X-Received: by 2002:aa7:854a:0:b029:332:330e:1387 with SMTP id y10-20020aa7854a0000b0290332330e1387mr31426719pfn.67.1626795840309; Tue, 20 Jul 2021 08:44:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626795840; cv=none; d=google.com; s=arc-20160816; b=DKkuGzXtJXhS/HUf1UtGJeFgDQX9jhei1jf5PU/vyDXF//nuhKUnf0YpsGX+RTtA6k FQohj/fAzd4mY6kVWftOmyJal6x2/cG7dz456kqsEnsK6cM5fTjkNpOOMCL401mwGr6x kiYyUx6nqvP3VWAl5aEHSA41N3k+p8fxxsE0ERZ9zGOI5j/4cwUUObBft8SeiwWb9QfH +hoNHHRh0pbIbbmn9IG6vK+8BdZPpFXComwYsrg8V86nNGd9mD3ItLrmTO1f22LePuKy U+VwLBggQuVyTRfRmp6M4G60E1HwvgEu0c1EcBpyfizTmABfJhq4sD3G/ng/lunaNGE5 FtEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:from:to:dkim-signature:date:delivered-to; bh=RnMIEFW0cr7ror7ncy8lldAb81ApdL3lOqR9uUsxN48=; b=jrvHzN+gAtXeY9vyWBNJBylADWZLZ2StuTfTGxQMtpxkx/xEhnhEBthyG/06NtpTrj IgxwqCbZuQAVO/bhiLIRLHFtIFCuQMXBIDWjUygn3HV5eIy3ZIsTI1garTOAr9p3WL2y GdRUdgtz1tk2nm1ZqmVYlJLfKX80ATs7AkDqt6Z5sqVlTGIeyGwAkT9gQwuxMX4v75LW TB7oM5eRgEHdnCMuutcxftC6LzK4D8lOpkiL4HUIyO/YTvy81/TF7EkDX8qtKA1SSALF Ae5ghofgTSF0S2lrMIECtFJ/KljeqKpYCq1YRJmfDBxyeQBbd+RO9wrpFVHMOk0N/W4c MnHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@connolly.tech header.s=protonmail header.b=D7bktiGR; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=connolly.tech Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id k14si31803565pji.101.2021.07.20.08.43.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jul 2021 08:44:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=fail header.i=@connolly.tech header.s=protonmail header.b=D7bktiGR; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=connolly.tech Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D15A489950; Tue, 20 Jul 2021 15:43:57 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-4321.protonmail.ch (mail-4321.protonmail.ch [185.70.43.21]) by gabe.freedesktop.org (Postfix) with ESMTPS id C37AA89950 for ; Tue, 20 Jul 2021 15:43:56 +0000 (UTC) Received: from mail-0301.mail-europe.com (mail-0301.mail-europe.com [188.165.51.139]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by mail-4321.protonmail.ch (Postfix) with ESMTPS id 4GTjRs6kQJz4xZhJ for ; Tue, 20 Jul 2021 15:34:01 +0000 (UTC) Authentication-Results: mail-4321.protonmail.ch; dkim=pass (1024-bit key) header.d=connolly.tech header.i=@connolly.tech header.b="D7bktiGR" Date: Tue, 20 Jul 2021 15:33:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=connolly.tech; s=protonmail; t=1626795238; bh=RnMIEFW0cr7ror7ncy8lldAb81ApdL3lOqR9uUsxN48=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=D7bktiGRDFoTLhsP5GS5WcgNCpIZCa1yv1xYjTKuqheYL9sBaGkJoztqGM+YxuEUV KTGSyUUjqZDZjuysBdl94a7fKGesku8BZO6miND7p4o55m6eYRYXFXdltu9R0Ovw4e Syg/Q7PNoqc4eJ3ObFWPLVyNs94PZA+hjAO1iF8Y= To: Caleb Connolly From: Caleb Connolly Subject: [PATCH 5/5] arm64: dts: qcom: sdm845-oneplus: add ipa firmware names Message-ID: <20210720153125.43389-6-caleb@connolly.tech> In-Reply-To: <20210720153125.43389-1-caleb@connolly.tech> References: <20210720153125.43389-1-caleb@connolly.tech> MIME-Version: 1.0 X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Caleb Connolly Cc: devicetree@vger.kernel.org, David Airlie , linux-arm-msm@vger.kernel.org, Rob Herring , Bjorn Andersson , Andy Gross , Thierry Reding , dri-devel@lists.freedesktop.org, Sam Ravnborg Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add the correct patch to the ipa firmware now that custom paths are supported. Signed-off-by: Caleb Connolly --- arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi | 1 + 1 file changed, 1 insertion(+) -- 2.32.0 diff --git a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi index 1339bac8afc2..96304f8688ed 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi @@ -406,6 +406,7 @@ &ipa { status = "okay"; memory-region = <&ipa_fw_mem>; + firmware-name = "qcom/sdm845/oneplus6/ipa_fws.mbn"; }; &mdss {