[PATCH] gpu/nouveau/nouveau_acpi.c: Fix Type Mismatch ACPI warning

2016-05-18 Thread Marcos Paulo de Souza
nouveau_optimus_dsm is using ACPI_TYPE_BUFFER, and this triggers warnings on 
ACPI:
[7.730564] ACPI: \_SB_.PCI0.RP05.PEGP: failed to evaluate _DSM
[7.730570] ACPI Warning: \_SB_.PCI0.RP05.PEGP._DSM: Argument #4 type 
mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)

To fix it, change ACPI_TYPE_BUFFER to ACPI_TYPE_PACKAGE, as the warning tells 
to do.

Signed-off-by: Marcos Paulo de Souza 
---

After booting my Asus Laptop, and after a suspend/resume too, dmesg shows 
warnings:
[1.633361] ACPI Warning: \_SB_.PCI0.RP05.PEGP._DSM: Argument #4 type 
mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)
[1.633434] ACPI Warning: \_SB_.PCI0.RP05.PEGP._DSM: Argument #4 type 
mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)
[7.730176] ACPI Warning: \_SB_.PCI0.RP05.PEGP._DSM: Argument #4 type 
mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)
[7.730564] ACPI: \_SB_.PCI0.RP05.PEGP: failed to evaluate _DSM
[7.730570] ACPI Warning: \_SB_.PCI0.RP05.PEGP._DSM: Argument #4 type 
mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)
[   49.732059] ACPI Warning: \_SB_.PCI0.RP05.PEGP._DSM: Argument #4 type 
mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)
[   49.732424] ACPI: \_SB_.PCI0.RP05.PEGP: failed to evaluate _DSM
[   49.732430] ACPI Warning: \_SB_.PCI0.RP05.PEGP._DSM: Argument #4 type 
mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)
[   74.366300] ACPI Warning: \_SB_.PCI0.RP05.PEGP._DSM: Argument #4 type 
mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)
[   74.366657] ACPI: \_SB_.PCI0.RP05.PEGP: failed to evaluate _DSM
[   74.33] ACPI Warning: \_SB_.PCI0.RP05.PEGP._DSM: Argument #4 type 
mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)
[  140.357789] ACPI Warning: \_SB_.PCI0.RP05.PEGP._DSM: Argument #4 type 
mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)
[  140.358532] ACPI: \_SB_.PCI0.RP05.PEGP: failed to evaluate _DSM
[  140.358547] ACPI Warning: \_SB_.PCI0.RP05.PEGP._DSM: Argument #4 type 
mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)

I don't know if this is the right thing to do, I just looked at intel_acpi.c to 
check how to use/check for ACPI Package.
The patch below silenced the "type mismatch" warnings, and some of the 
"evaluated _DSM" ones.

If this is not the right approach, please let me know how to fix it, I don't 
have knowledge in ACPI, but I really want to help.

 drivers/gpu/drm/nouveau/nouveau_acpi.c | 14 +-
 1 file changed, 1 insertion(+), 13 deletions(-)

diff --git a/drivers/gpu/drm/nouveau/nouveau_acpi.c 
b/drivers/gpu/drm/nouveau/nouveau_acpi.c
index cdf5227..f04aef3 100644
--- a/drivers/gpu/drm/nouveau/nouveau_acpi.c
+++ b/drivers/gpu/drm/nouveau/nouveau_acpi.c
@@ -73,22 +73,10 @@ static const char nouveau_op_dsm_muid[] = {

 static int nouveau_optimus_dsm(acpi_handle handle, int func, int arg, uint32_t 
*result)
 {
-   int i;
union acpi_object *obj;
-   char args_buff[4];
-   union acpi_object argv4 = {
-   .buffer.type = ACPI_TYPE_BUFFER,
-   .buffer.length = 4,
-   .buffer.pointer = args_buff
-   };
-
-   /* ACPI is little endian, AABBCCDD becomes {DD,CC,BB,AA} */
-   for (i = 0; i < 4; i++)
-   args_buff[i] = (arg >> i * 8) & 0xFF;
-
*result = 0;
obj = acpi_evaluate_dsm_typed(handle, nouveau_op_dsm_muid, 0x0100,
- func, &argv4, ACPI_TYPE_BUFFER);
+ func, NULL, ACPI_TYPE_PACKAGE);
if (!obj) {
acpi_handle_info(handle, "failed to evaluate _DSM\n");
return AE_ERROR;
-- 
2.5.5



max PWM is zero

2011-11-15 Thread Marcos Paulo de Souza

Hi lkml,

I'm using the kernel 3.2-rc1 and I'm getting the following message in my 
dmesg:

fixme: max PWM is zero.

I don't remember if this message was here before...

I'm trying to verify what is causing this. I found this waring message in 
the drivers/gpu/drm/i915/intel_panel.c.


There is a comment above  this message, talking about put a code to query 
mode clock or hw clock to set the max PWM.


Bellow is my lspci.

I will be happy if you continue to cc me, and if you need any test, I'm 
able to do this.


00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory 
Controller Hub (rev 09)
Subsystem: FIRST INTERNATIONAL Computer Inc Device 3009
Flags: bus master, fast devsel, latency 0
Capabilities: [e0] Vendor Specific Information: Len=0a 
Kernel driver in use: agpgart-intel
Kernel modules: intel-agp

00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset 
Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])
Subsystem: FIRST INTERNATIONAL Computer Inc Device 3009
Flags: bus master, fast devsel, latency 0, IRQ 44
Memory at f800 (64-bit, non-prefetchable) [size=4M]
Memory at d000 (64-bit, prefetchable) [size=256M]
I/O ports at 1800 [size=8]
Expansion ROM at  [disabled]
Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [d0] Power Management version 3
Kernel driver in use: i915
Kernel modules: i915

