Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Linux 5.17 drivers #236

Merged
merged 778 commits into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
778 commits
Select commit Hold shift + click to select a range
e12b17b
drm/amd: fix improper docstring syntax
isinyaaa Dec 8, 2021
88e7dd2
drm/amd: append missing includes
isinyaaa Dec 8, 2021
7291af8
drm/amdgpu: fix location of prototype for amdgpu_kms_compat_ioctl
isinyaaa Dec 8, 2021
384e5a9
drm/amdgpu: Handle fault with same timestamp
PhilipYangA Dec 8, 2021
148d0f0
drm/amdgpu: remove power on/off SDMA in SMU hw_init/fini()
Dec 3, 2021
8a1990f
drm/amdgpu: only hw fini SMU fisrt for ASICs need that
Dec 3, 2021
733ab4f
drm/amdgpu: fix incorrect VCN revision in SRIOV
OkabeRintarou Dec 8, 2021
32ec8f7
drm/amdgpu: add helper to load ip_discovery binary from file
Nov 23, 2021
4d91cac
drm/amdgpu: rename discovery_read_binary helper
Nov 22, 2021
fb6a730
drm/amdgpu: add helper to verify ip discovery binary signature
Nov 22, 2021
b2db5e8
drm/amdgpu: read and authenticate ip discovery binary
Nov 22, 2021
ba72889
drm/amdgpu: check df_funcs and its callback pointers
Nov 25, 2021
ee0cc48
drm/amdgpu: introduce a kind of halt state for amdgpu device
Dec 9, 2021
1f39f38
drm/amdgpu: add support for SMU debug option
Nov 30, 2021
2e3f930
drm/amdgpu: Detect if amdgpu in IOMMU direct map mode
PhilipYangA Dec 7, 2021
0fdaf26
drm/amd: add some extra checks that is_dig_enabled is defined
superm1 Dec 10, 2021
ca334f3
drm/amd: move variable to local scope
superm1 Dec 10, 2021
518da98
drm/amdgpu: fix amdgpu_ras_mca_query_error_status scope
isinyaaa Dec 9, 2021
cd79ac6
drm/amdgpu: remove unnecessary variables
isinyaaa Dec 9, 2021
268ea0f
drm/amdgpu: re-format file header comments
isinyaaa Dec 9, 2021
7543a0a
drm/amd/display: Reduce stack size for dml31_ModeSupportAndSystemConf…
Dec 9, 2021
e9add6e
drm/amd/display: Reduce stack size for dml31 UseMinimumDCFCLK
Dec 9, 2021
44d684b
drm/amd/display: fix function scopes
isinyaaa Dec 8, 2021
b74f44f
drivers/amd/pm: drop statement to print FW version for smu_v13
superm1 Dec 13, 2021
9c6b3b6
drm:amdgpu:remove unneeded variable
Dec 9, 2021
9195788
drm/i915: Fix implicit use of struct pci_dev
broonie Dec 13, 2021
393d564
drm/i915: Exclude reserved stolen from driver use
ickle Dec 8, 2021
d53cceb
drm/i915: Sanitycheck device iomem on probe
ickle Dec 9, 2021
18bb05a
drm/i915: Test all device memory on probing
ickle Dec 8, 2021
b08c8b6
drm: document DRM_IOCTL_MODE_GETFB2
emersion Nov 23, 2021
8da5cec
drm/i915/ttm: fix large buffer population trucation
BobBeckett Dec 10, 2021
8d9f608
drm/i915/debugfs: add noreclaim annotations
matt-auld Dec 13, 2021
3a0e9b2
drm/amd/display: Add debugfs entry for ILR
Dec 10, 2021
31b9a52
drm/amd/display: Add src/ext ID info for dummy service
Dec 10, 2021
c119b4f
drm/amd/display: parse and check PSR SU caps
Dec 10, 2021
4bdec99
drm/amd/display: Force det buf size to 192KB with 3+ streams and upsc…
Dec 10, 2021
d6291bc
drm/amd/display: [FW Promotion] Release 0.0.97
anthony-koo2 Dec 10, 2021
69cd14e
drm/amd/display: ODM + MPO window on only one half of ODM
Dec 10, 2021
14a374f
drm/amd/display: implement dc_mode_memclk
Dec 10, 2021
b04c6b0
drm/amd/display: 3.2.166
AMD-aric Dec 10, 2021
1f1565e
drm/amdgpu: SRIOV flr_work should use down_write
Dec 13, 2021
b954f82
drm/amdgpu: move smu_debug_mask to a more proper place
Dec 13, 2021
1ea1e5c
drm/amdgpu: use adev_to_drm to get drm_device pointer
Dec 13, 2021
bd87cf8
drm/amd/pm: Skip power state allocation
Dec 14, 2021
048fb8d
drm/amd/amdgpu: fix psp tmr bo pin count leak in SRIOV
Dec 14, 2021
69b05a5
drm/amd/amdgpu: fix gmc bo pin count leak in SRIOV
Dec 14, 2021
726c3a1
amdgpu: fix some kernel-doc markup
ydirson Dec 13, 2021
b99ea3a
amdgpu: fix some comment typos
ydirson Dec 13, 2021
a3e1059
drm/radeon: Fix syntax errors in comments
Dec 14, 2021
48ebde5
drm/i915: replace X86_FEATURE_PAT with pat_enabled()
lucasdemarchi Dec 2, 2021
df16e1d
drm/i915/guc: Remove racey GEM_BUG_ON
mbrost05 Dec 14, 2021
3f4ab3a
drm/i915/guc: Don't hog IRQs when destroying contexts
johnharr-intel Dec 14, 2021
b7fae3e
drm/i915/guc: Add extra debug on CT deadlock
mbrost05 Dec 14, 2021
24b3699
drm/i915/guc: Kick G2H tasklet if no credits
mbrost05 Dec 14, 2021
87cebdd
drm/i915/guc: Selftest for stealing of guc ids
mbrost05 Dec 14, 2021
a7608f8
drm/format-helper: Add drm_fb_xrgb8888_to_xrgb2101010_toio()
marcan Dec 12, 2021
21f1e47
drm/fourcc: Add packed 10bit YUV 4:2:0 format
6by9 Dec 15, 2021
eba04b6
drivers/amd/pm: smu13: use local variable adev
superm1 Dec 14, 2021
74493f8
drm/amd/pm: restore SMU version print statement for dGPUs
superm1 Dec 14, 2021
7ce700e
drm/amdgpu: Separate vf2pf work item init from virt data exchange
Dec 16, 2021
37b7512
drm/amdgpu: clean up some leftovers from bring up
alexdeucher Dec 13, 2021
1ce9a0e
drm/amd/display: Fix warning comparing pointer to 0
Dec 16, 2021
7658051
drm/i915: Store backpointer to GT in uncore
mwiniars Dec 14, 2021
b0c60c1
drm/i915: Introduce to_gt() helper
mwiniars Dec 14, 2021
9a717f3
drm/i915/display: Use to_gt() helper
mwiniars Dec 14, 2021
ce284d3
drm/i915/gt: Use to_gt() helper
mwiniars Dec 14, 2021
754385d
drm/i915/gem: Use to_gt() helper
mwiniars Dec 14, 2021
86f6497
drm/i915/pxp: Use to_gt() helper
Dec 14, 2021
9e0c30f
drm/i915: Use to_gt() helper
mwiniars Dec 14, 2021
9909fea
drm/i915: Rename i915->gt to i915->gt0
Dec 14, 2021
9be6095
drm/i915: Remove unused bits of i915_vma/active api
mlankhorst Dec 16, 2021
69cdcfb
drm/i915: Change shrink ordering to use locking around unbinding.
mlankhorst Dec 16, 2021
68e1585
drm/i915: Remove pages_mutex and intel_gtt->vma_ops.set/clear_pages m…
mlankhorst Dec 16, 2021
95c7151
drm/i915: Take object lock in i915_ggtt_pin if ww is not set
mlankhorst Dec 16, 2021
8cbed80
drm/i915: Force ww lock for i915_gem_object_ggtt_pin_ww, v2.
mlankhorst Dec 16, 2021
1fca063
drm/i915/guc: Speed up GuC log dumps
johnharr-intel Dec 11, 2021
2df2ef9
drm/i915/guc: Increase GuC log size for CONFIG_DEBUG_GEM
johnharr-intel Dec 11, 2021
edcdc15
drm/i915/guc: Flag an error if an engine reset fails
johnharr-intel Dec 11, 2021
087c0c0
drm/i915: Trylock the object when shrinking
mlankhorst Dec 16, 2021
98bae58
drm/i915: Require object lock when freeing pages during destruction
mlankhorst Dec 16, 2021
d845cbc
drm/i915: Add ww ctx to i915_gem_object_trylock
mlankhorst Dec 16, 2021
e3a466c
drm/i915/guc: Request RP0 before loading firmware
vsbelgaum Dec 16, 2021
9b36c93
drm/i915: Avoid using the i915_fence_array when collecting dependencies
Dec 21, 2021
8ed19f2
drm/i915: remove questionable fence optimization during copy
ChristianKoenigAMD Dec 21, 2021
9792e17
drm/i915: Break out the i915_deps utility
Dec 21, 2021
ee7b6a6
drm/i915: Require the vm mutex for i915_vma_bind()
Dec 21, 2021
450ace4
x86/MCE/AMD, EDAC/mce_amd: Support non-uniform MCA bank type enumeration
yghannam Dec 16, 2021
a58736e
drm/i915: Use trylock instead of blocking lock for __i915_gem_free_ob…
mlankhorst Dec 22, 2021
279fcf7
drm/i915/fbc: Remember to update FBC state even when not reallocating…
vsyrjala Dec 16, 2021
1984322
drm/amdgpu: Filter security violation registers
bokun-xxmtg Dec 16, 2021
6a9c163
drm/amdgpu: Add *_SOC15_IP_NO_KIQ() macro definitions
Dec 13, 2021
fa29dfa
drm/amdgpu: Modify indirect register access for gmc_v9_0 sriov
Dec 13, 2021
88baa46
drm/amdgpu: get xgmi info before ip_init
Dec 15, 2021
990697b
drm/amdgpu: Modify indirect register access for gfx9 sriov
Dec 15, 2021
0ee50aa
drm/amdgpu: add gpu reset control for umc page retirement
Dec 10, 2021
b85be23
drm/amdkfd: reset queue which consumes RAS poison (v2)
Dec 6, 2021
9f4e0bb
drm/amdgpu: Don't inherit GEM object VMAs in child process
rajbhar Nov 26, 2021
f60206b
drm/amdgpu: Send Message to SMU on aldebaran passthrough for sbr hand…
Dec 17, 2021
2ca830f
drm/amdgpu: fixup bad vram size on gmc v8
Dec 15, 2021
9392441
drm/amdgpu: Call amdgpu_device_unmap_mmio() if device is unplugged to…
OkabeRintarou Dec 16, 2021
464bac3
drm/amdgpu: Remove the redundant code of psp bootloader functions
Dec 8, 2021
1875b42
drm/amdgpu: Increase potential product_name to 64 characters
kentrussell Dec 13, 2021
9e244c6
drm/amdgpu: Enable unique_id for Aldebaran
kentrussell Dec 13, 2021
d1465c9
drm/amdgpu: Only overwrite serial if field is empty
kentrussell Dec 13, 2021
9d9a0ba
drm/amdgpu: Access the FRU on Aldebaran
kentrussell Dec 13, 2021
aca7b9c
drm/amdgpu: Check the memory can be accesssed by ttm_device_clear_dma…
Dec 17, 2021
733f791
drm/amd/display: Limit max link cap with LTTPR caps
Dec 3, 2021
8d51d4c
drm/amd/display: Refactor vendor specific link training sequence
Dec 7, 2021
7b0d7d5
drm/amd/display: Block z-states when stutter period exceeds criteria
Dec 7, 2021
507e259
drm/amd/display: Fix check for null function ptr
Dec 3, 2021
a52ecee
drm/amd/display: Remove CR AUX RD Interval limit for LTTPR
Dec 9, 2021
0bf8376
drm/amd/display: Add reg defs for DCN303
Dec 8, 2021
b4333c4
drm/amd/display: Undo ODM combine
Dec 9, 2021
f494816
drm/amd/display: [FW Promotion] Release 0.0.98
anthony-koo2 Dec 11, 2021
6a70a9f
drm/amd/display: 3.2.167
AMD-aric Dec 11, 2021
4083aee
drm/amd/display: define link res and make it accessible to all link i…
Nov 25, 2021
9143984
drm/amd/display: populate link res in both detection and validation
Nov 26, 2021
31b7900
drm/amd/display: access hpo dp link encoder only through link resource
Nov 27, 2021
ece3ebd
drm/amd/display: support dynamic HPO DP link encoder allocation
Nov 29, 2021
a6cbe53
drm/amd/display: get and restore link res map
Dec 10, 2021
4a1b9f1
drm/amdgpu: drop redundant semicolon
Dec 20, 2021
6d63bdd
drm/amdgpu: save error count in RAS poison handler
Dec 20, 2021
f7889bf
amdgpu/pm: Make sysfs pm attributes as read-only for VFs
Dec 14, 2021
b9b1f0f
drm/amd/display: Fix the uninitialized variable in enable_stream_feat…
Dec 18, 2021
8e147af
drm/amd/display: fix dereference before NULL check
JoseExposito Dec 26, 2021
9b8c025
drm/amdgpu: add dummy event6 for vega10
Dec 29, 2021
58e5160
drm/amdgpu: explicitly check for s0ix when evicting resources
superm1 Dec 29, 2021
f9755ad
drm/amdgpu: don't set s3 and s0ix at the same time
superm1 Dec 29, 2021
4ac3b1c
drm/amd/display: Fix underflow for fused display pipes case
Dec 13, 2021
32218ae
drm/amd/display: unhard code link to phy idx mapping in dc link and c…
Dec 13, 2021
ada786c
drm/amd/display: Don't reinitialize DMCUB on s0ix resume
Dec 15, 2021
65647aa
drm/amd/display: Add check for forced_clocks debug option
Dec 16, 2021
c480202
drm/amd/display: introduce mpo detection flags
Dec 15, 2021
0a13e6d
drm/amd/display: Add version check before using DP alt query interface
Dec 16, 2021
b0aedb3
drm/i915/pxp: Hold RPM wakelock during PXP unbind
Jan 6, 2022
4072dd8
drm/i915: don't call free_mmap_offset when purging
matt-auld Jan 6, 2022
1fca0dd
drm/i915/ttm: only fault WILLNEED objects
matt-auld Jan 6, 2022
f7fe96f
drm/i915/ttm: add unmap_virtual callback
matt-auld Jan 6, 2022
1965940
drm/i915/ttm: ensure we unmap when purging
matt-auld Jan 6, 2022
af179d7
Revert "drm/amd/display: Fix for otg synchronization logic"
torvalds Jan 11, 2022
5fe0259
drm/atomic: Check new_crtc_state->active to determine if CRTC needs d…
Dec 30, 2021
c771f11
drm/amdgpu: Clear garbage data in err_data before usage
Jan 6, 2022
57122e8
drm/amd/display: explicitly set is_dsc_supported to false before use
superm1 Jan 5, 2022
78fdfa2
drm/amdgpu: Enable second VCN for certain Navy Flounder.
Jan 6, 2022
ab1ebf1
drm/amdgpu: Unmap MMIO mappings when device is not unplugged
OkabeRintarou Jan 5, 2022
eff79fd
drm/amdgpu: do not pass ttm_resource_manager to gtt_mgr
Jan 7, 2022
ff01871
drm/amdkfd: remove unused function
Jan 7, 2022
e4bfdef
drm/amdgpu: do not pass ttm_resource_manager to vram_mgr
Jan 7, 2022
67418fd
drm/amdgpu: recover gart table at resume
Jan 7, 2022
df9961d
drm/amd/amdgpu: Add pcie indirect support to amdgpu_mm_wreg_mmio_rlc()
Jan 7, 2022
e9b7b57
drm/amdgpu: use default_groups in kobj_type
gregkh Jan 6, 2022
fa943de
drm/amd/display: reset dcn31 SMU mailbox on failures
superm1 Jan 7, 2022
b41f8ea
Revert "drm/amdgpu: Don't inherit GEM object VMAs in child process"
rajbhar Jan 10, 2022
3c83049
drm/amd/display: invalid parameter check in dmub_hpd_callback
JoseExposito Jan 9, 2022
75a4925
drm/amdgpu: not return error on the init_apu_flags
Nov 26, 2021
e81d761
drm/amd/pm: only send GmiPwrDnControl msg on master die (v3)
Jan 10, 2022
2ba3e17
drm/amdgpu: Use correct VIEWPORT_DIMENSION for DCN2
Jan 4, 2022
6156a51
drm/ttm: fix compilation on ARCH=um
jmberg-intel Dec 20, 2021
8c01353
drm: fix error found in some cases after the patch d1af5cd86997
Dec 2, 2021
7836400
drm/amdgpu: Enable recovery on yellow carp
Jan 11, 2022
13ae63e
drm/amdgpu: invert the logic in amdgpu_device_should_recover_gpu()
alexdeucher Jan 11, 2022
285a668
drm/amdgpu: don't do resets on APUs which don't support it
alexdeucher Jan 13, 2022
f86f4f2
drm/amdgpu: Fix rejecting Tahiti GPUs
lukasfink1 Jan 14, 2022
d45ccc2
drm/amdgpu: drop flags check for CHIP_IP_DISCOVERY
alexdeucher Jan 14, 2022
6258a32
drm/amd/display: Revert W/A for hard hangs on DCN20/DCN21
superm1 Jan 7, 2022
20f1a20
drm/i915/display/ehl: Update voltage swing table
zehortigoza Jan 13, 2022
3dbbd2f
drm/i915/display/adlp: Implement new step in the TC voltage swing pro…
zehortigoza Jan 13, 2022
8acbe6f
drm/amdgpu: apply vcn harvest quirk
Jan 14, 2022
87fa06c
drm/amd/amdgpu: fixing read wrong pf2vf data in SRIOV
Jan 13, 2022
37d1f7c
drm/radeon: fix error handling in radeon_driver_open_kms
ChristianKoenigAMD Jan 17, 2022
061c9cc
drm: panel-orientation-quirks: Add quirk for the 1Netbook OneXPlayer
intersectRaven Jan 13, 2022
23e2121
i915: simplify subdirectory registration with register_sysctl()
mcgrof Jan 22, 2022
2ea3f9b
lib/stackdepot: allow optional init and stack_table allocation by kvm…
tehcaster Jan 22, 2022
8cc50e0
drm/atomic: Add the crtc to affected crtc only if uapi.enable = true
Oct 4, 2021
abf89b8
drm/i915: Flush TLBs before releasing backing store
tursulin Oct 19, 2021
43ed49b
drm/amd/display: Fix for otg synchronization logic
Nov 15, 2021
374edcb
drm/amd/display: change FIFO reset condition to embedded display only
Jan 19, 2022
6efd7a5
drm/amdgpu: filter out radeon secondary ids as well
alexdeucher Jan 20, 2022
2caf781
drm/amdgpu/display: adjust msleep limit in dp_wait_for_training_aux_r…
alexdeucher Jan 20, 2022
06286f5
drm/amdgpu/display: use msleep rather than udelay for long delays
alexdeucher Jan 20, 2022
86dd652
drm/amd/display/dc/calcs/dce_calcs: Fix a memleak in calculate_bandwi…
zhou1615 Jan 24, 2022
5f289cf
drm/amd/display: Fix FP start/end for dcn30_internal_validate_bw.
BNieuwenhuizen Jan 24, 2022
257a520
drm/amd/display: Wrap dcn301_calculate_wm_and_dlg for FPU.
BNieuwenhuizen Jan 24, 2022
e90494f
drm/amdgpu/display: Remove t_srx_delay_us.
BNieuwenhuizen Jan 23, 2022
7904264
drm/privacy-screen: honor acpi=off in detect_thinkpad_privacy_screen
lzto Jan 23, 2022
5c48d57
drm/i915: Allocate intel_engine_coredump_alloc with ALLOW_FAIL
mbrost05 Jan 21, 2022
262820f
drm/i915: Lock timeline mutex directly in error path of eb_pin_timeline
mbrost05 Jan 11, 2022
11941eb
drm/i915/overlay: Prevent divide by zero bugs in scaling
Jan 24, 2022
8efb201
drm/i915/pmu: Use PM timestamp instead of RING TIMESTAMP for reference
unerlige Jan 11, 2022
1e3f95f
drm/i915/adlp: Fix TypeC PHY-ready status readout
ideak Jan 26, 2022
1ddd68a
drm/amd/pm: correct the MGpuFanBoost support for Beige Goby
Jan 24, 2022
65c45d0
drm/amd: Warn users about potential s0ix problems
superm1 Jan 11, 2022
a2cfe22
drm/i915/pmu: Fix KMD and GuC race on accessing busyness
unerlige Jan 25, 2022
6589214
drm/amd: add support to check whether the system is set to s3
superm1 Jan 26, 2022
d69a6a8
drm/amd: Only run s3 or s0ix if system is configured properly
superm1 Jan 26, 2022
439a811
drm/amdgpu: fix a potential GPU hang on cyan skillfish
Jan 28, 2022
dc8c24c
drm/amd/display: Update watermark values for DCN301
Jan 28, 2022
886d3c3
drm/amd/display: watermark latencies is not enough on DCN31
Jan 28, 2022
1066eba
drm/amd/display: revert "Reset fifo after enable otg"
Jan 28, 2022
73b689e
drm/amd/display: Force link_rate as LINK_RATE_RBR2 for 2018 15" Apple…
aunali1 Jan 29, 2022
c6a550c
drm/amd: avoid suspend on dGPUs w/ s2idle support when runtime PM ena…
superm1 Jan 26, 2022
ce57d36
drm/amdgpu: fix logic inversion in check
ChristianKoenigAMD Jan 28, 2022
f75de06
drm/i915: Fix oops due to missing stack depot
vsyrjala Jan 26, 2022
8a27675
drm/i915: Disable DRRS on IVB/HSW port != A
vsyrjala Jan 28, 2022
6df68d5
drm/i915/ttm: Return some errors instead of trying memcpy move
Feb 1, 2022
d38563a
drm/i915: Fix header test for !CONFIG_X86
lucasdemarchi Jan 31, 2022
1f6c863
drm/i915: Allow !join_mbus cases for adlp+ dbuf configuration
vsyrjala Feb 4, 2022
22f2826
drm/i915: Populate pipe dbuf slices more accurately during readout
vsyrjala Feb 4, 2022
5fca1f3
drm/i915: Workaround broken BIOS DBUF configuration on TGL/RKL
vsyrjala Feb 4, 2022
d777cf7
drm/privacy-screen: Fix sphinx warning
jwrdegoede Feb 7, 2022
6cb6449
display/amd: decrease message verbosity about watermarks table failure
superm1 Jan 25, 2022
0e34a0d
drm/amdgpu: add utcl2_harvest to gc 10.3.1
aaliuamd Jan 29, 2022
69c902b
drm/amd/display: Cap pflip irqs per max otg number
Feb 2, 2022
0ae7328
drm/amd/display: fix yellow carp wm clamping
Jan 27, 2022
f1bdb48
drm/amd/display: keep eDP Vdd on when eDP stream is already enabled
Jan 28, 2022
60811a4
drm/amd/pm: fix hwmon node of power1_label create issue
Feb 8, 2022
6e4c83b
drm/amdgpu/display: change pipe policy for DCN 2.0
alexdeucher Feb 3, 2022
108c38a
drm/i915: Fix dbuf slice config lookup
vsyrjala Feb 7, 2022
0f828a3
drm/i915: Fix mbus join config lookup
vsyrjala Feb 7, 2022
b36fd2d
drm/i915/ttm: tweak priority hint selection
matt-auld Feb 9, 2022
959cadd
drm/i915/opregion: check port number bounds for SWSCI display power s…
jnikula Feb 10, 2022
8cda510
drm/i915/fbc: Fix the plane end Y offset check
vsyrjala Feb 10, 2022
3fa97c0
drm/amd/pm: correct UMD pstate clocks for Dimgrey Cavefish and Beige …
Jan 18, 2022
5bcd95b
drm/amdgpu: skipping SDMA hw_init and hw_fini for S0ix.
Feb 10, 2022
6a36966
drm/amd/pm: correct the sequence of sending gpu reset msg
yifancom Feb 11, 2022
1f54a0a
drm/radeon: Fix backlight control on iMac 12,1
nicholasbishop Feb 11, 2022
534d309
drm/atomic: Don't pollute crtc_state->mode_blob with error pointers
vsyrjala Feb 9, 2022
2856077
drm/i915: Widen the QGV point mask
vsyrjala Feb 14, 2022
beb992b
drm/i915: Disconnect PHYs left connected by BIOS on disabled ports
ideak Feb 17, 2022
cfabeff
drm/i915: Correctly populate use_sagv_wm for all pipes
vsyrjala Feb 18, 2022
9096e5b
drm/i915: Fix bw atomic check when switching between SAGV vs. no SAGV
vsyrjala Feb 18, 2022
01765a7
drm/i915/dg2: Print PHY name properly on calibration error
mattrope Feb 15, 2022
f435a7a
drm/amdgpu: disable MMHUB PG for Picasso
Jan 20, 2022
ef9bd46
drm/amd/pm: fix some OEM SKU specific stability issues
Jan 20, 2022
0c1189b
drm/amd/display: For vblank_disable_immediate, check PSR is really used
Feb 15, 2022
cbed9c5
drm/radeon: fix variable type
ChristianKoenigAMD Feb 21, 2022
0ea5510
drm/edid: Always set RGB444
mripard Feb 3, 2022
bf994ab
drm/amd: Check if ASPM is enabled from PCIe subsystem
superm1 Feb 1, 2022
65a7962
drm/amd/display: Fix stream->link_enc unassigned during stream removal
Jan 25, 2022
77f911f
drm/amdgpu: do not enable asic reset for raven2
Feb 17, 2022
01685af
drm/amdgpu: bypass tiling flag check in virtual display case (v2)
Feb 18, 2022
0ef2b4a
drm/amdgpu: check vm ready by amdgpu_vm->evicting flag
yuq Feb 21, 2022
6e261ec
drm/i915/guc/slpc: Correct the param count for unset param
vsbelgaum Feb 16, 2022
597313f
drm/i915: s/JSP2/ICP2/ PCH
vsyrjala Feb 24, 2022
d6a5696
drm/vrr: Set VRR capable prop only if it is attached to connector
Feb 25, 2022
0e398a0
drm/amdgpu: fix suspend/resume hang regression
yuq Mar 1, 2022
01324da
drm/i915/psr: Set "SF Partial Frame Enable" also on full update
hogander Feb 25, 2022
ace3763
drm: Add `drm_sysfs_connector_status_event()`
dumbbell Feb 20, 2023
54145a5
scripts/diffignore: Ignore vt_drmfb.* when diff'ing with Linux
dumbbell Aug 15, 2023
ebaf4bd
Reduce diff with Linux 5.17
dumbbell Aug 15, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 4 additions & 2 deletions amd/amdgpu/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ SRCS+= amdgpu_afmt.c \
amdgpu_drv.c \
amdgpu_eeprom.c \
amdgpu_encoders.c \
amdgpu_fb.c \
amdgpu_fdinfo.c \
amdgpu_fence.c \
amdgpu_freebsd.c \
Expand Down Expand Up @@ -853,6 +852,7 @@ CWARNFLAGS.amdgpu_atpx_handler.c= -Wno-missing-prototypes
CWARNFLAGS.amdgpu_bo_list.c= -Wno-unused-but-set-variable -Wno-tautological-constant-out-of-range-compare
CWARNFLAGS.amdgpu_csa.c= -Wno-unused-but-set-variable
CWARNFLAGS.amdgpu_device.c= -Wno-missing-prototypes -Wno-unused-but-set-variable
CWARNFLAGS.amdgpu_discovery.c= -Wno-unused-function
CWARNFLAGS.amdgpu_dm_debugfs.c= -Wno-pointer-bool-conversion -Wno-unused-but-set-variable
CWARNFLAGS.amdgpu_fence.c= -Wno-unused-variable
CWARNFLAGS.amdgpu_ioc32.c= -Wno-missing-prototypes
Expand Down Expand Up @@ -889,14 +889,16 @@ CWARNFLAGS.sdma_v4_0.c= -Wno-unused-but-set-variable
CWARNFLAGS.si_dpm.c= -Wno-gnu-variable-sized-type-not-at-end
CWARNFLAGS.si_smc.c= -Wno-gnu-variable-sized-type-not-at-end
CWARNFLAGS.si.c= -Wno-gnu-variable-sized-type-not-at-end
CWARNFLAGS.sienna_cichlid_ppt.c= -Wno-uninitialized
CWARNFLAGS.sienna_cichlid_ppt.c= -Wno-missing-prototypes -Wno-uninitialized
CWARNFLAGS.smuio_v9_0.c= -Wno-missing-prototypes
CWARNFLAGS.smuio_v11_0.c= -Wno-missing-prototypes
CWARNFLAGS.smuio_v13_0.c= -Wno-missing-prototypes
CWARNFLAGS.umc_v6_7.c= -Wno-unused-but-set-variable
CWARNFLAGS.vangogh_ppt.c= -Wno-missing-prototypes -Wno-unused-but-set-variable
CWARNFLAGS.vcn_v3_0.c= -Wno-missing-prototypes -Wno-unused-but-set-variable

