[PATCH 3/4] drm/i915/vlv_dsi: Add DMI quirk for backlight control issues on Lenovo Yoga Tab 3

2023-09-16 Thread Hans de Goede
pick the wrong bus. 2. There is no backlight off sequence, causing the backlight to stay on. Add a DMI quirk fixing both issues. Signed-off-by: Hans de Goede --- drivers/gpu/drm/i915/display/vlv_dsi.c | 32 ++ 1 file changed, 32 insertions(+) diff --git a/drivers/gpu/drm

[PATCH 0/4] drm/i915/vlv_dsi: Add quirks for x86 android tablets (v2)

2023-09-16 Thread Hans de Goede
. This should avoid any chances of causing regressions on devices where the quirks do not apply. - New quirk for backlight control issues on Lenovo Yoga Tab 3 - Address Jani Nikula's remark about __func__ being redundant when using drm_dbg_kms() Regards, Hans Hans de Goede (4): drm

[PATCH 1/4] drm/i915/vlv_dsi: Add DMI quirk for wrong panel modeline in BIOS on Asus TF103C (v2)

2023-09-16 Thread Hans de Goede
nez Canillas Signed-off-by: Hans de Goede --- drivers/gpu/drm/i915/display/vlv_dsi.c | 42 ++ 1 file changed, 42 insertions(+) diff --git a/drivers/gpu/drm/i915/display/vlv_dsi.c b/drivers/gpu/drm/i915/display/vlv_dsi.c index a96e7d028c5c..51c4b1491fa2 100644 --- a/

Re: [PATCH v3 1/1] backlight: hid_bl: Add VESA VCP HID backlight driver

2023-09-06 Thread Hans de Goede
Hi Julius, On 9/4/23 21:02, Julius Zint wrote: > > > On Mon, 4 Sep 2023, Thomas Weißschuh wrote: > >> +Cc Hans who ins involved with the backlight subsystem >> >> Hi Julius, >> >> today I stumbled upon a mail from Hans [0], which explains that the >> backlight subsystem is not actually a good f

Re: [PATCH v2] drm: gm12u320: Fix the timeout usage for usb_bulk_msg()

2023-09-04 Thread Hans de Goede
ed, also remove msecs_to_jiffies() for the IDLE_TIMEOUT > macro to make it consistent here and so change IDLE_TIMEOUT to > msecs_to_jiffies(IDLE_TIMEOUT) where it is used. > > Fixes: e4f86e437164 ("drm: Add Grain Media GM12U320 driver v2") > Signed-off-by: Jinjie Ruan &

Re: [PATCH] drm: gm12u320: Fix the timeout usage for usb_bulk_msg()

2023-09-03 Thread Hans de Goede
Hi Jinjie, On 9/3/23 10:55, Jinjie Ruan wrote: > The timeout arg of usb_bulk_msg() is ms already and it has convert it > to jiffies by msecs_to_jiffies() in usb_start_wait_urb(). So fix the usage > by remove the redundant msecs_to_jiffies() in the macros. > > Fixes: 77b8cabf3d52 ("drm/gm12u320: M

Re: [PATCH] drm: panel-orientation-quirks: Change Air's quirk to support Air Plus

2023-05-17 Thread Hans de Goede
ming to be an Air Pro, and on Air Plus. > > Signed-off-by: Maya Matuszczyk Thanks, patch looks good to me: Reviewed-by: Hans de Goede I have just pushed this to drm-misc-fixes, so it should get send to Linus with the next drm-fixes pull-req. Regards, Hans > --- > drive

Re: [PATCH 6.2 regression fix] drm/nouveau/kms: Fix backlight registration

2023-03-29 Thread Hans de Goede
drm-misc-fixes now. I'll also submit a downstream Fedora kernel pull-req with this to get this resolved in the Fedora kernels . Regards, Hans > > On Sun, 2023-03-26 at 22:54 +0200, Hans de Goede wrote: >> The nouveau code used to call drm_fb_helper_initial_config() fro

[PATCH 6.2 regression fix] drm/nouveau/kms: Fix backlight registration

2023-03-26 Thread Hans de Goede
://gitlab.freedesktop.org/drm/nouveau/-/issues/202 Signed-off-by: Hans de Goede --- drivers/gpu/drm/nouveau/nouveau_backlight.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_backlight.c b/drivers/gpu/drm/nouveau/nouveau_backlight.c index 4040

Re: [PATCH] drm: panel-orientation-quirks: Add quirk for Lenovo Yoga Book X90F

2023-03-21 Thread Hans de Goede
Hi, On 3/13/23 16:39, Javier Martinez Canillas wrote: > Hans de Goede writes: > > Hello Hans, > >> Like the Windows Lenovo Yoga Book X91F/L the Android Lenovo Yoga Book >> X90F/L has a portrait 1200x1920 screen used in landscape mode, >> add a quirk for this. >

Re: [REGRESSION] Missing nouveau backlight control on 6.2.x kernel

2023-03-18 Thread Hans de Goede
Hi Takashi, On 3/17/23 11:04, Takashi Iwai wrote: > Hi, > > we've received a regression report on openSUSE Bugzilla about the > missing backlight control of nouveau device: > https://bugzilla.opensuse.org/show_bug.cgi?id=1209296 > > On 6.1, with acpi_video=native option, the system provided >

Re: [PATCH v3 0/6] drm/amd/display: Pass proper parent for DM backlight device v3

2023-03-16 Thread Hans de Goede
Hi, On 3/16/23 15:57, Rodrigo Siqueira Jordao wrote: > > > On 3/12/23 13:17, Hans de Goede wrote: >> Hi All, >> >> Here is version 3 of my patch series to pass the proper parent device >> to backlight_device_register(). >> >> Changes in v3: >>

[GIT PULL] Immutable branch between pdx86 and backlight due for the v6.4 merge window

2023-03-16 Thread Hans de Goede
) Immutable branch between pdx86 and backlight due for the v6.4 merge window Dan Carpenter (1): platform/x86: apple-gmux: return -EFAULT if copy fails Hans de Goede (2

[PATCH 2/2] efi: sysfb_efi: Add quirk for Lenovo Yoga Book X91F/L

2023-03-14 Thread Hans de Goede
Another Lenovo convertable which reports a landscape resolution of 1920x1200 with a pitch of (1920 * 4) bytes, while the actual framebuffer has a resolution of 1200x1920 with a pitch of (1200 * 4) bytes. Signed-off-by: Hans de Goede --- drivers/firmware/efi/sysfb_efi.c | 8 1 file

[PATCH 1/2] efi: sysfb_efi: Fix DMI quirks not working for simpledrm

2023-03-14 Thread Hans de Goede
orm_device) into its own function and call that at the place of the moved sysfb_apply_efi_quirks(pd) calls. Fixes: 8633ef82f101 ("drivers/firmware: consolidate EFI framebuffer setup for all arches") Cc: sta...@vger.kernel.org Cc: Javier Martinez Canillas Cc: Thomas Zimmermann Signed-o

