summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2022-02-03sync list of amdgpu files built with -msse -msse2 with linux 5.15.yJonathan Gray
2022-02-02Add apldma(4), a driver for the DMA controller found on Apple SoCs.Mark Kettenis
This driver implements an interface for using DMA for audio output. ok ratchov@
2022-02-02Get the pci bus number from the bus-range property when available, ratherMiod Vallat
than assuming it will always be zero. ok kettenis@
2022-02-02acpi_addtask() calls malloc() w/ M_NOWAIT (because some calls come fromTheo de Raadt
interrupt context), this however means occasional resource shortage will result in callbacks registration failing, and unknown consequences for the task-submitting caller. Changing this to use pools with a low water mark, decreases the odds of that problem occuring. ok kettenis
2022-02-02unifdef __OpenBSD__Jonathan Gray
2022-02-02unifdef __NetBSD_Version__Jonathan Gray
2022-02-02drm/amd/display: Fix FP start/end for dcn30_internal_validate_bw.Jonathan Gray
From Bas Nieuwenhuizen 548f20b39ec91fdd97194a84a0d9b2f68715762a in linux 5.15.y/5.15.19 72a8d87b87270bff0c0b2fed4d59c48d0dd840d7 in mainline linux
2022-02-02drm/atomic: Add the crtc to affected crtc only if uapi.enable = trueJonathan Gray
From Manasi Navare 73740f948252e424a01465155d8737bceae23653 in linux 5.15.y/5.15.19 5ec1cebd59300ddd26dbaa96c17c508764eef911 in mainline linux
2022-02-01call intel_init_stolen_res() lost in drm 5.7 updateJonathan Gray
2022-02-01get stolen memory base and size for gen 12Jonathan Gray
2022-02-01An old hack skips use of memory regions < 1MB size, because some machinesTheo de Raadt
put BIOS objects into there, and rely upon them. We are shocked, SHOCKED, to find a machine that does so in a large object (Supermicro 5019D-FTN4). So now we need to ignore memory regions < 32MB in size. If we put this memory into use, the zerothread will soon clear it, and on this particular case the machine resets because something in AML or SMI gets unhappy. Other machines with similar problems may exhibit other misbehaviours, so this could fix heisenbugs. Sadly I expect products to get worse. ok kettenis, miod
2022-02-01Make sure we always pass a page-aligned address to pmap_grow_map().Mark Kettenis
Fixes an issue uncovered by the recent change to enlarge kva space where an unaligned address was passed resulting in memset() writing past the end of the newly allocated page. ok miod@
2022-02-01GPE_DIRECT is calling the AML parser from interrupt context, which isTheo de Raadt
not permitted. Luckily nothing is using GPE_DIRECT anymore, so this code can be deleted. ok kettenis
2022-02-01When a struct ipovly needs to be computed and checksummed in in4_cksum(),Miod Vallat
do not bother operating on its first 8 bytes, which will always be zero. ok visa@
2022-02-01Attempt to guarantee that on copy-on-write faulting, the new copyPhilip Guenther
can't be written to while any thread can see the original version of the page via a not-yet-flushed stale TLB entry: pmaps can indicate they do this correctly by defining __HAVE_PMAP_MPSAFE_ENTER_COW; uvm will force the initial CoW fault to be read-only otherwise. Set that on amd64 and fix the problem case in pmap_enter() by putting a read-only mapping in place, shooting the TLB entry, then fixing it to the final read-write entry so this thread can continue without re-faulting. reported by jsing@ from https://github.com/golang/go/issues/34988 assisted by discussion in https://reviews.freebsd.org/D14347 tweaks from jsing@ and kettenis@ ok jsing@ mpi@ kettenis@
2022-02-01use unsigned long for length argument of linux copyin/copyout equivalentsJonathan Gray
2022-01-31enable the movntdqa version of drm_memcpy_from_wc()Jonathan Gray
only caller is ttm_move_memcpy() inteldrm has equivalent bits in i915_memcpy.c
2022-01-31define CONFIG_DRM_I915_USERFAULT_AUTOSUSPEND to reduce diff to linuxJonathan Gray
2022-01-31add kstat_remove so you can tear the struct apart before kstat_destroyDavid Gwynne
2022-01-31revert fb size workaround from amdgpu_gmc.c rev 1.3Jonathan Gray
djm@ confirms the recently committed 5.5.18 change 'drm/amdgpu: Use correct VIEWPORT_DIMENSION for DCN2' to use the right register for GMC9 DCN2 (RENOIR, GREEN_SARDINE) is enough on t14 gen 2 amd.
2022-01-31unstub append_oa_sample()Jonathan Gray
2022-01-30unstub intel_gt_get_awake_time()Jonathan Gray
2022-01-30push stub down in __await_execution()Jonathan Gray
functions in this file want to reach into the implementation of irq work which for us isn't a llist but rather a task
2022-01-30Add aplnco(4), a driver for the Numerically-controlled oscillator (NCO)Mark Kettenis
clock that drives the audio clocks on Apple silicon. ok patrick@
2022-01-30Add tascodec(4), a driver for the TI TAS2770/TAS5770 digital audioMark Kettenis
amplifier codec found on Apple M1 Macs. ok patrick@, ratchov@
2022-01-29Put the leaf and subleaf input values (from rax/rcx) into local variables,Philip Guenther
truncating them to 32bit as documented by the SDM and verified on an Intel CPU in a Lenovo T510. Use that in the clamping logic and all the tests, adjusting DPRINTF() format strings to match. ok mlarkin@
2022-01-29drm/amdgpu: Use correct VIEWPORT_DIMENSION for DCN2Jonathan Gray
From Harry Wentland 7b6577cf9fe48d24d82df9362a077396a9d5cb27 in linux 5.15.y/5.15.18 dc5d4aff2e99c312df8abbe1ee9a731d2913bc1b in mainline linux
2022-01-29drm/amd/display: reset dcn31 SMU mailbox on failuresJonathan Gray
From Mario Limonciello f71c91ed1d4b4bfbbb55327b04dcc32b2d970f62 in linux 5.15.y/5.15.18 83293f7f3d15fc56e86bd5067a2c88b6b233ac3a in mainline linux
2022-01-29drm/i915: Flush TLBs before releasing backing storeJonathan Gray
From Tvrtko Ursulin 8a17a077e7e9ecce25c95dbdb27843d2d6c2f0f7 in linux 5.15.y/5.15.18 7938d61591d33394a21bdd7797a245b65428f44c in mainline linux
2022-01-29Fix macro name in comment.Kenji Aoyama
ok visa@
2022-01-29Use local symbols in libkern mips64 assembly routines.Visa Hankala
OK miod@
2022-01-28Give ddb more access to registers on macppc, powerpc64George Koehler
Edit db_regs[] in db_trace.c on both powerpc and powerpc64, so ddb can access $r14, $r15, $r16, $dar, $dsisr. Only for powerpc: change db_trap_glue to copy all registers to and from ddb_regs (it was skipping some); change db_set_single_step and db_clear_single_step to flip the correct bit of srr1; delete FIXUP_PC_AFTER_BREAK, which was off by 1 instruction. "ddb{1}> s" on my PowerMac7,3 (dual G5 at 2700 MHz) began to panic like, "*cpu0: mutex 0xa7d0a0 not held in tc_update_timekeep". Add an arbitrary delay(100) after sending PPC_IPI_DDB; I want cpu0 to get the ipi before it can see db_active == 1 and skip acquiring a mutex. ok kettenis@
2022-01-28Remove unused guarded read and write routines.Visa Hankala
No objection from miod@
2022-01-28When it's the possessive of 'it', it's spelled "its", without thePhilip Guenther
apostrophe.
2022-01-27drm/radeon: fix error handling in radeon_driver_open_kmsJonathan Gray
From Christian Koenig f22f67b43775fffb09f371ea861779cdbbb763ec in linux 5.15.y/5.15.17 4722f463896cc0ef1a6f1c3cb2e171e949831249 in mainline linux
2022-01-27drm/i915/display/ehl: Update voltage swing tableJonathan Gray
From Jose Roberto de Souza 077fe9d865604fcab3238afeaa7408cc1635bc39 in linux 5.15.y/5.15.17 ef3ac01564067a4337bb798b8eddc6ea7b78fd10 in mainline linux
2022-01-27drm/amdgpu: don't do resets on APUs which don't support itJonathan Gray
From Alex Deucher c3a9e0e701dfd087b0044c3598bffe880262c066 in linux 5.15.y/5.15.17 e8309d50e97851ff135c4e33325d37b032666b94 in mainline linux
2022-01-27drm/amd/display: Fix the uninitialized variable in enable_stream_features()Jonathan Gray
From Yizhuo Zhai 3bf997ec299cdf7280b2039806e5e1d847df111a in linux 5.15.y/5.15.17 0726ed3065eeb910f9cea0c933bc021a848e00b3 in mainline linux
2022-01-27amdgpu/pm: Make sysfs pm attributes as read-only for VFsJonathan Gray
From Marina Nikolic e4066c05d3327b530bb00d11d3492bac1e69982d in linux 5.15.y/5.15.17 11c9cc95f818f0f187e9b579a7f136f532b42445 in mainline linux
2022-01-27drm/amdgpu: fixup bad vram size on gmc v8Jonathan Gray
From Zongmin Zhou 493b87970061f044c5cf795cfd1d679d114844ed in linux 5.15.y/5.15.17 11544d77e3974924c5a9c8a8320b996a3e9b2f8b in mainline linux
2022-01-27drm/amd/amdgpu: fix gmc bo pin count leak in SRIOVJonathan Gray
From Jingwen Chen 305f07b93d34d292432251e9963bf232db38d67a in linux 5.15.y/5.15.17 948e7ce01413b71395723aaf846015062aea3a43 in mainline linux
2022-01-27drm/amd/amdgpu: fix psp tmr bo pin count leak in SRIOVJonathan Gray
From Jingwen Chen 8662d0c6a36807093aed34b17b930484fd4bf22f in linux 5.15.y/5.15.17 85dfc1d692c9434c37842e610be37cd4ae4e0081 in mainline linux
2022-01-27drm/amdkfd: Fix error handling in svm_range_addJonathan Gray
From Felix Kuehling 4a635b9d5ba5f691e378f7ec20e11b7b04f07a45 in linux 5.15.y/5.15.17 726be40607264b180a2b336c81e1dcff941de618 in mainline linux
2022-01-27drm/amd/display: add else to avoid double destroy clk_mgrJonathan Gray
From Martin Leung 58d33532664c1580beeb127ffe771a7739fb63d3 in linux 5.15.y/5.15.17 11dff0e871037a6ad978e52f826a2eb7f5fb274a in mainline linux
2022-01-27drm/amdgpu/display: set vblank_disable_immediate for DCJonathan Gray
From Alex Deucher f94cf1cb17963905910c2adc332ebb9e44e7fa4b in linux 5.15.y/5.15.17 92020e81ddbeac351ea4a19bcf01743f32b9c800 in mainline linux
2022-01-27drm/amd/display: check top_pipe_to_program pointerJonathan Gray
From Yang Li 1fffa8ffd62fc511d4447b793641252c4743e81c in linux 5.15.y/5.15.17 a689e8d1f80012f90384ebac9dcfac4201f9f77e in mainline linux
2022-01-27drm: panel-orientation-quirks: Add quirk for the Lenovo Yoga Book X91F/LJonathan Gray
From Hans de Goede c350fcc74035f48ee5a7226faee7079dd0ce9565 in linux 5.15.y/5.15.17 bc30c3b0c8a1904d83d5f0d60fb8650a334b207b in mainline linux
2022-01-27drm/amd/display: Fix out of bounds access on DNC31 stream encoder regsJonathan Gray
From Nicholas Kazlauskas 89166801f80dc64083212eef1308bfc62f6844f1 in linux 5.15.y/5.15.17 d374d3b493215d637b9e7be12a93f22caf4c1f97 in mainline linux
2022-01-27drm/amd/display: Fix bug in debugfs crc_win_update entryJonathan Gray
From Wayne Lin 6dcc6706dab10744d277bdc2613fb135c6a632dd in linux 5.15.y/5.15.17 4bef85d4c9491415b7931407b07f24841c1e0390 in mainline linux
2022-01-27drm/radeon/radeon_kms: Fix a NULL pointer dereference in ↵Jonathan Gray
radeon_driver_open_kms() From Zhou Qingyang e833ef0b545e1a5b3eaf00af391c4fd1fb47ffd8 in linux 5.15.y/5.15.17 ab50cb9df8896b39aae65c537a30de2c79c19735 in mainline linux