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

2015-04-30 Thread Andy Lutomirski
On Thu, Apr 30, 2015 at 2:17 AM, Kweh, Hock Leong wrote: >> -Original Message- >> From: Andy Lutomirski [mailto:l...@amacapital.net] >> Sent: Thursday, April 30, 2015 2:41 AM >> >> On Wed, Apr 29, 2015 at 4:23 AM, Kweh, Hock Leong >> wrote: >> > >> > Dear communities, >> > >> > I agree

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

2015-04-30 Thread Kweh, Hock Leong
> -Original Message- > From: Andy Lutomirski [mailto:l...@amacapital.net] > Sent: Thursday, April 30, 2015 2:41 AM > > On Wed, Apr 29, 2015 at 4:23 AM, Kweh, Hock Leong > wrote: > > > > Dear communities, > > > > I agree with James. Due to different people may have different needs. > >

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

2015-04-30 Thread Kweh, Hock Leong
-Original Message- From: Andy Lutomirski [mailto:l...@amacapital.net] Sent: Thursday, April 30, 2015 2:41 AM On Wed, Apr 29, 2015 at 4:23 AM, Kweh, Hock Leong hock.leong.k...@intel.com wrote: Dear communities, I agree with James. Due to different people may have different

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

2015-04-30 Thread Andy Lutomirski
On Thu, Apr 30, 2015 at 2:17 AM, Kweh, Hock Leong hock.leong.k...@intel.com wrote: -Original Message- From: Andy Lutomirski [mailto:l...@amacapital.net] Sent: Thursday, April 30, 2015 2:41 AM On Wed, Apr 29, 2015 at 4:23 AM, Kweh, Hock Leong hock.leong.k...@intel.com wrote: Dear

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

2015-04-29 Thread Andy Lutomirski
On Wed, Apr 29, 2015 at 2:39 PM, James Bottomley wrote: > On Wed, 2015-04-29 at 14:36 -0700, Andy Lutomirski wrote: >> On Wed, Apr 29, 2015 at 2:35 PM, James Bottomley >> wrote: >> > On Wed, 2015-04-29 at 11:23 +, Kweh, Hock Leong wrote: >> >> I agree with James. Due to different people may

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

2015-04-29 Thread James Bottomley
On Wed, 2015-04-29 at 14:36 -0700, Andy Lutomirski wrote: > On Wed, Apr 29, 2015 at 2:35 PM, James Bottomley > wrote: > > On Wed, 2015-04-29 at 11:23 +, Kweh, Hock Leong wrote: > >> I agree with James. Due to different people may have different needs. But > >> from our side, we would just

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

2015-04-29 Thread James Bottomley
On Wed, 2015-04-29 at 11:40 -0700, Andy Lutomirski wrote: > If it works (and cat really does fail reliably), then it seems okay to me. > > However, since I like pulling increasing numbers of my hats, someone > should verify that the common embedded cat implementations are also > okay with this.

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

2015-04-29 Thread Andy Lutomirski
On Wed, Apr 29, 2015 at 2:35 PM, James Bottomley wrote: > On Wed, 2015-04-29 at 11:23 +, Kweh, Hock Leong wrote: >> I agree with James. Due to different people may have different needs. But >> from our side, we would just like to have a simple interface for us to upload >> the efi capsule and

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

2015-04-29 Thread James Bottomley
On Wed, 2015-04-29 at 11:23 +, Kweh, Hock Leong wrote: > I agree with James. Due to different people may have different needs. But > from our side, we would just like to have a simple interface for us to upload > the efi capsule and perform update. We do not have any use case or need > to get

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

2015-04-29 Thread Andy Lutomirski
On Wed, Apr 29, 2015 at 4:23 AM, Kweh, Hock Leong wrote: >> -Original Message- >> From: James Bottomley [mailto:james.bottom...@hansenpartnership.com] >> Sent: Tuesday, April 28, 2015 6:52 AM >> >> On Mon, 2015-04-27 at 15:40 -0700, Andy Lutomirski wrote: >> > On Mon, Apr 27, 2015 at 3:35

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

2015-04-29 Thread Kweh, Hock Leong
> -Original Message- > From: James Bottomley [mailto:james.bottom...@hansenpartnership.com] > Sent: Tuesday, April 28, 2015 6:52 AM > > 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

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

2015-04-29 Thread Kweh, Hock Leong
-Original Message- From: James Bottomley [mailto:james.bottom...@hansenpartnership.com] Sent: Tuesday, April 28, 2015 6:52 AM On Mon, 2015-04-27 at 15:40 -0700, Andy Lutomirski wrote: On Mon, Apr 27, 2015 at 3:35 PM, James Bottomley james.bottom...@hansenpartnership.com wrote:

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

2015-04-29 Thread Andy Lutomirski
On Wed, Apr 29, 2015 at 4:23 AM, Kweh, Hock Leong hock.leong.k...@intel.com wrote: -Original Message- From: James Bottomley [mailto:james.bottom...@hansenpartnership.com] Sent: Tuesday, April 28, 2015 6:52 AM On Mon, 2015-04-27 at 15:40 -0700, Andy Lutomirski wrote: On Mon, Apr 27,

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

2015-04-29 Thread James Bottomley
On Wed, 2015-04-29 at 11:40 -0700, Andy Lutomirski wrote: If it works (and cat really does fail reliably), then it seems okay to me. However, since I like pulling increasing numbers of my hats, someone should verify that the common embedded cat implementations are also okay with this. For

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