00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset 
Integrated Graphics Controller (rev 09)
Subsystem: FIRST INTERNATIONAL Computer Inc Device 3009
Flags: bus master, fast devsel, latency 0
Memory at f840 (64-bit, non-prefetchable) [size=1M]
Capabilities: [d0] Power Management version 3

00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI 
Controller #4 (rev 03) (prog-if 00 [UHCI])
Subsystem: FIRST INTERNATIONAL Computer Inc Device 3009
Flags: bus master, medium devsel, latency 0, IRQ 16
I/O ports at 1820 [size=32]
Capabilities: [50] PCI Advanced Features
Kernel driver in use: uhci_hcd

00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI 
Controller #5 (rev 03) (prog-if 00 [UHCI])
Subsystem: FIRST INTERNATIONAL Computer Inc Device 3009
Flags: bus master, medium devsel, latency 0, IRQ 21
I/O ports at 1840 [size=32]
Capabilities: [50] PCI Advanced Features
Kernel driver in use: uhci_hcd

00:1a.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI 
Controller #6 (rev 03) (prog-if 00 [UHCI])
Subsystem: FIRST INTERNATIONAL Computer Inc Device 3009
Flags: bus master, medium devsel, latency 0, IRQ 19
I/O ports at 1860 [size=32]
Capabilities: [50] PCI Advanced Features
Kernel driver in use: uhci_hcd

00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI 
Controller #2 (rev 03) (prog-if 20 [EHCI])
Subsystem: FIRST INTERNATIONAL Computer Inc Device 3009
Flags: bus master, medium devsel, latency 0, IRQ 19
Memory at f8704000 (32-bit, non-prefetchable) [size=1K]
Capabilities: [50] Power Management version 2
Capabilities: [58] Debug port: BAR=1 offset=00a0
Capabilities: [98] PCI Advanced Features
Kernel driver in use: ehci_hcd

00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio 
Controller (rev 03)
Subsystem: FIRST INTERNATIONAL Computer Inc Device 3009
Flags: bus master, fast devsel, latency 0, IRQ 43
Memory at f870 (64-bit, non-prefetchable) [size=16K]
Capabilities: [50] Power Management version 2
Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [100] Virtual Channel
Capabilities: [130] Root Complex Link
Kernel driver in use: snd_hda_intel
Kernel modules: snd-hda-intel

00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 
(rev 03) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=02, subordinate=03, sec-latency=0
I/O behind bridge: 2000-2fff
Memory behind bridge: f400-f5ff
Prefetchable memory behind bridge: f000-f1ff
Capabilities: [40] Express Root Port (Slot+), MSI 00
Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [90] Subsystem: Gammagraphx, Inc. (or missing ID) Device 

Capabilities: [a0] Power Management version 2
Capabilities: [100] Virtual Channel
Capabilities: [180] Root Complex Link
Kernel driver in use: pcieport
Kernel modules: shpchp