Re: [PATCH] backlight: apple_bl: Use acpi_video_get_backlight_type()

2023-03-13 Thread Hans de Goede
Hi, On 3/9/23 18:09, Daniel Thompson wrote: > On Tue, Mar 07, 2023 at 01:05:40PM +0100, Hans de Goede wrote: >> On some MacBooks both the apple_bl and the apple-gmux backlight drivers >> may be able to export a /sys/class/backlight device. >> >> To avoid having 2 ba

[PATCH v3 4/6] drm/amd/display/amdgpu_dm: Move most backlight setup into setup_backlight_device()

2023-03-12 Thread Hans de Goede
backlight class device. This is a preparation patch for moving the actual backlight class device registering to drm_connector_funcs.late_register. Signed-off-by: Hans de Goede --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 17 - 1 file changed, 8 insertions(+), 9 deletions

[PATCH v3 6/6] drm/amd/display/amdgpu_dm: Pass proper parent for backlight device registration v3

2023-03-12 Thread Hans de Goede
nd re-using the current bl_idx for a potential other backlight device, dm->backlight_dev[bl_idx] is now simply left NULL on failure. This is ok because all code looking at dm->backlight_dev[i] also checks it is not NULL. Link: https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/issues/730

[PATCH v3 5/6] drm/amd/display/amdgpu_dm: Make amdgpu_dm_register_backlight_device() take an amdgpu_dm_connector

2023-03-12 Thread Hans de Goede
-by: Hans de Goede --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 24 +-- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 757202af2eec..038bf897cc28

[PATCH v3 3/6] drm/amd/display/amdgpu_dm: Add a bl_idx to amdgpu_dm_connector

2023-03-12 Thread Hans de Goede
reworking update_connector_ext_caps() also remove the aconnector and aconnector->dc_link NULL checks in this function. These are both never NULL and are unconditionally derefed in its callers. Signed-off-by: Hans de Goede --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 42 +++ .../gpu/drm/amd/displ

[PATCH v3 2/6] drm/amd/display/amdgpu_dm: Refactor register_backlight_device()

2023-03-12 Thread Hans de Goede
dps])" check will thus always succeed and can be removed. 4) Add a bl_idx local variable to use as array index, rather then using dm->num_of_edps to improve the code readability. Signed-off-by: Hans de Goede --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 28 ++-

[PATCH v3 1/6] drm/amd/display/amdgpu_dm: Fix backlight_device_register() error handling

2023-03-12 Thread Hans de Goede
ed-off-by: Hans de Goede --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 009ef917dad4..42b88ab5552d 100644

[PATCH v3 0/6] drm/amd/display: Pass proper parent for DM backlight device v3

2023-03-12 Thread Hans de Goede
there. Regards, Hans Hans de Goede (6): drm/amd/display/amdgpu_dm: Fix backlight_device_register() error handling drm/amd/display/amdgpu_dm: Refactor register_backlight_device() drm/amd/display/amdgpu_dm: Add a bl_idx to amdgpu_dm_connector drm/amd/display/amdgpu_dm: Move most

Re: [RFC v2 6/6] drm/amd/display: Pass proper parent for DM backlight device registration v2

2023-03-12 Thread Hans de Goede
Hi, On 3/8/23 22:58, Hans de Goede wrote: > The parent for the backlight device should be the drm-connector object, > not the PCI device. > > Userspace relies on this to be able to detect which backlight class device > to use on hybrid gfx devices where there may be multi

Re: [RFC v2 0/6] drm/amd/display: Pass proper parent for DM backlight device v2

2023-03-11 Thread Hans de Goede
review it. If the review leads to changes being requested then I'll prepare a new version and Cc you. Regards, Hans 1) Next time mayvw read the entire thread before replying ? > On 3/8/23 14:58, Hans de Goede wrote: >> Hi All, >> >> Here is version 2 of my pa

