Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1132614rdg; Wed, 11 Oct 2023 15:58:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE8WhlEb/elLkE6O/M/t9Ne1pB+i9TasSD3DNhpicRHuoUow8clkudPuY2h7pqL4bvgEoZ4 X-Received: by 2002:a05:6a20:1596:b0:137:74f8:62ee with SMTP id h22-20020a056a20159600b0013774f862eemr27650453pzj.18.1697065097975; Wed, 11 Oct 2023 15:58:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697065097; cv=none; d=google.com; s=arc-20160816; b=kQjgvh7ZsywZkQPxIXJxZLvDUxAvR00wx0v6bCdYJ9jbAXdLwKpJKMfLa+kB2hg0GJ BJImSsFKi19X59p7ypcqB/qdG7MYOwp0R2t2Q/Ye/KXv2FMuN8NdBppvX8AqIO6hdwHU j3P3jTfw1KjC8xlHzEMiytcwt+VgVLJQX72gHFPUaoteFSIY9IGlyYo/+tErWlSq+7Xl Ij7LGBtIO93Df+ySKQTuX60+hzWD1hHwXPPJOaHuyZLb8Di7srMd9njPIel5DRr9ixFu RrSsshM1ns5EW5niroX+CMM5e63Yv5g8aEXsyMBFwMAgDgNB8zmBaohJiVtP+Zl2y9jW C3tQ== 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=rl55h7C3SyZnNy+O71KrsWqYJTZ+/tLu3QsiXHqMENQ=; fh=obUs06JpUFMZWZLgJ069gpYAwrSci/hInf1iU9eotMk=; b=G9IflUhxPynr0SY9THEy5Unpt5hD+s9ql8YaoIX0MmA2ktwOpgyOS5PJ+gWZLWBJu0 UOqW4cXyzpd0ONBIoId+ohCGw+7/ogGqLwE0indbwDKOGK2NFodG2E4HoYxO2MTfPAjK umWAzqqK3SnaMvli+gDLloq7n27e79V0fLzxztM4Dhj1yfAM6vEsrj2nuzaMoYzQqfOD VzH0MGkyjYBfl/0Wt4IE7CYSgAYaLNfdudo4a5gpyulDBfz00ujQ1L5A2sUXfAB7BV5j gSZfeqiKSvjq7S3/a/al5WUxiWiFNE2/ZnFeWvIEb3mL9KJ3S6UwDlky7gddWiamQK2a IjoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cx5FoHWQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id 138-20020a630090000000b00584a7618163si807397pga.601.2023.10.11.15.58.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 15:58:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cx5FoHWQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id F05C38092C96; Wed, 11 Oct 2023 15:58:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233559AbjJKW6E (ORCPT + 99 others); Wed, 11 Oct 2023 18:58:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231927AbjJKW6E (ORCPT ); Wed, 11 Oct 2023 18:58:04 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF8699D for ; Wed, 11 Oct 2023 15:58:01 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-5068dab8c00so529104e87.0 for ; Wed, 11 Oct 2023 15:58:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697065080; x=1697669880; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=rl55h7C3SyZnNy+O71KrsWqYJTZ+/tLu3QsiXHqMENQ=; b=cx5FoHWQwoDmo4aoVgZ/r24lAERsFtFrXStHows8HA1tBpDGOBrlkfQQ6l9EMhGLIy q5fMnvA4NQRiaM/hhqJNRFs/3KfeBDhRpt3TLoEmINlvx58X0aBaVxiE56RI1GKpdJzH /fek0ihMXYYmIX1o7gHFmV5k0mqwOZj9MbyuB+m1Ix7zQdOZBFgNde7aMNzLiI+TV/Qe d7fjXypwSSekoBlMc9qUG01mExBy1R6CfP64XkYZ0mbaIwDmhXJegZD2QTWR7eO5Hxk6 i6TSas42r/6uXMjI+jd2Fs8oU9rFUtX3o/Im7xak/wIjEGYTajTHLMaV6Rmgu7GlW9Yn 8Ppw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697065080; x=1697669880; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rl55h7C3SyZnNy+O71KrsWqYJTZ+/tLu3QsiXHqMENQ=; b=KT4DWsGOepGuYUTO3Uwn4JecZR+OcgL8Da9tjVEW0DqtdtuhjJdypgf5e4v4h3tfhi h2/jfUjK6vwO9pyJDU4JOg1xGAIiZE9K1Flh/K/DWkK9zY/eFKwQw0f06WNHaL9hSwra o3GKQeDIEUUaUMYXJewLGKfD9pujnG8PXw4nfSJMt/z8ZJH69IAoZyNSuJU11DU0mftn a3nda1e6Td89WD+uRigziFOqOXm+jEjPiwcmRKWQOL+4nPkhS3CepEaSbpYl0XyuGZOD 5yOXEFSrN0/YgKgrX8zzuIhOtrQ9Y2+EUIvIqY2ZPPv29s09oDGCjiaeLek6UE5IkOk+ KKrQ== X-Gm-Message-State: AOJu0YzmB02G2tF146oRXNnFjFgkufRGVxG0V4SNUuGUn68wPvCftnuG 6AStob7RSfCKbNTQdvbyrUrVxA== X-Received: by 2002:ac2:4431:0:b0:503:258d:643c with SMTP id w17-20020ac24431000000b00503258d643cmr17413387lfl.21.1697065079860; Wed, 11 Oct 2023 15:57:59 -0700 (PDT) Received: from [172.30.204.102] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id w5-20020ac25985000000b0050579c4d0d5sm2464180lfn.133.2023.10.11.15.57.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 11 Oct 2023 15:57:59 -0700 (PDT) Message-ID: <5c4f1bb0-eaa0-4ed9-81aa-9755c033c832@linaro.org> Date: Thu, 12 Oct 2023 00:57:57 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 2/2] arm64: dts: qcom: qcm6490: Add qcm6490 dts file Content-Language: en-US To: Trilok Soni , Mukesh Ojha , Komal Bajaj , agross@kernel.org, andersson@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, luca.weiss@fairphone.com References: <20231003175456.14774-1-quic_kbajaj@quicinc.com> <20231003175456.14774-3-quic_kbajaj@quicinc.com> <5da2ba4f-5bf7-46ff-8204-0c169042dbfa@linaro.org> <3fd31aaa-f6bf-8440-6b08-fca2803171d9@quicinc.com> <01c7a346-1e8b-1767-7594-c8adcd4823c3@quicinc.com> From: Konrad Dybcio In-Reply-To: <01c7a346-1e8b-1767-7594-c8adcd4823c3@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 11 Oct 2023 15:58:15 -0700 (PDT) On 10/11/23 19:35, Trilok Soni wrote: > On 10/11/2023 2:47 AM, Konrad Dybcio wrote: >> >> >> On 10/11/23 07:40, Mukesh Ojha wrote: >>> >>> >>> On 10/7/2023 5:02 AM, Konrad Dybcio wrote: >>>> On 3.10.2023 19:54, Komal Bajaj wrote: >>>>> Add qcm6490 devicetree file for QCM6490 SoC and QCM6490 IDP >>>>> platform. QCM6490 is derived from SC7280 meant for various >>>>> form factor including IoT. >>>>> >>>>> Supported features are, as of now: >>>>> * Debug UART >>>>> * eMMC >>>>> * USB >>>>> >>>>> Signed-off-by: Komal Bajaj >>>>> --- >>>> [...] >>>> >>>>> diff --git a/arch/arm64/boot/dts/qcom/qcm6490.dtsi b/arch/arm64/boot/dts/qcom/qcm6490.dtsi >>>>> new file mode 100644 >>>>> index 000000000000..b93270cae9ae >>>>> --- /dev/null >>>>> +++ b/arch/arm64/boot/dts/qcom/qcm6490.dtsi >>>>> @@ -0,0 +1,94 @@ >>>>> +// SPDX-License-Identifier: BSD-3-Clause >>>>> +/* >>>>> + * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. >>>>> + */ >>>>> + >>>>> +#include "sc7280.dtsi" >>>>> + >>>>> +/* >>>>> + * Delete unused sc7280 memory nodes and define the memory regions >>>>> + * required by qcm6490 >>>>> + */ >>>>> +/delete-node/ &rmtfs_mem; >>>>> +/delete-node/ &wlan_ce_mem; >>>>> + >>>>> +/{ >>>>> +    reserved-memory { >>>>> +        cdsp_secure_heap_mem: cdsp-secure-heap@81800000 { >>>>> +            reg = <0x0 0x81800000 0x0 0x1e00000>; >>>>> +            no-map; >>>>> +        }; >>>>> + >>>>> +        camera_mem: camera@84300000 { >>>> Uhh.. this is totally not the same memory map that I have on a >>>> random msm-5.4 source+devicetree drop (which does in turn align >>>> with the one on QCM6490 Fairphone 5, as it should because it's >>>> a rebadged reference device for the most part).. >>>> >>>> Did you guys *really* redo it between software releases? >>> >>> QCM6490 fairphone is special case where same SOC is used for mobile >>> product and it uses sc7280 memory map. >>> >>> Current patch adds support for the same SOC marketed for IOT segment >>> [1] and very active in the development and soon going to freeze its >>> memory map, so we are deriving memory map from sc7280 and creating >>> a new memory map for all IOT product with qcm6490.dtsi . >> Stop reinventing the wheel. I'm not going to accept patches that are supposed to define ABI for products that are still in development. >> Not unless Qualcomm changes their attitude towards unilaterally breaking things for no good reason. >> >>> >>> [1] >>> https://www.qualcomm.com/products/internet-of-things/industrial/building-enterprise/qcm6490 >>> >>>> >>>> This SoC family has been on the market for quite some time, >>>> breaking software expectations like that is not cool, especially >>>> on a product with a promised lifespan of 10 years or whatever! >>> >>> I agree, but we are not changing anything for product which are there >>> in the market instead defining a new memory map what is going to come >>> with qcm6490.dtsi for IOT. >> Why would the OS care about the market segment you're targeting? >> Why would the firmware you're building care about the market segment you're targeting? The LE vs LA vs LU vs WP vs whatever split is so unnecessary and arbitrary on the firmware/kernel side.. >> >> The firmware should either be fully relocatable (so that dynamic memory reservation can be used), unified so that there's no changes or better yet stored in separate memory so that q6 cores don't steal the RAM that the user paid for and you can do whatever ugly magic you please in there. >> >> This arbitrary segmentation makes it impossible to have a common base, or to explain what device should go where to a newcomer. > > Konrad it is possible to use the same SOC with the multiple segments w/ the different memory maps. > > Memory map here is how you organize the DDR and give it to various S/W and DSP regions etc; > > Also these SOCs are around for sometime and it is possible that new segments may use it. We can't solve > or know all the new segments need when the SOCs come out. Memory maps does provide that flexibility > and they don't change often. OEMs has also some flexibility to change the memory map if needed to optimize. > > This SOC is around for quite sometime new usecases are expected to emerge. I don't see it as > way to stop us from taking these contributions into the linux-arm-msm. Yes I was way too harsh *and* didn't even clearly say what made me upset, please see my reply at: https://lore.kernel.org/linux-arm-msm/01c7a346-1e8b-1767-7594-c8adcd4823c3@quicinc.com/T/#m717a0f6f6759606870a1f8c1383bc65408d8de07 Konrad