00:1c.5 PCI bridge: Intel Corporation 82801I (

Re: max PWM is zero

2011-11-20 Thread Marcos Paulo de Souza

So, anybody gets the same message?

I'm trying the 3.2-rc2 and it gives the same message.

Again, if you need someone to make tests, or test some patches, I'm 
able to do this.


* Uma vida sem desafios é uma vida sem razão *
* A life without challanges is a non reason life *

On Tue, 15 Nov 2011, Marcos Paulo de Souza wrote:


Hi lkml,

I'm using the kernel 3.2-rc1 and I'm getting the following message in my 
dmesg:

fixme: max PWM is zero.

I don't remember if this message was here before...

I'm trying to verify what is causing this. I found this waring message in the 
drivers/gpu/drm/i915/intel_panel.c.


There is a comment above  this message, talking about put a code to query 
mode clock or hw clock to set the max PWM.


Bellow is my lspci.

I will be happy if you continue to cc me, and if you need any test, I'm able 
to do this.


00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory 
Controller Hub (rev 09)

Subsystem: FIRST INTERNATIONAL Computer Inc Device 3009
Flags: bus master, fast devsel, latency 0
Capabilities: [e0] Vendor Specific Information: Len=0a 
Kernel driver in use: agpgart-intel
Kernel modules: intel-agp

00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset 
Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])

Subsystem: FIRST INTERNATIONAL Computer Inc Device 3009
Flags: bus master, fast devsel, latency 0, IRQ 44
Memory at f800 (64-bit, non-prefetchable) [size=4M]
Memory at d000 (64-bit, prefetchable) [size=256M]
I/O ports at 1800 [size=8]
Expansion ROM at  [disabled]
Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [d0] Power Management version 3
Kernel driver in use: i915
Kernel modules: i915

00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset 
Integrated Graphics Controller (rev 09)

Subsystem: FIRST INTERNATIONAL Computer Inc Device 3009
Flags: bus master, fast devsel, latency 0
Memory at f840 (64-bit, non-prefetchable) [size=1M]
Capabilities: [d0] Power Management version 3

00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI 
Controller #4 (rev 03) (prog-if 00 [UHCI])

Subsystem: FIRST INTERNATIONAL Computer Inc Device 3009
Flags: bus master, medium devsel, latency 0, IRQ 16
I/O ports at 1820 [size=32]
Capabilities: [50] PCI Advanced Features
Kernel driver in use: uhci_hcd

00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI 
Controller #5 (rev 03) (prog-if 00 [UHCI])

Subsystem: FIRST INTERNATIONAL Computer Inc Device 3009
Flags: bus master, medium devsel, latency 0, IRQ 21
I/O ports at 1840 [size=32]
Capabilities: [50] PCI Advanced Features
Kernel driver in use: uhci_hcd

00:1a.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI 
Controller #6 (rev 03) (prog-if 00 [UHCI])

Subsystem: FIRST INTERNATIONAL Computer Inc Device 3009
Flags: bus master, medium devsel, latency 0, IRQ 19
I/O ports at 1860 [size=32]
Capabilities: [50] PCI Advanced Features
Kernel driver in use: uhci_hcd

00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI 
Controller #2 (rev 03) (prog-if 20 [EHCI])

Subsystem: FIRST INTERNATIONAL Computer Inc Device 3009
Flags: bus master, medium devsel, latency 0, IRQ 19
Memory at f8704000 (32-bit, non-prefetchable) [size=1K]
Capabilities: [50] Power Management version 2
Capabilities: [58] Debug port: BAR=1 offset=00a0
Capabilities: [98] PCI Advanced Features
Kernel driver in use: ehci_hcd

00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio 
Controller (rev 03)

Subsystem: FIRST INTERNATIONAL Computer Inc Device 3009
Flags: bus master, fast devsel, latency 0, IRQ 43
Memory at f870 (64-bit, non-prefetchable) [size=16K]
Capabilities: [50] Power Management version 2
Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [100] Virtual Channel
Capabilities: [130] Root Complex Link
Kernel driver in use: snd_hda_intel
Kernel modules: snd-hda-intel

00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 
(rev 03) (prog-if 00 [Normal decode])

Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=02, subordinate=03, sec-latency=0
I/O behind bridge: 2000-2fff
Memory behind bridge: f400-f5ff
Prefetchable memory behind bridge: f000-f1ff
Capabilities: [40] Express Root Port (Slot+), MSI 00
Capabilities: [80] MSI

Re: max PWM is zero

2011-11-22 Thread Marcos Paulo de Souza


Hi Keith,

On Sat, 19 Nov 2011, Keith Packard wrote:


