Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp678291ybb; Wed, 25 Mar 2020 07:35:12 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsJRRV/vkUdZoIkM5GRdmDLVZXvCZ/KkbrgDDA7sAreHK/DMWaHa8WqP7qYmW0ppIuZ7lMq X-Received: by 2002:aca:ec16:: with SMTP id k22mr2687047oih.177.1585146912586; Wed, 25 Mar 2020 07:35:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585146912; cv=none; d=google.com; s=arc-20160816; b=09qna+F2pTgP9pWMR12SUJw1RAjFcFbdP2odalJJ1/v2bUm9X/caUq7yd2a4ovpAni u2txvaAejqerG/ExZElHODEGIzEK75wNBE78J7ZDxKUKodlsKM4cOg8AkFhnlcqYecJz UnLdKrG5NLO1ytk5ueJiqTln+kT4nH7dwnV0rYBgZT9hrAStYjuHuMLIt0zP8rS+wCAx Z5LMzL0ROL/AzUiGd9PfwnKvnhbNjVw/sov32Exzy3KUjBFsbFaFvmYP8f8dpEfb7m7C 6S3Kssi/y+P2D20LINvEV8k6k/aGKGNfUitoNSFGOG6/Sd7hcbWCe4l+gKo/8yGpScRl cKHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:from:cc:to:subject :content-transfer-encoding:mime-version:references:in-reply-to :user-agent:date:dkim-signature; bh=WUIqMTbG4P3A6zbN3GpLXbJ8Ubb/GOs43bUPmngTtEw=; b=QINbPSoLgE3THfnhb7mbusIhJRoWVsuGux8EbddAN3Xr6jp9HFpY3GOay9y7t6OanR 4oM6S7tVbz+mlSSYpr+AO6X4hjSqr1azTh1JXx6+s1WqCyS1pzY06hnw2H5jfj9LyfKq 5SP2EydnvdsudcQTFReq1yq0FyheaSD9co/eiiIE7BykUVrKvmVgrDN8GM3g97neTDf7 1jLigZczKlBtu26ea8mAz+wQ+j9PKRVQo01OzJfsZCwwiZp57Ad2LZ6GYDRp9dwC9rdj kIQ9dXuxuv5MW6wsNSt/X2AKEAbzjvimvDaEJSo+sbdOG1yLZ9+WGIiXvpSJRRAUDB9w hIVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@flygoat.com header.s=mail header.b=XITeJn9E; 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=fail (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l75si10396829oig.59.2020.03.25.07.34.58; Wed, 25 Mar 2020 07:35:12 -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=fail header.i=@flygoat.com header.s=mail header.b=XITeJn9E; 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=fail (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727707AbgCYOdV (ORCPT + 99 others); Wed, 25 Mar 2020 10:33:21 -0400 Received: from sender3-op-o12.zoho.com.cn ([124.251.121.243]:17809 "EHLO sender3-op-o12.zoho.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727566AbgCYOdV (ORCPT ); Wed, 25 Mar 2020 10:33:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1585146687; s=mail; d=flygoat.com; i=jiaxun.yang@flygoat.com; h=Date:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding:Subject:To:CC:From:Message-ID; bh=WUIqMTbG4P3A6zbN3GpLXbJ8Ubb/GOs43bUPmngTtEw=; b=XITeJn9EVhgHJXIRTsYdv6whZhZfE5OBEn9ae/y5pKEFuEv38GYT6wq2lH/M8F9j BIW5j3U3FUJZuLwaJ/CRnHi5YhyjRmIFHYlG2CjMhBMd//H03UmcVLYrTCSZacXF5ha /e+YY0j0pWw1XH5yU8MHk7M26r54N4+xmrsajRUs= Received: from [10.233.233.252] (183.157.60.227 [183.157.60.227]) by mx.zoho.com.cn with SMTPS id 1585146685016379.50509572583246; Wed, 25 Mar 2020 22:31:25 +0800 (CST) Date: Wed, 25 Mar 2020 22:31:21 +0800 User-Agent: K-9 Mail for Android In-Reply-To: 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH v8 06/11] irqchip: mips-cpu: Convert to simple domain To: Marc Zyngier 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 From: Jiaxun Yang Message-ID: <39CF835E-D1D9-4B52-ABDC-BDB17B650936@flygoat.com> X-ZohoCNMailClient: External Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org =E4=BA=8E 2020=E5=B9=B43=E6=9C=8825=E6=97=A5 GMT+08:00 =E4=B8=8B=E5=8D=881= 0:15:16, Marc Zyngier =E5=86=99=E5=88=B0: >On 2020-03-25 13:59, Jiaxun Yang wrote: > >[=2E=2E=2E] > >>>> 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? >>>=20 >>> No, see below=2E >>>=20 >>>> Here in Loongson systems IRQ 0-15 is occupied by I8259 so I did >this >>>> hack=2E >>>=20 >>> Well, if you have to consider which Linux IRQ gets assigned, >>> then your platform is definitely not ready for non-legacy >>> irqdomains=2E Just stick to legacy for now until you have removed >>> all the code that knows the hwirq mapping=2E >>=20 >> Thanks=2E >>=20 >> 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=2E It can't work without this patch=2E Legacy domain require IRQ number within 0-15=20 however it's already occupied by i8259 or "HTPIC" driver=2E Previously Loongson even didn't enable IRQ domain so it's not a problem=2E > > M=2E --=20 Jiaxun Yang