Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp756975lqp; Sat, 13 Apr 2024 20:00:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWR2tyT71wpG4s/yE+aJ9SWDqc12AK6vV2JteULZxI7/dIDTQDuIBc5RZGLNoaSf0nZfzHB51SMO/hFCwZzhtqdmkPBy0Jy2VnwdXBLHw== X-Google-Smtp-Source: AGHT+IFR/CU/1c8xan7D8217hMI/HqTh/UPFEElJUS21PlgD4OnK/D1V+ZWRQeMsNdDFi/FYvMFD X-Received: by 2002:a50:a6db:0:b0:568:be6d:e5e5 with SMTP id f27-20020a50a6db000000b00568be6de5e5mr4349248edc.37.1713063619765; Sat, 13 Apr 2024 20:00:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713063619; cv=pass; d=google.com; s=arc-20160816; b=qlNRCVfxhh+CtBbo9yqW9w4+FAQGx8S196n6IMEmVMoji2xnVM+WXWRleU5R1p2ZWY WQ+//1R6Pq1sAQ1WiZhap/PghZ/IlOsihOT/nnTns+zBiGkBCkppXcjST6nKFD6jPn1E 4Ws8yjhO9Qh4pgClO2CnN6ia4YYz7LeW9cvxkSz+1Gt+QR4qs16q75+NZeyaec2yaAdt PIlJqUg+jlPf5dtTtNxsU26RQ7ArS/AkUVSQB1Qr6QeNUFW2pnZHwzLRQmQ1D/KKwVVi 80xWeaNcXSYIQAfV8QkJl5jp2cWqtLCncWDL2NlSDZobcdlha3hCmMGGPJBdoRiboXQ0 Xbvg== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=hheiXqV+1wPbN2r8XTJ5OPePJHFHtIdLdr/kVMTR0TE=; fh=U2jPq8+2Oonenyn9omEVArHQQhbofc2fp2TYj2VEx7s=; b=ZZp3nTyYXamlev6APIW3Z+3gGZa72MTJpR6ToqC+0fjx6qlGrq8VSwb4jh/FIm6jFd L5S7TI5wZDRh7Hr57A4rBazphI8FeyHBmGcJFkYNpmckws6DH/MBhMMCTvnlFn6g5qIu m72fuNr+AbSpY9RV8v+BF1cdJxWr5MsFzGtMduZi/2DNnB4Aq2/2EoPZeucpw9GAqIfK SdiKnlu1J7PADPR+2rHAvsuGLQfpPU5fg2De0LWV51nXvF6BQLRKx6IQFjmnHRO7APof nq9YuBv71ruCTGO04U2rEE8yfLdcTkSmTqcvAzYJl6oKF9uElySTS2lTuucmsNiLSz4X kiUA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=gx4hC6tT; arc=pass (i=1 spf=pass spfdomain=bytedance.com dkim=pass dkdomain=bytedance.com dmarc=pass fromdomain=bytedance.com); spf=pass (google.com: domain of linux-kernel+bounces-143949-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143949-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id m18-20020a056402431200b0057020ac4578si208471edc.124.2024.04.13.20.00.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Apr 2024 20:00:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143949-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=gx4hC6tT; arc=pass (i=1 spf=pass spfdomain=bytedance.com dkim=pass dkdomain=bytedance.com dmarc=pass fromdomain=bytedance.com); spf=pass (google.com: domain of linux-kernel+bounces-143949-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143949-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.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 7D7631F21C9F for ; Sun, 14 Apr 2024 03:00:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DEB1617991; Sun, 14 Apr 2024 02:59:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b="gx4hC6tT" Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (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 B4AEB1BF35 for ; Sun, 14 Apr 2024 02:59:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713063592; cv=none; b=TunG/4y5bSnOgJpSLLA5XfF1fRfRbKEB9zwVUJIpaL3b96azUlVo06Db59SVn0BVVA6JoKadeTB2Jr9EAFMijT82RmabE1fnlXA47r6GLwIBVd3gRwjyL0pdvr9REVImdPqvJp6UWtgbxXbaaWuJyO8Ncnjyg6tlXFp/Hizjn3U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713063592; c=relaxed/simple; bh=74/j8ENughgKXArfiTJjMj2qv/FhTXWLGElJJX5xuq8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=s6MCk2y7ca5mcGzuW3KrEdDXHIfoU7+MS12vDGO3gdn39lZ/EkypprQ38UKjOLxcez839IL0M9WTsLu4oFxjMagJBJKksKYV3NK/E9lfWbM/wtPJ8PMqPq8C0DFhRd8WBDyA+F7qspYhJ8tYLmUVVSlG8j0PGsJbPzJ7J13bxAk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com; spf=pass smtp.mailfrom=bytedance.com; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b=gx4hC6tT; arc=none smtp.client-ip=209.85.210.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bytedance.com Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-6eddff25e4eso1793216b3a.3 for ; Sat, 13 Apr 2024 19:59:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1713063590; x=1713668390; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=hheiXqV+1wPbN2r8XTJ5OPePJHFHtIdLdr/kVMTR0TE=; b=gx4hC6tT3bhKRz1xEPhKSViTnx1nOQB21g5NfvSI2EQm3xDR7vm9pD8ydWsACFS9gn XnEQ//Y/uct6CskUejHsQMjsynCG6QewjfnK/hvaVB7UOrcYjKca5NEDuwX+OhVnKF6G v5U8RrrMxs6bJzkTD5ryfKu5l1AkZRRZFlsN1p9y7f8btWqaZFvsksPOt5OQXVbNoVUm cKIoA7yZIclUu4jP2+MEHeABg9XjPLtyExml98suZJvbX7PXr/sPlY078cPqSpNB4ocN sUQJhO98zQJmkjMDVeJRW0W5jI2q5yN7sz0uOri1biHtPsek/CUwhfjsbIii2zFndTo0 2U9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713063590; x=1713668390; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hheiXqV+1wPbN2r8XTJ5OPePJHFHtIdLdr/kVMTR0TE=; b=bn3i8sgm/CRyqXd0XMy2yyf4NXInSYkUlhVji24O/X1zYwRhnKGGFiTWBWSSGHVlxK e2DSsjpKDU7yZLCBpWlYN/vGIJOYw47xKXeUFxGGyK/CQtGuhd5DBOnL4GpT6pd/ZOVS HExiaH4e+OyuzUMas52+OOwQ0j3EiBIXCB5YWAFPFwfdkNmwkqE+1PwiUddELw6gJjD+ UA0b/COg0iN0E/7Jm13zw8+0Fh6bPN+IhBCBgbvancrj5d+4Weavr3ch0fFRChakAs5w ooRTD5cQdRfFzoELPa8f5+fc03aMD2iVj2YcKnDV7AWR6jrGVXIDSE51l6DrGQh5GS6H rx/A== X-Forwarded-Encrypted: i=1; AJvYcCVNamceHlOhBTFbCP/hUXU+6IYH2cvdIM/Jpyyp8wN0y0ZXX4A5u5OD1pnWXMkdTGwaSD4jbICcC45uQ3A6rUz0cnMC9J0ir+rJAIvF X-Gm-Message-State: AOJu0YxKAVXVRJFRsPMzvzk2Y28iLj+YuioclbR0ACe702LQyNWUUFwo zfLW5CvLjUUAjeD4NbzpyuaKM9eLO8Dbn+sIRGAlpj6Qc2NKZKARLFxNeWKOOEg= X-Received: by 2002:a17:90a:d306:b0:2a2:8065:899f with SMTP id p6-20020a17090ad30600b002a28065899fmr4798578pju.41.1713063589971; Sat, 13 Apr 2024 19:59:49 -0700 (PDT) Received: from L6YN4KR4K9.bytedance.net ([139.177.225.246]) by smtp.gmail.com with ESMTPSA id cx15-20020a17090afd8f00b002a219f8079fsm4799913pjb.33.2024.04.13.19.59.44 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sat, 13 Apr 2024 19:59:49 -0700 (PDT) From: Yunhui Cui To: rafael@kernel.org, lenb@kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, paul.walmsley@sifive.com, palmer@dabbelt.com, 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 Cc: Yunhui Cui Subject: [PATCH v2 3/3] RISC-V: Select ACPI PPTT drivers Date: Sun, 14 Apr 2024 10:58:26 +0800 Message-Id: <20240414025826.64025-3-cuiyunhui@bytedance.com> X-Mailer: git-send-email 2.39.2 (Apple Git-143) In-Reply-To: <20240414025826.64025-1-cuiyunhui@bytedance.com> References: <20240414025826.64025-1-cuiyunhui@bytedance.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit After adding ACPI support to populate_cache_leaves(), RISC-V can build cacheinfo through the ACPI PPTT table, thus enabling the ACPI_PPTT configuration. Signed-off-by: Yunhui Cui --- arch/riscv/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 6d64888134ba..5d73fcaf9136 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -14,6 +14,7 @@ config RISCV def_bool y select ACPI_GENERIC_GSI if ACPI select ACPI_REDUCED_HARDWARE_ONLY if ACPI + select ACPI_PPTT if ACPI select ARCH_DMA_DEFAULT_COHERENT select ARCH_ENABLE_HUGEPAGE_MIGRATION if HUGETLB_PAGE && MIGRATION select ARCH_ENABLE_SPLIT_PMD_PTLOCK if PGTABLE_LEVELS > 2 -- 2.20.1