search for: nvkm_gpio_find

Displaying 16 results from an estimated 16 matches for "nvkm_gpio_find".

2019 Jul 15
2
[PATCH v2 2/4] gpio: fail if gpu external power is missing
...> + struct dcb_gpio_func func; > + int ret; > + int i; > + > if (dmi_check_system(gpio_reset_ids)) > nvkm_gpio_reset(gpio, DCB_GPIO_UNUSED); > + > + for (i = 0; i < ARRAY_SIZE(power_checks); ++i) { > + ret = nvkm_gpio_find(gpio, 0, power_checks[i], DCB_GPIO_UNUSED, > + &func); > + if (ret) > + continue; > + > + ret = nvkm_gpio_get(gpio, 0, func.func, func.line); > + if (ret) { > +...
2016 Sep 16
7
[PATCH 1/3] drm/nouveau/led: don't access led subdev if it wasn't initialized
From: Karol Herbst <karolherbst at gmail.com> Fixes a kernel crash on suspend/resume. --- drm/nouveau/nouveau_led.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drm/nouveau/nouveau_led.c b/drm/nouveau/nouveau_led.c index 9eed5a6..5e28b5f 100644 --- a/drm/nouveau/nouveau_led.c +++ b/drm/nouveau/nouveau_led.c @@ -107,7 +107,8 @@ nouveau_led_suspend(struct
2019 Jul 15
5
[PATCH v2 0/4] Refuse to load if power cables are not connected
Trello: https://trello.com/c/admzDRvd/50-reduce-performance-refuse-to-boot-if-not-all-the-power-connectors-are-plugged Fixed commit messages. Mark Menzynski (4): bios/gpio: sort gpios by values gpio: fail if gpu external power is missing gpio: check the gpio function 16 in the power check as well gpio: check function 76 in the power check as well
2016 Sep 16
0
[PATCH 3/3] drm/nouveau/led: abort early if the device does not have GPIOs
..._led.c index 1f731da..3e2f1b6 100644 --- a/drm/nouveau/nouveau_led.c +++ b/drm/nouveau/nouveau_led.c @@ -82,6 +82,9 @@ nouveau_led_init(struct drm_device *dev) struct dcb_gpio_func logo_led; int ret; + if (!gpio) + return 0; + /* check that there is a GPIO controlling the logo LED */ if (nvkm_gpio_find(gpio, 0, DCB_GPIO_LOGO_LED_PWM, 0xff, &logo_led)) return 0; -- 2.8.0
2019 Jul 11
0
[PATCH 2/4] gpio: checking if gpu power cable is connected
...tic int nvkm_gpio_init(struct nvkm_subdev *subdev) { struct nvkm_gpio *gpio = nvkm_gpio(subdev); + struct dcb_gpio_func func; + int ret; + int i; + if (dmi_check_system(gpio_reset_ids)) nvkm_gpio_reset(gpio, DCB_GPIO_UNUSED); + + for (i = 0; i < ARRAY_SIZE(power_checks); ++i) { + ret = nvkm_gpio_find(gpio, 0, power_checks[i], DCB_GPIO_UNUSED, + &func); + if (ret) + continue; + + ret = nvkm_gpio_get(gpio, 0, func.func, func.line); + if (ret) { + nvkm_error(&gpio->subdev, + "not enough power, check GPU power cable\n"); + return -EINVAL; + } + } + ret...
2019 Jul 15
0
[PATCH v2 2/4] gpio: fail if gpu external power is missing
...tic int nvkm_gpio_init(struct nvkm_subdev *subdev) { struct nvkm_gpio *gpio = nvkm_gpio(subdev); + struct dcb_gpio_func func; + int ret; + int i; + if (dmi_check_system(gpio_reset_ids)) nvkm_gpio_reset(gpio, DCB_GPIO_UNUSED); + + for (i = 0; i < ARRAY_SIZE(power_checks); ++i) { + ret = nvkm_gpio_find(gpio, 0, power_checks[i], DCB_GPIO_UNUSED, + &func); + if (ret) + continue; + + ret = nvkm_gpio_get(gpio, 0, func.func, func.line); + if (ret) { + nvkm_error(&gpio->subdev, + "not enough power, check GPU power cable\n"); + return -EINVAL; + } + } + ret...
2019 Jul 16
0
[PATCH v2 2/4] gpio: fail if gpu external power is missing
...> > + int ret; > > + int i; > > + > > if (dmi_check_system(gpio_reset_ids)) > > nvkm_gpio_reset(gpio, DCB_GPIO_UNUSED); > > + > > + for (i = 0; i < ARRAY_SIZE(power_checks); ++i) { > > + ret = nvkm_gpio_find(gpio, 0, power_checks[i], DCB_GPIO_UNUSED, > > + &func); > > + if (ret) > > + continue; > > + > > + ret = nvkm_gpio_get(gpio, 0, func.func, func.line); > > + if...
2015 Sep 29
10
All-round reclocking improvements
In bulletpoints: - Add some support for G94 and G96 reclocking. Has been tested on literally two cards, which is hardly adequate as "full coverage". On the other hand, the changes were small enough to make me confident this might work for others as well. - Fix NV50 wait for VBLANK when no monitor is plugged in. - Voltage related inprovements for GT21x. - Slightly improve Keplers
2016 Aug 22
10
[PATCH v2] drm/nouveau: add a LED driver for the NVIDIA logo
...61c884, 0xc0000000 | duty); +} + +int +nouveau_led_init(struct drm_device *dev) +{ + struct nouveau_drm *drm = nouveau_drm(dev); + struct nvkm_gpio *gpio = nvxx_gpio(&drm->device); + struct dcb_gpio_func logo_led; + int ret; + + /* check that there is a GPIO controlling the logo LED */ + if (nvkm_gpio_find(gpio, 0, DCB_GPIO_LOGO_LED_PWM, 0xff, &logo_led)) + return 0; + + drm->led = kzalloc(sizeof(*drm->led), GFP_KERNEL); + if (!drm->led) + return -ENOMEM; + drm->led->dev = dev; + + drm->led->led.name = "nvidia-logo"; + drm->led->led.max_brightness = 255; + d...
2019 Jul 18
5
[PATCH v3 0/4] Refuse to load if power cable are not connected
Added config override for power checks. Mark Menzynski (4): bios/gpio: sort gpios by values gpio: fail if gpu external power is missing gpio: check the gpio function 16 in the power check as well gpio: check function 76 in the power check as well drm/nouveau/include/nvkm/subdev/bios/gpio.h | 5 +++- drm/nouveau/nvkm/subdev/gpio/base.c | 32 +++++++++++++++++++++ 2 files
2016 Aug 22
0
[PATCH v2] drm/nouveau: add a LED driver for the NVIDIA logo
...ndif + +int +nouveau_led_init(struct drm_device *dev) +{ +#ifdef CONFIG_LEDS_CLASS + struct nouveau_drm *drm = nouveau_drm(dev); + struct nvkm_gpio *gpio = nvxx_gpio(&drm->device); + struct dcb_gpio_func logo_led; + int ret; + + /* check that there is a GPIO controlling the logo LED */ + if (nvkm_gpio_find(gpio, 0, DCB_GPIO_LOGO_LED_PWM, 0xff, &logo_led)) + return 0; + + drm->led = kzalloc(sizeof(*drm->led), GFP_KERNEL); + if (!drm->led) + return -ENOMEM; + drm->led->dev = dev; + + drm->led->led.name = "nvidia-logo"; + drm->led->led.max_brightness = 255; + d...
2016 May 03
0
[PATCH] drm/nouveau: add a LED driver for the NVIDIA logo
...ev) > +{ > + struct nouveau_drm *drm = nouveau_drm(dev); > + struct nvkm_gpio *gpio = nvxx_gpio(&drm->device); > + struct dcb_gpio_func logo_led; > + int ret; > + > + /* check that there is a GPIO controlling the logo LED */ > + if (nvkm_gpio_find(gpio, 0, DCB_GPIO_LOGO_LED_PWM, 0xff, &logo_led)) > + return 0; > + > + drm->led = kzalloc(sizeof(*drm->led), GFP_KERNEL); > + if (!drm->led) > + return -ENOMEM; > + drm->led->dev = dev; > + > + drm->l...
2016 Aug 23
0
[PATCH v2] drm/nouveau: add a LED driver for the NVIDIA logo
...ev) > +{ > + struct nouveau_drm *drm = nouveau_drm(dev); > + struct nvkm_gpio *gpio = nvxx_gpio(&drm->device); > + struct dcb_gpio_func logo_led; > + int ret; > + > + /* check that there is a GPIO controlling the logo LED */ > + if (nvkm_gpio_find(gpio, 0, DCB_GPIO_LOGO_LED_PWM, 0xff, &logo_led)) > + return 0; > + > + drm->led = kzalloc(sizeof(*drm->led), GFP_KERNEL); > + if (!drm->led) > + return -ENOMEM; > + drm->led->dev = dev; > + > + drm->l...
2019 Jul 11
6
[PATCH 0/4] Refuse to load if the power cable are not connected
trello card: https://trello.com/c/admzDRvd/50-reduce-performance-refuse-to-boot-if-not-all-the-power-connectors-are-plugged Mark Menzynski (4): moved gpio so it is sorted by values gpio: checking if gpu power cable is connected gpio: added power check for another GPIO gpio: added power check for another GPIO drm/nouveau/include/nvkm/subdev/bios/gpio.h | 5 ++++-
2016 May 07
0
[PATCH] drm/nouveau: add a LED driver for the NVIDIA logo
...ev) > +{ > + struct nouveau_drm *drm = nouveau_drm(dev); > + struct nvkm_gpio *gpio = nvxx_gpio(&drm->device); > + struct dcb_gpio_func logo_led; > + int ret; > + > + /* check that there is a GPIO controlling the logo LED */ > + if (nvkm_gpio_find(gpio, 0, DCB_GPIO_LOGO_LED_PWM, 0xff, &logo_led)) > + return 0; > + > + drm->led = kzalloc(sizeof(*drm->led), GFP_KERNEL); > + if (!drm->led) > + return -ENOMEM; > + drm->led->dev = dev; > + > + drm->l...
2010 Oct 26
22
[Bug 31122] New: Cannot control backlight intensity on Powerbook
https://bugs.freedesktop.org/show_bug.cgi?id=31122 Summary: Cannot control backlight intensity on Powerbook Product: xorg Version: unspecified Platform: PowerPC OS/Version: Linux (All) Status: NEW Severity: enhancement Priority: medium Component: Driver/nouveau AssignedTo: nouveau at