Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
c220215
ZEN: Add sysctl and CONFIG to disallow unprivileged CLONE_NEWUSER
heftig Sep 16, 2019
e81a18c
drivers/firmware: skip simpledrm if nvidia-drm.modeset=1 is set
martinezjavier May 19, 2022
cf8f76c
arch/Kconfig: Default to maximum amount of ASLR bits
heftig Jan 13, 2024
d81e943
amdgpu: enable overdrive by default
BoukeHaarsma23 Dec 12, 2023
e449809
drm: panel-orientation-quirks: Add quirk for AYA NEO 2 model
Samsagax Jun 21, 2023
b0a4037
drm: panel-orientation-quirks: Add quirk for AYA NEO Founder edition
Samsagax Jun 21, 2023
56ec8d5
drm: panel-orientation-quirks: Add quirk for AYA NEO GEEK
Samsagax Jun 21, 2023
5a587d4
drm: panel-orientation-quirks: Add quirk for Ayn Loki Zero
BoukeHaarsma23 Oct 7, 2023
ee5c6c7
drm: panel-orientation-quirks: Add quirk for Ayn Loki Max
BoukeHaarsma23 Oct 7, 2023
ad8aade
Ayaneo geek headset patch
BoukeHaarsma23 Sep 22, 2023
8a01a81
ayaneo 2 headphone fix
BoukeHaarsma23 Sep 22, 2023
9733953
HACK: add KConfig to enable driver-specific color mgmt props
melissawen Apr 22, 2023
e75761e
Don't create color_mgmt_properties on asics < SIENNA_CICHLID
BoukeHaarsma23 Dec 15, 2023
1bd3d58
drm: Add GPU reset sysfs event
contactshashanksharma Mar 7, 2022
945b74b
drm/amdgpu: add work function for GPU reset event
contactshashanksharma Mar 7, 2022
a37b55c
drm/amdgpu: schedule GPU reset event work function
Mar 10, 2022
b756809
oxp-sensors: hwmon: Add OrangePi Neo PWM fan control
pastaq Mar 28, 2024
78c8501
oxp-sensors: hwmon: Add OneXPlayer 2 and OneXFly
pastaq Mar 28, 2024
f12bdbb
oxp-sensors: hwmon: Add support for AYANEO 2s, air 1s, geek 1s and ku…
pastaq Mar 28, 2024
61740ea
oxp-sensors: hwmon: Add GPD Win Mini
pastaq Mar 28, 2024
cc81de3
bump the sensitivity of AMD SFH
antheas Mar 3, 2024
0545e78
IIO: add aya neo tablet identifier
BoukeHaarsma23 Apr 10, 2024
acbef60
iio: imu: Add driver for Bosch BMI260 IMU
justinweiss Feb 14, 2024
39dc3ed
Codec: Add aw87xxx codec with partial acpi implementation
ruineka Apr 25, 2024
3c361b0
Updated AW87xxx driver to be more verbose for debugging purposes, but…
CVMagic May 16, 2024
a23fb72
Updated AW87xxx driver to automatically enumerate a second I2C chip i…
CVMagic May 19, 2024
98c4c31
Updated AW87xxx driver to implement Suspend and Resume.
CVMagic May 22, 2024
9a3f8a9
fixup aw87xxx.{c,h} warnings
BoukeHaarsma23 Jul 27, 2024
b88198e
Add Atari VCS quirk
fewtarius May 28, 2024
584aafc
iio: imu: bmi323: Use iio read_acpi_mount_matrix() helper
NeroReflex May 23, 2024
db41c3a
fix Air 1S audio - thanks in part to @linh1987!
fewtarius Jul 26, 2024
fdb5899
platform/x86: asus-wmi: Add quirk for ROG Ally X
flukejones Jul 24, 2024
3b27942
Fix ROG ALLY X audio
jlobue10 Jul 13, 2024
e65c67c
Add azoth
flukejones Jun 18, 2024
bbb6229
Input: xpad - add support for ASUS ROG RAIKIRI PRO
flukejones Jun 7, 2024
b98a698
hid-asus: use hid for brightness control on keyboard
flukejones May 13, 2024
e88bc3b
platform/x86: asus-wmi: don't fail if platform_profile already regist…
flukejones May 23, 2024
096348c
platform/x86: asus-wmi: fix TUF laptop RGB variant
flukejones Jul 13, 2024
ca0cc4f
ALSA: hda/realtek: cs35l41: Fixup remaining asus strix models
flukejones Jul 15, 2024
58be6c2
hid-asus: add ROG Ally X prod ID to quirk list
flukejones Jul 24, 2024
ba7f94b
platform/x86 asus-armoury: move existing tunings to asus-armoury module
flukejones May 30, 2024
638854b
platform/x86: asus-armoury: add dgpu tgp control
flukejones Jun 2, 2024
b71fe51
platform/x86: asus-armoury: add apu-mem control support
flukejones Jun 2, 2024
b5f169c
platform/x86: asus-armoury: add core count control
flukejones Jun 2, 2024
dd25e1d
asus-wmi: deprecate bios features
flukejones Jun 3, 2024
c13f8b8
HID: asus: add ROG Ally xpad settings
flukejones Jul 25, 2024
9f43d14
Use DMI matching for conflicting SSID 0x1f660101 between Ayaneo and AYN
CVMagic Jul 13, 2024
245ab97
hid-asus-ally-x: Basic driver for the ASUS ROG Ally X
flukejones Jul 27, 2024
ceba9d0
linux-chimeraos v6.10.2-chos1
BoukeHaarsma23 Jul 28, 2024
35bfea3
Add Aya Neo 2S orientation quirk
alkazar Jul 31, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
drm/amdgpu: add work function for GPU reset event
This patch adds a work function, which sends a GPU reset
uevent and some contextual infomration, like the PID and
some status flags. This work should be scheduled during
a GPU reset.

