Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4823710pxb; Tue, 2 Nov 2021 16:52:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDmnbY2gHk2jWxUyOJea8few0mRHVAWEZuW5rk7a94uvYfz447TU2BD6D7qNvkXRHf+Lb8 X-Received: by 2002:a05:6e02:1c8a:: with SMTP id w10mr28176183ill.193.1635897139137; Tue, 02 Nov 2021 16:52:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635897139; cv=none; d=google.com; s=arc-20160816; b=zubDGGYu3/38pRViPl/BvmolW6CdW9W9cU4WT26Tdsn00ATpdVltPdJWBOQSjgGLvm hGyPWwXWx7YPevtm83bIGG4rmzBUN75phcIwD7PoDBhXcteSaYwKy152Bjc3rj/aTUow rJiPvd4RAd0NHPEYIKPheJ8Dr0ZVKy/9djQeHD+/fX74qc4FojXL2Gezr/bWzHy8Z/LN UwleEqDK8ifgf3rkdZYCXZa22HeqEA9pLsxGS5INDC1AqS6WIi0Co4CMDbkBuZMy6c0P d8guTyy2DyE5jhEcQBOo8Dc4l+W/KZtqwAqjd15ohjR4yIRbVYVPrf2zRc1lcmKZnmHX 5cZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=fVBGk1MYyCWrNZI+cGnXDaPmanq61gpSQuTYWAYJ+rg=; b=K1kTrP7cwe2oulVNNSp4hu6jDM1aocHUI52vsX7GUTW+o0lA8qvk6YVsjwKvfgtJeA bjUQKNJT76Q17IVjNtiSVLPRweXADUQVELbyIUsC8JmQszqmzHicHNS7ovdxNn7Ba3CI nJT/D39BqB/Fe12m1O8qxI09CsaXYh9ADagYKjBvErFR/S1v69FsHJMeweFFZxpJh4sT k+gE1nkMVOURBG/FfV+EzpLbHvJhgqsaNWByhqqqw4vOodmW7RJ+JqQYDGV3pO/dSJWT AgAccZ6d2L4vtzAHG2YYTdc4s1P3Oc2qKD7ENh7Be67qK+Z37boThv8BQgYBoSRSJ/Ob 3LCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ct6rwWB5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o3si1010943iov.84.2021.11.02.16.52.07; Tue, 02 Nov 2021 16:52:19 -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; dkim=pass header.i=@linaro.org header.s=google header.b=ct6rwWB5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230059AbhKBXxM (ORCPT + 99 others); Tue, 2 Nov 2021 19:53:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230076AbhKBXxL (ORCPT ); Tue, 2 Nov 2021 19:53:11 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A355C06120B for ; Tue, 2 Nov 2021 16:50:36 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id f3so1619096lfu.12 for ; Tue, 02 Nov 2021 16:50:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=fVBGk1MYyCWrNZI+cGnXDaPmanq61gpSQuTYWAYJ+rg=; b=ct6rwWB5FRv5Mti6ZNWlPXqu8r/Q2ELC3sZ//jRtNp/MEx7eF4jfyZIdP733Qhi1LS 3zUM+Cdkey0NBeVZZhuNPNH/nkmYS7FtlOwQEYFYI/lFgzIj9UOxmiuKiZhImhAA8sFp +FvtNKpYI8yOZM5EGEQIgMkFwHA37YNcBlF3i6ercceteicQIpR+V4nvzLEyj1/e85nD 6OL7Gp0bxn/3ZI02LjXDUH+G6TeVjTQrA9NVp/4A7FfeC2VOwEccVrYvKpl4b/Y1Xxgb WDqOU90M4L2K0yG/V6diro/qFJxz6Hbml+w28liXPAycWrahis2aOW+7+x7i28fSid5m xWlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=fVBGk1MYyCWrNZI+cGnXDaPmanq61gpSQuTYWAYJ+rg=; b=VqiREW+F7hcj2JXwDlIQL1JYMZMC4ZwKecZgEtqwViCZGyLKIrnzlEKXqTMwnay6Zv iUrR96HjgWZasVojGXcECGH8fTtPH/HXXOYYq/sE2kIMbqIodOlbfDcfyqZ2ygzGu1Sr tOpehaT6t5pvJppIEPlZn4YvCr/6OdNBZsuXgyUoVq1gZZFTF4njV/ZPX6Ae3DC0IRu5 U+P4lB5xSjyIna/y8VpuuMpFsAKB7Flf83aZC/wI9xrpkC64S33Y0xurWIehJMO0Xyaw C0TpwCudrO7A4p5pi5h5MjIwhzLC+NfLKwirHBh481uYCummNGcDOZ/GDR8uD6GHznpd outA== X-Gm-Message-State: AOAM530AKeQdbp72u7GT44PSAPGe2uF/lhudoOGZ8PJ3JNgCUlIzYRhA eVtly7qisD+csj9hdRLdSrqtt+5jbU+kQg== X-Received: by 2002:a05:6512:2022:: with SMTP id s2mr36121348lfs.661.1635897034131; Tue, 02 Nov 2021 16:50:34 -0700 (PDT) Received: from [192.168.1.211] ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id o17sm30262lfg.211.2021.11.02.16.50.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 02 Nov 2021 16:50:33 -0700 (PDT) Subject: Re: [PATCH v2 1/5] arm64: dts: qcom: msm8996: Revamp reserved memory To: Bjorn Andersson , Yassine Oudjana Cc: Andy Gross , Ohad Ben-Cohen , Mathieu Poirier , Rob Herring , AngeloGioacchino Del Regno , Konrad Dybcio , Raffaele Tranquillini , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, phone-devel@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210926190555.278589-1-y.oudjana@protonmail.com> <20210926190555.278589-2-y.oudjana@protonmail.com> From: Dmitry Baryshkov Message-ID: <4455e52f-7e8a-c431-9977-dcf4aefe9822@linaro.org> Date: Wed, 3 Nov 2021 02:50:32 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/10/2021 06:04, Bjorn Andersson wrote: > On Sun 26 Sep 14:06 CDT 2021, Yassine Oudjana wrote: > >> Fix a total overlap between zap_shader_region and slpi_region, and rename >> all regions to match the naming convention in other Qualcomm SoC device trees. >> >> Signed-off-by: Yassine Oudjana > > FYI, I like this series, but I held off applying it because I wanted to > verify that the shuffling of the memory regions works on the existing > 8996 boards. > > Unfortunately it didn't work, either with or without the shuffling on > the db820c - and I've not found the time to figure out why that is. I > hope to get back to this shortly (or that someone else will figure it > out and provide a tested-by) I gave this a test too on my db820c. Usually the board MSS will crash after ~0.1 - 0.15 seconds after booting up, then during recovery the board will crash/reboot somewhere at the end of q6v5_mss_load() (and typically after successful q6v5_rmb_mba_wait() call. Occasionally (approximately 1 of 20) the MSS will not crash, presenting PDS service to the userspace. Even in this state it doesn't seem to be able to lock the gps location (but this might be related to the big UART mezzanine sitting on top of the board). Unfortunately there seem to be no SLPI firmware for the db820c, so I can not test slpi. A notice regarding the patchset itself. It looks like pil_q6v5_mss.c driver misses mx and cx proxy power domains for the MSS_MSM8996 case. > > Regards, > Bjorn > >> --- >> .../dts/qcom/msm8996-sony-xperia-tone.dtsi | 18 ++++-- >> .../boot/dts/qcom/msm8996-xiaomi-common.dtsi | 18 +++--- >> arch/arm64/boot/dts/qcom/msm8996.dtsi | 63 ++++++++++--------- >> 3 files changed, 55 insertions(+), 44 deletions(-) >> >> diff --git a/arch/arm64/boot/dts/qcom/msm8996-sony-xperia-tone.dtsi b/arch/arm64/boot/dts/qcom/msm8996-sony-xperia-tone.dtsi >> index 507396c4d23b..4c26e66f0610 100644 >> --- a/arch/arm64/boot/dts/qcom/msm8996-sony-xperia-tone.dtsi >> +++ b/arch/arm64/boot/dts/qcom/msm8996-sony-xperia-tone.dtsi >> @@ -13,9 +13,10 @@ >> #include >> #include >> >> -/delete-node/ &slpi_region; >> -/delete-node/ &venus_region; >> -/delete-node/ &zap_shader_region; >> +/delete-node/ &adsp_mem; >> +/delete-node/ &slpi_mem; >> +/delete-node/ &venus_mem; >> +/delete-node/ &gpu_mem; >> >> / { >> qcom,msm-id = <246 0x30001>; /* MSM8996 V3.1 (Final) */ >> @@ -46,18 +47,23 @@ cont_splash_mem: memory@83401000 { >> no-map; >> }; >> >> - zap_shader_region: gpu@90400000 { >> + adsp_mem: adsp@8ea00000 { >> + reg = <0x0 0x8ea00000 0x0 0x1a00000>; >> + no-map; >> + }; >> + >> + gpu_mem: gpu@90400000 { >> compatible = "shared-dma-pool"; >> reg = <0x0 0x90400000 0x0 0x2000>; >> no-map; >> }; >> >> - slpi_region: memory@90500000 { >> + slpi_mem: memory@90500000 { >> reg = <0 0x90500000 0 0xa00000>; >> no-map; >> }; >> >> - venus_region: memory@90f00000 { >> + venus_mem: memory@90f00000 { >> reg = <0 0x90f00000 0 0x500000>; >> no-map; >> }; >> diff --git a/arch/arm64/boot/dts/qcom/msm8996-xiaomi-common.dtsi b/arch/arm64/boot/dts/qcom/msm8996-xiaomi-common.dtsi >> index d239b01b8505..a5e7bccadba2 100644 >> --- a/arch/arm64/boot/dts/qcom/msm8996-xiaomi-common.dtsi >> +++ b/arch/arm64/boot/dts/qcom/msm8996-xiaomi-common.dtsi >> @@ -66,32 +66,32 @@ memory@88800000 { >> >> /* This platform has all PIL regions offset by 0x1400000 */ >> /delete-node/ mpss@88800000; >> - mpss_region: mpss@89c00000 { >> + mpss_mem: mpss@89c00000 { >> reg = <0x0 0x89c00000 0x0 0x6200000>; >> no-map; >> }; >> >> /delete-node/ adsp@8ea00000; >> - adsp_region: adsp@8ea00000 { >> + adsp_mem: adsp@8fe00000 { >> reg = <0x0 0x8fe00000 0x0 0x1b00000>; >> no-map; >> }; >> >> - /delete-node/ slpi@90b00000; >> - slpi_region: slpi@91900000 { >> + /delete-node/ slpi@90500000; >> + slpi_mem: slpi@91900000 { >> reg = <0x0 0x91900000 0x0 0xa00000>; >> no-map; >> }; >> >> - /delete-node/ gpu@8f200000; >> - zap_shader_region: gpu@92300000 { >> + /delete-node/ gpu@90f00000; >> + gpu_mem: gpu@92300000 { >> compatible = "shared-dma-pool"; >> reg = <0x0 0x92300000 0x0 0x2000>; >> no-map; >> }; >> >> /delete-node/ venus@91000000; >> - venus_region: venus@90400000 { >> + venus_mem: venus@92400000 { >> reg = <0x0 0x92400000 0x0 0x500000>; >> no-map; >> }; >> @@ -107,7 +107,7 @@ ramoops@92900000 { >> pmsg-size = <0x40000>; >> }; >> >> - /delete-node/ rmtfs@86700000; >> + /delete-node/ rmtfs; >> rmtfs@f6c00000 { >> compatible = "qcom,rmtfs-mem"; >> reg = <0 0xf6c00000 0 0x200000>; >> @@ -118,7 +118,7 @@ rmtfs@f6c00000 { >> }; >> >> /delete-node/ mba@91500000; >> - mba_region: mba@f6f00000 { >> + mba_mem: mba@f6f00000 { >> reg = <0x0 0xf6f00000 0x0 0x100000>; >> no-map; >> }; >> diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi >> index eb3ec5ff46eb..1495fff6ffc9 100644 >> --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi >> +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi >> @@ -384,60 +384,65 @@ reserved-memory { >> #size-cells = <2>; >> ranges; >> >> - mba_region: mba@91500000 { >> - reg = <0x0 0x91500000 0x0 0x200000>; >> + hyp_mem: memory@85800000 { >> + reg = <0x0 0x85800000 0x0 0x600000>; >> no-map; >> }; >> >> - slpi_region: slpi@90b00000 { >> - reg = <0x0 0x90b00000 0x0 0xa00000>; >> + xbl_mem: memory@85e00000 { >> + reg = <0x0 0x85e00000 0x0 0x200000>; >> no-map; >> }; >> >> - venus_region: venus@90400000 { >> - reg = <0x0 0x90400000 0x0 0x700000>; >> + smem_mem: smem-mem@86000000 { >> + reg = <0x0 0x86000000 0x0 0x200000>; >> no-map; >> }; >> >> - adsp_region: adsp@8ea00000 { >> - reg = <0x0 0x8ea00000 0x0 0x1a00000>; >> + tz_mem: memory@86200000 { >> + reg = <0x0 0x86200000 0x0 0x2600000>; >> no-map; >> }; >> >> - mpss_region: mpss@88800000 { >> - reg = <0x0 0x88800000 0x0 0x6200000>; >> + rmtfs_mem: rmtfs { >> + compatible = "qcom,rmtfs-mem"; >> + >> + size = <0x0 0x200000>; >> + alloc-ranges = <0x0 0xa0000000 0x0 0x2000000>; >> no-map; >> + >> + qcom,client-id = <1>; >> + qcom,vmid = <15>; >> }; >> >> - smem_mem: smem-mem@86000000 { >> - reg = <0x0 0x86000000 0x0 0x200000>; >> + mpss_mem: mpss@88800000 { >> + reg = <0x0 0x88800000 0x0 0x6200000>; >> no-map; >> }; >> >> - memory@85800000 { >> - reg = <0x0 0x85800000 0x0 0x800000>; >> + adsp_mem: adsp@8ea00000 { >> + reg = <0x0 0x8ea00000 0x0 0x1b00000>; >> no-map; >> }; >> >> - memory@86200000 { >> - reg = <0x0 0x86200000 0x0 0x2600000>; >> + slpi_mem: slpi@90500000 { >> + reg = <0x0 0x90500000 0x0 0xa00000>; >> no-map; >> }; >> >> - rmtfs@86700000 { >> - compatible = "qcom,rmtfs-mem"; >> - >> - size = <0x0 0x200000>; >> - alloc-ranges = <0x0 0xa0000000 0x0 0x2000000>; >> + gpu_mem: gpu@90f00000 { >> + compatible = "shared-dma-pool"; >> + reg = <0x0 0x90f00000 0x0 0x100000>; >> no-map; >> + }; >> >> - qcom,client-id = <1>; >> - qcom,vmid = <15>; >> + venus_mem: venus@91000000 { >> + reg = <0x0 0x91000000 0x0 0x500000>; >> + no-map; >> }; >> >> - zap_shader_region: gpu@8f200000 { >> - compatible = "shared-dma-pool"; >> - reg = <0x0 0x90b00000 0x0 0xa00000>; >> + mba_mem: mba@91500000 { >> + reg = <0x0 0x91500000 0x0 0x200000>; >> no-map; >> }; >> }; >> @@ -1013,7 +1018,7 @@ opp-133000000 { >> }; >> >> zap-shader { >> - memory-region = <&zap_shader_region>; >> + memory-region = <&gpu_mem>; >> }; >> }; >> >> @@ -2001,7 +2006,7 @@ venus: video-codec@c00000 { >> <&venus_smmu 0x2c>, >> <&venus_smmu 0x2d>, >> <&venus_smmu 0x31>; >> - memory-region = <&venus_region>; >> + memory-region = <&venus_mem>; >> status = "disabled"; >> >> video-decoder { >> @@ -3008,7 +3013,7 @@ adsp_pil: remoteproc@9300000 { >> clocks = <&xo_board>; >> clock-names = "xo"; >> >> - memory-region = <&adsp_region>; >> + memory-region = <&adsp_mem>; >> >> qcom,smem-states = <&smp2p_adsp_out 0>; >> qcom,smem-state-names = "stop"; >> -- >> 2.33.0 >> >> -- With best wishes Dmitry