summaryrefslogtreecommitdiff
path: root/sys/dev/pci
AgeCommit message (Collapse)Author
2018-08-20Attach bwfm(4) to Broadcom BCM4371.Patrick Wildt
ok kettenis@
2018-08-20regenPatrick Wildt
2018-08-20Add Broadcom BCM4371.Patrick Wildt
ok kettenis@
2018-08-20Reorder checks in the read/write(2) family of syscalls to prepare makingMartin Pieuchot
file operations mp-safe. This change makes it clear that `f_offset' is only accessed in vn_read() and vn_write(), which will help taking it out of the KERNEL_LOCK(). This refactoring uncovered a race in vn_read() which is now documented and will be addressed in a later diff. ok visa@
2018-08-20Make fnew() return a new file with only one reference. This makesVisa Hankala
the API more logical. OK kettenis@ mpi@
2018-08-20drm_fourcc: Fix DRM_FORMAT_MOD_LINEAR #defineJonathan Gray
From Kristian H. Kristensen 771dacea92cd1b6107615aede467bdf62ef8907c in linux 4.4.y/4.4.91 af913418261d6d3e7a29f06cf35f04610ead667c in mainline linux
2018-08-20Cached tests moved from callers into ttm_io_prot() with linux 3.18Jonathan Gray
which was partly missed when the 4.4 ttm changes went in. Prompted by a patch from kettenis@
2018-08-20drm: Add DP PSR2 sink enable bitJonathan Gray
From Jose Roberto de Souza 5a3d1d67b3548e9dc1572c87527fa35b309feb0b in linux 4.4.y/4.4.146 4f212e40468650e220c1770876c7f25b8e0c1ff5 in mainline linux
2018-08-20drm/atomic: Handling the case when setting old crtc for planeJonathan Gray
From Satendra Singh Thakur f1a64c117f1363f17cfc7e5bd410ec6222031501 in linux 4.4.y/4.4.146 fc2a69f3903dfd97cd47f593e642b47918c949df in mainline linux
2018-08-20drm/radeon: fix mode_valid's return typeJonathan Gray
From Luc Van Oostenryck 1f5e33948005cd1b720fd58717bb971109432875 in linux 4.4.y/4.4.146 7a47f20eb1fb8fa8d7a8fe3a4fd8c721f04c2174 in mainline linux
2018-08-15Grab the KERNEL_LOCK() in MP-unsafe fo_close routines. This preventsVisa Hankala
a scenario where MP-unsafe code gets run without the kernel lock as a consequence of an unlocked system call. OK mpi@, kettenis@
2018-08-14return ENOTTY rather than EINVAL to indicate an ioctl hasn't been handledJonathan Matthew
ok dlg@ deraadt@ kettenis@
2018-08-13Prevent iwm(4) from writing back the former BSS channelStefan Sperling
if the current BSS has been changed by ieee80211_input(). Needed for upcoming band-steering support in net80211. ok phessler@ mpi@
2018-08-12Drop reference to dmabuf "file" as fnew() returns one that has twoMark Kettenis
references. ok visa@, deraadt@
2018-08-09regenMark Kettenis
2018-08-09ASMedia ASM1184e PCIe switch.Mark Kettenis
2018-08-08regenKevin Lo
2018-08-08Fix Realtek product name from RT8188 to RTL8188CEKevin Lo
ok stsp@
2018-08-03Let ahci(4) match on _CLS instead of _HID when attaching at acpi(4). AvoidsMark Kettenis
having to add many more _HID entries to the match table. ok deraadt@, mlarkin@
2018-07-30If we keep the BIOS framebuffer, stick to the desired framebuffer sizeMark Kettenis
instead of using the actual framebuffer size. This fixes a problem seen on various Apple machines where the BIOS framebuffer is bigger than the actual display. ok jcs@, mpi@
2018-07-30apply the loop settle delay to handling of loop up and loop reset events,Jonathan Matthew
so hotplug can be more reliable too.
2018-07-30extend the loop settle time to 200ms, and adjust the check so that we'llJonathan Matthew
actually break out once the loop has been up for that long.
2018-07-28Add function to convert a PCI device "tag" into a PCIe requester ID.Mark Kettenis
ok patrick@, mlarkin@, deraadt@
2018-07-27Use the MI interrupt enable/distable API instead of the MD one on amd64 andMark Kettenis
remove the MD API. ok guenther@, deraadt@, mpi@
2018-07-26don't dump status iocbs twiceJonathan Matthew
2018-07-26remove "bad startup mboxes" printf - it never indicates a real problem,Jonathan Matthew
and it always happens on 25xx controllers.
2018-07-25Implement a MSGBUF control packet mechanism based on the commandPatrick Wildt
request ids. So far we were only able to have one command in flight at a time and race conditions could easily lead to unexpected behaviour. With this rework we send and enqueue a control packet command and wait for replies to happen. Thus we can have multiple control packets in flight and a reply with the correct id will wake us up.
2018-07-24regenMark Kettenis
2018-07-24Add SanDisk/WD Black NVMe devices.Mark Kettenis
From Bryan Vyhmeister
2018-07-17we have splraise() nowDavid Gwynne
previously the code would do a series of comparisons to IPL_FOO and IPL_BAR, and use splfoo() and splbar() as needed, but for like a dozen different IPl levels (i may be exaggerating). splraise() rolls all of that up. ok deraadt@ mpi@
2018-07-11implement media type detection and forcing of link speed, lightly testedJonathan Matthew
with a variety of 10g optics.
2018-07-11move declarations of hwrm message functions up to the top and make themJonathan Matthew
non-static.
2018-07-11don't bother checking the rx index matches what we expect, it worksJonathan Matthew
properly.
2018-07-09Add bnxt(4), a driver for Broadcom NetXtreme-C/E 10G+ ethernet.Jonathan Matthew
Sort of a port from freebsd, but I had to write all the interesting bits myself. Not very complete yet, but good enough to commit over. ok kettenis@ deraadt@
2018-07-08regenthfr
2018-07-08add AMD Summit Ridge (17h) and Raven Ridge PCI devices. ok brynet@thfr
2018-07-06Add bus_dmamap_sync(9) calls to bwfm(4) so that we make sure the dataPatrick Wildt
is synced properly before the CPU or the WiFi chip access the supplied memory. Makes PCIe-connected bwfm(4) work on ARM-based machines.
2018-07-06regenJonathan Matthew
2018-07-06add Broadcom NetXtreme-C/E devicesJonathan Matthew
2018-07-05Cast physical addresses to 64-bits so we can shift them by 32-bit onPatrick Wildt
32-bit platforms without the compiler complaining. In the end the value will turn out as 0 anyway. Allows enabling bwfm(4) on 32-bit platforms. ok stsp@
2018-07-05Add support for the VIA VX900 chipset in viapm(4).Frederic Cambus
OK kettenis@
2018-07-03Add a new so_seek member to "struct file" such that we can have seekableMark Kettenis
files that aren't vnodes. Move the vnode-specific code into its own function. Add an implementation for the "DMA buffers" that can be used by DRI3/prime code to find out the size of the graphics buffer. This implementation is very limited and only supports offset 0 and only for SEEK_SET and SEEK_END. This doesn't really make sense; implementing stat(2) would be a more obvious choice. But this is what Linux does. ok guenther@, visa@
2018-07-03regenFrederic Cambus
2018-07-03Add device IDs of the VIA VX900 chipset.Frederic Cambus
OK mlarkin@
2018-07-03During attach, give the loop a while to settle before we start lookingJonathan Matthew
for targets. With some combinations of controllers and targets, the loop seems to bounce a bit, but with a short delay we can attach targets more reliably.
2018-07-03If we're not on a fabric, we may still need to attach and detach targetsJonathan Matthew
as part of processing port database changes.
2018-07-01Use fnew() to allocate a struct file. Simplifies the code.Mark Kettenis
ok mpi@, visa@
2018-06-25Implement DRI3/prime support. This allows graphics buffers to be passedMark Kettenis
between processes using file descriptors. This provides an alternative to eporting them with guesable 32-bit IDs. This implementation does not (yet) allow sharing of graphics buffers between GPUs. ok mpi@, visa@
2018-06-20drm/i915: Disable LVDS on Radiant P845Jonathan Gray
From Ondrej Zary e88640adf6fe0709466f814a26753d78184a598c in linux 4.4.y/4.4.136 b3fb22733ae61050f8d10a1d6a8af176c5c5db1a in mainline linux
2018-06-19Add support for SAS3.5 controllers. This involves reorderingJonathan Matthew
initialisation so we get the controller capabilities first, allowing a soft reset instead of hard reset. The new controllers don't work after a hard reset, and older generations seem fine either way. tested by robert@ on a sas3408, by dlg@ on a sas2008 (on sparc64) and by me on a sas3008. ok dlg@ robert@