Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1739787imm; Sat, 4 Aug 2018 09:42:21 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfFA4p433NkWV+Cdn8AjjWhHOt5IxM345HenroD2cu6aGxCqCCCfAaASmdGkWjk5SwQs0xf X-Received: by 2002:a63:ca09:: with SMTP id n9-v6mr8115491pgi.287.1533400941005; Sat, 04 Aug 2018 09:42:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533400940; cv=none; d=google.com; s=arc-20160816; b=fKBK3vH5qBgSigP6wh+zwP0vdRWktPnoOYFpMwZZCgJgTvSJkeoC8YjDw9lY15dq27 o5xoTyOKZYPDLVWeFxq8v2HQUkMVea5D5W2LDMi+JYbJHE2dpP68udIFIzbCUvmOTOAe V6zEDVWg6Tqk2xSm0fQe5wbq7dz6/s+NNK7rTqZb2sftTehdXJIUYE3r+UiPpEq4uaE7 92hNdkWDLc1zRs0uVM4f80MrzuaeO6ereA5iZZA/y2uz2+e85jW7I0+FUrSmOF4A6EBl blNJ7vxgvdsEKKpTdRDp372mA3wr0ilsQzo/lQCB9fsst4pPhJ+Qa/7Hg0g4Ptuk8c6B Txsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=lJoGQIAmB0HJj+EsJcmw7kMEvGBgYU9ETznBAP3O8v4=; b=g5vdXxXvVFcuTYQKoDmwfjyEjw78ftn9EEsz2lG4foAyVE5v2rUrzYp8d2yZ5sXPWG SCbQJu7dQkPrGt2ATm5SZr8Ke3VeSPoglhi7f67uaOShdBbBQOmMs6VI/+uE3aRKr2tN f4hH9a7/hni1y9F7QiYxMnhxUFrVWxwJ1nF3qQ0lYsalDwd39gOdLr2umLpEay0nQ79V 3X2MJwUCgMA+A23CM3fDRB010OV/U2DVhfhIzfx7Q4FxCDsqG0hpAVeUUnpZhY7Ut7qQ lkigEeobfRtVQezhn0Dz+MgY/0ebVsl1o2YT1GvmhgSKM7v6yao7BzCAGSYPtgxGqmOV 83cg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e3-v6si8065670pgc.85.2018.08.04.09.42.06; Sat, 04 Aug 2018 09:42:20 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729678AbeHDSlx (ORCPT + 99 others); Sat, 4 Aug 2018 14:41:53 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:41778 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727877AbeHDSlw (ORCPT ); Sat, 4 Aug 2018 14:41:52 -0400 Received: from p4fea5a5a.dip0.t-ipconnect.de ([79.234.90.90] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1flzbR-0007fF-HM; Sat, 04 Aug 2018 18:40:29 +0200 Date: Sat, 4 Aug 2018 18:40:26 +0200 (CEST) From: Thomas Gleixner To: Palmer Dabbelt cc: Christoph Hellwig , marc.zyngier@arm.com, jason@lakedaemon.net, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, aou@eecs.berkeley.edu, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, shorne@gmail.com Subject: Re: [PATCH 3/6] irqchip: RISC-V Local Interrupt Controller Driver In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 3 Aug 2018, Palmer Dabbelt wrote: > On Wed, 01 Aug 2018 11:55:06 PDT (-0700), tglx@linutronix.de wrote: > > Is there some high level documentation about the design (or the lack of) or > > can someone give a concise explanation how this stuff is supposed to work? > As part of our original push to upstream the arch code it was suggested that > we move this out to an irqchip driver, but after actually attempting to do > that it appears that the mechanics of doing so have overshadowed the > complexity of the actual interrupt handling code, which is only a dozen or so > instructions. In retrospect this is just another instance of me not knowing > what I'm doing, sorry! > > I like Christoph's approach of merging the ISA-mandated interrupt handling > code back into arch/riscv, as it's much saner that way. The one big headache > is that because we special-cased timer interrupts in the ISA they now > disappear from the standard Linux mechanisms for handling these. > > That said, I'd rather have this warts and all then wait around for something > perfect, as maintaining a dozen or so out of tree drivers that are tightly > coupled to the core arch code has proven to be a mess. If we can get the code > upstream then everyone will be on the same page so we can work on actually > improving this, as opposed to just spinning our wheels keeping this big mess > alive. > > Hopefully that makes some amount of sense... Thanks for the detailed explanation. It's what I extracted from the documents to which Christoph pointed me. And as I said in the other thread it does not realiy make sense to force that low level mechanism into an irq chip. That would be overkill for no real value. Thanks, tglx