Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp949371rdb; Fri, 2 Feb 2024 08:44:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IG4HcsxdpV6fuE8XcTjQ7Frl3UBc68mNepZkJO49+BoZVTZgye9YIeTdP9prWstSrfBYXDR X-Received: by 2002:a17:906:3555:b0:a36:c553:4b with SMTP id s21-20020a170906355500b00a36c553004bmr3275377eja.16.1706892294405; Fri, 02 Feb 2024 08:44:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706892294; cv=pass; d=google.com; s=arc-20160816; b=aM4/lvjX+A+TycRy1k2VfMzCU0/pVeCFI6Ig/KPFE6AjYXGM+ZgnRPTb7UHzTiz7NM 2GhpLR/fM/xL9fkfWDukT0urHsJs5raqkhOttpMzwRdCRY2GtzQdJDAX4kUlXP5iBHPJ YLRgnTaUio+AchnOe8SYJjkJo8an1kmJBSnNuk83PnByk+ICB+Di/NQkYxpeBU1s7ugt DaTF2NoNbT5YDPABZ9PxScwjLbCcklqcZc/0pq1/8+7S9+3TDa5VDkNre6LtgH/kRhPg TxdUz2FUO49vEoZ9H9IQsZRgfqwQq/Px7nbAf5mejsjHiPFUAlmtwAZx04GxJNG3qJk8 romQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date; bh=9BGQvzOYd0Zyampp+CU2wUNkyv6UqdLXgkxys+M5bG4=; fh=B3Q8KjfImuardFypLZQRQeivH2isMWqLq6+9SK7jvu0=; b=gesPSUplJz7g7/vx2BhHojBHjjDWPkkkGOdM8xzLFHeLaRd1YlL4U6oFNIqt3YXit7 90NYfRisVEA/Xuvomtu7NYqXOKzsuUZ/+lanrAS1BsVTImaTxMxNgJ2Rb2ZPCK3WOzum 9adU7/BNaTE2etOkwhEej05PfpMn3FildgQybNdlbhD6BgalY9c1dVH2trx0mndUuBzI PS5J0VqYiQijmKDTobbIlpmQtVKEnKU3DTe6T8l65WMoPYMpwq0EG5J9H3W3mQCtGGxo YKL69A5L8ttdtlrvpCm2R2StXR6y4l+On7Yh+W4lE9adEK5senE/ecP8v0lXDNhglHJI OG+A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-50167-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50167-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com X-Forwarded-Encrypted: i=1; AJvYcCWeEIoWAcAKt0crdzPLCUx1TesICm03e2ibYNFqkIbekKZnz7FqoVWFzVA0SZFPjtwuqzC2U6+vu52A8mhM5lckp23OZiYM6n3PWAeQIA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id by26-20020a170906a2da00b00a34a015f748si955139ejb.673.2024.02.02.08.44.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 08:44:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-50167-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-50167-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50167-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id DD5AC1F2CA45 for ; Fri, 2 Feb 2024 16:44:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AE3A4148FE0; Fri, 2 Feb 2024 16:44:42 +0000 (UTC) Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6CD92146919; Fri, 2 Feb 2024 16:44:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.176.79.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706892282; cv=none; b=WVQf4pqvlTeEa7eOx6FNUcDp42PZwMMkGwmJdbBobd2XUu7vMftwrFzo9ytw+yvFkFvRiZvmOPAZGPlrVP8sZTGgzOLQVwy6kNtcxsWxwTVxgNZcPyi09B4tls+7ic4bxnA64v3bfRMf3oISzRbAjEUsRNyMQd0E9DtX/D6QN4A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706892282; c=relaxed/simple; bh=91dKtYL6nn7sT6XBkJUZhgPHoMOoFPhDfSgFduym7O0=; h=Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=a5hwDqkYT4xHCGbX3Gvrl6KLCEDoZkpPwUz4GZn0uTgA4Iim9n9LRiE8NWPHwAaqp5LQdm+7VsF65FRaDNFsVKsTsWKiyguQA2fDCDGFvVTvJlxE0ZEXvY5Hn8+/GAcYamzJaWVN6EqXalT55L6Vl6tOLjshg518uyEDMz0VrN4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=185.176.79.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.18.186.31]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4TRM3Q6Gpcz67pnj; Sat, 3 Feb 2024 00:41:06 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id B846A1400D4; Sat, 3 Feb 2024 00:44:32 +0800 (CST) Received: from localhost (10.202.227.76) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 2 Feb 2024 16:44:31 +0000 Date: Fri, 2 Feb 2024 16:44:31 +0000 From: Jonathan Cameron To: "Russell King (Oracle)" CC: , , , , , , , , , , , , , , Salil Mehta , Jean-Philippe Brucker , , , James Morse , "Rafael J. Wysocki" Subject: Re: [PATCH RFC v4 10/15] irqchip/gic-v3: Don't return errors from gic_acpi_match_gicc() Message-ID: <20240202164431.00006f09@Huawei.com> In-Reply-To: References: Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: lhrpeml500004.china.huawei.com (7.191.163.9) To lhrpeml500005.china.huawei.com (7.191.163.240) On Wed, 31 Jan 2024 16:50:27 +0000 Russell King (Oracle) wrote: > From: James Morse > > gic_acpi_match_gicc() is only called via gic_acpi_count_gicr_regions(). > It should only count the number of enabled redistributors, but it > also tries to sanity check the GICC entry, currently returning an > error if the Enabled bit is set, but the gicr_base_address is zero. > > Adding support for the online-capable bit to the sanity check will > complicate it, for no benefit. The existing check implicitly depends on > gic_acpi_count_gicr_regions() previous failing to find any GICR regions > (as it is valid to have gicr_base_address of zero if the redistributors > are described via a GICR entry). > > Instead of complicating the check, remove it. Failures that happen at > this point cause the irqchip not to register, meaning no irqs can be > requested. The kernel grinds to a panic() pretty quickly. > > Without the check, MADT tables that exhibit this problem are still > caught by gic_populate_rdist(), which helpfully also prints what went > wrong: > | CPU4: mpidr 100 has no re-distributor! > > Signed-off-by: James Morse > Reviewed-by: Gavin Shan > Signed-off-by: Russell King (Oracle) Does what it says on the tin. Reviewed-by: Jonathan Cameron