Skip to content

Commit ea3fdd3

Browse files
committed
Reduce diff with Linux 6.7
Differences were reviewed using e.g.: diff -Nau -pX scripts/diffignore \ drm-kmod/drivers/gpu/drm/ \ linux/drivers/gpu/drm/ diff -Naur -pX scripts/diffignore \ drm-kmod/drivers/gpu/drm/amd/amdgpu/ \ linux/drivers/gpu/drm/amd/amdgpu/ diff -Naur -pX scripts/diffignore \ drm-kmod/drivers/gpu/drm/i915/ \ linux/drivers/gpu/drm/i915/ diff -Naur -pX scripts/diffignore \ drm-kmod/include/drm/ \ linux/include/drm/
1 parent aaa2f4e commit ea3fdd3

7 files changed

Lines changed: 21 additions & 697 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@ static void gmc_v9_0_override_vm_pte_flags(struct amdgpu_device *adev,
12421242
struct amdgpu_vm *vm,
12431243
uint64_t addr, uint64_t *flags)
12441244
{
1245-
#ifdef CONFIG_NUMA
1245+
#ifdef __linux__
12461246
int local_node, nid;
12471247
#endif
12481248

@@ -1252,7 +1252,7 @@ static void gmc_v9_0_override_vm_pte_flags(struct amdgpu_device *adev,
12521252
if (amdgpu_ip_version(adev, GC_HWIP, 0) != IP_VERSION(9, 4, 3))
12531253
return;
12541254

1255-
#ifdef CONFIG_NUMA
1255+
#ifdef __linux__
12561256
/* Only direct-mapped memory allows us to determine the NUMA node from
12571257
* the DMA address.
12581258
*/

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,10 @@ static int jpeg_v4_0_3_hw_fini(void *handle)
360360

361361
cancel_delayed_work_sync(&adev->jpeg.idle_work);
362362

363-
if (adev->jpeg.cur_state != AMD_PG_STATE_GATE)
364-
ret = jpeg_v4_0_3_set_powergating_state(adev, AMD_PG_STATE_GATE);
363+
if (!amdgpu_sriov_vf(adev)) {
364+
if (adev->jpeg.cur_state != AMD_PG_STATE_GATE)
365+
ret = jpeg_v4_0_3_set_powergating_state(adev, AMD_PG_STATE_GATE);
366+
}
365367

366368
return ret;
367369
}

drivers/gpu/drm/drm_print.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
* __drm_debug: Enable debug output.
4040
* Bitmask of DRM_UT_x. See include/drm/drm_print.h for details.
4141
*/
42-
#ifdef __FreeBSD__
42+
#ifdef __linux__
43+
unsigned long __drm_debug;
44+
#elif defined(__FreeBSD__)
4345
#if defined(DRM_DEBUG_LOG_ALL) || defined(INVARIANTS)
4446
unsigned long __drm_debug = 0xffffffff; /* bitmask of DRM_UT_x */
4547
#else
@@ -452,7 +454,7 @@ void __drm_err(const char *function_name, const char *format, ...)
452454
#endif
453455
EXPORT_SYMBOL(__drm_err);
454456

455-
#ifdef CONFIG_DEBUGSFS
457+
#ifdef __linux__
456458
/**
457459
* drm_print_regset32 - print the contents of registers to a
458460
* &drm_printer stream.

drivers/gpu/drm/i915/i915_scheduler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
#include <linux/list.h>
1212
#include <linux/kernel.h>
1313

14-
#include "i915_tasklet.h"
1514
#include "i915_scheduler_types.h"
15+
#include "i915_tasklet.h"
1616

1717
struct drm_printer;
1818

0 commit comments

Comments
 (0)