Re: [Intel-gfx] [PATCH] drm/i915/gt: make a gt sysfs group and move power management files

2021-10-17 Thread Andi Shyti
Hi Sujaritha, [...] > > +void intel_gt_sysfs_unregister(struct intel_gt *gt) > > +{ > > +} > > Is there a reason for this function to not be populated ? yes, there is, indeed, something missing here. There has been a fix bout this floating around from Chris about sysfs_gt kobjects. I will chec

Re: [Intel-gfx] [PATCH] drm/i915/gt: make a gt sysfs group and move power management files

2021-10-14 Thread Sundaresan, Sujaritha
On 10/13/2021 5:08 PM, Andi Shyti wrote: From: Andi Shyti The GT has its own properties and in sysfs they should be grouped in the 'gt/' directory. Create a 'gt/' directory in sysfs which will contain gt0...gtN directories related to each tile configured in the GPU. Move the power management

[Intel-gfx] [PATCH] drm/i915/gt: make a gt sysfs group and move power management files

2021-10-13 Thread Andi Shyti
From: Andi Shyti The GT has its own properties and in sysfs they should be grouped in the 'gt/' directory. Create a 'gt/' directory in sysfs which will contain gt0...gtN directories related to each tile configured in the GPU. Move the power management files inside those directories. The previou

Re: [Intel-gfx] [PATCH] drm/i915/gt: make a gt sysfs group and move power management files

2020-02-14 Thread Andi Shyti
Hi Tvrtko, > > > > + } > > > > + > > > > + intel_gt_sysfs_pm_remove(gt, root); > > > > + kobject_put(root); > > > > > > Maybe stick to the same terminology regarding root and parent. > > > > yes. > > > > > Get/put on the parent looks unbalanced. Both register and unregister ta

Re: [Intel-gfx] [PATCH] drm/i915/gt: make a gt sysfs group and move power management files

