From patchwork Mon Jun 17 13:14:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: yunhui cui X-Patchwork-Id: 13700591 Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (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 20997195985 for ; Mon, 17 Jun 2024 13:14:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718630076; cv=none; b=gAN7GdoYiBcsQDbnaouzAfhAj2LC6E4IWKR4hEIYZSJSYPbcCWKM6uIh5I0t60c/hVhoxEdsb7bFj+dMLacJAlOHEohQtzy4dj3BgucZXipjJrbbhXc8s7cjQKOVtFFO+nJorgYatpbYbWUsL3FnuQ0K1s+fEWjw8DZP6BjuGl8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718630076; c=relaxed/simple; bh=f1DDzJv3xHeLtz/8Uh38H6uqD2mqnmTd8LGL7fsQk2Q=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=fnnuySVYiaJkQ+jP+U/wemNsAyRqX5uhD/WPQYtuQgJ2+DQwjFjfiJmiFzxwY5Hpm63i483w8ibZf0Am/jJ66C9cvaWmpJGWem7I6fLGJWfq/69qJAQ0IXVSclNyAtXInIGJ0j7FeEJGymLFHS9mFRwTn9WtOSNrrDXQiDQiwmw= 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=b5TzQBVo; arc=none smtp.client-ip=209.85.214.174 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b="b5TzQBVo" Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-1f65a3abd01so37563115ad.3 for ; Mon, 17 Jun 2024 06:14:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1718630074; x=1719234874; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=+aKuxY2Fk4OLcsa0CSr6w7+nYt28fnnuhVioZfggdrc=; b=b5TzQBVof+D7ozqzsldxhUi+UlO8wz63mvtDIHt7ZOyrANkb3Jt/1cJFe9lw3yRAsg zfIx7E1VXmeSpIa//3xZ3bzRO7xjchhBhWHlgdv8JjT1vXuUARmgZ8NyfV5i2nGioha5 k/AJSlszpZQWW+x+QD/qX/kWBgMpfFxzrP+39MmYwQEB+Hjrc8RoG5Lc7VIwO867L22C z2OUSyifBCYrIDDkcAolReyRSww9UwbwRfqX3bLsbPpVesVDULoZxD9TU2cCnaj6Nkkf LNRmZPWGD5+1L/VUFPGiuggrJ6fIXy3o2NbVy9ZrHxW+Aj6s0YKFX3fle79OWnpdSyYq X0DQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718630074; x=1719234874; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+aKuxY2Fk4OLcsa0CSr6w7+nYt28fnnuhVioZfggdrc=; b=hdNzVh7U1DvjZFvePlMwj9Utz73U5Dfg1TIlZEoVIXNA1W81iIupXJUi/RykBTQ3QV gAaCIw4y9NyFwgcV9/WPEV3wEjrGWMSUnBa+B4YqMviWSksxnkOCzTqWXLo1jqlrg2P2 bg/CAZlFv1uOu1x5eTSngHTrVLC5FvDkAKtLiG6DDLJ5vZWYG0uW2qAs9e6vx/MAB7Uc hPy4YsWhl+ZhdbcP12BgDY1wv3+Srln+b4q4NsS6VCmJjdGTccjO6l6BPd6TfSCJjhvY VABAaQxpXjRP3pWR2FLMS7nvy+F2npJsLfKQisjd8ALTEv0+rRCg/GiwOULkhyJU4Ixx 2KZA== X-Forwarded-Encrypted: i=1; AJvYcCVTLubWwuucQJmn1qivNleSSlvpSzB/et53iVlTfluzyZEcS8afkPuSkcTbyClYGXbrv+v21pEpAZD+hRuy07bT1rKII1Cy/7DJKw== X-Gm-Message-State: AOJu0YwEIEFRYoW/Oiz38QxVBttfAby1prIMHcoaY0gHG2L3FfRXpotO 5rLTXKX11SJTe0uMWMmglOpD+YX1BVXXwrqCqusIRQ0JcQ+ywyQuXD+ZNcCM0ng= X-Google-Smtp-Source: AGHT+IHD4rO7F/Egqxpgx8GA7LvUPhaTN7BCgz2f2PAN52kUoSotiU50nIDGx9zF+6fxgOrcqL1j1g== X-Received: by 2002:a17:902:da83:b0:1f4:b18a:3f25 with SMTP id d9443c01a7336-1f8629fee64mr128841735ad.60.1718630074305; Mon, 17 Jun 2024 06:14:34 -0700 (PDT) Received: from L6YN4KR4K9.bytedance.net ([139.177.225.245]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f855f0260csm78801785ad.200.2024.06.17.06.14.29 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 17 Jun 2024 06:14:34 -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, sunilvl@ventanamicro.com, aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, bhelgaas@google.com, james.morse@arm.com, jeremy.linton@arm.com, Jonathan.Cameron@huawei.com, pierre.gondois@arm.com, sudeep.holla@arm.com, tiantao6@huawei.com Cc: Yunhui Cui Subject: [PATCH v6 1/3] riscv: cacheinfo: remove the useless input parameter (node) of ci_leaf_init() Date: Mon, 17 Jun 2024 21:14:23 +0800 Message-Id: <20240617131425.7526-1-cuiyunhui@bytedance.com> X-Mailer: git-send-email 2.39.2 (Apple Git-143) Precedence: bulk X-Mailing-List: linux-acpi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 ci_leaf_init() is a declared static function. The implementation of the function body and the caller do not use the parameter (struct device_node *node) input parameter, so remove it. Fixes: 6a24915145c9 ("Revert "riscv: Set more data to cacheinfo"") Signed-off-by: Yunhui Cui Reviewed-by: Jeremy Linton Reviewed-by: Sudeep Holla --- arch/riscv/kernel/cacheinfo.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/arch/riscv/kernel/cacheinfo.c b/arch/riscv/kernel/cacheinfo.c index 09e9b88110d1..30a6878287ad 100644 --- a/arch/riscv/kernel/cacheinfo.c +++ b/arch/riscv/kernel/cacheinfo.c @@ -64,7 +64,6 @@ uintptr_t get_cache_geometry(u32 level, enum cache_type type) } static void ci_leaf_init(struct cacheinfo *this_leaf, - struct device_node *node, enum cache_type type, unsigned int level) { this_leaf->level = level; @@ -80,11 +79,11 @@ int populate_cache_leaves(unsigned int cpu) int levels = 1, level = 1; if (of_property_read_bool(np, "cache-size")) - ci_leaf_init(this_leaf++, np, CACHE_TYPE_UNIFIED, level); + ci_leaf_init(this_leaf++, CACHE_TYPE_UNIFIED, level); if (of_property_read_bool(np, "i-cache-size")) - ci_leaf_init(this_leaf++, np, CACHE_TYPE_INST, level); + ci_leaf_init(this_leaf++, CACHE_TYPE_INST, level); if (of_property_read_bool(np, "d-cache-size")) - ci_leaf_init(this_leaf++, np, CACHE_TYPE_DATA, level); + ci_leaf_init(this_leaf++, CACHE_TYPE_DATA, level); prev = np; while ((np = of_find_next_cache_node(np))) { @@ -97,11 +96,11 @@ int populate_cache_leaves(unsigned int cpu) if (level <= levels) break; if (of_property_read_bool(np, "cache-size")) - ci_leaf_init(this_leaf++, np, CACHE_TYPE_UNIFIED, level); + ci_leaf_init(this_leaf++, CACHE_TYPE_UNIFIED, level); if (of_property_read_bool(np, "i-cache-size")) - ci_leaf_init(this_leaf++, np, CACHE_TYPE_INST, level); + ci_leaf_init(this_leaf++, CACHE_TYPE_INST, level); if (of_property_read_bool(np, "d-cache-size")) - ci_leaf_init(this_leaf++, np, CACHE_TYPE_DATA, level); + ci_leaf_init(this_leaf++, CACHE_TYPE_DATA, level); levels = level; } of_node_put(np); From patchwork Mon Jun 17 13:14:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: yunhui cui X-Patchwork-Id: 13700592 Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (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 892EE197A9A for ; Mon, 17 Jun 2024 13:14:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718630082; cv=none; b=JIchf1ditYdNHHDC2Tw2VG379GcDCQ23uD4JDt/kQsk3Y+9SwIC+Hm20qPEXVs7FlugMz09a5QZQoK5B3eZgAuRyITwsEA+tqELknxAyrqJ0iaLBTql9rzkrnm0VfiwWzn2J9v9YIhHaKVSVjPWgcIV2pTG52+ioDvcw4hDNVRU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718630082; c=relaxed/simple; bh=+JzJj8ucCazBC6mptHHx0+nGx8xyX4nB++98g/I1ZdM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=cTUGtjJgCsD6peiyDB3gHMwxmpeP+b4/T0SSGw1AttwFsFaIo0NVwXEVtaNS4PGdUijX4hC2sEwkftFKB5D9hjPSKFl+tkU3iaaY+oLenthiUPM06M7F7bEgV3n4XpB0FvjW0rkyy0RQnkEB0wYR0bQryr0I0rgXjUdY0ycqD3s= 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=R4hQBs5j; arc=none smtp.client-ip=209.85.210.176 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b="R4hQBs5j" Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-70109d34a16so3783393b3a.2 for ; Mon, 17 Jun 2024 06:14:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1718630080; x=1719234880; 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=/f2nZESk5IwUhjcBCwDQD5m6WSIwM88cL3SwI9ltT4Q=; b=R4hQBs5jjD109BAZ583iZIwha7pp0epmdo/8HFEmMY3Rz5wKmtFi2RCscf5XBFi0yZ Ucz8hpFI5v+J8A4cfP8Pr8LDfa4ke3DY/KHmZTLigRe5latAO7g3tw7op8gM5evlIYVt CiHUJbj8EdvNSFgOlcgdIbwV8+ju2zLdI+3tdDSqXmaBYvgKVGYCkJHvXRB2KEqpZW+r VPd1jk939uRY8oA8TNSfsxx6s74AqO2GIkTayeQStoUN112n+W3YqTQiuws9lQ4vUriJ AC6EXoLGLx3PQRux0hwlz70uYG/POO4gsEaSidIAdfz528SaffQDpuaj1Ay+hftGrvCP 35Yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718630080; x=1719234880; 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=/f2nZESk5IwUhjcBCwDQD5m6WSIwM88cL3SwI9ltT4Q=; b=LQYnLL9AXWsEelu71dSc0jGM0MKn96vqzkxTpiuKctXPcdNwDD3ecWSEAChktg6Egr m77LXOaxytYpIs7hyPablwkB8S6jMzqVDIlVyzXgHppJq8ayTcerb3ROSONDiB+adAD8 Adpg1whS0ed25gxpxiTNeTCHCmtwPDsXWuUrKgNMaWPzGazcjnW/uw4C0pGNZDmNsz3X +Pqn5y7O1v0SL58yrA/DqGHEhG8E/w6UI7kyR3wk6Vw2G/sUl9OeJ8j5qoYptRGKwt3D WkGEThrlkbQU20blwllJIpTER+whI2JCL54yc6HItVpZG3RDYrevQ6fPCWVmfmAdf5UU AkhA== X-Forwarded-Encrypted: i=1; AJvYcCWJK3KpA5Df9ADUbtM+cflYmfyBgk/OcsxnWXZ9Gs+GxUhXmu+o7JRRqISIxjjxk1Y8dfxxLMaWTPsFmVV6WVwRVfU12S+SXFn+Lg== X-Gm-Message-State: AOJu0YwragcuOsTBHNUnh4iANw75909x9qhuSp4Qwa2s/6R3lBD0UM+4 CeQ4mFjQRMey82dWA/yC1y/WVxgRM78WmoZqfvTuj3oGtdIOf27hgTa+jjTa624= X-Google-Smtp-Source: AGHT+IFyXVXcwEnHkFr+M+B09gwoggwiZPCR+TNh4urQv2uHfL8+aZj9PiLWU/sney1s+CzXzICoGA== X-Received: by 2002:a05:6a20:6597:b0:1bc:a4c5:445b with SMTP id adf61e73a8af0-1bca4c54494mr873421637.24.1718630079903; Mon, 17 Jun 2024 06:14:39 -0700 (PDT) Received: from L6YN4KR4K9.bytedance.net ([139.177.225.245]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f855f0260csm78801785ad.200.2024.06.17.06.14.34 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 17 Jun 2024 06:14:39 -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, sunilvl@ventanamicro.com, aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, bhelgaas@google.com, james.morse@arm.com, jeremy.linton@arm.com, Jonathan.Cameron@huawei.com, pierre.gondois@arm.com, sudeep.holla@arm.com, tiantao6@huawei.com Cc: Yunhui Cui , Conor Dooley Subject: [PATCH v6 2/3] riscv: cacheinfo: initialize cacheinfo's level and type from ACPI PPTT Date: Mon, 17 Jun 2024 21:14:24 +0800 Message-Id: <20240617131425.7526-2-cuiyunhui@bytedance.com> X-Mailer: git-send-email 2.39.2 (Apple Git-143) In-Reply-To: <20240617131425.7526-1-cuiyunhui@bytedance.com> References: <20240617131425.7526-1-cuiyunhui@bytedance.com> Precedence: bulk X-Mailing-List: linux-acpi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Before cacheinfo can be built correctly, we need to initialize level and type. Since RISC-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 Reviewed-by: Conor Dooley Reviewed-by: Sunil V L Reviewed-by: Jeremy Linton Reviewed-by: Sudeep Holla Signed-off-by: Yunhui Cui --- arch/riscv/kernel/cacheinfo.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/riscv/kernel/cacheinfo.c b/arch/riscv/kernel/cacheinfo.c index 30a6878287ad..d6c108c50cba 100644 --- a/arch/riscv/kernel/cacheinfo.c +++ b/arch/riscv/kernel/cacheinfo.c @@ -3,6 +3,7 @@ * Copyright (C) 2017 SiFive */ +#include #include #include #include @@ -78,6 +79,27 @@ int populate_cache_leaves(unsigned int cpu) struct device_node *prev = NULL; int levels = 1, level = 1; + if (!acpi_disabled) { + int ret, fw_levels, split_levels; + + ret = acpi_get_cache_info(cpu, &fw_levels, &split_levels); + if (ret) + return ret; + + BUG_ON((split_levels > fw_levels) || + (split_levels + fw_levels > this_cpu_ci->num_leaves)); + + for (; level <= this_cpu_ci->num_levels; level++) { + if (level <= split_levels) { + ci_leaf_init(this_leaf++, CACHE_TYPE_DATA, level); + ci_leaf_init(this_leaf++, CACHE_TYPE_INST, level); + } else { + ci_leaf_init(this_leaf++, CACHE_TYPE_UNIFIED, level); + } + } + return 0; + } + if (of_property_read_bool(np, "cache-size")) ci_leaf_init(this_leaf++, CACHE_TYPE_UNIFIED, level); if (of_property_read_bool(np, "i-cache-size")) From patchwork Mon Jun 17 13:14:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: yunhui cui X-Patchwork-Id: 13700593 Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) (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 E0C60197A9E for ; Mon, 17 Jun 2024 13:14:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718630087; cv=none; b=uhsuRY4O063wxbqoStKLFQHrF7lNFvzBo7Zt34knRMOyZDShaZAYcwn404En1CI1yErSH7FxvYebUCWIFK/pdvxIXtO4vw001GJ/SPJYr8g2jfCDBH15/oUFWuVKEY4Hn+mjrJMQk9swtMBDOxrRctVjqN8GYb8fUggVdGThhek= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718630087; c=relaxed/simple; bh=OCESIZEsN6lzcI6fYlcJjhkKfQLZHYvy2cJISU/VEiM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=bp5skGNm4JaTb6QNwTDAIjkzgg8PQChShRFXGHuBy7K+jchqYGSVRWZJNZYHEa3Zz7ktoAcxL/62PkyEMZfcMUJm4I7z/99drVsuPohTRzL/OnYiaiD/+n2w+RIzmUKc04AE+NuCxK6a6rryFsLBYj4nTbf8Z6GMMCkLFpuU91M= 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=APqNQZsQ; arc=none smtp.client-ip=209.85.210.178 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b="APqNQZsQ" Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-7041e39a5beso3168250b3a.3 for ; Mon, 17 Jun 2024 06:14:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1718630085; x=1719234885; 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=JqH5PnYnV4OCHciC6unnqcv3QJd6vOkUagh67OcQSZo=; b=APqNQZsQWZBAkMN6ajq9Lnefzr38sgZdKH9AZnIzsdeNhZfXlEv246aIx3yB1Jy3as oSrgO35J1tuEH5mteCnb7WjVSvqFKXhx2B8W4uVpZIp3sOD8e6w87lcKwF1+tuWLpQX2 W10FfnFBMF026aOYa0shuHZosG8JUE6FNjqq8yjDYGULmn4rTstMIsM0CX1qMnXj6C4X zunyUNmQ63/Su+8iHrgA4QhZ5PIqx3N4qS2p1Rb8+NCGBjvcXyuCWlBvxWi7sZyLu1sb JUNi6k7tHhK5/OGiwYeJchb67Me4W3EyRvx0La5Z2bvA/ngoQqor1cQuMtPr9hzRkLj1 CjaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718630085; x=1719234885; 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=JqH5PnYnV4OCHciC6unnqcv3QJd6vOkUagh67OcQSZo=; b=APM9+bXCaA8L2CkMFjU6on4wcqtYMRU+LmfcxwobfuJV0oJ5Vc7hCIuW/p5cvG7ncI MhZJ1gDz948kD+Q6eIOgIR9aP+mwys9IJQsLfvwDxy8G8AzI8ljsjJ55+q7b1TqrbUab N+HgQX1JmjLTJBSVN4njUiL6Fjz2TAs7+dAe1JJXdsQ/Om1eiC0W/pTD5PsoKLH7ualZ 1I4UdnJVuhVA1lgu0lB431ig4dyOtX1nqfYs9MJMrM84iX9fX9qtGfmHleEylGaspfCF xVbD/4JwCTryHbOYN8CnjNiTKIIPsbF3QtJYgJb1TGmwyEj4jdtQQnc7o4DSVFBr5YFJ UD7Q== X-Forwarded-Encrypted: i=1; AJvYcCXwqJ7wQDA0Cid4NImQA0yumNgdxrRPx0yzAl5Uw18DWDQ1bMOq1QcOo49p1/8SohJgmVk4MAZCUFCvonYkmyVofxu9icHnfJ3imQ== X-Gm-Message-State: AOJu0YxKUu5N4CijtVjjuVUSPfM8cBxbyTrLY98/TabcTsFCUec6yJTY RSjUAy8wwmvjFAQejAK41yNyJslnHp5Sns7p1Xqynw0CuSLd1gAHMt5sJCAVdZ4= X-Google-Smtp-Source: AGHT+IHUp84UpJvFEPcFIvQ17kOX+r6zqro+izswgYoYp+hs6jkxCQlxN7m1kXBF5qblIw630FU0lw== X-Received: by 2002:a05:6a20:3caa:b0:1b2:b2b:5698 with SMTP id adf61e73a8af0-1bae8243b5fmr9208865637.33.1718630085193; Mon, 17 Jun 2024 06:14:45 -0700 (PDT) Received: from L6YN4KR4K9.bytedance.net ([139.177.225.245]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f855f0260csm78801785ad.200.2024.06.17.06.14.40 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 17 Jun 2024 06:14:44 -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, sunilvl@ventanamicro.com, aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, bhelgaas@google.com, james.morse@arm.com, jeremy.linton@arm.com, Jonathan.Cameron@huawei.com, pierre.gondois@arm.com, sudeep.holla@arm.com, tiantao6@huawei.com Cc: Yunhui Cui Subject: [PATCH v6 3/3] RISC-V: Select ACPI PPTT drivers Date: Mon, 17 Jun 2024 21:14:25 +0800 Message-Id: <20240617131425.7526-3-cuiyunhui@bytedance.com> X-Mailer: git-send-email 2.39.2 (Apple Git-143) In-Reply-To: <20240617131425.7526-1-cuiyunhui@bytedance.com> References: <20240617131425.7526-1-cuiyunhui@bytedance.com> Precedence: bulk X-Mailing-List: linux-acpi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 Reviewed-by: Jeremy Linton Reviewed-by: Sudeep Holla Reviewed-by: Sunil V L Reviewed-by: Sunil V L --- arch/riscv/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 9f38a5ecbee3..1b4c310a59fb 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -13,6 +13,7 @@ config 32BIT config RISCV def_bool y select ACPI_GENERIC_GSI if ACPI + select ACPI_PPTT if ACPI select ACPI_REDUCED_HARDWARE_ONLY if ACPI select ARCH_DMA_DEFAULT_COHERENT select ARCH_ENABLE_HUGEPAGE_MIGRATION if HUGETLB_PAGE && MIGRATION