From owner-freebsd-arm@freebsd.org Thu Aug 27 15:44:00 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 E1E8D3B6C43 for ; Thu, 27 Aug 2020 15:44:00 +0000 (UTC) (envelope-from kamalpr@gmail.com) Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Bcn8J17Phz3Z8M; Thu, 27 Aug 2020 15:43:59 +0000 (UTC) (envelope-from kamalpr@gmail.com) Received: by mail-il1-x131.google.com with SMTP id j9so5238637ilc.11; Thu, 27 Aug 2020 08:43:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=Qw2aqAGDSmxSSoUWQtiO2LJpHPu1aS+wS1yCMm+v3FA=; b=kxvCy/LJO4W+/+3sM93r8FOHnC9UuGfVD6UgzDFR8x0HtnjqHSMVJooLgcbLMkPrQl 7+bjKbflQpZep3klDEznLi3lNyQYKsqa6cDTf5fKvkrIi7Eih0pmP4KirynF9honK/S1 1gweK8IkvIxnAQ+snO8XwPe3LdPH+j/Xmb8bOWY/98ibheleJyQr2kwHwB5pv3Y1byn4 5ke6RBETs56dYtCx0rvlKHe3kL/zZT7EIdcyv6djNyemmQOaYkQn6EnherBUccn/YMxs PgU/5vzu+88MHpfGMJmg9/rJ3IYtwLzcS4NIQ405oaWu8sBDwBaJflEJJKHTRmlffg5R BxYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=Qw2aqAGDSmxSSoUWQtiO2LJpHPu1aS+wS1yCMm+v3FA=; b=HPUZ1sYzi8e7FIl065ae5SOWiVPil2gITsqMsbZFRrfYsDSM6+iW/odVPhxiQihl+S 5xGtq53d5IWO9rAiiJRMXR02WRrAsgeDK7HzY0LCnBS6VpS2WcE6pJYccyDYPCYxVqbA hfgS8Z8b2lZ/iHRT+GuZM9RwhPMsra0i7/KlIwQjtPM61JQKgZu5JwJ+pHOLC5qrlkmO uV3UznFdrhibuAUvmg2SyeY8IPKoJ451QUI9Bkrko5cxcfN4ArIyquZln+KFvLP4Sy1p FJF3AI9GDlS7CTMc/WUouQyloA3LAfqRjzoaliWFUW1fV606suFvazhAuguMha994pcm /Afw== X-Gm-Message-State: AOAM5333c+ob9sRN5iXRrpilAgd57HVLEoTx/nZ5pXXRmPCP8ZKH3sTF qRV/4dIqY0yoMChu9HFnKdnizMOY+4bkKztarBVXgcc= X-Google-Smtp-Source: ABdhPJzD1fJgo7A0GSmj2+8P5/Z9JcUyoL4CmcUyvc4ZLs6U88DSL0c5r8IXOFOCKEARILjpC46P7uQ2MSh9AeJjuwo= X-Received: by 2002:a92:a119:: with SMTP id v25mr18468363ili.77.1598543038108; Thu, 27 Aug 2020 08:43:58 -0700 (PDT) MIME-Version: 1.0 References: <7e463a00ef89d7df0455656f51fe14f72c088a70.camel@freebsd.org> In-Reply-To: <7e463a00ef89d7df0455656f51fe14f72c088a70.camel@freebsd.org> Reply-To: kamalp@acm.org From: "Kamal R. Prasad" Date: Thu, 27 Aug 2020 21:13:47 +0530 Message-ID: Subject: Re: INTR_FAST To: Ian Lepore Cc: freebsd-arm@freebsd.org X-Rspamd-Queue-Id: 4Bcn8J17Phz3Z8M X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=kxvCy/LJ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of kamalpr@gmail.com designates 2607:f8b0:4864:20::131 as permitted sender) smtp.mailfrom=kamalpr@gmail.com X-Spamd-Result: default: False [-2.43 / 15.00]; HAS_REPLYTO(0.00)[kamalp@acm.org]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; SUBJ_ALL_CAPS(0.68)[9]; NEURAL_HAM_SHORT(-0.13)[-0.135]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.01)[-1.009]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.96)[-0.960]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::131:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-arm] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.33 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 15:44:00 -0000 because i hsve 3 spi slave devices attached to the pl022 controller and the drain of rx queue after i initiare spi transfer is showing some inconsistency. On Thu, Aug 27, 2020 at 9:02 PM Ian Lepore wrote: > On Thu, 2020-08-27 at 19:20 +0530, Kamal R. Prasad wrote: > > Hello, > > > > This page > > > https://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/smp-desig= n.html > > > > says that > > "These interrupt handlers are currently misnamed =E2=80=9Cfast=E2=80=9D= 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 type= s > 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 no= t > > defined on freebsd stable11. Is INTR_EXCL related in any way to > INTR_FAST? > > if not, how do I setup a fast interrupt handler? > > > > thanks > > -kamal > > > > An important question here is: Why do you want to use a filter handler > (formerly called INTR_FAST) instead of a normal threaded handler? For > something as slow as a SPI bus, I can't imagine you're going to see any > noticible performance difference. > > -- Ian > > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" >