2020-02-14 Thread Tvrtko Ursulin
On 14/02/2020 13:18, Chris Wilson wrote: Quoting Tvrtko Ursulin (2020-02-14 12:54:35) On 14/02/2020 11:03, Andi Shyti wrote: +struct intel_gt *intel_gt_sysfs_get_drvdata(struct device *dev) +{ + struct kobject *kobj = &dev->kobj; + /* + * We are interested at knowing from where

Re: [Intel-gfx] [PATCH] drm/i915/gt: make a gt sysfs group and move power management files

2020-02-14 Thread Tvrtko Ursulin
On 14/02/2020 13:16, Andi Shyti wrote: Hi Tvrtko, The GT has its own properties and in sysfs they should be grouped in the 'gt/' directory. Create the 'gt/' directory in sysfs and move the power management related files. Can you paste the new and legacy paths in the commit message? sure!

Re: [Intel-gfx] [PATCH] drm/i915/gt: make a gt sysfs group and move power management files

2020-02-14 Thread Chris Wilson
Quoting Tvrtko Ursulin (2020-02-14 12:54:35) > > On 14/02/2020 11:03, Andi Shyti wrote: > > +struct intel_gt *intel_gt_sysfs_get_drvdata(struct device *dev) > > +{ > > + struct kobject *kobj = &dev->kobj; > > + /* > > + * We are interested at knowing from where the interface > > +

Re: [Intel-gfx] [PATCH] drm/i915/gt: make a gt sysfs group and move power management files

2020-02-14 Thread Andi Shyti
Hi Tvrtko, > > The GT has its own properties and in sysfs they should be grouped > > in the 'gt/' directory. > > > > Create the 'gt/' directory in sysfs and move the power management > > related files. > > Can you paste the new and legacy paths in the commit message? sure! > > diff --git a/dri

Re: [Intel-gfx] [PATCH] drm/i915/gt: make a gt sysfs group and move power management files

2020-02-14 Thread Chris Wilson
Quoting Andi Shyti (2020-02-14 11:03:08) > +struct intel_gt *intel_gt_sysfs_get_drvdata(struct device *dev) > +{ > + struct kobject *kobj = &dev->kobj; > + /* > +* We are interested at knowing from where the interface > +* has been called, whether it's called from gt/ or

Re: [Intel-gfx] [PATCH] drm/i915/gt: make a gt sysfs group and move power management files

2020-02-14 Thread Tvrtko Ursulin
On 14/02/2020 11:03, Andi Shyti wrote: The GT has its own properties and in sysfs they should be grouped in the 'gt/' directory. Create the 'gt/' directory in sysfs and move the power management related files. Can you paste the new and legacy paths in the commit message? Signed-off-by: And

[Intel-gfx] [PATCH] drm/i915/gt: make a gt sysfs group and move power management files

2020-02-14 Thread Andi Shyti
The GT has its own properties and in sysfs they should be grouped in the 'gt/' directory. Create the 'gt/' directory in sysfs and move the power management related files. Signed-off-by: Andi Shyti --- Hi, this version has some more substantial differences, nothing that changes the wanted behavi

Re: [Intel-gfx] [PATCH] drm/i915/gt: make a gt sysfs group and move power management files

2020-02-09 Thread Andi Shyti
Hi Jani, > > void intel_gt_init_early(struct intel_gt *gt, struct drm_i915_private > > *i915) > > { > > @@ -321,6 +322,7 @@ void intel_gt_driver_register(struct intel_gt *gt) > > intel_rps_driver_register(>->rps); > > > > debugfs_gt_register(gt); > > Yikes, when did this happen? Not

Re: [Intel-gfx] [PATCH] drm/i915/gt: make a gt sysfs group and move power management files

2020-02-09 Thread Jani Nikula
On Sat, 08 Feb 2020, Andi Shyti wrote: > From: Andi Shyti > > The GT has its own properties and in sysfs they should be grouped > in the 'gt/' directory. > > Create the 'gt/' directory in sysfs and move the power management > related files. > > Signed-off-by: Andi Shyti > --- > drivers/gpu/drm/

Re: [Intel-gfx] [PATCH] drm/i915/gt: make a gt sysfs group and move power management files

2020-02-08 Thread Andi Shyti
> > > > > > The GT has its own properties and in sysfs they should be grouped > > > > > > in the 'gt/' directory. > > > > > > > > > > > > Create the 'gt/' directory in sysfs and move the power management > > > > > > related files. > > > > > > > > > > As shown by BAT, we have a conundrum; do we ha

Re: [Intel-gfx] [PATCH] drm/i915/gt: make a gt sysfs group and move power management files

2020-02-08 Thread Andi Shyti
Hi Chris, > > > > The GT has its own properties and in sysfs they should be grouped > > > > in the 'gt/' directory. > > > > > > > > Create the 'gt/' directory in sysfs and move the power management > > > > related files. > > > > > > As shown by BAT, we have a conundrum; do we have to preserve th

Re: [Intel-gfx] [PATCH] drm/i915/gt: make a gt sysfs group and move power management files

2020-02-08 Thread Andi Shyti
On Sat, Feb 08, 2020 at 04:26:18PM +, Chris Wilson wrote: > Quoting Andi Shyti (2020-02-08 12:27:59) > > From: Andi Shyti > > > > The GT has its own properties and in sysfs they should be grouped > > in the 'gt/' directory. > > > > Create the 'gt/' directory in sysfs and move the power manag

Re: [Intel-gfx] [PATCH] drm/i915/gt: make a gt sysfs group and move power management files

2020-02-08 Thread Chris Wilson
Quoting Andi Shyti (2020-02-08 17:01:53) > Hi Chris, > > > > > > The GT has its own properties and in sysfs they should be grouped > > > > > in the 'gt/' directory. > > > > > > > > > > Create the 'gt/' directory in sysfs and move the power management > > > > > related files. > > > > > > > > As s

Re: [Intel-gfx] [PATCH] drm/i915/gt: make a gt sysfs group and move power management files

2020-02-08 Thread Chris Wilson
Quoting Andi Shyti (2020-02-08 16:51:39) > On Sat, Feb 08, 2020 at 04:26:18PM +, Chris Wilson wrote: > > Quoting Andi Shyti (2020-02-08 12:27:59) > > > From: Andi Shyti > > > > > > The GT has its own properties and in sysfs they should be grouped > > > in the 'gt/' directory. > > > > > > Cre

Re: [Intel-gfx] [PATCH] drm/i915/gt: make a gt sysfs group and move power management files

2020-02-08 Thread Chris Wilson
Quoting Andi Shyti (2020-02-08 12:27:59) > From: Andi Shyti > > The GT has its own properties and in sysfs they should be grouped > in the 'gt/' directory. > > Create the 'gt/' directory in sysfs and move the power management > related files. As shown by BAT, we have a conundrum; do we have to

[Intel-gfx] [PATCH] drm/i915/gt: make a gt sysfs group and move power management files

2020-02-08 Thread Andi Shyti
From: Andi Shyti The GT has its own properties and in sysfs they should be grouped in the 'gt/' directory. Create the 'gt/' directory in sysfs and move the power management related files. Signed-off-by: Andi Shyti --- drivers/gpu/drm/i915/Makefile| 4 +- drivers/gpu/drm/i915/gt/