xserver-xorg-video-intel
Hello,
I am attempting to virtualize a MID image that requires this driver. Is there a process for getting something like this supported? What information\actions do you need from me to consider the support?
Thanks,
Chris
Quoted 7 lines · Chris Gregan
Hello,
I am attempting to virtualize a MID image that requires this driver. Is there a process for getting something like this supported? What information\actions do you need from me to consider the support?Thanks,
Chris
I think there was a patch that emulates an Intel integrated X3100 chipset, but it isn't complete.
Quoted 10 lines · C.W. Betts
Quoted 7 lines · Chris Gregan
Hello,
I am attempting to virtualize a MID image that requires this driver. Is there a process for getting something like this supported? What information\actions do you need from me to consider the support?Thanks,
ChrisI think there was a patch that emulates an Intel integrated X3100 chipset, but it isn't complete.
Thank you C.W.
Can I help out with some testing?
Signature · 6 lines
Chris Gregan Ubuntu Mobile QA Engineer Canonical USA Inc. [email protected] cgregan@freenode 301-865-3643
Quoted 7 lines · Chris Gregan
Quoted 6 lines · C.W. Betts
Quoted 5 lines · Chris Gregan
Hello,
I am attempting to virtualize a MID image that requires this driver. Is there a process for getting something like this supported? What information\actions do you need from me to consider the support?
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Thanks,
ChrisI think there was a patch that emulates an Intel integrated X3100 chipset, but it isn't complete.
Thank you C.W.
Can I help out with some testing?
Umm, I'm not the one who made it. It was Vincent Hanquez at [email protected]. Included is the patch he sent to the mailing list.
Makefile.target +1 -0
@@ -535,6 +535,7 @@ OBJS+= ide.o pckbd.o ps2.o vga.o $(SOUND_HW) dma.o OBJS+= fdc.o mc146818rtc.o serial.o i8259.o i8254.o pcspk.o pc.o OBJS+= cirrus_vga.o apic.o parallel.o acpi.o piix_pci.o OBJS+= usb-uhci.o vmmouse.o vmport.o vmware_vga.o +OBJS+= x3100_debug.o x3100_vga.o x3100_gtt.o x3100_fb.o x3100_mi.o x3100_regs.o x3100.o CPPFLAGS += -DHAS_AUDIO -DHAS_AUDIO_CHOICE endif ifeq ($(TARGET_BASE_ARCH), ppc)
hw/pc.c +16 -1
@@ -706,6 +706,7 @@ static void pc_init1(int ram_size, int vga_ram_size,char buf[1024 ];int ret, linux_boot, i;ram_addr_t ram_addr, vga_ram_addr, bios_offset, vga_bios_offset; +ram_addr_t x3100_ram_addr =0 ;int bios_size, isa_bios_size, vga_bios_size;PCIBus *pci_bus;int piix3_devfn =-1 ;
@@ -753,7 +754,13 @@ static void pc_init1(int ram_size, int vga_ram_size,cpu_register_physical_memory (0 , ram_size, ram_addr);/* allocate VGA RAM */ - vga_ram_addr =qemu_ram_alloc (vga_ram_size); + +if (x3100_enabled) { + vga_ram_addr =qemu_ram_alloc (vga_ram_size -X3100_RAM_SIZE ); + x3100_ram_addr =qemu_ram_alloc (X3100_RAM_SIZE ); + } +else + vga_ram_addr =qemu_ram_alloc (vga_ram_size);/* BIOS load */ if (bios_name ==NULL )
@@ -872,6 +879,14 @@ static void pc_init1(int ram_size, int vga_ram_size, vga_ram_addr, vga_ram_size); else fprintf(stderr, "%s: vmware_vga: no PCI bus\n", __FUNCTION__); + }else if (x3100_enabled) { +if (pci_enabled) +pci_x3100_init (pci_bus, ds, phys_ram_base + vga_ram_addr, + vga_ram_addr, vga_ram_size, + phys_ram_base + x3100_ram_addr, x3100_ram_addr, + x3100_debug); +else +fprintf (stderr,"%s: x3100: no PCI bus\n" , __FUNCTION__); }else {if (pci_enabled) { pci_vga_init(pci_bus, ds, phys_ram_base + vga_ram_addr,
hw/pc.h +7 -0
@@ -113,6 +113,8 @@ int piix4_init(PCIBus *bus, int devfn);#define VGA_RAM_SIZE (9 * 1024 * 1024)#endif +#define X3100_RAM_SIZE (128 * 1024 * 1024) +int isa_vga_init (DisplayState *ds,uint8_t *vga_ram_base,unsigned long vga_ram_offset,int vga_ram_size); int pci_vga_init(PCIBus *bus, DisplayState *ds, uint8_t *vga_ram_base,
@@ -123,6 +125,11 @@ int isa_vga_mm_init(DisplayState *ds, uint8_t *vga_ram_base, target_phys_addr_t vram_base, target_phys_addr_t ctrl_base, int it_shift); +int pci_x3100_init (PCIBus *bus,DisplayState *ds,uint8_t *vga_ram_base, +unsigned long vga_ram_offset,int vga_ram_size, +uint8_t *x3100_ram_base,unsigned long x3100_ram_offset, +int debug); +/* cirrus_vga.c */ void pci_cirrus_vga_init (PCIBus *bus,DisplayState *ds,uint8_t *vga_ram_base,unsigned long vga_ram_offset,int vga_ram_size);
hw/pci.h +2 -0
@@ -17,7 +17,9 @@ typedef void PCIMapIORegionFunc(PCIDevice *pci_dev, int region_num,#define PCI_ADDRESS_SPACE_MEM 0x00#define PCI_ADDRESS_SPACE_IO 0x01 +#define PCI_ADDRESS_SPACE_MEM64 0x04#define PCI_ADDRESS_SPACE_MEM_PREFETCH 0x08 +#define PCI_ADDRESS_SPACE_MEM64_PREFETCH 0x0c typedef struct PCIIORegion { uint32_t addr; /* current PCI mapping address. -1 means not mapped */
hw/x3100.c new file +295 -0
295 lines not on this page · raw message
hw/x3100.h new file +155 -0
155 lines not on this page · raw message
hw/x3100_debug.c new file +46 -0
46 lines not on this page · raw message
hw/x3100_fb.c new file +106 -0
106 lines not on this page · raw message
hw/x3100_gtt.c new file +63 -0
63 lines not on this page · raw message
hw/x3100_mi.c new file +766 -0
766 lines not on this page · raw message
hw/x3100_mi.h new file +116 -0
116 lines not on this page · raw message
hw/x3100_regs.c new file +647 -0
647 lines not on this page · raw message
hw/x3100_regs.h new file +206 -0
206 lines not on this page · raw message
hw/x3100_vga.c new file +228 -0
228 lines not on this page · raw message
sysemu.h +2 -0
@@ -76,6 +76,8 @@ void do_info_slirp(void);extern int ram_size;extern int bios_size;extern int cirrus_vga_enabled; +extern int x3100_enabled; +extern int x3100_debug;extern int vmsvga_enabled;extern int graphic_width;extern int graphic_height;
vl.c +15 -0
@@ -183,6 +183,8 @@ int vm_running;static int rtc_utc =1 ;static int rtc_date_offset =-1 ;/* -1 means no change */ int cirrus_vga_enabled =1 ; +int x3100_enabled =0 ; +int x3100_debug =0 ;int vmsvga_enabled =0 ;#ifdef TARGET_SPARC int graphic_width =1024 ;
@@ -7713,6 +7715,7 @@ static void help(int exitcode)#ifdef TARGET_I386 "-std-vga simulate a standard VGA card with VESA Bochs Extensions\n" " (default is CL-GD5446 PCI VGA)\n" +"-x3100 simulate a x3100 graphic card\n" "-no-acpi disable ACPI\n"#endif #ifdef CONFIG_CURSES
@@ -7805,6 +7808,8 @@ enum { QEMU_OPTION_vmsvga, QEMU_OPTION_g, QEMU_OPTION_std_vga, + QEMU_OPTION_x3100, + QEMU_OPTION_x3100_debug, QEMU_OPTION_echr, QEMU_OPTION_monitor, QEMU_OPTION_serial,
@@ -7904,6 +7909,8 @@ const QEMUOption qemu_options[] = {#endif { "localtime", 0, QEMU_OPTION_localtime }, { "std-vga", 0, QEMU_OPTION_std_vga }, + { "x3100", 0, QEMU_OPTION_x3100 }, + { "x3100-dbg", 0, QEMU_OPTION_x3100_debug }, { "echr", HAS_ARG, QEMU_OPTION_echr }, { "monitor", HAS_ARG, QEMU_OPTION_monitor }, { "serial", HAS_ARG, QEMU_OPTION_serial },
@@ -8598,6 +8605,14 @@ int main(int argc, char **argv) cirrus_vga_enabled =0 ; vmsvga_enabled =0 ;break ; +case QEMU_OPTION_x3100: + cirrus_vga_enabled =0 ; + x3100_enabled =1 ; + vga_ram_size +=X3100_RAM_SIZE ; +break ; +case QEMU_OPTION_x3100_debug: + x3100_debug =1 ; +break ;case QEMU_OPTION_g: {const char *p;