Skip to content

Commit 15794f9

Browse files
committed
Merge tag 'drm-misc-fixes-2023-09-07' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes
One doc fix for drm/connector, one fix for amdgpu for an crash when VRAM usage is high, and one fix in gm12u320 to fix the timeout units in the code Signed-off-by: Daniel Vetter <[email protected]> From: Maxime Ripard <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/w5nlld5ukeh6bgtljsxmkex3e7s7f4qquuqkv5lv4cv3uxzwqr@pgokpejfsyef
2 parents afaf2b3 + 7583028 commit 15794f9

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ int amdgpu_sa_bo_new(struct amdgpu_sa_manager *sa_manager,
8181
unsigned int size)
8282
{
8383
struct drm_suballoc *sa = drm_suballoc_new(&sa_manager->base, size,
84-
GFP_KERNEL, true, 0);
84+
GFP_KERNEL, false, 0);
8585

8686
if (IS_ERR(sa)) {
8787
*sa_bo = NULL;

drivers/gpu/drm/drm_connector.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2203,6 +2203,7 @@ static int drm_mode_create_colorspace_property(struct drm_connector *connector,
22032203
/**
22042204
* drm_mode_create_hdmi_colorspace_property - create hdmi colorspace property
22052205
* @connector: connector to create the Colorspace property on.
2206+
* @supported_colorspaces: bitmap of supported color spaces
22062207
*
22072208
* Called by a driver the first time it's needed, must be attached to desired
22082209
* HDMI connectors.
@@ -2227,6 +2228,7 @@ EXPORT_SYMBOL(drm_mode_create_hdmi_colorspace_property);
22272228
/**
22282229
* drm_mode_create_dp_colorspace_property - create dp colorspace property
22292230
* @connector: connector to create the Colorspace property on.
2231+
* @supported_colorspaces: bitmap of supported color spaces
22302232
*
22312233
* Called by a driver the first time it's needed, must be attached to desired
22322234
* DP connectors.

drivers/gpu/drm/tiny/gm12u320.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ MODULE_PARM_DESC(eco_mode, "Turn on Eco mode (less bright, more silent)");
7070
#define READ_STATUS_SIZE 13
7171
#define MISC_VALUE_SIZE 4
7272

73-
#define CMD_TIMEOUT msecs_to_jiffies(200)
74-
#define DATA_TIMEOUT msecs_to_jiffies(1000)
75-
#define IDLE_TIMEOUT msecs_to_jiffies(2000)
76-
#define FIRST_FRAME_TIMEOUT msecs_to_jiffies(2000)
73+
#define CMD_TIMEOUT 200
74+
#define DATA_TIMEOUT 1000
75+
#define IDLE_TIMEOUT 2000
76+
#define FIRST_FRAME_TIMEOUT 2000
7777

7878
#define MISC_REQ_GET_SET_ECO_A 0xff
7979
#define MISC_REQ_GET_SET_ECO_B 0x35
@@ -389,7 +389,7 @@ static void gm12u320_fb_update_work(struct work_struct *work)
389389
* switches back to showing its logo.
390390
*/
391391
queue_delayed_work(system_long_wq, &gm12u320->fb_update.work,
392-
IDLE_TIMEOUT);
392+
msecs_to_jiffies(IDLE_TIMEOUT));
393393

394394
return;
395395
err:

0 commit comments

Comments
 (0)