On Sat, 19 Nov 2011 11:26:07 + (Local time zone must be set--see zic manual 
page), Marcos Paulo de Souza  wrote:

So, anybody gets the same message?

I'm trying the 3.2-rc2 and it gives the same message.

Again, if you need someone to make tests, or test some patches, I'm
able to do this.


Is your machine even using the intel backlight device? You can test this
by:

# cd /sys/class/backlight/intel_backlight

Then look at 'max_brightness' and try echoing a range of numbers from 0
to max_brightness into the brightness file and see if it changes the
backlight.
My max_brightness is 1, and my brightness is 0. But, my acpi_video0 have a 
max_brightness value = 9...

It's more than possible that your machine is simply using some other
hardware to drive the backlight and that the integrated backlight
controller is simply disabled.
So, what can I do to silence this warning...? Change the driver of 
backlight?

--
keith.pack...@intel.com


___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[PATCH 02/12] drivers: gpu: drm: gma500: mdfld_dsi_output.h: Remove not unneeded include of version.h

2012-04-17 Thread Marcos Paulo de Souza
The output of "make versioncheck" points a incorrect include of
version.h in the drivers/gpu/drm/gma500/mdfld_dsi_output.h:

drivers/gpu/drm/gma500/mdfld_dsi_output.h: 32 linux/version.h not needed.

If we take a look in the file, we can agree to remove it.

Cc: David Airlie 
Cc: 
Signed-off-by: Marcos Paulo de Souza 
---
 drivers/gpu/drm/gma500/mdfld_dsi_output.h |1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/drivers/gpu/drm/gma500/mdfld_dsi_output.h 
b/drivers/gpu/drm/gma500/mdfld_dsi_output.h
index 21071ce..36eb074 100644
--- a/drivers/gpu/drm/gma500/mdfld_dsi_output.h
+++ b/drivers/gpu/drm/gma500/mdfld_dsi_output.h
@@ -29,7 +29,6 @@
 #define __MDFLD_DSI_OUTPUT_H__
 
 #include 
-#include 
 #include 
 #include 
 #include 
-- 
1.7.7.6

___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[PATCH 02/12] drivers: gpu: drm: gma500: mdfld_dsi_output.h: Remove not unneeded include of version.h

2012-04-18 Thread Marcos Paulo de Souza
The output of "make versioncheck" points a incorrect include of
version.h in the drivers/gpu/drm/gma500/mdfld_dsi_output.h:

drivers/gpu/drm/gma500/mdfld_dsi_output.h: 32 linux/version.h not needed.

If we take a look in the file, we can agree to remove it.

Cc: David Airlie 
Cc: 
Signed-off-by: Marcos Paulo de Souza 
---
 drivers/gpu/drm/gma500/mdfld_dsi_output.h |1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/drivers/gpu/drm/gma500/mdfld_dsi_output.h 
b/drivers/gpu/drm/gma500/mdfld_dsi_output.h
index 21071ce..36eb074 100644
--- a/drivers/gpu/drm/gma500/mdfld_dsi_output.h
+++ b/drivers/gpu/drm/gma500/mdfld_dsi_output.h
@@ -29,7 +29,6 @@
 #define __MDFLD_DSI_OUTPUT_H__

 #include 
-#include 
 #include 
 #include 
 #include 
-- 
1.7.7.6



max PWM is zero

2011-11-15 Thread Marcos Paulo de Souza
Hi lkml,

I'm using the kernel 3.2-rc1 and I'm getting the following message in my 
dmesg:
fixme: max PWM is zero.

I don't remember if this message was here before...

I'm trying to verify what is causing this. I found this waring message in 
the drivers/gpu/drm/i915/intel_panel.c.

There is a comment above  this message, talking about put a code to query 
mode clock or hw clock to set the max PWM.

Bellow is my lspci.

I will be happy if you continue to cc me, and if you need any test, I'm 
able to do this.

00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory 
Controller Hub (rev 09)
Subsystem: FIRST INTERNATIONAL Computer Inc Device 3009
Flags: bus master, fast devsel, latency 0
Capabilities: [e0] Vendor Specific Information: Len=0a 
Kernel driver in use: agpgart-intel
Kernel modules: intel-agp

00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset 
Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])
Subsystem: FIRST INTERNATIONAL Computer Inc Device 3009
Flags: bus master, fast devsel, latency 0, IRQ 44
Memory at f800 (64-bit, non-prefetchable) [size=4M]
Memory at d000 (64-bit, prefetchable) [size=256M]
I/O ports at 1800 [size=8]
Expansion ROM at  [disabled]
Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [d0] Power Management version 3
Kernel driver in use: i915
Kernel modules: i915

