Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/{i915, xe}/stolen: add device pointer to struct intel_stolen_node

Add backpointers to i915/xe to allow simplifying some interfaces in
follow-up.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://lore.kernel.org/r/321354d47f9e530159caefef510d5394f4177470.1758732183.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>

+8
+4
drivers/gpu/drm/i915/gem/i915_gem_stolen.c
··· 25 25 #include "intel_pci_config.h" 26 26 27 27 struct intel_stolen_node { 28 + struct drm_i915_private *i915; 28 29 struct drm_mm_node node; 29 30 }; 30 31 ··· 1065 1064 1066 1065 struct intel_stolen_node *i915_gem_stolen_node_alloc(struct drm_device *drm) 1067 1066 { 1067 + struct drm_i915_private *i915 = to_i915(drm); 1068 1068 struct intel_stolen_node *node; 1069 1069 1070 1070 node = kzalloc(sizeof(*node), GFP_KERNEL); 1071 1071 if (!node) 1072 1072 return NULL; 1073 + 1074 + node->i915 = i915; 1073 1075 1074 1076 return node; 1075 1077 }
+4
drivers/gpu/drm/xe/display/xe_stolen.c
··· 7 7 #include "xe_validation.h" 8 8 9 9 struct intel_stolen_node { 10 + struct xe_device *xe; 10 11 struct xe_bo *bo; 11 12 }; 12 13 ··· 105 104 106 105 struct intel_stolen_node *i915_gem_stolen_node_alloc(struct drm_device *drm) 107 106 { 107 + struct xe_device *xe = to_xe_device(drm); 108 108 struct intel_stolen_node *node; 109 109 110 110 node = kzalloc(sizeof(*node), GFP_KERNEL); 111 111 if (!node) 112 112 return NULL; 113 + 114 + node->xe = xe; 113 115 114 116 return node; 115 117 }