Re: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-27 Thread James Bottomley
On Mon, 2015-04-27 at 15:40 -0700, Andy Lutomirski wrote: > On Mon, Apr 27, 2015 at 3:35 PM, James Bottomley > wrote: > > On Mon, 2015-04-27 at 14:59 -0700, Andy Lutomirski wrote: > >> On Fri, Apr 24, 2015 at 8:16 AM, James Bottomley > >> wrote: > >> > On Fri, 2015-04-24 at 02:14 +, Kweh, Hoc

Re: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-27 Thread Andy Lutomirski
On Mon, Apr 27, 2015 at 3:35 PM, James Bottomley wrote: > On Mon, 2015-04-27 at 14:59 -0700, Andy Lutomirski wrote: >> On Fri, Apr 24, 2015 at 8:16 AM, James Bottomley >> wrote: >> > On Fri, 2015-04-24 at 02:14 +, Kweh, Hock Leong wrote: >> >> > -Original Message- >> >> > From: James

Re: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-27 Thread James Bottomley
On Mon, 2015-04-27 at 14:59 -0700, Andy Lutomirski wrote: > On Fri, Apr 24, 2015 at 8:16 AM, James Bottomley > wrote: > > On Fri, 2015-04-24 at 02:14 +, Kweh, Hock Leong wrote: > >> > -Original Message- > >> > From: James Bottomley [mailto:james.bottom...@hansenpartnership.com] > >> >

Re: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-27 Thread Andy Lutomirski
On Fri, Apr 24, 2015 at 8:16 AM, James Bottomley wrote: > On Fri, 2015-04-24 at 02:14 +, Kweh, Hock Leong wrote: >> > -Original Message- >> > From: James Bottomley [mailto:james.bottom...@hansenpartnership.com] >> > Sent: Thursday, April 23, 2015 10:10 PM >> > >> > On Thu, 2015-04-23 a

Re: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-24 Thread James Bottomley
On Fri, 2015-04-24 at 02:14 +, Kweh, Hock Leong wrote: > > -Original Message- > > From: James Bottomley [mailto:james.bottom...@hansenpartnership.com] > > Sent: Thursday, April 23, 2015 10:10 PM > > > > On Thu, 2015-04-23 at 08:30 +, Kweh, Hock Leong wrote: > > > > -Original Me

