Debian Bug report logs - #483399
initscript: Support Cell processor spufs

version graph

Package: libspe2; Maintainer for libspe2 is (unknown);

Reported by: Martin Pitt <martin.pitt@ubuntu.com>

Date: Wed, 28 May 2008 16:54:04 UTC

Severity: wishlist

Tags: patch

Merged with 457783

Fixed in version 2.2.80-95-3.1+rm

Done: Debian FTP Masters <ftpmaster@ftp-master.debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>:
Bug#483399; Package initscripts. (full text, mbox, link).


Acknowledgement sent to Martin Pitt <martin.pitt@ubuntu.com>:
New Bug report received and forwarded. Copy sent to Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Martin Pitt <martin.pitt@ubuntu.com>
To: Debian BTS Submit <submit@bugs.debian.org>
Subject: initscript: Support Cell processor spufs
Date: Wed, 28 May 2008 18:51:31 +0200
[Message part 1 (text/plain, inline)]
Package: initscripts
Version: 2.86.ds1-56
Severity: wishlist
Tags: patch
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu intrepid ubuntu-patch

Hi!

Attached patch provides support for the Cell processor's SPU virtual
kernel file system [1]. This is e. g. found on the Sony PlayStation 3.

Thanks for considering,

Martin

[1] http://www.research.ibm.com/cell/SPU.html

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
[sysvinit.ps3-cell.patch (text/x-diff, inline)]
 * Support Cell processor:
   - debian/initscripts/postinst: Create spu system group and /spu mount
     point if we are running on a Cell processor.
   - debian/initscripts/etc/init.d/mountkernfs.sh: Mount spufs if Cell
     processor is detected.
   - debian/control: Add initscripts dependency 'passwd' for groupadd.
--- sysvinit-2.86.ds1/debian/control
+++ sysvinit-2.86.ds1/debian/control
@@ -48,7 +49,7 @@
 
 Package: initscripts
 Architecture: any
-Depends: ${shlibs:Depends}, ${glibc:Depends}, ${mount:Depends}, e2fsprogs (>= 1.32+1.33-WIP-2003.04.14-1), debianutils (>= 2.13.1), lsb-base (>= 3.0-6), sysvinit-utils (>= 2.86.ds1-39)
+Depends: ${shlibs:Depends}, ${glibc:Depends}, ${mount:Depends}, e2fsprogs (>= 1.32+1.33-WIP-2003.04.14-1), debianutils (>= 2.13.1), lsb-base (>= 3.0-6), sysvinit-utils (>= 2.86.ds1-39), passwd
 Recommends: psmisc
 Conflicts: sysv-rc (<< 2.86.ds1-1.2), sysvinit (<< 2.86.ds1-12), udev (<< 0.080-1), usplash (<< 0.5.8-2), libdevmapper1.02.1 (<< 2:1.02.24-1), insserv (<< 1.09.0-12)
 Replaces: sysvinit (<< 2.85-12), libc6, libc6.1, libc0.1, libc0.3
--- sysvinit-2.86.ds1/debian/initscripts/postinst
+++ sysvinit-2.86.ds1/debian/initscripts/postinst
@@ -197,6 +212,20 @@
 fi
 
 #
+# Create mount point for spufs, and create spu system group
+#
+if mountpoint -q /proc && grep -qs '^cpu.*Cell' /proc/cpuinfo; then
+	if ! getent group spu >/dev/null; then
+		# the adduser package is priority important; cannot use addgroup
+		groupadd -K GID_MAX=1000 spu
+	fi
+	mkdir -p /spu
+	if ! mountpoint -q /spu; then
+		mount -t spufs -ogid=spu spufs /spu
+	fi
+fi
+
+#
 # Create initial log files
 #
 [ "$PREV_VER" ] || chmod 755 /var/log/fsck || :
--- sysvinit-2.86.ds1/debian/initscripts/etc/init.d/mountkernfs.sh	2008-05-28 18:23:56.000000000 +0200
+++ sysvinit-2.86.ds1.new/debian/initscripts/etc/init.d/mountkernfs.sh	2008-05-28 18:23:38.000000000 +0200
@@ -74,6 +74,11 @@
 	then
 		domount usbfs usbdevfs /proc/bus/usb usbfs -onodev,noexec,nosuid
 	fi
+
+	# Mount spufs, if Cell Broadband processor is detected
+	if [ -d /spu ] && grep -qs '^cpu.*Cell' /proc/cpuinfo; then
+	        domount spufs "" /spu -ogid=spu
+	fi
 }
 
 case "$1" in
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>:
Bug#483399; Package initscripts. (full text, mbox, link).