Re: [RFC v2 0/6] drm/amd/display: Pass proper parent for DM backlight device v2

2023-03-09 Thread Hans de Goede
Hi all, On 3/8/23 23:10, Hans de Goede wrote: > Hi, > > On 3/8/23 22:58, Hans de Goede wrote: >> Hi All, >> >> Here is version 2 of my patch series to pass the proper parent device >> to backlight_device_register(). >> >> New in version 2 is delay

Re: [RFC v2 0/6] drm/amd/display: Pass proper parent for DM backlight device v2

2023-03-08 Thread Hans de Goede
Hi, On 3/8/23 22:58, Hans de Goede wrote: > Hi All, > > Here is version 2 of my patch series to pass the proper parent device > to backlight_device_register(). > > New in version 2 is delaying the registering of the backlight_dev till > after the drm_connector is regist

[RFC v2 5/6] drm/amd/display/amdgpu_dm: Make amdgpu_dm_register_backlight_device() take an amdgpu_dm_connector

2023-03-08 Thread Hans de Goede
-by: Hans de Goede --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 24 +-- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 757202af2eec..038bf897cc28

[RFC v2 6/6] drm/amd/display: Pass proper parent for DM backlight device registration v2

2023-03-08 Thread Hans de Goede
ight_dev[i] also checks it is not NULL. Link: https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/issues/730 Signed-off-by: Hans de Goede --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/amd/dis

[RFC v2 3/6] drm/amd/display/amdgpu_dm: Add a bl_idx to amdgpu_dm_connector

2023-03-08 Thread Hans de Goede
reworking update_connector_ext_caps() also remove the aconnector and aconnector->dc_link NULL checks in this function. These are both never NULL and are unconditionally derefed in its callers. Signed-off-by: Hans de Goede --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 42 +++ .../gpu/drm/amd/displ

[RFC v2 4/6] drm/amd/display/amdgpu_dm: Move most backlight setup into setup_backlight_device()

2023-03-08 Thread Hans de Goede
backlight class device. This is a preparation patch for moving the actual backlight class device registering to drm_connector_funcs.late_register. Signed-off-by: Hans de Goede --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 17 - 1 file changed, 8 insertions(+), 9 deletions

[RFC v2 2/6] drm/amd/display/amdgpu_dm: Refactor register_backlight_device()

2023-03-08 Thread Hans de Goede
dps])" check will thus always succeed and can be removed. 4) Add a bl_idx local variable to use as array index, rather then using dm->num_of_edps to improve the code readability. Signed-off-by: Hans de Goede --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 28 ++-

[RFC v2 1/6] drm/amd/display/amdgpu_dm: Fix backlight_device_register() error handling

2023-03-08 Thread Hans de Goede
ed-off-by: Hans de Goede --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 009ef917dad4..42b88ab5552d 100644

[RFC v2 0/6] drm/amd/display: Pass proper parent for DM backlight device v2

2023-03-08 Thread Hans de Goede
reworking the code a bit to allow delaying the registering, so this has turned from a single patch into a 6 patch set. Regards, Hans Hans de Goede (6): drm/amd/display/amdgpu_dm: Fix backlight_device_register() error handling drm/amd/display/amdgpu_dm: Refactor register_backlight_device

Re: [RFC] drm/amd/display: Pass proper parent for DM backlight device registration

2023-03-08 Thread Hans de Goede
Hi, On 2/15/23 12:38, Hans de Goede wrote: > The parent for the backlight device should be the drm-connector object, > not the PCI device. > > Userspace relies on this to be able to detect which backlight class device > to use on hybrid gfx devices where there may be multi

Re: [PATCH] backlight: apple_bl: Use acpi_video_get_backlight_type()

2023-03-07 Thread Hans de Goede
Hi, On 3/7/23 13:27, Andy Shevchenko wrote: > On Tue, Mar 07, 2023 at 01:05:40PM +0100, Hans de Goede wrote: >> On some MacBooks both the apple_bl and the apple-gmux backlight drivers >> may be able to export a /sys/class/backlight device. >> >> To avoid having 2 ba

[PATCH] backlight: apple_bl: Use acpi_video_get_backlight_type()

2023-03-07 Thread Hans de Goede
) This allows user to switch between the drivers by passing acpi_backlight=apple_gmux or acpi_backlight=vendor on the kernel commandline. Signed-off-by: Hans de Goede --- A note to the backlight class / subsystem maintainers, this change applies on top of a similar patch for drivers/platform/x86

[PATCH] drm: panel-orientation-quirks: Add quirk for Lenovo Yoga Book X90F

2023-03-01 Thread Hans de Goede
version of the Yoga Book uses completely different DMI strings. Also adjust the X91F/L quirk to reflect that it only applies to the X91F/L models. Signed-off-by: Hans de Goede --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff

[RFC] drm/amd/display: Pass proper parent for DM backlight device registration

2023-02-15 Thread Hans de Goede
ld be great. Link: https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/issues/730 Signed-off-by: Hans de Goede --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm

Re: [PATCH v2] drm: panel-orientation-quirks: Add quirk for Lenovo IdeaPad Duet 3 10IGL5

2023-02-15 Thread Hans de Goede
Hi, On 2/14/23 17:46, Darrell Kavanagh wrote: > Another Lenovo convertable where the panel is installed landscape but is > reported to the kernel as portrait. > > Signed-off-by: Darrell Kavanagh Thanks, I have pushed this to drm-misc-next-fixes now, so it should get merged upstream as part of t

