Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5576027rwl; Mon, 3 Apr 2023 23:59:46 -0700 (PDT) X-Google-Smtp-Source: AKy350aNxi4IwKuk/bBXOcuML3Cvm+qI+1w3L6R6yKUb5InSBqkwNQO6qaOaK+l4FB9NmmE23Oxz X-Received: by 2002:a17:906:6cf:b0:931:8221:e168 with SMTP id v15-20020a17090606cf00b009318221e168mr1577123ejb.57.1680591585776; Mon, 03 Apr 2023 23:59:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680591585; cv=none; d=google.com; s=arc-20160816; b=wMRSkb/voJNdNyP3txq/5on8AIHUfJ1fmE3R3ZTZMM7UCwhtD9vhhmFcsbY9sWM+PC xDiAovO12RbAOS8ZTtqOtlsGfF9R2NnhwCdAB/7gG1ms+tyUuFiaQDiuHvUeF/cViGma frd52UIbDY5/aGrLi8LV5u/6kOuWWswlJpcd4065778MA0GPpe9/IlLcfowV8P8nDeTj DPXHp71iHinJZwQw4pwaRrcxdygfrY81nrb9reH7V2mi8lyOKQ7w/e5u2fmTcGqNsMdN qSxdBalTdtQD2PTJ+cCjMLVt0GVxGYN/qPOPMSTAaRBdCuVd4PrjTtyY95zrJ8Wp8EEF XeRw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=X8KDVnrh1hTXgmg9cUX613HBU/NpNhOGn+tvPjKzddU=; b=Oy5JAdNsWzxEwqVB93btJFB2PikuOw/k6x9LA8SgwC3gk2JP7DaZnLHAfTwnVdOEHc RO/cLwtgLyMnzlm3YKea6jKMi132aaHMMRgydXnM3zj1Tru/ptbD0W7l7t8TcyysEW8F OYy/0zxHyRk+KBZxGmazxIGXQdNsV3sYmDpqY3A/8BSEkve+RlTp4y4ks8OrPJgSYdvs 7/AZN0y7H3mlCssmC874okRQurpN0RmLj72FWm1/XUSUml3G6nw3Erjlr8RPpUAUJkVY DY7fFHJHtFVliJYy+gj4YmZlcCK/T9kg2GTAOZyTYXdTCcSDk8n86Fz+CmLK97BNGAbT /IKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=mXZSLWXY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 dk5-20020a170906f0c500b0092533cf4684si254268ejb.961.2023.04.03.23.59.21; Mon, 03 Apr 2023 23:59:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=mXZSLWXY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233365AbjDDGyp (ORCPT + 99 others); Tue, 4 Apr 2023 02:54:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233263AbjDDGym (ORCPT ); Tue, 4 Apr 2023 02:54:42 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E6212110 for ; Mon, 3 Apr 2023 23:54:41 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id lr16-20020a17090b4b9000b0023f187954acso32976034pjb.2 for ; Mon, 03 Apr 2023 23:54:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1680591280; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=X8KDVnrh1hTXgmg9cUX613HBU/NpNhOGn+tvPjKzddU=; b=mXZSLWXYtv4n06LIlK6QFnQlklY/sKxaWTQU/vvO7qcfsgXLGGlGcwuCO19fKY6qQy efdh/b+0BcOjkIB2FxAoBZJ+N4ssU99ayNpww5SqKt7jOFgp5lClD7Ls81ZUiB3b5/Io s1QdUxXGmLS90t3QGktGbGlny60/DldtJ2R9m5GEfPJdo5b1RtLvsnDMEuI+bmuta/qW NjubZGOwRTbD/l4rfxV/adLRRcaGNHhIFZOKtewu25VMxkayhdNFMa32IxzRQ+d3k7AQ 6lI26mcYjTEuZBZnichASEWZZ4Riyn9b6mh0dOzRN51KiyLfvoPGA0q3sr5Jlq2YiUrt oC2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680591280; h=in-reply-to:content-transfer-encoding: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=X8KDVnrh1hTXgmg9cUX613HBU/NpNhOGn+tvPjKzddU=; b=ptWqk9O5yGGbw0/RoYRjHhdqvhAEyB2Lzt5OJbo7z+/dQCzNqmlMDLO7HzASv7KdCj EdmCt+2E7bbYcfFUVYDD0CuE4Na6jhT7ZOid+xkVRc6qvJVdb8PZPXLhuY6tzyO+y6KE oC/DEMZ1NxGf2wub4yLq4TjOHPY3TqyxIXWEziHCCLuVahLZ/XmDakHcopPzyEemeC2o qjnvuV8RtLapmWKJFbJJ+0Jqrb4Qun8+hFY/RzJnmR0+c+c4AtavYVQGh2JSnCbDj769 2OnV2z6wmL0ZHrDhQMUOK6X6bZwPciwrXV5XLVkaYuuIHkQlLEtCroewJzfPG/2XGUI4 30Bw== X-Gm-Message-State: AAQBX9d+aCAty6GwtnINfbwfuYLxQ+jnvHiBsDFnPSg3q/ftLUjrJckG m5XkbWTzBH8UMNaTTQ1+HQHk2w== X-Received: by 2002:a17:902:e494:b0:1a2:952b:27e0 with SMTP id i20-20020a170902e49400b001a2952b27e0mr1572818ple.8.1680591280254; Mon, 03 Apr 2023 23:54:40 -0700 (PDT) Received: from sunil-laptop ([106.51.184.50]) by smtp.gmail.com with ESMTPSA id h7-20020a170902748700b0019f0ef910f7sm7626350pll.123.2023.04.03.23.54.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Apr 2023 23:54:39 -0700 (PDT) Date: Tue, 4 Apr 2023 12:24:30 +0530 From: Sunil V L To: Ley Foon Tan Cc: Conor Dooley , linux-riscv , linux-acpi@vger.kernel.org, Linux Kernel Mailing List , linux-doc@vger.kernel.org, Palmer Dabbelt , Albert Ou , "Rafael J . Wysocki" , Len Brown , Thomas Gleixner , Marc Zyngier , Daniel Lezcano , Jonathan Corbet , Anup Patel , Andrew Jones , Atish Patra , Conor Dooley , llvm@lists.linux.dev Subject: Re: [PATCH V3 00/20] Add basic ACPI support for RISC-V Message-ID: References: <20230303133647.845095-1-sunilvl@ventanamicro.com> <16007014-c5f2-4b07-baec-e19952236aa5@spud> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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-kernel@vger.kernel.org On Tue, Apr 04, 2023 at 02:35:19PM +0800, Ley Foon Tan wrote: > On Wed, Mar 8, 2023 at 9:08 AM Sunil V L wrote: > > > > On Tue, Mar 07, 2023 at 06:44:35PM +0000, Conor Dooley wrote: > > > On Tue, Mar 07, 2023 at 06:13:22AM +0000, Conor Dooley wrote: > > > > > > > > > > > > On 7 March 2023 05:06:16 GMT, Sunil V L wrote: > > > > >On Mon, Mar 06, 2023 at 09:51:09PM +0000, Conor Dooley wrote: > > > > >> Hey Sunil, > > > > >> > > > > >> On Fri, Mar 03, 2023 at 07:06:27PM +0530, Sunil V L wrote: > > > > >> > This patch series enables the basic ACPI infrastructure for RISC-V. > > > > >> > Supporting external interrupt controllers is in progress and hence it is > > > > >> > tested using poll based HVC SBI console and RAM disk. > > > > >> > > > > > >> > The first patch in this series is one of the patch from Jisheng's > > > > >> > series [1] which is not merged yet. This patch is required to support > > > > >> > ACPI since efi_init() which gets called before sbi_init() can enable > > > > >> > static branches and hits a panic. > > > > >> > > > > > >> > Patch 2 and 3 are ACPICA patches which are not merged into acpica yet > > > > >> > but a PR is raised already. > > > > >> > > > > > >> > Below are two ECRs approved by ASWG. > > > > >> > RINTC - https://drive.google.com/file/d/1R6k4MshhN3WTT-hwqAquu5nX6xSEqK2l/view > > > > >> > RHCT - https://drive.google.com/file/d/1nP3nFiH4jkPMp6COOxP6123DCZKR-tia/view > > > > >> > > > > > >> > The series depends on Anup's IPI improvement series [2]. > > > > >> > > > > > >> > [1] https://lore.kernel.org/all/20220821140918.3613-1-jszhang@kernel.org/ > > > > >> > [2] https://lore.kernel.org/lkml/20230103141221.772261-7-apatel@ventanamicro.com/T/ > > > > >> > > > > >> Building a clang-15 allmodconfig (I didn't try gcc) with this series, and > > > > >> Anup's IPI bits, results in a broken build, due to failings in cmpxchg: > > > > >> > > > > >> /stuff/linux/drivers/platform/surface/aggregator/controller.c:61:25: error: call to __compiletime_assert_335 declared with 'error' attribute: BUILD_BUG failed > > > > >> while (unlikely((ret = cmpxchg(&c->value, old, new)) != old)) { > > > > >> ^ > > > > > > > > I am able to build without any of these issues using clang-15. I am > > > > > wondering whether the base is proper. I had rebased on top of the master > > > > > and couple of patches from IPI series were already merged in the master. > > > > > > > > > > Do you mind verifying with my branch > > > > > https://github.com/vlsunil/linux/commits/acpi_b1_us_review_ipi17_V3? > > > > > > > > I can check that later I suppose. > > > > > > That's broken too. > > > > > > > > Or if you could provide me your branch details, I can look further. > > > > > > > > 6.3-rc1, with both series applied, sans Anups applied patches. > > > > > > I've pushed my stuff here, but unlikely that it makes any odds since > > > your branch experiences the same build issue. > > > https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux.git/ borked-acpi-surface > > > > > > My build commands are wrapped in a script, but it's an LLVM=1 > > > allmodconfig run w/ clang-15(.0.7) etc. > > > > > Ahh allmodconfig. Thank you very much!. I can reproduce the failure. Let > > me look further and fix in next revision. > > > > Thanks! > > Sunil > > Hi Sunil > > One question regarding PMU in ACPI flow. > > We use DT to decode the supported HPM counters/events for the > different platforms now. > How do we enable PMU (drivers/perf/riscv_pmu_sbi.c) when using ACPI method? > Note, this might be in separate patch series. > Hi Lay Foon, This driver uses SBI calls and hence should work in case of ACPI also. There is one minor change required in this driver for overflow interrupt. I have a patch for that in future series. Thanks, Sunil