FreeBSD Bugzilla – Attachment 45361 Details for
Bug 69953
[agp] VIA agp: System reboots on startx with DRI enabled (xorg, radeon)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
via-8377-fromlinux.diff
via-8377-fromlinux.diff (text/x-patch), 1.69 KB, created by
Eric Anholt
on 2004-08-09 22:05:23 UTC
(
hide
)
Description:
via-8377-fromlinux.diff
Filename:
MIME Type:
Creator:
Eric Anholt
Created:
2004-08-09 22:05:23 UTC
Size:
1.69 KB
patch
obsolete
>Index: agp_via.c >=================================================================== >RCS file: /home/ncvs/src/sys/pci/agp_via.c,v >retrieving revision 1.17 >diff -u -r1.17 agp_via.c >--- agp_via.c 9 Aug 2004 21:01:49 -0000 1.17 >+++ agp_via.c 9 Aug 2004 21:02:43 -0000 >@@ -165,11 +165,22 @@ > } > sc->gatt = gatt; > >- /* Install the gatt. */ >- pci_write_config(dev, sc->regs[REG_ATTBASE], gatt->ag_physical | 3, 4); >- >- /* Enable the aperture. */ >- pci_write_config(dev, sc->regs[REG_GARTCTRL], 0x0f, 4); >+ if (sc->regs == via_v2_regs) { >+ /* Install the gatt. */ >+ pci_write_config(dev, sc->regs[REG_ATTBASE], gatt->ag_physical | 3, 4); >+ >+ /* Enable the aperture. */ >+ pci_write_config(dev, sc->regs[REG_GARTCTRL], 0x0f, 4); >+ } else { >+ u_int32_t gartctrl; >+ >+ /* Install the gatt. */ >+ pci_write_config(dev, sc->regs[REG_ATTBASE], gatt->ag_physical, 4); >+ >+ /* Enable the aperture. */ >+ gartctrl = pci_read_config(dev, sc->regs[REG_ATTBASE], 4); >+ pci_write_config(dev, sc->regs[REG_GARTCTRL], gartctrl | (3 << 7), 4); >+ } > > return 0; > } >@@ -260,9 +271,18 @@ > agp_via_flush_tlb(device_t dev) > { > struct agp_via_softc *sc = device_get_softc(dev); >+ u_int32_t gartctrl; > >- pci_write_config(dev, sc->regs[REG_GARTCTRL], 0x8f, 4); >- pci_write_config(dev, sc->regs[REG_GARTCTRL], 0x0f, 4); >+ if (sc->regs == via_v2_regs) { >+ pci_write_config(dev, sc->regs[REG_GARTCTRL], 0x8f, 4); >+ pci_write_config(dev, sc->regs[REG_GARTCTRL], 0x0f, 4); >+ } else { >+ gartctrl = pci_read_config(dev, sc->regs[REG_GARTCTRL], 4); >+ pci_write_config(dev, sc->regs[REG_GARTCTRL], gartctrl & >+ ~(1 << 7), 4); >+ pci_write_config(dev, sc->regs[REG_GARTCTRL], gartctrl, 4); >+ } >+ > } > > static device_method_t agp_via_methods[] = {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 69953
:
45360
| 45361