From patchwork Fri Mar 17 16:22:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Liu X-Patchwork-Id: 664555 Delivered-To: patch@linaro.org Received: by 2002:a5d:5602:0:0:0:0:0 with SMTP id l2csp491294wrv; Fri, 17 Mar 2023 09:23:10 -0700 (PDT) X-Google-Smtp-Source: AK7set+AuyhjEZVUtHdsOs8nex5I29y7nUtwQCiCJ4kotB1KYUR0vua/877AeeFNJZSwqJc3xUkh X-Received: by 2002:a05:6214:5188:b0:56c:27b0:ed05 with SMTP id kl8-20020a056214518800b0056c27b0ed05mr39080852qvb.45.1679070189771; Fri, 17 Mar 2023 09:23:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679070189; cv=none; d=google.com; s=arc-20160816; b=tP4B0h5wHpo1PR7cMr9vLuNecjSZ8bcpsbT6mbL9/d/XrmG9PYCkx9nA6dEBC9icDz HZK9zvPmg+twWoikI4F70x2jHvxscwstPjlQuYcDvl87/7gpf4PBi3gNfspV46FPXNlj C2vjtKxR+ailgjx7GZeCt29xB/M6jQbaJWp7x49Ezs7H2FaM4xrE6C50rJk2vjntYNy+ RjdvV9Ty0rNz4Tt1wAUH+2a2O1Dti3e5Ys1BNN5OWoPv9DnpNAGVLZ5ARRfL3z9rYXWx Mf0unqrQ83ZBHVq1w8uYA3bxfqDW5KYU1C08LMLHgZEQSV75wyzorlxH5jDgB2WxduDa lWmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=OyY04e+dDwMw6hb3m4Vi+e6+0ZqkXrbT35F008sZ2Jg=; b=S7kTVT7Gam00f+m5wwrqFN4/pntpsgOOfqBUorbrsiZYXxJa4F5XSMcY8yRZYnnFIk DrI6PdopHF5QEs8L77cCQXb/xxZK8VJvYavKw2uz4L7PVdpWqYQga9ClJYJ+YPtlwFLS e7BqUau48XAwg2htq5tOY5hyc8P6BW4gXXzsAQIXfyddi2PzCA9HE4hT5uEZjkmNPN37 C93lBt8TC9IZ1aHasfx8pfqs5NB5wp93c5ZDSN1hr0jQu1bg9DZckrxprRX8fFRCUwoj HKwoZ0S8f62h+iH8fBRWhq8PnTYSd/qlgSY/934UoVFcNQv0hPP3IjgAEGThoUXH0RZc 1Ocw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xL2Z7exG; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id p33-20020a0c90a4000000b005adfbd25455si1649908qvp.174.2023.03.17.09.23.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Mar 2023 09:23:09 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xL2Z7exG; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A315D8596B; Fri, 17 Mar 2023 17:23:05 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="xL2Z7exG"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A80198596B; Fri, 17 Mar 2023 17:23:03 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8AF7F85925 for ; Fri, 17 Mar 2023 17:23:00 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=paul.liu@linaro.org Received: by mail-pf1-x433.google.com with SMTP id fa2so1853900pfb.7 for ; Fri, 17 Mar 2023 09:23:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679070178; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=OyY04e+dDwMw6hb3m4Vi+e6+0ZqkXrbT35F008sZ2Jg=; b=xL2Z7exGktF7rmy4+bEg8QYIO2yEG7uIPRaxSexQ7EnrCOjNMt5nGNpOPwNHQPQ+mj /0a0OcfaWsy5qYmbU8ErLx5r9isWGKTsRS+u0yLJmbeWnDBkmOb874F8jY3kM9Y2h0w5 bH4l3TVZnpuCxmgwHOzbAUCDLnxb24l80ujhUs1s5UtzO5gnEfQmgc6/dM7fzsgEj6gb o55EQf5uE0i4fLZ9zdL81i2Mob7ovC/C03cFGSasUK+n43sIAMdu0hSaMp3zUZLWRaq0 y4UpWF8X0BeZnWKJ9j8t2FJf/fdzZUBpQJLQy2LY87CdsHVQeEFyCjT8+YwctD9ZTwse ZA5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679070178; 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=OyY04e+dDwMw6hb3m4Vi+e6+0ZqkXrbT35F008sZ2Jg=; b=d2VHlAjUYIX25q22aHvnP0FpawxxPgtIbbN1UKnub+9QG71Qco+LmAxsgsCWTTW32s S3JpNW9efFASkFdegDGufGtmx3YprsoHFCTMwSbZqN2DBjZoiqkOt6Ur1eazw10T/T8h 0SODVHsmpr1IXXmN6vW9ShzhKPTFRr9Y/UrsrOuA7REsX6XUwJ8Z2VvBr9E2AHGt8Vka iY6CQzOO8Tx/S3pfWvDSmBHpF4Ha/XTmI1ESm4IYTzTX1RHurJfTT8lB43e95OL4xwrq JGV1zszkV7IiaGph2nFff89unEtHLUqPmMqzjZ0YTyFEfumHgWsLRS3HHsNFMxaziUbs OdYg== X-Gm-Message-State: AO0yUKXcPNCNH3sb3P1bqiDSZqO3TGM42Ebv13OeTRpAWRVT+w+d4yDm I4kDtgC5BnvtNVRti/eW+iWC1GPw7PyUrj4rjaU= X-Received: by 2002:aa7:9546:0:b0:623:2270:f9aa with SMTP id w6-20020aa79546000000b006232270f9aamr7530398pfq.8.1679070178532; Fri, 17 Mar 2023 09:22:58 -0700 (PDT) Received: from localhost ([111.184.129.17]) by smtp.gmail.com with ESMTPSA id a21-20020a62bd15000000b005895f9657ebsm1758951pff.70.2023.03.17.09.22.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Mar 2023 09:22:58 -0700 (PDT) From: "Ying-Chun Liu (PaulLiu)" To: u-boot@lists.denx.de Cc: "Ying-Chun Liu (PaulLiu)" Subject: [PATCH 0/3] Use FEAT_HAFDBS to track dirty pages Date: Sat, 18 Mar 2023 00:22:50 +0800 Message-Id: <20230317162253.1049446-1-paul.liu@linaro.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean For some ARM64 cores there is a facility that allows the page table walker to track the dirty state of a page. These commits enhances the performance of CMOs by VA. Marc Zyngier (2): arm64: Use FEAT_HAFDBS to track dirty pages when available arm64: Use level-2 for largest block mappings when FEAT_HAFDBS is present meitao (1): armv8: enable HAFDBS for other ELx when FEAT_HAFDBS is present arch/arm/cpu/armv8/cache_v8.c | 30 +++++++++++++++++++++++++++--- arch/arm/include/asm/armv8/mmu.h | 20 ++++++++++++++++---- arch/arm/include/asm/global_data.h | 2 ++ 3 files changed, 45 insertions(+), 7 deletions(-)