Displaying 15 results from an estimated 15 matches for "tegra_powergate_gpu_set_clamp".
2014 Dec 24
3
[PATCH 1/11] ARM: tegra: add function to control the GPU rail clamp
...; - }
> -
> - /*
> * Tegra 2 has a bug where PCIE and VDE clamping masks are
> * swapped relatively to the partition ids
> */
> @@ -253,6 +242,29 @@ int tegra_powergate_remove_clamping(int id)
> EXPORT_SYMBOL(tegra_powergate_remove_clamping);
>
> /**
> + * tegra_powergate_gpu_set_clamping - control GPU-SOC clamps
> + *
> + * The post-Tegra114 chips have a separate rail gating register to configure
> + * clamps.
> + *
> + * @assert: true to assert clamp, and false to remove
> + */
> +int tegra_powergate_gpu_set_clamping(bool assert)
Those functions with a boo...
2014 Dec 23
0
[PATCH 1/11] ARM: tegra: add function to control the GPU rail clamp
...gra_pmc_writel(0, GPU_RG_CNTRL);
- return 0;
- }
- }
-
- /*
* Tegra 2 has a bug where PCIE and VDE clamping masks are
* swapped relatively to the partition ids
*/
@@ -253,6 +242,29 @@ int tegra_powergate_remove_clamping(int id)
EXPORT_SYMBOL(tegra_powergate_remove_clamping);
/**
+ * tegra_powergate_gpu_set_clamping - control GPU-SOC clamps
+ *
+ * The post-Tegra114 chips have a separate rail gating register to configure
+ * clamps.
+ *
+ * @assert: true to assert clamp, and false to remove
+ */
+int tegra_powergate_gpu_set_clamping(bool assert)
+{
+ if (!pmc->soc)
+ return -EINVAL;
+
+ if (tegra_get_ch...
2014 Dec 25
0
[PATCH 1/11] ARM: tegra: add function to control the GPU rail clamp
...Tegra 2 has a bug where PCIE and VDE clamping masks are
>> * swapped relatively to the partition ids
>> */
>> @@ -253,6 +242,29 @@ int tegra_powergate_remove_clamping(int id)
>> EXPORT_SYMBOL(tegra_powergate_remove_clamping);
>>
>> /**
>> + * tegra_powergate_gpu_set_clamping - control GPU-SOC clamps
>> + *
>> + * The post-Tegra114 chips have a separate rail gating register to configure
>> + * clamps.
>> + *
>> + * @assert: true to assert clamp, and false to remove
>> + */
>> +int tegra_powergate_gpu_set_clamping(bool assert)...
2014 Dec 25
2
[PATCH 1/11] ARM: tegra: add function to control the GPU rail clamp
...E clamping masks are
> >> * swapped relatively to the partition ids
> >> */
> >> @@ -253,6 +242,29 @@ int tegra_powergate_remove_clamping(int id)
> >> EXPORT_SYMBOL(tegra_powergate_remove_clamping);
> >>
> >> /**
> >> + * tegra_powergate_gpu_set_clamping - control GPU-SOC clamps
> >> + *
> >> + * The post-Tegra114 chips have a separate rail gating register to configure
> >> + * clamps.
> >> + *
> >> + * @assert: true to assert clamp, and false to remove
> >> + */
> >> +int tegra_powe...
2014 Dec 23
18
[PATCH 0/11] Add suspend/resume support for GK20A
Hi,
This series includes some pieces of fixes to complete the GK20A power
on/off sequences and add the suspend/resume support.
The patches 1/11 - 4/11 are based on the linux-next-20141219.
The patches 5/11 - 11/11 are based on the branch "linux-3.19" of Ben Skeggs's
tree (http://cgit.freedesktop.org/~darktama/nouveau).
Thanks,
Vince
Vince Hsu (4): (linux-next-20141219)
ARM:
2014 Dec 29
0
[PATCH 1/11] ARM: tegra: add function to control the GPU rail clamp
...gt;>> * swapped relatively to the partition ids
>>>> */
>>>> @@ -253,6 +242,29 @@ int tegra_powergate_remove_clamping(int id)
>>>> EXPORT_SYMBOL(tegra_powergate_remove_clamping);
>>>>
>>>> /**
>>>> + * tegra_powergate_gpu_set_clamping - control GPU-SOC clamps
>>>> + *
>>>> + * The post-Tegra114 chips have a separate rail gating register to configure
>>>> + * clamps.
>>>> + *
>>>> + * @assert: true to assert clamp, and false to remove
>>>> + */
>>>...
2014 Dec 24
2
[PATCH nouveau 06/11] platform: complete the power up/down sequence
...false);
> + udelay(10);
> +
> return 0;
>
> err_clamp:
> @@ -77,6 +82,14 @@ static int nouveau_platform_power_down(struct nouveau_platform_gpu *gpu)
> {
> int err;
>
> + tegra_mc_flush(gpu->mc, gpu->swgroup, true);
> + udelay(10);
> +
> + err = tegra_powergate_gpu_set_clamping(true);
> + if (err)
> + return err;
> + udelay(10);
> +
> reset_control_assert(gpu->rst);
> udelay(10);
>
> @@ -91,6 +104,31 @@ static int nouveau_platform_power_down(struct nouveau_platform_gpu *gpu)
> return 0;
> }
>
> +static int nouveau_plat...
2015 Jan 05
2
[PATCH nouveau 06/11] platform: complete the power up/down sequence
...t; >> err_clamp:
> >>@@ -77,6 +82,14 @@ static int nouveau_platform_power_down(struct nouveau_platform_gpu *gpu)
> >> {
> >> int err;
> >>+ tegra_mc_flush(gpu->mc, gpu->swgroup, true);
> >>+ udelay(10);
> >>+
> >>+ err = tegra_powergate_gpu_set_clamping(true);
> >>+ if (err)
> >>+ return err;
> >>+ udelay(10);
> >>+
> >> reset_control_assert(gpu->rst);
> >> udelay(10);
> >>@@ -91,6 +104,31 @@ static int nouveau_platform_power_down(struct nouveau_platform_gpu *gpu)
> >&...
2015 Jan 06
2
[PATCH nouveau 06/11] platform: complete the power up/down sequence
...2,14 @@ static int nouveau_platform_power_down(struct nouveau_platform_gpu *gpu)
> >>>> {
> >>>> int err;
> >>>>+ tegra_mc_flush(gpu->mc, gpu->swgroup, true);
> >>>>+ udelay(10);
> >>>>+
> >>>>+ err = tegra_powergate_gpu_set_clamping(true);
> >>>>+ if (err)
> >>>>+ return err;
> >>>>+ udelay(10);
> >>>>+
> >>>> reset_control_assert(gpu->rst);
> >>>> udelay(10);
> >>>>@@ -91,6 +104,31 @@ static int nouveau_platform...
2015 Jan 06
2
[PATCH nouveau 06/11] platform: complete the power up/down sequence
...truct nouveau_platform_gpu *gpu)
> >>>>>> {
> >>>>>> int err;
> >>>>>>+ tegra_mc_flush(gpu->mc, gpu->swgroup, true);
> >>>>>>+ udelay(10);
> >>>>>>+
> >>>>>>+ err = tegra_powergate_gpu_set_clamping(true);
> >>>>>>+ if (err)
> >>>>>>+ return err;
> >>>>>>+ udelay(10);
> >>>>>>+
> >>>>>> reset_control_assert(gpu->rst);
> >>>>>> udelay(10);
> >>>>...
2014 Dec 23
0
[PATCH nouveau 06/11] platform: complete the power up/down sequence
...);
udelay(10);
+ tegra_mc_flush(gpu->mc, gpu->swgroup, false);
+ udelay(10);
+
return 0;
err_clamp:
@@ -77,6 +82,14 @@ static int nouveau_platform_power_down(struct nouveau_platform_gpu *gpu)
{
int err;
+ tegra_mc_flush(gpu->mc, gpu->swgroup, true);
+ udelay(10);
+
+ err = tegra_powergate_gpu_set_clamping(true);
+ if (err)
+ return err;
+ udelay(10);
+
reset_control_assert(gpu->rst);
udelay(10);
@@ -91,6 +104,31 @@ static int nouveau_platform_power_down(struct nouveau_platform_gpu *gpu)
return 0;
}
+static int nouveau_platform_get_mc(struct device *dev,
+ struct tegra_mc **mc, uns...
2014 Dec 25
0
[PATCH nouveau 06/11] platform: complete the power up/down sequence
...rn 0;
>>
>> err_clamp:
>> @@ -77,6 +82,14 @@ static int nouveau_platform_power_down(struct nouveau_platform_gpu *gpu)
>> {
>> int err;
>>
>> + tegra_mc_flush(gpu->mc, gpu->swgroup, true);
>> + udelay(10);
>> +
>> + err = tegra_powergate_gpu_set_clamping(true);
>> + if (err)
>> + return err;
>> + udelay(10);
>> +
>> reset_control_assert(gpu->rst);
>> udelay(10);
>>
>> @@ -91,6 +104,31 @@ static int nouveau_platform_power_down(struct nouveau_platform_gpu *gpu)
>> return 0;
>...
2015 Jan 06
0
[PATCH nouveau 06/11] platform: complete the power up/down sequence
...>>> @@ -77,6 +82,14 @@ static int nouveau_platform_power_down(struct nouveau_platform_gpu *gpu)
>>>> {
>>>> int err;
>>>> + tegra_mc_flush(gpu->mc, gpu->swgroup, true);
>>>> + udelay(10);
>>>> +
>>>> + err = tegra_powergate_gpu_set_clamping(true);
>>>> + if (err)
>>>> + return err;
>>>> + udelay(10);
>>>> +
>>>> reset_control_assert(gpu->rst);
>>>> udelay(10);
>>>> @@ -91,6 +104,31 @@ static int nouveau_platform_power_down(struct nouveau_p...
2015 Jan 06
0
[PATCH nouveau 06/11] platform: complete the power up/down sequence
...au_platform_power_down(struct nouveau_platform_gpu *gpu)
>>>>>> {
>>>>>> int err;
>>>>>> + tegra_mc_flush(gpu->mc, gpu->swgroup, true);
>>>>>> + udelay(10);
>>>>>> +
>>>>>> + err = tegra_powergate_gpu_set_clamping(true);
>>>>>> + if (err)
>>>>>> + return err;
>>>>>> + udelay(10);
>>>>>> +
>>>>>> reset_control_assert(gpu->rst);
>>>>>> udelay(10);
>>>>>> @@ -91,6 +104,31 @@...
2015 Jan 06
0
[PATCH nouveau 06/11] platform: complete the power up/down sequence
...u)
> > >>>>>> {
> > >>>>>> int err;
> > >>>>>>+ tegra_mc_flush(gpu->mc, gpu->swgroup, true);
> > >>>>>>+ udelay(10);
> > >>>>>>+
> > >>>>>>+ err = tegra_powergate_gpu_set_clamping(true);
> > >>>>>>+ if (err)
> > >>>>>>+ return err;
> > >>>>>>+ udelay(10);
> > >>>>>>+
> > >>>>>> reset_control_assert(gpu->rst);
> > >>>>>> ud...