search for: power_budget

Displaying 17 results from an estimated 17 matches for "power_budget".

2016 Oct 25
1
[PATCH 1/3] nvbios/power_budget: Add basic power budget parsing
On 25/10/16 00:11, Karol Herbst wrote: > Signed-off-by: Karol Herbst <karolherbst at gmail.com> > --- > .../include/nvkm/subdev/bios/power_budget.h | 20 ++++ > drm/nouveau/nvkm/subdev/bios/Kbuild | 1 + > drm/nouveau/nvkm/subdev/bios/power_budget.c | 108 +++++++++++++++++++++ > 3 files changed, 129 insertions(+) > create mode 100644 drm/nouveau/include/nvkm/subdev/bios/power_budget.h > creat...
2016 Nov 30
3
[PATCH v3 1/3] nvbios/power_budget: Add basic power budget parsing
...v2: Set entry to 0xff if not found > Add cap entry for ver 0x30 tables > Rework to fix memory leak > v3: More error checks > Simplify check for invalid entries > > Signed-off-by: Karol Herbst <karolherbst at gmail.com> > --- > .../include/nvkm/subdev/bios/power_budget.h | 25 +++++ > drm/nouveau/nvkm/subdev/bios/Kbuild | 1 + > drm/nouveau/nvkm/subdev/bios/power_budget.c | 125 +++++++++++++++++++++ > 3 files changed, 151 insertions(+) > create mode 100644 drm/nouveau/include/nvkm/subdev/bios/power_budget.h > crea...
2016 Nov 12
1
[PATCH 1/3] nvbios/power_budget: Add basic power budget parsing
On 11:55 am - Nov 12 2016, Karol Herbst wrote: > v2: Set entry to 0xff if not found > Add cap entry for ver 0x30 tables > Rework to fix memory leak > > Signed-off-by: Karol Herbst <karolherbst at gmail.com> > --- > .../include/nvkm/subdev/bios/power_budget.h | 24 ++++ > drm/nouveau/nvkm/subdev/bios/Kbuild | 1 + > drm/nouveau/nvkm/subdev/bios/power_budget.c | 122 +++++++++++++++++++++ > 3 files changed, 147 insertions(+) > create mode 100644 drm/nouveau/include/nvkm/subdev/bios/power_budget.h > creat...
2016 Nov 30
1
[PATCH v3 1/3] nvbios/power_budget: Add basic power budget parsing
...ry for ver 0x30 tables >>> Rework to fix memory leak >>> v3: More error checks >>> Simplify check for invalid entries >>> >>> Signed-off-by: Karol Herbst <karolherbst at gmail.com> >>> --- >>> .../include/nvkm/subdev/bios/power_budget.h | 25 +++++ >>> drm/nouveau/nvkm/subdev/bios/Kbuild | 1 + >>> drm/nouveau/nvkm/subdev/bios/power_budget.c | 125 +++++++++++++++++++++ >>> 3 files changed, 151 insertions(+) >>> create mode 100644 drm/nouveau/include/nvkm/subde...
2016 Oct 24
0
[PATCH 1/3] nvbios/power_budget: Add basic power budget parsing
Signed-off-by: Karol Herbst <karolherbst at gmail.com> --- .../include/nvkm/subdev/bios/power_budget.h | 20 ++++ drm/nouveau/nvkm/subdev/bios/Kbuild | 1 + drm/nouveau/nvkm/subdev/bios/power_budget.c | 108 +++++++++++++++++++++ 3 files changed, 129 insertions(+) create mode 100644 drm/nouveau/include/nvkm/subdev/bios/power_budget.h create mode 100644 drm/nouveau...
2016 Nov 12
0
[PATCH 1/3] nvbios/power_budget: Add basic power budget parsing
v2: Set entry to 0xff if not found Add cap entry for ver 0x30 tables Rework to fix memory leak Signed-off-by: Karol Herbst <karolherbst at gmail.com> --- .../include/nvkm/subdev/bios/power_budget.h | 24 ++++ drm/nouveau/nvkm/subdev/bios/Kbuild | 1 + drm/nouveau/nvkm/subdev/bios/power_budget.c | 122 +++++++++++++++++++++ 3 files changed, 147 insertions(+) create mode 100644 drm/nouveau/include/nvkm/subdev/bios/power_budget.h create mode 100644 drm/nouveau...
2016 Nov 30
0
[PATCH v3 1/3] nvbios/power_budget: Add basic power budget parsing
v2: Set entry to 0xff if not found Add cap entry for ver 0x30 tables Rework to fix memory leak v3: More error checks Simplify check for invalid entries Signed-off-by: Karol Herbst <karolherbst at gmail.com> --- .../include/nvkm/subdev/bios/power_budget.h | 25 +++++ drm/nouveau/nvkm/subdev/bios/Kbuild | 1 + drm/nouveau/nvkm/subdev/bios/power_budget.c | 125 +++++++++++++++++++++ 3 files changed, 151 insertions(+) create mode 100644 drm/nouveau/include/nvkm/subdev/bios/power_budget.h create mode 100644 drm/nouvea...
2016 Nov 12
4
[PATCH 0/3] Expose power budget cap via hwmon
...sing it to catch errors and see how reliable this is, but as it seems it works on all GPUs as expected on Kepler und Maxwells with the power cap field set in the vbios. This series keeps things really simple for now until we figure out more about the power budget table. Karol Herbst (3): nvbios/power_budget: Add basic power budget parsing subdev/iccsense: Parse max and crit power level hwmon: expose power_max and power_crit .../include/nvkm/subdev/bios/power_budget.h | 24 ++++ drm/nouveau/include/nvkm/subdev/iccsense.h | 3 + drm/nouveau/nouveau_hwmon.c...
2016 Nov 30
0
[PATCH v3 1/3] nvbios/power_budget: Add basic power budget parsing
...und >> Add cap entry for ver 0x30 tables >> Rework to fix memory leak >> v3: More error checks >> Simplify check for invalid entries >> >> Signed-off-by: Karol Herbst <karolherbst at gmail.com> >> --- >> .../include/nvkm/subdev/bios/power_budget.h | 25 +++++ >> drm/nouveau/nvkm/subdev/bios/Kbuild | 1 + >> drm/nouveau/nvkm/subdev/bios/power_budget.c | 125 +++++++++++++++++++++ >> 3 files changed, 151 insertions(+) >> create mode 100644 drm/nouveau/include/nvkm/subdev/bios/power_bud...
2016 Nov 30
4
[PATCH v3 0/3] Expose power budget cap via hwmon
...ed on Kepler und Maxwells with the power cap field set in the vbios. This series keeps things really simple for now until we figure out more about the power budget table. v3: big rework of the actual vbios parsing to prevent memory leakage and silly memory handling Karol Herbst (3): nvbios/power_budget: Add basic power budget parsing subdev/iccsense: Parse max and crit power level hwmon: expose power_max and power_crit .../include/nvkm/subdev/bios/power_budget.h | 25 +++++ drm/nouveau/include/nvkm/subdev/iccsense.h | 3 + drm/nouveau/nouveau_hwmon.c...
2016 Oct 24
7
RFC [PATCH 0/3] Expose power budget cap via hwmon
...t field isn't sad, things beome complicated. Anyhow, this is good enough for most cards and we can use it later for capping the power consumption of the GPUs, but first, just export those values through hwmon. First design, will change stuff, want comments. Thanks. Karol Herbst (3): nvbios/power_budget: Add basic power budget parsing subdev/iccsense: Parse max and crit power level hwmon: expose power_max and power_crit .../include/nvkm/subdev/bios/power_budget.h | 20 ++++ drm/nouveau/include/nvkm/subdev/iccsense.h | 3 + drm/nouveau/nouveau_hwmon.c...
2017 Jan 23
3
[PATCH v4 0/3] Expose power budget cap via hwmon
...things really simple for now until we figure out more about the power budget table and are able to parse the power cap for vbios without that field set. v3: big rework of the actual vbios parsing to prevent memory leakage and silly memory handling v4: little reworks Karol Herbst (3): nvbios/power_budget: Add basic power budget parsing subdev/iccsense: Parse max and crit power level hwmon: expose power_max and power_crit .../include/nvkm/subdev/bios/power_budget.h | 26 +++++ drm/nouveau/include/nvkm/subdev/iccsense.h | 3 + drm/nouveau/nouveau_hwmon.c...
2023 Apr 16
0
[PATCH 5/9] drm/nouveau/bios/power_budget: Move an expression into a macro call parameter in nvbios_power_budget_header()
Date: Sat, 15 Apr 2023 22:30:30 +0200 The address of a data structure member was determined before a corresponding null pointer check in the implementation of the function ?nvbios_power_budget_header?. Thus avoid the risk for undefined behaviour by moving the usage of an expression into a parameter for a macro call in one if branch. This issue was detected by using the Coccinelle software. Fixes: e5f8eabc0077ea3f77b3362e28d3969ae62e70f0 ("drm/nouveau/bios/power_budget: Add basic...
2023 Apr 16
10
[PATCH 0/9] GPU-DRM-nouveau: Adjustments for seven function implementations
...eter in nouveau_debugfs_pstate_set() debugfs: Move a variable assignment behind a null pointer check in nouveau_debugfs_pstate_get() debugfs: Use seq_putc() in nouveau_debugfs_pstate_get() debugfs: Replace five seq_printf() calls by seq_puts() in nouveau_debugfs_pstate_get() power_budget: Move an expression into a macro call parameter in nvbios_power_budget_header() clk: Move a variable assignment behind a null pointer check in nvkm_pstate_new() pci: Move a variable assignment behind condition checks in nvkm_pcie_set_link() pci: Move an expression into a function...
2016 Oct 24
0
[PATCH 2/3] subdev/iccsense: Parse max and crit power level
...ubdev/iccsense/base.c index 658355f..4e2b074 100644 --- a/drm/nouveau/nvkm/subdev/iccsense/base.c +++ b/drm/nouveau/nvkm/subdev/iccsense/base.c @@ -26,6 +26,7 @@ #include <subdev/bios.h> #include <subdev/bios/extdev.h> #include <subdev/bios/iccsense.h> +#include <subdev/bios/power_budget.h> #include <subdev/i2c.h> static bool @@ -216,10 +217,20 @@ nvkm_iccsense_oneinit(struct nvkm_subdev *subdev) { struct nvkm_iccsense *iccsense = nvkm_iccsense(subdev); struct nvkm_bios *bios = subdev->device->bios; + struct nvbios_power_budget budget; struct nvbios_iccsen...
2018 Sep 09
2
[Bug 107874] New: Incorrect SPDX-License-Identifier on various nouveau drm kernel source files?
.../nvkm/subdev/bios/pcir.h:/* SPDX-License-Identifier: GPL-2.0 */ include/nvkm/subdev/bios/perf.h:/* SPDX-License-Identifier: GPL-2.0 */ include/nvkm/subdev/bios/pll.h:/* SPDX-License-Identifier: GPL-2.0 */ include/nvkm/subdev/bios/pmu.h:/* SPDX-License-Identifier: GPL-2.0 */ include/nvkm/subdev/bios/power_budget.h:/* SPDX-License-Identifier: GPL-2.0 */ include/nvkm/subdev/bios/ramcfg.h:/* SPDX-License-Identifier: GPL-2.0 */ include/nvkm/subdev/bios/rammap.h:/* SPDX-License-Identifier: GPL-2.0 */ include/nvkm/subdev/bios/therm.h:/* SPDX-License-Identifier: GPL-2.0 */ include/nvkm/subdev/bios/timing.h:/* SPD...
2019 Jun 20
2
[PATCH] drm/nouveau: fix bogus GPL-2 license header
...subdev/bios/pcir.h | 2 +- drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/perf.h | 2 +- drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/pll.h | 2 +- drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/pmu.h | 2 +- drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/power_budget.h | 2 +- drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/ramcfg.h | 2 +- drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/rammap.h | 2 +- drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/therm.h | 2 +- drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/timing.h | 2 +- d...