Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp306377lqd; Wed, 24 Apr 2024 03:00:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVKdQwUHGMCdUSS5jL8h9KbZhMih3S30oF2VbcHRK1f8C7k+1i5jmG7706hNC2cuDVCEiH5wVMZFbWLSFHY9OX8tbLRJhjuu44BSZSwLQ== X-Google-Smtp-Source: AGHT+IFNn/Zm4VaWPKP4ChS87JWWlAj83tGFCpHK71vAXk6kCkbwj3SnFPv3g8wMcHCiU87ZoljS X-Received: by 2002:a50:cd14:0:b0:570:5b72:164 with SMTP id z20-20020a50cd14000000b005705b720164mr1208033edi.37.1713952809682; Wed, 24 Apr 2024 03:00:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713952809; cv=pass; d=google.com; s=arc-20160816; b=cRVmBYC5PAupA3w5BXt5jGcQXcmsQIeaODMiv5JBLNABi/uIIgtQ865gSbYwfWlDzE dhCaWmz7TnF+kRj7m8Oin6k4deE0MDgJTq2zmW6h/uH/v6aKNENQn04rAMy9LR7mvgCN UPHpX0KPxaT5tcAR/Wg1RAo8CqxYnNzCdROQw/VN31U8h3gXXDg3R3rbwbEqirMfCXum d1l5dZI0IIsbo2N4XxyYdrYRWyE/f/Cr160qh7eu5TL3+ueEp/6ne/rKYMjpycI+uF8Q R9tjCEzMsMSpMmM1q/+mDDeUiQIF7CsxyRJU+c1wjV4NIdFp0WotasZkCRoNsDMZ5z9j IFMA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:from :dkim-signature; bh=S2dZSeR9LCzi8J1OpoztZzAdz+9TX12tp6NKUBGWijE=; fh=y/Ih650jo30V46853SSvQLic6OHoxbNBzKvbEMe3FQ8=; b=eYr98IJag0POsjcH+FkBGUQzWJssB5T1Fs0c0JJauuq687TJw9aNkGJ6Wh/WvJf1O7 FJPN953VZeNmZWCywLaHnfggOiDovj7Yl6G8AUB15ZtGP1RQQdnWQilieM9qxz2k86Vi yNY11q2JsyHK6MIpZehEz5gV4v12Q7ZNjTQm0pagpq+zDlXzCG4tU5VAJxO8WQHXfWdy lNqjUoh0/yUaq+Prjhos94NZGsY83xpMlU5nyT+qN2kHEBMjsZSXG0KqyLkZ9I6defj3 wck7qsHYHvolKKex9cWvyAz2SJ3cT9JHQkO1DVulVJDr6LhnB+B+X5DTpWp9Jo6WwDJN 9Acg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=WEadfsC7; arc=pass (i=1 spf=pass spfdomain=canonical.com dkim=pass dkdomain=canonical.com dmarc=pass fromdomain=canonical.com); spf=pass (google.com: domain of linux-kernel+bounces-156679-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156679-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id y26-20020a056402135a00b0056fd9133134si8553647edw.9.2024.04.24.03.00.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 03:00:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156679-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=@canonical.com header.s=20210705 header.b=WEadfsC7; arc=pass (i=1 spf=pass spfdomain=canonical.com dkim=pass dkdomain=canonical.com dmarc=pass fromdomain=canonical.com); spf=pass (google.com: domain of linux-kernel+bounces-156679-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156679-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.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 687201F244EF for ; Wed, 24 Apr 2024 10:00:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7880C158DDC; Wed, 24 Apr 2024 10:00:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b="WEadfsC7" Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) (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 5F7DA282EE for ; Wed, 24 Apr 2024 09:59:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.125.188.123 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713952801; cv=none; b=LTFuYX/gbBe5naQKgPfPrRCq5ei/HOcLTlzMfzqg5OmYubrwrkwiyBsFwPahOOjTvjRcwSoo7ytW8kKs9SNawfWiHBaKVC0m/+nwcSGWVExOKV2Kg8mTYSpxvxUlFQN6kNvol2V6D2URRq5ivu5ns215p1dPLHFMvwcl3aS8UdU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713952801; c=relaxed/simple; bh=Ux7ls70uZC1fOJGQnu98hEvKQEH6QOpdA96fV34/2nY=; h=From:In-Reply-To:References:Mime-Version:Date:Message-ID:Subject: To:Cc:Content-Type; b=JAeWruIbrwiHSJHetW/eYPCjthP3U6d8+HrDprccmnzfV1m+pOLKnQW1+gtqvZlKKoJztAhmhAywIC4NMuzRhFAVobYoYbVzOcqBhTBO53FJ8nni/JtTKy1WOqGywdJJEqijzJ4U6dpvyDzFoK7ftCTaWGVIw0o3lcsk+wKpSdY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canonical.com; spf=pass smtp.mailfrom=canonical.com; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b=WEadfsC7; arc=none smtp.client-ip=185.125.188.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=canonical.com Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 341743FB77 for ; Wed, 24 Apr 2024 09:59:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1713952796; bh=S2dZSeR9LCzi8J1OpoztZzAdz+9TX12tp6NKUBGWijE=; h=From:In-Reply-To:References:Mime-Version:Date:Message-ID:Subject: To:Cc:Content-Type; b=WEadfsC76zjEwReLrXF4EdNY6e2KqKdUpvYwl497JQ+VkN/NdEmR6Fu+PI61JStRB znZuObYg7RuRexz2sRUM/dK/P/fcR3pe5s/f4QibPzQaLPEXTYYMsvOjIWE66wVZGH L/8qClmTE09I2t84OVf85/Osmk1B+7+cosjTrvrpX0IzeJ1sikt/UfC+XAQZsYxcl1 PpsdEsY7GcFudoimv+YNCpp96UbdWeP0V9z11hu1Xsa2EuZxMCMZGi+w2ILiF2DHR9 /pOSnHnKsbvHod9nNWoxKeFrGU9A8RN5RCFzCZcpGLQ3XOl4sqlVtvDOfBUf+qjHIG rhKECOjnZsCiA== Received: by mail-qt1-f198.google.com with SMTP id d75a77b69052e-43a2aab079cso2403111cf.1 for ; Wed, 24 Apr 2024 02:59:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713952795; x=1714557595; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=S2dZSeR9LCzi8J1OpoztZzAdz+9TX12tp6NKUBGWijE=; b=abiU9pqyjnuMgwL65KdsrZxJhoElZ/ZFvMEE6fTiRwDmB81SiAxrPcG8jbt01NLxi0 x1/JjCtqAh9vneuGlLWOufkO/yJ+V8LtfTUJwxWbcBh0CSC1n94I7KRncaCVFBhmQxiA WvLONsMRfIS1wirRodMrH4SlG96UsKEMsJEtCs1UsuAnhnVKEYd3FQdbJyqAgC67BIuU pkMYkqFzwZpceuxgxckL5GxX1xvlknqhkyMlNeXqsejumUgcieH4iuV3MBa0DbpMqsQb YegkG7VuoIwz8t6eTjihCFMnEqCq5i9tXS2PnGlnAenTGOD1dLv8sD1MUBCa/cMhJ09/ 4WTA== X-Forwarded-Encrypted: i=1; AJvYcCVk1QsHXMyPNDOWyYyWk7/FVj3/OVJO6WKgJYTM2fImx4Sy6r4L5HBMRwxdq0LKbzNmNpS2ipcIqmNAu5qkxERE/uAbL7LSNfbt8KXy X-Gm-Message-State: AOJu0Yz78flUXyVFuuj1PVHNmhMwkSn+0sGGlXe9XFhZbPWK2jVt7wiV CPLpQZNqrJLNA/lOAMJvKOE9ihhPDv4nB4UPcJXe4ntrO8Y+kPtviW86at/gxmQqwD6taQ2o+dG xqRaOREayPuVQi6485fHTYEZadHVle5o66VflnjigwSGQPgRPJT1v7Z2JcwktjEo2KqrJnfHxZr VU5phFwUSAHAPRBWCrMrSLRlTVg1VSIz1pFcJKcCGW6132freY+HAu X-Received: by 2002:ac8:5fcd:0:b0:439:2dd2:8c29 with SMTP id k13-20020ac85fcd000000b004392dd28c29mr2632662qta.53.1713952795217; Wed, 24 Apr 2024 02:59:55 -0700 (PDT) X-Received: by 2002:ac8:5fcd:0:b0:439:2dd2:8c29 with SMTP id k13-20020ac85fcd000000b004392dd28c29mr2632629qta.53.1713952794863; Wed, 24 Apr 2024 02:59:54 -0700 (PDT) Received: from 348282803490 named unknown by gmailapi.google.com with HTTPREST; Wed, 24 Apr 2024 02:59:54 -0700 From: Emil Renner Berthing In-Reply-To: <20240424075856.145850-1-joshua.yeong@starfivetech.com> References: <20240424075856.145850-1-joshua.yeong@starfivetech.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Date: Wed, 24 Apr 2024 02:59:54 -0700 Message-ID: Subject: Re: [PATCH v3 0/2] Add StarFive's JH8100 StarLink Cache Controller To: Joshua Yeong , robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, conor@kernel.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, leyfoon.tan@starfivetech.com, jeeheng.sia@starfivetech.com Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Joshua Yeong wrote: > StarFive's JH8100 StarLink Cache Controller flush/invalidates cache using non- > conventional RISC-V Zicbom extension instructions. This driver provides the > cache handling on StarFive RISC-V SoC. Hi Joshua, As far as I know you didn't tape out the JH8100 yet, and you seem to have replaced the SiFive cache controller with your own implementation. Can you exlain a bit more about why you didn't implement the perfectly good Zicbom standard instead of adding yet another non-standard work-around like this? /Emil > > Changes in v3: > - Fix code syntax > - Link to v2: https://lore.kernel.org/all/20240423072639.143450-1-joshua.yeong@starfivetech.com/ > > Changes in v2: > - Change patch title from 'Add StarFive's StarLink-500 Cache Controller' > - Remove StarFive alternative from errata framework > - Fixes warning from https://lore.kernel.org/oe-kbuild-all/202403151625.boKDjHGr-lkp@intel.com/ > - Flush completion through atomic timeout function > - Link to v1: https://lore.kernel.org/lkml/20240314061205.26143-1-joshua.yeong@starfivetech.com/ > > Joshua Yeong (2): > cache: Add StarFive StarLink cache management for StarFive JH8100 > dt-bindings: cache: Add docs for StarFive Starlink cache controller > > .../cache/starfive,jh8100-starlink-cache.yaml | 66 +++++++++ > drivers/cache/Kconfig | 9 ++ > drivers/cache/Makefile | 5 +- > drivers/cache/starfive_starlink_cache.c | 135 ++++++++++++++++++ > 4 files changed, 213 insertions(+), 2 deletions(-) > create mode 100644 Documentation/devicetree/bindings/cache/starfive,jh8100-starlink-cache.yaml > create mode 100644 drivers/cache/starfive_starlink_cache.c > > -- > 2.25.1 > > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv