Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp36870282rwd; Tue, 11 Jul 2023 06:47:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlHSDYe1FFNoyMSSQW0PWXeccdsbGQDvrjYacNsrT6aL7oTJRjXJRANaxrVGiy1W52th885l X-Received: by 2002:a17:906:228d:b0:98d:9655:3fac with SMTP id p13-20020a170906228d00b0098d96553facmr16203735eja.71.1689083250303; Tue, 11 Jul 2023 06:47:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689083250; cv=none; d=google.com; s=arc-20160816; b=QJNctMDF/oU8+fLzX+QYMPoV6GI8RPrzCcKFTsF7OZ4lG0MYFYw1UKg3dZ8IaITXZo VKDF8zDVT/J/hPV6Tj6lY4vNrhBsdca/A8DyZhPdIjUVRCPZP1iJ2DwvcQ+lNMuPNXAT w6WDNxDoh670FH3O/uvAF7HCfeAdytRBtzG0gb8QAHqOvsWtJB4R0rHglPFYPvhC7Hzj eq0vuhTwuIGlzcuJPv8sTOZFLmXjSIWhDNpYvm33jo7QSk3Rt9dShOvMXK7YYphhBYsy bdAzweIt1azMgktN/N+Nfh30Txh5n3eDWHYnN5C60mx5mbBaenTPl4b1JGAruJAdLORp 7cKA== 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=1M416nxinRPhMN72vt3UGKfG1j5hFyRnFIH3z1K8CY0=; fh=TDQf0CKjnvjPTLhu3aiEsFzea3eH8Y5Zx5aPswaX0kY=; b=l56HExECLMBFS0SIUbUu9mwmRuDiSzjf626IosKsgr3p3UrjmVFRHGkdEZqb3y3iDd kna32M/KTKPdo7oONPTrpwn3IPe1PF+g9hVIst9PcXPwL9sAuzczOmbiqrjUJAF5SZe7 YH5psQ6a3iuRnqydirWZvFtwy2jlD8NLfowrXPedUdMU3n3m99di4V6c0AsHGcEYgDqL tZ4gQfLsaxCVZg4X1d+IeB0mYo6L6Yd/sSdX9L8zWmnC9yNFhaHojHRi7EeYquzyg31e 4B9AcDdMuunT63FsYX4DjpsiKHs5hI66DGpzJnekn7QsW5B4s9MgVqzUdDX1lqfKEE8a HuEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mLWHy13g; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gz10-20020a170906f2ca00b009886b606a71si1993077ejb.696.2023.07.11.06.47.05; Tue, 11 Jul 2023 06:47:30 -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=@linaro.org header.s=google header.b=mLWHy13g; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229961AbjGKNSG (ORCPT + 99 others); Tue, 11 Jul 2023 09:18:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbjGKNSF (ORCPT ); Tue, 11 Jul 2023 09:18:05 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5533912F for ; Tue, 11 Jul 2023 06:18:04 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-4f004cc54f4so8332313e87.3 for ; Tue, 11 Jul 2023 06:18:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689081482; x=1691673482; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=1M416nxinRPhMN72vt3UGKfG1j5hFyRnFIH3z1K8CY0=; b=mLWHy13gnfEODDnVaE+Cd9BMvRPT1potqsYTW7tW6KH3+OCJNqCXPRfpaKFPQ+O6UK At5idoRZXXjHXtri/l0U9ytWKOn362jHTwRZIykgJvLMO/RG5uVUhyXEcs1S3qKWpD2R 7LGVvosyn4tDvneqDBHdUGMIfhuIzIv5iBCDtnwoKoy3Ae2L9x3tlIzXn8vIJUBsZ8wb g/7SepshLR7SY7Y3uMMbftC1vE3RAMMgAF/Hs3rSfQbe/pWg3wZWQKwb56YZqhQesCPn zZgUHjvpiMy1+qxFHWMdS23fuvMp9YWI1rpkyQs02ronAbtT23DQHtVH45WsEpuFvtx7 0DTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689081482; x=1691673482; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=1M416nxinRPhMN72vt3UGKfG1j5hFyRnFIH3z1K8CY0=; b=U0GGJuAjpghB5wO4xogiNS2xnz+08MIgReb8P6BlhMdcbIweAH/Ums2u7z3E3EFxT7 cV1iBO31maidSKEU++itG09ewLG1Zgq3Cx0iqWttUnpss3l3LHobJvGOCubmzhrRSXkI ftpHhBBrcScrwcDExOD0uOO+IgkvGLIkRQo0bGvxNLXhmyDsckC1l44Y1lT1HDTnAJH3 8Vr1ruZv82eJrukriMrNdIv0/ByPKbYaN9nGR6CQevuQAzB07H1CViALRL98aoysB0qO 5ybZ/ssXFodCobj+hxWtp75liJ4KRYdkHtxKd/FDeGGdDicbXJVqZdIB3+D15FbmwdHk SX7Q== X-Gm-Message-State: ABy/qLZBVNPu9RHuNMAVRhKckCFF11IhqCrjEWYD5iAGGsiXNSVTOhua iPcRPv+24q5lN+KSVbgnwmoXo1x2ZJqPN3NZ+f0= X-Received: by 2002:ac2:4c52:0:b0:4fb:85b2:cf78 with SMTP id o18-20020ac24c52000000b004fb85b2cf78mr15387499lfk.37.1689081482480; Tue, 11 Jul 2023 06:18:02 -0700 (PDT) Received: from [192.168.69.115] ([176.187.194.156]) by smtp.gmail.com with ESMTPSA id q16-20020a056402033000b0051e2a1502a1sm1239244edw.68.2023.07.11.06.18.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Jul 2023 06:18:02 -0700 (PDT) Message-ID: <9a20851f-7981-bf31-eed1-7dd77528ca02@linaro.org> Date: Tue, 11 Jul 2023 15:18:00 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v3 1/2] irqchip/loongson-eiointc: Fix return value checking of eiointc_index Content-Language: en-US To: Bibo Mao , Huacai Chen , Jiaxun Yang , Marc Zyngier Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Jianmin Lv , loongson-kernel@lists.loongnix.cn References: <20230711120807.1805186-1-maobibo@loongson.cn> <20230711120807.1805186-2-maobibo@loongson.cn> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= In-Reply-To: <20230711120807.1805186-2-maobibo@loongson.cn> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 11/7/23 14:08, Bibo Mao wrote: > Return value of function eiointc_index is int, however it is converted > into uint32_t and then compared smaller than zero. This causes logic > problem. There is eioint initialization problem on qemu virt-machine > where there is only one eioint node and more than 4 vcpus. Nodemap of > eioint is 1, and external device intr can only be routed to vcpu 0-3, the > other vcpus can not response any external device interrupts and only local > processor interrupts like ipi/timer can work. > > Signed-off-by: Bibo Mao > --- > drivers/irqchip/irq-loongson-eiointc.c | 12 +++++++----- > 1 file changed, 7 insertions(+), 5 deletions(-) Fixes: dd281e1a1a93 ("irqchip: Add Loongson Extended I/O interrupt controller support") Reviewed-by: Philippe Mathieu-Daudé