| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
| |
When either bit 3 or 4 is set, we need to *SET* bit 5, not clear it in
the card control register. This makes TI PCI-1030, 1130 and 1131 not
work anymore without this fix.
MFC: soon
Notes:
svn path=/head/; revision=83118
|
|
|
|
| |
Notes:
svn path=/head/; revision=83010
|
|
|
|
| |
Notes:
svn path=/head/; revision=83009
|
|
|
|
|
|
|
|
|
|
| |
help with the hanging problem on reboot. Note: we need to do the
other things as well. Also, turn off the bits in the stat change
interrupt mask and the cardbus interrupt mask as well in an attempt to
shut off all interrupt sources.
Notes:
svn path=/head/; revision=82997
|
|
|
|
|
|
|
| |
version
Notes:
svn path=/head/; revision=82932
|
|
|
|
|
|
|
|
|
|
|
|
| |
# Note: The ToPIC 100 and the ToPIC 97 datasheets are in disagreement
# as to if this bit is supposed to be set or cleared to enable INTA routing
# so I made my best guess.
Also, comments about the various chipsets, including some grumpy ones
about how vague the O2micro datasheets are.
Notes:
svn path=/head/; revision=82931
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
function and csc interrupt routing path (eg, ISA or PCI) so that we
can more easily switch between the two.
When we don't have a card ISR, put the function interrupt into ISA
mode. This effectively masks the interrupt since it happens once, and
not again until we have an ISR. This should help hangs, and might
help people that unwisely update the kernel w/o updating pccardd.
This is done at mapirq time.
Force CL-PD6729/30 to use ISA interrupt routing and maybe even detect
the number of pccard slots properly (this is still WIP). We aren't
going to support PCI interrupts for this release. A future release
should support them, however. Shibata-san's 3.3V fixes are not
included.
Add a hack which should, in i386, rewrite IRQ 0 cardbus bridges to be
IRQ 255, which should cause interrupts to be routed. This is mostly
untested since my one tester disappeared after reporting nothing
changed.
Implement, but do not use, a power method called cardbus. It looked
like a great way to get around the 3.3V problem, but it seems that you
can only use it to power cardbus cards (I get no CIS when I enable it,
so maybe we're programming things bogusly).
GC the intr and argp stuff from the slot database.
Improve the ToPIC support with the power hacks that Nakagawa-san
published in FreeBSD Press and that Hiroyuki Aizu-san ported to
-stable. The ToPIC hacks were for 3.3V support in ToPIC 100, but it
looks like the '97 also has identical registers, so use them too.
Add some #defines for the cardbus power stuff.
Finally implement making CSC on the Ricoh chips ISA or PCI. This will
allow polling mode to work on vaios, I think.
Add some minor debugging. This should likely be cleaned up or put
behing a bootverbose.
Some of this work, and earlier work, was influanced by Chiharu
Shibata-san's power handing patches posted to bsd-nomads:15866.
MFC: Soon, if possible.
Notes:
svn path=/head/; revision=82928
|
|
|
|
|
|
|
|
| |
These were lifted from Nakagawa-san's article in FreeBSD Press, as
well as posts from hiroyuki Aizo-san and Chiharu Shibata-san.
Notes:
svn path=/head/; revision=82921
|
|
|
|
| |
Notes:
svn path=/head/; revision=82858
|
|
|
|
|
|
|
| |
this for a while, and don't know how it didn't make it into the tree.
Notes:
svn path=/head/; revision=82605
|
|
|
|
|
|
|
| |
boot.
Notes:
svn path=/head/; revision=82507
|
|
|
|
| |
Notes:
svn path=/head/; revision=82423
|
|
|
|
|
|
|
|
|
|
|
| |
config space that I'm aware of) work. I'm committing this from such
a machine.
Remove warning about I/O based bridges. Warn users that the PCI routing
of interrupts still doesn't work for these cards.
Notes:
svn path=/head/; revision=82386
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
o For TI PCI-1130, you need to set bit 5 of register 91 if you want
ANY pci interrupts. Then set bits 3 and/or 4 as appropriate. This
will fix those people with 1030, 1130 and 1131 in their machines
trying to do PCI interrupts.
o Fix case where we were trying to automatically fail back to ISA
interrupt routing. We were dereferencing a NULL pointer. This
was true of ANY chipset.
o The bus_setup_intr method needs to be pcic_setup_intr so that "FAST"
interrupts fail on PCI case (modems act flakey if we don't force
them to fall back to normal interrupts). Also needed so that the
proper ISA IRQ can be set in the ExCA register. This fixes the
people whose ISA routing was failing[*].
o When we find a generic yenta/pccard bridge, go ahead and print its
vendor ID in boot verbose.
Machine with theses symptoms and a serial console by: jedgar
[*] Looks like my pc98 machine has some interrupt source on IRQ 15
that gave about 30 interrupts per second, which masked this problem on
my PC-9821Nr15.
Notes:
svn path=/head/; revision=82380
|
|
|
|
|
|
|
| |
mode and using polling mode.
Notes:
svn path=/head/; revision=82337
|
|
|
|
| |
Notes:
svn path=/head/; revision=82332
|
|
|
|
| |
Notes:
svn path=/head/; revision=82331
|
|
|
|
|
|
|
| |
reported in sysctl.
Notes:
svn path=/head/; revision=82330
|
|
|
|
|
|
|
|
| |
rather than setting it once and setting func_route when we can't route
PCI interrupts.
Notes:
svn path=/head/; revision=82329
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
interrupt for the CSC interrupt, then we revert to ISA. If we didn't
have an interrupt set up with hw.pcic.irq, then do polling.
Also, don't complain about ignoring function 1 for any devices except
pcic devices. This would normally only show up if someone set
hw.pcic.ignore_function_1=1.
MFC: as soon as I can test it on some troublesome laptops.
Notes:
svn path=/head/; revision=82316
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
explain the subtle side effects that are going to happen and why we go
ahead and ack the interrupt source. This stuff is tricky to get
right.
Also, emperical tests have shown that doing a shutdown in attach to be
ineffectual, so remove it from there. Analysis of the code paths
shows that nearly identical writes to these registers happen in later
parts of the code. The hanging problem on thinkpads when we change
the interrupt routing type is something else.
Notes:
svn path=/head/; revision=82282
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
shutdown and also before we get going with the device initialization.
This may fix the hangs some people are seeing on warmboot. It appears
that some machines will reset the cardbus bridge on boot, while others
don't. So we turn off the card, and ack the interrupts (which likely
is a nop in the shutdown case since we're still fielding interrupts).
This should turn off the interrupts.
Since I don't have hardware that hangs on reboot, I'm committing this
without testing that aspect of the patch (it causes no harm on my
Dell).
Notes:
svn path=/head/; revision=82260
|
|
|
|
|
|
|
|
|
|
|
| |
initialization structure. Warn the user for those chipsets that
aren't yet customized that they might not work. Second, try to power
off the slot on attach and ack the interrupts. I don't know, but this
might solve the hangs that people will see on Thinkpads if they set
hw.pcic.init_routing=1.
Notes:
svn path=/head/; revision=82259
|
|
|
|
|
|
|
| |
Submitted by: green
Notes:
svn path=/head/; revision=82099
|
|
|
|
|
|
|
|
| |
hw.pcic.intr_path {1,2} 1 == ISA, 2 == PCI
hw.pcic.init_route Force TI chipset initializations in edge case.
Notes:
svn path=/head/; revision=82093
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
request and just calling it when we get a bridge interrupt. The
problem is that if other code wants to block hardware interrupts for a
little bit with splXXX, those masks aren't updated the way we're doing
it. This doesn't matter for -current, but does for -stable.
The whole reason that we were catching interrupts was to detect that
the card was still there. Ian's fixes however ensure that the card
will be there with an interrupt handler, or not there at all. Since
the pcic interrupt is at a high priority, this should be OK.
This should fix the network related crashes people started seeing in
stable after I merged the pcic as a pci device code.
Submitted indirectly by: Ian Dowse
MFC when: Ian has had a chance to do his torture hang testing.
Notes:
svn path=/head/; revision=82083
|
|
|
|
|
|
|
|
|
|
|
| |
Ifdef them out until I figure out the right way to configure this.
This solves Nate's hangs as well as Anders Andersson's.
MCF: Soon.
Notes:
svn path=/head/; revision=82032
|
|
|
|
|
|
|
|
|
|
|
|
| |
the ISR. We keep track of the card state and don't call the IRS when
the card isn't inserted. This helps quite a bit with card ejection
problems that Ian was seeing.
Submitted by: Ian Dowse
MFC upon: re approvel.
Notes:
svn path=/head/; revision=81909
|
|
|
|
| |
Notes:
svn path=/head/; revision=81680
|
|
|
|
|
|
|
|
| |
#ifdef the deltap pcic_set_memory_offset argument so that raylink
driver works.
Notes:
svn path=/head/; revision=81653
|
|
|
|
| |
Notes:
svn path=/head/; revision=81652
|
|
|
|
| |
Notes:
svn path=/head/; revision=81650
|
|
|
|
|
|
|
|
|
|
|
| |
assing an IRQ. Add better comments while I'm here.
MFC after: 1 day
# Note: That's merging all the -current pci pcic code, not just this one
# change for the Aug 15th code freeze.
Notes:
svn path=/head/; revision=81641
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
register. It enables Zoom Video. It appears that on at least one
card that Monzoon is using sets these bits by default. Nothing works
when these bits are set, everything works when they are clear.
Add commentary on some of the ti bits. Make code a little clearer.
Also remove a call to pcic_pci_pd6729 which was prematurely added in
the last commit.
Notes:
svn path=/head/; revision=81621
|
|
|
|
|
|
|
|
|
|
| |
done from the datasheets since I'm ahving problems with my laptop that
has the 6833 in it...
Minor rework of TI code. Should be the same as before.
Notes:
svn path=/head/; revision=81617
|
|
|
|
|
|
|
|
| |
that we can use them in the pci code when we have to fall back to ISA
interrupt routing.
Notes:
svn path=/head/; revision=81396
|
|
|
|
| |
Notes:
svn path=/head/; revision=81395
|
|
|
|
|
|
|
| |
as being 1) in anticipation of documentation.
Notes:
svn path=/head/; revision=81394
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
can't blindly write zero into it to disable the card. We must
preserve this bit. This changes pcic_disable to only clear the bits
we know we need to clear on card disable, thus preserving the magic
bit for many TI bridges.
This appears to have fixed the problems that people are reporting
about the system failing to recognize cards being inserted or removed
(or both). Greg: This may fix your problem too :-).
Notes:
svn path=/head/; revision=81153
|
|
|
|
| |
Notes:
svn path=/head/; revision=81152
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
is the diagnostics register at offset 0x93. When bit 5 is set in this
register, bits 4-7 in ExCA register 0x5 being 0000 are required for
pci interrupt routing. When it is clear, then bit 4 of ExCA register
0x3 is used to enable it.
The only other issue is that when you route interrupts this way, you
must read ExCA register 0x4 in order to clear the interrupt, else you
get an interrupt storm.
Deal with this requirement by setting things up. It is believed that
this won't hurt other chipsets, but other chipsets may require their
own work arounds.
Notes:
svn path=/head/; revision=80941
|
|
|
|
|
|
|
| |
bsh and bst in the pcic_slot structures.
Notes:
svn path=/head/; revision=80738
|
|
|
|
|
|
|
|
|
| |
appears that this may be unused, but I'll keep it for the moment.
Noticed by: Shizuka Kudo <shizukakudo_99@yahoo.com>
Notes:
svn path=/head/; revision=80734
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
o Move PIOCSRESOURCE from pccard to pcic so the kernel can give pccardd
better hints as to what resources to use.
o Implement an undocumented hw.pcic.interrupt_route to allow people that
need to do so to route their interrupts in a non-standard way.
o Only preallocate a resource in probe if we're routing via pci.
o If we aren't routing via pci, then set the irq to use explicitly
to defeat the automatic IRQ routing of the pci layer.
This, with the pccardd code should be close to what can be committed
to -stable.
Notes:
svn path=/head/; revision=80713
|
|
|
|
| |
Notes:
svn path=/head/; revision=80712
|
|
|
|
|
|
|
| |
Minor commentary tweaking.
Notes:
svn path=/head/; revision=80711
|
|
|
|
|
|
|
|
| |
it directly. Also, minor style(9) nits near one or two of these
sites.
Notes:
svn path=/head/; revision=80599
|
|
|
|
|
|
|
|
|
|
|
|
| |
resources it is attempting to assign to a child object. This should
help people track down mysterious resource allocation problems more
easily.
# Unfortunately, it is harder to do the conflict check and report which
# resource failed if the driver itself doesn't.
Notes:
svn path=/head/; revision=80570
|
|
|
|
| |
Notes:
svn path=/head/; revision=80471
|
|
|
|
|
|
|
| |
make allowances.
Notes:
svn path=/head/; revision=80470
|