Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1425937imj; Fri, 8 Feb 2019 01:01:34 -0800 (PST) X-Google-Smtp-Source: AHgI3IaKw8ikkzLtqysvXU2GKKrSRJv0HC4vjQvd84iAH7VXoAfzuqTH4ZG2OG1Gy8LEJ1m7IclW X-Received: by 2002:a63:4819:: with SMTP id v25mr14583071pga.308.1549616493878; Fri, 08 Feb 2019 01:01:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549616493; cv=none; d=google.com; s=arc-20160816; b=DbBDFBkb+QyK+a5fkB9foLB9Iyhzf6GQ8+rBkALq6OYSe9jdXrwATLTsDxAbjkA1Hj QcXemhzuMZ035BKPZw7hFbTfAU8O2mMVna68Ji5MitQfqJdZ2ZkyGr/415gxFg9uFB9P Kcn1u2lla2VI5DNmyTJF2JvwEcoW72rd/YWyWTrQJ4khBGn9Zys0vHeNCWG26o6D/OAW P79hxCdCQAXzTjmwURufPwvvLa0Vs4X5IxtwDe5VVh3dz2VR7PD0g8I7Dnq9gYZJrLoF O3NJuHfEJngA9gPjRe9rAe3sRLOksVvyWU0e9wo9GTZ5qSWHBkid8hetTulRAzvNbi+5 UanQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=JAWoQZj8VTQbstjNpUCEMX9WOMSN1nX/HpEhdRFugUc=; b=f9vhM4J/CKurB/2AZolBPleNFo/MTQaTA6S5fSwu1zs+Jr4gQoEpahZdZnym/vzv0Y MQLl8d67LuEV9+mhXWOozuOqOUM6g2EXilo7ZmgVNFw7wP2wA79R6Ue7TBbTM/VQE9h/ LvNINOZQk5Xm3fRmuDK8FAebXgyUyyfftj3SGao2HP8vjGWTgH0JGM1WkNN0SBtybUpD YG4uZLTuqOMhiXvlLbip3Em5RyWWiyKGgdOLXDRvKb9yYIEy9Qe9/2P7cKjTttZGgE8L 37NvPwR4ahFA1YQEllxXQGZ+Q0sGSIgYAHktLkyXWtE4HZJ/y4dHK9wiv8+yNrjWWhhD RkGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=XmxtA2G8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ci1si1886346plb.352.2019.02.08.01.01.16; Fri, 08 Feb 2019 01:01:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=XmxtA2G8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727372AbfBHJAK (ORCPT + 99 others); Fri, 8 Feb 2019 04:00:10 -0500 Received: from lelv0142.ext.ti.com ([198.47.23.249]:51686 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727168AbfBHJAJ (ORCPT ); Fri, 8 Feb 2019 04:00:09 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x188xlm3020331; Fri, 8 Feb 2019 02:59:47 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1549616387; bh=JAWoQZj8VTQbstjNpUCEMX9WOMSN1nX/HpEhdRFugUc=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=XmxtA2G8N5r8Mz4zK1bzBsTxLjBdYUXR2MfNjU+KGDUsAc3/quYQLGmeDQaMCOX8U Py+H8VT42mbyiT53+w77HaP8/usaH+W1PtzKaCEWLMUsmpMenBOaygxqQPRe/wW6it rj9insuXxELin5ZjQVa5GT0ey9edny3XcVpx2wnI= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x188xl2F064238 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 8 Feb 2019 02:59:47 -0600 Received: from DLEE100.ent.ti.com (157.170.170.30) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Fri, 8 Feb 2019 02:59:46 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Fri, 8 Feb 2019 02:59:46 -0600 Received: from [172.24.190.172] (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id x188xhso017135; Fri, 8 Feb 2019 02:59:44 -0600 Subject: Re: [PATCH 02/35] ARM: davinci: select GENERIC_IRQ_MULTI_HANDLER To: Bartosz Golaszewski CC: Kevin Hilman , Thomas Gleixner , Jason Cooper , Marc Zyngier , Linux ARM , Linux Kernel Mailing List , Bartosz Golaszewski References: <20190131133928.17985-1-brgl@bgdev.pl> <20190131133928.17985-3-brgl@bgdev.pl> From: Sekhar Nori Message-ID: <7f5206ea-ad18-86c2-f9f0-3fccaf4932e9@ti.com> Date: Fri, 8 Feb 2019 14:29:43 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/02/19 9:19 PM, Bartosz Golaszewski wrote: >>> +static asmlinkage void __exception_irq_entry >>> +cp_intc_handle_irq(struct pt_regs *regs) >>> +{ >>> + int irqnr = cp_intc_read(CP_INTC_PRIO_IDX); >>> + >>> + irqnr &= 0xff; >>> + >>> + handle_domain_irq(cp_intc_domain, irqnr, regs); >> >> This leaves out spurious interrupt handling present in existing assembly >> code. Can you add it back. May be use omap_intc_handle_irq() as an >> example for handling spurious IRQs. >> > > Hi Sekhar, > > I started looking at this one and noticed that the manual says > PRI_INDX field in the GPIR register is in bits 0-9 (mask 0x3ff) while > the assembly logically ANDs it with 0xff. I guess it's because there > can be no more interrupts than 255 but I'd at least explain it in a > comment. Or should we use the proper mask? What do you think? I think using mask 0x3ff to match TRM is fine. Thanks, Sekhar