Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp187844iob; Mon, 2 May 2022 16:39:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySNnlUpUBzt0T7oqmD7YRh6vPRGI3+CdNuT5W8yvMNLxJdhsPF8/P34dzihBmrkWDSm4me X-Received: by 2002:a17:90a:e2cb:b0:1da:35d6:3a08 with SMTP id fr11-20020a17090ae2cb00b001da35d63a08mr1704312pjb.223.1651534780074; Mon, 02 May 2022 16:39:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651534780; cv=none; d=google.com; s=arc-20160816; b=mCQggMowgi10KJ0PflXiyjNyXIPInhjjjVVqkIpbdtF1PfVGOMb3rN1xEz0JoN6phw Crx2NBEDat+QzfGuwkXxcEayjA663Iwab7bK9VTDveKYrSYXUNiyjv3U6sqQOyG2WHck dm9xCnf0nqpq967+zw6tXqnyXR9ZAoH6RIIGSBURUXhaEUCSsKOxgI8cH0bUrmQJ2+TX VRoa9rfp8oi8C8tnEFt9utFvFAPPGNSmnY9nowtRdk370Bnseg35ZFEejC3a09OeqMYD UVDgx2yNyYNL7uWqzUh9NcqeFlYdVdfJ/H8Wt4naafJFN4QKgmgkCkGZg1/w0nWdBaO3 8BQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=cf+KDXJI4wkmbU7OdoHHLR/cXtVxtK7S51UOvLfdoAY=; b=NZCKDfDh6yPUVQ/L+BBh/mZ0YhEGvOGK93QT7qNnP3695sIkPF8bwUlzM3Nx3mSuVB nYes8M/+Lt6nc5dxJhg4lWp1MzXu9+Xvsn97LanlGmFWat9o/elXnDGaQb+NCwwSR4mw 6pT1JgGvZJu7AD/IULt0Fu8EIJB4IVeNhvx7QuQzfEllBEtuXD6GQqTi1RkUliWWaB7M Wf71nJKIUJu7azfiudScEM6ClH+GvFAqwgiuuS8UPBnhMrUCc+SO4Lrz7zu00z5Ihlfx lC/J5grgemR7bRlZJ3oC3P9FMskzBbYkaNY7H1i1IaEIj0jIn5QsuFNcAUwr2JZR/BAZ B1UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=i9uzb+Bz; 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 p3-20020a62d003000000b0050d469d0d0esi15045210pfg.204.2022.05.02.16.39.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 16:39:40 -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=@lunn.ch header.s=20171124 header.b=i9uzb+Bz; 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 86D1C624D; Mon, 2 May 2022 16:39:33 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359235AbiD2MeS (ORCPT + 99 others); Fri, 29 Apr 2022 08:34:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359174AbiD2MeR (ORCPT ); Fri, 29 Apr 2022 08:34:17 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 275B58567A for ; Fri, 29 Apr 2022 05:31:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding:Content-Disposition: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:From: Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Content-Disposition: In-Reply-To:References; bh=cf+KDXJI4wkmbU7OdoHHLR/cXtVxtK7S51UOvLfdoAY=; b=i9 uzb+BzyHswZ0FopHMlj9Sd6WwBQTTNZkISdSlSCOqJLFaX8bPUdzBW/sLHt6hQU0Njmk0exQjSOri GiMxXk506nlCbULXBVZ6nEo5hIHIpaV8mvbIIZh2ZIsJJpS8Uf7QlAzlK9ZBdYq/fWuEbQq8zMLFJ KAhHZITb+l2ijjo=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nkPlt-000ThK-I0; Fri, 29 Apr 2022 14:30:53 +0200 Date: Fri, 29 Apr 2022 14:30:53 +0200 From: Andrew Lunn To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Gregory Clement , Sebastian Hesselbarth , Thomas Gleixner , Marc Zyngier , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] irqchip/armada-370-xp: Do not allow mapping IRQ 0 and 1 Message-ID: References: <20220425113706.29310-1-pali@kernel.org> <20220425113706.29310-2-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220425113706.29310-2-pali@kernel.org> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Mon, Apr 25, 2022 at 01:37:06PM +0200, Pali Roh?r wrote: > IRQs 0 and 1 cannot be mapped, they are handled internally by this driver > and this driver does not call generic_handle_domain_irq() for these IRQs. > So do not allow mapping these IRQs and correctly propagate error from the > .irq_map callback. So you are referring to this? /* Check if the interrupt is not masked on current CPU. * Test IRQ (0-1) and FIQ (8-9) mask bits. */ if (!(irqsrc & ARMADA_370_XP_INT_IRQ_FIQ_MASK(cpuid))) continue; if (irqn == 1) { armada_370_xp_handle_msi_irq(NULL, true); continue; } Should the two FIQ interrupts also return -EINVAL? Andrew