RE: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-23 Thread Kweh, Hock Leong
> -Original Message- > From: James Bottomley [mailto:james.bottom...@hansenpartnership.com] > Sent: Thursday, April 23, 2015 10:10 PM > > On Thu, 2015-04-23 at 08:30 +, Kweh, Hock Leong wrote: > > > -Original Message- > > > From: James Bottomley > [mailto:james.bottom...@hansen

Re: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-23 Thread Greg Kroah-Hartman
On Thu, Apr 23, 2015 at 09:14:18AM -0700, James Bottomley wrote: > > > OK, so this is what I'm trying to understand. Why isn't a pipe to > > > firmware for something a "platform resource"? I think UEFI is in the > > > same class as ACPI which uses platform devices all over. > > > > And I hate th

Re: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-23 Thread James Bottomley
On Thu, 2015-04-23 at 11:50 +0200, Greg Kroah-Hartman wrote: > On Wed, Apr 22, 2015 at 09:11:17AM -0700, James Bottomley wrote: > > On Wed, 2015-04-22 at 17:46 +0200, Greg Kroah-Hartman wrote: > > > On Wed, Apr 22, 2015 at 08:35:54AM -0700, James Bottomley wrote: > > > > On Wed, 2015-04-15 at 15:19

Re: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-23 Thread James Bottomley
On Thu, 2015-04-23 at 08:30 +, Kweh, Hock Leong wrote: > > -Original Message- > > From: James Bottomley [mailto:james.bottom...@hansenpartnership.com] > > Sent: Wednesday, April 22, 2015 11:19 PM > > > > > > Yes, I think we've all agreed we can do it ... it's now a question of > > wh

Re: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-23 Thread Greg Kroah-Hartman
On Wed, Apr 22, 2015 at 09:11:17AM -0700, James Bottomley wrote: > On Wed, 2015-04-22 at 17:46 +0200, Greg Kroah-Hartman wrote: > > On Wed, Apr 22, 2015 at 08:35:54AM -0700, James Bottomley wrote: > > > On Wed, 2015-04-15 at 15:19 +0200, Greg Kroah-Hartman wrote: > > > > On Wed, Apr 15, 2015 at 11:

RE: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-23 Thread Kweh, Hock Leong
> -Original Message- > From: James Bottomley [mailto:james.bottom...@hansenpartnership.com] > Sent: Wednesday, April 22, 2015 11:19 PM > > > Yes, I think we've all agreed we can do it ... it's now a question of whether > we > can stomach the ick factor of actually initiating a transactio

Re: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-22 Thread Andy Lutomirski
On Wed, Apr 22, 2015 at 10:34 AM, James Bottomley wrote: > On Wed, 2015-04-22 at 09:50 -0700, Andy Lutomirski wrote: >> On Apr 21, 2015 9:51 PM, "James Bottomley" >> wrote: >> > >> > On Tue, 2015-04-21 at 20:24 -0700, Andy Lutomirski wrote: >> > > On Tue, Apr 21, 2015 at 7:20 PM, James Bottomley

Re: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-22 Thread James Bottomley
On Wed, 2015-04-22 at 09:50 -0700, Andy Lutomirski wrote: > On Apr 21, 2015 9:51 PM, "James Bottomley" > wrote: > > > > On Tue, 2015-04-21 at 20:24 -0700, Andy Lutomirski wrote: > > > On Tue, Apr 21, 2015 at 7:20 PM, James Bottomley > > > wrote: > > > > On Tue, 2015-04-21 at 18:58 -0700, Andy Lut

Re: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-22 Thread Andy Lutomirski
On Apr 21, 2015 9:51 PM, "James Bottomley" wrote: > > On Tue, 2015-04-21 at 20:24 -0700, Andy Lutomirski wrote: > > On Tue, Apr 21, 2015 at 7:20 PM, James Bottomley > > wrote: > > > On Tue, 2015-04-21 at 18:58 -0700, Andy Lutomirski wrote: > > >> On Tue, Apr 21, 2015 at 6:21 PM, James Bottomley >

Re: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-22 Thread James Bottomley
On Wed, 2015-04-22 at 17:46 +0200, Greg Kroah-Hartman wrote: > On Wed, Apr 22, 2015 at 08:35:54AM -0700, James Bottomley wrote: > > On Wed, 2015-04-15 at 15:19 +0200, Greg Kroah-Hartman wrote: > > > On Wed, Apr 15, 2015 at 11:32:29AM +, Kweh, Hock Leong wrote: > > > > > -Original Message---

Re: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-22 Thread Greg Kroah-Hartman
On Wed, Apr 22, 2015 at 08:35:54AM -0700, James Bottomley wrote: > On Wed, 2015-04-15 at 15:19 +0200, Greg Kroah-Hartman wrote: > > On Wed, Apr 15, 2015 at 11:32:29AM +, Kweh, Hock Leong wrote: > > > > -Original Message- > > > > From: Greg Kroah-Hartman [mailto:gre...@linuxfoundation.or

Re: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-22 Thread James Bottomley
On Wed, 2015-04-15 at 15:19 +0200, Greg Kroah-Hartman wrote: > On Wed, Apr 15, 2015 at 11:32:29AM +, Kweh, Hock Leong wrote: > > > -Original Message- > > > From: Greg Kroah-Hartman [mailto:gre...@linuxfoundation.org] > > > Sent: Tuesday, April 14, 2015 10:09 PM > > > > > > On Tue, Apr

Re: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-22 Thread One Thousand Gnomes
> Yes, I think we've all agreed we can do it ... it's now a question of > whether we can stomach the ick factor of actually initiating a > transaction in close ... I'm still feeling queasy. NFS does transactions - including figuring out if the data will fit - on file close. It does that for real d

Re: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-22 Thread James Bottomley
On Wed, 2015-04-22 at 09:27 -0400, Peter Jones wrote: > On Tue, Apr 21, 2015 at 06:58:58PM -0700, Andy Lutomirski wrote: > > On Tue, Apr 21, 2015 at 6:21 PM, James Bottomley > > wrote: > > > Andy, just on the misc device idea, what about triggering the capsule > > > update from close()? In theory

Re: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-22 Thread Peter Jones
On Tue, Apr 21, 2015 at 06:58:58PM -0700, Andy Lutomirski wrote: > On Tue, Apr 21, 2015 at 6:21 PM, James Bottomley > wrote: > > Andy, just on the misc device idea, what about triggering the capsule > > update from close()? In theory close returns an error code (not sure if > > most tools actuall

Re: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-21 Thread James Bottomley
On Tue, 2015-04-21 at 20:24 -0700, Andy Lutomirski wrote: > On Tue, Apr 21, 2015 at 7:20 PM, James Bottomley > wrote: > > On Tue, 2015-04-21 at 18:58 -0700, Andy Lutomirski wrote: > >> On Tue, Apr 21, 2015 at 6:21 PM, James Bottomley > >> wrote: > >> > Andy, just on the misc device idea, what abo

Re: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-21 Thread Andy Lutomirski
On Tue, Apr 21, 2015 at 7:20 PM, James Bottomley wrote: > On Tue, 2015-04-21 at 18:58 -0700, Andy Lutomirski wrote: >> On Tue, Apr 21, 2015 at 6:21 PM, James Bottomley >> wrote: >> > Andy, just on the misc device idea, what about triggering the capsule >> > update from close()? In theory close r

Re: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-21 Thread James Bottomley
On Tue, 2015-04-21 at 18:58 -0700, Andy Lutomirski wrote: > On Tue, Apr 21, 2015 at 6:21 PM, James Bottomley > wrote: > > Andy, just on the misc device idea, what about triggering the capsule > > update from close()? In theory close returns an error code (not sure if > > most tools actually check

Re: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-21 Thread Andy Lutomirski
On Tue, Apr 21, 2015 at 6:21 PM, James Bottomley wrote: > Andy, just on the misc device idea, what about triggering the capsule > update from close()? In theory close returns an error code (not sure if > most tools actually check this, though). That means we can do the write > in chunks but pass

Re: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-21 Thread James Bottomley
On Tue, 2015-04-21 at 09:56 +0200, Greg Kroah-Hartman wrote: > On Tue, Apr 21, 2015 at 03:23:55AM +, Kweh, Hock Leong wrote: > > > -Original Message- > > > From: Greg Kroah-Hartman [mailto:gre...@linuxfoundation.org] > > > Sent: Monday, April 20, 2015 10:43 PM > > > > > > On Mon, Apr 2

Re: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-21 Thread Greg Kroah-Hartman
On Tue, Apr 21, 2015 at 03:23:55AM +, Kweh, Hock Leong wrote: > > -Original Message- > > From: Greg Kroah-Hartman [mailto:gre...@linuxfoundation.org] > > Sent: Monday, April 20, 2015 10:43 PM > > > > On Mon, Apr 20, 2015 at 03:28:32AM +, Kweh, Hock Leong wrote: > > > Regarding the

RE: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-20 Thread Kweh, Hock Leong
> -Original Message- > From: Greg Kroah-Hartman [mailto:gre...@linuxfoundation.org] > Sent: Monday, April 20, 2015 10:43 PM > > On Mon, Apr 20, 2015 at 03:28:32AM +, Kweh, Hock Leong wrote: > > Regarding the 'reboot require' status, is it critical to have a 1 to 1 > > status > match >

Re: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-20 Thread James Bottomley
On Fri, 2015-04-17 at 15:49 +0200, Greg Kroah-Hartman wrote: > On Thu, Apr 16, 2015 at 09:42:31AM +, Kweh, Hock Leong wrote: > > > -Original Message- > > > From: Greg Kroah-Hartman [mailto:gre...@linuxfoundation.org] > > > Sent: Wednesday, April 15, 2015 9:19 PM > > > > > > On Wed, Apr

Re: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-20 Thread Greg Kroah-Hartman
On Mon, Apr 20, 2015 at 03:28:32AM +, Kweh, Hock Leong wrote: > Regarding the 'reboot require' status, is it critical to have a 1 to 1 status > match > with the capsule upload binary? Is it okay to have one sysfs file note to > tell the > overall status (for example: 10 capsule binaries uploa

RE: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-19 Thread Kweh, Hock Leong
> -Original Message- > From: Matt Fleming [mailto:m...@codeblueprint.co.uk] > Sent: Friday, April 17, 2015 10:37 PM > > On Fri, 17 Apr, at 03:49:24PM, Greg KH wrote: > > > > Not really, the kernel namespace is what matters at that point in time. > > > > And maybe it does matter, I haven't

Re: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-17 Thread Matt Fleming
On Fri, 17 Apr, at 03:49:24PM, Greg KH wrote: > > Not really, the kernel namespace is what matters at that point in time. > > And maybe it does matter, I haven't thought through all of the issues. > But passing a path from userspace, to the kernel, to have the kernel > turn around again and use t

Re: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-17 Thread Greg KH
On Wed, Apr 15, 2015 at 05:19:09PM -0700, Roy Franz wrote: > On Wed, Apr 15, 2015 at 8:45 AM, Andy Lutomirski wrote: > > On Apr 15, 2015 6:20 AM, "Greg Kroah-Hartman" > > wrote: > >> > >> On Tue, Apr 14, 2015 at 11:52:48AM -0400, Andy Lutomirski wrote: > >> > On Tue, Apr 14, 2015 at 10:09 AM, Gre

Re: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-17 Thread Greg Kroah-Hartman
On Thu, Apr 16, 2015 at 09:42:31AM +, Kweh, Hock Leong wrote: > > -Original Message- > > From: Greg Kroah-Hartman [mailto:gre...@linuxfoundation.org] > > Sent: Wednesday, April 15, 2015 9:19 PM > > > > On Wed, Apr 15, 2015 at 11:32:29AM +, Kweh, Hock Leong wrote: > > > > -Origi

RE: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-16 Thread Kweh, Hock Leong
> -Original Message- > From: Greg Kroah-Hartman [mailto:gre...@linuxfoundation.org] > Sent: Wednesday, April 15, 2015 9:19 PM > > On Wed, Apr 15, 2015 at 11:32:29AM +, Kweh, Hock Leong wrote: > > > -Original Message- > > > From: Greg Kroah-Hartman [mailto:gre...@linuxfoundation

Re: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-15 Thread Roy Franz
On Wed, Apr 15, 2015 at 8:45 AM, Andy Lutomirski wrote: > On Apr 15, 2015 6:20 AM, "Greg Kroah-Hartman" > wrote: >> >> On Tue, Apr 14, 2015 at 11:52:48AM -0400, Andy Lutomirski wrote: >> > On Tue, Apr 14, 2015 at 10:09 AM, Greg Kroah-Hartman >> > wrote: >> > > On Tue, Apr 14, 2015 at 05:44:56PM

Re: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-15 Thread Andy Lutomirski
On Apr 15, 2015 6:20 AM, "Greg Kroah-Hartman" wrote: > > On Tue, Apr 14, 2015 at 11:52:48AM -0400, Andy Lutomirski wrote: > > On Tue, Apr 14, 2015 at 10:09 AM, Greg Kroah-Hartman > > wrote: > > > On Tue, Apr 14, 2015 at 05:44:56PM +0800, Kweh, Hock Leong wrote: > > >> From: "Kweh, Hock Leong" >

Re: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-15 Thread Greg Kroah-Hartman
On Tue, Apr 14, 2015 at 11:52:48AM -0400, Andy Lutomirski wrote: > On Tue, Apr 14, 2015 at 10:09 AM, Greg Kroah-Hartman > wrote: > > On Tue, Apr 14, 2015 at 05:44:56PM +0800, Kweh, Hock Leong wrote: > >> From: "Kweh, Hock Leong" > >> > >> Introducing a kernel module to expose capsule loader inter

Re: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-15 Thread Greg Kroah-Hartman
On Wed, Apr 15, 2015 at 11:32:29AM +, Kweh, Hock Leong wrote: > > -Original Message- > > From: Greg Kroah-Hartman [mailto:gre...@linuxfoundation.org] > > Sent: Tuesday, April 14, 2015 10:09 PM > > > > On Tue, Apr 14, 2015 at 05:44:56PM +0800, Kweh, Hock Leong wrote: > > > From: "Kweh,

RE: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-15 Thread Kweh, Hock Leong
> -Original Message- > From: Greg Kroah-Hartman [mailto:gre...@linuxfoundation.org] > Sent: Tuesday, April 14, 2015 10:09 PM > > On Tue, Apr 14, 2015 at 05:44:56PM +0800, Kweh, Hock Leong wrote: > > From: "Kweh, Hock Leong" > > > > Introducing a kernel module to expose capsule loader inte

Re: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-14 Thread Andy Lutomirski
On Tue, Apr 14, 2015 at 10:09 AM, Greg Kroah-Hartman wrote: > On Tue, Apr 14, 2015 at 05:44:56PM +0800, Kweh, Hock Leong wrote: >> From: "Kweh, Hock Leong" >> >> Introducing a kernel module to expose capsule loader interface >> for user to upload capsule binaries. This module leverage the >> requ

Re: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-14 Thread Greg Kroah-Hartman
On Tue, Apr 14, 2015 at 05:44:56PM +0800, Kweh, Hock Leong wrote: > From: "Kweh, Hock Leong" > > Introducing a kernel module to expose capsule loader interface > for user to upload capsule binaries. This module leverage the > request_firmware_direct_full_path() to obtain the binary at a > specifi

[PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-13 Thread Kweh, Hock Leong
From: "Kweh, Hock Leong" Introducing a kernel module to expose capsule loader interface for user to upload capsule binaries. This module leverage the request_firmware_direct_full_path() to obtain the binary at a specific path input by user. Example method to load the capsule binary: echo -n "/pa