Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp693631rdb; Sun, 18 Feb 2024 07:29:25 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVKz9P4xrAvlXJsWwLiXulfAQCHf/E5TT/EzgJjqU+2NmX2NgcaEWNCJ7cyjzY6WGArLSqbtKbHEjDJI1OuU4IduJ1cZQCTepcOVli+VA== X-Google-Smtp-Source: AGHT+IHSljhDlBFVjDUoMMyqHlcE6uW+RoaZxfX5ZtvCvD6V68BIeKRpdZnfZsbooHHMnsHYC7Sc X-Received: by 2002:ac2:4311:0:b0:511:ac6c:2b28 with SMTP id l17-20020ac24311000000b00511ac6c2b28mr6107064lfh.56.1708270165263; Sun, 18 Feb 2024 07:29:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708270165; cv=pass; d=google.com; s=arc-20160816; b=KsFsl3kPmEPFz/iX/tll9OykdxXtF9ID/3C1is+myFnsfoQjIsYqb8dnhiWjl3X8/y zRIde5KATjqR8TBijvv3rgyI85PfvdZog8JRoEr/KyHDWvip+Ag2+w0aJOWG1OlxWr3+ ab7DhRKpE3n3gO0pQBJ5TGsNX6zSC3cx5YYmpB5ZtTLLzzeoo+NovtOKcEi9SZ4q9d8S EYeETdhHM7Kfxr+yuwyhLQYO74gt7sJXHJ+xMmFt4A5nis3dVrMBaRZyogO0Y/Wb7nN1 13MHevfxVpLxKa2kH8v3dtzB0aQ2ImGBxa43ECGBNU5u/7Ih0GkMW9gKunn6/ZEKBhjp zqYQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=sA/SDVQnKOxW6UupKa+w/g4FZh2wW67n4R63yMQWkV0=; fh=pXFZn8Gu8JR6vcieqznoRu+ZX9xhbz1QzS7VC/0pTyA=; b=vB7RgtmoF4a4Ve5ECiiOQ7W/3dUHcOptv9XdOY+4idMEBw0R14iEDTvecvdDOc2RUC Tl1L4J7PHpgO97z+SLaIpOAyQlJf26F0I/V8PqoG7rSJ6k9eTxxFgXZjdZUbIRhv98YB KHYtnhwzL1zN2CSjcoTdxKZvrAJy3bDN7jy33Z6subByys3/4MjsJI6NIaWT+LpNBUe5 z5kVc9dX2WQq/eu3Z2ahf6TRFUpjwhfEv53r1DurtFvuGtDqXkEpyoeHahJy5zUdp1OS vdZMDiBxUII77XMgnNlLA5rCiZdwkDCKUMvBuycWjJMnOTq8zTftRxThB/wvWvaQ+hqz c9dA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b="Fc5/yTsJ"; arc=pass (i=1 spf=pass spfdomain=sifive.com dkim=pass dkdomain=sifive.com dmarc=pass fromdomain=sifive.com); spf=pass (google.com: domain of linux-kernel+bounces-70429-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70429-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id cf25-20020a170906b2d900b00a3c7789a356si1676763ejb.1039.2024.02.18.07.29.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Feb 2024 07:29:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70429-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b="Fc5/yTsJ"; arc=pass (i=1 spf=pass spfdomain=sifive.com dkim=pass dkdomain=sifive.com dmarc=pass fromdomain=sifive.com); spf=pass (google.com: domain of linux-kernel+bounces-70429-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70429-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 037E51F2133F for ; Sun, 18 Feb 2024 15:29:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F0FD76D1AA; Sun, 18 Feb 2024 15:29:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b="Fc5/yTsJ" Received: from mail-qv1-f53.google.com (mail-qv1-f53.google.com [209.85.219.53]) (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 97AFF6BFB1 for ; Sun, 18 Feb 2024 15:29:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708270156; cv=none; b=XaAWEK83rY5tkUBAsZSWV/+cNgMuNu6Gul7GqOGct9HuUbS/jrOTaUi4RwmjGCZw0qT18+6RSbdmB5nhzIOGA0Pt3kbejD8y4jRNeGyiK6c6Tv5/MHsM27xuJ7EF1lVbW1WOvMxP+ZGkuwnF7ZJXsQSqPRkkVGhBuYd8kvGwjZw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708270156; c=relaxed/simple; bh=9/2GDui5xVzR13Pfxw4J5DVBexEGAcZ8LxCEuKyJwhg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=SzImZmNQxbIGlzoqlXoHQMjfVRZTtyRYlRZGUCnOk1uJ37Ye6iz9BRu/FP45DVnkyzeE0AVyW6E2ILwnDLv231qGoYmvw/lOWU8fkgtWdCSDVLoaS7KaI9ix+Oat9SoK1+dkz7ognQmxe+SYl3vDCAlndzRJuHLUiF6lBtvD4V4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=sifive.com; spf=pass smtp.mailfrom=sifive.com; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b=Fc5/yTsJ; arc=none smtp.client-ip=209.85.219.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=sifive.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sifive.com Received: by mail-qv1-f53.google.com with SMTP id 6a1803df08f44-6869e87c8d8so16323466d6.2 for ; Sun, 18 Feb 2024 07:29:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1708270153; x=1708874953; 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=sA/SDVQnKOxW6UupKa+w/g4FZh2wW67n4R63yMQWkV0=; b=Fc5/yTsJ3GWa1Cy0OThCksjitqfmFGjb3OoOScWNYngPFKArf8536FR/AxRLkfLCSX cNvnZ2LH2xNt03MO9t3MPSaLZJGLhXqCC0nza2ZROJpjyi4xJTNFfQoP6AYQLKjc0CwY VD9CUGvKYMzjEhoK4vE+UgyIbUiFH22BZhRDCDiUbjHCI5fQoYn16AVo/YN4A4CsX5fA 3ETb0/vJUFqwud88BTKelg9axsDOP7Y3sUo65Kqz0PmWdHQNiCSb51EQVSl7GqqccIuS l/EMBqeR4j9iwNG/cZHArOLwiN/gTvNfi5g9XGMaYmm7l12vArled+3seO4R1+9ePICT oobw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708270153; x=1708874953; 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=sA/SDVQnKOxW6UupKa+w/g4FZh2wW67n4R63yMQWkV0=; b=OlQMQVs3rCiryOtmnGNQCOmpD7buvVdXWtVmmA/BHT8iYSvHtZsaZjsZBH4+aJztPn mPIQMklnDbd0Jy/7BvB62TzXoibJXSeVKQPQW9DxitVwaKCoQuY14d/mxZnr4r4hULK3 8L2K6I3yJ/+IvDhvzfu1fOH7hwUr30ezy07TY0PT9IBFnoyF0dNdVPKPr47hx/p7VYWx Vr2vMZDU6bgZmGCCxWGr1dGcU2FrdhU+8CXNcxZ1RYfG8p0FOkqkCe/rLch4tPeYJ/IT vrm1VpVBlQOzu9HtWWVyc4BTUVN/dUA9NXVDuvcJKcCXjcXpgBmtoprO5ZmHJ7R3xrDA rSLQ== X-Forwarded-Encrypted: i=1; AJvYcCWC0+57Nr0Z7slhmSs2T8no4+XkfPuUz/Fu4GTUjMZpu6CciuNE5VXGHME3Ku2cd4L1PrFqXfrsT7YKt6FZwSc/z08tHjwnqUcovhAo X-Gm-Message-State: AOJu0YzTs4XkwAR5OAV0TSmmBtJZJ0MtLEfrZiPJUCH1unm6zRJeWWFu +BvxatUT0X19i+oSzs+2iP30ELPQA0D6q6zTCUfnHLInLVnmqA2qO2njwbd0Tfw= X-Received: by 2002:a0c:dd91:0:b0:68e:fcc4:cb22 with SMTP id v17-20020a0cdd91000000b0068efcc4cb22mr10908385qvk.35.1708270153536; Sun, 18 Feb 2024 07:29:13 -0800 (PST) Received: from [100.64.0.1] ([170.85.8.176]) by smtp.gmail.com with ESMTPSA id lq2-20020a0562145b8200b0068f4659b8d0sm1741150qvb.107.2024.02.18.07.29.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 18 Feb 2024 07:29:13 -0800 (PST) Message-ID: <72221da1-4a1a-4947-a202-9de203032f5c@sifive.com> Date: Sun, 18 Feb 2024 09:29:11 -0600 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 Content-Language: en-US To: Krzysztof Kozlowski , 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> From: Samuel Holland In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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. 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 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. Regards, Samuel >> describes the number of available counters. >> >> Signed-off-by: Samuel Holland >> --- >> >> Documentation/devicetree/bindings/cache/sifive,ccache0.yaml | 5 +++++ >> 1 file changed, 5 insertions(+) >>