Re: [PATCH v2] drm: panel-orientation-quirks: Add quirk for Lenovo IdeaPad Duet 3 10IGL5

2023-02-14 Thread Hans de Goede
Hi, On 2/14/23 17:46, Darrell Kavanagh wrote: > Another Lenovo convertable where the panel is installed landscape but is > reported to the kernel as portrait. > > Signed-off-by: Darrell Kavanagh Thanks, patch looks good to me: Reviewed-by: Hans de Goede Note for other developer

Re: drm: panel-orientation-quirks: Add quirk for Lenovo IdeaPad Duet 3 10IGL5

2023-02-09 Thread Hans de Goede
Hi, On 2/9/23 16:36, Maxime Ripard wrote: > Hi, > > On Wed, Feb 08, 2023 at 07:04:58PM +, Darrell Kavanagh wrote: >> I've resolved this by adding a matching quirk in >> drivers/firmware/efi/sysfb_efi.c - see below. Right, this is a known issue on Lenovo 2-in-1s with the panel mounted 90 degr

Re: drm: panel-orientation-quirks: Add quirk for Lenovo IdeaPad Duet 3 10IGL5

2023-02-09 Thread Hans de Goede
Hi Darrell, On 2/3/23 19:32, Darrell Kavanagh wrote: > Hi, > > This is another Lenovo with detachable keyboard and 1200x1920 screen > mounted sideways. > > The following has been tested with 6.2.0-rc6. > > Thanks, > Darrell Thank you for your patch. Note that instead of "Hi, ... Thanks, Darrel

Re: [PATCH v2 2/2] dt-bindings: display: simple-framebuffer: Document physical width and height properties

2023-01-22 Thread Hans de Goede
Hi, On 1/22/23 16:36, Rob Herring wrote: > On Sat, Jan 21, 2023 at 9:36 AM Rayyan Ansari wrote: >> > > Why do you need this change? > > The 'simple-framebuffer' contains data on how the bootloader > configured the display. The bootloader doesn't configure the display > size, so this information

[PATCH] ACPI: video: Add backlight=native DMI quirk for Asus U46E

2023-01-19 Thread Hans de Goede
space would use that. Add a backlight=native DMI quirk for this special laptop to restore the old (and working) behavior of the intel_backlight device registering. Fixes: fb1836c91317 ("ACPI: video: Prefer native over vendor") Signed-off-by: Hans de Goede --- drivers/acpi/video_detect.c |

[PATCH 1/2] ACPI: video: Add backlight=native DMI quirk for HP Pavilion g6-1d80nr

2023-01-19 Thread Hans de Goede
The HP Pavilion g6-1d80nr predates Windows 8, so it defaults to using acpi_video# for backlight control, but this is non functional on this model. Add a DMI quirk to use the native backlight interface which does work properly. Signed-off-by: Hans de Goede --- drivers/acpi/video_detect.c | 9

[PATCH 2/2] ACPI: video: Add backlight=native DMI quirk for HP EliteBook 8460p

2023-01-19 Thread Hans de Goede
EliteBook 8460p to fix this. Fixes: fb1836c91317 ("ACPI: video: Prefer native over vendor") Link: https://bugzilla.redhat.com/show_bug.cgi?id=2161428 Signed-off-by: Hans de Goede --- drivers/acpi/video_detect.c | 8 1 file changed, 8 insertions(+) diff --git a/dr

[PATCH 0/2] ACPI: video: More backlight quirks

2023-01-19 Thread Hans de Goede
s somewhat different, see the commit msg. Regards, Hans Hans de Goede (2): ACPI: video: Add backlight=native DMI quirk for HP Pavilion g6-1d80nr ACPI: video: Add backlight=native DMI quirk for HP EliteBook 8460p drivers/acpi/video_detect.c | 17 + 1 file changed, 17 insertions(+) -- 2.39.0

[PATCH] ACPI: video: Add backlight=native DMI quirk for Acer Aspire 4810T

2023-01-13 Thread Hans de Goede
The Acer Aspire 4810T predates Windows 8, so it defaults to using acpi_video# for backlight control, but this is non functional on this model. Add a DMI quirk to use the native backlight interface which does work properly. Signed-off-by: Hans de Goede --- drivers/acpi/video_detect.c | 8

Re: [PATCH v2] ACPI: Fix selecting the wrong ACPI fwnode for the iGPU on some Dell laptops

2023-01-11 Thread Hans de Goede
Hi, On 1/11/23 21:16, Rafael J. Wysocki wrote: > On Tue, Jan 10, 2023 at 4:30 PM Hans de Goede wrote: >> >> The Dell Latitude E6430 both with and without the optional NVidia dGPU >> has a bug in its ACPI tables which is causing Linux to assign the wrong >> ACP

[PATCH v2] ACPI: Fix selecting the wrong ACPI fwnode for the iGPU on some Dell laptops

2023-01-10 Thread Hans de Goede
gher score for children with this flag set, so that it picks the right companion-device. Co-developed-by: Rafael J. Wysocki Signed-off-by: Hans de Goede --- Changes in v2: - Switch to Rafael's suggested implementation using a type.backlight flag and only make find_child_checks() return a hi

Re: [PATCH] ACPI: Fix selecting the wrong ACPI fwnode for the iGPU on some Dell laptops

