Commit Graph

10 Commits

Author SHA1 Message Date
Nikunj A Dadhania 2a3b6f8bfa ci: implement boot client interface
IEEE1275 - "Standard for Boot", section 6.3.2.5:
Implements "boot" client interface which will store the bootspec
passed by the client and resets the system. The system comes
back with the settings specified in bootspec.

Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
2015-08-05 15:06:04 +10:00
Nikunj A Dadhania e748fc4a37 Quieten the grub warning
Replace the warning with code comment

Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2014-06-26 12:13:59 +05:30
Nikunj A Dadhania ab29e16279 ci: add missing close in else condition
The code in close for calling quiesce looks if there is stdin and
checks whether is being closed. That condition was being used to call
quiesce.

So in case when the ihandle is not that of stdin, close-dev was missing.

Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2013-10-04 12:01:21 +05:30
Avik Sil 43ba6e5c7f Fix 'canon' client interface
As per 1275 standard, canon converts the possibly ambiguous
device-specifier to a fully qualified pathname (see 6.3.2.2). It is kind
of find-alias for clients. Earlier canon implementation was not complete,
it was not at all returning the full path name. So grub was not getting
the alias path by calling canon and it was breaking.

In this patch I'm checking if the passed string is already a full path
by comparing the first character with '/'. In that case I return the
passed string as is. Otherwise I return the find-alias.

Signed-off-by: Avik Sil <aviksil@linux.vnet.ibm.com>
Reviewed-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2013-09-26 16:25:43 +05:30
Nikunj A Dadhania ac2fc97106 slof: call quiesce on closing of stdin
As quiesce is not a standard interface which is not what everybody
supports. Now make quiesce call when the stdin is closed. This makes
sure that the inteface is call always and is not dependent on OS
calling quiesce.

Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Acked-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2013-07-24 14:46:23 +05:30
Benjamin Herrenschmidt b96c867a33 Add hack to client interface finddevice of "/memory"
grub2 is bogus, it looks for "/memory" to check for available
memory. On a system with multiple memory nodes that might return
anything and not necessarily the RMA node which is the only one
usable in real mode.

This adds a hack to the client interface code which transforms
any request for "/memory" to explicitly look for "/memory@0"
which returns the RMA node.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2013-06-27 20:14:14 +10:00
Thomas Huth cf13fc9bee Added the possibility to debug the "getprop" client interface calls
To analyze the behavior and requirements of boot loaders and OS clients, it's
crucial to know which properties they try to read from our device tree. Thus
we need the possibility to debug the "getprop" client interface call.

Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2012-02-27 10:44:25 +01:00
Thomas Huth b46da96a00 Added a possibility to debug the client interface calls
Set "debug-client-interface?" to TRUE to enable the debug messages.

Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2012-02-14 09:01:46 +01:00
Thomas Huth b6ec21f809 Fixed a bug in the "test" client interface command.
"test" was removing the wrong stack items, so the first stack item beyond
its parameters got corrupted.

Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-10-12 12:50:05 +02:00
Benjamin Herrenschmidt aaad509cdc Initial import of slof-JX-1.7.0-4
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2010-12-01 09:51:44 +11:00