00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset 
Integrated Graphics Controller (rev 09)
Subsystem: FIRST INTERNATIONAL Computer Inc Device 3009
Flags: bus master, fast devsel, latency 0
Memory at f840 (64-bit, non-prefetchable) [size=1M]
Capabilities: [d0] Power Management version 3

00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI 
Controller #4 (rev 03) (prog-if 00 [UHCI])
Subsystem: FIRST INTERNATIONAL Computer Inc Device 3009
Flags: bus master, medium devsel, latency 0, IRQ 16
I/O ports at 1820 [size=32]
Capabilities: [50] PCI Advanced Features
Kernel driver in use: uhci_hcd

00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI 
Controller #5 (rev 03) (prog-if 00 [UHCI])
Subsystem: FIRST INTERNATIONAL Computer Inc Device 3009
Flags: bus master, medium devsel, latency 0, IRQ 21
I/O ports at 1840 [size=32]
Capabilities: [50] PCI Advanced Features
Kernel driver in use: uhci_hcd

00:1a.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI 
Controller #6 (rev 03) (prog-if 00 [UHCI])
Subsystem: FIRST INTERNATIONAL Computer Inc Device 3009
Flags: bus master, medium devsel, latency 0, IRQ 19
I/O ports at 1860 [size=32]
Capabilities: [50] PCI Advanced Features
Kernel driver in use: uhci_hcd

00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI 
Controller #2 (rev 03) (prog-if 20 [EHCI])
Subsystem: FIRST INTERNATIONAL Computer Inc Device 3009
Flags: bus master, medium devsel, latency 0, IRQ 19
Memory at f8704000 (32-bit, non-prefetchable) [size=1K]
Capabilities: [50] Power Management version 2
Capabilities: [58] Debug port: BAR=1 offset=00a0
Capabilities: [98] PCI Advanced Features
Kernel driver in use: ehci_hcd

00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio 
Controller (rev 03)
Subsystem: FIRST INTERNATIONAL Computer Inc Device 3009
Flags: bus master, fast devsel, latency 0, IRQ 43
Memory at f870 (64-bit, non-prefetchable) [size=16K]
Capabilities: [50] Power Management version 2
Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [100] Virtual Channel
Capabilities: [130] Root Complex Link
Kernel driver in use: snd_hda_intel
Kernel modules: snd-hda-intel

00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 
(rev 03) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=02, subordinate=03, sec-latency=0
I/O behind bridge: 2000-2fff
Memory behind bridge: f400-f5ff
Prefetchable memory behind bridge: f000-f1ff
Capabilities: [40] Express Root Port (Slot+), MSI 00
Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [90] Subsystem: Gammagraphx, Inc. (or missing ID) Device 

Capabilities: [a0] Power Management version 2
Capabilities: [100] Virtual Channel
Capabilities: [180] Root Complex Link
Kernel driver in use: pcieport
Kernel modules: shpchp