Acknowledgement sent to Petter Reinholdtsen <pere@hungry.com>:
Extra info received and forwarded to list. Copy sent to Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #10 received at 483399@bugs.debian.org (full text, mbox, reply):

From: Petter Reinholdtsen <pere@hungry.com>
To: Martin Pitt <martin.pitt@ubuntu.com>, 483399@bugs.debian.org
Subject: Re: [Pkg-sysvinit-devel] Bug#483399: initscript: Support Cell processor spufs
Date: Thu, 29 May 2008 18:04:47 +0200
[Martin Pitt]
> Attached patch provides support for the Cell processor's SPU virtual
> kernel file system [1]. This is e. g. found on the Sony PlayStation
> 3.

Thank you for the patch.  Why should this be done in the initscripts
package, and not in some cell specific package?  I would otherwise
believe it would fit better elsewhere, in a package only installed on
this hardware.

Happy hacking,
-- 
Petter Reinholdtsen




Information forwarded to debian-bugs-dist@lists.debian.org, Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>:
Bug#483399; Package initscripts. (full text, mbox, link).


Acknowledgement sent to Martin Pitt <mpitt@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #15 received at 483399@bugs.debian.org (full text, mbox, reply):

From: Martin Pitt <mpitt@debian.org>
To: Petter Reinholdtsen <pere@hungry.com>
Cc: 483399@bugs.debian.org, arthur.loiret@gmail.com
Subject: Re: Bug#483399: initscript: Support Cell processor spufs
Date: Thu, 29 May 2008 18:52:23 +0200
[Message part 1 (text/plain, inline)]
Hi Petter,

Petter Reinholdtsen [2008-05-29 18:04 +0200]:
> Thank you for the patch.  Why should this be done in the initscripts
> package, and not in some cell specific package?  I would otherwise
> believe it would fit better elsewhere, in a package only installed on
> this hardware.

Right. However, last time I looked at it, an init script to mount /spu
would be the only thing in such a hypothetical spu-support package. It
could be built by the libspe2 source package [1], which would be
indeed a bit more elegant, but quite expensive for a mere mount. A
competely separate init script doesn't come for free in terms of boot
speed, disk usage, etc.

I CC'ed Arthur, the maintainer of libspe2 in Debian, who should have a
better idea of how all this fits together. Arthur, any thoughts on
this?

Thank you!

Martin

[1] http://packages.qa.debian.org/libs/libspe2.html

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>:
Bug#483399; Package initscripts. (full text, mbox, link).


Acknowledgement sent to Arthur Loiret <arthur.loiret@u-psud.fr>, 483399@bugs.debian.org:
Extra info received and forwarded to list. Copy sent to Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #20 received at 483399@bugs.debian.org (full text, mbox, reply):

From: Arthur Loiret <arthur.loiret@u-psud.fr>
To: Martin Pitt <mpitt@debian.org>, Petter Reinholdtsen <pere@hungry.com>
Cc: 483399@bugs.debian.org
Subject: Re: Bug#483399: initscript: Support Cell processor spufs
Date: Tue, 3 Jun 2008 10:59:11 +0200
[Message part 1 (text/plain, inline)]
Hi,

On Thu, May 29, 2008 at 06:52:23PM +0200, Martin Pitt wrote:
> Hi Petter,
> 
> Petter Reinholdtsen [2008-05-29 18:04 +0200]:
> > Thank you for the patch.  Why should this be done in the initscripts
> > package, and not in some cell specific package?  I would otherwise
> > believe it would fit better elsewhere, in a package only installed on
> > this hardware.
> 
> Right. However, last time I looked at it, an init script to mount /spu
> would be the only thing in such a hypothetical spu-support package. It
> could be built by the libspe2 source package [1], which would be
> indeed a bit more elegant, but quite expensive for a mere mount. A
> competely separate init script doesn't come for free in terms of boot
> speed, disk usage, etc.
> 
> I CC'ed Arthur, the maintainer of libspe2 in Debian, who should have a
> better idea of how all this fits together. Arthur, any thoughts on
> this?

I think the groupadd and mkdir things should rather be in libspe2's postinst
than in an initscript at all, but it sounds better to keep the mount commands
with appropriated tests in initscripts package. This would indeed avoid having
to create a new cell-specific initscript.

Petter, are you ok with this?


Thank,

Arthur.

[signature.asc (application/pgp-signature, inline)]

