Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp561180lqo; Wed, 8 May 2024 08:06:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXvXMHCeYvAA8wlrPHCl9dzB8zH51Tiqq2SNuwMGrH42iBDIdCx9Kxlwl+ezyHsSeLZahPyIiFFVVS9Y2QiYFm1zJeIaKAd8EAW/EGR1g== X-Google-Smtp-Source: AGHT+IG8lnXRTrgP3gOf7/HMil1Y86l65X44QqOaNeUnRbOdyWOvPENaAzjNPbCxYEdfT6c9CKIZ X-Received: by 2002:a17:90a:cf14:b0:2ae:78cd:59fe with SMTP id 98e67ed59e1d1-2b6169db51bmr2992284a91.31.1715180789621; Wed, 08 May 2024 08:06:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715180789; cv=pass; d=google.com; s=arc-20160816; b=lsAHowEbBLqwdeGDtIaU9On0W87zVF1dYOQOIyclqBZ1pVmtWR26ZuLuMOB+hw0FaN k/NHLHUnrGPspVCajUoaS6UD77RUmmMfRr0OEzXxgc2EEbMQppKhEpP5LsefXrwkp2PT ceiF0CWBRDBr7GOpeF7Ea/VvXGaaLCZr70JNV5mx/rYuXRPksKHgQKinXPN4CmUKnLov kKAsUBrciGuEEHTSGLdAjxdVntgWXlgIZuj3E1DUasIpIypdlgg39o79FsqLu2Rp+ecV eW4MdBOml3FjZNWsEJT8ACmGBGepegVfGrhQlfnCzGzmKrkBc1hC0xXGj8dhu8rR8gS1 f9iA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:to:from:cc:in-reply-to :subject:date:dkim-signature; bh=/jzxebwdo962PuKC2zPMaZjfMWZ4zNd6nkm5wi7u0wk=; fh=+vDA9poMLefK4FWQGta5R0C1a1ficGY4ltSk34wQfoQ=; b=m9p+vtYOCMrawfnCFneqMZFLmVTcwb1+zHZEu9K6kqSB+Osa/7SBzsQvtGgNgRreJ1 DN+QJpFGDCLcgDiGsFUYSIvdckcGavSXJmhYJHaEuC1MyjtD4Q4MhjFvbPVf6vvZnBFu WYqF+gxMN1WXyzkokhxILUjXByI5xn8f2Kh8dlJQ6bxjrGTiVIwxEEJ++fg0g7wChKva 8dADFOUyRpoAHM1lRQLqYYS+GibOnpndb8ASu++syxRODRohLmYEQP5NBOtQGO/uFIZ+ ofqCBmvzQyMGFQIpKp1OpRuVFZCuTn0mH4Z1NVI/3u4/jg/d9pCFfpf18i5vAZiUu1tw xgSQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@dabbelt-com.20230601.gappssmtp.com header.s=20230601 header.b=Ov6q7lob; arc=pass (i=1 spf=pass spfdomain=dabbelt.com dkim=pass dkdomain=dabbelt-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-173442-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173442-linux.lists.archive=gmail.com@vger.kernel.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 s31-20020a17090a69a200b002a2a5398017si1454305pjj.184.2024.05.08.08.06.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 08:06:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173442-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=@dabbelt-com.20230601.gappssmtp.com header.s=20230601 header.b=Ov6q7lob; arc=pass (i=1 spf=pass spfdomain=dabbelt.com dkim=pass dkdomain=dabbelt-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-173442-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173442-linux.lists.archive=gmail.com@vger.kernel.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 0F2CCB21F6A for ; Wed, 8 May 2024 14:53:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9BD5786659; Wed, 8 May 2024 14:53:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dabbelt-com.20230601.gappssmtp.com header.i=@dabbelt-com.20230601.gappssmtp.com header.b="Ov6q7lob" Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) (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 0D51184A23 for ; Wed, 8 May 2024 14:53:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715180027; cv=none; b=CiqHXmuUbI3zgYpNOBZKsloLKDYO8LfYhwyx80xZmHyTgvmuzoGdtXXWHYEj4+BwMM+2BiClxilMdVI9cAd5nK1OHp3RSJMuROVxLoDjTr0XjxDrgjRfvbUIp2MR2sYaFazExUklxhkWi8VGVCWlEvF6Wu2K+FbCwG+fRYRGVwQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715180027; c=relaxed/simple; bh=EJWsUtCPHpVsGcqxCXxyFT8ILSf3nB3QUf5aCnrWjcA=; h=Date:Subject:In-Reply-To:CC:From:To:Message-ID:Mime-Version: Content-Type; b=Qz+zpCUDao3N8EucUsOmp9sGvulyV0tPByH0lIutJyWoVdAbr1S8rYwJYPYGi4ntYtloFvnz8BrJ46VXFgI2oJdE/l3KTHInmg2DMNCBOF/dkEAEebDB0HPY4Tbq34Rcxws2mstr9ytkq2b0TIIp0OZvR6OPsf4x+YDGk18X9Mo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dabbelt.com; spf=pass smtp.mailfrom=dabbelt.com; dkim=pass (2048-bit key) header.d=dabbelt-com.20230601.gappssmtp.com header.i=@dabbelt-com.20230601.gappssmtp.com header.b=Ov6q7lob; arc=none smtp.client-ip=209.85.210.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dabbelt.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dabbelt.com Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-6f44b296e02so2351503b3a.2 for ; Wed, 08 May 2024 07:53:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20230601.gappssmtp.com; s=20230601; t=1715180025; x=1715784825; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:from:to:cc:subject:date:message-id :reply-to; bh=/jzxebwdo962PuKC2zPMaZjfMWZ4zNd6nkm5wi7u0wk=; b=Ov6q7lob5JTtJ+HROPLbLJT7jKk91aqTLwi6rsJn2/IHhP1sx4Vrf8ZBd8YYRakktj /wMHB1XKP9xoCFComjwQo7KBCYJAjC6i2Wa+MbIofdk5TOtUcHT0Hz6AQx5CJetVk29u SfL8Wb7VN4IIQNI0pdIG50Ne//ukAvYngyKuZgKa6OcHL63b2X7yP0wOF5zVOFRhQsBb Sdcv8oo4E+wDhN736kNXpf3mKzLkYZBJlAYHA/lWqMN+SDXd7WFoMEA9aj9nbMRnMV1A C4oXshB910fHWngBO/icDf+ETn7Ht24vGiqKWSN4MXODtU7pc3fyZpq0/fyATkFz6S3G 73Yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715180025; x=1715784825; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=/jzxebwdo962PuKC2zPMaZjfMWZ4zNd6nkm5wi7u0wk=; b=oN1nCfr8nEbGlyDePK2EsEfo6ZH4345Vr103UzV39gRa0UwMreT3InWu+y0iA1Exr/ axBFMiWJUeZgPnx0iOd94LyQ9NCDSRkRJOSErhOv/UHcwXuGyRchjrFKOYDua8r+kHSH AGEOAuDliCq4j0CQQxeGlhio2LjCHKTD0MeM3H9hsBU4Zrw32VY3bJtIBa9NIfncGDKD rv6xoGybX5C9WqJP+yHUa4BfOo0pUbYIEICqjKG/Yy5xmsriCE4gltMluYO4AElBLTSs 4bIptuCP9/klLtG0IHyUypdIeUMlHDk0AK3HE978DkLcWdelqTqj6S3AURcxOTRAZK3H 87IQ== X-Forwarded-Encrypted: i=1; AJvYcCXQrBnmJ1fABnOVrWyW6g36CCV+jrIxxdbvEfK62Qj1Ff8AJ2lvylOEEp/u8yDa9YhXtmOJInQss/PHybForOqdZEhZUbDOpz2nu9s/ X-Gm-Message-State: AOJu0Yy5KFrWnNQ+spMrQXawecbZGUErzOIp5Jm5BudrWCd8XtkGK6sV jEIGJlfTVCPJlfDdYOnibsbhYF18uJY+MPj69Hcg4WsideECfc9ttxGWO4GceUA= X-Received: by 2002:a05:6a21:3995:b0:1af:ccd8:c118 with SMTP id adf61e73a8af0-1afccd8c21emr1558953637.22.1715180025014; Wed, 08 May 2024 07:53:45 -0700 (PDT) Received: from localhost ([192.184.165.199]) by smtp.gmail.com with ESMTPSA id p2-20020a1709027ec200b001ed9fed6f61sm8137490plb.268.2024.05.08.07.53.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 07:53:44 -0700 (PDT) Date: Wed, 08 May 2024 07:53:44 -0700 (PDT) X-Google-Original-Date: Wed, 08 May 2024 07:53:41 PDT (-0700) Subject: Re: [External] Re: [PATCH v4 2/3] riscv: cacheinfo: initialize cacheinfo's level and type from ACPI PPTT In-Reply-To: CC: Conor Dooley , rafael@kernel.org, lenb@kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Walmsley , aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, bhelgaas@google.com, james.morse@arm.com, jhugo@codeaurora.org, jeremy.linton@arm.com, john.garry@huawei.com, Jonathan.Cameron@huawei.com, pierre.gondois@arm.com, sudeep.holla@arm.com, tiantao6@huawei.com From: Palmer Dabbelt To: cuiyunhui@bytedance.com, Sunil V L Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On Wed, 08 May 2024 04:19:01 PDT (-0700), cuiyunhui@bytedance.com wrote: > Hi Palmer, > > Gentle ping... +Sunil, as he's the ACPI/RISC-V maintainer and I generally wait for his review on this stuff. > > On Fri, May 3, 2024 at 12:37 AM Conor Dooley wrote: >> >> On Thu, Apr 18, 2024 at 11:43:29AM +0800, Yunhui Cui wrote: >> > Before cacheinfo can be built correctly, we need to initialize level >> > and type. Since RSIC-V currently does not have a register group that >> > describes cache-related attributes like ARM64, we cannot obtain them >> > directly, so now we obtain cache leaves from the ACPI PPTT table >> > (acpi_get_cache_info()) and set the cache type through split_levels. >> > >> > Suggested-by: Jeremy Linton >> > Suggested-by: Sudeep Holla >> : Signed-off-by: Yunhui Cui >> >> I'm not an ACPI head, so whether or not the table is valid on RISC-V or >> w/e I do not know, but the code here looks sane to me, so > >> Reviewed-by: Conor Dooley >> >> Cheers, >> Conor. > > Thanks, > Yunhui