2015-04-29 Thread James Bottomley
On Wed, 2015-04-29 at 14:36 -0700, Andy Lutomirski wrote: On Wed, Apr 29, 2015 at 2:35 PM, James Bottomley james.bottom...@hansenpartnership.com wrote: On Wed, 2015-04-29 at 11:23 +, Kweh, Hock Leong wrote: I agree with James. Due to different people may have different needs. But from

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

2015-04-29 Thread James Bottomley
On Wed, 2015-04-29 at 11:23 +, Kweh, Hock Leong wrote: I agree with James. Due to different people may have different needs. But from our side, we would just like to have a simple interface for us to upload the efi capsule and perform update. We do not have any use case or need to get info

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

2015-04-29 Thread Andy Lutomirski
On Wed, Apr 29, 2015 at 2:35 PM, James Bottomley james.bottom...@hansenpartnership.com wrote: On Wed, 2015-04-29 at 11:23 +, Kweh, Hock Leong wrote: I agree with James. Due to different people may have different needs. But from our side, we would just like to have a simple interface for us

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

2015-04-29 Thread Andy Lutomirski
On Wed, Apr 29, 2015 at 2:39 PM, James Bottomley james.bottom...@hansenpartnership.com wrote: On Wed, 2015-04-29 at 14:36 -0700, Andy Lutomirski wrote: On Wed, Apr 29, 2015 at 2:35 PM, James Bottomley james.bottom...@hansenpartnership.com wrote: On Wed, 2015-04-29 at 11:23 +, Kweh, Hock

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,

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

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 james.bottom...@hansenpartnership.com 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

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 james.bottom...@hansenpartnership.com wrote: On Mon, 2015-04-27 at 14:59 -0700, Andy Lutomirski wrote: On Fri, Apr 24, 2015 at 8:16 AM, James Bottomley

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 james.bottom...@hansenpartnership.com wrote: On Fri, 2015-04-24 at 02:14 +, Kweh, Hock Leong wrote: -Original Message- From: James Bottomley

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 james.bottom...@hansenpartnership.com wrote: On Mon, 2015-04-27 at 14:59 -0700, Andy Lutomirski wrote: On Fri, Apr 24, 2015 at 8:16 AM, James Bottomley james.bottom...@hansenpartnership.com wrote: On Fri, 2015-04-24 at 02:14 +, Kweh, Hock

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

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 Message-

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 >

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

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

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 > >

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

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

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 +0200,

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 the fact that

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 whether we

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 transaction in

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:32:29AM

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

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

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

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

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

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

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

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 Andy Lutomirski
On Apr 21, 2015 9:51 PM, James Bottomley james.bottom...@hansenpartnership.com wrote: On Tue, 2015-04-21 at 20:24 -0700, Andy Lutomirski wrote: On Tue, Apr 21, 2015 at 7:20 PM, James Bottomley james.bottom...@hansenpartnership.com wrote: On Tue, 2015-04-21 at 18:58 -0700, Andy Lutomirski

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 14, 2015 at

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 james.bottom...@hansenpartnership.com wrote: Andy, just on the misc device idea, what about triggering the capsule update from close()? In theory close returns an error code

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

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.org]

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 james.bottom...@hansenpartnership.com wrote: Andy, just on the misc device idea, what about triggering the capsule

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 james.bottom...@hansenpartnership.com 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 Andy Lutomirski
On Wed, Apr 22, 2015 at 10:34 AM, James Bottomley james.bottom...@hansenpartnership.com wrote: On Wed, 2015-04-22 at 09:50 -0700, Andy Lutomirski wrote: On Apr 21, 2015 9:51 PM, James Bottomley james.bottom...@hansenpartnership.com wrote: On Tue, 2015-04-21 at 20:24 -0700, Andy Lutomirski

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

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

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

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

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

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-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 'reboot

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 20, 2015 at

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 james.bottom...@hansenpartnership.com 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

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 james.bottom...@hansenpartnership.com 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

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 james.bottom...@hansenpartnership.com wrote: On Tue, 2015-04-21 at 18:58 -0700, Andy Lutomirski wrote: On Tue, Apr 21, 2015 at 6:21 PM, James Bottomley james.bottom...@hansenpartnership.com wrote: Andy, just on the misc device idea, what about

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 james.bottom...@hansenpartnership.com 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-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,

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

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 with the

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 uploaded

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 15, 2015 at

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-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 thought

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

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,

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: > > > >

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 that

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 l...@amacapital.net wrote: On Apr 15, 2015 6:20 AM, Greg Kroah-Hartman gre...@linuxfoundation.org wrote: On Tue, Apr 14, 2015 at 11:52:48AM -0400, Andy Lutomirski wrote: On Tue,

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: -Original

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

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.org]

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

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

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, 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 gre...@linuxfoundation.org wrote: On Tue, Apr 14, 2015 at 05:44:56PM +0800, Kweh, Hock Leong wrote: From: Kweh, Hock Leong hock.leong.k...@intel.com Introducing a kernel

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 gre...@linuxfoundation.org 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 gre...@linuxfoundation.org wrote: On Tue, Apr 14, 2015 at 05:44:56PM +0800, Kweh, Hock Leong

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 l...@amacapital.net wrote: On Apr 15, 2015 6:20 AM, Greg Kroah-Hartman gre...@linuxfoundation.org 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

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 hock.leong.k...@intel.com Introducing a kernel module to expose

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 >>

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 >

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 gre...@linuxfoundation.org wrote: On Tue, Apr 14, 2015 at 05:44:56PM +0800, Kweh, Hock Leong wrote: From: Kweh, Hock Leong hock.leong.k...@intel.com Introducing a kernel module to expose capsule loader interface for user to upload capsule

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 hock.leong.k...@intel.com 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

  1   2   >