# display/amdgpu_dm
CWARNFLAGS.amdgpu_dm_helpers.c= -Wno-int-in-bool-context
CWARNFLAGS.amdgpu_dm_mst_types.c= -Wno-unused-but-set-variable
CWARNFLAGS.amdgpu_dm_pp_smu.c= -Wno-missing-prototypes -Wno-incompatible-function-pointer-types
CWARNFLAGS.amdgpu_dm_psr.c= -Wno-unused-but-set-variable
Expand Down
10 changes: 10 additions & 0 deletions drivers/dma-buf/dma-fence.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
*/

#include <linux/dma-fence.h>
#include <linux/seq_file.h>

MALLOC_DECLARE(M_DMABUF);

Expand Down Expand Up @@ -451,6 +452,15 @@ dma_fence_wait_any_timeout(struct dma_fence **fences, uint32_t count,
return (rv);
}

void
dma_fence_describe(struct dma_fence *fence, struct seq_file *seq)
{
seq_printf(seq, "%s %s seq %llu %ssignalled\n",
fence->ops->get_driver_name(fence),
fence->ops->get_timeline_name(fence), fence->seqno,
dma_fence_is_signaled(fence) ? "" : "un");
}

/*
* Initialize a custom fence.
*/
Expand Down
26 changes: 24 additions & 2 deletions drivers/dma-buf/dma-resv.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include <linux/mm.h>
#include <linux/sched/mm.h>
#include <linux/mmu_notifier.h>
#include <linux/seq_file.h>

