From owner-freebsd-current Mon Jul 19 2:20:23 1999 Delivered-To: freebsd-current@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.40.131]) by hub.freebsd.org (Postfix) with ESMTP id B202B150CD for ; Mon, 19 Jul 1999 02:20:13 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.9.3/8.9.2) with ESMTP id LAA15421; Mon, 19 Jul 1999 11:15:24 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Dag-Erling Smorgrav Cc: Maxim Sobolev , obrien@NUXI.com, current@FreeBSD.ORG Subject: Re: PLIP is still broken :( In-reply-to: Your message of "19 Jul 1999 11:08:28 +0200." Date: Mon, 19 Jul 1999 11:15:24 +0200 Message-ID: <15419.932375724@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is actually a deficiency in the ppbus stuff, there is no telling what SPL level the subdriver wants to use, so the interrupt should actually be released back to the system when no subdrivers are open and be grabbed the way the subdriver wants it once it aquires the bus. The ZIP driver would probably want splcam/splbio, the pps wants splabsolutelynobody() (and FAST_IRQ) and plip wants splnet(). In message , Dag-Erling Smorgrav writes: >Maxim Sobolev writes: >> Some time ago I >> had rised this question and Bruce Evans told that this problem arise >> because of switch to newbus. > >You misunderstood what Bruce wrote. PLIP has always been broken. It >used to be possible to hack around the brokenness by setting the >interrupt mask to net instead of tty. With newbus, this hack is no >longer possible (it was never correct anyway; it broke printing). > >The problem with PLIP is that it tries to do splnet stuff in at >spltty. If you force the parallell port driver to run at splnet, PLIP >works but you get panics when you print because it tries to do spltty >stuff at splnet. > >SLIP and PPPD do black magic with interrupt masks so spltty and splnet >become essentially equivalen (or so I understand). They do this >because they have the exact same problems as PLIP - they need to do >splnet stuff at spltty. > >DES >-- >Dag-Erling Smorgrav - des@flood.ping.uio.no > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-current" in the body of the message > -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop." FreeBSD -- It will take a long time before progress goes too far! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message