00:1c.5 PCI bridge: Intel Corporation 82801I (ICH9 

max PWM is zero

2011-11-19 Thread Marcos Paulo de Souza
So, anybody gets the same message?

I'm trying the 3.2-rc2 and it gives the same message.

Again, if you need someone to make tests, or test some patches, I'm 
able to do this.

* Uma vida sem desafios ? uma vida sem raz?o *
* A life without challanges is a non reason life *

On Tue, 15 Nov 2011, Marcos Paulo de Souza wrote:

> Hi lkml,
>
> I'm using the kernel 3.2-rc1 and I'm getting the following message in my 
> dmesg:
> fixme: max PWM is zero.
>
> I don't remember if this message was here before...
>
> I'm trying to verify what is causing this. I found this waring message in the 
> drivers/gpu/drm/i915/intel_panel.c.
>
> There is a comment above  this message, talking about put a code to query 
> mode clock or hw clock to set the max PWM.
>
> Bellow is my lspci.
>
> I will be happy if you continue to cc me, and if you need any test, I'm able 
> to do this.
>
> 00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory 
> Controller Hub (rev 09)
>   Subsystem: FIRST INTERNATIONAL Computer Inc Device 3009
>   Flags: bus master, fast devsel, latency 0
>   Capabilities: [e0] Vendor Specific Information: Len=0a 
>   Kernel driver in use: agpgart-intel
>   Kernel modules: intel-agp
>
> 00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset 
> Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])
>   Subsystem: FIRST INTERNATIONAL Computer Inc Device 3009
>   Flags: bus master, fast devsel, latency 0, IRQ 44
>   Memory at f800 (64-bit, non-prefetchable) [size=4M]
>   Memory at d000 (64-bit, prefetchable) [size=256M]
>   I/O ports at 1800 [size=8]
>   Expansion ROM at  [disabled]
>   Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
>   Capabilities: [d0] Power Management version 3
>   Kernel driver in use: i915
>   Kernel modules: i915
>
> 00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset 
> Integrated Graphics Controller (rev 09)
>   Subsystem: FIRST INTERNATIONAL Computer Inc Device 3009
>   Flags: bus master, fast devsel, latency 0
>   Memory at f840 (64-bit, non-prefetchable) [size=1M]
>   Capabilities: [d0] Power Management version 3
>
> 00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI 
> Controller #4 (rev 03) (prog-if 00 [UHCI])
>   Subsystem: FIRST INTERNATIONAL Computer Inc Device 3009
>   Flags: bus master, medium devsel, latency 0, IRQ 16
>   I/O ports at 1820 [size=32]
>   Capabilities: [50] PCI Advanced Features
>   Kernel driver in use: uhci_hcd
>
> 00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI 
> Controller #5 (rev 03) (prog-if 00 [UHCI])
>   Subsystem: FIRST INTERNATIONAL Computer Inc Device 3009
>   Flags: bus master, medium devsel, latency 0, IRQ 21
>   I/O ports at 1840 [size=32]
>   Capabilities: [50] PCI Advanced Features
>   Kernel driver in use: uhci_hcd
>
> 00:1a.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI 
> Controller #6 (rev 03) (prog-if 00 [UHCI])
>   Subsystem: FIRST INTERNATIONAL Computer Inc Device 3009
>   Flags: bus master, medium devsel, latency 0, IRQ 19
>   I/O ports at 1860 [size=32]
>   Capabilities: [50] PCI Advanced Features
>   Kernel driver in use: uhci_hcd
>
> 00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI 
> Controller #2 (rev 03) (prog-if 20 [EHCI])
>   Subsystem: FIRST INTERNATIONAL Computer Inc Device 3009
>   Flags: bus master, medium devsel, latency 0, IRQ 19
>   Memory at f8704000 (32-bit, non-prefetchable) [size=1K]
>   Capabilities: [50] Power Management version 2
>   Capabilities: [58] Debug port: BAR=1 offset=00a0
>   Capabilities: [98] PCI Advanced Features
>   Kernel driver in use: ehci_hcd
>
> 00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio 
> Controller (rev 03)
>   Subsystem: FIRST INTERNATIONAL Computer Inc Device 3009
>   Flags: bus master, fast devsel, latency 0, IRQ 43
>   Memory at f870 (64-bit, non-prefetchable) [size=16K]
>   Capabilities: [50] Power Management version 2
>   Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
>   Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
>   Capabilities: [100] Virtual Channel
>   Capabilities: [130] Root Complex Link
>   Kernel driver in use: snd_hda_intel
>   Kernel modules: snd-hda-intel
>
> 00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 
> (rev 03) (prog-if 00 [Normal decode])
>   Flags: bus mast

max PWM is zero

2011-11-21 Thread Marcos Paulo de Souza

Hi Keith,

On Sat, 19 Nov 2011, Keith Packard wrote:

> On Sat, 19 Nov 2011 11:26:07 + (Local time zone must be set--see zic 
> manual page), Marcos Paulo de Souza  wrote:
>> So, anybody gets the same message?
>>
>> I'm trying the 3.2-rc2 and it gives the same message.
>>
>> Again, if you need someone to make tests, or test some patches, I'm
>> able to do this.
>
> Is your machine even using the intel backlight device? You can test this
> by:
>
> # cd /sys/class/backlight/intel_backlight
>
> Then look at 'max_brightness' and try echoing a range of numbers from 0
> to max_brightness into the brightness file and see if it changes the
> backlight.
My max_brightness is 1, and my brightness is 0. But, my acpi_video0 have a 
max_brightness value = 9...
> It's more than possible that your machine is simply using some other
> hardware to drive the backlight and that the integrated backlight
> controller is simply disabled.
So, what can I do to silence this warning...? Change the driver of 
backlight?
> -- 
> keith.packard at intel.com
>