IABSD.fr/src/sys/dev

Branch :


Log

Author Commit Date CI Message
331b91e4 2022-01-05 03:53:26 use the index provided by the txcompletion descriptor in txeof. this replaces the use of a register in txeof to figure out how much of the ring has been completed by the hardware. that register isn't reset when an interface is taken down and brought up again, which messes with the calculations of free slots on the ring, which in turn messes up the ability to transmit packets. this means the watchdog can't know where the hardware is up to anymore, so just restartthe chip if the watchdog fires. it seems to be important to start the tx ring in msk_init on the 0th ring entry that we use to reset the high address value to 0. we still fill the 0th descriptor, but we let the first msk_start call post it for us when a packet goes on the ring. a slight tweak and ok jmatthew@
6543b26c 2022-01-04 20:43:44 struct pci_matchid is useful an upcoming userland program that wants to includes pcivar.h because it inspects vid/pid tables
fae5bdc0 2022-01-04 16:15:28 Restrict the pci(4) ioctl interface to devices detected by the kernel. This fixes issues on the M1 Macs where the PCI probe done by Xorg breaks the WiFi chip. ok patrick@
0df2aed8 2022-01-04 15:55:28 fix length boundary checks for incoming packets in iwm/iwx The minimum length and the maximum length required were both too low, due to an error in accounting for the 4-byte packet length+flags header. Patch by Christian Ehrhardt
a048bec5 2022-01-04 15:53:57 fix Rx Block Ack session validity checks in iwm(4) and iwx(4) I ported a NULL pointer check from iwlwifi rxmq.c which cannot happen in our version of this code. Instead we need to check the BA session ID to determine whether a BA session is valid. Patch by Christian Ehrhardt.
8a93f6f8 2022-01-04 13:40:58 acpi_getprop() needs to actually make sure that we're looking at the correct property. While there adjust acpi_getpropint() as well to increase similarity with acpi_getprop(). ok kettenis@
7797d4a0 2022-01-04 11:31:42 remove the last part of driver for aic-6250 scsi on aviion
96f00877 2022-01-04 11:01:24 remove files missed when sgi was removed ok visa@
329157c6 2022-01-03 12:01:32 the prism54 domain is long abandoned don't give any traffic to whoever registered it afterwards ok claudio@ stsp@
f790b53d 2022-01-03 09:48:41 ansi
a7c97ccf 2022-01-02 03:41:08 addres -> address
b040ff10 2022-01-02 02:13:33 preferense -> preference
f2e739fd 2022-01-01 18:52:26 Use correct defines for random seed magic/length. Spotted by Andreas Schnebinger
d3677684 2021-12-31 23:19:50 spelling ok ratchov@
86dca86f 2021-12-31 11:24:24 Interrups -> Interrupts
2e962c76 2021-12-31 09:24:18 Newer Apple firmware on chipsets without a hardware RNG require the host to provide a buffer of random bytes to the device on initialization.
093575dd 2021-12-31 08:15:47 Fix up handling of IFF_ALLMULTI and call uaq_iff() from uaq_init(). from Brad
54a76c43 2021-12-30 15:09:49 Add Xiaomi MiniWif to list of devices supported by mtw(4). Works for me on amd64. ok hastings@
61c8c0f0 2021-12-30 06:55:11 Prevent a double free by assigning the new keymap and corresponding size after the allocation and initialization is done. Otherwise, a race is possible if malloc ends up sleeping. ok sashan@ Reported-by: syzbot+7f8224e9f1a3487caf25@syzkaller.appspotmail.com
ca9c4ded 2021-12-30 00:25:41 combine ifdef blocks from Ted Bullock
fe414f1d 2021-12-29 18:48:45 PHYs that we want to talk to over SGMII need to be switched into SGMII mode for the link to go up. This is relevant on RJ45 SFPs. ok sthen@
0aed1edf 2021-12-29 18:40:19 Allow ohci(4) and ehci(4) to attach to acpi(4). ok kettenis@
f11bc372 2021-12-29 17:52:22 acpi_intr_disestablish() is available on all our ACPI platforms which support interrupts via ACPI, so there's need for an ifdef around it. ok kettenis@
982627fc 2021-12-29 07:15:13 Do not allow send/receive of kcov descriptors as the file descriptor can be kept alive longer than expected causing syzkaller to no longer being able to enable remote coverage. ok visa@ Reported-by: syzbot+ab2016d729cda7b0d003@syzkaller.appspotmail.com
81a83fa0 2021-12-28 17:50:10 The initial kd_lookup() in kcovopen() is redundant as kcov is a cloning device. Turn it into an assertion instead to better state the expected semantics of D_CLONE. Prompted after a discussion with visa@
8bad4727 2021-12-27 17:56:03 Not only BCM4378, but all PCIe core revisions >= 64 need to be accessed using the new sets of registers.
bb818c30 2021-12-27 17:32:14 Map the chip ids used on Apple M1 Pro/Max and Apple T2 Macs to firmware names.
ea92f6c3 2021-12-27 17:12:34 Support reading OTP information from a few more chips, necessary to learn firmare names on Apple M1 Pro/Max and Apple T2 Macs.
48b3e30f 2021-12-27 15:38:25 Yet another errno correction.
0813c1e9 2021-12-27 14:31:15 Fix off-by-one in blob download, where in the case that the blob is evenly divisible by 1400, the last chunk isn't marked with an end flag. ok tobhe@
64be38ba 2021-12-27 14:28:13 BCM4387 needs the D11 cores to be held in reset by us, the firmware will take care of releasing them, as otherwise initialization would fail some of the time. That chip also contains 3 of these, so make sure we reset all of them. Necessary on Apple M1 Pro/Max.
da5a4af2 2021-12-27 13:54:39 Send TxCap and WiFi calibration blobs to the chip.
92fbeeb7 2021-12-27 12:03:59 Switch module codename retrieval to use the newly proposed device tree bindings.
5ea0cc51 2021-12-27 10:59:20 Handle trailing odd-sized 1024 byte blocks when calculating TCM RAM size.
1c0efb8b 2021-12-27 10:56:55 Bump rxpost and rxcomplete ring size to 1024 for newer chips.
8db7132f 2021-12-26 20:50:17 Add information about TCM rambase and how to check the SR capability for a few more chips.
a5d79199 2021-12-26 13:55:36 Add address locators for the ACPI "bus" and use these to fix the order of the com(4) devices to match the traditional order one the ISA bus. ok patrick@, anton@
acaa8857 2021-12-24 06:53:18 Support more mtw(4) devices. ASUS USB-N10 v2, D-Link DWA-127 rev B1, Edimax EW-7711UAn v2, various Ralink/MediaTek ids. ok stsp@
9d2191b7 2021-12-24 06:19:24 regen
2f4c4673 2021-12-24 06:18:11 Add some more mtw(4) devices. ASUS USB-N10 v2, D-Link DWA-127 rev B1, Edimax EW-7711UAn v2, various Ralink/MediaTek ids. ok stsp@
ad8c1ddc 2021-12-23 12:14:15 Get rid of unused next battery level argument.
41a45098 2021-12-23 10:09:16 Disk lock was held when returning to userland. Add a missing unlock in vnd ioctl error path. Reported-by: syzbot+6dde3fda33074a256318@syzkaller.appspotmail.com OK jsg@ anton@
81e5db3b 2021-12-23 01:39:44 give et_setmulti() more chance of working ok claudio@
1b8f8c22 2021-12-22 19:37:33 Disable minimum power consumption in hostap mode. This improves connection reliability when bwfm is used as an access point. ok patrick@
642ce627 2021-12-22 12:33:02 drm/amdgpu: correct register access for RLC_JUMP_TABLE_RESTORE From Le Ma aec5897b277b13acd8f913d777654d4d092a24f1 in linux 5.10.y/5.10.88 f3a8076eb28cae1553958c629aecec479394bbe2 in mainline linux
71e30825 2021-12-22 12:30:38 drm/amd/pm: fix a potential gpu_metrics_table memory leak From Lang Yu 222cebd995cdf11fe0d502749560f65e64990e55 in linux 5.10.y/5.10.88 aa464957f7e660abd554f2546a588f6533720e21 in mainline linux
08da896e 2021-12-22 01:38:36 %Lx -> %llx kernel printf does not support %Lx
57ec0946 2021-12-21 20:53:46 Move checks on attach arguments from attach into match. ok anton@, deraadt@
b73a164c 2021-12-21 11:46:01 knf nits
7f01505d 2021-12-21 09:35:08 Do not print "dt: 451 probes" at boot in dmesg. Btrace device dt(4) is enabled by default, this line does not provide much information. requested by kettenis@ deraadt@; OK mpi@
731cc6c2 2021-12-21 07:44:22 avoid returning uninitialised var in hidpp_send_report() ok anton@
7a09fc77 2021-12-21 06:12:03 Fix another vnd race pointed out by mpi@ and make sure to not unlock the vnode twice in the error path. Tested in snaps for a couple of days.
4d2db379 2021-12-21 06:11:16 Ensure that the disk has been initialized after acquiring the lock and not before as we might end up sleeping while acquiring the lock, introducing a potential race. Tested in snaps for a couple of days. ok mpi@ Reported-by: syzbot+c87cdc2905b441c20d39@syzkaller.appspotmail.com
6c4edd67 2021-12-21 06:10:29 Rename local variable intrfn to intr, matches what dev/fdt/com_fdt.c already does.
13d90461 2021-12-21 06:09:47 Do not attach com at acpi when there's no address or irq present. Fixes a regression caused by the recent change to start attaching com at acpi as it turns out that Libreboot exposes console devices lacking crucial data in their acpi tables. The same console attaches fine over isa, therefore restore this behavior. Problem reported by <cipher-hearts at riseup dot net> on bugs@ ok deraadt@ kettenis@
706a9991 2021-12-21 06:08:57 errno overhaul, getting rid of some ambiguity. In the hopes of tracking down a rare but annoying problem related to remote coverage exposed by syzkaller.
cf997a48 2021-12-20 22:28:48 Remove useless suser assert from dt(4). The ioctl(2) path checks the user anyway and close(2) may crash after setuid(2). Reported-by: syzbot+90e094f33d329fb2c3ab@syzkaller.appspotmail.com OK deraadt@
b5553ee6 2021-12-20 19:24:32 bus_dmamem_unmap() should not be called from interrupt context, so free and close flowrings using bwfm_do_async(). Reported by and ok kettenis@
7a10236f 2021-12-20 15:08:10 Make iwm(4) attach to PCI devices with product ID 0x31dc. This device is part of the 9560 chip family. With a small device-specific quirk we can make iwm(4) attach and provide a working wifi interface. Problem reported and fix tested by Joao Victor.
b40d31ed 2021-12-20 15:05:12 regen
8e110848 2021-12-20 15:04:58 Change a PCI device string: The "Gemini Lake CNVi" is an iwm(4) "AC 9560". ok hastings@ (who submitted the original string, based on a datasheet)
f225ca39 2021-12-20 14:54:37 Make mtw(4) known to the config(8) framework. Not enabled yet. Pending firmware availability. ok stsp@ jmatthew@
57a8187d 2021-12-20 13:59:02 Add mtw(4), a driver for MediaTek MT7601U wifi devices. Ported from run(4) with legacy chipsets removed. Not yet enabled in the build. ok stsp@ jmatthew@
26d66e1b 2021-12-20 04:21:32 Rework the tx path to use the consumer and producer positions to work out the number of slots available, and to put packets on the ring until fewer than DWGE_NTXSEGS slots are left, making dwge_start() and dwge_txeof() work independently. While here, only write to GMAC_TX_POLL_DEMAND once per call to dwge_start() rather than once per packet. Adjust the rx interrupt path to check the number of slots in use and return slots once per interrupt. Add interrupt and ifq barriers before taking the interface down. With all of this done, we can mark dwge(4) mpsafe. ok dlg@ patrick@
abddf8b1 2021-12-19 12:45:14 whitespace
191a7626 2021-12-19 07:45:59 Reduce the overhead of all trace routines by returning as early as possible in kd_curproc().
722ef128 2021-12-19 06:29:30 fix setting palette with 8bpp fb used on 8mb parts
cab855fe 2021-12-19 03:39:05 fix radeondrm console colours on sparc64 Directly do register writes in the sparc64 specific radeondrm_setcolor() instead of trying to pass colour values via crtc->gamma_store. With these changes the console changes from white text on a black background to black text on a white background. Only older radeon families are handled and crtc selection is skipped as with radeonfb. Both of the sun radeon parts fall into this family < CHIP_RS600 path. xvr-100 (0x1002:0x5159 pci rv100) xvr-300 (0x1002:0x5b64 pcie rv380) Tested on a Sun Blade 100 with XVR-100 by Ted Bullock who also helped with the patch.
d615f594 2021-12-19 01:33:26 drm/amd/display: add connector type check for CRC source set From Perry Yuan f35f7f04aa80587bfe00c5e679df054918e79a63 in linux 5.10.y/5.10.87 2da34b7bb59e1caa9a336e0e20a76b8b6a4abea2 in mainline linux
06c5638d 2021-12-19 01:30:41 drm/amd/display: Fix for the no Audio bug with Tiled Displays From Mustapha Ghaddar dd3cea3425226565c959a1a6b1a1cce2e3394713 in linux 5.10.y/5.10.87 5ceaebcda9061c04f439c93961f0819878365c0f in mainline linux
aa1f5e88 2021-12-18 09:19:25 Add a mailbox "framework" to handle mailboxes referenced in device trees in a generic way. ok visa@
d3edd1e5 2021-12-18 08:24:31 Reduce the overhead of the trace compare routines by checking if kcov is enabled for the current thread before doing anything else.
0eeaa549 2021-12-16 08:03:17 Attach com over acpi on amd64. Some hardware uses a different interrupt assignment compared to the the legacy one supported by com over isa. This causes the console to halt once userland takes over as no interrupts are received. The actual address and irq can be read from ACPI, kettenis@ already added support for arm64 which paved the way for amd64. Some consoles that previously attached over isa are now expected to attach over acpi. Thanks to patrick@ for testing on arm64. ok kettenis@
69c04514 2021-12-15 12:53:53 Use a per-UVM object lock to serialize the lower part of the fault handler. Like the per-amap lock the `vmobjlock' is principally used to serialized access to objects in the fault handler to allow faults occurring on different CPUs and different objects to be processed in parallel. The fault handler now acquires the `vmobjlock' of a given UVM object as soon as it finds one. For now a write-lock is always acquired even if some operations could use a read-lock. Every pager, corresponding to a different kind of UVM object, now expect the UVM object to be locked and some operations, like *_get() return it unlocked. This is enforced by assertions checking for rw_write_held(). The KERNEL_LOCK() is now pushed to the VFS boundary in the vnode pager. To ensure the correct amap or object lock is held when modifying a page many uvm_page* operations are now asserting for the "owner" lock. However, fields of the "struct vm_page" are still being protected by the global `pageqlock'. To prevent lock ordering issues with the new `vmobjlock' and to reduce differences with NetBSD this lock is now taken and released for each page instead of around the whole loop. This commit does not remove the KERNEL_LOCK/UNLOCK() dance. Unlocking will follow if there is no fallout. Ported from NetBSD, tested by many, thanks! ok kettenis@, kn@
6115a8aa 2021-12-14 13:32:09 drm/syncobj: Deal with signalled fences in drm_syncobj_find_fence. From Bas Nieuwenhuizen 2737d0bc21b6db199b4145e12b9f1745577d7944 in linux 5.10.y/5.10.85 b19926d4f3a660a8b76e5d989ffd1168e619a5c4 in mainline linux
0bd58960 2021-12-14 13:29:50 drm/amdkfd: fix boot failure when iommu is disabled in Picasso. From Yifan Zhang f3d9114ac99f4358809f44b390b304b8b53fb4a4 in linux 5.10.y/5.10.85 afd18180c07026f94a80ff024acef5f4159084a4 in mainline linux
daff3080 2021-12-14 13:28:06 drm/amdgpu: init iommu after amdkfd device init From Yifan Zhang 7508a9aa65b959bbc6d9e42c9683520bddb7db0d in linux 5.10.y/5.10.85 714d9e4574d54596973ee3b0624ee4a16264d700 in mainline linux
e7ede0e6 2021-12-14 13:25:51 drm/amdgpu: move iommu_resume before ip init/resume From James Zhu ac9db04ee32f007e48cb0763784ccfadd5a21342 in linux 5.10.y/5.10.85 f02abeb0779700c308e661a412451b38962b8a0b in mainline linux
0b21fb23 2021-12-14 13:24:12 drm/amdgpu: add amdgpu_amdkfd_resume_iommu From James Zhu fe9dca7dda61f8f3b3000df2abe88c60d1bfab93 in linux 5.10.y/5.10.85 8066008482e533e91934bee49765bf8b4a7c40db in mainline linux
fe2ee22f 2021-12-14 13:22:32 drm/amdkfd: separate kfd_iommu_resume from kfd_resume From James Zhu 5d191b0976b72af5f79cf217b9b7c2f20b522a2a in linux 5.10.y/5.10.85 fefc01f042f44ede373ee66773b8238dd8fdcb55 in mainline linux
ac193e55 2021-12-14 13:20:09 drm/amd/amdkfd: adjust dummy functions' placement From Lang Yu 46dcf66d6e7a64febe0575c62679287679dcb2b3 in linux 5.10.y/5.10.85 cd63989e0e6aa2eb66b461f2bae769e2550e47ac in mainline linux
ce0b60d5 2021-12-14 12:48:15 use bus_space_read_region_1() when reading bios from pci rom Avoids 'BIOS signature incorrect 0 0' warning seen on sparc64 (where pci is mapped little endian) reported by Ted Bullock.
859a437b 2021-12-14 10:48:10 Implement support for selecting SGMII or SerDes mode depending on the plugged-in SFP transceiver and for reading out transceiver information via ifconfig(8). To read from the SFP, we need to let the card issue I2C transfers. Additionally we need I2C to read/write to the PHY when MDIO is not available. Depending on the SFP's supported media types we can decide which mode to use. This fixes hardware-initialization and link-up problems with some em(4) Fiber NIC and SFP combinations. Tested by dlg@ and been in snaps for quite a while ok dlg@ jmatthew@
43d1b45e 2021-12-13 20:59:23 add pclk clock used by dwdog(4) on RK3399 ok kettenis@
9f9a31e0 2021-12-13 13:57:48 Handle multi-port controllers in uslcom(4) A multi-port CP210x device presents each COM port as a separate USB virtual COM port interface. When attaching uslcom(4), take the USB interface from the attach arguments instead of using interface 0. This lets the driver access the different ports of a quad-port CP2108. Tested with a single-port CP2102 by jsg@ OK jsg@ deraadt@
f1993be3 2021-12-12 09:14:58 Add vnode parameter to VOP_STRATEGY() Pass the device vnode as a parameter to VOP_STRATEGY() to allow calling the correct vop_strategy callback. Now the vnode is also available in the callback. OK mpi@
98863e5f 2021-12-09 20:21:35 Broken ACPI tables containing scopes that are larger than their outer shell are caught by our ACPI parser. Unfortunately in such cases our reaction was to start parsing AML somewhere outside our current scope. The intention was to clamp down the inner scope to the maximum of the outer one. So, rectify it. This issue has shown up in EDK2's QEMU SBSA target, where the SSDT table was generated incorrectly. Surprisingly neither Linux nor ACPICA's iASL noticed that the table was broken. ok kettenis@ millert@
f231ff59 2021-12-09 00:26:10 We only have one syscall table: inline sysent/SYS_MAXSYSCALL and SYS_syscall as the nosys() function into the MD syscall entry routines and the SYSCALL_DEBUG support. Adjust alpha's syscall check to match the other archs. Also, make sysent const to get it into .rodata. With that, 'struct emul' is unused: delete it and all its references ok millert@
968fd139 2021-12-08 11:42:02 drm/amd/display: Allow DSC on supported MST branch devices From Nicholas Kazlauskas 775191dd4c1bcf546ab7ce87f3476537615437b7 in linux 5.10.y/5.10.84 94ebc035456a4ccacfbbef60c444079a256623ad in mainline linux
18bc2961 2021-12-08 11:38:57 drm/amd/amdgpu: fix potential memleak From Bernard Zhao c746945fb6bcbe3863c9ea6369c7ef376e38e5eb in linux 5.10.y/5.10.84 27dfaedc0d321b4ea4e10c53e4679d6911ab17aa in mainline linux
38326f19 2021-12-08 11:36:25 drm/amd/amdkfd: Fix kernel panic when reset failed and been triggered again From shaoyunl 74aafe99efb68f15e50be9f7032c2168512f98a8 in linux 5.10.y/5.10.84 2cf49e00d40d5132e3d067b5aa6d84791929ab15 in mainline linux
08208006 2021-12-07 18:06:08 Fix typo in Tiger Lake H configuration. From James Hastings
5d99c75f 2021-12-07 16:07:56 print the failed method number
f7acadf0 2021-12-07 10:16:50 Fix parsing of SR_IRQ resource descriptors here as well. ok patrick@, anton@
912c5db1 2021-12-07 10:15:25 Fix parsing of SR_IRQ resource descriptors. ok patrick@, anton@
a8a0f531 2021-12-06 18:02:58 Add missing short-circuit in bcmpcie_dmamap_load_raw(). ok patrick@
52240835 2021-12-05 15:35:32 add missing mtx_leave() calls in error paths ok anton@
eb76c742 2021-12-04 16:08:02 Previous diff was incomplete, we also need to do DMA translation for bus_dmamap_load_raw(9). This fixes xhci(4) on the rpi4 with the U-Boot from ports that is installed on the arm64 installation media. ok mglocker@, patrick@
d7317b54 2021-12-04 07:01:59 Consolidate error paths in usbd_new_device, shaving of 14 lines. ok bluhm@
e67d8589 2021-12-03 19:22:42 add Allwinner H6 support ok kettenis@