/**
* DOC: Reservation Object Overview
Expand Down Expand Up @@ -324,8 +325,7 @@ void dma_resv_add_excl_fence(struct dma_resv *obj, struct dma_fence *fence)
if (old)
i = old->shared_count;

if (fence)
dma_fence_get(fence);
dma_fence_get(fence);

write_seqcount_begin(&obj->seq);
/* write_seqcount_begin provides the necessary memory barrier */
Expand Down Expand Up @@ -698,6 +698,28 @@ bool dma_resv_test_signaled(struct dma_resv *obj, bool test_all)
}
EXPORT_SYMBOL_GPL(dma_resv_test_signaled);

/**
* dma_resv_describe - Dump description of the resv object into seq_file
* @obj: the reservation object
* @seq: the seq_file to dump the description into
*
* Dump a textual description of the fences inside an dma_resv object into the
* seq_file.
*/
void dma_resv_describe(struct dma_resv *obj, struct seq_file *seq)
{
struct dma_resv_iter cursor;
struct dma_fence *fence;

dma_resv_for_each_fence(&cursor, obj, true, fence) {
seq_printf(seq, "\t%s fence:",
dma_resv_iter_is_exclusive(&cursor) ?
"Exclusive" : "Shared");
dma_fence_describe(fence, seq);
}
}
EXPORT_SYMBOL_GPL(dma_resv_describe);

