Merge v5.0-rc7 into drm-next
Backmerging for nouveau and imx that needed some fixes for next pulls. Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
@@ -253,6 +253,9 @@ nouveau_backlight_init(struct drm_connector *connector)
|
||||
case NV_DEVICE_INFO_V0_FERMI:
|
||||
case NV_DEVICE_INFO_V0_KEPLER:
|
||||
case NV_DEVICE_INFO_V0_MAXWELL:
|
||||
case NV_DEVICE_INFO_V0_PASCAL:
|
||||
case NV_DEVICE_INFO_V0_VOLTA:
|
||||
case NV_DEVICE_INFO_V0_TURING:
|
||||
ret = nv50_backlight_init(nv_encoder, &props, &ops);
|
||||
break;
|
||||
default:
|
||||
|
@@ -2434,6 +2434,38 @@ nv140_chipset = {
|
||||
.sec2 = gp102_sec2_new,
|
||||
};
|
||||
|
||||
static const struct nvkm_device_chip
|
||||
nv162_chipset = {
|
||||
.name = "TU102",
|
||||
.bar = tu104_bar_new,
|
||||
.bios = nvkm_bios_new,
|
||||
.bus = gf100_bus_new,
|
||||
.devinit = tu104_devinit_new,
|
||||
.fault = tu104_fault_new,
|
||||
.fb = gv100_fb_new,
|
||||
.fuse = gm107_fuse_new,
|
||||
.gpio = gk104_gpio_new,
|
||||
.i2c = gm200_i2c_new,
|
||||
.ibus = gm200_ibus_new,
|
||||
.imem = nv50_instmem_new,
|
||||
.ltc = gp102_ltc_new,
|
||||
.mc = tu104_mc_new,
|
||||
.mmu = tu104_mmu_new,
|
||||
.pci = gp100_pci_new,
|
||||
.pmu = gp102_pmu_new,
|
||||
.therm = gp100_therm_new,
|
||||
.timer = gk20a_timer_new,
|
||||
.top = gk104_top_new,
|
||||
.ce[0] = tu104_ce_new,
|
||||
.ce[1] = tu104_ce_new,
|
||||
.ce[2] = tu104_ce_new,
|
||||
.ce[3] = tu104_ce_new,
|
||||
.ce[4] = tu104_ce_new,
|
||||
.disp = tu104_disp_new,
|
||||
.dma = gv100_dma_new,
|
||||
.fifo = tu104_fifo_new,
|
||||
};
|
||||
|
||||
static const struct nvkm_device_chip
|
||||
nv164_chipset = {
|
||||
.name = "TU104",
|
||||
@@ -2950,6 +2982,7 @@ nvkm_device_ctor(const struct nvkm_device_func *func,
|
||||
case 0x138: device->chip = &nv138_chipset; break;
|
||||
case 0x13b: device->chip = &nv13b_chipset; break;
|
||||
case 0x140: device->chip = &nv140_chipset; break;
|
||||
case 0x162: device->chip = &nv162_chipset; break;
|
||||
case 0x164: device->chip = &nv164_chipset; break;
|
||||
case 0x166: device->chip = &nv166_chipset; break;
|
||||
default:
|
||||
|
@@ -22,6 +22,7 @@
|
||||
#include <engine/falcon.h>
|
||||
|
||||
#include <core/gpuobj.h>
|
||||
#include <subdev/mc.h>
|
||||
#include <subdev/timer.h>
|
||||
#include <engine/fifo.h>
|
||||
|
||||
@@ -107,8 +108,10 @@ nvkm_falcon_fini(struct nvkm_engine *engine, bool suspend)
|
||||
}
|
||||
}
|
||||
|
||||
nvkm_mask(device, base + 0x048, 0x00000003, 0x00000000);
|
||||
nvkm_wr32(device, base + 0x014, 0xffffffff);
|
||||
if (nvkm_mc_enabled(device, engine->subdev.index)) {
|
||||
nvkm_mask(device, base + 0x048, 0x00000003, 0x00000000);
|
||||
nvkm_wr32(device, base + 0x014, 0xffffffff);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@@ -132,11 +132,12 @@ nvkm_therm_update(struct nvkm_therm *therm, int mode)
|
||||
duty = nvkm_therm_update_linear(therm);
|
||||
break;
|
||||
case NVBIOS_THERM_FAN_OTHER:
|
||||
if (therm->cstate)
|
||||
if (therm->cstate) {
|
||||
duty = therm->cstate;
|
||||
else
|
||||
poll = false;
|
||||
} else {
|
||||
duty = nvkm_therm_update_linear_fallback(therm);
|
||||
poll = false;
|
||||
}
|
||||
break;
|
||||
}
|
||||
immd = false;
|
||||
|
Reference in New Issue
Block a user