Re: [PATCH] powerpc/pseries: add lparctl driver for platform-specific functions

2022-09-15 Thread Nathan Lynch
Michal Suchánek writes: > On Tue, Sep 13, 2022 at 12:02:42PM -0500, Nathan Lynch wrote: >> Anyway, of course I intend to support the more complex calls, but >> supporting the simple calls actually unbreaks a lot of stuff. > > The thing is that supporting calls that return more than one page of >

Re: [PATCH] powerpc/pseries: add lparctl driver for platform-specific functions

2022-09-14 Thread Michal Suchánek
On Tue, Sep 13, 2022 at 12:02:42PM -0500, Nathan Lynch wrote: > Michal Suchánek writes: > > On Tue, Sep 13, 2022 at 10:59:56AM -0500, Nathan Lynch wrote: > >> Michal Suchánek writes: > >> > >> > On Fri, Aug 12, 2022 at 02:14:21PM -0500, Nathan Lynch wrote: > >> >> Laurent Dufour writes: > >>

Re: [PATCH] powerpc/pseries: add lparctl driver for platform-specific functions

2022-09-13 Thread Nathan Lynch
Michal Suchánek writes: > On Tue, Sep 13, 2022 at 10:59:56AM -0500, Nathan Lynch wrote: >> Michal Suchánek writes: >> >> > On Fri, Aug 12, 2022 at 02:14:21PM -0500, Nathan Lynch wrote: >> >> Laurent Dufour writes: >> >> > Le 30/07/2022 à 02:04, Nathan Lynch a écrit : >> >> >> +static long

Re: [PATCH] powerpc/pseries: add lparctl driver for platform-specific functions

2022-09-13 Thread Michal Suchánek
On Tue, Sep 13, 2022 at 10:59:56AM -0500, Nathan Lynch wrote: > Michal Suchánek writes: > > > On Fri, Aug 12, 2022 at 02:14:21PM -0500, Nathan Lynch wrote: > >> Laurent Dufour writes: > >> > Le 30/07/2022 à 02:04, Nathan Lynch a écrit : > >> >> +static long lparctl_get_sysparm(struct

Re: [PATCH] powerpc/pseries: add lparctl driver for platform-specific functions

2022-09-13 Thread Nathan Lynch
Michal Suchánek writes: > On Fri, Aug 12, 2022 at 02:14:21PM -0500, Nathan Lynch wrote: >> Laurent Dufour writes: >> > Le 30/07/2022 à 02:04, Nathan Lynch a écrit : >> >> +static long lparctl_get_sysparm(struct lparctl_get_system_parameter >> >> __user *argp) >> >> +{ >> >> + struct

Re: [PATCH] powerpc/pseries: add lparctl driver for platform-specific functions

2022-09-13 Thread Michal Suchánek
On Fri, Aug 12, 2022 at 02:14:21PM -0500, Nathan Lynch wrote: > Laurent Dufour writes: > > Le 30/07/2022 à 02:04, Nathan Lynch a écrit : > >> +static long lparctl_get_sysparm(struct lparctl_get_system_parameter > >> __user *argp) > >> +{ > >> + struct lparctl_get_system_parameter *gsp; > >> +

Re: [PATCH] powerpc/pseries: add lparctl driver for platform-specific functions

2022-08-12 Thread Nathan Lynch
Laurent Dufour writes: > Le 30/07/2022 à 02:04, Nathan Lynch a écrit : >> +static long lparctl_get_sysparm(struct lparctl_get_system_parameter __user >> *argp) >> +{ >> +struct lparctl_get_system_parameter *gsp; >> +long ret; >> +int fwrc; >> + >> +/* >> + * Special case to

Re: [PATCH] powerpc/pseries: add lparctl driver for platform-specific functions

2022-08-01 Thread Laurent Dufour
Le 30/07/2022 à 02:04, Nathan Lynch a écrit : > This adds a chardev+ioctl-based interface for user space to access pseries > platform-specific functions which don't easily fit elsewhere. > > The immediate motivation is to unbreak librtas[1] with kernel lockdown > enabled. librtas provides a thin

[PATCH] powerpc/pseries: add lparctl driver for platform-specific functions

2022-07-29 Thread Nathan Lynch
This adds a chardev+ioctl-based interface for user space to access pseries platform-specific functions which don't easily fit elsewhere. The immediate motivation is to unbreak librtas[1] with kernel lockdown enabled. librtas provides a thin root-only user-space API, allowing nearly direct access