[Top] [All Lists]

Re: [PATCH] MIPS: kspd: Remove kspd support.

To: Suprasad Mutalik Desai <>
Subject: Re: [PATCH] MIPS: kspd: Remove kspd support.
From: Ralf Baechle <>
Date: Mon, 15 Oct 2012 19:45:11 +0200
Cc: "Steven J. Hill" <>,, Chris Dearman <>, John Crispin <>, Al Viro <>
In-reply-to: <>
List-archive: <>
List-help: <>
List-id: linux-mips <>
List-owner: <>
List-post: <>
List-software: Ecartis version 1.0.0
List-subscribe: <>
List-unsubscribe: <>
References: <> <> <>
User-agent: Mutt/1.5.21 (2010-09-15)
On Wed, Oct 10, 2012 at 02:36:22PM +0530, Suprasad Mutalik Desai wrote:

>  AFAIK, the "CONFIG_MIPS_VPE_APSP_API" was used to get the console dump of
> the SP program running on the VPE1 (usually a bare-iron program compiled
> with MIPS provided toolchain) . This option was useful on the MALTA
> platform during the initial evaluation of the APRP or APSP mode.

kspd has never been a brilliant thing - it's running in an essentially
random thread / file context so it's just coincidence something is working
at all.  Also syscalls from inside the kernel are frowned upon these days
and are being eleminated.

Another issue was that the provided toolchain you mentioned was the SDE
toolchain along with its libraries.  The SDE toolchain uses different
values for all its constants which requires a compat layer.  That should
rather stay outside the kernel but as it was, it was burried inside kspd.c.

If somebody fixed up kspd I absolutely don't mind resurrecting it but as
it was, the sole feedback I ever had was from various other kernel
developers.  NOT A SINGLE USER.  EVER.  So I quite liked the nuclear
solution for kspd.

My suggestion would be to convert the old kspd into some communication
facility where the bare metal code talks through the rtlx with a userspace
daemon which then does the actual I/O operations.  That also solved the
ABI issue - as it was, kspd had no concept of which ABI to use.

And probably not even the bare metal code should have or it ends up
carrying half a libc along ...

> Now if this support is removed then is there any alternative provided by
> MIPS ?.

You have to ask MIPS.  I'm only the God of Revenge that rips patches into
bits and removes kernel features ;-)


<Prev in Thread] Current Thread [Next in Thread>