public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Manuel Estrada Sainz <ranty@debian.org>
To: Pavel Roskin <proski@gnu.org>
Cc: LKML <linux-kernel@vger.kernel.org>,
	Simon Kelley <simon@thekelleys.org.uk>,
	Alan Cox <alan@lxorguk.ukuu.org.uk>,
	"Downing, Thomas" <Thomas.Downing@ipc.com>,
	Greg KH <greg@kroah.com>, Jean Tourrilhes <jt@hpl.hp.com>
Subject: Re: request_firmware() hotplug interface, third round.
Date: Fri, 16 May 2003 11:27:08 +0200	[thread overview]
Message-ID: <20030516092708.GC16156@ranty.ddts.net> (raw)
In-Reply-To: <Pine.LNX.4.55.0305151623520.2885@marabou.research.att.com>

On Thu, May 15, 2003 at 04:38:58PM -0400, Pavel Roskin wrote:
> On Thu, 15 May 2003, Manuel Estrada Sainz wrote:
> 
> >  This time, as Greg suggested, it is implemented on top of 'struct
> >  class' and 'struct class_device' but the driver interface is the same
> >  as last time.
> 
> Nitpicking:
> 
> - Please use max_t, not your own MAX.

 I was really wondering why MAX/MIN had not being generalized :)

> - /s/jet/yet/g
> - firmware_loading_show() should be static

 All three fixed. 
 
 
> >  	- register_firmware can not be implemented without some form of
> > 	  in-kernel firmware caching. And that is not implemented.
> 
> I wrote this private already, but it needs to be said now.  It's not
> _caching_ that is needed.  What is needed is a filesystem that can be
> populated in the kernel binary.

 I don't know that much about initramfs, but how about, firmware images
 get included in the initramfs and copied into fwfs during early
 userspace?

 I'll call it 'persistence' instead of 'caching' from now on.
 
 And I guess that 'blobfs' would be a much better name than 'fwfs'.
 Meaning that it can be used to store any blob.

> Can I use this code to replace broken ACPI table (DSDT) I have in some of
> my systems?  Can I use this code to load firmware into my SCSI adapter if
> I need it to access the only disk in the system?  Can I use this code to
> program a network interface I'm going to use for root over NFS?

 The interface would allow it, but some kind of persistence has to be
 there to make it possible. 
 
> > 	- fwfs could be used for firmware caching behind the scene
> > 	  allowing register_firmware to be implemented and the other
> > 	  uses. I could call it blobfs and make a subdirectory within
> > 	  for firmware purposes.
> 
> I don't understand that, but I admit that it may be the answer to my
> question.  Again, "caching" is a wrong word, I believe.

 - Rename 'fwfs' into 'blobfs'
 - Use it as the persistence mechanism behind request_firmware()
 - Use one level of hierarchy within the filesystem:
 	$BLOBFS_MNT/firmware/...
	$BLOBFS_MNT/crypto_keys/...
	...
   I don't know if it would really be useful for crypto keys, but it
   looked like a good sample :)

   request_firmware() would then just search with in
   $BLOBFS_MNT/firmware/

 Regards

 	Manuel
-- 
--- Manuel Estrada Sainz <ranty@debian.org>
                         <ranty@bigfoot.com>
			 <ranty@users.sourceforge.net>
------------------------ <manuel.estrada@hispalinux.es> -------------------
Let us have the serenity to accept the things we cannot change, courage to
change the things we can, and wisdom to know the difference.

  parent reply	other threads:[~2003-05-16  9:14 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-15 20:03 request_firmware() hotplug interface, third round Manuel Estrada Sainz
2003-05-16  8:07 ` Oliver Neukum
2003-05-16  9:56   ` Manuel Estrada Sainz
2003-05-16 15:53     ` Oliver Neukum
2003-05-16 18:31       ` Manuel Estrada Sainz
2003-05-16 22:22         ` Oliver Neukum
2003-05-17  0:59           ` Manuel Estrada Sainz
2003-05-17  4:00             ` Robert White
2003-05-17 13:23           ` Alan Cox
2003-05-17 14:57             ` Manuel Estrada Sainz
2003-05-16 18:49       ` Jean Tourrilhes
2003-05-16 22:24         ` Oliver Neukum
2003-05-16 23:21         ` Greg KH
2003-05-16 16:09   ` Alan Cox
2003-05-16 22:13     ` Oliver Neukum
2003-05-17  4:50       ` David Gibson
2003-05-17  7:02         ` Oliver Neukum
2003-05-17  8:21           ` David Gibson
2003-05-16 13:13 ` Ingo Oeser
2003-05-16 17:07   ` Manuel Estrada Sainz
2003-05-16 22:36 ` Greg KH
2003-05-16 23:37   ` Manuel Estrada Sainz
2003-05-16 23:59     ` Greg KH
2003-05-17  4:47       ` David Gibson
2003-05-17  8:54         ` Manuel Estrada Sainz
2003-05-16 23:55   ` Oliver Neukum
2003-05-17  0:03     ` Greg KH
2003-05-17  2:42       ` Robert White
2003-05-17  4:44       ` David Gibson
2003-05-17  8:46         ` Manuel Estrada Sainz
2003-05-17  9:07           ` David Gibson
2003-05-17  9:50             ` Manuel Estrada Sainz
2003-05-17 10:30             ` Manuel Estrada Sainz
2003-05-20  5:21               ` David Gibson
2003-05-20  8:07                 ` Manuel Estrada Sainz
2003-05-21  4:21                   ` Greg KH
2003-05-21  7:06                     ` Manuel Estrada Sainz
2003-05-17 10:51   ` Manuel Estrada Sainz
2003-05-17 13:21   ` Ingo Oeser
2003-05-17 15:15     ` Manuel Estrada Sainz
     [not found] ` <Pine.LNX.4.55.0305151623520.2885@marabou.research.att.com>
2003-05-16  9:27   ` Manuel Estrada Sainz [this message]
2003-05-16 22:39   ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030516092708.GC16156@ranty.ddts.net \
    --to=ranty@debian.org \
    --cc=Thomas.Downing@ipc.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=greg@kroah.com \
    --cc=jt@hpl.hp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=proski@gnu.org \
    --cc=simon@thekelleys.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox