Commit Graph

261698 Commits

Author SHA1 Message Date
rin 6745eb6476 No need to update mlen also in the case of (mlen & 16) != 0. 2018-08-28 07:28:01 +00:00
riastradh db5f393e0c Remove some superfluous vestigial `-I.'. 2018-08-28 03:48:38 +00:00
riastradh d46aeca2b9 Rework PCI and AGP conditionalization.
- Push drm_pci_set_unique into driver callback.
- Eliminate drm_pci_set_unique_hook.
- Gather all drm_agp_* functions into struct drm_agp_hooks.
- Replace the nonsensical old atomic garbage by serious locking.
- Make drm_agpsupport.c its own module.
- Eliminate NDRMKMS_PCI.
- Use NAGP from "agp.h" only in drm_module.c for horrible hack.
  => See comment in file for rationale.
- Always define CONFIG_PCI=1 and CONFIG_AGP=1.
- Always go through the drm_agp_* function hooks.
- Ifdef out nouveau agp stuff that doesn't go through drm_agp_*
  for reasons that I'm too frustrated to figure out tonight.
- pci_iomap no longer automagically does agp_i810_borrow.
  => Use drm_agp_borrow instead.
2018-08-28 03:41:38 +00:00
riastradh 41d057eefa Move decl of drm_guarantee_initialized to drmP.h. 2018-08-28 03:35:08 +00:00
riastradh deae3b539d Return the node we found. From tnn@. 2018-08-28 03:34:53 +00:00
riastradh 18618fb37e Eliminate drm_pci_init/exit. Empty for a while, no need. 2018-08-28 03:34:39 +00:00
riastradh 36a3930f3d Move nouveau pci initialization to nouveau_pci where it belongs.
Somehow I forgot this was a separate module.
2018-08-28 03:34:07 +00:00
riastradh e3c9429c02 Use AGP_PAGE_SIZE, not PAGE_SIZE. 2018-08-28 03:33:54 +00:00
jmcneill 8eab336ffb Remove call to fdt_pack, it is causing problems with memory detection 2018-08-28 01:24:39 +00:00
alnsn c3e1f780a6 Fix typo in a panic string. 2018-08-27 22:51:55 +00:00
jmcneill d49d0a8c50 Copy bootaa64.efi to releasedir 2018-08-27 22:41:56 +00:00
jmcneill c5c829ac25 Add release target 2018-08-27 22:40:51 +00:00
jmcneill e965811037 Install ELF kernel to the FFS partition and boot it with bootaa64.efi
instead of loading kernel.img from the MSDOS partition with extlinux.conf
2018-08-27 22:36:49 +00:00
dholland 4e0b635e86 Fix lying comment; the point of the KERN_FILE2 sysctl, or much of it,
is to not expose struct file directly.
2018-08-27 22:22:16 +00:00
tnn 6aea9f691d annotate pthread_exit as __dead (to appease clang) 2018-08-27 17:47:48 +00:00
martin bbbc2c6317 Fix initialization order so we can boot again on IBM PPS Model 6015
(which needs pci interrupt fixup quirks).
From Artyom Tarasenko.
2018-08-27 17:17:25 +00:00
riastradh d30cf88cc1 Fix fallout from linux/gfp.h -> common. 2018-08-27 17:13:07 +00:00
ryo 4f574380a4 delete __{ge,lt,gt,le,eq,ne,unordt}tf2.
these should not be defined in libc.

pointed out by joerg@. thanks.
2018-08-27 16:46:13 +00:00
riastradh f87ba36c26 Add amdgpu to amd64/ALL. 2018-08-27 16:30:51 +00:00
riastradh 12d227bb54 Add amdgpu to i386/ALL. 2018-08-27 16:29:18 +00:00
riastradh 38c95bb1b7 Ifdef out pnpbios for now. Presumably needs to use bus_space_alloc. 2018-08-27 16:20:35 +00:00
riastradh 808a091925 Expand to __nothing, not to empty. 2018-08-27 16:16:16 +00:00
riastradh 6a0a923124 Include some needful header files and forward declarations. 2018-08-27 16:16:02 +00:00
riastradh 076ea09462 Use offsetof, not undefined behaviour. 2018-08-27 16:15:48 +00:00
riastradh 1d512dc35f Simulate bus_space_read_8 with two bus_space_read_4 on 32-bit x86. 2018-08-27 16:15:34 +00:00
riastradh 33e7ea2ff1 Convert to uintmax_t if we're going to use %jx. 2018-08-27 16:15:23 +00:00
riastradh 92ab5f48b1 Linux uses uint64 for these parameters now, so follow suit. 2018-08-27 16:15:09 +00:00
riastradh 377fde93a5 Omit print with wrong format -- vestige of merge. 2018-08-27 16:14:55 +00:00
riastradh 0ab2e92112 Tag files.* with newer config version where needed. 2018-08-27 16:06:01 +00:00
riastradh 3432a2eb7f Bump config(5) version for OPT.foo.c variables. 2018-08-27 16:04:45 +00:00
riastradh e6d32c7dca Tag with nouveau, not just nouveau_pci, to get CWARNFLAGS.nouveau. 2018-08-27 16:04:32 +00:00
sevan 0a08194f8e Add the -T flag to usage() 2018-08-27 15:50:39 +00:00
riastradh 6b0ac6f686 gfp.h and slab.h are now used in kernel.h, so move to common. 2018-08-27 15:45:06 +00:00
ryo 2335f36c4a need to add VM_PROT_READ when pmap_kenter_pa(va, pa, VM_PROT_WRITE, 0) or pmap_kenter_pa(va, pa, VM_PROT_EXECUTE, 0).
VM_PROT_READ is treated as an access permission inernally.
2018-08-27 15:43:37 +00:00
riastradh 293395f4f8 Make sure to create and destroy the lock too... 2018-08-27 15:32:51 +00:00
riastradh b0f9d14d62 Check for DMA-safe addresses before allowing DRM prime import. 2018-08-27 15:32:39 +00:00
riastradh e1c90562d0 Implement BUS_DMA_TO_PHYS/PHYS_TO_BUS_DMA on arm respecting ranges. 2018-08-27 15:32:20 +00:00
riastradh 6d23545582 Tread carefully around DMA subregions.
Not all platforms support it.

- If we want to limit to 32-bit DMA, just use a known 32-bit DMA tag.
- If we want to limit to >32-bit DMA, but the host only has a known
  32-bit DMA tag, then just use that anyway.
- If we want to limit to >32-bit DMA, but the host doesn't support
  bus_dmatag_subregion, then just use the 32-bit DMA tag anyway.

Gives powerpc, sparc a chance of working.
2018-08-27 15:32:06 +00:00
riastradh a21d54112e Update tegra drm and nouveau to compile with new drmkms.
Compile-tested only.
2018-08-27 15:31:51 +00:00
riastradh 26e846f024 Make drmkms build without drmkms_pci. 2018-08-27 15:31:27 +00:00
riastradh 9abf277c6f Make this compile. 2018-08-27 15:29:54 +00:00
riastradh de58c2f409 Unhook upstream drm_pci.c, apparently overridden by files.drmkms_pci. 2018-08-27 15:29:42 +00:00
riastradh ab3522b6f4 At chuq's suggestion, use paddr_t rather than struct vm_page *.
Doesn't make much of a substantive difference.
2018-08-27 15:29:31 +00:00
riastradh e95fbd1d04 Draft sparc cache flushing. 2018-08-27 15:29:19 +00:00
riastradh ca33449191 sparc seems to treat bus/phys addrs in bus dmamem the same.
This is just about bus dmamem -- not about bus dmamap, which rightly
uses an iommu to remap things and which we don't interfere with.
2018-08-27 15:29:08 +00:00
riastradh e77f4c01ec Ifdef out label used only by !__HAVE_MM_MD_DIRECT_MAPPED_PHYS. 2018-08-27 15:28:53 +00:00
riastradh e2c32ec7df Work around broken null bus_dmatag_destroy expansion. 2018-08-27 15:28:39 +00:00
riastradh 4827472794 Expand docstring for reservation_object_poll. 2018-08-27 15:28:27 +00:00
riastradh 8294c65784 Let's try not to step on each others' toes, shall we? 2018-08-27 15:28:16 +00:00
riastradh 5f3f16e940 Clarify what bus_dmat and dmat are. 2018-08-27 15:28:03 +00:00