Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp765038rdb; Sun, 18 Feb 2024 10:35:57 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU0yJxvS0SSBrGpTl0E4UN91XXAHrcV6AGBvK92N01FicZMvDqh0JwulPmsWT6ckZYo/iReKhGlW1eHLSNBtW+ID6tt60jMqP17wttzuw== X-Google-Smtp-Source: AGHT+IEFOoGmqnNI/H/j+120G5ulmTnAb4yIvqiGkk/G20fqVfSvFXsXwBA8I9wr/Ftd49GA6M3R X-Received: by 2002:a05:6870:230f:b0:21e:a71f:d7f4 with SMTP id w15-20020a056870230f00b0021ea71fd7f4mr3672302oao.11.1708281356810; Sun, 18 Feb 2024 10:35:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708281356; cv=pass; d=google.com; s=arc-20160816; b=UGnUnmNQ9OonogQ/ETQtAba9dTznU7TZskOjOSNiIpOtZo8WMXCrQjuR49KvV9StrR KT6fUOlh7OMYG8qU5dUHjs8epXxXSLQhD8/S0re2DL8LHRKWHhFxUuhydgAkGvi5szcv hfYN3uRFTzwTJy9PykD5q/b/csRDjhR7E+cjcZl6ffD1Q5QLdgdiEpaPfOO0cGVlJwpD VOOPQjtso/NQEqWim8KNRHEbI6ubtA1C5vcoZtteF8h2T4oOR+JHT4hziIhytFnse2hA LN0HuPa88oLfk4j8e0l3Q8YnJAx3N0JPtTYUg63L2djfJcNCDKbMIbUxWda8G3gXRGSs SZUA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=HmhsdjiVydbji9/BcSZQ8XMnnQqt5AZTtEIoi8Kez+o=; fh=iHfOn4+xvzNg3FSD6j9VoB6BK4E1LzI3O/MiyHoKXIo=; b=Wy/3iUV7AeE2qoAvTXEHhg/BybaQVzfZkcs2Bo4VOn47Ha2m5MXmhl2Mf8Yl6ESyqQ glOmE8NGFHcwMpH754Du3MTM2ewJiRa6XkcoExf6S5c5rEtFpQedEs3EVQOxuysrUyrI uYNci9/2cZreptMwS7f4G1TGa7XEar6YmgWNcpqDx34OAKuqJGahB2WBUD4S6chLyDkm JaRu+DV/vmMk89Q7h182N/7Cs35y/jlMmC6USCDcRpYDlUxEDKHj4FF6CnIXTjaJeL5N xcGrlL+t/oaD8RT77JeCZ102xRIpFqB7KX0pZUSFM11/ySCPMcny1sptkzfNbO3SOfCO zuqQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Snso/58g"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-70492-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70492-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id l6-20020a656806000000b005dc4b41e2d0si3153163pgt.591.2024.02.18.10.35.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Feb 2024 10:35:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70492-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Snso/58g"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-70492-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70492-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 36048B2125D for ; Sun, 18 Feb 2024 18:35:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C6DF6F06D; Sun, 18 Feb 2024 18:35:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Snso/58g" Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C53821E87F for ; Sun, 18 Feb 2024 18:35:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708281341; cv=none; b=al6cPUit98ClpNum2JiSprc5aOTKL7D5X81pHyCPmunbM3DBFV6sGDScc4hQ/tpK9s7aaJ9KeIloZPdfR0UN6YDunxxnU2Uv8E71166oUDcJMIb+11X22JlLyj4ZkRWKMvhKDTVLI+WumvIyzN1O/sLQxzVEnmaV9m8+9HPYEGg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708281341; c=relaxed/simple; bh=IELhMP2AeuGkk3hZA0BPNHxnwCFGw2GFPgU0FluDnk8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=F7LLq4lk7D+hkE8bfXWyT/cbHwavt3q+q68l+UtTu9Iddn/hXoHS+gFLU2BZg1k5StEF1a8v8AxiPFC4ct7oA3qUiPE7Q/VT8YcKGp8C6Bg+mCcDnOAQfEC77FsN7Psr2IV6lCBJKJmnP6nTNLknguUq+41hAxHErJT2El8Emao= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Snso/58g; arc=none smtp.client-ip=209.85.128.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-41263e8b7f8so3143205e9.2 for ; Sun, 18 Feb 2024 10:35:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708281338; x=1708886138; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=HmhsdjiVydbji9/BcSZQ8XMnnQqt5AZTtEIoi8Kez+o=; b=Snso/58gwtZ3uqEfEGIWf9bry0jm02h4kDenwQUu6FR3mSiQSk9SwNrR2ZZRk7AQUi AQ7CnNowb5FInlDtIJ0s2o5DbRJqiOs16ZVSXbSMJHSJHXvxfVlC5LacriiCVR2YLXZ+ Si1uEDMxW0tI6yX7rxbuaXXdPW1O819f4NprROqx1G9m44byg2awZUJMhorMrKudEGlI XVdLTBEPwWN+bFMXudbeO8Z9Il9ltCQQMt9vLgokdTR+v9rybIjon4WI1rPXzuGVeYYl I5/M5tAHzij5He2ZnFHSYnp4eeAtRPRqUXkgpJoKeAerxnlZi/nwrHbaNYxqPgLYao6a NtIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708281338; x=1708886138; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=HmhsdjiVydbji9/BcSZQ8XMnnQqt5AZTtEIoi8Kez+o=; b=ERHd1CVWWPKI1USWfIRhcBAX8+gckbT0QFq6BiH/bdol9XIomNfk4A0VVzTAJigFuO gg0fC0j+VLSWFqeG5q+B4ua+gNzVf+C8E1jvBjavdpco/SBCEH80mW+ToBdyYpra7DHB cOaG6cwM7lu9Jv7E500RFoHZ++1qSp9htQ3Pq70KdBPeHj89UyTUmGmPPfYvmNcdjVMD UgWwBGuXvQkUmhMDihLqoHI33QPp02LK8eduHaPev03Vo+8GiG+wgT9Mlncpi+DqhnYW myaZwQYXEXrLzYTWZK/oUePrA9dHcle4QC2hqXh7+GhU4gytSedF5ToIzQ1gTke7sWLQ zB3Q== X-Forwarded-Encrypted: i=1; AJvYcCWuUI9CV43mt5xyOXbtH6StfT2Kfw+xtJT/N0KaOyW+wp4Q7QQoo2DigYe5qGPqfYB8oUmBwTLfkKevcUE6hLafLXsovPBCJEBKxJVD X-Gm-Message-State: AOJu0Yy7837Mh5v4DfjRNxdOgzQAtnHo7holagdm295T7SiX9ZDoAkVr NLXA6Czh1sF5jJ578JRBXjZ3Bgjz6rJHcNTokg/NrQALqHxHtxiuvidANKNT1A27KwRHaT683rD TXaQ= X-Received: by 2002:a05:600c:3502:b0:412:aec:2cfa with SMTP id h2-20020a05600c350200b004120aec2cfamr8677926wmq.1.1708281338234; Sun, 18 Feb 2024 10:35:38 -0800 (PST) Received: from [192.168.1.20] ([178.197.222.116]) by smtp.gmail.com with ESMTPSA id l20-20020a05600c1d1400b0041256ab5becsm5990592wms.26.2024.02.18.10.35.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 18 Feb 2024 10:35:37 -0800 (PST) Message-ID: <6ac4005b-01e6-48c2-971e-d6a127134d13@linaro.org> Date: Sun, 18 Feb 2024 19:35:35 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 1/6] dt-bindings: cache: Document the sifive,perfmon-counters property To: Samuel Holland , Will Deacon , Mark Rutland , Eric Lin , Conor Dooley Cc: Palmer Dabbelt , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Walmsley , linux-riscv@lists.infradead.org, Rob Herring , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org References: <20240216000837.1868917-1-samuel.holland@sifive.com> <20240216000837.1868917-2-samuel.holland@sifive.com> <72221da1-4a1a-4947-a202-9de203032f5c@sifive.com> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+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zqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <72221da1-4a1a-4947-a202-9de203032f5c@sifive.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 18/02/2024 16:29, Samuel Holland wrote: > Hi Krzysztof, > > On 2024-02-17 3:00 AM, Krzysztof Kozlowski wrote: >> On 16/02/2024 01:08, Samuel Holland wrote: >>> The SiFive Composable Cache controller contains an optional PMU with a >>> configurable number of event counters. Document a property which >> >> Configurable in what context? By chip designers or by OS? Why this >> cannot be deduced from the compatible? > > This parameter is configurable by the chip designers. > > The information certainly can be deduced from the SoC-specific compatible > string, but doing so makes the driver only work on that specific list of SoCs. Usually that's exactly what's expected, so why here usual approach is wrong? > When provided via a property, the driver can work without changes on any SoC > that uses this IP block. (None of the SoCs currently listed in the binding Sorry, properties are not a work-around for missing compatibles. > contain a PMU, so there is no backward compatibility concern with adding the new > property.) > > My understanding of the purpose of the SoC-specific compatible string is to > handle eventualities (silicon bugs, integration quirks, etc.), not to > intentionally limit the driver to a narrow list of hardware. Depends what is the hardware. For most of licensed blocks, the final design is the hardware so equals to its compatible. Best regards, Krzysztof