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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A2E2CC6FA99 for ; Wed, 8 Mar 2023 01:02:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229814AbjCHBB6 (ORCPT ); Tue, 7 Mar 2023 20:01:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229750AbjCHBBl (ORCPT ); Tue, 7 Mar 2023 20:01:41 -0500 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 317EEA42FF for ; Tue, 7 Mar 2023 17:01:39 -0800 (PST) Received: by mail-pg1-x52b.google.com with SMTP id s18so8756535pgq.1 for ; Tue, 07 Mar 2023 17:01:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1678237298; 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=6YvH7/30oaOoEw0fJZgjxisk6g6l9V1q6jEfMHBBZ7g=; b=m+uxGQ+9tXNfzy4WRdbu+myuhDshXcyXzBV/FL60bIqLgA5QTO4BIDu49QVcNlWQoX HXEtkAaPHt4BUHysRzgeG291T94nnA0iUWevelUjQWY4cpOU05Pw4PQjwmaQRMDCqgk7 gH9m2S+xbn0elKjpA1oT/24qcT57wvBjT0JRPtliohA108MIQbfXI4KVPyPnPdM2VDbe LgD8sRdSSHSYW5qFKK7aDSXSjKqXHkZwnsbjWz1fHtfReenMRihXPJoc7woFq6c/gbRt m0er4erQ1I8cKacpdck6Zb+lWyzC5oDFpWh0Z/Z+BbNA+sMCRFvfZWaX3wVNciB07Bpw r+Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678237298; 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=6YvH7/30oaOoEw0fJZgjxisk6g6l9V1q6jEfMHBBZ7g=; b=b8GzuiTq7G7cgGGfbkz9y3MMfOTtFCPuqzSL27P2nRqn70UIHmcZ5YF40oBBoLI2XS 0p9/W/TcQ85FuAqJszrslxajwmOgmUfk8ZPgLhJoVSXTvC3TdPKTl+3kg/I5uEKWLSb9 tf0c2/LtjyFC9Jr5QEamgbgz3aAM3BUYjmGHN7x6RhGKdx7aYPOv7RzuLFN00Eg13lp+ IjN/hW4e18lcw8EQwboXJcBLGJZ1Yt2ZmzLC7esp8yCgwGfU+bjgHAj53vRyPgiV/58s qLszHgNC/7GEXxZbElOyhSj6I7xjQLec0V9K/OHOIKzGFALNobRjkcker3F81op3pRbH MVUQ== X-Gm-Message-State: AO0yUKXLcavLEvVHsK3NXmUohe7WpJz8DkZ1lo4yHvOknVEwhFXPaQ5Y U7sO8YgE1vaGNrnhYMk5M8ivkg== X-Google-Smtp-Source: AK7set+510meSm73kiGWTkbA6xQr4dpohbcmAGKW4EbRmVSRTjthYftiUey8GAHEowaibQaODVyMKw== X-Received: by 2002:a05:6a00:9a9:b0:5a8:4c8a:2ce4 with SMTP id u41-20020a056a0009a900b005a84c8a2ce4mr4710038pfg.3.1678237298469; Tue, 07 Mar 2023 17:01:38 -0800 (PST) Received: from sunil-laptop ([49.206.8.117]) by smtp.gmail.com with ESMTPSA id a5-20020a62bd05000000b005afda1496c6sm8401705pff.31.2023.03.07.17.01.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 17:01:38 -0800 (PST) Date: Wed, 8 Mar 2023 06:31:28 +0530 From: Sunil V L To: Conor Dooley Cc: linux-riscv@lists.infradead.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, 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=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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