From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27715 invoked from network); 31 May 2022 17:25:54 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 31 May 2022 17:25:54 -0000 Received: (qmail 27768 invoked by uid 550); 31 May 2022 17:25:46 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 22253 invoked from network); 31 May 2022 16:01:35 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654012882; bh=WaZPxezERvXxWSR20vjO6mRMqeP64XtvJ9phxzM8Wpw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=jMEircEpk7Qa7s1rNAlI8nS0Rox00/3jC7FfauQw3nrc8OmwMoGKzhjOfn/9UCAoW Rgqy5g96dFneqbPR9lw2HjBnz0746omKrhdAXqAdtQi1SceoPeD4gCpZcV1kNiWpGW 1syt8fG15Uisfx998jX/uUTdkBBsr7y3+d1ECN+1FTYZ7RtV42yc5laWP7qdd4SZ5d t+c6BJ0Nddxtt2xJxfghWCCbrKhM/o3ShvlRegY/dMmSSguM0cFhSS+Q51bEYW5Gmu DhmZ4SVvqZN8z6Z+noPDEQYW82pjJeZybzmkdZEyFnzJBaHXFIsiV7aFw9oiqvkrHG cTCZpp7KRjfrQ== X-Gm-Message-State: AOAM532A1xPH2CxTBaOnPIeWSaujzmSjsVS1LU8ayxoyEqmYBGCWdiSS qHXnevzcjy22SWuE1x/DyBWqKTrnamkMMbymkt0= X-Google-Smtp-Source: ABdhPJztX9RuQzOYTt6tUYLbR4Lcd8XkPHAMFzObgsrYtSHnuG8CpCpURyBMw+dxN0EdOgUf9WbqY/sHWLYA0O7dWPo= X-Received: by 2002:a9f:3582:0:b0:365:8006:eceb with SMTP id t2-20020a9f3582000000b003658006ecebmr22004340uad.70.1654012881481; Tue, 31 May 2022 09:01:21 -0700 (PDT) MIME-Version: 1.0 References: <358025d1-28e6-708b-d23d-3f22ae12a800@xen0n.name> In-Reply-To: From: Huacai Chen Date: Wed, 1 Jun 2022 00:01:10 +0800 X-Gmail-Original-Message-ID: Message-ID: To: Arnd Bergmann Cc: musl@lists.openwall.com, WANG Xuerui , Linus Torvalds , linux-arch , GNU C Library , Yoshinori Sato , Peter Zijlstra , Marc Zyngier , Masahiro Yamada , Linux Kernel Mailing List , Jiaxun Yang , ACPI Devel Maling List , Jianmin Lv , linux-pci , Ard Biesheuvel , Huacai Chen Content-Type: text/plain; charset="UTF-8" Subject: Re: [musl] Re: [GIT PULL] asm-generic changes for 5.19 Hi, Arnd, On Tue, May 31, 2022 at 7:15 PM Arnd Bergmann wrote: > > On Tue, May 31, 2022 at 10:17 AM Huacai Chen wrote: > > On Tue, May 31, 2022 at 4:09 PM Arnd Bergmann wrote: > > > > > > On Tue, May 31, 2022 at 9:50 AM Huacai Chen wrote: > > > > On Mon, May 30, 2022 at 11:56 PM Arnd Bergmann wrote: > > > > > On Mon, May 30, 2022 at 5:00 PM WANG Xuerui wrote: > > > > > > Now I see > > > > > > the loongarch-next HEAD is already rebased on top of what I believe to > > > > > > be the current main branch, however I vaguely remember that it's not > > > > > > good to base one's patches on top of "some random commit", so I wonder > > > > > > whether the current branch state is appropriate for a PR? > > > > > > > > > > You are correct, a pull request should always be based on an -rc, orat least > > > > > have the minimum set of dependencies. The branch was previously > > > > > based on top of the spinlock implementation, which is still the best > > > > > place to start here. > > > > I have a difficult problem to select the base. Take swiotlb_init() as > > > > an example: If I select 5.18-rc1, I should use swiotlb_init(1); if I > > > > select Linus' latest tree, I should use swiotlb_init(true, > > > > SWIOTLB_VERBOSE). However, if I select 5.18-rc1, linux-next will have > > > > a build error because the code there expect swiotlb_init(true, > > > > SWIOTLB_VERBOSE). > > > > > > Ok, I see. This is the kind of thing we normally prevent by having everything > > > in linux-next for a few weeks before the merge window. How many issues > > > like this are you aware of? If it's just the swiotlb, you could try merging > > > the swiotlb branch that is in mainline now on top of the spinlock branch, > > > and still get a minimum set of dependencies. If there are many more, > > > then basing on top of the current mainline is probably less intrusive after > > > all. > > I have 3 issues: > > 1, swiotlb_init(1) --> swiotlb_init(true, SWIOTLB_VERBOSE); > > 2, the prototype of handle_kernel_image() should be changed from 5 > > parameters to 6 parameters; > > 3, the return value type of huge_ptep_get_and_clear() should be > > changed from void to pte_t (and the function implementation should be > > also changed). > > Ok, I see. Let's stay with the base on top of a mainline snapshot then. 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 Huacai > > Arnd