From mboxrd@z Thu Jan 1 00:00:00 1970 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EC18AC433F5 for ; Wed, 20 Oct 2021 18:48:47 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (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 29D9161038 for ; Wed, 20 Oct 2021 18:48:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 29D9161038 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4HZKQ52zDMz3bc4 for ; Thu, 21 Oct 2021 05:48:45 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=X8tKojH7; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=198.145.29.99; helo=mail.kernel.org; envelope-from=robh@kernel.org; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=X8tKojH7; dkim-atps=neutral Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4HZKPL4Q4rz2xv0 for ; Thu, 21 Oct 2021 05:48:06 +1100 (AEDT) Received: by mail.kernel.org (Postfix) with ESMTPSA id 58C8A610D0 for ; Wed, 20 Oct 2021 18:48:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634755683; bh=n8VrOe4I2yKWKENo2xOz+GrW26l+tosuZNQ1rYD5gKE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=X8tKojH7Z8fdPyVTk4z+AoVAS3a9h5oYDEVDa7uI3b3vQWDC0RDkopnsSuFW09wMx S5ymoCHlxw+BZDcfi8a/SbXyaru92R/D/4JVacWcGVpk2lCHkMZKGKNpRCcpV4amQE 0SC95mBmBf+xrbZsPKYOZ3Tw+i6Awvb4CDoD4fADso7xeFCGtNQbQjFeERWiYt5J4a XviC1MWcQkWkyhnJbBbb7MhB9KdUgixAetlN+ZjGulMI+TYlz6yOX8pi/IJu8QIrAm DPTPSRiUO2vc4Q2/LyUL9rJoQfRdVbdcu/SicgghaP/nLNsd5aIhVOahGYlBk3gw4h jokZEwKpwMQ/g== Received: by mail-wr1-f41.google.com with SMTP id r10so273179wra.12 for ; Wed, 20 Oct 2021 11:48:03 -0700 (PDT) X-Gm-Message-State: AOAM532Izt7zxxvzCH2EiOrM8D4J9xFqEu2GoIyAwpPXRU9RA4qIlX6q X2LGDJQA6R1endHT/2x81EhuqemR5el0NrCW/g== X-Google-Smtp-Source: ABdhPJyDkQcU37hcsbyKe6namKZuEksRA+CPb1y/N+dx0XKOp77yba3905ZumF5lcfjyaXaZElnjUUGJ+2NqhJwXc9g= X-Received: by 2002:aa7:cd0a:: with SMTP id b10mr942298edw.164.1634755670808; Wed, 20 Oct 2021 11:47:50 -0700 (PDT) MIME-Version: 1.0 References: <20211006164332.1981454-1-robh@kernel.org> In-Reply-To: <20211006164332.1981454-1-robh@kernel.org> From: Rob Herring Date: Wed, 20 Oct 2021 13:47:39 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 00/12] DT: CPU h/w id parsing clean-ups and cacheinfo id support To: Russell King , James Morse , Catalin Marinas , Will Deacon , Guo Ren , Jonas Bonn , Stefan Kristiansson , Stafford Horne , Michael Ellerman , Paul Walmsley , Palmer Dabbelt , Albert Ou , Yoshinori Sato , Rich Felker , X86 ML , Greg Kroah-Hartman Content-Type: text/plain; charset="UTF-8" X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Florian Fainelli , Scott Branden , "Rafael J. Wysocki" , SH-Linux , Ray Jui , "H. Peter Anvin" , "linux-kernel@vger.kernel.org" , linux-csky@vger.kernel.org, Openrisc , linuxppc-dev , Ingo Molnar , Paul Mackerras , Borislav Petkov , "maintainer:BROADCOM BCM7XXX ARM ARCHITECTURE" , Thomas Gleixner , Frank Rowand , linux-riscv , linux-arm-kernel Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Wed, Oct 6, 2021 at 11:43 AM Rob Herring wrote: > > The first 10 patches add a new function, of_get_cpu_hwid(), which parses > CPU DT node 'reg' property, and then use it to replace all the open > coded versions of parsing CPU node 'reg' properties. > > The last 2 patches add support for populating the cacheinfo 'id' on DT > platforms. The minimum associated CPU hwid is used for the id. The id is > optional, but necessary for resctrl which is being adapted for Arm MPAM. > > Tested on arm64. Compile tested on arm, x86 and powerpc. > > Rob > > Rob Herring (12): > of: Add of_get_cpu_hwid() to read hardware ID from CPU nodes > ARM: Use of_get_cpu_hwid() > ARM: broadcom: Use of_get_cpu_hwid() > arm64: Use of_get_cpu_hwid() > csky: Use of_get_cpu_hwid() > openrisc: Use of_get_cpu_hwid() > powerpc: Use of_get_cpu_hwid() > riscv: Use of_get_cpu_hwid() > sh: Use of_get_cpu_hwid() > x86: dt: Use of_get_cpu_hwid() > cacheinfo: Allow for >32-bit cache 'id' > cacheinfo: Set cache 'id' based on DT data I've fixed up the openrisc error and applied 1-10 to the DT tree. The cacheinfo part is going to need some more work. I've found I will need the cache affinity (of possible cpus) as well, so I plan to also store the affinity instead of looping thru caches and cpus again. Rob