Received: by 2002:a05:6512:e85:0:0:0:0 with SMTP id bi5csp3103744lfb; Tue, 28 Jun 2022 06:36:23 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sPRL+QkDx/NTEarZ7nKSm5Cbg3eyJgD7SNjK+Iq34cWGByFfmZFAY9xvmOQckKIsoUzJNK X-Received: by 2002:a17:907:7b87:b0:726:c868:cf38 with SMTP id ne7-20020a1709077b8700b00726c868cf38mr5324925ejc.580.1656423383412; Tue, 28 Jun 2022 06:36:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656423383; cv=none; d=google.com; s=arc-20160816; b=lnQPRBKbHGD6r/tJ7yIqjRGgGGXDeb8XqE1hzXh1lqqVY9bUMpNMCZMNlQXfTDqMFn IS6waES7pHG444Lti49x9TrfQwEstSqy/q5EIcDYgDFrI1gXhXGrjTYo4N+FCSfSFeik uBSXCSRTs+KuHs2bQvTnR9Uf1mTbpuvQuDJUyjQl1ZP5MbV8Z639lmdnct5xcR2tUZ9+ xJGaLGW3HLY5ro3N9r3S95k4u3k0YSTWNAzTCZaNFoqEkTgaKGawc0UAKMxCzW3H8pey m/g3aAvGTyz+N6xUvdBCiLS62JN55WKke5HzhCACnhONbA6kG2GKeLvzRUpBDTtMKsSY 3Fzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=k0GMlYBkM74kbEjR7zJHBjczbvWJscTLcpaaGUKYDek=; b=PBNDoSpaAR5waCYecQhkLa7200sdPucT6317Kfz6TYz6CjgQOri+WyWWI0NtArnNWq 39HDKkoSVoWrJpF4RztVoVCAD0RiCxnWrsBDK0N59HTWUJqyYZmCZb767G74c1SrYyk3 NlFEV7BMcBu86O4fQLs6e/76CZIwBsh5Ufk4+T0+CA4XzUCFuHNPjG2NHZur2nB6qDUr WzV4dKPRfhtKsaROfcy4hXzwCc99rxkxkFP219mzykp0T87MLN41smYE7EHegGnBnPFX Xd174TeeQfgT6Bw3WvxTM9KkmhDOgIBXhoWdgXslilpZ+dG6FwGtazGyo9c2g3VZPzHo dTqw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s22-20020a056402165600b00435643b13f6si10252522edx.374.2022.06.28.06.35.55; Tue, 28 Jun 2022 06:36:23 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346296AbiF1N2Q (ORCPT + 99 others); Tue, 28 Jun 2022 09:28:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346554AbiF1N1r (ORCPT ); Tue, 28 Jun 2022 09:27:47 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECCC6EB5 for ; Tue, 28 Jun 2022 06:26:40 -0700 (PDT) Received: from dggpemm500022.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4LXQLS3b5VzkWcd; Tue, 28 Jun 2022 21:24:48 +0800 (CST) Received: from dggpemm500002.china.huawei.com (7.185.36.229) by dggpemm500022.china.huawei.com (7.185.36.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 28 Jun 2022 21:26:38 +0800 Received: from [10.174.178.247] (10.174.178.247) by dggpemm500002.china.huawei.com (7.185.36.229) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 28 Jun 2022 21:26:38 +0800 Subject: Re: [PATCH V13 02/13] ACPI: irq: Allow acpi_gsi_to_irq() to have an arch-specific fallback To: Jianmin Lv , Thomas Gleixner , Marc Zyngier CC: , Lorenzo Pieralisi , Jiaxun Yang , "Huacai Chen" References: <1656329997-20524-1-git-send-email-lvjianmin@loongson.cn> <1656329997-20524-3-git-send-email-lvjianmin@loongson.cn> From: Hanjun Guo Message-ID: Date: Tue, 28 Jun 2022 21:26:37 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <1656329997-20524-3-git-send-email-lvjianmin@loongson.cn> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.178.247] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpemm500002.china.huawei.com (7.185.36.229) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,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 On 2022/6/27 19:39, Jianmin Lv wrote: > From: Marc Zyngier > > It appears that the generic version of acpi_gsi_to_irq() doesn't > fallback to establishing a mapping if there is no pre-existing > one while the x86 version does. > > While arm64 seems unaffected by it, LoongArch is relying on the x86 > behaviour. In an effort to prevent new architectures from reinventing > the proverbial wheel, provide an optional callback that the arch code > can set to restore the x86 behaviour. > > Hopefully we can eventually get rid of this in the future once > the expected behaviour has been clarified. > > Reported-by: Jianmin Lv Why do we need the Reported-by tag here? > Signed-off-by: Marc Zyngier > Signed-off-by: Jianmin Lv > --- > drivers/acpi/irq.c | 18 ++++++++++++++++-- > include/linux/acpi.h | 1 + > 2 files changed, 17 insertions(+), 2 deletions(-) The rest is looking good to me, Reviewed-by: Hanjun Guo Tested-by: Hanjun Guo Thanks Hanjun