Displaying 20 results from an estimated 22 matches for "err_clamp".
2017 Jun 09
4
[PATCH 1/3] drm/nouveau/tegra: Skip manual unpowergating when not necessary
...au/nvkm/engine/device/tegra.c
+++ b/drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c
@@ -51,10 +51,12 @@ nvkm_device_tegra_power_up(struct nvkm_device_tegra *tdev)
reset_control_assert(tdev->rst);
udelay(10);
- ret = tegra_powergate_remove_clamping(TEGRA_POWERGATE_3D);
- if (ret)
- goto err_clamp;
- udelay(10);
+ if (!tdev->pdev->dev.pm_domain) {
+ ret = tegra_powergate_remove_clamping(TEGRA_POWERGATE_3D);
+ if (ret)
+ goto err_clamp;
+ udelay(10);
+ }
reset_control_deassert(tdev->rst);
udelay(10);
--
2.13.0
2017 Jun 12
0
[PATCH 1/3] drm/nouveau/tegra: Skip manual unpowergating when not necessary
.../drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c
> @@ -51,10 +51,12 @@ nvkm_device_tegra_power_up(struct nvkm_device_tegra *tdev)
> reset_control_assert(tdev->rst);
> udelay(10);
>
> - ret = tegra_powergate_remove_clamping(TEGRA_POWERGATE_3D);
> - if (ret)
> - goto err_clamp;
> - udelay(10);
> + if (!tdev->pdev->dev.pm_domain) {
> + ret = tegra_powergate_remove_clamping(TEGRA_POWERGATE_3D);
> + if (ret)
> + goto err_clamp;
> + udelay(10);
> + }
>
> reset_control_deassert(tdev->rst);
> udelay(10);
>
-------------- n...
2014 Dec 24
2
[PATCH nouveau 06/11] platform: complete the power up/down sequence
...;nouveau_drm.h"
> @@ -61,6 +63,9 @@ static int nouveau_platform_power_up(struct nouveau_platform_gpu *gpu)
> reset_control_deassert(gpu->rst);
> 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 er...
2015 Jan 05
2
[PATCH nouveau 06/11] platform: complete the power up/down sequence
...atic int nouveau_platform_power_up(struct nouveau_platform_gpu *gpu)
> >> reset_control_deassert(gpu->rst);
> >> 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_se...
2015 Jan 06
2
[PATCH nouveau 06/11] platform: complete the power up/down sequence
...rm_gpu *gpu)
> >>>> reset_control_deassert(gpu->rst);
> >>>> 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);
> >>>&...
2015 Jan 06
2
[PATCH nouveau 06/11] platform: complete the power up/down sequence
...ol_deassert(gpu->rst);
> >>>>>> 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);
> >>>>...
2014 Jun 26
0
[PATCH v3 1/3] drm/nouveau: support for probing platform devices
...;
+ if (err)
+ goto err_clk;
+ err = clk_prepare_enable(gpu->clk_pwr);
+ if (err)
+ goto err_clk_pwr;
+ clk_set_rate(gpu->clk_pwr, 204000000);
+ udelay(10);
+
+ reset_control_assert(gpu->rst);
+ udelay(10);
+
+ err = tegra_powergate_remove_clamping(TEGRA_POWERGATE_3D);
+ if (err)
+ goto err_clamp;
+ udelay(10);
+
+ reset_control_deassert(gpu->rst);
+ udelay(10);
+
+ return 0;
+
+err_clamp:
+ clk_disable_unprepare(gpu->clk_pwr);
+err_clk_pwr:
+ clk_disable_unprepare(gpu->clk);
+err_clk:
+ regulator_disable(gpu->vdd);
+err_power:
+ return err;
+}
+
+static int nouveau_platform_pow...
2014 Dec 23
0
[PATCH nouveau 06/11] platform: complete the power up/down sequence
...#include <soc/tegra/pmc.h>
#include "nouveau_drm.h"
@@ -61,6 +63,9 @@ static int nouveau_platform_power_up(struct nouveau_platform_gpu *gpu)
reset_control_deassert(gpu->rst);
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->...
2014 Jun 26
6
[PATCH v3 0/3] drm/nouveau: support for probing platform devices
This series adds support for probing platform devices on Nouveau, as well as
the DT bindings for GK20A. It doesn't enable the GPU yet on Tegra boards since
a few extra things need to be supported before that.
This version is mostly identical to v2 but fixes an important issue: the drvdata
must be set to the drm_device for sysfs to work, so the platform device
structure now includes the
2014 Dec 25
0
[PATCH nouveau 06/11] platform: complete the power up/down sequence
...@ static int nouveau_platform_power_up(struct nouveau_platform_gpu *gpu)
>> reset_control_deassert(gpu->rst);
>> 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)...
2014 Jun 13
3
[PATCH v2 0/3] drm/nouveau: support for probing platform devices
This series adds support for probing platform devices on Nouveau, as well as
the DT bindings for GK20A. It doesn't enable the GPU yet on Tegra boards since
a few extra things need to be supported before that.
Thanks to the input received for v1, this version is more self-contained and
shares less stuff between nouveau_drm and nouveau_platform. The major change
is that nouveau_platform is now
2016 Apr 01
1
[PATCH] tegra: acquire and enable reference clock if needed
...lk);
if (ret)
goto err_clk;
+ if (tdev->clk_ref) {
+ ret = clk_prepare_enable(tdev->clk_ref);
+ if (ret)
+ goto err_clk_ref;
+ }
ret = clk_prepare_enable(tdev->clk_pwr);
if (ret)
goto err_clk_pwr;
@@ -57,6 +62,9 @@ nvkm_device_tegra_power_up(struct nvkm_device_tegra *tdev)
err_clamp:
clk_disable_unprepare(tdev->clk_pwr);
err_clk_pwr:
+ if (tdev->clk_ref)
+ clk_disable_unprepare(tdev->clk_ref);
+err_clk_ref:
clk_disable_unprepare(tdev->clk);
err_clk:
regulator_disable(tdev->vdd);
@@ -71,6 +79,8 @@ nvkm_device_tegra_power_down(struct nvkm_device_tegra *td...
2014 Jun 26
2
[PATCH v3 1/3] drm/nouveau: support for probing platform devices
...e(gpu->clk_pwr);
> + if (err)
> + goto err_clk_pwr;
> + clk_set_rate(gpu->clk_pwr, 204000000);
> + udelay(10);
> +
> + reset_control_assert(gpu->rst);
> + udelay(10);
> +
> + err = tegra_powergate_remove_clamping(TEGRA_POWERGATE_3D);
> + if (err)
> + goto err_clamp;
> + udelay(10);
> +
> + reset_control_deassert(gpu->rst);
> + udelay(10);
> +
> + return 0;
> +
> +err_clamp:
> + clk_disable_unprepare(gpu->clk_pwr);
> +err_clk_pwr:
> + clk_disable_unprepare(gpu->clk);
> +err_clk:
> + regulator_disable(gpu->vdd)...
2015 Jan 06
0
[PATCH nouveau 06/11] platform: complete the power up/down sequence
...wer_up(struct nouveau_platform_gpu *gpu)
>>>> reset_control_deassert(gpu->rst);
>>>> 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);
>>>> +
>>>> +...
2015 Jan 06
0
[PATCH nouveau 06/11] platform: complete the power up/down sequence
...;>> reset_control_deassert(gpu->rst);
>>>>>> 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)...
2015 Jan 06
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);
&...
2014 May 19
10
[PATCH 0/5] drm/nouveau: platform devices and GK20A probing
This patch series is the final (?) step towards the initial support of GK20A,
allowing it to be probed and used (currently at a very slow speed, and for
offscreen rendering only) on the Jetson TK1 and Venice 2 boards.
The main piece if the first patch which adds platform devices probing support
to Nouveau. There are probably lots of things that need to be discussed about
it, e.g.:
* The way the
2017 May 20
2
[PATCH] drm: remove NULL pointer check for clk_disable_unprepare
...km/engine/device/tegra.c b/drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c
index 6474bd2..bde8ab2 100644
--- a/drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c
+++ b/drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c
@@ -64,8 +64,7 @@ nvkm_device_tegra_power_up(struct nvkm_device_tegra *tdev)
err_clamp:
clk_disable_unprepare(tdev->clk_pwr);
err_clk_pwr:
- if (tdev->clk_ref)
- clk_disable_unprepare(tdev->clk_ref);
+ clk_disable_unprepare(tdev->clk_ref);
err_clk_ref:
clk_disable_unprepare(tdev->clk);
err_clk:
@@ -84,8 +83,7 @@ nvkm_device_tegra_power_down(struct nvkm_device_t...
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:
2019 Nov 02
13
[PATCH v2 0/9] drm/nouveau: Various fixes for GP10B
From: Thierry Reding <treding at nvidia.com>
Hi Ben,
here's a revised subset of the patches I had sent out a couple of weeks
ago. I've reworked the BAR2 accesses in the way that you had suggested,
which at least for GP10B turned out to be fairly trivial to do. I have
not looked in detail at this for GV11B yet, but a cursory look showed
that BAR2 is accessed in more places, so the