Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5861614ioo; Wed, 1 Jun 2022 14:20:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXmzvAjtj0rdcfbSugU9EzBQY63VpydLJNdkZH/fntQRdGrPyjGrciDJjExw+xGodm8s6C X-Received: by 2002:a17:90a:fe8f:b0:1e3:1dcd:7f94 with SMTP id co15-20020a17090afe8f00b001e31dcd7f94mr15162088pjb.23.1654118435608; Wed, 01 Jun 2022 14:20:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654118435; cv=none; d=google.com; s=arc-20160816; b=aaH++Uw145S9giLx+pRkVB1H0aIN1NhPwChJjz1Ezk4zHKWM+Bym3tq4ZzydnILlAt wGY4v2QAnXyAjUNErczs9vTCWDbWhHI/b+ANGB9F+HF5hIHZjpoOv7rU+FzAJ1hxSWl4 qdmGZpglAoj6eYbpCl8iZtMe/ON8kaPpQST/3gi6ffGVLvO6e4e/SfiDLfDKatLhxaq0 pSGQqYF0FW+pSWog1wkSih/WnxUZiFAyNlEjsDrGvUyFEN9YcwmTWXz/x947WGdv3hMz B9pPXtIPHxeqRHSfRrcKB5ZIu8zpCC7/7PPjoF7e01HBuwjzWhHkPl62m8CT2jb2GXm8 4Diw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=+l0QZEYRZFkDtkOAfnQauLOAA54T4e6EQp+r1BBskPk=; b=nLjrkqb0k96J4A6SeZqxFXDhy2CW9Nb3DPx9w7hQSOG7SMI4FmSQ/qmeGSacTuIH6W mCz2f+T4EpvnAh0YrS3H5FZXD5ko2wTAts/7VibGC8RU5DwW5NvZVpY9MY9pqNjqGP6f WXXWXmKVKFKQ8Gs8N9h5NtyXtr6g3wxHr9y2N4x4TN+FGqTC3XwqyA445S9Xqvdq6kHm CZLMR2f5zatDDra/kaPz+IxtbpnXjTyvk06wiaMqsAutQccgZv6KQpn1RKXghnI3E50h wjzu0TLP1t6qFQyWFROgwbpoR3/wUeAcJ1tdMAAW2ezRoqJEarpFUPrzovQc+9P9JPDz 4mjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xen0n.name header.s=mail header.b=IUcZH4S0; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id s64-20020a17090a2f4600b001e30a5c2fafsi9734510pjd.14.2022.06.01.14.20.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 14:20:35 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@xen0n.name header.s=mail header.b=IUcZH4S0; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 643412342AF; Wed, 1 Jun 2022 13:11:18 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348943AbiFABOI (ORCPT + 99 others); Tue, 31 May 2022 21:14:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240650AbiFABOG (ORCPT ); Tue, 31 May 2022 21:14:06 -0400 Received: from mailbox.box.xen0n.name (mail.xen0n.name [115.28.160.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4669795A18; Tue, 31 May 2022 18:14:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xen0n.name; s=mail; t=1654046039; bh=pMq9NS9OSPMIUB60xzKZhXnr5K83nxwQ8BT9E2zyna8=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=IUcZH4S0FgPYhAx2CZ5cPrcna6qZkVxpbP32f4XEImxLpPADWip7X9LJ8dDjXwi9Y gkPH7D3zlvQuVPlKaicnTInLT3w4VG2NHPEtkQFFKfxq5U+JP0FEx4/5V+icuOjiWM ekOBReg5J/qWSZPuVDlqu9VGeGrroQXf3lf9VR+M= Received: from [192.168.9.172] (unknown [101.88.28.48]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mailbox.box.xen0n.name (Postfix) with ESMTPSA id 90345600FF; Wed, 1 Jun 2022 09:13:58 +0800 (CST) Message-ID: Date: Wed, 1 Jun 2022 09:13:58 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:103.0) Gecko/20100101 Thunderbird/103.0a1 Subject: Re: [musl] Re: [GIT PULL] asm-generic changes for 5.19 Content-Language: en-US To: Arnd Bergmann , Huacai Chen 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 References: <358025d1-28e6-708b-d23d-3f22ae12a800@xen0n.name> From: WANG Xuerui In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE 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 6/1/22 04:07, Arnd Bergmann wrote: > On Tue, May 31, 2022 at 6:01 PM Huacai Chen wrote: >> On Tue, May 31, 2022 at 7:15 PM Arnd Bergmann wrote: >>> On Tue, May 31, 2022 at 10:17 AM 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. > Ok, glad you got that working. > > What about the ACPI changes? I see that these are needed to get a clean build, > and as I understood it, they are supposed to get merged through the > acpica tree. I think the acpica bits could be dropped with some effort too; the main dependency on the various ACPI 6.5 tables are the SMP bits, which relies on the new MADT CPUINTC tables. While the others also provide information, they're not as fundamental as this, and even this CPUINTC piece can be taken out given we can't run this branch on any real LoongArch hardware after all (due to the irqchip changes being backed out), I think we can just leave the remaining bits dummy-initialized with some simple comment. We can review once the new branch with only arch/loongarch changes is out. >> 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). > Right, that is ok to keep in there, we should fix that by adding a Kconfig > dependency for the driver. It looks like it has a CONFIG_ACPI dependency, > so it is currently limited to x86/arm64/ia64, which all have the short > cmpxchg(), > but in reality this driver can only work on x86 and arm64. In case this isn't obvious to any non-native English speaker: the driver is written for the Microsoft Surface, which only has x86 and arm64 variants to this date and the list is probably not going to expand in the foreseeable future, so the word "work" here takes a quite literal sense. ;-) I agree a tiny fix for that driver could be added later that limits the driver to X86 || ARM64. As a popular product line, adding support for yet another architecture would be a news visible enough for the crowd that they'll come and tweak the Kconfig themselves.