#if IS_ENABLED(CONFIG_LOCKDEP)
static int __init dma_resv_lockdep(void)
{
Expand Down
22 changes: 15 additions & 7 deletions drivers/gpu/drm/amd/amdgpu/amdgpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,6 @@ struct amdgpu_flip_work {
uint64_t base;
struct drm_pending_vblank_event *event;
struct amdgpu_bo *old_abo;
struct dma_fence *excl;
unsigned shared_count;
struct dma_fence **shared;
struct dma_fence_cb cb;
Expand Down Expand Up @@ -813,6 +812,7 @@ struct amd_powerplay {

#define AMDGPU_RESET_MAGIC_NUM 64
#define AMDGPU_MAX_DF_PERFMONS 4
#define AMDGPU_PRODUCT_NAME_LEN 64
struct amdgpu_device {
struct device *dev;
struct pci_dev *pdev;
Expand Down Expand Up @@ -1084,7 +1084,7 @@ struct amdgpu_device {

/* Chip product information */
char product_number[16];
char product_name[32];
char product_name[AMDGPU_PRODUCT_NAME_LEN];
char serial[20];

atomic_t throttling_logging_enabled;
Expand All @@ -1097,7 +1097,9 @@ struct amdgpu_device {
pci_channel_state_t pci_channel_state;

struct amdgpu_reset_control *reset_cntl;
uint32_t ip_versions[HW_ID_MAX][HWIP_MAX_INSTANCE];
uint32_t ip_versions[MAX_HWIP][HWIP_MAX_INSTANCE];

bool ram_is_direct_mapped;
};

static inline struct amdgpu_device *drm_to_adev(struct drm_device *ddev)
Expand Down Expand Up @@ -1320,6 +1322,8 @@ void amdgpu_device_flush_hdp(struct amdgpu_device *adev,
void amdgpu_device_invalidate_hdp(struct amdgpu_device *adev,
struct amdgpu_ring *ring);

void amdgpu_device_halt(struct amdgpu_device *adev);

/* atpx handler */
#if defined(CONFIG_VGA_SWITCHEROO)
void amdgpu_register_atpx_handler(void);
Expand Down Expand Up @@ -1363,8 +1367,6 @@ int amdgpu_device_resume(struct drm_device *dev, bool fbcon);
u32 amdgpu_get_vblank_counter_kms(struct drm_crtc *crtc);
int amdgpu_enable_vblank_kms(struct drm_crtc *crtc);
void amdgpu_disable_vblank_kms(struct drm_crtc *crtc);
long amdgpu_kms_compat_ioctl(struct file *filp, unsigned int cmd,
unsigned long arg);
int amdgpu_info_ioctl(struct drm_device *dev, void *data,
struct drm_file *filp);

Expand Down Expand Up @@ -1408,12 +1410,10 @@ int amdgpu_acpi_smart_shift_update(struct drm_device *dev, enum amdgpu_ss ss_sta
int amdgpu_acpi_pcie_notify_device_ready(struct amdgpu_device *adev);

void amdgpu_acpi_get_backlight_caps(struct amdgpu_dm_backlight_caps *caps);
bool amdgpu_acpi_is_s0ix_active(struct amdgpu_device *adev);
void amdgpu_acpi_detect(void);
#else
static inline int amdgpu_acpi_init(struct amdgpu_device *adev) { return 0; }
static inline void amdgpu_acpi_fini(struct amdgpu_device *adev) { }
static inline bool amdgpu_acpi_is_s0ix_active(struct amdgpu_device *adev) { return false; }
static inline void amdgpu_acpi_detect(void) { }
static inline bool amdgpu_acpi_is_power_shift_control_supported(void) { return false; }
static inline int amdgpu_acpi_power_shift_control(struct amdgpu_device *adev,
Expand All @@ -1422,6 +1422,14 @@ static inline int amdgpu_acpi_smart_shift_update(struct drm_device *dev,
enum amdgpu_ss ss_state) { return 0; }
#endif

#if defined(CONFIG_ACPI) && defined(CONFIG_SUSPEND)
bool amdgpu_acpi_is_s3_active(struct amdgpu_device *adev);
bool amdgpu_acpi_is_s0ix_active(struct amdgpu_device *adev);
#else
static inline bool amdgpu_acpi_is_s0ix_active(struct amdgpu_device *adev) { return false; }
static inline bool amdgpu_acpi_is_s3_active(struct amdgpu_device *adev) { return false; }
#endif

int amdgpu_cs_find_mapping(struct amdgpu_cs_parser *parser,
uint64_t addr, struct amdgpu_bo **bo,
struct amdgpu_bo_va_mapping **mapping);
Expand Down
39 changes: 33 additions & 6 deletions drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1036,6 +1036,20 @@ void amdgpu_acpi_detect(void)
}
}

#if IS_ENABLED(CONFIG_SUSPEND)
/**
* amdgpu_acpi_is_s3_active
*
* @adev: amdgpu_device_pointer
*
* returns true if supported, false if not.
*/
bool amdgpu_acpi_is_s3_active(struct amdgpu_device *adev)
{
return !(adev->flags & AMD_IS_APU) ||
(pm_suspend_target_state == PM_SUSPEND_MEM);
}

/**
* amdgpu_acpi_is_s0ix_active
*
Expand All @@ -1045,15 +1059,28 @@ void amdgpu_acpi_detect(void)
*/
bool amdgpu_acpi_is_s0ix_active(struct amdgpu_device *adev)
{
#if IS_ENABLED(CONFIG_AMD_PMC) && IS_ENABLED(CONFIG_SUSPEND)
if (!(adev->flags & AMD_IS_APU) ||
(pm_suspend_target_state != PM_SUSPEND_TO_IDLE))
return false;

#ifdef __linux__
if (acpi_gbl_FADT.flags & ACPI_FADT_LOW_POWER_S0) {
if (!(acpi_gbl_FADT.flags & ACPI_FADT_LOW_POWER_S0)) {
#elif defined(__FreeBSD__)
if (AcpiGbl_FADT.Flags & ACPI_FADT_LOW_POWER_S0) {
if (!(AcpiGbl_FADT.Flags & ACPI_FADT_LOW_POWER_S0)) {
#endif
if (adev->flags & AMD_IS_APU)
return pm_suspend_target_state == PM_SUSPEND_TO_IDLE;
dev_warn_once(adev->dev,
"Power consumption will be higher as BIOS has not been configured for suspend-to-idle.\n"
"To use suspend-to-idle change the sleep mode in BIOS setup.\n");
return false;
}
#endif

#if !IS_ENABLED(CONFIG_AMD_PMC)
dev_warn_once(adev->dev,
"Power consumption will be higher as the kernel has not been compiled with CONFIG_AMD_PMC.\n");
return false;
#else
return true;
#endif /* CONFIG_AMD_PMC */
}

#endif /* CONFIG_SUSPEND */
Loading