Re: [Xen-ia64-devel] [Patch][RFC] Auto setup serial console on PRIMEQUEST

2007-04-05 Thread Alex Williamson
On Thu, 2007-04-05 at 10:44 +0900, Akio Takebe wrote:
 Hi,
 
 I make a patch to use serial console without setting bootparameter on PQ.

   Applied.  Thanks,

Alex

-- 
Alex Williamson HP Open Source  Linux Org.


___
Xen-ia64-devel mailing list
Xen-ia64-devel@lists.xensource.com
http://lists.xensource.com/xen-ia64-devel


[Xen-ia64-devel] [Patch][RFC] Auto setup serial console on PRIMEQUEST

2007-04-04 Thread Akio Takebe
Hi,

I make a patch to use serial console without setting bootparameter on PQ.
I change the intel_tiger_console_setup(),
but should I add a function for PRIMEQUEST?

Signed-off-by: Akio Takebe [EMAIL PROTECTED]

---
diff -r 56caf0e37e6a xen/arch/ia64/linux-xen/setup.c
--- a/xen/arch/ia64/linux-xen/setup.c   Mon Mar 26 10:10:31 2007 -0600
+++ b/xen/arch/ia64/linux-xen/setup.c   Thu Apr 05 12:01:40 2007 +0900
@@ -316,7 +316,7 @@ io_port_init (void)
 
 #ifdef XEN
 static int __init
-intel_tiger_console_setup(void)
+machine_console_setup(void)
 {
extern struct ns16550_defaults ns16550_com1;
efi_system_table_t *systab;
@@ -352,9 +352,19 @@ intel_tiger_console_setup(void)
 
if (strncmp(hdr-signature, XSDT_SIG, sizeof(XSDT_SIG) - 1))
return -ENODEV;
-
/*
-* Only looking for Intel Tiger systems
+* looking for Fujitsu PRIMEQUEST systems
+*/
+   if (!strncmp(hdr-oem_id, FUJITSPQ, 8) 
+   (!strncmp(hdr-oem_table_id, PQ, 2))){
+   ns16550_com1.baud = BAUD_AUTO;
+   ns16550_com1.io_base =  0x3f8;
+   ns16550_com1.irq = 48;
+   return 0;
+   }
+
+   /*
+* looking for Intel Tiger systems
 * Tiger 2: SR870BH2
 * Tiger 4: SR870BN4
 */
@@ -402,7 +412,7 @@ early_console_setup (char *cmdline)
 #endif
 
 #ifdef XEN
-   if (!intel_tiger_console_setup())
+   if (!machine_console_setup())
earlycons++;
 #endif
return (earlycons) ? 0 : -1;

Best Regards,

Akio Takebe


___
Xen-ia64-devel mailing list
Xen-ia64-devel@lists.xensource.com
http://lists.xensource.com/xen-ia64-devel


Re: [Xen-ia64-devel] [Patch][RFC] Auto setup serial console on PRIMEQUEST

2007-04-04 Thread Alex Williamson
On Thu, 2007-04-05 at 10:44 +0900, Akio Takebe wrote:
 Hi,
 
 I make a patch to use serial console without setting bootparameter on PQ.
 I change the intel_tiger_console_setup(),
 but should I add a function for PRIMEQUEST?

Hi Akio,

   Looks good.  I might change machine_console_setup() to
acpi_oem_console_setup() (no need for a new patch), but I don't see a
need for a separate function.  So the PRIMEQUEST system don't implement
an HCDP table either?  Thanks,

Alex

-- 
Alex Williamson HP Open Source  Linux Org.


___
Xen-ia64-devel mailing list
Xen-ia64-devel@lists.xensource.com
http://lists.xensource.com/xen-ia64-devel