Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp660460ybb; Wed, 25 Mar 2020 07:16:08 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtECxfJrEqBbtfvFYI9hT75yMi0v9WWgi4rmOHgGrTC6vrOz/6PgiH77mkFcafWJz1bSt8B X-Received: by 2002:a05:6830:1f5a:: with SMTP id u26mr2663858oth.208.1585145768441; Wed, 25 Mar 2020 07:16:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585145768; cv=none; d=google.com; s=arc-20160816; b=A/+PgwcxVeHOjOka+5d30bFCTphJvv2YdI2yd8JPKJymjdHieDDQNlIc/nCp3t6vEI W1UqJ7+DGi7TTweeBURGG22ES7drtuuezvlXvaGpzs6r4uNkWqB7CyiXS9qxN0Pn+j7W bo8Ldmx4mnWtp++R1AgM2cZQnE+cMSC204WGWpAD9BD8jcCZhfGTqudX82OXUNQzkTPm gtfy3WO63YFnV6LRd3f7Qi3KKrPiIvugKlePQgv2NUsQf3IpYIKw3F+yNObKSYRaKRtM 7FvJAUYCm60H566p157pfziZDjoeICP/DZuvvqaMHK2KUcb/C3GKuyC9hMSNpuvLpUo2 UEqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=Os4B29LKjTHU2yrJhOitpp8ki3mxyn8gZgW58l8aLWM=; b=dhtWJR47Q6Qf8vdo8g8DxQKwRVRjHLNdjJn6Y0JmL9f11tRAXHWAZRQ+Dt3cefxYv6 jK68kZx4uI8A/yfX45NPzu9yu3ZBwqINnlTUE9xqDw8Uz4fznDDMqYJWzR3ihcFhrZkk +Mwh6FKkEroDi2Q7UABjd62j6cO3EseWgOMNS4xBUdjudRS2sp8B/mlO55TMTGFs7MYH GnRQVVpLEmaUR9PsRVVWNTBOYb0eoydXfNsfEZWvOJs9SeBBwzg1fgNP2d6HtbscWZiO cQVF8160Xg46N2H5u0o6zaPRdrmm+ihvEmSxWyNBPXtZHiMPduCykWql0SXstaYwNBjT 5T7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KTJeidKg; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w83si10270111oie.244.2020.03.25.07.15.47; Wed, 25 Mar 2020 07:16:08 -0700 (PDT) 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=@kernel.org header.s=default header.b=KTJeidKg; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727595AbgCYOPT (ORCPT + 99 others); Wed, 25 Mar 2020 10:15:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:41122 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727422AbgCYOPT (ORCPT ); Wed, 25 Mar 2020 10:15:19 -0400 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A89DA20658; Wed, 25 Mar 2020 14:15:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585145718; bh=4e5a3dthO0KUl7222D0WTEADwSKwuGJMGtQdIOGhnLA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=KTJeidKgfSVy1x+XACNkhs0RALfLf4mqWrAgZoxIEpBs15MGrOlsymhj5+V884fsl jWXJ4syWFJ/e8tvYajfc6Io+0fsOX28fH4KTuG6Ecb4QvBoH2hGd9WnVt2jpaDf3mA Kz6mglsepSuQOfpuM2G5LPzqKOkVXnmrzPk6gF7A= Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jH6oP-00FasG-0L; Wed, 25 Mar 2020 14:15:17 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 25 Mar 2020 14:15:16 +0000 From: Marc Zyngier To: Jiaxun Yang Cc: Thomas Bogendoerfer , linux-mips@vger.kernel.org, Huacai Chen , Thomas Gleixner , Jason Cooper , Rob Herring , Mark Rutland , Mauro Carvalho Chehab , "David S. Miller" , Greg Kroah-Hartman , Jonathan Cameron , Andy Shevchenko , Allison Randal , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v8 06/11] irqchip: mips-cpu: Convert to simple domain In-Reply-To: <4BB367D3-B8AD-47B6-ACC2-30752137BC1B@flygoat.com> References: <20200325035537.156911-1-jiaxun.yang@flygoat.com> <20200325035537.156911-7-jiaxun.yang@flygoat.com> <20200325123742.GA9911@alpha.franken.de> <5eb9ce9ea665ee32da40779f00fc9b37@kernel.org> <4BB367D3-B8AD-47B6-ACC2-30752137BC1B@flygoat.com> Message-ID: X-Sender: maz@kernel.org User-Agent: Roundcube Webmail/1.3.10 X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: jiaxun.yang@flygoat.com, tsbogend@alpha.franken.de, linux-mips@vger.kernel.org, chenhc@lemote.com, tglx@linutronix.de, jason@lakedaemon.net, robh+dt@kernel.org, mark.rutland@arm.com, mchehab+samsung@kernel.org, davem@davemloft.net, gregkh@linuxfoundation.org, Jonathan.Cameron@huawei.com, andriy.shevchenko@linux.intel.com, allison@lohutok.net, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-03-25 13:59, Jiaxun Yang wrote: [...] >>> So probably we can use legacy domain when MIPS IRQ BASE is in the >>> range of legacy IRQ >>> and switch to simple domain when it's not in that range? >> >> No, see below. >> >>> Here in Loongson systems IRQ 0-15 is occupied by I8259 so I did this >>> hack. >> >> Well, if you have to consider which Linux IRQ gets assigned, >> then your platform is definitely not ready for non-legacy >> irqdomains. Just stick to legacy for now until you have removed >> all the code that knows the hwirq mapping. > > Thanks. > > So I have to allocate irq_desc here in driver manually? No, you are probably better off just dropping this patch, as MIPS doesn't seem to be ready for a wholesale switch to virtual interrupts. M. -- Jazz is not dead. It just smells funny...