From owner-freebsd-arm@freebsd.org Thu Aug 27 13:53:46 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id F31313B27FE for ; Thu, 27 Aug 2020 13:53:46 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Bckj54RVdz4fMx for ; Thu, 27 Aug 2020 13:53:45 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [178.17.145.105]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 7F39026000F; Thu, 27 Aug 2020 15:53:38 +0200 (CEST) Subject: Re: INTR_FAST To: kamalp@acm.org, freebsd-arm@freebsd.org References: From: Hans Petter Selasky Message-ID: <7ed79c1d-2d66-5011-286f-8dcac058f7d5@selasky.org> Date: Thu, 27 Aug 2020 15:53:11 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4Bckj54RVdz4fMx X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 88.99.82.50 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-0.44 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net]; NEURAL_HAM_LONG(-0.40)[-0.401]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; ARC_NA(0.00)[]; DMARC_NA(0.00)[selasky.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.42)[0.419]; RCPT_COUNT_TWO(0.00)[2]; SUBJ_ALL_CAPS(0.68)[9]; NEURAL_HAM_MEDIUM(-0.83)[-0.830]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:88.99.0.0/16, country:DE]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-arm] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Aug 2020 13:53:47 -0000 On 2020-08-27 15:50, Kamal R. Prasad wrote: > "These interrupt handlers are currently misnamed “fast” interrupt handlers > since the INTR_FAST flag used in earlier versions of the kernel is used to > mark these handlers. The only interrupts which currently use these types of > interrupt handlers are clock interrupts and serial I/O device interrupts." > > I want to use INTR_FAST for my spi controller, but i find that it is not > defined on freebsd stable11. Is INTR_EXCL related in any way to INTR_FAST? > if not, how do I setup a fast interrupt handler? Hi, When you setup and interrupt, there are two function pointers. One is the so-called interrupt filter, which is running in the fast context, and the other is the regular interrupt handler which is running from a thread context. --HPS