Displaying 12 results from an estimated 12 matches for "bios_size".
2010 Mar 23
1
[PATCH] drm/nouveau: fix vbios load and check functions on PowerPC
...x 6b6c303..c234b45 100644
--- a/drivers/gpu/drm/nouveau/nouveau_bios.c
+++ b/drivers/gpu/drm/nouveau/nouveau_bios.c
@@ -69,12 +69,29 @@ static bool nv_cksum(const uint8_t *data, unsigned int length)
static int
score_vbios(struct drm_device *dev, const uint8_t *data, const bool writeable)
{
+ int bios_size = 0;
+#if defined(__powerpc__)
+ struct device_node *dn = NULL;
+#endif
+
if (!(data[0] == 0x55 && data[1] == 0xAA)) {
NV_TRACEWARN(dev, "... BIOS signature not found\n");
return 0;
}
+#if defined(__powerpc__)
+ /*
+ * The Bios signature reports a wrong lenght of rom.
+...
2005 May 27
0
[PATCH] ioemu: enable Cirrus VGA emulation
...ename != NULL);
/* allocate RAM */
-// cpu_register_physical_memory(0, ram_size, 0);
+// cpu_register_physical_memory(0, ram_size, 0);
#ifndef NOBIOS
/* BIOS load */
@@ -436,9 +436,9 @@
/* map all the bios at the top of memory */
cpu_register_physical_memory((uint32_t)(-bios_size),
bios_size, bios_offset | IO_MEM_ROM);
+#endif
bochs_bios_init();
-#endif
if (linux_boot) {
uint8_t bootsect[512];
@@ -508,9 +508,6 @@
register_ioport_write(0xf0, 1, 1, ioportF0_write, NULL);
-#ifdef NOBIOS
- cirrus_vga_enab...
2020 Mar 19
2
[PATCH v3] PCI: Use ioremap(), not phys_to_virt() for platform ROM
...s)
return false;
- memcpy_fromio(adev->bios, bios, size);
+ bios = ioremap(rom, romlen);
+ if (!bios)
+ goto free_bios;
- if (!check_atom_bios(adev->bios, size)) {
- kfree(adev->bios);
- return false;
- }
+ memcpy_fromio(adev->bios, bios, romlen);
+ iounmap(bios);
- adev->bios_size = size;
+ if (!check_atom_bios(adev->bios, romlen))
+ goto free_bios;
+
+ adev->bios_size = romlen;
return true;
+free_bios:
+ kfree(adev->bios);
+ return false;
}
#ifdef CONFIG_ACPI
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowpci.c b/drivers/gpu/drm/nouveau/nvkm/s...
2020 Mar 30
1
[PATCH v3] PCI: Use ioremap(), not phys_to_virt() for platform ROM
...+ if (!bios)
> > + goto free_bios;
> >
> > - if (!check_atom_bios(adev->bios, size)) {
> > - kfree(adev->bios);
> > - return false;
> > - }
> > + memcpy_fromio(adev->bios, bios, romlen);
> > + iounmap(bios);
> >
> > - adev->bios_size = size;
> > + if (!check_atom_bios(adev->bios, romlen))
> > + goto free_bios;
> > +
> > + adev->bios_size = romlen;
> >
> > return true;
> > +free_bios:
> > + kfree(adev->bios);
> > + return false;
> > }
> >
> > #...
2020 Apr 11
0
[PATCH AUTOSEL 5.5 121/121] PCI: Use ioremap(), not phys_to_virt() for platform ROM
...s)
return false;
- memcpy_fromio(adev->bios, bios, size);
+ bios = ioremap(rom, romlen);
+ if (!bios)
+ goto free_bios;
- if (!check_atom_bios(adev->bios, size)) {
- kfree(adev->bios);
- return false;
- }
+ memcpy_fromio(adev->bios, bios, romlen);
+ iounmap(bios);
- adev->bios_size = size;
+ if (!check_atom_bios(adev->bios, romlen))
+ goto free_bios;
+
+ adev->bios_size = romlen;
return true;
+free_bios:
+ kfree(adev->bios);
+ return false;
}
#ifdef CONFIG_ACPI
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowpci.c b/drivers/gpu/drm/nouveau/nvkm/s...
2020 Apr 11
0
[PATCH AUTOSEL 5.6 149/149] PCI: Use ioremap(), not phys_to_virt() for platform ROM
...s)
return false;
- memcpy_fromio(adev->bios, bios, size);
+ bios = ioremap(rom, romlen);
+ if (!bios)
+ goto free_bios;
- if (!check_atom_bios(adev->bios, size)) {
- kfree(adev->bios);
- return false;
- }
+ memcpy_fromio(adev->bios, bios, romlen);
+ iounmap(bios);
- adev->bios_size = size;
+ if (!check_atom_bios(adev->bios, romlen))
+ goto free_bios;
+
+ adev->bios_size = romlen;
return true;
+free_bios:
+ kfree(adev->bios);
+ return false;
}
#ifdef CONFIG_ACPI
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowpci.c b/drivers/gpu/drm/nouveau/nvkm/s...
2020 Apr 11
0
[PATCH AUTOSEL 5.4 108/108] PCI: Use ioremap(), not phys_to_virt() for platform ROM
...s)
return false;
- memcpy_fromio(adev->bios, bios, size);
+ bios = ioremap(rom, romlen);
+ if (!bios)
+ goto free_bios;
- if (!check_atom_bios(adev->bios, size)) {
- kfree(adev->bios);
- return false;
- }
+ memcpy_fromio(adev->bios, bios, romlen);
+ iounmap(bios);
- adev->bios_size = size;
+ if (!check_atom_bios(adev->bios, romlen))
+ goto free_bios;
+
+ adev->bios_size = romlen;
return true;
+free_bios:
+ kfree(adev->bios);
+ return false;
}
#ifdef CONFIG_ACPI
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowpci.c b/drivers/gpu/drm/nouveau/nvkm/s...
2020 Apr 11
0
[PATCH AUTOSEL 4.19 66/66] PCI: Use ioremap(), not phys_to_virt() for platform ROM
...s)
return false;
- memcpy_fromio(adev->bios, bios, size);
+ bios = ioremap(rom, romlen);
+ if (!bios)
+ goto free_bios;
- if (!check_atom_bios(adev->bios, size)) {
- kfree(adev->bios);
- return false;
- }
+ memcpy_fromio(adev->bios, bios, romlen);
+ iounmap(bios);
- adev->bios_size = size;
+ if (!check_atom_bios(adev->bios, romlen))
+ goto free_bios;
+
+ adev->bios_size = romlen;
return true;
+free_bios:
+ kfree(adev->bios);
+ return false;
}
#ifdef CONFIG_ACPI
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowpci.c b/drivers/gpu/drm/nouveau/nvkm/s...
2020 Mar 28
0
[PATCH v3] PCI: Use ioremap(), not phys_to_virt() for platform ROM
...ize);
> + bios = ioremap(rom, romlen);
> + if (!bios)
> + goto free_bios;
>
> - if (!check_atom_bios(adev->bios, size)) {
> - kfree(adev->bios);
> - return false;
> - }
> + memcpy_fromio(adev->bios, bios, romlen);
> + iounmap(bios);
>
> - adev->bios_size = size;
> + if (!check_atom_bios(adev->bios, romlen))
> + goto free_bios;
> +
> + adev->bios_size = romlen;
>
> return true;
> +free_bios:
> + kfree(adev->bios);
> + return false;
> }
>
> #ifdef CONFIG_ACPI
> diff --git a/drivers/gpu/drm/nouv...
2005 May 24
0
[PATCH] qemu-unregister-c0000.patch
..., phys_ram_base + vga_bios_offset);
#endif
+#ifndef NOBIOS
/* setup basic memory access */
cpu_register_physical_memory(0xc0000, 0x10000,
vga_bios_offset | IO_MEM_ROM);
-#ifndef NOBIOS
/* map the last 128KB of the BIOS in ISA space */
isa_bios_size = bios_size;
if (isa_bios_size > (128 * 1024))
===== tools/ioemu/target-i386-dm/helper2.c 1.2 vs edited =====
--- 1.2/tools/ioemu/target-i386-dm/helper2.c 2005-05-20 10:01:22 -07:00
+++ edited/tools/ioemu/target-i386-dm/helper2.c 2005-05-23 16:35:40 -07:00
@@ -313,7 +313,8 @@
intr = &am...
2006 Jul 13
3
[PATCH] Update new qemu-dm to spawn vncviewer
...-07-12 16:16:42.000000000 -0600
@@ -111,6 +111,8 @@
/* XXX: use a two level table to limit memory usage */
#define MAX_IOPORTS 65536
+#define VNC_BASE_PORT 5900
+
const char *bios_dir = CONFIG_QEMU_SHAREDIR;
char phys_ram_file[1024];
void *ioport_opaque[MAX_IOPORTS];
@@ -121,6 +123,7 @@
int bios_size;
static DisplayState display_state;
int nographic;
+int vncviewer;
const char* keyboard_layout = NULL;
int64_t ticks_per_sec;
int boot_device = ''c'';
@@ -4801,6 +4804,7 @@
#endif
"-loadvm file start right away with a saved state (loadvm in monitor)\n"...
2010 Oct 07
31
[RFC][QEMU] ATI graphics VBIOS passthru support
Hi Ian,
There have been a lot of interest on gfx passthru recently. This patch enables ATI VBIOS in passthru mode. The guest VM system BIOS (including Windows boot logo) can now show in passthru screen. We have tested with various Windows and Linux guest VMs. Please help review it. We are also looking forward to comments and suggestions from Xen community users.
Signed-off-by: Wei Huang