2023-01-10 Thread Hans de Goede
Hi Rafael, On 1/10/23 14:33, Rafael J. Wysocki wrote: > On Monday, January 9, 2023 9:57:21 PM CET Hans de Goede wrote: >> The Dell Latitude E6430 both with and without the optional NVidia dGPU >> has a bug in its ACPI tables which is causing Linux to assign the wrong >> ACPI

Re: [PATCH] ACPI: Fix selecting the wrong ACPI fwnode for the iGPU on some Dell laptops

2023-01-09 Thread Hans de Goede
p.s. This fixes a regression in 6.1, adding the regressions list to the Cc. Once we figure out the best way to fix this (this patch is more of a proposal how to fix this rather then a definitive fix), we should also backport the fix to 6.1.y. On 1/9/23 21:57, Hans de Goede wrote: > The D

[PATCH] ACPI: Fix selecting the wrong ACPI fwnode for the iGPU on some Dell laptops

2023-01-09 Thread Hans de Goede
every time it is called. Fixes: 63f534b8bad9 ("ACPI: PCI: Rework acpi_get_pci_dev()") Signed-off-by: Hans de Goede --- drivers/acpi/glue.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/glue.c b/drivers/acpi/glue.c index 204fe94c7e45.

Re: [PATCH] drm: Add orientation quirk for DynaBook K50

2022-12-07 Thread Hans de Goede
> Signed-off-by: Allen Ballway Thanks, patch looks good to me: Reviewed-by: Hans de Goede I've pushed this to drm-misc-next now. Regards, Hans > --- > > .../gpu/drm/drm_panel_orientation_quirks.c| 20 --- > 1 file changed, 13 insertions(+), 7 del

Re: [PATCH] drm: panel-orientation-quirks: Add quirk for Lenovo Yoga Tab 3 X90F

2022-12-07 Thread Hans de Goede
Hi, On 11/30/22 08:43, Javier Martinez Canillas wrote: > Hello Hans, > > On 11/27/22 19:15, Hans de Goede wrote: >> The Lenovo Yoga Tab 3 X90F has a portrait 1600x2560 LCD used in >> landscape mode, add a quirk for this. >> >> Signed-off-by: Hans de Go

[PATCH] drm: panel-orientation-quirks: Add quirk for Lenovo Yoga Tab 3 X90F

2022-11-27 Thread Hans de Goede
The Lenovo Yoga Tab 3 X90F has a portrait 1600x2560 LCD used in landscape mode, add a quirk for this. Signed-off-by: Hans de Goede --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c

Re: linux-next: manual merge of the drm-intel tree with Linus' tree

2022-11-14 Thread Hans de Goede
Hi, On 11/14/22 11:10, Jani Nikula wrote: > On Mon, 14 Nov 2022, Hans de Goede wrote: >> Hi, >> >> On 11/14/22 00:23, Stephen Rothwell wrote: >>> Hi all, >>> >>> Today's linux-next merge of the drm-intel tree got a conflict in: >

Re: linux-next: manual merge of the drm-intel tree with Linus' tree

