Displaying 20 results from an estimated 173 matches for "nr_entri".
Did you mean:
nr_entry
2015 Aug 26
5
[PATCH] Call ExitBootServices twice
From: Sylvain Gault <sylvain.gault at gmail.com>
On some architecture, including my hardware, the function ExitBootServices may
need to be called twice in order to successfully exit the boot services. As
stated by the UEFI spec, the first call to ExitBootServices may perform a
partial shutdown of the services. It seems that during this partial shutdown,
the memory map can be modified, thus
2015 Nov 02
3
[PATCH] efi: Call ExitBootServices at least twice
...+ * Like get_memory_map but try to use the given buffer first, reallocate it if
> + * it's too small and always set the allocated size.
> + */
> +static EFI_MEMORY_DESCRIPTOR *
> +get_memory_map_realloc(EFI_MEMORY_DESCRIPTOR *map, UINTN *allocsize,
> + UINTN *nr_entries, UINTN *key, UINTN *desc_sz,
> + UINT32 *desc_ver)
> +{
> + EFI_STATUS status;
> + UINTN size, allocsizeadd;
> +
> + allocsizeadd = sizeof(*map) * 2;
> +
> + do {
> + size = *allocsize;
> + stat...
2019 Jun 27
1
[libnbd PATCH] block-status: Make callback usage consistent with pread_structured
...uot;;
Callback ("extent", [Opaque "data"; String "metacontext";
UInt64 "offset";
ArrayAndLen (UInt32 "entries",
- "nr_entries")]);
+ "nr_entries");
+ Mutable (Int "error")]);
Flags "flags" ];
ret = RErr;
permitted_states = [ Connected ];
@@ -1548,10 +1549,11 @@ supported by the server...
2020 Jun 11
2
[PATCH] efi/main: add retry to exit_boot()
...changed, 70 insertions(+), 11 deletions(-)
diff --git a/efi/main.c b/efi/main.c
index 6a748412..d7fb637e 100644
--- a/efi/main.c
+++ b/efi/main.c
@@ -1008,16 +1008,81 @@ static int exit_boot(struct boot_params *bp)
EFI_MEMORY_DESCRIPTOR *map;
EFI_STATUS status;
uint32_t e820_type;
- UINTN i, nr_entries, key, desc_sz;
+ UINTN i, nr_entries, key, desc_sz, buf_sz, map_sz;
UINT32 desc_ver;
+ /*
+ * Call once with empty buffer size to
+ * see how large the buffer should be.
+ */
+ buf_sz = 0;
+ status = uefi_call_wrapper(BS->GetMemoryMap,
+ 5,
+ &buf_sz,
+ map,
+...
2015 Aug 26
0
[PATCH] efi: Call ExitBootServices at least twice
...nux_header *hdr,
return 0;
}
+/*
+ * Like get_memory_map but try to use the given buffer first, reallocate it if
+ * it's too small and always set the allocated size.
+ */
+static EFI_MEMORY_DESCRIPTOR *
+get_memory_map_realloc(EFI_MEMORY_DESCRIPTOR *map, UINTN *allocsize,
+ UINTN *nr_entries, UINTN *key, UINTN *desc_sz,
+ UINT32 *desc_ver)
+{
+ EFI_STATUS status;
+ UINTN size, allocsizeadd;
+
+ allocsizeadd = sizeof(*map) * 2;
+
+ do {
+ size = *allocsize;
+ status = uefi_call_wrapper(BS->GetMemoryMap, 5, &size, map, key,
+ desc_sz, desc_v...
2015 Sep 16
1
[PATCH] efi: Call ExitBootServices at least twice
.../*
> + * Like get_memory_map but try to use the given buffer first,
> reallocate it if
> + * it's too small and always set the allocated size.
> + */
> +static EFI_MEMORY_DESCRIPTOR *
> +get_memory_map_realloc(EFI_MEMORY_DESCRIPTOR *map, UINTN *allocsize,
> + UINTN *nr_entries, UINTN *key, UINTN *desc_sz,
> + UINT32 *desc_ver)
> +{
> + EFI_STATUS status;
> + UINTN size, allocsizeadd;
> +
> + allocsizeadd = sizeof(*map) * 2;
> +
> + do {
> + size = *allocsize;
> + status = uefi_call_wrapper(BS->GetMemoryMap, 5,
> &size,...
2007 Jan 18
13
[PATCH 0/5] dump-core take 2:
The following dump-core patches changes its format into ELF,
adds PFN-GMFN table, HVM support, and adds experimental IA64 support.
- ELF format
Program header and note section are adopted.
- HVM domain support
To know the memory area to dump, XENMEM_set_memory_map is added.
XENMEM_memory_map hypercall is for current domain, so new one is created.
and hvm domain builder tell xen its
2020 Jun 18
0
[PATCH] efi/main: add retry to exit_boot()
...nged, 70 insertions(+), 11 deletions(-)
diff --git a/efi/main.c b/efi/main.c
index 6a748412..d7fb637e 100644
--- a/efi/main.c
+++ b/efi/main.c
@@ -1008,16 +1008,81 @@ static int exit_boot(struct boot_params *bp)
EFI_MEMORY_DESCRIPTOR *map;
EFI_STATUS status;
uint32_t e820_type;
- UINTN i, nr_entries, key, desc_sz;
+ UINTN i, nr_entries, key, desc_sz, buf_sz, map_sz;
UINT32 desc_ver;
+ /*
+ * Call once with empty buffer size to
+ * see how large the buffer should be.
+ */
+ buf_sz = 0;
+ status = uefi_call_wrapper(BS->GetMemoryMap,
+ 5,
+ &buf_sz,
+ map,
+ &key,
+ &am...
2009 May 07
2
[PATCH] msi-x: let drivers retry when not enough vectors
...t.
+ * of irqs or MSI-X vectors available. Driver should use the returned value to
+ * re-send its request.
**/
int pci_enable_msix(struct pci_dev* dev, struct msix_entry *entries, int nvec)
{
@@ -704,7 +704,7 @@ int pci_enable_msix(struct pci_dev* dev, struct msix_entry *entries, int nvec)
nr_entries = pci_msix_table_size(dev);
if (nvec > nr_entries)
- return -EINVAL;
+ return nr_entries;
/* Check for any invalid entries */
for (i = 0; i < nvec; i++) {
--
1.6.3.rc3.1.g830204
2009 May 07
2
[PATCH] msi-x: let drivers retry when not enough vectors
...t.
+ * of irqs or MSI-X vectors available. Driver should use the returned value to
+ * re-send its request.
**/
int pci_enable_msix(struct pci_dev* dev, struct msix_entry *entries, int nvec)
{
@@ -704,7 +704,7 @@ int pci_enable_msix(struct pci_dev* dev, struct msix_entry *entries, int nvec)
nr_entries = pci_msix_table_size(dev);
if (nvec > nr_entries)
- return -EINVAL;
+ return nr_entries;
/* Check for any invalid entries */
for (i = 0; i < nvec; i++) {
--
1.6.3.rc3.1.g830204
2015 Nov 03
2
[PATCH] efi: Call ExitBootServices at least twice
...er first, reallocate
>>> it if
>>> + * it's too small and always set the allocated size.
>>> + */
>>> +static EFI_MEMORY_DESCRIPTOR *
>>> +get_memory_map_realloc(EFI_MEMORY_DESCRIPTOR *map, UINTN *allocsize,
>>> + UINTN *nr_entries, UINTN *key, UINTN *desc_sz,
>>> + UINT32 *desc_ver)
>>> +{
>>> + EFI_STATUS status;
>>> + UINTN size, allocsizeadd;
>>> +
>>> + allocsizeadd = sizeof(*map) * 2;
>>> +
>>> + do {
&...
2015 Nov 03
0
[PATCH] efi: Call ExitBootServices at least twice
...ry to use the given buffer first, reallocate
>> it if
>> + * it's too small and always set the allocated size.
>> + */
>> +static EFI_MEMORY_DESCRIPTOR *
>> +get_memory_map_realloc(EFI_MEMORY_DESCRIPTOR *map, UINTN *allocsize,
>> + UINTN *nr_entries, UINTN *key, UINTN *desc_sz,
>> + UINT32 *desc_ver)
>> +{
>> + EFI_STATUS status;
>> + UINTN size, allocsizeadd;
>> +
>> + allocsizeadd = sizeof(*map) * 2;
>> +
>> + do {
>> + size = *...
2019 Jun 27
0
Re: [libnbd PATCH] generator: Add support for namespace constants
...but you
+are free to pass in other contexts.";
};
"get_size", {
@@ -1551,7 +1557,9 @@ pair being the length (in bytes) of the block and
the second entry
being a status/flags field which is specific to the metadata context.
(The number of pairs passed to the function is C<nr_entries/2>.) The
NBD protocol document in the section about
-C<NBD_REPLY_TYPE_BLOCK_STATUS> describes the meaning of this array.
+C<NBD_REPLY_TYPE_BLOCK_STATUS> describes the meaning of this array;
+for contexts known to libnbd, B<E<lt>libnbd.hE<gt>> contains constants...
2015 Nov 03
0
[PATCH] efi: Call ExitBootServices at least twice
...;>>> it if
>>>> + * it's too small and always set the allocated size.
>>>> + */
>>>> +static EFI_MEMORY_DESCRIPTOR *
>>>> +get_memory_map_realloc(EFI_MEMORY_DESCRIPTOR *map, UINTN *allocsize,
>>>> + UINTN *nr_entries, UINTN *key, UINTN *desc_sz,
>>>> + UINT32 *desc_ver)
>>>> +{
>>>> + EFI_STATUS status;
>>>> + UINTN size, allocsizeadd;
>>>> +
>>>> + allocsizeadd = sizeof(*map) * 2;
>>>> +...
2019 Jun 27
1
[nbdkit PATCH] nbd: Update for libnbd 0.1.5
...change, with witness of the addition
+ * of pread_structured at the same release). Once configure requires a
+ * higher minimum version, the #if hack can be dropped.
+ */
static int
nbdplug_extent (void *opaque, const char *metacontext, uint64_t offset,
- uint32_t *entries, size_t nr_entries)
+ uint32_t *entries, size_t nr_entries
+#if LIBNBD_HAVE_NBD_PREAD_STRUCTURED
+ , int *error
+#endif
+ )
{
struct nbdkit_extents *extents = opaque;
--
2.20.1
2019 May 28
0
[libnbd PATCH 2/4] api: Rearrange flags argument to block_status
...uot;;
Callback ("extent", [Opaque "data"; String "metacontext";
UInt64 "offset";
ArrayAndLen (UInt32 "entries",
- "nr_entries")]) ];
+ "nr_entries")]);
+ UInt32 "flags" ];
ret = RErr;
shortdesc = "read the block status of the given range";
longdesc = "\
@@ -1570,12 +1571,13 @@ in C<nbd_zero>.";...
2019 Jun 27
3
[libnbd PATCH] generator: Add support for namespace constants
This just defines the namespace, its contexts and related constants and the only
supported one is currently base:allocation. The names of the constants are not
very future-proof, but shorter than LIBNBD_META_NS_CONTEXT_BASE_ALLOCATION or
similar.
Currently the output looks like this:
/* "base" namespace */
/* "base" namespace contexts */
/* "base:allocation"
2016 Mar 25
7
[PATCH 0/4] Configure Power Sensors
The power sensors can be configured to sample the readout values over time.
Nvidia does this too, so nouveau should probably do that too.
Karol Herbst (4):
iccsense: remove read function
iccsense: convert to linked list
iccsense: split sensor into own struct
iccsense: configure sensors like nvidia does
drm/nouveau/include/nvkm/subdev/iccsense.h | 6 +-
drm/nouveau/nouveau_hwmon.c
2019 Jun 04
0
[PATCH libnbd v2 2/4] generator: Callback returns int instead of void.
..., const char *, const char *);
/* Linked list of close callbacks. */
struct close_callback *close_callbacks;
@@ -212,7 +212,7 @@ struct socket {
const struct socket_ops *ops;
};
-typedef void (*extent_fn) (void *data, const char *metacontext, uint64_t offset, uint32_t *entries, size_t nr_entries);
+typedef int (*extent_fn) (void *data, const char *metacontext, uint64_t offset, uint32_t *entries, size_t nr_entries);
struct command_in_flight {
struct command_in_flight *next;
diff --git a/tests/meta-base-allocation.c b/tests/meta-base-allocation.c
index 71f2afc..b00aa50 100644
--- a/t...
2016 Oct 24
0
[PATCH 2/3] subdev/iccsense: Parse max and crit power level
Signed-off-by: Karol Herbst <karolherbst at gmail.com>
---
drm/nouveau/include/nvkm/subdev/iccsense.h | 3 +++
drm/nouveau/nvkm/subdev/iccsense/base.c | 13 ++++++++++++-
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/drm/nouveau/include/nvkm/subdev/iccsense.h b/drm/nouveau/include/nvkm/subdev/iccsense.h
index 3c2ddd9..b7a9b04 100644
---