* [parisc-linux] [PATCH] Additional Address cleanup
@ 2001-09-21 16:48 Ryan Bradetich
2001-09-21 18:21 ` Ryan Bradetich
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Ryan Bradetich @ 2001-09-21 16:48 UTC (permalink / raw)
To: parisc-linux
[-- Attachment #1: Type: text/plain, Size: 1197 bytes --]
Hello parisc-linux hackers,
I have a small patch which allows the additional addresses to
be allocated dynamically instead of a static array. The patch
itself is pretty simple, but I made one simplification that
I wanted to run by the experts before committing the patch.
The simplification I made was to remove the HPA from index
0 of the addr[] in the parisc_device. I feel this is redundant
since the device already records the HPA with the hpa field.
By not including the HPA, it also saves a kmalloc on every
parisc device to store the HPA, and an additional kfree/kmalloc
when the device actually has additional addresses to store.
Currently, the only device that is using the additional
addresses is the STI driver, and it blindly reads from
addr[1] for the location of a graphics card. Nothing else
besides the adding/printing of the additional addresses
every uses the addr field in the parisc device.
So can I safely remove the HPA from addr[0] as I've done with
the attached patch? Or will I break future device support
if the HPA is not present?
Thanks,
- Ryan
P.S. I have tested this patch on C200+ with serial console,
712/100 with STI console, and compiled it at 64-bit.
[-- Attachment #2: addr.patch --]
[-- Type: text/plain, Size: 10227 bytes --]
? addr.diff
? arch/parisc/kernel/Makefile.iotree
? arch/parisc/kernel/drivers.c.iotree
? arch/parisc/kernel/inventory.c.iotree
? arch/parisc/kernel/iotree.c
Index: arch/parisc/kernel/drivers.c
===================================================================
RCS file: /home/cvs/parisc/linux/arch/parisc/kernel/drivers.c,v
retrieving revision 1.24
diff -u -p -r1.24 drivers.c
--- arch/parisc/kernel/drivers.c 2001/09/18 01:14:18 1.24
+++ arch/parisc/kernel/drivers.c 2001/09/21 16:21:46
@@ -174,30 +174,6 @@ int get_num_pa_dev(void)
return i;
}
-/**
- * add_pa_dev_addr - Add an additional address to the list of addresses of a HP device
- * @hp_device: the PA-RISC device structure
- * @addr: the address to be added
- */
-int add_pa_dev_addr(struct parisc_device *hp_device, unsigned long addr)
-{
- if (!hp_device || !addr)
- return 0;
-
- if (hp_device->num_addrs >= MAX_ADD_ADDRS) {
- printk(KERN_ERR "%s: Too many additional addresses. "
- "Increase the value of MAX_ADD_ADDRS in harware.h !\n",
- __FUNCTION__ );
- return 0;
- }
-
- hp_device->addr[hp_device->num_addrs] = addr;
- hp_device->num_addrs++;
-
- return hp_device->num_addrs;
-}
-
-
struct parisc_device *alloc_pa_dev(unsigned long hpa)
{
int i, status;
@@ -243,13 +219,9 @@ struct parisc_device *alloc_pa_dev(unsig
strncpy(dev->name, name, sizeof(dev->name)-1);
}
- /* add the hpa of this module as the first additional address */
- add_pa_dev_addr(dev, hpa);
-
num_devices++;
write_unlock(&pa_lock);
-
return dev;
}
Index: arch/parisc/kernel/inventory.c
===================================================================
RCS file: /home/cvs/parisc/linux/arch/parisc/kernel/inventory.c,v
retrieving revision 1.35
diff -u -p -r1.35 inventory.c
--- arch/parisc/kernel/inventory.c 2001/09/18 16:12:08 1.35
+++ arch/parisc/kernel/inventory.c 2001/09/21 16:21:46
@@ -15,6 +15,8 @@
#include <linux/types.h>
#include <linux/kernel.h>
+#include <linux/init.h>
+#include <linux/slab.h>
#include <linux/mm.h>
#include <asm/hardware.h>
#include <asm/io.h>
@@ -30,7 +32,7 @@
int pdc_type = PDC_TYPE_ILLEGAL;
-void setup_pdc(void)
+void __init setup_pdc(void)
{
long status;
unsigned int bus_id;
@@ -108,9 +110,9 @@ void setup_pdc(void)
#define PDC_PAGE_ADJ_SHIFT (PAGE_SHIFT - 12) /* pdc pages are always 4k */
-static void set_pmem_entry(physmem_range_t *pmem_ptr,
- unsigned long start,
- unsigned long pages4k)
+static void __init
+set_pmem_entry(physmem_range_t *pmem_ptr, unsigned long start,
+ unsigned long pages4k)
{
/* Rather than aligning and potentially throwing away
* memory, we'll assume that any ranges are already
@@ -129,7 +131,7 @@ static void set_pmem_entry(physmem_range
pmem_ptr->pages = (pages4k >> PDC_PAGE_ADJ_SHIFT);
}
-void do_pagezero_memconfig(void)
+void __init do_pagezero_memconfig(void)
{
unsigned long npages;
@@ -168,7 +170,8 @@ void do_pagezero_memconfig(void)
**
*/
-static int pat_query_module(ulong pcell_loc, ulong mod_index)
+static int __init
+pat_query_module(ulong pcell_loc, ulong mod_index)
{
pdc_pat_cell_mod_maddr_block_t pa_pdc_cell;
pdc_pat_cell_mod_maddr_block_t io_pdc_cell;
@@ -272,7 +275,7 @@ static int pat_query_module(ulong pcell_
#define PAT_MAX_RANGES (4 * MAX_PHYSMEM_RANGES)
-static void do_pat_memconfig(void)
+static void __init do_pat_memconfig(void)
{
unsigned long actual_len;
struct pdc_pat_pd_addr_map_entry mem_table[PAT_MAX_RANGES+1];
@@ -338,7 +341,7 @@ static void do_pat_memconfig(void)
}
}
-static int do_pat_inventory(void)
+static int __init do_pat_inventory(void)
{
int status;
ulong mod_index = 0;
@@ -367,7 +370,7 @@ static int do_pat_inventory(void)
/* We only look for extended memory ranges on a 64 bit capable box */
-static void do_system_map_memconfig(void)
+static void __init do_system_map_memconfig(void)
{
struct pdc_memory_table_raddr r_addr;
struct pdc_memory_table mem_table[MAX_PHYSMEM_RANGES];
@@ -416,8 +419,9 @@ static void do_system_map_memconfig(void
/* All of the older legacy box (32 bit only) code goes here */
-static struct parisc_device *legacy_create_device(struct pdc_memory_map *r_addr,
- struct pdc_module_path *module_path)
+static struct parisc_device * __init
+legacy_create_device(struct pdc_memory_map *r_addr,
+ struct pdc_module_path *module_path)
{
struct parisc_device *dev;
int status = pdc_mem_map_hpa(r_addr, module_path);
@@ -441,7 +445,7 @@ static struct parisc_device *legacy_crea
* sub-devices which are discovered by setting bc[5] to 0 and bc[4] to the
* module, then trying all possible functions.
*/
-int do_legacy_inventory(void)
+int __init do_legacy_inventory(void)
{
int mod, num = 0;
for (mod = 0; mod < 16; mod++) {
@@ -509,13 +513,56 @@ int do_native_bus_walk(unsigned long hpa
return num;
}
-static int do_system_map_inventory(void)
+/**
+ * add_system_map_addresses - Add additional addresses to the parisc device.
+ * @dev: The parisce device.
+ * @num_addrs: Then number of addresses to add;
+ * @module_instance: The system_map module instance.
+ *
+ * This function adds any additional addresses reported by the system_map
+ * firmware to the parisc device.
+ */
+static __init void
+add_system_map_addresses(struct parisc_device *dev, int num_addrs,
+ int module_instance)
+{
+ int i;
+ long status;
+ struct pdc_system_map_addr_info addr_result;
+
+ dev->addr = kmalloc(sizeof(unsigned long), num_addrs);
+ if(!dev->addr) {
+ printk(KERN_ERR "%s %s(): memory allocation failure\n",
+ __FILE__, __FUNCTION__);
+ return;
+ }
+
+ for(i = 0; i < num_addrs; ++i) {
+ status = pdc_system_map_find_addrs(&addr_result,
+ module_instance, i);
+ if(PDC_RET_OK == status) {
+ dev->addr[dev->num_addrs] = (unsigned long)addr_result.mod_addr;
+ dev->num_addrs++;
+ } else {
+ printk(KERN_WARNING
+ "Bad PDC_FIND_ADDRESS status return (%ld) for index %d\n",
+ status, i);
+ }
+ }
+}
+
+/**
+ * do_system_map_inventory - Retrieve firmware devices via SYSTEM_MAP.
+ *
+ * This function attempts to retrieve and register all the devices firmware
+ * knows about via the SYSTEM_MAP PDC call.
+ */
+static int __init do_system_map_inventory(void)
{
- int i, j, num;
+ int i, num;
long status;
struct parisc_device *dev;
struct pdc_system_map_mod_info module_result;
- struct pdc_system_map_addr_info addr_result;
struct pdc_module_path module_path;
/* So the idea here is to simply try one SYSTEM_MAP call. If
@@ -528,41 +575,31 @@ static int do_system_map_inventory(void)
num = 0;
for (i = 0; status != PDC_RET_NE_PROC && status != PDC_RET_NE_MOD; ++i) {
- status = pdc_system_map_find_mods(&module_result, &module_path, i);
+ status = pdc_system_map_find_mods(&module_result,
+ &module_path, i);
if (status != PDC_RET_OK)
continue;
- dev = alloc_pa_dev((unsigned long) module_result.mod_addr);
- if (!dev)
+ dev = alloc_pa_dev((unsigned long)module_result.mod_addr);
+ if(!dev)
continue;
register_parisc_device(dev);
++num;
/* if available, get the additional addresses for a module */
- if (!module_result.add_addrs)
+ if(!module_result.add_addrs)
continue;
- for (j = 1; j <= module_result.add_addrs; ++j) {
- status = pdc_system_map_find_addrs(&addr_result, i, j);
- if (status == PDC_RET_OK) {
- add_pa_dev_addr(dev, (unsigned long)
- addr_result.mod_addr);
- } else {
- printk(KERN_WARNING
- "Bad PDC_FIND_ADDRESS status return (%ld) for index %d\n",
- status, j);
- status = PDC_RET_OK; /* reset status for outer loop */
- }
- }
- } /* end of main loop */
+ add_system_map_addresses(dev, module_result.add_addrs, i);
+ }
/* Walk the system bus */
num += do_native_bus_walk(FPA);
return num;
}
-void do_memory_inventory(void)
+void __init do_memory_inventory(void)
{
switch (pdc_type) {
@@ -589,7 +626,7 @@ void do_memory_inventory(void)
}
}
-void do_device_inventory(void)
+void __init do_device_inventory(void)
{
int num;
Index: drivers/video/sti/sticore.c
===================================================================
RCS file: /home/cvs/parisc/linux/drivers/video/sti/sticore.c,v
retrieving revision 1.22
diff -u -p -r1.22 sticore.c
--- drivers/video/sti/sticore.c 2001/08/22 13:23:47 1.22
+++ drivers/video/sti/sticore.c 2001/09/21 16:21:51
@@ -833,7 +833,11 @@ out_err:
*/
static int __init sticore_pa_init(struct parisc_device *dev)
{
- unsigned long rom = dev->addr[1];
+ unsigned long rom;
+
+ if(dev->num_addrs) {
+ rom = dev->addr[0];
+ }
if (!rom) {
rom = PAGE0->proc_sti;
}
Index: include/asm-parisc/hardware.h
===================================================================
RCS file: /home/cvs/parisc/linux/include/asm-parisc/hardware.h,v
retrieving revision 1.21
diff -u -p -r1.21 hardware.h
--- include/asm-parisc/hardware.h 2001/09/18 01:14:19 1.21
+++ include/asm-parisc/hardware.h 2001/09/21 16:21:52
@@ -21,9 +21,6 @@ struct hp_hardware {
const char name[80]; /* The hardware description */
};
-
-#define MAX_ADD_ADDRS 5 /* 5 additional address ranges should be sufficient */
-
struct parisc_device {
unsigned long hpa; /* Hard Physical Address */
struct parisc_device_id id;
@@ -33,8 +30,8 @@ struct parisc_device {
struct parisc_driver *driver; /* Driver for this device */
char name[80]; /* The hardware description */
- unsigned int num_addrs; /* some devices have additional address ranges, */
- unsigned long addr[MAX_ADD_ADDRS]; /* which will be stored here */
+ unsigned int num_addrs; /* some devices have additional address ranges. */
+ unsigned long *addr; /* which will be stored here */
#ifdef __LP64__
/* parms for pdc_pat_cell_module() call */
@@ -100,7 +97,6 @@ extern enum cpu_type parisc_get_cpu_type
/* drivers.c: */
extern struct parisc_device *alloc_pa_dev(unsigned long hpa);
extern int register_parisc_device(struct parisc_device *dev);
-extern int add_pa_dev_addr(struct parisc_device *dev, unsigned long addr);
extern int get_num_pa_dev(void);
extern void print_pa_devices(int start_index, int num_indexes);
extern int register_parisc_driver(struct parisc_driver *driver);
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [parisc-linux] [PATCH] Additional Address cleanup 2001-09-21 16:48 [parisc-linux] [PATCH] Additional Address cleanup Ryan Bradetich @ 2001-09-21 18:21 ` Ryan Bradetich 2001-09-21 18:35 ` Matthew Wilcox 2001-09-24 11:06 ` Rüdiger Scholz 2 siblings, 0 replies; 9+ messages in thread From: Ryan Bradetich @ 2001-09-21 18:21 UTC (permalink / raw) To: parisc-linux Hello parisc-linux hackers, Rereading the patch, I spotted a bug in the kmalloc *sigh*. > + dev->addr = kmalloc(sizeof(unsigned long), num_addrs); The kmalloc should look like this (I think). dev->addr = kmalloc(num_addrs * sizeof(unsigned long), GFP_KERNEL); - Ryan ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [parisc-linux] [PATCH] Additional Address cleanup 2001-09-21 16:48 [parisc-linux] [PATCH] Additional Address cleanup Ryan Bradetich 2001-09-21 18:21 ` Ryan Bradetich @ 2001-09-21 18:35 ` Matthew Wilcox 2001-09-24 11:06 ` Rüdiger Scholz 2 siblings, 0 replies; 9+ messages in thread From: Matthew Wilcox @ 2001-09-21 18:35 UTC (permalink / raw) To: Ryan Bradetich; +Cc: parisc-linux On Fri, Sep 21, 2001 at 10:48:38AM -0600, Ryan Bradetich wrote: > The simplification I made was to remove the HPA from index > 0 of the addr[] in the parisc_device. I feel this is redundant > since the device already records the HPA with the hpa field. > By not including the HPA, it also saves a kmalloc on every > parisc device to store the HPA, and an additional kfree/kmalloc > when the device actually has additional addresses to store. I haven't had time to review the patch, but I think it's an excellent idea to remove the duplicate hpa and addr[0] entries. I was thinking about doing it myself, but hadn't got round to checking it could be done. I was also thinking about removing the `hpa' entry completely and using struct resource to track the area claimed by the device. I think we want to do this in any case for the card-mode dino support. This is a later step, I think, so don't let this consideration slow you down. -- Revolutions do not require corporate support. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [parisc-linux] [PATCH] Additional Address cleanup 2001-09-21 16:48 [parisc-linux] [PATCH] Additional Address cleanup Ryan Bradetich 2001-09-21 18:21 ` Ryan Bradetich 2001-09-21 18:35 ` Matthew Wilcox @ 2001-09-24 11:06 ` Rüdiger Scholz 2001-09-25 3:59 ` Ryan Bradetich 2 siblings, 1 reply; 9+ messages in thread From: Rüdiger Scholz @ 2001-09-24 11:06 UTC (permalink / raw) To: Ryan Bradetich; +Cc: parisc-linux [-- Attachment #1: Type: text/plain, Size: 375 bytes --] Hi there, I've tested the patch on my 715/100. I enabled STI-Console only and no STI-fb, because of the second Coral Graphics Card in my box.Using the kernel 2.4.9-pa25, the new patch kernel boots out of the box, but it doesn't recognize my graphics cards. I also changed the kmalloc-statement according to your second mail . I added the bootlog. Any hints? Ruediger [-- Attachment #2: logfile.txt --] [-- Type: text/plain, Size: 10024 bytes --] ---------------------------------------------------------------------------- BootRom Version 1.4 Memory Size: 128 MB ---------------------------------------------------------------------------- (c) Copyright 1990-1994, Hewlett-Packard Company. All rights reserved Press <ESCAPE> to stop boot sequence. ---------------------------------------------------------------------------- Command Description ------- ----------- Auto [boot|search] [on|off] Set/show auto mode Boot [pri|alt [isl]] Boot from primary or alternate path Boot [scsi|eisa.<slot>[.<addr>]] [isl] Boot from SCSI or EISA Boot lan[.<addr>] [install] [isl] Boot from LAN Chassis [on|off] Set/show chassis codes display mode DefaultSS Reboot and set EEPROM to default values Diagnostic [on|off] Set/show diagnostic boot mode Fastboot [on|off] Set/show fast boot mode Help Show this command menu Information Show system information LanAddress Show LAN station addresses Monitor [<DEV>[.<type>]] Set/show graphics monitor type (<DEV>=graphics|graphics_<1|2>) Path [pri|alt [<DEV>[.<addr>]]] Set/show boot source path (<DEV>=lan|scsi|eisa.<slot>) Path [console [<DEV>[.<parm>]]] Set/show boot console path (<DEV>=<RS232>|<GRAPH> <RS232>=rs232|rs232_2 <parm>=<baud>.<length>.<parity> <GRAPH>=graphics|graphics_<1|2> <parm>=<monitor>) Path [keyboard [hil|ps2]] Set/show boot keyboard path Pim [hpmc|toc|lpmc] Show PIM info Search [ipl] [scsi|eisa] Show potential boot devices Search [ipl] [lan [install]] Show potential boot LAN devices Secure [on|off] Set/show security mode ---------------------------------------------------------------------------- BOOT_ADMIN>bo pri ipl Attempting to boot. Loading Initial Program Loader IPL successfully loaded Booting palo ipl 0.93 root@gandalf Sun Jul 8 12:19:37 CEST 2001 0/vmlinux32 2918801 bytes @ 0x48000 Partition Start(MB) End(MB) Id Type 1 1 22 f0 Palo 2 23 64 83 ext2 3 65 194 82 swap 4 195 2046 83 ext2 Current command line: 2/vmlinux-test root=/dev/sda4 HOME=/ TERM=linux console=ttyS0 0: 2/vmlinux-test 1: root=/dev/sda4 2: HOME=/ 3: TERM=linux 4: console=ttyS0 Edit which field? (or 'b' to boot with this command line)? b Command line: 'root=/dev/sda4 HOME=/ TERM=linux console=ttyS0' Kernel: partition 2 file /vmlinux-test ext2 block size 1024 ext2_mount(partition 2) returns 0 ext2_open(/vmlinux-test) = 3 ELF32 executable Entry 001000b0 first 00100000 n 6 Segment 0 load 00100000 size 1689384 mediaptr 0x1000 Segment 1 load 0029e000 size 275544 mediaptr 0x19e000 Segment 2 load 002e4000 size 361024 mediaptr 0x1e2000 Segment 3 load 00340000 size 8192 mediaptr 0x23b000 Segment 4 load 00348000 size 32768 mediaptr 0x23d000 Segment 5 load 00384acc size 86704 mediaptr 0x245acc branching to kernel entry point 0x001000b0 Set default PSW W bit to 0 Linux version 2.4.9-pa25 (ruediger@gandalf) (gcc version 3.0.2 20010825 (Debian prerelease)) #1 Sam Sep 22 17:06:55 CEST 2001 FP[0] enabled: Rev 1 Model 13 The 32-bit Kernel has started... Determining PDC firmware type: Older Legacy Box model 000060b0 00000481 00000000 00000000 77b661a7 00000000 00000004 00000072 00000072 vers 0000000b CPUID vers 0 rev 0 model 9000/715 Total Memory: 128 Mb pagetable_init On node 0 totalpages: 32768 zone(0): 32768 pages. zone(1): 0 pages. zone(2): 0 pages. Kernel command line: root=/dev/sda4 HOME=/ TERM=linux console=ttyS0 Console: colour dummy device 160x64 Calibrating delay loop... 99.73 BogoMIPS Memory: 126136k available Dentry-cache hash table entries: 16384 (order: 5, 131072 bytes) Inode-cache hash table entries: 8192 (order: 4, 65536 bytes) Mount-cache hash table entries: 2048 (order: 2, 16384 bytes) Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes) Page-cache hash table entries: 32768 (order: 5, 131072 bytes) POSIX conformance testing by UNIFIX Searching for devices... Found devices: 1. Coral SGC Graphics (10) at 0xf4000000, versions 0x4, 0x0, 0x77 2. Mirage GSC Builtin Graphics (10) at 0xf8000000, versions 0x13, 0x0, 0x85 3. Mirage Core BA (11) at 0xf0100000, versions 0x29, 0x0, 0x81 4. Mirage Core SCSI (10) at 0xf0106000, versions 0x29, 0x0, 0x82 5. Mirage Core LAN (802.3) (10) at 0xf0107000, versions 0x29, 0x0, 0x8a 6. Mirage Core RS-232 (10) at 0xf0105000, versions 0x29, 0x0, 0x8c 7. Mirage Core Centronics (10) at 0xf0102000, versions 0x29, 0x0, 0x74 8. Mirage Audio (10) at 0xf0104000, versions 0x29, 0x0, 0x7b 9. Mirage Core PC Floppy (10) at 0xf010a000, versions 0x29, 0x0, 0x83 10. Mirage Core PS/2 Port (10) at 0xf0108000, versions 0x29, 0x0, 0x84 11. Mirage Core PS/2 Port (10) at 0xf0108100, versions 0x29, 0x0, 0x84 12. Mirage Wax BA (11) at 0xf0200000, versions 0x13, 0x0, 0x8e 13. Mirage 100 Wax HIL (10) at 0xf0201000, versions 0x13, 0x0, 0x73 14. Mirage Wax RS-232 (10) at 0xf0202000, versions 0x13, 0x0, 0x8c 15. Mirage 100 (0) at 0xfffbe000, versions 0x60b, 0x0, 0x4 16. Mirage 100 (1) at 0xfffbf000, versions 0x4b, 0x0, 0x9 That's a total of 16 devices. CPU(s): 1 x PA7100LC (PCX-L) at 100.000000 MHz iosapic_init() pdc_pci_irt_size: -1 Lasi version 0 at 0xf0100000 found. LED display at f00e0000 registered Wax at 0xf0200000 found. Wax: HIL Keyboard-NMI registered. Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Starting kswapd v1.8 VFS: Diskquotas version dquot_6.4.0 initialized parport_init_chip: initialize bidirectional-mode. parport0: PC-style at 0xf0102800, irq 88 [PCSPP,TRISTATE] pty: 256 Unix98 ptys configured Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled ttyS00 at iomem 0xf0105800 (irq = 90) is a 16550A ttyS01 at iomem 0xf0202800 (irq = 121) is a 16550A Lasi PS/2 receive buffer timeout PS/2 keyboard port at 0xf0108000 (irq 69) found, no device attached. Lasi PS/2 transmit buffer timeout PS/2 psaux port at 0xf0108100 (irq 69) found, no device attached. Found HIL at 0xf0201000, IRQ 126 HIL: keyboard found at id 0 HIL: keymap loaded. lp0: using parport0 (interrupt-driven). Generic RTC Driver v1.02 05/27/1999 Sam Creasey (sammy@oh.verio.com) block: 128 slots per queue, batch=16 RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize loop: loaded (max 8 devices) Found i82596 at 0xf0107000, IRQ 87 eth0: 82596 at 0xf0107000, 08 00 09 7A DC 08 IRQ 87. 82596.c $Revision: 1.22 $ SCSI subsystem driver Revision: 1.00 sim700: Configuring 53c710 (SCSI-ID 7) at f0106100, IRQ 86, options 0 scsi0: Revision 0x2 scsi0: test 1 completed ok. scsi0 : LASI/Simple 53c7xx Vendor: SEAGATE Model: ST32430N Rev: HP04 Type: Direct-Access ANSI SCSI revision: 02 Attached scsi disk sda at scsi0, channel 0, id 6, lun 0 SCSI device sda: 4194685 512-byte hdwr sectors (2148 MB) Partition check: sda: sda1 sda2 sda3 sda4 Lasi Harmony Audio rev. 18 at 0xf0104000, using IRQ 82 sticonsole_init: searching for STI ROMs Warning : device (10, 0x4, 0x0, 0x77) NOT claimed by sti (native) Warning : device (10, 0x13, 0x0, 0x85) NOT claimed by sti (native) md: linear personality registered md: raid0 personality registered md: raid1 personality registered md: raid5 personality registered raid5: measuring checksumming speed 8regs : 70.800 MB/sec 8regs_prefetch: 98.000 MB/sec 32regs : 118.400 MB/sec 32regs_prefetch: 164.400 MB/sec raid5: using function: 32regs_prefetch (164.400 MB/sec) md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27 md: Autodetecting RAID arrays. md: autorun ... md: ... autorun DONE. NET4: Linux TCP/IP 1.0 for NET4.0 IP Protocols: ICMP, UDP, TCP IP: routing cache hash table of 512 buckets, 4Kbytes TCP: Hash tables configured (established 8192 bind 16384) NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. VFS: Mounted root (ext2 filesystem) readonly. INIT: version 2.78 booting Activating swap... Adding Swap: 132920k swap-space (priority -1) Checking root file system... Parallelizing fsck version 1.22 (22-Jun-2001) /dev/sda4: clean, 41827/237120 files, 162129/474075 blocks Checking all file systems... Parallelizing fsck version 1.22 (22-Jun-2001) /dev/sda2: clean, 23/10944 files, 14621/43617 blocks Setting kernel variables. Loading the saved-state of the serial devices... Mounting local filesystems... mount: devpts already mounted on /dev/pts /dev/sda2 on /boot type ext2 (rw,errors=remount-ro) Cleaning: /etc/network/ifstate. Setting up IP spoofing protection: rp_filter. Configuring network interfaces: eth0: link ok. done. Starting portmap daemon: portmap. Starting portmapper... Mounting remote filesystems... mount: RPC: Unable to receive; errno = Connection refused Setting the System Clock using the Hardware Clock as reference... System Clock set. Local time: Mon Sep 24 11:52:03 CEST 2001 Cleaning: /tmp /var/lock /var/run. Initializing random number generator... done. Recovering nvi editor sessions... done. INIT: Entering runlevel: 2 Starting system log daemon: syslogd. Starting kernel log daemon: klogd. Starting NFS common utilities: statd lockd. Starting internet superserver: inetd. Not starting NFS kernel daemon: No exports. Starting OpenBSD Secure Shell server: sshd. Starting deferred execution scheduler: atd. Starting periodic command scheduler: cron. Starting web server: apache. /usr/sbin/apachectl start: httpd started Debian GNU/Linux testing/unstable gandalf ttyS0 gandalf login: ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [parisc-linux] [PATCH] Additional Address cleanup 2001-09-24 11:06 ` Rüdiger Scholz @ 2001-09-25 3:59 ` Ryan Bradetich 2001-09-25 17:33 ` Rüdiger Scholz 0 siblings, 1 reply; 9+ messages in thread From: Ryan Bradetich @ 2001-09-25 3:59 UTC (permalink / raw) To: R?diger Scholz; +Cc: parisc-linux On Mon, Sep 24, 2001 at 01:06:36PM +0200, R?diger Scholz wrote: > Hi there, > > I've tested the patch on my 715/100. I enabled STI-Console only and no > STI-fb, because of the second Coral Graphics Card in my box.Using the > kernel 2.4.9-pa25, the new patch kernel boots out of the box, but it > doesn't recognize my graphics cards. I also changed the > kmalloc-statement according to your second mail . > > I added the bootlog. > > Any hints? Ruediger First I am assuming this worked before you tested this patch.... Ok, here we found the two graphics cards in firmware.... > Found devices: > 1. Coral SGC Graphics (10) at 0xf4000000, versions 0x4, 0x0, 0x77 > 2. Mirage GSC Builtin Graphics (10) at 0xf8000000, versions 0x13, 0x0, 0x85 Here both the devices were not claimed by the STI driver. > sticonsole_init: searching for STI ROMs > Warning : device (10, 0x4, 0x0, 0x77) NOT claimed by sti (native) > Warning : device (10, 0x13, 0x0, 0x85) NOT claimed by sti (native) if you look in the register_parisc_driver() in arch/parisc/kernel/drivers.c you will see that this warning is printed with the driver->probe() function returns non-zero. if (driver->probe(device) == 0) { device->driver = driver; } else { printk(KERN_WARNING "Warning : device (%d, 0x%x, 0x%x, 0x%x) NOT claimed by %s\n", device->id.hw_type, device->id.hversion, device->id.hversion_rev, device->id.sversion, driver->name); } The probe function for the STI drive resolves to this function sticore_pa_init() in drivers/video/sticore.c I would look at the different inputs/outputs from this function with and without the patch applied. I have been trying to duplicate your problem on the 712/100 all day without success *sigh* I do have a 715 here I can try if you can not locate the problem, but nothing with dual graphics cards. Sorry, I do not have a better answer for you *sigh* Is anyone else having these problems? I'd like to commit this patch, but I'm hesitent if it is causing problems. Thanks, - Ryan ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [parisc-linux] [PATCH] Additional Address cleanup 2001-09-25 3:59 ` Ryan Bradetich @ 2001-09-25 17:33 ` Rüdiger Scholz 2001-09-25 19:00 ` Thomas Bogendoerfer 0 siblings, 1 reply; 9+ messages in thread From: Rüdiger Scholz @ 2001-09-25 17:33 UTC (permalink / raw) To: Ryan Bradetich; +Cc: parisc-linux [-- Attachment #1: Type: text/plain, Size: 1540 bytes --] Ryan Bradetich wrote: > >First I am assuming this worked before you tested this patch.... > No ;-) It crashes, when the kernel tries to initialize the first graphics card (Coral), during STICALL (...) in function sti_init_graph... > >Ok, here we found the two graphics cards in firmware.... > >>Found devices: >>1. Coral SGC Graphics (10) at 0xf4000000, versions 0x4, 0x0, 0x77 >>2. Mirage GSC Builtin Graphics (10) at 0xf8000000, versions 0x13, 0x0, 0x85 >> > >The probe function for the STI drive resolves to this function sticore_pa_init() >in drivers/video/sticore.c > >I would look at the different inputs/outputs from this function with and without >the patch applied. > In which inputs/outputs are you interested. > I have been trying to duplicate your problem on the 712/100 >all day without success *sigh* I do have a 715 here I can try if you can not >locate the problem, but nothing with dual graphics cards. > >Sorry, I do not have a better answer for you *sigh* > > >Is anyone else having these problems? I'd like to commit this patch, but I'm >hesitent if it is causing problems. > I hoped your patch would bring my two graphics card to work. But they didn't work before the patch either, so it doesn't matter that your patch is no solution for my problem. Is there a STI-Console guru on the list, who is interested in solving this little problem?! :-) I have adde a bootlog from my machine, booting a kernel without your patch (I enabled DPRINTK for the File sticore.h). Thanks for your help, Ruediger [-- Attachment #2: stilognew.txt --] [-- Type: text/plain, Size: 22937 bytes --] ---------------------------------------------------------------------------- BootRom Version 1.4 Memory Size: 128 MB ---------------------------------------------------------------------------- (c) Copyright 1990-1994, Hewlett-Packard Company. All rights reserved Press <ESCAPE> to stop boot sequence. Starting Auto boot ---------------------------------------------------------------------------- Command Description ------- ----------- Auto [boot|search] [on|off] Set/show auto mode Boot [pri|alt [isl]] Boot from primary or alternate path Boot [scsi|eisa.<slot>[.<addr>]] [isl] Boot from SCSI or EISA Boot lan[.<addr>] [install] [isl] Boot from LAN Chassis [on|off] Set/show chassis codes display mode DefaultSS Reboot and set EEPROM to default values Diagnostic [on|off] Set/show diagnostic boot mode Fastboot [on|off] Set/show fast boot mode Help Show this command menu Information Show system information LanAddress Show LAN station addresses Monitor [<DEV>[.<type>]] Set/show graphics monitor type (<DEV>=graphics|graphics_<1|2>) Path [pri|alt [<DEV>[.<addr>]]] Set/show boot source path (<DEV>=lan|scsi|eisa.<slot>) Path [console [<DEV>[.<parm>]]] Set/show boot console path (<DEV>=<RS232>|<GRAPH> <RS232>=rs232|rs232_2 <parm>=<baud>.<length>.<parity> <GRAPH>=graphics|graphics_<1|2> <parm>=<monitor>) Path [keyboard [hil|ps2]] Set/show boot keyboard path Pim [hpmc|toc|lpmc] Show PIM info Search [ipl] [scsi|eisa] Show potential boot devices Search [ipl] [lan [install]] Show potential boot LAN devices Secure [on|off] Set/show security mode ---------------------------------------------------------------------------- BOOT_ADMIN> bo pri ipl Attempting to boot. Loading Initial Program Loader IPL successfully loaded Booting palo ipl 0.93 root@gandalf Sun Jul 8 12:19:37 CEST 2001 0/vmlinux32 2918801 bytes @ 0x48000 Partition Start(MB) End(MB) Id Type 1 1 22 f0 Palo 2 23 64 83 ext2 3 65 194 82 swap 4 195 2046 83 ext2 Current command line: 2/vmlinux-test2 root=/dev/sda4 HOME=/ TERM=linux console=ttyS0 0: 2/vmlinux-test2 1: root=/dev/sda4 2: HOME=/ 3: TERM=linux 4: console=ttyS0 Edit which field? (or 'b' to boot with this command line)? b Command line: 'root=/dev/sda4 HOME=/ TERM=linux console=ttyS0' Kernel: partition 2 file /vmlinux-test2 ext2 block size 1024 ext2_mount(partition 2) returns 0 ext2_open(/vmlinux-test2) = 3 ELF32 executable Entry 001000b0 first 00100000 n 5 Segment 0 load 00100000 size 1694148 mediaptr 0x1000 Segment 1 load 0029e000 size 275544 mediaptr 0x19f000 Segment 2 load 002e4000 size 368640 mediaptr 0x1e3000 Segment 3 load 00340000 size 32768 mediaptr 0x23d000 Segment 4 load 0037dacc size 87008 mediaptr 0x245acc branching to kernel entry point 0x001000b0 Set default PSW W bit to 0 Linux version 2.4.9-pa25 (ruediger@gandalf) (gcc version 3.0.2 20010825 (Debian prerelease)) #4 Die Sep 25 17:23:52 CEST 2001 FP[0] enabled: Rev 1 Model 13 The 32-bit Kernel has started... Determining PDC firmware type: Older Legacy Box model 000060b0 00000481 00000000 00000000 77b661a7 00000000 00000004 00000072 00000072 vers 0000000b CPUID vers 0 rev 0 model 9000/715 Total Memory: 128 Mb pagetable_init On node 0 totalpages: 32768 zone(0): 32768 pages. zone(1): 0 pages. zone(2): 0 pages. Kernel command line: root=/dev/sda4 HOME=/ TERM=linux console=ttyS0 Console: colour dummy device 160x64 Calibrating delay loop... 99.73 BogoMIPS Memory: 126164k available Dentry-cache hash table entries: 16384 (order: 5, 131072 bytes) Inode-cache hash table entries: 8192 (order: 4, 65536 bytes) Mount-cache hash table entries: 2048 (order: 2, 16384 bytes) Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes) Page-cache hash table entries: 32768 (order: 5, 131072 bytes) POSIX conformance testing by UNIFIX Searching for devices... Found devices: 1. Coral SGC Graphics (10) at 0xf4000000, versions 0x4, 0x0, 0x77 2. Mirage GSC Builtin Graphics (10) at 0xf8000000, versions 0x13, 0x0, 0x85 3. Mirage Core BA (11) at 0xf0100000, versions 0x29, 0x0, 0x81 4. Mirage Core SCSI (10) at 0xf0106000, versions 0x29, 0x0, 0x82 5. Mirage Core LAN (802.3) (10) at 0xf0107000, versions 0x29, 0x0, 0x8a 6. Mirage Core RS-232 (10) at 0xf0105000, versions 0x29, 0x0, 0x8c 7. Mirage Core Centronics (10) at 0xf0102000, versions 0x29, 0x0, 0x74 8. Mirage Audio (10) at 0xf0104000, versions 0x29, 0x0, 0x7b 9. Mirage Core PC Floppy (10) at 0xf010a000, versions 0x29, 0x0, 0x83 10. Mirage Core PS/2 Port (10) at 0xf0108000, versions 0x29, 0x0, 0x84 11. Mirage Core PS/2 Port (10) at 0xf0108100, versions 0x29, 0x0, 0x84 12. Mirage Wax BA (11) at 0xf0200000, versions 0x13, 0x0, 0x8e 13. Mirage 100 Wax HIL (10) at 0xf0201000, versions 0x13, 0x0, 0x73 14. Mirage Wax RS-232 (10) at 0xf0202000, versions 0x13, 0x0, 0x8c 15. Mirage 100 (0) at 0xfffbe000, versions 0x60b, 0x0, 0x4 16. Mirage 100 (1) at 0xfffbf000, versions 0x4b, 0x0, 0x9 That's a total of 16 devices. CPU(s): 1 x PA7100LC (PCX-L) at 100.000000 MHz iosapic_init() pdc_pci_irt_size: -1 Lasi version 0 at 0xf0100000 found. LED display at f00e0000 registered Wax at 0xf0200000 found. Wax: HIL Keyboard-NMI registered. Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Starting kswapd v1.8 VFS: Diskquotas version dquot_6.4.0 initialized parport_init_chip: initialize bidirectional-mode. parport0: PC-style at 0xf0102800, irq 88 [PCSPP,TRISTATE] pty: 256 Unix98 ptys configured Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled ttyS00 at iomem 0xf0105800 (irq = 90) is a 16550A ttyS01 at iomem 0xf0202800 (irq = 121) is a 16550A Lasi PS/2 receive buffer timeout PS/2 keyboard port at 0xf0108000 (irq 69) found, no device attached. Lasi PS/2 transmit buffer timeout PS/2 psaux port at 0xf0108100 (irq 69) found, no device attached. Found HIL at 0xf0201000, IRQ 126 HIL: no keyboard present. Warning : device (10, 0x13, 0x0, 0x73) NOT claimed by HIL lp0: using parport0 (interrupt-driven). Generic RTC Driver v1.02 05/27/1999 Sam Creasey (sammy@oh.verio.com) block: 128 slots per queue, batch=16 RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize loop: loaded (max 8 devices) Found i82596 at 0xf0107000, IRQ 87 eth0: 82596 at 0xf0107000, 08 00 09 7A DC 08 IRQ 87. 82596.c $Revision: 1.22 $ SCSI subsystem driver Revision: 1.00 sim700: Configuring 53c710 (SCSI-ID 7) at f0106100, IRQ 86, options 0 scsi0: Revision 0x2 scsi0: test 1 completed ok. scsi0 : LASI/Simple 53c7xx Vendor: SEAGATE Model: ST32430N Rev: HP04 Type: Direct-Access ANSI SCSI revision: 02 Attached scsi disk sda at scsi0, channel 0, id 6, lun 0 SCSI device sda: 4194685 512-byte hdwr sectors (2148 MB) Partition check: sda: sda1 sda2 sda3 sda4 Lasi Harmony Audio rev. 18 at 0xf0104000, using IRQ 82 sticonsole_init: searching for STI ROMs Trying STI ROM at f0025000, hpa at f4000000 STI word mode ROM at f0025000, hpa=f4000000 <7>selected 8x16 fb-font VGA8x16 STI word mode ROM, id 2b4ded6d-40a00499, conforms to spec rev. 8.04 supports 13 monitors font start 000037d4 region list 000037c0 init_graph 00000808 alternate code type 0 region #0: phys f0025000, virt f0025000, len=24kB, btlb=1, sysonly=0, cache=0, last=0 region #1: phys f5000000, virt f5000000, len=16384kB, btlb=1, sysonly=0, cache=0, last=0 region #2: phys f4100000, virt f4100000, len=2560kB, btlb=1, sysonly=0, cache=0, last=0 region #3: phys f4380000, virt f4380000, len=4kB, btlb=0, sysonly=1, cache=0, last=1 GRs 0x00000000 0xF4300000 0xF4100000 0x00000001 0xF5000000 0x00000003 0x00000001 0xF0025328 0x0000000D 0xF034B958 0xF4300000 0x00000000 0x00080BEF 0x00010000 0x00000005 0x00000032 0x00000000 0x00283BAB 0x00000001 0x00000000 0x00000000 0xF0025000 0x00000500 0x0B00007D 0x00000001 0x00000000 0x00283BAB 0x1029E010 0x00000001 0xF034B958 0x0034BB98 0x000F93E8 CRs 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x000000C0 0x0000001F 0x00000000 0x00000000 0x00106800 0xFFFFFFFF 0x402169B7 0x00000000 0x000F8944 0xB3202000 0x00000000 0x000F8964 0x00007F00 0x80000000 0x002BB000 0x002BB000 0x00A2848F 0x0900DEEE 0xAAAAAAAA 0xF0002000 0x105EC000 0x10340000 SRs 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 OTHER 0x00000000 0x000F8948 0x20000000 0x9E000004 0x00000000 0x00000000 0x00000000 0x00310000 0x00000000 0x00000000 0x00000000 0xF034B9D0 0xFFFBE000 0x00000000 0x00000082 0x2C1048E6 0x3BB0B040 WARNING! Stack pointer and cr30 do not correspond! Dumping Stack from 0034a000 to 0034bb98: WARNING! Stack pointer and cr30 do not correspond! Dumping Stack from 102a0000 to 102a14c0: 0000 00000000 00000020 00000020 00020000 61402000 00000000 00000020 00001000 0020 00000001 00020000 61402000 00000000 00000020 00001000 00000001 00000078 0040 000d2000 00000000 00000000 00000001 00000000 00000000 00000001 00000001 0060 00000078 000c2000 00000000 00000000 00000001 00000000 00000000 00000001 0080 00000001 00000000 105ebf60 00000000 726f6f74 3d2f6465 762f7364 61342048 00a0 4f4d453d 2f205445 524d3d6c 696e7578 20636f6e 736f6c65 3d747479 53300000 00c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00e0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0100 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0120 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0140 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0160 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0180 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 01a0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 01c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 01e0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0200 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0220 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0240 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0260 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0280 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 02a0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 02c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 02e0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0300 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0320 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0340 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0360 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0380 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 03a0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 03c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 03e0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0400 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0420 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0440 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0460 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0480 00000000 00000000 00000000 00000000 726f6f74 3d2f6465 762f7364 61340048 04a0 4f4d453d 2f005445 524d3d6c 696e7578 00636f6e 736f6c65 3d747479 53300000 04c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 04e0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0500 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0520 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0540 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0560 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0580 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 05a0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 05c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 05e0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0600 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0620 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0640 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0660 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0680 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 06a0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 06c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 06e0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0700 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0720 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0740 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0760 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0780 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 07a0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 07c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 07e0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0800 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0820 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0840 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0860 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0880 00000000 00000000 00000000 00000000 10101efc 10102798 00000000 00000000 08a0 10275ba4 00000000 00000000 1021aa30 00000000 00000000 10295ec0 105961a0 08c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 08e0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0900 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0920 00000000 00000000 00000000 00000000 00000000 00000000 00000000 1021aa30 0940 00000000 00000000 10295f84 10596260 00000000 00000000 00000000 00000000 0960 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0980 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 09a0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 09c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 09e0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0a00 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0a20 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0a40 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0a60 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0a80 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0aa0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0ac0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0ae0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0b00 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0b20 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0b40 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0b60 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0b80 00000000 00000000 00000000 00000000 00000000 10103444 10102a34 10103460 0ba0 10103460 102ae0c0 10275bac 00000003 00000020 102a0894 00000000 102a0b94 0bc0 105961e0 105962a0 00000000 00000000 00000000 00000000 00000000 00000000 0be0 00000000 00000000 00000000 00000000 00000000 00000000 105e20a0 00000002 0c00 00000009 10103588 10103a80 10103c84 10103d08 10103d70 10103df8 10103e8c 0c20 10103f10 10103f64 10103588 10103fbc 10103fc4 10103d08 10103d70 10103df8 0c40 10103e8c 10103f10 10103f64 102a0c04 10276100 1027610c 10276114 1027611c 0c60 10276128 10276130 1027611c 1027613c 10276150 10276160 10276168 1027617c 0c80 10276188 10276194 102761b0 00000000 00000000 00000000 00000000 00000000 0ca0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0cc0 00000000 00000000 00000000 102761d0 102761e0 102761f0 102761f4 10276204 0ce0 1027620c 1027621c 10276224 10276234 1027623c 10276250 10276258 1027626c 0d00 10276274 10276284 10276288 10276284 10276298 10276284 102762a8 10276284 0d20 00000002 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0d40 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0d60 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0d80 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0da0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0dc0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0de0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0e00 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0e20 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0e40 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0e60 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0e80 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0ea0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0ec0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0ee0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0f00 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0f20 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0f40 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0f60 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0f80 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0fa0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0fc0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0fe0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 1000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 1020 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 1040 00000000 00000000 00000000 002ad000 00000000 00000000 00000000 00000000 1060 00000000 00000000 00000000 0010c580 00000000 00000000 00000000 00000000 1080 00007f00 f4300000 f4100000 00000001 f5000000 00000003 00000001 f0025328 10a0 0000000d f034b958 f4300000 00000000 00080bef 00010000 00000005 00000032 10c0 00000000 00283bab 00000001 00000000 00000000 f0025000 00000500 0b00007d 10e0 00000001 00000000 00283bab 1029e010 00000001 f034b958 0034bb98 000f93e8 1100 00000082 2c1048e6 3bb0b040 00000000 00000000 00000000 00000000 00000000 1120 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 1140 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 1160 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 1180 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 11a0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 11c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 11e0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 1200 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 1220 00000000 00000000 000f8944 000f8948 00000000 00000000 00000000 00000000 1240 00000000 0000001f b3202000 00000000 000f8964 00000000 00000000 00000000 1260 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 1280 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 12a0 00000000 00000000 00000000 10107750 00000000 00000000 00000000 00000000 12c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 12e0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 1300 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 1320 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 1340 00000000 00000000 0000001f 002a5000 002bb000 f0012870 00000000 00000000 1360 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 1380 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 13a0 00000000 00000000 00000000 1010206c 00000000 00000000 00000000 00000000 13c0 00000000 00000001 00000000 102a1080 00000000 00000000 00000000 f0002840 13e0 00310000 00000030 f034b958 0000000d f0002848 00000000 00000001 00000000 1400 102a1080 00000000 00000000 00000000 00000000 00000000 00000000 00000000 1420 00000000 00000000 00000000 101025c8 00000000 00000000 00000000 00000000 1440 102758e8 00000001 102a1080 102a1080 00000008 0000001f 102a1080 10275af0 1460 00000000 00000000 00000000 101024e4 00000000 00000000 00000000 00000000 1480 102a1080 f034b9d0 00000000 00000000 00000060 0034bb98 0034a000 10275ad0 14a0 0000000d f0002848 10340000 101023f0 0034bb98 0034a000 00000000 00000000 Kernel Fault: Code=15 regs=102a14c0 (Addr=0034a004) YZrvWESTHLNXBCVMcbcbcbcbOGFRQPDI PSW: 00000000000001000000000000001110 r0-3 00000000 1034d9e1 101025c8 0034a000 r4-7 0034bb98 10275800 00000000 f0002848 r8-11 0000000d f034b958 00000030 00310000 r12-15 f0002840 00000000 00000000 f034b9d0 r16-19 102a1080 00283bab 00000082 000000ff r20-23 0001aa11 f0105800 01c9c380 00000060 r24-27 00000001 00000001 102b10c8 1029e010 r28-31 0000002a 00000000 102a14c0 00000000 sr0-3 00000000 00000000 00000000 00000000 sr4-7 00000000 00000000 00000000 00000000 IASQ: 00000000 00000000 IAOQ: 101023fc 10102400 IIR: 0c681097 ISR: 00000000 IOR: 0034a004 CPU: 0 CR30: 105ec000 CR31: 10340000 ORIG_R28: 102a1080 ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [parisc-linux] [PATCH] Additional Address cleanup 2001-09-25 17:33 ` Rüdiger Scholz @ 2001-09-25 19:00 ` Thomas Bogendoerfer 2001-10-01 17:12 ` Rüdiger Scholz 0 siblings, 1 reply; 9+ messages in thread From: Thomas Bogendoerfer @ 2001-09-25 19:00 UTC (permalink / raw) To: Rüdiger Scholz; +Cc: Ryan Bradetich, parisc-linux On Tue, Sep 25, 2001 at 07:33:45PM +0200, Rüdiger Scholz wrote: > Ryan Bradetich wrote: > > > > >First I am assuming this worked before you tested this patch.... > > > No ;-) It crashes, when the kernel tries to initialize the first > graphics card (Coral), during STICALL (...) in function sti_init_graph... bug in the sti code. It doesn't use the sti rom from the card, but from the onboard sti rom. I've played with my 715/100 with an extra HCRX and had the same problem. I've disabled the HCRX by removing the connection between mainboard and HCRX, then the kernel from the 0.9.2 crashed after starting the init from the install ramdisk (Kernel Fault: Code=15) :-( Hopefully I'll get some sti hacking done during the upcoming Linux Hackermeeting in Oldenburg coming weekend. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessary a good idea. [ Alexander Viro on linux-kernel ] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [parisc-linux] [PATCH] Additional Address cleanup 2001-09-25 19:00 ` Thomas Bogendoerfer @ 2001-10-01 17:12 ` Rüdiger Scholz 2001-10-02 12:57 ` Thomas Bogendoerfer 0 siblings, 1 reply; 9+ messages in thread From: Rüdiger Scholz @ 2001-10-01 17:12 UTC (permalink / raw) To: Thomas Bogendoerfer; +Cc: parisc-linux Thomas Bogendoerfer wrote: > >bug in the sti code. It doesn't use the sti rom from the card, but from >the onboard sti rom. I've played with my 715/100 with an extra HCRX and >had the same problem. I've disabled the HCRX by removing the connection >between mainboard and HCRX, then the kernel from the 0.9.2 crashed after >starting the init from the install ramdisk (Kernel Fault: Code=15) :-( > >Hopefully I'll get some sti hacking done during the upcoming Linux >Hackermeeting in Oldenburg coming weekend. > >Thomas. > Hi, I'm glad i'm not the only one with this problem. And even someone knows the solution for the problem. ;-). I also disabled my add-on card the same way, and then the sti-stuff worked quite fine. But it would be cooler to use the second card, too. But you already have a patch? I can only help with testing and a little bit of debugging as all of my fingers are thumbs ;-) So long, Ruediger ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [parisc-linux] [PATCH] Additional Address cleanup 2001-10-01 17:12 ` Rüdiger Scholz @ 2001-10-02 12:57 ` Thomas Bogendoerfer 0 siblings, 0 replies; 9+ messages in thread From: Thomas Bogendoerfer @ 2001-10-02 12:57 UTC (permalink / raw) To: Rüdiger Scholz; +Cc: parisc-linux On Mon, Oct 01, 2001 at 07:12:28PM +0200, Rüdiger Scholz wrote: > I'm glad i'm not the only one with this problem. And even someone knows > the solution for the problem. ;-). I also disabled my add-on card the > same way, and then the sti-stuff worked quite fine. But it would be > cooler to use the second card, too. sure, after having fixed the X problem I had with artist/viz-eg cards I've spend some time looking at HCRX. I've found one problem, when we load the color for the HCRX, the card locks up, probably because we do a whole color map load per setcolreg() call. I've changed that and the card doesn't lock up anymore. But either I get wrong colors without colormap loading or I have some strange looking stuff "behind" the normal screen content. It looks like either we need to initialize the Z-Buffer (I'll try without, when I get home) or some overlay/attribute planes need a better treatment. > But you already have a patch? I can only help with testing and a little > bit of debugging as all of my fingers are thumbs ;-) right now I'm not at home (and behind a 28.8k modem connection) and I only have a C200 with me, which has other STI problems. So it will take a little bit more time, to get the HCRX going. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessary a good idea. [ Alexander Viro on linux-kernel ] ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2001-10-02 12:58 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2001-09-21 16:48 [parisc-linux] [PATCH] Additional Address cleanup Ryan Bradetich 2001-09-21 18:21 ` Ryan Bradetich 2001-09-21 18:35 ` Matthew Wilcox 2001-09-24 11:06 ` Rüdiger Scholz 2001-09-25 3:59 ` Ryan Bradetich 2001-09-25 17:33 ` Rüdiger Scholz 2001-09-25 19:00 ` Thomas Bogendoerfer 2001-10-01 17:12 ` Rüdiger Scholz 2001-10-02 12:57 ` Thomas Bogendoerfer
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox