Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AD3F5C05027 for ; Fri, 3 Feb 2023 18:01:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ie+6I5H0pThkkNmDtt4tfimYsRelnrO0YHzSKHi8REE=; b=oysN8LM10gReJv lStKNZxnSsnNAoTOrMXq5UAcCmOFFDz0vZw5XqIzEL9OQ64VPq3PFjFCrECmIdRVo+TCQhKevQ61w KPoZ/31rQB0vTG46lBud+GochKPz8RYVHXzJcahkGLxrRc8Pu7S9ks82DW7kGOn9HpxutV1FXtdb5 IzXcSHR4Z00773Zujd/9bh5nVfU8rsg0GH3xPv2Q2EKVds3LACkaVlBio3PD7zWtgxmWz0heJtGQb nIOAKEnln0krpKmz1jS/VFymzCXZ3F1j//2xJy6VlH9MKs/Ya4gKP9gj6Xst/XJnzlK7Cno9B2rJH Jjt6NYSHDsYw3MWqh6hg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pO0ME-003A4O-SG; Fri, 03 Feb 2023 18:00:18 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pO0MA-003A2l-JZ for linux-arm-kernel@lists.infradead.org; Fri, 03 Feb 2023 18:00:16 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 880B6C14; Fri, 3 Feb 2023 10:00:52 -0800 (PST) Received: from [10.1.196.177] (eglon.cambridge.arm.com [10.1.196.177]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id F3A533F8D6; Fri, 3 Feb 2023 10:00:09 -0800 (PST) Message-ID: <53e27b13-9c97-2811-e941-4bad88a59eea@arm.com> Date: Fri, 3 Feb 2023 18:00:01 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: Question on "arm64: mm: Prototype to allow drivers to request PBHA values" Content-Language: en-GB To: mawupeng Cc: linux-arm-kernel@lists.infradead.org References: <3debf8fe-0182-4e82-bc59-cf40ac7ffb24@huawei.com> From: James Morse In-Reply-To: <3debf8fe-0182-4e82-bc59-cf40ac7ffb24@huawei.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230203_100014_746595_1D01717F X-CRM114-Status: GOOD ( 17.58 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi mawupeng, On 03/02/2023 08:30, mawupeng wrote: > Thanks for your work on working out what linux needs to support to make use of > existing SoCs using PBHA[1]. In your example, PBHA can be use memory > compression or system-cache. > This patch set is perfect and covers a wide range of scenarios. What's you > follow-up plan for this patch set? I was hoping we could collect together what PBHA is being used for in existing SoCs, to work out which of those things we can support in mainline. Marc Z had some additional questions on IO and DMA. > In this patch set, devicetree is using to pass the pbha-performance-only > and pbha-no-aliases attributes to the OS. Since ACPI may be used to do > such work and there is no suitable acpi table to represent these > attributes at early acpi parse stage. > > Do you have any idea on how to pass these pbha related attributes via > ACPI? The DT binding exists to tell the OS which PBHA values only affect performance, and which ones mean the page can only be mapped once. There is no standard ACPI method that conveys this. I guess the ACPI people would specify a GUID for each property, then return a Package() of values from something like a _DSM on _SB. (...if that is allowed...). But! Without more of a story about what PBHA is used for, including IO and DMA - as well as upstream drivers that use it, I think any ACPI support will be premature. Can you share what your SoC uses PBHA for, what drivers need to use it. What happens if its not supported? (is this a 0.1% performance change, or 10%?). What happens if devices access those memory locations? (do they need configuring with PBHA bits too?) Thanks, James _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel