Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp6515409ioo; Thu, 2 Jun 2022 08:00:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjowaxuoFZvohDOwcvPbfxyxNQvZBxnyYGybKMQTLhfImN1nTSIs8iuEvWkLrEn39apBbc X-Received: by 2002:a17:90b:4d8b:b0:1e3:31df:c98a with SMTP id oj11-20020a17090b4d8b00b001e331dfc98amr16638268pjb.175.1654182033020; Thu, 02 Jun 2022 08:00:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654182033; cv=none; d=google.com; s=arc-20160816; b=NeYJQVHd7wC4B8R3JkpsWagMm8oggKA++Bf2gOMi/ezLqMR9znQzkLMpFG8FolUUEf +E92pRVB+rEyVfRlxLthudPep1BYCy6ISb+SdhgGYlywmwmL/e2PQ/xEt4rm3P+cVD/u Vynn1sGyJz9L8KMLt8ovUnpcU/pCd9sJ8r8PwFunT8bPkaNQAyXeaEujaaREK4y3eCab w5xs9+M5I3IeNFrmAr5lQGw9uBEOnlQtRcphnQu3PO3WZ100FxNw3rm+LzRn6SsaRVaJ eiqlLed6tqb5GLonrAmEBt22oy4xaXQpZpJ5L5T5yMJ+ZU2xqYdyWDKLICjm2aX5l04T OzSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=PdFtjFWYU0ZXWg1G0BlVfNYBMIQjE0J45zvCw0CPiyc=; b=iA5hKXQam7Wrvq20fzQmYKoa5k3NitkKQHg+ynOV46nySxo91S4xPoJvNgnkLgxW6L t+HcJGUej9JojSSqz5L36HW7IJn8gWpH80Soyamw93A2CnkjZK5YlpdP80DRUnu3UiBP J4yvbT1JmEkWP2/C9SdjqAql4hDvrdi2wTyYHiNC1yMYvctLa6mV5CQkCjkACObxZk0V GjJu5G9KS6oQvELVPuczl+g+b8r5uW9gg0g00BqMfdfbLZ/lNvIwwdox5eICqCbDxNIh 5nAuEXD8jzEZH50R2q+nNnND3wQJCs3o6UuhrGybRisAr5fGMzVaJSyS+R5Pap9e2Ziu ywJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ETMG8MES; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s12-20020a632c0c000000b003fca85f8c17si6264055pgs.486.2022.06.02.08.00.17; Thu, 02 Jun 2022 08:00:33 -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=@kernel.org header.s=k20201202 header.b=ETMG8MES; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233302AbiFBKC3 (ORCPT + 99 others); Thu, 2 Jun 2022 06:02:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233072AbiFBKCX (ORCPT ); Thu, 2 Jun 2022 06:02:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6358010D9; Thu, 2 Jun 2022 03:02:21 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BED95614FA; Thu, 2 Jun 2022 10:02:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 24F94C3411E; Thu, 2 Jun 2022 10:02:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654164140; bh=FbzUCD0Nyys1GvPjap25s98kySjc2A+W4LnGeGiZ0vs=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ETMG8MESltoMId/pTxjM5BKdiXqbNoT+K9rtBbmJvfwjr7xkdX1N+xQ4Mj1c7Z3E2 JG5Ob+10iGq7/7rgmvMjJo6QHGpyKFTfdUvKlzhfOD8L47VTlKfW3ipFykcjZCYaom x7Vkh+glnePKauzzCRdWDkWnkhe2mlFGX3EqNnaldQAX/JIudeqlWwbky+8QOgYKyC Yd+BQLg2mu5QLtpvz+6gu9iEa1dTF/ujh4FIqxjYCBTQEr7PZ9oLPMjRK0/UQcPhls NRrCrijcIl+29mZuPsfutOZDgiL3KwIJDc1UKpf/ari+G+YIzdX9Pl3WJxgTv45N+E gka9QmCY1iueg== Received: by mail-io1-f53.google.com with SMTP id b4so4286659iog.11; Thu, 02 Jun 2022 03:02:20 -0700 (PDT) X-Gm-Message-State: AOAM532PjMmTmRPSE4FuYt/XViiHGHsPeQtFDhueiLKm8ZIS9w4W3FH4 UYn6ngbQBfGCh4/3xggj0HX0Mfr5+15aS1Bt22c= X-Received: by 2002:a05:6638:1692:b0:32e:e00f:ec2 with SMTP id f18-20020a056638169200b0032ee00f0ec2mr2572945jat.270.1654164139147; Thu, 02 Jun 2022 03:02:19 -0700 (PDT) MIME-Version: 1.0 References: <358025d1-28e6-708b-d23d-3f22ae12a800@xen0n.name> <832c3ae8-6c68-db2c-2c7f-0a5cd3071543@xen0n.name> <47b559c0-b1e8-e800-0491-2431e2083dad@xen0n.name> In-Reply-To: <47b559c0-b1e8-e800-0491-2431e2083dad@xen0n.name> From: Huacai Chen Date: Thu, 2 Jun 2022 18:02:09 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [musl] Re: [GIT PULL] asm-generic changes for 5.19 To: WANG Xuerui , Ard Biesheuvel Cc: Arnd Bergmann , linux-arch , GNU C Library , Yoshinori Sato , Peter Zijlstra , Marc Zyngier , Masahiro Yamada , musl@lists.openwall.com, Linux Kernel Mailing List , Jiaxun Yang , ACPI Devel Maling List , Jianmin Lv , linux-pci , Linus Torvalds , Huacai Chen Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Hi, Ard, On Thu, Jun 2, 2022 at 12:44 AM WANG Xuerui wrote: > > Hi Ard, > > On 6/2/22 00:01, Ard Biesheuvel wrote: > > On Wed, 1 Jun 2022 at 09:41, Arnd Bergmann wrote: > >> On Wed, Jun 1, 2022 at 7:52 AM WANG Xuerui wrote: > >>> On 6/1/22 00:01, Huacai Chen wrote: > >>>> https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson.git/log/?h=loongarch-next > >>>> has been updated. Now this branch droped irqchip drivers and pci > >>>> drivers. But the existing irqchip drivers need some small adjustment > >>>> to avoid build errors [1], and I hope Marc can give an Acked-by. > >>>> Thanks. > >>>> > >>>> This branch can be built with defconfig and allmodconfig (except > >>>> drivers/platform/surface/aggregator/controller.c, because it requires > >>>> 8bit/16bit cmpxchg, which I was told to remove their support). > >>>> > >>>> [1] https://lore.kernel.org/lkml/e7cf33a170d0b4e98e53744f60dbf922@kernel.org/T/#t > >>> I see the loongarch-next HEAD has been updated and it's now purely arch > >>> changes aside from the two trivial irqchip cleanups. Some other changes > >>> to the v11 patchset [1] are included, but arguably minor enough to not > >>> invalidate previous Reviewed-by tags. > >> Very nice! I don't see exactly how the previous build bugs were addressed, > >> but I can confirm that this version builds. Regarding the two irqchip patches, > >> 621e7015b529 ("irqchip/loongson-liointc: Fix build error for LoongArch") is > >> a good way to work around the mips oddity, and I have no problem taking > >> that through the asm-generic tree. The other one, f54b4a166023 ("irqchip: > >> Adjust Kconfig for Loongson"), looks mostly unnecessary, and I think only > >> the LOONGSON_HTPIC change should be included here, while I would > >> leave out the COMPILE_TEST changes and instead have the driver > >> changes take care of making it possible to keep building it on x86, possibly > >> doing > >> > >> depends on MACH_LOONGSON64 || (COMPILE_TEST && ACPI) > >> > >> in the future, after the loongarch64 ACPI support is merged. > >> > >>> After some small tweaks: > >>> > >>> - adding "#include " to arch/loongarch/include/asm/ptrace.h, > >>> - adding an arch/loongarch/include/uapi/asm/bpf_perf_event.h with the > >>> same content as arch/arm64's, and > >>> - adding "depends on ARM64 || X86" to > >>> drivers/platform/surface/aggregator/Kconfig, > >>> > >>> the current loongarch-next HEAD (commit > >>> 36552a24f70d21b7d63d9ef490561dbdc13798d7) now passes allmodconfig build > >>> (with CONFIG_WERROR disabled; my Gentoo-flavored gcc-12 seems to emit > >>> warnings on a few drivers). > >> The only one of these issues that I see is the surface aggregator one. > >> I think we can address all three as follow-up fixes after -rc1 if the port > >> gets merged and these are still required. > >> > >>> The majority of userspace ABI has been stable for a few months already, > >>> after the addition of orig_a0 and removal of newfstatat; the necessary > >>> changes to switch to statx are already reviewed [2] / merged [3], and > >>> have been integrated into the LoongArch port of Gentoo for a while. Eric > >>> looked at the v11 and gave comments, and changes were made according to > >>> the suggestions, but it'd probably better to get a proper Reviewed-by. > >> Right. > >> > >>> Among the rest of patches, I think maybe the EFI/boot protocol part > >>> still need approval/ack from the EFI maintainer. However because the > >>> current port isn't going to be able to run on any real hardware, maybe > >>> that part could be done later; I'm not sure if the unacknowledged EFI > >>> bits should be removed as well. > >> Ard, do you have any last comments on this? > >> > > It would be nice if the questions I raised against the previous > > revision (v11) were addressed (or at least answered) first. In > > general, I think this is feeling a bit rushed and IMHO we should > > probably defer this to the next cycle. > > Actually I think Huacai did reply to your review on v11: > https://lore.kernel.org/all/CAAhV-H7KAg8RxN7M=WiOOh0fDhEKTyqrwp6V-SC0cyR0iMrdeg@mail.gmail.com/. > It's a bit unfortunate that he probably didn't justify some of the > approaches enough, and it's especially unfortunate that some of the > points (like maybe the kernel version string in the EFI stub header) are > result of their internal discussion, which I presume to be especially > hard to change due to their particularly worrying corporate dynamics... I'm sorry that you haven't seen my reply, but as Xuerui said, I have replied to your review. :) Since you didn't reply to my answers again, I supposed that you consider "everything is OK". :) Now I plan to send V13, with the following changes: 1, Remove kernel_version string in efistub; 2, Remove the boardinfo knob in /sys/firmware/efi; 3, Add a reference in the commit message to explain while we need a magic number [1]. [1] https://lists.gnu.org/archive/html/grub-devel/2021-10/msg00215.html Huacai > > But again, my point is that the userspace ABI in particular is *not* > rushed -- it has been brewing since v1 of the port which is already > several months ago, and multiple distro-building efforts are already > underway. We (LoongArch distro packagers) want to freeze the userspace > ABI so that many downstream efforts wouldn't be blocked by the merging > of kernel port. > > As the boot protocol is technically not part of the userspace ABI that > toolchains care about, and we already know it'll be a rather > standards-compliant UEFI implementation even if this part gets dropped > for brewing one more cycle, would taking this part out work for you? >