The userspace can do some recovery and post-processing work
based on this event and information.

V2: Addressed review comments from Christian
- Changed the name of the work to gpu_reset_event_work
- Added a structure to accommodate some additional information
  (like a PID and some flags)
- Do not add new structure in amdgpu.h

Cc: Alexander Deucher <[email protected]>
Cc: Christian Koenig <[email protected]>
Cc: Amaranath Somalapuram <[email protected]>
Signed-off-by: Shashank Sharma <[email protected]>
(cherry picked from commit f63b09e)
[Forward port to 6.0]
Signed-off-by: Cristian Ciocaltea <[email protected]>
  • Loading branch information
contactshashanksharma authored and BoukeHaarsma23 committed Jul 28, 2024
commit 945b74ba992c8c0fbca2a1c45a0eeb665a29ee59
3 changes: 3 additions & 0 deletions drivers/gpu/drm/amd/amdgpu/amdgpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
#include <drm/amdgpu_drm.h>
#include <drm/drm_gem.h>
#include <drm/drm_ioctl.h>
#include <drm/drm_sysfs.h>

#include <kgd_kfd_interface.h>
#include "dm_pp_interface.h"
Expand Down Expand Up @@ -1101,6 +1102,7 @@ struct amdgpu_device {

int asic_reset_res;
struct work_struct xgmi_reset_work;
struct work_struct gpu_reset_event_work;
struct list_head reset_list;

long gfx_timeout;
Expand Down Expand Up @@ -1132,6 +1134,7 @@ struct amdgpu_device {
bool barrier_has_auto_waitcnt;

struct amdgpu_reset_control *reset_cntl;
struct drm_reset_event reset_event_info;
uint32_t ip_versions[MAX_HWIP][HWIP_MAX_INSTANCE];

bool ram_is_direct_mapped;
Expand Down
13 changes: 13 additions & 0 deletions drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
#include <linux/pm_runtime.h>

#include <drm/drm_drv.h>
#include <drm/drm_sysfs.h>

#if IS_ENABLED(CONFIG_X86)
#include <asm/intel-family.h>
Expand Down Expand Up @@ -3816,6 +3817,17 @@ bool amdgpu_device_has_dc_support(struct amdgpu_device *adev)
return amdgpu_device_asic_has_dc_support(adev->asic_type);
}

static void amdgpu_device_reset_event_func(struct work_struct *__work)
{
struct amdgpu_device *adev = container_of(__work, struct amdgpu_device,
gpu_reset_event_work);
/*
* A GPU reset has happened, inform the userspace and pass the
* reset related information.
*/
drm_sysfs_reset_event(&adev->ddev, &adev->reset_event_info);
}

static void amdgpu_device_xgmi_reset_func(struct work_struct *__work)
{
struct amdgpu_device *adev =
Expand Down Expand Up @@ -4086,6 +4098,7 @@ int amdgpu_device_init(struct amdgpu_device *adev,
amdgpu_device_delay_enable_gfx_off);

INIT_WORK(&adev->xgmi_reset_work, amdgpu_device_xgmi_reset_func);
INIT_WORK(&adev->gpu_reset_event_work, amdgpu_device_reset_event_func);

adev->gfx.gfx_off_req_count = 1;
adev->gfx.gfx_off_residency = 0;
Expand Down