netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael Buesch <mb@bu3sch.de>
To: Maximilian Engelhardt <maxi@daemonizer.de>
Cc: netdev <netdev@vger.kernel.org>,
	"linux-kernel" <linux-kernel@vger.kernel.org>,
	"linux-wireless" <linux-wireless@vger.kernel.org>,
	Gary Zambrano <zambrano@broadcom.com>,
	Stephen Hemminger <shemminger@linux-foundation.org>,
	"Jeff Garzik" <jgarzik@pobox.com>,
	"Arnaldo Carvalho de Melo" <acme@ghostprotocols.net>
Subject: Re: b44: high ping times with wireless-dev
Date: Sun, 17 Jun 2007 12:55:39 +0200	[thread overview]
Message-ID: <200706171255.40155.mb@bu3sch.de> (raw)
In-Reply-To: <200706162327.47413.maxi@daemonizer.de>

[-- Attachment #1: Type: text/plain, Size: 978 bytes --]

On Saturday 16 June 2007 23:27:43 Maximilian Engelhardt wrote:
> [...]
> ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
> ACPI: PCI Interrupt 0000:02:02.0[A] -> Link [LNKD] -> GSI 10 (level, low) -> 
> IRQ 10
> ssb: Sonics Silicon Backplane found on PCI device 0000:02:02.0
> b44.c:v2.0
> eth0: Broadcom 44xx/47xx 10/100BaseT Ethernet 00:c0:9f:29:99:a7
> [...]

Ok, I prepared two debugging patches.

Please enable SonicsSiliconBackplane Debugging in the kernel kconfig,
so I can get more detail information about your card.
Device Drivers/Sonics Silicon Backplane/SSB debugging
(Must disable "No SSB kernel messages")

Please apply and test the attached debugging patches in a row.
So apply patch 1 and test if it works again. If not, apply
patch 2 and test if it works.
Always save complete dmesg log on each test run and send it to me.

Thanks for testing.
(This time it seems we are actually getting somewhere, when
dealing with sane people. :D )

-- 
Greetings Michael.

[-- Attachment #2: b44-irqs-test1.patch --]
[-- Type: text/x-diff, Size: 913 bytes --]

Index: bu3sch-wireless-dev/drivers/ssb/driver_pcicore.c
===================================================================
--- bu3sch-wireless-dev.orig/drivers/ssb/driver_pcicore.c	2007-04-07 17:19:03.000000000 +0200
+++ bu3sch-wireless-dev/drivers/ssb/driver_pcicore.c	2007-06-17 12:51:37.000000000 +0200
@@ -477,6 +477,7 @@ int ssb_pcicore_dev_irqvecs_enable(struc
 		goto out;
 	bus = pdev->bus;
 
+printk("Enabling IRQ vectors\n");
 	/* Enable interrupts for this device. */
 	if (bus->host_pci &&
 	    ((pdev->id.revision >= 6) || (pdev->id.coreid == SSB_DEV_PCIE))) {
@@ -497,8 +498,10 @@ int ssb_pcicore_dev_irqvecs_enable(struc
 
 		intvec = ssb_read32(pdev, SSB_INTVEC);
 		tmp = ssb_read32(dev, SSB_TPSFLAG);
+printk("Writing INTVEC. TPSFLAG is 0x%08X\n", tmp);
 		tmp &= SSB_TPSFLAG_BPFLAG;
-		intvec |= tmp;
+//		intvec |= tmp;
+intvec |= 0x00000002;
 		ssb_write32(pdev, SSB_INTVEC, intvec);
 	}
 

[-- Attachment #3: b44-irqs-test2.patch --]
[-- Type: text/x-diff, Size: 844 bytes --]

Index: bu3sch-wireless-dev/drivers/ssb/driver_pcicore.c
===================================================================
--- bu3sch-wireless-dev.orig/drivers/ssb/driver_pcicore.c	2007-06-17 12:50:32.000000000 +0200
+++ bu3sch-wireless-dev/drivers/ssb/driver_pcicore.c	2007-06-17 12:51:32.000000000 +0200
@@ -514,6 +514,8 @@ intvec |= 0x00000002;
 		tmp |= SSB_PCICORE_SBTOPCI_BURST;
 		pcicore_write32(pc, SSB_PCICORE_SBTOPCI2, tmp);
 
+printk("Wrote translation\n");
+#if 0
 		if (pdev->id.revision < 5) {
 			tmp = ssb_read32(pdev, SSB_IMCFGLO);
 			tmp &= ~SSB_IMCFGLO_SERTO;
@@ -527,6 +529,7 @@ intvec |= 0x00000002;
 			tmp |= SSB_PCICORE_SBTOPCI_MRM;
 			pcicore_write32(pc, SSB_PCICORE_SBTOPCI2, tmp);
 		}
+#endif
 	} else {
 		assert(pdev->id.coreid == SSB_DEV_PCIE);
 		//TODO: Better make defines for all these magic PCIE values.

  parent reply	other threads:[~2007-06-17 10:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-16 21:27 b44: high ping times with wireless-dev Maximilian Engelhardt
     [not found] ` <200706162327.47413.maxi-OwNUvPV92VfddJNmlsFzeA@public.gmane.org>
2007-06-16 22:49   ` Stephen Hemminger
2007-06-17  0:42     ` Maximilian Engelhardt
     [not found]       ` <200706170242.24214.maxi-OwNUvPV92VfddJNmlsFzeA@public.gmane.org>
2007-06-17  2:32         ` Michael Buesch
2007-06-17 10:55 ` Michael Buesch [this message]
     [not found]   ` <200706171255.40155.mb-fseUSCV1ubazQB+pC5nmwQ@public.gmane.org>
2007-06-17 11:08     ` Michael Buesch
2007-06-17 12:03     ` Maximilian Engelhardt
     [not found]       ` <200706171403.34299.maxi-OwNUvPV92VfddJNmlsFzeA@public.gmane.org>
2007-06-17 12:12         ` Michael Buesch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200706171255.40155.mb@bu3sch.de \
    --to=mb@bu3sch.de \
    --cc=acme@ghostprotocols.net \
    --cc=jgarzik@pobox.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=maxi@daemonizer.de \
    --cc=netdev@vger.kernel.org \
    --cc=shemminger@linux-foundation.org \
    --cc=zambrano@broadcom.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).