Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp920070rdb; Fri, 2 Feb 2024 07:59:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IG2Ewj9ixBnH33iPr7Xsf+CJrMpEWB0tUBmuJ/z6woWReE5Rr/TG3+/hV7UUeCBKOjluTmq X-Received: by 2002:a05:6870:9d86:b0:214:fbcf:4a4a with SMTP id pv6-20020a0568709d8600b00214fbcf4a4amr106443oab.2.1706889590430; Fri, 02 Feb 2024 07:59:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706889590; cv=pass; d=google.com; s=arc-20160816; b=QZ7G70iIJ4+U7owLEhUCBNc8uYs6OZb1uhgP5i+m/7sgf/pUygujMXcP4uLr2+gvEC +lkbhZq9UqS2np/VWt0KWrQ3KvgIGvM9z/sn2zVKmPT8I3kmT7xR/tgf0wLGQnmLQE8Z 9/Zbt5hS+53D7tnvbJ0ZycoqVnkGzBbYmCHSf+UpaG3xJmt8kCmFHL/7j6CMPyHKr6bx oP3swC0aJxX0Ur/5OMCWh+U/V1MhDrLrUFgrhDhqERLxV7q88O4uYC7GINW/0iXW7NWy kXpd93dbWiaLln/JArO5KoiKrlpS5YxvQR4qB+uGbmJ6T5W7KxEhhgAjVOIw8PtPZfvP 5mIw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=CFtDJ049GnMFYlEV6vLRg/Zh5NxrePWpNQeg1PHu2Po=; fh=dMVMKdtWgcZzNHMncR7rmUvXGVC06Ua5ET+vHHTQYIk=; b=We+zSorWD05rJU/l8A49ZhB4k6cf+rStSQSPKpwWnUvtg1w0zIXKrrnfiTp9w/mPgP J6xcd5qLvTqAB2NoJ8/Hw/x+0VeCN+u6CcwDArHfYnQTWuWYaGNjJPOWqpRUyKVfWyy0 rNUeubKp/uXQa9rKt1agyexwCPGWxo7IXS0qTGuZLlha3lVWKDkgz4BtATvCtG6qrp7S o4mGwyEwRKr01gN01gXu6ytwtQJt5YlEfKq5v7+qjtyOYLu5HurJjrJyl+RhkcsBQiUj EeiaZu8ycIcaqWE4kBt5aSB80iSyyIozvNMngPpCXIxfaFD6kGRNud8vHxyIbHkvFPw4 BI7Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=BNSjVBBx; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-50063-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50063-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com X-Forwarded-Encrypted: i=1; AJvYcCVq57qaCk9W1eZGvjtWRJQzkrSwvb4G8rM2Qa6Cj/yTjzJVSnkI0bVqtb5/lJjgcvAVPcRh1eUqJiooGuzffb8diJgkbMENTBicP4CS2A== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id e20-20020ac85994000000b0042bea9dd50bsi2270520qte.703.2024.02.02.07.59.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 07:59:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-50063-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=BNSjVBBx; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-50063-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50063-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 20DCD1C24C7A for ; Fri, 2 Feb 2024 15:59:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 26D851487F4; Fri, 2 Feb 2024 15:58:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="BNSjVBBx" Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C6C881474B9; Fri, 2 Feb 2024 15:58:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.248 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706889515; cv=none; b=tkC1LjrNs6zMOj5SC9DFIvD/MPM1qiSyZDCX/fHt3TNYDsoEb/SQj04BoiL42eTou23cpxUlLgFdJJphDggVx46Ye/pHb5CjdRI9halWF5FaSCn9RqWY5VtNOPoyhylwd5vXGZDIslHmtZJaP3Z35p6qaU/+VX85l9yFbV3pJ6k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706889515; c=relaxed/simple; bh=dp75bwXX7tIHfUVH1f4OXG1r3cVmLUBPJ3pB0Cvd8pM=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=s6Z8O+BiwuVc0qViESdXE43Y+Zhq7BrZbJXQpDzdQ4ZVCBr9uo4rGE+O8k7Zm513JX6UX+0VTLkurrROFLO1OYSGOOlol1gJxuKC0YcALDeZkBWwal+w68Wv1JAszK1P5peyJuYjQQILRKBm0/cQLMNXjeW7R+4LDsqfuw60g4o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=BNSjVBBx; arc=none smtp.client-ip=198.47.23.248 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 412FwEnk129851; Fri, 2 Feb 2024 09:58:14 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1706889494; bh=CFtDJ049GnMFYlEV6vLRg/Zh5NxrePWpNQeg1PHu2Po=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=BNSjVBBx41adwlfNt13ZMwaQFcTFADAHI5TwE48SiiIxYK+CxbtERMb/fPx3jZJyQ xAFIYsrk5A6gPs1jF+duNEYl1TUhmu2/CcqQ1o2d9PScKP2Wut7I+w/FiEKY2IcPxN p0eL0z11/W9IfBncRZWAdKkLQTbyV99BB1EL6Y2k= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 412FwE3M086792 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 2 Feb 2024 09:58:14 -0600 Received: from DFLE104.ent.ti.com (10.64.6.25) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 2 Feb 2024 09:58:13 -0600 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 2 Feb 2024 09:58:13 -0600 Received: from localhost (uda0133052.dhcp.ti.com [128.247.81.232]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 412FwDum074625; Fri, 2 Feb 2024 09:58:13 -0600 Date: Fri, 2 Feb 2024 09:58:13 -0600 From: Nishanth Menon To: Krzysztof Kozlowski CC: Brandon Brnich , Nas Chung , Jackson Lee , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , , , , Vignesh Raghavendra , Darren Etheridge Subject: Re: [PATCH v2] dt-bindings: media: Add sram-size Property for Wave5 Message-ID: <20240202155813.szxvi7bfp5xh7rvw@babble> References: <20240201184238.2542695-1-b-brnich@ti.com> <1209b7cf-5be2-4107-aa6b-d67a32ea3737@linaro.org> <20240202125257.p4astjuxpzr5ltjs@dragster> <8091a8cf-c1c0-49b0-b136-1ad0d185aa6a@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <8091a8cf-c1c0-49b0-b136-1ad0d185aa6a@linaro.org> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 On 14:56-20240202, Krzysztof Kozlowski wrote: > On 02/02/2024 13:52, Nishanth Menon wrote: > > On 11:47-20240202, Krzysztof Kozlowski wrote: > >> On 01/02/2024 19:42, Brandon Brnich wrote: > >>> Wave521c has capability to use SRAM carveout to store reference data with > >>> purpose of reducing memory bandwidth. To properly use this pool, the driver > >>> expects to have an sram and sram-size node. Without sram-size node, driver > >>> will default value to zero, making sram node irrelevant. > >> > >> I am sorry, but what driver expects should not be rationale for new > >> property. This justification suggests clearly it is not a property for DT. > >> > > > > Yup, the argumentation in the commit message is from the wrong > > perspective. bindings are OS agnostic hardware description, and what > > driver does with the description is driver's problem. > > > > I will at least paraphrase my understanding: > > In this case, however, the hardware block will limp along with > > the usage of DDR (as is the current description), due to the > > latencies involved for DDR accesses. However, the hardware block > > has capability to use a substantially lower latency SRAM to provide > > proper performance and hence for example, deal with higher resolution > > data streams. This SRAM is instantiated at SoC level rather than > > embedded within the hardware block itself. > > That sounds like OS policy. Why would different boards with the same > component have this set differently? Based on amount of available > memory? This, I believe, is runtime configuration because it might > depend on user-space you run. Based on purpose (e.g. optimize for > decoding or general usage)? Again, run-time because same hardware board > can be used for different purposes. > Why is this OS policy? It is a hardware capability. Traditionally many similar hardware blocks would have allocated local SRAM for worst case inside the hardware block itself and don't need to use DDR in the first place. However, for this hardware block, it has capability to use some part of one of the many SRAM blocks in the SoC, not be shared for some part of the system - so from a hardware description perspective, we will need to call that out as to which SRAM is available for the hardware block. Why would different boards need this differently? simply because different cameras have different resolution and framerates - and you dont want to pay the worst case sram penalty for all product configuration. Further, Linux is not the only thing that runs on these SoCs.. these are mixed systems with autonomous operations of uC cores who may or maynot (typically not) even need to communicate with MPU to state which part of resource they are hogging (hence the board level definition). -- Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D