Michael.de
Neuer User
- Mitglied seit
- 18 Jul 2009
- Beiträge
- 30
- Punkte für Reaktionen
- 0
- Punkte
- 0
@horatio42:
wo der segfault herkommt kann ich Dir sagen,
Gruß Michael
wo der segfault herkommt kann ich Dir sagen,
die Funktion __devinit hss_init_one im TDM-Modul fordert Speicher an initialisiert den aber nicht korrekt. Abhilfe:
Code:static int __devinit hss_init_one(struct platform_device *pdev) { int err; printk(DRV_NAME ": __devinit hss_init_one\n"); if ((port = kmalloc(sizeof(hss_port), GFP_KERNEL)) == NULL) return -ENOMEM; memset(&port->port_status, 0, sizeof(hss_port_status)); platform_set_drvdata(pdev, port); port->id = pdev->id; port->dev = &pdev->dev; port->plat = pdev->dev.platform_data; port->port_config = &port_config; if((err = hss_npeInit()) != 0) goto err_free; hss_create_channels(); if((err = hss_qmgrInit()) != 0) goto err_free; if((err = hss_config_buffer(port)) != 0) goto err_free; qmgr_set_irq(queue_ids[port->id].chan, QUEUE_IRQ_SRC_NOT_EMPTY, hss_chan_irq, port); qmgr_enable_irq(queue_ids[port->id].chan); hss_config_set_lut(port); hss_config_load(port); printk(KERN_INFO "%s: HSS-%i configured\n", DRV_NAME, port->id); return 0; err_free: kfree(port); return err; }
die Kommunikation zwischen TDM und NPE ist fehlerhaft:
Code:Jan 1 01:01:27 (none) user.warn kernel: PCI: enabling device 0000:00:0c.0 (0140 -> 0143) Jan 1 01:01:27 (none) user.warn kernel: IRQ 24/zaphfc: IRQF_DISABLED is not guaranteed on shared IRQs Jan 1 01:01:27 (none) user.warn kernel: Registered 0000:00:0c.0 as Master NT Jan 1 01:01:27 (none) user.warn kernel: PCI: enabling device 0000:00:0d.0 (0140 -> 0143) Jan 1 01:01:27 (none) user.warn kernel: IRQ 24/zaphfc: IRQF_DISABLED is not guaranteed on shared IRQs Jan 1 01:01:28 (none) user.warn kernel: Registered 0000:00:0d.0 as Slave TE Jan 1 01:02:08 (none) user.info kernel: dahdi: Registered tone zone 29 (Germany) Jan 1 01:02:08 (none) user.warn kernel: ixp4xx_tdm: ixp4xx_hss_register Jan 1 01:02:08 (none) user.warn kernel: ixp4xx_tdm: scan for free channel succesful (0) Jan 1 01:02:08 (none) user.warn kernel: ixp4xx_tdm: hss_config_start_chan Jan 1 01:02:08 (none) user.debug kernel: NPE-A: Trying to send message CHAN_RX_BUF_ADDR_WRITE [47000000:03F81200] Jan 1 01:02:08 (none) user.debug kernel: NPE-A: Timeout sending message Jan 1 01:02:08 (none) user.warn kernel: ixp4xx_tdm: chan_rx_buf_addr_write error
Gruß Michael
Zuletzt bearbeitet: