Received: by 2002:a05:6359:322:b0:b3:69d0:12d8 with SMTP id ef34csp325661rwb; Wed, 10 Aug 2022 08:53:10 -0700 (PDT) X-Google-Smtp-Source: AA6agR6rXITf+UFFP0Ygrg9ummVO3omIl2uoMqQ9ZkapjFyUlAyh56w49SOSHyNiCVJ1B5RckJ+E X-Received: by 2002:a63:4d1a:0:b0:41b:d319:d8ad with SMTP id a26-20020a634d1a000000b0041bd319d8admr23629058pgb.613.1660146789778; Wed, 10 Aug 2022 08:53:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660146789; cv=none; d=google.com; s=arc-20160816; b=qezsQ3jBJCFW1SAhzsXQ9b4WmnlNt2q3Qkp/MYaOKQRIboaKvZL7gMnEi4uPMn4CYf 9cvyQwngYSBWd8c2lgGxU5hv1xOS5sslZFXhX/Yp3w+5PFr4UyUhqLCF/w9ljOboSUHM 5BUJ83sMfau8L18ESKIcYV2gyjWVdmtvCU8PCSgbhMXygWxnUzEfAmI0gzrw8W7h6U4V NhLl2sqRdzueJTVKalU1XNay+a9rifWv4mAb/klFOZr3gxqayptHBe7QbsMTJKo27ovG 3RGBtSt63GL3iB0iHgM+EMPMsQOoGXyxmY2z5yuwk+qpGpQgoG8+ZVMJZ7YjQAlvG0O/ X3Hg== 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=KRKrCBVNmApu5APJ2jcKjzJiXlSkAA5UHQhKMIWfbOU=; b=dAWJCHU5EOmZU0WimaTb2pZIYhWkzTFKHVdvzHZNPUAcsM11/QlBHSCU+BGwmmLmLr AueOH9f+xLoVRqeaBdNgTriX1956i3C4HjX3C2BOXuZdhbRC48pc8Qm5Z516KfA/u+bK Tas1zb3mQjY7XFlmeoBcc4QWIkVsj83irUQurdY2F3oOhdIwdlMzHo7kAMbjHXzVI97J iugEjcDANlvtggWajW9swfHL0IY5C7Z5o5dkXukKA+cjktt03HRJjTl1CX4dXyJdpJXA DcSE1MBNUfFs6cku9Ki6G9IsLQscwDd5hgAyenCVYp3zugYvEdlCLJF/l5bui9TPWTlO B4AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=piBrGR6b; 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 g4-20020a056a000b8400b0052bfb712a60si2921659pfj.328.2022.08.10.08.52.55; Wed, 10 Aug 2022 08:53:09 -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=piBrGR6b; 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 S231134AbiHJPig (ORCPT + 99 others); Wed, 10 Aug 2022 11:38:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230233AbiHJPie (ORCPT ); Wed, 10 Aug 2022 11:38:34 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8206B3F30E for ; Wed, 10 Aug 2022 08:38:32 -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 ams.source.kernel.org (Postfix) with ESMTPS id 3E441B81D04 for ; Wed, 10 Aug 2022 15:38:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EEFF9C43470 for ; Wed, 10 Aug 2022 15:38:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660145910; bh=qqqmFcLlUbU+LZpMH9dd3OhpfYNlFzxOGRdFjq4rYYs=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=piBrGR6byFvmu77NPFWbBqe2Z9thNdT+ETsXYN5UkNJiJg8RaQIf4uTP7PmZdKnrw P3tXJTkQqeb03+iulTWskGzJvsZjrjhnAGEKOnxWSTRDlUI8bS16LY/nnvkb1m/ros KX/t1DQJegahzN3NOtPzuBrTAP8kjCvt8Rppn9HWrgcGrBRgKWAxQo2URKsV8RtW2l V+76GedhpUddJxyLxPnUSDbR0X2CeTtitBrQz8E6KBQLGhgAYlKOOR+PxYgq4LEKOr CEVLLH1sKEaxpKsuFB2W27ZR5+e4I7NUQiQiB5EX9xDDJ8JH4jr8jK6DrQu9udauLR cQiwnTiFPXjbw== Received: by mail-vs1-f54.google.com with SMTP id q190so15520610vsb.7 for ; Wed, 10 Aug 2022 08:38:29 -0700 (PDT) X-Gm-Message-State: ACgBeo1633yTpu0iWY5LgVlRGCx+wPNLRRLjQkHs6ZI4YXbXOIRKglPh caoMb14EJr9X89JZsLoYutTPM+gEHxl4g/EtmEY= X-Received: by 2002:a67:e288:0:b0:388:b41d:1654 with SMTP id g8-20020a67e288000000b00388b41d1654mr6240428vsf.70.1660145908864; Wed, 10 Aug 2022 08:38:28 -0700 (PDT) MIME-Version: 1.0 References: <20220810103156.1214996-1-chenhuacai@loongson.cn> In-Reply-To: From: Huacai Chen Date: Wed, 10 Aug 2022 23:38:13 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] LoongArch: Fix the !CONFIG_SMP build for irqchip drivers To: Marc Zyngier Cc: Huacai Chen , Thomas Gleixner , loongarch@lists.linux.dev, Xuefeng Li , Guo Ren , Xuerui Wang , Jiaxun Yang , LKML 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, Marc, On Wed, Aug 10, 2022 at 7:01 PM Marc Zyngier wrote: > > On 2022-08-10 11:31, Huacai Chen wrote: > > 1, Guard get_ipi_irq() in CONFIG_SMP; > > 2, Define cpu_logical_map() for the EIOINTC driver; > > 3, Make eiointc_set_irq_affinity() return early for !CONFIG_SMP. > > > > Signed-off-by: Huacai Chen > > Frankly, the real question is why do you even bother? As far as > I can tell, LoongArch has no UP system. > > arm64 crossed that bridge a long time ago, and we never looked > back, because these systems hardly exist. > > I'd rather you simply have a CONFIG_SMP always set to 'y', and > be done with it forever. LoongArch also has low-end processors (even LoongArch64). Though we haven't translate all documents at https://loongson.github.io/LoongArch-Documentation/ in time, there are currently 4 LoongArch64 processors: Loongson-2K500 (single-core), Loongon-2K1000 (dual-core), Loongson-3A5000 (quad-core) and Loongson-3C5000 (16-core). So we indeed need a UP configuration. Thanks. Huacai > > M. > -- > Jazz is not dead. It just smells funny...