2022-11-14 Thread Hans de Goede
Hi, On 11/14/22 00:23, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the drm-intel tree got a conflict in: > > drivers/gpu/drm/i915/display/intel_backlight.c > > between commit: > > b1d36e73cc1c ("drm/i915: Don't register backlight when another backlight > should be us

drm-tip merge conflict caused by recent merge of amd-drm-next into drm-next

2022-11-08 Thread Hans de Goede
Hi Alex, et al., I just pushed 2 simple DMI quirk patches (for drivers/gpu/drm/drm_panel_orientation_quirks.c) to drm-misc-fixes. At the end of the dim push-branch I noticed that rebuilding drm-tip failed due to a merge error when merging in drm-next . Looking at the 3-way diff of the conflict,

Re: [PATCH] drm: panel-orientation-quirks: Add quirk for Nanote UMPC-01

2022-11-08 Thread Hans de Goede
Hi, On 11/7/22 17:25, Simon Ser wrote: > Acked-by: Simon Ser Thank you. I've pushed both patches to drm-misc-fixes now. Regards, Hans

Re: [PATCH 24/26] drm: gm12u320: Remove #ifdef guards for PM related functions

2022-11-07 Thread Hans de Goede
use #ifdef guards. > > This has the advantage of always compiling these functions in, > independently of any Kconfig option. Thanks to that, bugs and other > regressions are subsequently easier to catch. It also allows to drop the > __maybe_unused tags. > > Signed-off-by: P

Re: [PATCH 22/26] drm: vboxvideo: Remove #ifdef guards for PM related functions

2022-11-07 Thread Hans de Goede
e #ifdef guards. > > This has the advantage of always compiling these functions in, > independently of any Kconfig option. Thanks to that, bugs and other > regressions are subsequently easier to catch. > > Signed-off-by: Paul Cercueil > --- > Cc: Hans de Goede Thanks, patch

[PATCH] drm: panel-orientation-quirks: Add quirk for Acer Switch V 10 (SW5-017)

2022-11-06 Thread Hans de Goede
Like the Acer Switch One 10 S1003, for which there already is a quirk, the Acer Switch V 10 (SW5-017) has a 800x1280 portrait screen mounted in the tablet part of a landscape oriented 2-in-1. Add a quirk for this. Cc: Rudolf Polzer Signed-off-by: Hans de Goede --- drivers/gpu/drm

Re: [PATCH v5 02/31] drm/i915: Don't register backlight when another backlight should be used (v2)

2022-11-04 Thread Hans de Goede
Hi Matthew, Rafael, On 10/27/22 14:09, Rafael J. Wysocki wrote: > On Thu, Oct 27, 2022 at 12:37 PM Hans de Goede wrote: >> >> Hi, >> >> On 10/27/22 11:52, Matthew Garrett wrote: >>> On Thu, Oct 27, 2022 at 11:39:38AM +0200, Hans de Goede wrote: >>> &

Re: [PATCH v5 02/31] drm/i915: Don't register backlight when another backlight should be used (v2)

2022-10-27 Thread Hans de Goede
Hi, On 10/27/22 14:09, Rafael J. Wysocki wrote: > On Thu, Oct 27, 2022 at 12:37 PM Hans de Goede wrote: >> >> Hi, >> >> On 10/27/22 11:52, Matthew Garrett wrote: >>> On Thu, Oct 27, 2022 at 11:39:38AM +0200, Hans de Goede wrote: >>> >>>>

Re: [PATCH v5 02/31] drm/i915: Don't register backlight when another backlight should be used (v2)

2022-10-27 Thread Hans de Goede
Hi, On 10/27/22 11:52, Matthew Garrett wrote: > On Thu, Oct 27, 2022 at 11:39:38AM +0200, Hans de Goede wrote: > >> The *only* behavior which actually is new in 6.1 is the native GPU >> drivers now doing the equivalent of: >> >> if (acpi_video_get_backlight_t

Re: [PATCH v5 02/31] drm/i915: Don't register backlight when another backlight should be used (v2)

2022-10-27 Thread Hans de Goede
Hi Matthew, On 10/27/22 11:11, Matthew Garrett wrote: > On Thu, Oct 27, 2022 at 10:51:45AM +0200, Hans de Goede wrote: > >> In their backlight register paths and this has been present since >> circa 2015. >> >> So both before and after my 6.1 refactor vendor is only

Re: [PATCH v5 02/31] drm/i915: Don't register backlight when another backlight should be used (v2)

2022-10-27 Thread Hans de Goede
Hi, On 10/26/22 22:49, Matthew Garrett wrote: > On Wed, Oct 26, 2022 at 11:59:28AM +0200, Hans de Goede wrote: > >> Ok, so this is a local customization to what is already a custom BIOS >> for a custom motherboard. There is a lot of custom in that sentence and >> TBH at

Re: [PATCH v5 02/31] drm/i915: Don't register backlight when another backlight should be used (v2)

2022-10-26 Thread Hans de Goede
Hi, On 10/26/22 01:40, Matthew Garrett wrote: > On Wed, Oct 26, 2022 at 01:27:25AM +0200, Hans de Goede wrote: > >> this code should actually set the ACPI_VIDEO_BACKLIGHT flag: >> drivers/acpi/scan.c: >> >> static acpi_status >> acpi_backlight_cap_match

Re: [PATCH v5 02/31] drm/i915: Don't register backlight when another backlight should be used (v2)

2022-10-25 Thread Hans de Goede
Hi, On 10/25/22 22:40, Matthew Garrett wrote: > On Tue, Oct 25, 2022 at 10:25:33PM +0200, Hans de Goede wrote: > >> Having the native driver come and then go and be replaced >> with the vendor driver would also be quite inconvenient >> for these planned changes. > &

Re: [PATCH v5 02/31] drm/i915: Don't register backlight when another backlight should be used (v2)

2022-10-25 Thread Hans de Goede
Hi (again), On 10/25/22 22:25, Hans de Goede wrote: > Hi Matthew, > > On 10/25/22 21:32, Matthew Garrett wrote: >> On Tue, Oct 25, 2022 at 08:50:54PM +0200, Hans de Goede wrote: >> >>> That is a valid point, but keep in mind that this is only used on ACPI >>

Re: [PATCH v5 02/31] drm/i915: Don't register backlight when another backlight should be used (v2)

2022-10-25 Thread Hans de Goede
Hi Matthew, On 10/25/22 21:32, Matthew Garrett wrote: > On Tue, Oct 25, 2022 at 08:50:54PM +0200, Hans de Goede wrote: > >> That is a valid point, but keep in mind that this is only used on ACPI >> platforms and then only on devices with a builtin LCD panel and then >> o

Re: [PATCH v5 02/31] drm/i915: Don't register backlight when another backlight should be used (v2)

2022-10-25 Thread Hans de Goede
Hi, On 10/24/22 22:30, Matthew Garrett wrote: > On Tue, Sep 27, 2022 at 01:04:52PM +0200, Hans de Goede wrote: > >> So to fix this we need to make acpi_video_get_backlight_type() >> return native on the Acer Chromebook Spin 713. > > Isn't the issue broader than

Re: [PATCH v2] ACPI: video: Fix missing native backlight on Chromebooks

2022-10-24 Thread Hans de Goede
Hi, On 10/24/22 16:45, Rafael J. Wysocki wrote: > On Mon, Oct 24, 2022 at 4:32 PM Hans de Goede wrote: >> >> Hi, >> >> On 10/24/22 16:12, Dmitry Osipenko wrote: >>> Chromebooks don't have backlight in ACPI table, they suppose to use >>> native

Re: [PATCH v2] ACPI: video: Fix missing native backlight on Chromebooks

2022-10-24 Thread Hans de Goede
the native backlight if EC found. >> >> Suggested-by: Hans de Goede >> Fixes: 2600bfa3df99 ("ACPI: video: Add acpi_video_backlight_use_native() >> helper") >> Signed-off-by: Dmitry Osipenko >> --- >> >> Changelog: >> >> v2: - A

Re: [PATCH 00/22] Fallback to native backlight

2022-10-24 Thread Hans de Goede
Hi, On 10/24/22 16:31, Akihiko Odaki wrote: > On 2022/10/24 23:06, Akihiko Odaki wrote: >> On 2022/10/24 22:21, Hans de Goede wrote: >>> Hi, >>> >>> On 10/24/22 14:58, Akihiko Odaki wrote: >>>> On 2022/10/24 20:53, Hans de Goede wrote: >>

Re: [PATCH v2] ACPI: video: Fix missing native backlight on Chromebooks

2022-10-24 Thread Hans de Goede
Hi, On 10/24/22 16:12, Dmitry Osipenko wrote: > Chromebooks don't have backlight in ACPI table, they suppose to use > native backlight in this case. Check presence of the CrOS embedded > controller ACPI device and prefer the native backlight if EC found. > > Suggested-by: Ha

Re: [PATCH v1] ACPI: video: Fix missing native backlight on Chromebooks

2022-10-24 Thread Hans de Goede
> Suggested-by: Hans de Goede > Fixes: b1d36e73cc1c ("drm/i915: Don't register backlight when another > backlight should be used (v2)") > Signed-off-by: Dmitry Osipenko > --- > drivers/acpi/video_detect.c | 8 > 1 file changed, 8 insertions(+) >

Re: [PATCH 00/22] Fallback to native backlight

2022-10-24 Thread Hans de Goede
Hi, On 10/24/22 15:14, Pali Rohár wrote: > On Monday 24 October 2022 21:58:57 Akihiko Odaki wrote: >> Regarding the second limitation, I don't even understand the difference >> between vendor and native. My guess is that a vendor backlight device uses >> vendor-specific ACPI interface, and a nativ

Re: [PATCH 00/22] Fallback to native backlight

2022-10-24 Thread Hans de Goede
Hi, On 10/24/22 14:58, Akihiko Odaki wrote: > On 2022/10/24 20:53, Hans de Goede wrote: >> Hi Akihiko, >> >> On 10/24/22 13:34, Akihiko Odaki wrote: >>> Commit 2600bfa3df99 ("ACPI: video: Add acpi_video_backlight_use_native() >>> helper") and follo

Re: [PATCH 00/22] Fallback to native backlight

2022-10-24 Thread Hans de Goede
Hi, On 10/24/22 13:56, Akihiko Odaki wrote: > On 2022/10/24 20:48, Jani Nikula wrote: >> On Mon, 24 Oct 2022, Akihiko Odaki wrote: >>> Commit 2600bfa3df99 ("ACPI: video: Add acpi_video_backlight_use_native() >>> helper") and following commits made native backlight unavailable if >>> CONFIG_ACPI_V

Re: [PATCH 00/22] Fallback to native backlight

2022-10-24 Thread Hans de Goede
Hi Akihiko, On 10/24/22 13:34, Akihiko Odaki wrote: > Commit 2600bfa3df99 ("ACPI: video: Add acpi_video_backlight_use_native() > helper") and following commits made native backlight unavailable if > CONFIG_ACPI_VIDEO is set and the backlight feature of ACPI video is > unavailable, which broke the

Re: [RFC v2] drm/kms: control display brightness through drm_connector properties

2022-10-03 Thread Hans de Goede
Hi, On 10/3/22 12:32, Pekka Paalanen wrote: > On Mon, 3 Oct 2022 11:44:56 +0200 > Hans de Goede wrote: > >> One example mentioned here is that laptops with Intel integrated >> graphics may have some "perceived brightness" mapping table >> in their Video BIOS

Re: [RFC v2] drm/kms: control display brightness through drm_connector properties

2022-10-03 Thread Hans de Goede
Hi, On 9/30/22 18:17, Sebastian Wick wrote: > On Fri, Sep 30, 2022 at 5:27 PM Pekka Paalanen wrote: >> >> On Fri, 30 Sep 2022 17:44:17 +0300 >> Ville Syrjälä wrote: >> >>> On Fri, Sep 30, 2022 at 04:20:29PM +0200, Sebastian Wick wrote: On Fri, Sep 30, 2022 at 9:40 AM Pekka Paalanen wrote:

Re: [RFC v2] drm/kms: control display brightness through drm_connector properties

2022-10-03 Thread Hans de Goede
Hi, On 9/28/22 12:57, Ville Syrjälä wrote: > On Wed, Sep 28, 2022 at 01:04:01PM +0300, Jani Nikula wrote: >> On Fri, 09 Sep 2022, Hans de Goede wrote: >>> Hi all, >>> >>> Here is v2 of my "drm/kms: control display brightness through drm_connector

Re: [RFC v2] drm/kms: control display brightness through drm_connector properties

2022-10-03 Thread Hans de Goede
Hi, On 9/28/22 12:04, Jani Nikula wrote: > On Fri, 09 Sep 2022, Hans de Goede wrote: >> Hi all, >> >> Here is v2 of my "drm/kms: control display brightness through drm_connector >> properties" RFC: >> >> Changes from version 1: >> -

Re: [PATCH v5 02/31] drm/i915: Don't register backlight when another backlight should be used (v2)

2022-09-27 Thread Hans de Goede
Hi Dmitry, On 9/26/22 01:39, Dmitry Osipenko wrote: > 25.08.2022 17:36, Hans de Goede пишет: >> Before this commit when we want userspace to use the acpi_video backlight >> device we register both the GPU's native backlight device and acpi_video's >> firmware acp

[PATCH] drm: panel-orientation-quirks: Add quirk for Nanote UMPC-01

2022-09-19 Thread Hans de Goede
The Nanote UMPC-01 is a mini laptop with a 1200x1920 portrait screen mounted in a landscape oriented clamshell case. Add a quirk for this. Signed-off-by: Hans de Goede --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm

Re: [PATCH 0/6] drm/gma500: 1 fix + further cleanups

2022-09-18 Thread Hans de Goede
Hi Patrik, On 9/18/22 20:45, Patrik Jakobsson wrote: > On Sat, Sep 17, 2022 at 2:31 PM Hans de Goede wrote: >> >> Hi Patrik, >> >> On 9/14/22 09:50, Patrik Jakobsson wrote: >>> On Fri, Sep 9, 2022 at 1:56 PM Hans de Goede wrote: >>>> >>>&

Re: [PATCH v3 0/5] drm/gma500: Backlight handling changes

2022-09-18 Thread Hans de Goede
Hi Sam, On 9/18/22 20:51, Sam Ravnborg wrote: > Hi Hans, > >>> Changes in v3: >>> - Fix unused variable warnings when CONFIG_BACKLIGHT is not selected by >>> marking the 2 variables as __maybe_unused. >> >> This looks good to me. I don't have access to my DIM setup in a couple >> of days so pl

Re: [PATCH v3 0/5] drm/gma500: Backlight handling changes

2022-09-18 Thread Hans de Goede
Hi Patrik, On 9/18/22 20:22, Patrik Jakobsson wrote: > On Sat, Sep 17, 2022 at 10:59 PM Hans de Goede wrote: >> >> Hi All, >> >> Here is a patch-series changing gma500's backlight handling to match >> the changes done to the other major x86 GPU drivers in

Re: [PATCH v2 3/5] drm/gma500: Use backlight_get_brightness() to get the brightness

2022-09-17 Thread Hans de Goede
Hi, On 9/17/22 22:46, Sam Ravnborg wrote: > On Sat, Sep 17, 2022 at 04:03:50PM +0200, Hans de Goede wrote: >> Use backlight_get_brightness() instead of directly referencing >> bd->props.brightness. This will take backlight_is_blank() into account, >> properly setting bri

[PATCH v3 3/5] drm/gma500: Use backlight_get_brightness() to get the brightness

2022-09-17 Thread Hans de Goede
org Signed-off-by: Hans de Goede --- Changes in v2 of the patch-set: - New patch in v2 of the patch-set --- drivers/gpu/drm/gma500/backlight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/gma500/backlight.c b/drivers/gpu/drm/gma500/backlight.c in

[PATCH v3 4/5] drm/gma500: Don't register backlight when another backlight should be used

2022-09-17 Thread Hans de Goede
backlight devices for a single display really is undesirable, don't register the GPU's native backlight device when another backlight device should be used. Signed-off-by: Hans de Goede --- drivers/gpu/drm/gma500/backlight.c | 8 1 file changed, 8 insertions(+) diff --g

[PATCH v3 5/5] drm/gma500: Call acpi_video_register_backlight()

2022-09-17 Thread Hans de Goede
native backlight device. Add a call to the new acpi_video_register_backlight() function after setting up the gma500's native backlight, so that the acpi_video backlight device gets registered on systems where the gma500's native backlight device is not registered. Signed-off-by: Han

[PATCH v3 2/5] drm/gma500: Change registered backlight device type to raw/native

2022-09-17 Thread Hans de Goede
ackard Bell Dot SC (Intel Atom N2600, cedarview) and a Sony Vaio vpc-x11s1e (Intel N540, poulsbo) laptop. Signed-off-by: Hans de Goede --- drivers/gpu/drm/gma500/backlight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/gma500/backlight.c b/drivers/gpu

[PATCH v3 1/5] drm/gma500: Refactor backlight support (v2)

2022-09-17 Thread Hans de Goede
e (Intel N540, poulsbo) laptop. Changes in v2: - Fix unused variable warnings when CONFIG_BACKLIGHT is not selected by marking the 2 variables as __maybe_unused. Signed-off-by: Hans de Goede --- drivers/gpu/drm/gma500/backlight.c | 94 +++- drivers/gpu/drm/gma500/cdv_

[PATCH v3 0/5] drm/gma500: Backlight handling changes

2022-09-17 Thread Hans de Goede
edhat.com/ Changes in v2: - Add "Use backlight_get_brightness() to get the brightness" patch Changes in v3: - Fix unused variable warnings when CONFIG_BACKLIGHT is not selected by marking the 2 variables as __maybe_unused. Regards, Hans Hans de Goede (5): drm/gma500: Refactor backligh

Re: [PATCH v2 1/5] drm/gma500: Refactor backlight support

2022-09-17 Thread Hans de Goede
kindly drop us a note. > And when submitting patch, we suggest to use '--base' as documented in > https://git-scm.com/docs/git-format-patch#_base_tree_information] > > url: > https://github.com/intel-lab-lkp/linux/commits/Hans-de-Goede/drm-gma500-Backlight-

<    1   2   3   4   5   6   7   8   9   10   >