Forcibly Merged 457783 483399. Request was from Petter Reinholdtsen <pere@hungry.com> to control@bugs.debian.org. (Fri, 06 Jun 2008 06:54:03 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>:
Bug#483399; Package initscripts. (full text, mbox, link).


Acknowledgement sent to Petter Reinholdtsen <pere@hungry.com>:
Extra info received and forwarded to list. Copy sent to Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #27 received at 483399@bugs.debian.org (full text, mbox, reply):

From: Petter Reinholdtsen <pere@hungry.com>
To: Arthur Loiret <arthur.loiret@u-psud.fr>, 483399@bugs.debian.org
Cc: Martin Pitt <mpitt@debian.org>
Subject: Re: Bug#483399: initscript: Support Cell processor spufs
Date: Fri, 6 Jun 2008 08:57:49 +0200
[Arthur Loiret]
> I think the groupadd and mkdir things should rather be in libspe2's
> postinst than in an initscript at all, but it sounds better to keep
> the mount commands with appropriated tests in initscripts
> package. This would indeed avoid having to create a new
> cell-specific initscript.
> 
> Petter, are you ok with this?

I must admit that I prefer to keep the generic stuff in initscripts,
and leave the special case handling in other packages.  It make the
initscripts package easier to maintain, and also we avoid running code
on all machines that is only used on some of them.  Are you ok with
including it in libspe2?

This is not a strong preference, though, so if it make most sense to
do this mounting in the generic scripts, we can do that.

Btw, how early must this file system be mounted?  Is it OK to do it in
rc2.d/, instead of rcS.d/?  It is a good idea to do as little as
possible in rcS.d/, to make sure single user mode is affected by as
little as possible in case of errors in modules and services.

Happy hacking,
-- 
Petter Reinholdtsen




Information forwarded to debian-bugs-dist@lists.debian.org, Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>:
Bug#483399; Package initscripts. (Mon, 06 Jul 2009 16:33:03 GMT) (full text, mbox, link).


Acknowledgement sent to Petter Reinholdtsen <pere@hungry.com>:
Extra info received and forwarded to list. Copy sent to Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>. (Mon, 06 Jul 2009 16:33:03 GMT) (full text, mbox, link).


Message #32 received at 483399@bugs.debian.org (full text, mbox, reply):

From: Petter Reinholdtsen <pere@hungry.com>
To: Arthur Loiret <arthur.loiret@u-psud.fr>, 483399@bugs.debian.org, Martin Pitt <mpitt@debian.org>
Subject: Re: Bug#483399: initscript: Support Cell processor spufs
Date: Mon, 06 Jul 2009 18:32:02 +0200
reassign 483399 libspe2
thanks

No-one replied to my email dated 2008-06-06 to explain why this
behaviour could not be implemented in libspe2, so I assume this is the
bets place for the Cell support, and reassign this bug report there.

Happy hacking,
-- 
Petter Reinholdtsen




Bug reassigned from package `initscripts' to `libspe2'. Request was from Petter Reinholdtsen <pere@hungry.com> to control@bugs.debian.org. (Mon, 06 Jul 2009 16:33:06 GMT) (full text, mbox, link).


Reply sent to Debian FTP Masters <ftpmaster@ftp-master.debian.org>:
You have taken responsibility. (Mon, 05 Mar 2012 09:41:38 GMT) (full text, mbox, link).


Notification sent to Martin Pitt <martin.pitt@ubuntu.com>:
Bug acknowledged by developer. (Mon, 05 Mar 2012 09:41:43 GMT) (full text, mbox, link).


Message #39 received at 483399-done@bugs.debian.org (full text, mbox, reply):

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 457783-done@bugs.debian.org,483399-done@bugs.debian.org,558483-done@bugs.debian.org,610975-done@bugs.debian.org,616261-done@bugs.debian.org,
Cc: libspe2@packages.debian.org, libspe2@packages.qa.debian.org
Subject: Bug#662189: Removed package(s) from unstable
Date: Mon, 05 Mar 2012 09:36:30 +0000
Version: 2.2.80-95-3.1+rm

Dear submitter,

as the package libspe2 has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see http://bugs.debian.org/662189

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@debian.org.

Debian distribution maintenance software
pp.
Alexander Reichle-Schmehl (the ftpmaster behind the curtain)




Reply sent to Debian FTP Masters <ftpmaster@ftp-master.debian.org>:
You have taken responsibility. (Mon, 05 Mar 2012 09:41:47 GMT) (full text, mbox, link).


Notification sent to Petter Reinholdtsen <pere@hungry.com>:
Bug acknowledged by developer. (Mon, 05 Mar 2012 09:41:55 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 03 Apr 2012 07:52:10 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Jan 11 14:01:32 2018; Machine Name: beach

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.