From patchwork Fri Jan 8 11:16:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 12006369 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7A0EAC433DB for ; Fri, 8 Jan 2021 11:19:25 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 07267238EF for ; Fri, 8 Jan 2021 11:19:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 07267238EF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=O6Kcq135hlatWxFAeQ0fvyyLvSC6wjfdxBtCVSDuav4=; b=ZoZZ2v7Q08sABK7R9R0BB26im3 ubwCxbiwAbrNjUn534kklS+OUnXgxqEKDpRfGQtUcYdZ8eY9GJgqu3iTePlcABbSbzhyzg87UYDhH R5FgzhuinFDOXUopFopX+0aJbCvOyrK+mtfLl6EjqTy/CKTdplvQd5og3SB42QeLTnE4ow/p+knoL RTKCF/KUD2fPJc3wgdcr/4jOw+ahyqVllobfg/WxgaDhnoA1p4tnHSz46swuA6r0yTpFBjIm/PrU+ 0lSf07kHQMZysi8SxvzCO2L5bqFh7VRyP0x0YwwRCIO3We7zowmd6DkMrRil9JRoFM8PK1qbbXa3W 2/506uBw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kxplj-0003KS-98; Fri, 08 Jan 2021 11:17:23 +0000 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kxplL-0003K8-SN for linux-arm-kernel@lists.infradead.org; Fri, 08 Jan 2021 11:17:01 +0000 Received: by mail-pf1-x42a.google.com with SMTP id t22so6050654pfl.3 for ; Fri, 08 Jan 2021 03:16:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Q/XWdQvC1a7Oc8D7QxXhIReTPnOWlmRBh0y1lPu5q2g=; b=icksVoKDYYNfn5rdwnSOBcMLNlP6MhJd2ZFb/pONRQBEQzS38LrULGYD2h3Q3HrxGH ubIA73q3SDojeHSyhDNbeX6rNQnRIx+Eo78DxysU/CoUQbIQ94YYzoZUUURr9LYuEEmh ao9fjibWRXkhsDvBL8MAt5Ou3qKFVK9ZtWekdxSjEr6sb1hlUN2ZaS1oxe9PN1oJizF3 eKKCdOiDStswsUuWwRlukYAicKR/BnPiIT6Ajh5J32xTdo9SE2KfqlfCEZUbn8bpjBjO DbVvkGSmO1oBKAnRLVmjvc7uyYdW5/GwHelli3ksUooaDHMAeprRwtnTZW7+zJY30pX1 ZtFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Q/XWdQvC1a7Oc8D7QxXhIReTPnOWlmRBh0y1lPu5q2g=; b=isDE384KTD3fGi03ew7ikrNb4wvl8jUDGhtX/wh8F60iJ2KmvMovKlXpqxREVSRvuo UPKu6QFvRYp27/mzQT/f3dQXdqwd9YlFzMofP+btFdHrzuOEXuxESq4PHaRrYStrejve 5dZnKX+mWfcAXi+2Ri17ovrTMJVfXPbvOMMItLyKWMO/cIsqx+tjsGUnVe1vrzZapnAo t1OJZplCPW+Cm+foLk6n/d2YiLFTDTQLT+8kJ1SiDIl/Mcajtoi8a1QjejdySAbKblbS iX71bt+XQwIeLI4OtT5Ed24qEuJ4vzRnWXqZIg88UI126I/jt2rwlwq+bHlzar9pDCQR cz5w== X-Gm-Message-State: AOAM530dldm8dZMOMtYo1degH1NamDJSvM9/0uzMNuAJWFjknyCiwrZZ n1MgFATUkB3AuWJ0w95CtZ47uo2xHdsLwA== X-Google-Smtp-Source: ABdhPJyUnRgZNlqgTFgRb3iIu3JSH9H7Ol328tXDqCK8GlfctTgvTf23aTGBnb+vqPe1YzQsS3R8pQ== X-Received: by 2002:a62:fc4f:0:b029:19d:d060:27ca with SMTP id e76-20020a62fc4f0000b029019dd06027camr3154919pfh.66.1610104617471; Fri, 08 Jan 2021 03:16:57 -0800 (PST) Received: from localhost ([122.172.20.109]) by smtp.gmail.com with ESMTPSA id 8sm9767211pgx.48.2021.01.08.03.16.56 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Jan 2021 03:16:56 -0800 (PST) From: Viresh Kumar To: Catalin Marinas , Will Deacon Subject: [PATCH V4 0/3] arm64: topology: improvements Date: Fri, 8 Jan 2021 16:46:50 +0530 Message-Id: X-Mailer: git-send-email 2.25.0.rc1.19.g042ed3e048af MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210108_061659_936897_D2A97B16 X-CRM114-Status: GOOD ( 10.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Viresh Kumar , Ionela Voinescu , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Vincent Guittot Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, Here is the V4 with the general improvements for topology stuff. This cleans up the code and makes it work with cpufreq modules. V4: - Added Rby from Ionela. - In 3/3, Print cpus instead of amu_fie_cpus and make it pr_debug instead. Viresh Kumar (3): arm64: topology: Avoid the have_policy check arm64: topology: Reorder init_amu_fie() a bit arm64: topology: Make AMUs work with modular cpufreq drivers arch/arm64/kernel/topology.c | 115 +++++++++++++++++------------------ 1 file changed, 56 insertions(+), 59 deletions(-) Tested-by: Ionela Voinescu