From patchwork Thu May 9 07:33:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: yunhui cui X-Patchwork-Id: 795758 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (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 E6F9D1494D2 for ; Thu, 9 May 2024 07:34:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715240046; cv=none; b=VVpwGOUDOAZmNO9N6B5nOcqV2wScvQa4HpHp5/fG6MWJYvs7nG7DlnULvP8C5XyqWl3KaN2E0GYhV4A4+1/7jTlrqzAHxk+9cewfvCIGy1pmntexvIwWRvrnNpoZ+JJW28+ZBCXQNJkA0ozh2CTz8rqzqKW12h1SR+SZb0yktK0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715240046; c=relaxed/simple; bh=vniUVQGgbZH5XUSS0fWMGrRPi3jnpi6vMBuF5oFpj5c=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=RDoK7KaNAoqTc5kAQa2JOaUdBugRPuktfx/CGTGwRmIID2DfcmzTuFzdlhsXbyTwgKiiVzwnHhckgoHXy7CzIom6hxT4Lt0KYaYdKPQl+HNd/DzY8XrC6UrOUL3MB1fY2ycWiELtcZ8rURSzdO3OqD4rLN8yXxH4A2WyJFH5tFw= 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=g1fDjsbs; arc=none smtp.client-ip=209.85.214.182 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="g1fDjsbs" Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1ed96772f92so4542885ad.0 for ; Thu, 09 May 2024 00:34:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1715240044; x=1715844844; 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=rKyIwcUjX1px2GE9S/CV6LaiV7WK04/0FO5MZQuO7/8=; b=g1fDjsbst7ad8k8lQWtbN7JGT80QYWnBoTfhclJ8H/Mi3u4Hca3tE9xmdpugMlgUaK e88QRRy5Elyzjv7ktZu4+4/azY7viYIBagOskDNKPBBCFyOggo1zLiijIUQ3bY3K7jTe Y1PsLoRwVkgr0XDUzNFuvCVOWoHFE6vyXY8oY+naoBIGP1Wb8f4Kdkwwo9yuytR+VpF0 f5Iv6qHkvzUbjQIqWzia9nQbdDICcbBLYM7Q5jYBaGa8sgtYotwp6ewayy8JDvlhxTmp QISBtSfo56bykLMiKLnOfyAXjYrP2VUNKZHM0D2VMaJcazzb6BBmFR8M+uOhrqQqEddN ozAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715240044; x=1715844844; 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=rKyIwcUjX1px2GE9S/CV6LaiV7WK04/0FO5MZQuO7/8=; b=dJWpSbTv8+Olrzq+EIvkXOUHLta036GkfE1kHp1jKW3fjSxs+NVYWW1exzihJdSSTn ncXeLKVdkLLBJ6aOWfSxsbxk6qS963qiBRruxZN17vQnWHoj6Q4Akq91feuLXwh2jtcM pLM8kPO/CgZ30mLg62ON0U/j6k4suB8j2kczvFxizg/ZwLtH2HPJw+WmoNiSmKyY+k9/ BbZRvR6sDKB4b1im/b21B+/ee6oh8pxoZVqsK3Upvz5C9ANSDYDIZhVFAM+8YzqEA0Cc SmU6RkIRiRtjKj3IL5d9bxgL7zzOctb0fDQOiEE1WutMR51bpYQ0WGx15UTXJoVanQmW KVSw== X-Forwarded-Encrypted: i=1; AJvYcCVdMpOqaGVjxcfTqPNczGdC+0BDuoCJCqTMzEhh0OE5oy4Lo4JfYgR1F8CM1gA8v7Vn9nnC9EHFdnR0+usgCzja9QX2mgXLehIQew== X-Gm-Message-State: AOJu0Yxz0qfXJhQePRjoPjPMnDyn/OBvCkgSvHUMdvrHj7ta7LvfE9cy tW3k6cR9ce5RnB8deBUbIMt6E2NvibcJ2TfcNbTUPjyiYs5MiYw6tGlULO2VYMM= X-Google-Smtp-Source: AGHT+IENrFpPXQtPzNwMxYR+E7KfhtE+rzld4e5iGLrKkEoGDyF4zweRjT/2jAKH/f68/NFj3s2ryQ== X-Received: by 2002:a17:902:d183:b0:1eb:144f:63b7 with SMTP id d9443c01a7336-1eeb078e5bbmr34244655ad.56.1715240044153; Thu, 09 May 2024 00:34:04 -0700 (PDT) Received: from L6YN4KR4K9.bytedance.net ([61.213.176.14]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1ef0badcbacsm7519045ad.97.2024.05.09.00.33.59 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 09 May 2024 00:34:03 -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, 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 v5 3/3] RISC-V: Select ACPI PPTT drivers Date: Thu, 9 May 2024 15:33:00 +0800 Message-Id: <20240509073300.4968-3-cuiyunhui@bytedance.com> X-Mailer: git-send-email 2.39.2 (Apple Git-143) In-Reply-To: <20240509073300.4968-1-cuiyunhui@bytedance.com> References: <20240509073300.4968-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 --- arch/riscv/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index f961449ca077..a9ebecd72052 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