Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6719952rwr; Tue, 9 May 2023 20:55:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4QuSjfRvHQSZJfBCQYSSuScDxrQ5Y8h/P7+2lkYvr7y5k2zsAryc3Co/XtK6pkKWArIePP X-Received: by 2002:a17:90b:4a84:b0:24d:dcbb:6307 with SMTP id lp4-20020a17090b4a8400b0024ddcbb6307mr19121952pjb.6.1683690918013; Tue, 09 May 2023 20:55:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683690917; cv=none; d=google.com; s=arc-20160816; b=FJAmFgYj4CjorQDSTmBcm+v5RDvYOOvFqrgLaNvD6aM9Jy/TQ7T0VignG0bFGA0fpf lPE+zI85dPhNRyxzcept2sBlHo27AZ94DXxIjrRvER/oUvko/sOzYn+ktJeM67mkS++8 hNL+/zKWWQ/9PFTTuxHf3V8L4g3Bu2z6J6Pl+9LIkoAGWlZ/LHnzk9j/dXD+4dePe8+L DaPDvsdcAnXjiW1jIhupamRbimBJsIB16hE9v2nOBCBH/WGkw4PbC+0eOnA3lh9/5s9E /VGBpDvGfO1sgWY8L8W1eG077/v2sF+W8bxiSoewoyFbB4q0ChpQTQW09m4f0mF8DMTi /Png== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ifGsiDNA4DSRmYfOgUypvWteVU13/UhrU3vLKCdk6uY=; b=YKBvBkWWJMxL+jYQCyb20YyOIJtL2C7s0/5poGgMtBQshtLO3uoAFU1poPkKkar6AA dZOHPD5sau2OtzaD6XC6nOzd07rvKTDNCFT0EseeIYBUAzIrC44++DxjAWGxNUGAF27+ ftZB2Io+SgplOjp5xA+3emo+Yyl2Mu6Q88StVg/QlAQJGfYxrEwnS6iZ9B99gx9JJ/CF sRL5bgVBZiyxOw4ZKU/cTRdi6cmEO5H0xzMZm2AffqmzEPz/Ia88Yf2lH8G6Jp2Ctl2l f7MxCR99OrYnVkSsg4O9AEbP+Qq+6+jB3Q9HqDK1+gNsAyTr3nkn39kVYh7jznll+wyh qKOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=gpu59KdB; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i12-20020a633c4c000000b0051b5256a3fdsi3225453pgn.305.2023.05.09.20.54.58; Tue, 09 May 2023 20:55:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=gpu59KdB; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235348AbjEJDrI (ORCPT + 99 others); Tue, 9 May 2023 23:47:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235134AbjEJDrH (ORCPT ); Tue, 9 May 2023 23:47:07 -0400 Received: from mail-oa1-x36.google.com (mail-oa1-x36.google.com [IPv6:2001:4860:4864:20::36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12B27210A for ; Tue, 9 May 2023 20:47:05 -0700 (PDT) Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-18f4a6d2822so42038364fac.1 for ; Tue, 09 May 2023 20:47:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1683690424; x=1686282424; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=ifGsiDNA4DSRmYfOgUypvWteVU13/UhrU3vLKCdk6uY=; b=gpu59KdBTaV2y1OrztVKMXiHwwwuoI3UpLzcobU/TQ2lpWwCXqfQeLrRAXWEPGtJSt tm1d0OXblLRJdNQRMO2buSn3nl1xIhAN8Kauc/LZVWUMo8CXL0iFI3d6DEDxF1ycqWDw r1rHmplIjra3BgAkeBX8t7EOBIdRohvoIDuRjqlOuvOXLOP6YOeNU2ZpS5MKq642wdhX GfNYlzC0XytTFCaerhonm26O9xJ9/8MhM6sd7/oIFtzgrZQLfmX3yglSVV8N/PhPQkiH i7/Yi2ApjQ0JBdYqdm0OldmwCNu0AoOvfYm4ktvDPD+BwoUqLs1zBdJSVi+IJmJVihcs 6wRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683690424; x=1686282424; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ifGsiDNA4DSRmYfOgUypvWteVU13/UhrU3vLKCdk6uY=; b=jqBVyygYyTXDD59h2xuP6LsLdpMV0eX1Xg13mb/f3sik0LzUbb13nQij0PdEtXBOvD hppcG/CdC4IbEck3SwBgRSk+kvIovNoEi5yT+j5XmFtVdvKJPqxDysofi9BrvNzzy/ui 4pCThih2MIDWM487T5ZqfGmDKURiMlOG/69wMJdlZph8AJCOjzam1JyRPI4fEm7G8ZrE v0vGVdpAQHPbM9jd9QGE5/ZY+OJvkYhDAuhSbzlPiserknME5L0DeCo3eHWjDv11IwrG MzcDw2OofSFcOPqF1lF6AO4jP1FjOiA8gmKjUh9UJSvUN/txsGII5d+MewYln8dOxZZc BqXQ== X-Gm-Message-State: AC+VfDxIzd7wfQaWzatzSflrfni398sP0ONi1lxsdxWmkpBAo7M7dPBu xIUHKfdieCfNll0d7M2C43GRXw== X-Received: by 2002:a05:6830:6081:b0:6ab:1aa5:1634 with SMTP id by1-20020a056830608100b006ab1aa51634mr2429359otb.10.1683690424388; Tue, 09 May 2023 20:47:04 -0700 (PDT) Received: from sunil-laptop ([106.51.189.144]) by smtp.gmail.com with ESMTPSA id j16-20020a9d7690000000b006a6558ef17fsm5865716otl.30.2023.05.09.20.46.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 May 2023 20:47:04 -0700 (PDT) Date: Wed, 10 May 2023 09:16:47 +0530 From: Sunil V L To: Conor Dooley Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-acpi@vger.kernel.org, linux-crypto@vger.kernel.org, platform-driver-x86@vger.kernel.org, llvm@lists.linux.dev, Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou , "Rafael J . Wysocki" , Len Brown , Daniel Lezcano , Thomas Gleixner , Weili Qian , Zhou Wang , Herbert Xu , "David S . Miller" , Marc Zyngier , Maximilian Luz , Hans de Goede , Mark Gross , Nathan Chancellor , Nick Desaulniers , Tom Rix , "Rafael J . Wysocki" Subject: Re: [PATCH V5 08/21] RISC-V: ACPI: Cache and retrieve the RINTC structure Message-ID: References: <20230508115237.216337-1-sunilvl@ventanamicro.com> <20230508115237.216337-9-sunilvl@ventanamicro.com> <20230509-atlantic-writing-3ceea38e050e@spud> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230509-atlantic-writing-3ceea38e050e@spud> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hi Conor, On Tue, May 09, 2023 at 06:50:07PM +0100, Conor Dooley wrote: > Hey Sunil, > > On Mon, May 08, 2023 at 05:22:24PM +0530, Sunil V L wrote: > > RINTC structures in the MADT provide mapping between the hartid > > and the CPU. This is required many times even at run time like > > cpuinfo. So, instead of parsing the ACPI table every time, cache > > the RINTC structures and provide a function to get the correct > > RINTC structure for a given cpu. > > > > Signed-off-by: Sunil V L > > Acked-by: Rafael J. Wysocki > > From this patch until "RISC-V: Add ACPI initialization in > setup_arch()" (which is 19/21), the series fails to build. > > allmodconfig, clang-16: > ../arch/riscv/include/asm/acpi.h:22:23: error: unknown type name 'acpi_physical_address'; did you mean 'efi_physical_addr_t'? > ../arch/riscv/include/asm/acpi.h:22:51: error: unknown type name 'acpi_size' > > rv32_defconfig, clang-16: > arch/riscv/kernel/setup.c:297:7: error: use of undeclared identifier 'acpi_disabled'; did you mean '__cpu_disable'? > arch/riscv/kernel/setup.c:297:7: warning: address of function '__cpu_disable' will always evaluate to 'true' [-Wpointer-bool-conversion] > > I ballsed up a toolchain upgrade to gcc-13, so the whole series is > showing build issues on patchwork for the gcc configurations: > https://patchwork.kernel.org/project/linux-riscv/list/?series=745787 > > However, I suspect that the same patches that fail for clang-16 will > fail for gcc-13 too, once I have fixed that! > My bad. It is a commit order issue. Let me fix it. Thanks! Sunil