drm/nouveau/bios/power_budget: Add basic power budget parsing
authorKarol Herbst <karolherbst@gmail.com>
Mon, 23 Jan 2017 22:10:11 +0000 (23:10 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 17 Feb 2017 07:38:16 +0000 (17:38 +1000)
commite5f8eabc0077ea3f77b3362e28d3969ae62e70f0
tree3dd35f08366c819e794c76e41a90a958618de833
parent75d115f2aae145fd7dfed29703ce063e3e7bb716
drm/nouveau/bios/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
v4: disable for ver 0x10 for now
    move assignments after the second last return

Signed-off-by: Karol Herbst <karolherbst@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/power_budget.h [new file with mode: 0644]
drivers/gpu/drm/nouveau/nvkm/subdev/bios/Kbuild
drivers/gpu/drm/nouveau/nvkm/subdev/bios/power_budget.c [new file with mode: 0644]