Re: [PATCH 6/6] i2c: Make remove callback return void

2022-07-06 Thread Jean Delvare
| 3 +-- > drivers/i2c/muxes/i2c-mux-ltc4306.c | 4 +--- > drivers/i2c/muxes/i2c-mux-pca9541.c | 3 +-- > drivers/i2c/muxes/i2c-mux-pca954x.c | 3 +-- Reviewed-by: Jean Delvare -- Jean Delvare SUSE L3 Support

Re: [PATCH] drm/amdgpu/dm: Do not throw an error for a display with no audio

2019-11-15 Thread Jean Delvare
top.org/show_bug.cgi?id=112140 > References: ae2a3495973e ("drm/amd: be quiet when no SAD block is found") > Signed-off-by: Chris Wilson > Cc: Harry Wentland > Cc: Jean Delvare > Cc: Alex Deucher > --- > drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c

[PATCH v2 RESEND] drm/edid: no CEA v3 extension is not an error

2019-11-17 Thread Jean Delvare
/show_bug.cgi?id=107825 Signed-off-by: Jean Delvare Reviewed-by: Ville Syrjälä Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Sean Paul Cc: David Airlie Cc: Daniel Vetter --- Already sent on: 2019-09-04 Changes since v1: * Treat CEA extension version < 3 as non-error too (suggested by Vi

[PATCH] drm/amd/amdgpu: hide voltage and power sensors on SI and KV parts

2019-08-29 Thread Jean Delvare
The driver does not support these sensors yet and there is no point in creating sysfs attributes which will always return an error. Signed-off-by: Jean Delvare Cc: Alex Deucher Cc: "Christian König" Cc: "David (ChunMing) Zhou" --- This works for me however I couldn'

[PATCH] drm/amdgpu/si: fix ASIC tests

2019-08-29 Thread Jean Delvare
Comparing adev->family with CHIP constants is not correct. adev->family can only be compared with AMDGPU_FAMILY constants and adev->asic_type is the struct member to compare with CHIP constants. They are separate identification spaces. Signed-off-by: Jean Delvare Fixes: 62a37553414a (&q

[PATCH 1/3] drm/amd: be quiet when no SAD block is found

2019-09-02 Thread Jean Delvare
It is fine for displays without audio functionality to not provide any SAD block in their EDID. Do not log an error in that case, just return quietly. This fixes half of bug fdo#107825: https://bugs.freedesktop.org/show_bug.cgi?id=107825 Signed-off-by: Jean Delvare Cc: Alex Deucher Cc

[PATCH 0/3] drm/edid: don't log errors on absent CEA SAD blocks

2019-09-02 Thread Jean Delvare
Hi all, This is my attempt to fix bug fdo#107825: https://bugs.freedesktop.org/show_bug.cgi?id=107825 [PATCH 1/3] drm/amd: be quiet when no SAD block is found [PATCH 2/3] drm/radeon: be quiet when no SAD block is found [PATCH 3/3] drm/edid: no CEA extension is not an error -- Jean Delvare SUSE

[PATCH 3/3] drm/edid: no CEA extension is not an error

2019-09-02 Thread Jean Delvare
=107825 Signed-off-by: Jean Delvare Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Sean Paul Cc: David Airlie Cc: Daniel Vetter --- drivers/gpu/drm/drm_edid.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- linux-5.2.orig/drivers/gpu/drm/drm_edid.c 2019-08-30 17:57

[PATCH 2/3] drm/edid: don't log errors on absent CEA SAD blocks

2019-09-02 Thread Jean Delvare
-by: Jean Delvare Cc: Alex Deucher Cc: "Christian König" Cc: "David (ChunMing) Zhou" Cc: David Airlie Cc: Daniel Vetter --- drivers/gpu/drm/radeon/radeon_audio.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- linux-5.2.orig/drivers/gpu/drm/radeon/radeon_au

Re: [PATCH 2/3] drm/radeon: be quiet when no SAD block is found

2019-09-02 Thread Jean Delvare
Oops, sorry, I messed up the subject line of that one, which should really read "drm/radeon: be quiet when no SAD block is found". -- Jean Delvare SUSE L3 Support ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freed

Re: [PATCH 3/3] drm/edid: no CEA extension is not an error

2019-09-02 Thread Jean Delvare
On Mon, 2 Sep 2019 14:46:51 +0300, Ville Syrjälä wrote: > On Fri, Aug 30, 2019 at 06:16:52PM +0200, Jean Delvare wrote: > > It is fine for displays without audio functionality to not implement > > CEA extension in their EDID. Do not return an error in that case, > > instead

[PATCH v2 3/3] drm/edid: no CEA v3 extension is not an error

2019-09-05 Thread Jean Delvare
/show_bug.cgi?id=107825 Signed-off-by: Jean Delvare Reviewed-by: Ville Syrjälä Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Sean Paul Cc: David Airlie Cc: Daniel Vetter --- Changes since v1: * Treat CEA extension version < 3 as non-error too (suggested by Ville Syrjälä) drivers/gpu/drm/drm_edi

[PATCH v2 2/3] drm/radeon: be quiet when no SAD block is found

2019-09-05 Thread Jean Delvare
-by: Jean Delvare Cc: Alex Deucher Cc: "Christian König" Cc: "David (ChunMing) Zhou" Cc: David Airlie Cc: Daniel Vetter --- Changes since v1: * Fixed subject drivers/gpu/drm/radeon/radeon_audio.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- linux-5.2.

[PATCH v2 1/3] drm/amd: be quiet when no SAD block is found

2019-09-05 Thread Jean Delvare
It is fine for displays without audio functionality to not provide any SAD block in their EDID. Do not log an error in that case, just return quietly. This fixes half of bug fdo#107825: https://bugs.freedesktop.org/show_bug.cgi?id=107825 Signed-off-by: Jean Delvare Cc: Alex Deucher Cc

[PATCH v2 0/3] drm/edid: don't log errors on absent or old CEA SAD blocks

2019-09-05 Thread Jean Delvare
: * Fixed subject of patch 2 * Treat CEA extension version < 3 as non-error too (suggested by Ville Syrjälä) -- Jean Delvare SUSE L3 Support ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/

Re: [PATCH 2/2] drm/edid: Have cea_db_offsets() zero start/end when the data block collection isn't found

2019-09-11 Thread Jean Delvare
r the caller > to blindly iterate the data blocks even if there are none. > > Cc: Jean Delvare > Signed-off-by: Ville Syrjälä > --- > drivers/gpu/drm/drm_edid.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/drm_edid

Re: [PATCH 2/2] drm/edid: Have cea_db_offsets() zero start/end when the data block collection isn't found

2019-09-11 Thread Jean Delvare
On Tue, 10 Sep 2019 12:48:42 +0300, Ville Syrjälä wrote: > On Tue, Sep 10, 2019 at 11:46:20AM +0200, Jean Delvare wrote: > > Hi Ville, > > > > On Mon, 2 Sep 2019 16:15:46 +0300, Ville Syrjala wrote: > > > From: Ville Syrjälä > > > > > > Let&

Re: [PATCH 1/2] drm/edid: Don't look for CEA data blocks in CEA ext block rev < 3

2019-09-11 Thread Jean Delvare
ck they could end up misinterpreting > whatever data is in the reserved section as CEA data blocks. > > Let's have cea_db_offsets() do the revision check so that the > callers don't even have worry about it. > > Cc: Jean Delvare > Signed-off-by: Ville Syrjälä > ---

[PATCH RESEND] drm/display: Drop obsolete dependency on COMPILE_TEST

2023-01-27 Thread Jean Delvare
Since commit 0166dc11be91 ("of: make CONFIG_OF user selectable"), it is possible to test-build any driver which depends on OF on any architecture by explicitly selecting OF. Therefore depending on COMPILE_TEST as an alternative is no longer needed. Signed-off-by: Jean Delvare Cc: Da

[PATCH RESEND] drm/logicvc: Drop obsolete dependency on COMPILE_TEST

2023-01-27 Thread Jean Delvare
Since commit 0166dc11be91 ("of: make CONFIG_OF user selectable"), it is possible to test-build any driver which depends on OF on any architecture by explicitly selecting OF. Therefore depending on COMPILE_TEST as an alternative is no longer needed. Signed-off-by: Jean Delvare

[PATCH] drm/display: Drop obsolete dependency on COMPILE_TEST

2022-10-03 Thread Jean Delvare
e warnings. Dropping COMPILE_TEST here improves the quality of our testing and avoids wasting time on non-existent issues. Signed-off-by: Jean Delvare Cc: David Airlie Cc: Daniel Vetter --- drivers/gpu/drm/display/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-5.19.or

[PATCH] drm/logicvc: Drop obsolete dependency on COMPILE_TEST

2022-11-21 Thread Jean Delvare
e warnings. Dropping COMPILE_TEST here improves the quality of our testing and avoids wasting time on non-existent issues. Signed-off-by: Jean Delvare Cc: Paul Kocialkowski Cc: David Airlie Cc: Daniel Vetter --- drivers/gpu/drm/logicvc/Kconfig |2 +- 1 file changed, 1 insertion(+),

userptr support in drm drivers

2016-02-18 Thread Jean Delvare
U_NOTIFIER unconditionally? The proliferation of kconfig options is not helping. > That we have two options doing the same is just a matter of branching of > amdgpu from radeon and not cleaning up the configuration options. So > feel free to cleaning this up and write a patch which m

userptr support in drm drivers

2016-02-18 Thread Jean Delvare
n why we can't just unconditionally select MMU_NOTIFIER in these 3 drivers and be done with it. That's less work at kernel configuration time AND fewer preprocessing conditionals within the code, so easier/better testing coverage and more readable code. We would need a very good reason for NOT doing it. -- Jean Delvare SUSE L3 Support

userptr support in drm drivers

2016-02-19 Thread Jean Delvare
Hi Christian, On Thu, 18 Feb 2016 10:48:18 +0100, Christian König wrote: > Am 18.02.2016 um 09:59 schrieb Jean Delvare: > > Maybe I was not clear enough in my original post, but I am really > > advocating for FEWER kconfig options, not more. Plus I just explained > > why I

[PATCH 1/2] drm/radeon: simplify driver data retrieval

2013-09-11 Thread Jean Delvare
You can get the driver data from struct device directly, there's no need to get the PCI device first. Signed-off-by: Jean Delvare Cc: David Airlie Cc: Alex Deucher --- drivers/gpu/drm/radeon/radeon_pm.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) --- linux

[PATCH 2/2] drm/radeon: expose DPM thermal thresholds through sysfs

2013-09-11 Thread Jean Delvare
The hwmon sysfs interface allows exposing temperature limits. The "max" and "min" thresholds will be exposed as a critical high limit and its hysteresis value, respectively. This gives the user a better idea of how well cooling is doing and whether it is sufficient. Signed-

[PATCH] drm/exynos: Fix PTN3460 dependency

2014-05-20 Thread Jean Delvare
en be moved together with the other I2C helper chip drivers. Signed-off-by: Jean Delvare Cc: David Airlie Cc: Joonyoung Shim Cc: Seung-Woo Kim Cc: Kyungmin Park Cc: Kukjin Kim --- drivers/gpu/drm/Kconfig|4 ++-- drivers/gpu/drm/exynos/Kconfig |2 +- 2 files changed, 3 i

[PATCH] drm/rcar-du: Add run-time dependencies

2014-05-26 Thread Jean Delvare
The Renesas R-Car Display Unit driver is only useful on shmobile unless build testing. The LVDS output is useful on an even more reduced hardware set. Signed-off-by: Jean Delvare Cc: Laurent Pinchart Cc: David Airlie --- drivers/gpu/drm/rcar-du/Kconfig |2 ++ 1 file changed, 2 insertions

[PATCH] drm/rcar-du: Add run-time dependencies

2014-05-26 Thread Jean Delvare
Hi Laurent, On Mon, 26 May 2014 13:36:11 +0200, Laurent Pinchart wrote: > Thank you for the patch. You're welcome. And thanks for your help :-) > On Monday 26 May 2014 13:01:35 Jean Delvare wrote: > > The Renesas R-Car Display Unit driver is only useful on shmobile > > un

[PATCH] drm/shmobile: Add run-time dependencies

2014-05-26 Thread Jean Delvare
The shmobile DRM driver is only useful on SuperH and shmobile unless build testing. I am dropping the SuperH dependencies though because the driver doesn't even build there, so in practice it is an arm-only driver for now. Signed-off-by: Jean Delvare Cc: Laurent Pinchart Cc: David A

userptr support in drm drivers

2016-02-16 Thread Jean Delvare
with a run-time option to disable full userptr (drm.userptr=ro or some such.) As a general rule, fewer configuration options is better. Once a decision is made, I volunteer to write the patches. Thanks, -- Jean Delvare SUSE L3 Support

Performance regression in ast drm driver

2018-11-02 Thread Jean Delvare
call "cat" on a large text file, it takes almost twice as much time to be displayed and scrolled completely. Can you please check that the ast driver portion of that commit is both correct and complete? Thanks, -- Jean Delvare SUSE L3 Support _

Re: Performance regression in ast drm driver

2018-11-09 Thread Jean Delvare
On Thu, 1 Nov 2018 16:27:07 +0100, Jean Delvare wrote: > Hi David, > > The following commit: > > commit 7cf321d118a825c1541b43ca45294126fd474efa > Author: Dave Airlie > Date: Mon Oct 24 15:37:48 2016 +1000 > > drm/drivers: add support for using the arch wc map

Re: Performance regression in ast drm driver

2018-11-11 Thread Jean Delvare
; on my old Asus Z6NA-D6 which has either an AST 2050 device if I trust the board specifications on asus.com, or an AST 1100 if I trust /var/log/Xorg.0.log. Note however that I am still not certain that the problem I am seeing is the same as what both customers reported. It is possible that we ha

Re: Performance regression in ast drm driver

2018-11-12 Thread Jean Delvare
Hi David, On Fri, 2018-11-09 at 10:04 +1000, David Airlie wrote: > On Thu, Nov 8, 2018 at 10:05 PM Jean Delvare wrote: > > > > On Thu, 1 Nov 2018 16:27:07 +0100, Jean Delvare wrote: > > > Hi David, > > > > > > The following commit: > > > &g

Re: Performance regression in ast drm driver

2018-11-13 Thread Jean Delvare
On Mon, 2018-11-12 at 15:45 +0100, Takashi Iwai wrote: > On Mon, 12 Nov 2018 15:36:07 +0100, > Jean Delvare wrote: > > Takashi asked me to compare the contents of > > /sys/kernel/debug/x86/pat_memtype_list before and after the commit > > above. Before the commit, we have:

Re: Performance regression in ast drm driver

2018-11-14 Thread Jean Delvare
_bug.cgi?id=1112963 Thank you very much for looking into this bug. I tested the patch above and yes, it solves my console performance problem. The performance with your patch applied is roughly the same as with commit "drm/drivers: add support for using the arch wc mapping API" rev

Re: [PATCH] drm/ast: Remove existing framebuffers before loading driver

2018-11-16 Thread Jean Delvare
> + kfree(ap); > +} > + > static int ast_pci_probe(struct pci_dev *pdev, const struct pci_device_id > *ent) > { > + ast_kick_out_firmware_fb(pdev); > + > return drm_get_pci_dev(pdev, ent, &driver); > } > Thank you very much Thomas. Reviewed-by: Jean Delvare

Re: [PATCH] drm/ast: change resolution may cause screen blurred

2018-11-22 Thread Jean Delvare
> +++ b/drivers/gpu/drm/ast/ast_mode.c > @@ -568,6 +568,7 @@ static int ast_crtc_do_set_base(struct drm_crtc *crtc, > } > ast_bo_unreserve(bo); > > + ast_set_offset_reg(crtc); > ast_set_start_address_crt1(crtc, (u32)gpu_addr); > > return 0;

Re: [PATCH v1 1/2] i2c: smbus: Allow throttling of transfers to client devices

2023-10-12 Thread Jean Delvare
see how linux-media and dri-devel are relevant here for example. -- Jean Delvare SUSE L3 Support

Dependencies of DRM_LOONGSON

2023-11-10 Thread Jean Delvare
seful on Loongson-based MIPS systems, therefore I believe it should only be offered as an option on these systems. Would the following change be OK with you? From: Jean Delvare Subject: drm/loongson: Add platform dependency Only offer the Loongson DRM driver as an option on platforms where it

[PATCH v2] drm/loongson: Add platform dependency

2023-11-13 Thread Jean Delvare
Only offer the Loongson DRM driver as an option on platforms where it makes sense. Signed-off-by: Jean Delvare Cc: Sui Jingfeng Cc: David Airlie Cc: Daniel Vetter --- Changes since v1: * Use the architecture dependencies suggested by Sui Jingfeng. drivers/gpu/drm/loongson/Kconfig |1

[PATCH RESEND] drm/display: Drop obsolete dependency on COMPILE_TEST

2023-12-02 Thread Jean Delvare
Since commit 0166dc11be91 ("of: make CONFIG_OF user selectable"), it is possible to test-build any driver which depends on OF on any architecture by explicitly selecting OF. Therefore depending on COMPILE_TEST as an alternative is no longer needed. Signed-off-by: Jean Delvare Cc: Da

[PATCH RESEND] drm/logicvc: Drop obsolete dependency on COMPILE_TEST

2023-12-02 Thread Jean Delvare
Since commit 0166dc11be91 ("of: make CONFIG_OF user selectable"), it is possible to test-build any driver which depends on OF on any architecture by explicitly selecting OF. Therefore depending on COMPILE_TEST as an alternative is no longer needed. Signed-off-by: Jean Delvare Reviewe

[PATCH RESEND] drm/display: Drop obsolete dependency on COMPILE_TEST

2024-06-17 Thread Jean Delvare
Since commit 0166dc11be91 ("of: make CONFIG_OF user selectable"), it is possible to test-build any driver which depends on OF on any architecture by explicitly selecting OF. Therefore depending on COMPILE_TEST as an alternative is no longer needed. Signed-off-by: Jean Delvare Reviewed-

[PATCH RESEND] drm/logicvc: Drop obsolete dependency on COMPILE_TEST

2024-06-17 Thread Jean Delvare
Since commit 0166dc11be91 ("of: make CONFIG_OF user selectable"), it is possible to test-build any driver which depends on OF on any architecture by explicitly selecting OF. Therefore depending on COMPILE_TEST as an alternative is no longer needed. Signed-off-by: Jean Delvare Reviewe

Re: [PATCH RESEND] drm/display: Drop obsolete dependency on COMPILE_TEST

2024-06-17 Thread Jean Delvare
Hi Dmitry, Thanks for your feedback. On Mon, 17 Jun 2024 12:57:19 +0300, Dmitry Baryshkov wrote: > On Mon, Jun 17, 2024 at 10:30:30AM GMT, Jean Delvare wrote: > > Since commit 0166dc11be91 ("of: make CONFIG_OF user selectable"), it > > is possible to test-build any driv

Re: [PATCH RESEND] drm/display: Drop obsolete dependency on COMPILE_TEST

2024-06-17 Thread Jean Delvare
On Mon, 17 Jun 2024 14:55:22 +0300, Dmitry Baryshkov wrote: > On Mon, Jun 17, 2024 at 01:23:48PM GMT, Jean Delvare wrote: > > Hi Dmitry, > > > > Thanks for your feedback. > > > > On Mon, 17 Jun 2024 12:57:19 +0300, Dmitry Baryshkov wrote: > > > On

Re: [PATCH RESEND] drm/display: Drop obsolete dependency on COMPILE_TEST

2024-06-18 Thread Jean Delvare
Hi Doug, On Mon, 17 Jun 2024 19:12:05 -0700, Doug Anderson wrote: > On Mon, Jun 17, 2024 at 3:26 PM Dmitry Baryshkov > wrote: > > > > On Mon, Jun 17, 2024 at 08:18:14PM GMT, Jean Delvare wrote: > > > The major difference is that one can't possibly enable ARCH_Q

[PATCH v2] drm/display: Drop obsolete dependency on COMPILE_TEST

2024-06-18 Thread Jean Delvare
config bug originally fixed by commit 876271118aa4 ("drm/display: Fix build error without CONFIG_OF"), DRM_MSM which selects DRM_DISPLAY_DP_HELPER must explicitly depend on OF. This is consistent with what all other DRM drivers are doing. Signed-off-by: Jean Delvare Reviewed-by: Javier Martinez

radeon_dp_aux_transfer_native: 74 callbacks suppressed

2017-11-07 Thread Jean Delvare
message at KERN_WARNING level regardless of the level of the message being suppressed. This makes ratelimiting debug, info or notice messages awkward. Looks like a design overlook to me, maybe it should be fixed, but that's a much bigger and intrusive change than the proposal above.

[PATCH] drm/amdgpu: revert tile table update for oland

2017-09-11 Thread Jean Delvare
ommit isn't an actual revert of the original. This fixes bug #194761: https://bugzilla.kernel.org/show_bug.cgi?id=194761 Signed-off-by: Jean Delvare Fixes: f8d9422ef80c ("drm/amdgpu: update tile table for oland/hainan") Cc: Flora Cui Cc: Junwei Zhang Cc: Alex Deucher Cc: M

Re: [PATCH] drm/amdgpu: revert tile table update for oland

2017-09-16 Thread Jean Delvare
different version for older kernels already, I'll post it to stable@ after the fix is merged into Linus' tree. -- Jean Delvare SUSE L3 Support ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

[PATCH] drm/amdgpu: Make amdgpu_atif_handler static

2017-07-30 Thread Jean Delvare
There are no external users of function amdgpu_atif_handler so it can be static. Signed-off-by: Jean Delvare Cc: Alex Deucher Cc: "Christian König" --- drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-4.12.orig/drivers/g

[PATCH] drm/amdgpu: Fix undue fallthroughs in golden registers initialization

2017-07-30 Thread Jean Delvare
driver doesn't have any such fallthrough, so I suspect this is not supposed to happen. Signed-off-by: Jean Delvare Fixes: 62a37553414a ("drm/amdgpu: add si implementation v10") Cc: Ken Wang Cc: Alex Deucher Cc: "Marek Olšák" Cc: "Christian König" Cc: Flo

[PATCH] drm/radeon: Make radeon_atif_handler static

2017-07-30 Thread Jean Delvare
There are no external users of function radeon_atif_handler so it can be static. Signed-off-by: Jean Delvare Cc: Alex Deucher Cc: "Christian König" --- drivers/gpu/drm/radeon/radeon_acpi.c |2 +- drivers/gpu/drm/radeon/radeon_acpi.h |3 --- 2 files changed, 1 insertion(+), 4

[PATCH] drm/amdgpu: Fix dce_v6_0_disable_dce warning

2017-07-30 Thread Jean Delvare
Include a missing header to get rid of the following warning: drivers/gpu/drm/amd/amdgpu/dce_v6_0.c:521:6: warning: no previous prototype for 'dce_v6_0_disable_dce' [-Wmissing-prototypes] void dce_v6_0_disable_dce(struct amdgpu_device *adev) ^ Signed-off-by: Jean Delvare

[PATCH] drm/amdgpu: Fix amdgpu_pm_acpi_event_handler warning

2017-07-30 Thread Jean Delvare
Include a missing header to get rid of the following warning: drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c:65:6: warning: no previous prototype for ‘amdgpu_pm_acpi_event_handler’ [-Wmissing-prototypes] void amdgpu_pm_acpi_event_handler(struct amdgpu_device *adev) ^ Signed-off-by: Jean Delvare

[PATCH] drm/i915: Optimize DIV_ROUND_CLOSEST call

2012-09-03 Thread Jean Delvare
From: Jean Delvare Subject: drm/i915: Optimize DIV_ROUND_CLOSEST call DIV_ROUND_CLOSEST is faster if the compiler knows it will only be dealing with unsigned dividends. Signed-off-by: Jean Delvare Cc: Guenter Roeck Cc: Andrew Morton Cc: Daniel Vetter Cc: David Airlie --- Daniel, I think we

Re: [PATCH V4] drm: edid: add support for E-DDC

2012-08-29 Thread Jean Delvare
return ret == 2 ? 0 : -1; > + return ret == xfers ? 0 : -1; > } > > static bool drm_edid_is_zero(u8 *in_edid, int length) Other than this, your code looks reasonable, not so different from what I submitted 8 months ago actually. But ISTU you can test the code with real hardw

[PATCH] drm/i915: Optimize DIV_ROUND_CLOSEST call

2012-09-03 Thread Jean Delvare
From: Jean Delvare Subject: drm/i915: Optimize DIV_ROUND_CLOSEST call DIV_ROUND_CLOSEST is faster if the compiler knows it will only be dealing with unsigned dividends. Signed-off-by: Jean Delvare Cc: Guenter Roeck Cc: Andrew Morton Cc: Daniel Vetter Cc: David Airlie --- Daniel, I think we

[PATCH] drm/i915: Optimize DIV_ROUND_CLOSEST call

2012-11-12 Thread Jean Delvare
DIV_ROUND_CLOSEST is faster if the compiler knows it will only be dealing with unsigned dividends. This optimization rips 32 bytes of binary code on x86_64. Signed-off-by: Jean Delvare Cc: Guenter Roeck Cc: Andrew Morton Cc: Daniel Vetter Cc: David Airlie --- Already sent on: 2012-09-03

Re: [PATCH] drm/i915: Optimize DIV_ROUND_CLOSEST call

2012-11-12 Thread Jean Delvare
On Mon, 12 Nov 2012 15:02:26 +0100, Daniel Vetter wrote: > On Mon, Nov 12, 2012 at 02:18:02PM +0100, Jean Delvare wrote: > > DIV_ROUND_CLOSEST is faster if the compiler knows it will only be > > dealing with unsigned dividends. This optimization rips 32 bytes of > >

[PATCH] drm/radeon/kms: Fix I2C mask definitions

2011-10-06 Thread Jean Delvare
Commit 9b9fe724 accidentally used RADEON_GPIO_EN_* where RADEON_GPIO_MASK_* was intended. This caused improper initialization of I2C buses, mostly visible when setting i2c_algo_bit.bit_test=1. Using the right constants fixes the problem. Signed-off-by: Jean Delvare Cc: Alex Deucher Cc: Jerome

[PATCH] drm/radeon/kms: Simplify I2C post_xfer function

2011-10-13 Thread Jean Delvare
There is no point in re-doing in post_xfer all the initialization that was already done by pre_xfer. Instead, only do the work which differs from pre_xfer. Signed-off-by: Jean Delvare Reviewed-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_i2c.c | 48

Re: [Intel-gfx] [PATCH 1/2] Give up on edid retries when i2c tells us that bus is not there

2011-10-18 Thread Jean Delvare
; >                ret = i2c_transfer(adapter, msgs, 2); > > +               if (ret == -ENXIO) { > > +                       DRM_DEBUG_KMS("drm: skipping non-existent adapter > > %s\n", > > +                                       adapter->name); > > +                       break; &

Re: [Intel-gfx] [PATCH 1/2] Give up on edid retries when i2c tells us that bus is not there

2011-10-20 Thread Jean Delvare
On Tue, 18 Oct 2011 11:37:38 -0200, Eugeni Dodonov wrote: > On 10/18/2011 11:14, Jean Delvare wrote: > > Hi Dave, Eugeni, Alex, > > > > On Tue, 18 Oct 2011 11:02:00 +0100, Dave Airlie wrote: > >>> This allows to avoid talking to a non-existent bus repeatedly until

Re: [Intel-gfx] [PATCH 1/2] Give up on edid retries when i2c tells us that bus is not there

2011-10-20 Thread Jean Delvare
Forgot to attach the patch, sorry. Here it is. -- Jean Delvare --- drivers/i2c/algos/i2c-algo-bit.c |8 ++-- include/linux/i2c-algo-bit.h |3 +++ 2 files changed, 9 insertions(+), 2 deletions(-) --- linux-3.1-rc10.orig/drivers/i2c/algos/i2c-algo-bit.c 2011-10-20 12:03

Re: [Intel-gfx] [PATCH 1/2] Give up on edid retries when i2c tells us that bus is not there

2011-10-20 Thread Jean Delvare
On Thu, 20 Oct 2011 14:33:39 +0200, Jean Delvare wrote: > That being said, even then the whole probe sequence shouldn't exceed > 10 ms, which I wouldn't expect a user to notice. The user-reported 4 > second delay when running xrandr can't be caused by this. 4 seconds for

[PATCH 1/2] drm/kms: Make i2c buses faster

2011-10-21 Thread Jean Delvare
, the vast majority of framebuffer drivers set udelay to 10 already. So set it to 10 in DRM drivers too, this will make EDID block reads faster. We might even lower the udelay value later if no problem is reported. Signed-off-by: Jean Delvare Cc: Eugeni Dodonov Cc: Dave Airlie Cc: Keith Packard Cc

[PATCH 2/2] drm/kms: Use the standard VESA timeout for DDC channels

2011-10-21 Thread Jean Delvare
The VESA specification suggests a 2.2 ms timeout on DDC channels. Only the intel DRM driver implements this properly today, align all drivers to the proper implementation. Signed-off-by: Jean Delvare Cc: Eugeni Dodonov Cc: Dave Airlie Cc: Keith Packard Cc: Alex Deucher --- drivers/gpu/drm

Re: [PATCH 1/2] drm/kms: Make i2c buses faster

2011-10-21 Thread Jean Delvare
Hi Alan, On Friday 21 October 2011 03:32:44 pm Alan Cox wrote: > On Fri, 21 Oct 2011 09:08:30 +0200 > > Jean Delvare wrote: > > A udelay value of 20 leads to an I2C bus running at only 25 kbps. A > > value of 40 as the nouveau driver has is even slower at 12.5 kbps

Re: [PATCH 1/2] drm/kms: Make i2c buses faster

2011-10-22 Thread Jean Delvare
Hi Alex, On Friday 21 October 2011 08:05:48 pm Alex Deucher wrote: > On Fri, Oct 21, 2011 at 10:16 AM, Jean Delvare > > Does anyone know at which speed hardware I2C engines are running > > the DDC bus on various graphics cards? > > IIRC, we generally target the radeon hw

Re: [Intel-gfx] [PATCH 1/2] Give up on edid retries when i2c tells us that bus is not there

2011-10-30 Thread Jean Delvare
Hi Eugeni, On Mon, 24 Oct 2011 12:40:14 -0200, Eugeni Dodonov wrote: > On Thu, Oct 20, 2011 at 10:33, Jean Delvare wrote: > > > Just to clarify: by "connectivity is setup", do you mean code in the > > driver setting the GPIO pin direction etc., or a display being &

Re: [PATCH] drm/radeon/kms: fix up gpio i2c mask bits for r4xx for real

2011-11-22 Thread Jean Delvare
ssed this part the first time through. > > Signed-off-by: Alex Deucher > Cc: sta...@kernel.org > Cc: Jean Delvare Acked-by: Jean Delvare And the fix was tested successfully by one openSUSE 11.4 user, see: https://bugzilla.novell.com/show_bug.cgi?id=691052#c37 Thanks Alex! Note

[PATCH] drm/radeon/kms: Fix module parameter description format

2011-11-30 Thread Jean Delvare
From: Jean Delvare Subject: drm/radeon/kms: Fix module parameter description format Module parameter descriptions don't take a trailing \n, otherwise it breaks formatting of modinfo's output. Also add missing space after comma. Signed-off-by: Jean Delvare Cc: David Airlie Cc: Alex D

[PATCH] drm/nouveau: Fix module parameter description formats

2011-11-30 Thread Jean Delvare
Module parameter descriptions don't take a trailing \n, otherwise it breaks formatting of modinfo's output. Also remove trailing space. Signed-off-by: Jean Delvare Cc: David Airlie Cc: Ben Skeggs --- drivers/gpu/drm/nouveau/nouveau_drv.c | 12 ++-- 1 file changed, 6 insert

[PATCH 1/2] drm/radeon/kms: Hide debugging message

2011-11-30 Thread Jean Delvare
direction, but was not sufficient IMHO. Signed-off-by: Jean Delvare Cc: David Airlie Cc: Alex Deucher --- Might be considered for stable, this is not a critical bug but it can waste time of users and developers alike. drivers/gpu/drm/radeon/radeon_acpi.c |3 ++- 1 file changed, 2 insertions(+), 1

[PATCH 2/2] drm/radeon/kms: Skip ACPI call to ATIF when possible

2011-11-30 Thread Jean Delvare
I am under the impression that it only makes sense to call the ATIF method if the graphics device has an ACPI handle attached. So we could skip the call altogether if there is no such handle. Signed-off-by: Jean Delvare Cc: David Airlie Cc: Alex Deucher --- This is only tested on a system

[PATCH] drm/edid: Add support for extension blocks beyond the first

2011-12-07 Thread Jean Delvare
When 2 or more EDID extension blocks are present, segment must be selected prior to reading the extended EDID block over the DDC channel. Add support for this. Signed-off-by: Jean Delvare Cc: Adam Jackson --- This needs testing by someone with access to such a display. drivers/gpu/drm

Re: [PATCH] drm/radeon/kms: bail on BTC parts if MC ucode is missing

2011-12-09 Thread Jean Delvare
n unusable display. > > Signed-off-by: Alex Deucher > Cc: sta...@kernel.org > Cc: Jean Delvare Thanks Alex. I tested this fix and it works to some degree, but it doesn't solve all the issues. What works: * No garbage on the screen. * X falls back to the vesa driver. What doesn'

i2c handling in nouveau driver

2012-01-11 Thread Jean Delvare
bit. If the code is broken, let's fix it for the benefit of all users. Duplicating code around isn't going to help any. Thanks, -- Jean Delvare Suse L3 ___ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH] drm/radeon/kms: Fix module parameter description format

2012-01-11 Thread Jean Delvare
On Wednesday 30 November 2011 05:59:57 pm Alex Deucher wrote: > On Wed, Nov 30, 2011 at 11:22 AM, Jean Delvare > wrote: > > From: Jean Delvare > > Subject: drm/radeon/kms: Fix module parameter description format > > > > Module parameter descriptions don't t

Re: [PATCH] drm/nouveau: Fix module parameter description formats

2012-01-11 Thread Jean Delvare
On Wednesday 30 November 2011 05:23:55 pm Jean Delvare wrote: > Module parameter descriptions don't take a trailing \n, otherwise it > breaks formatting of modinfo's output. Also remove trailing space. > > Signed-off-by: Jean Delvare > Cc: David Airlie > Cc: Ben Skeg

[PATCH 1/2] drm/kms: Make i2c buses faster

2012-01-28 Thread Jean Delvare
set it to 10 in DRM drivers too, this will make EDID block reads faster. We might even lower the udelay value later if no problem is reported. Signed-off-by: Jean Delvare Acked-by: Eugeni Dodonov Cc: Dave Airlie Cc: Keith Packard Cc: Alex Deucher --- Already sent on: 2011-10-21. drivers/gpu

[PATCH 2/2] drm/radeon/kms: Use the standard VESA timeout for DDC channels

2012-01-28 Thread Jean Delvare
The VESA specification suggests a 2.2 ms timeout on DDC channels. Use exactly that (as the i915 driver does) instead of hard-coding a jiffy count. Signed-off-by: Jean Delvare Reviewed-by: Keith Packard Cc: Dave Airlie Cc: Alex Deucher --- Already sent on: 2011-10-21. drivers/gpu/drm/radeon

[PATCH] drm/radeon/kms: Fix device tree linkage of i2c buses

2012-01-28 Thread Jean Delvare
Properly set the parent device of i2c buses before registering them so that they will show at the right place in the device tree (rather than in /sys/devices directly.) Signed-off-by: Jean Delvare Cc: Dave Airlie Cc: Alex Deucher --- drivers/gpu/drm/radeon/radeon_i2c.c |1 + 1 file

[PATCH] drm/radeon/kms: Fix device tree linkage of DP i2c buses too

2012-01-31 Thread Jean Delvare
Properly set the parent device of DP i2c buses before registering them too. Signed-off-by: Jean Delvare Cc: Dave Airlie Cc: Alex Deucher --- I'm sorry, my previous patch missed the fact that DP i2c buses are handled separately so they need the same fix. drivers/gpu/drm/radeon/radeon_

Re: [PATCH] drm/edid: Add support for extension blocks beyond the first

2012-02-15 Thread Jean Delvare
Hi Ville, On Monday 13 February 2012 07:24:23 pm Ville Syrjälä wrote: > On Wed, Dec 07, 2011 at 03:11:07PM +0100, Jean Delvare wrote: > > When 2 or more EDID extension blocks are present, segment must be > > selected prior to reading the extended EDID block over the DDC > >

Re: [PATCH 3/7] i2c: export bit-banging algo functions

2012-02-27 Thread Jean Delvare
rt a new function i2c_bit_add_numbered_bus() which would call __i2c_bit_add_bus() with no callback function. If you do that, you may not have to export anything else. I leave it up to you which way you want to implement it, all are fine with me, and we can always change later if more use cases show up which would work better with a different implementation. -- Jean Delvare ___ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH 3/7] i2c: export bit-banging algo functions

2012-02-28 Thread Jean Delvare
On Mon, 27 Feb 2012 23:52:23 +0100, Daniel Vetter wrote: > On Mon, Feb 27, 2012 at 11:20:40PM +0100, Jean Delvare wrote: > > If you need to hot-switch between hardware and bit-banged I2C, I suggest > > that you lock the bus while doing so, to avoid switching while a > > trans

Re: [PATCH] i2c: export bit-banging algo functions

2012-02-28 Thread Jean Delvare
; The new plan is to only set up one i2c adaptor and transparently fall > back to bit-banging by directly calling the xfer function of the bit- > banging algo in the i2c core. > > To make that possible, export the 2 i2c algo functions. > > v2: As suggested by Jean Delvare,

Re: [PATCH] i2c-algo-bit: Fix spurious SCL timeouts under heavy load

2012-03-15 Thread Jean Delvare
ETIMEDOUT; + } cond_resched(); } #ifdef DEBUG Functionally it should be equivalent to your proposal, but faster. I'll apply that (and send for stable inclusion.) Thanks, -- Jean Delvare ___ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: i2c handling in nouveau driver

2012-03-16 Thread Jean Delvare
Hi Ben, I'm sorry for the very very late reply. Please do not jump to the conclusion that I do not care - I do! Just I am very busy, just as you. On Wednesday 11 January 2012 01:40:58 pm Ben Skeggs wrote: > On Wed, 2012-01-11 at 11:17 +0100, Jean Delvare wrote: > > In the commi

Re: [PATCH 1/2] drm/kms: Make i2c buses faster

2012-03-21 Thread Jean Delvare
Hi Keith, Sorry for the late reply. On Sunday 29 January 2012 02:26:25 am Keith Packard wrote: > On Sat, 28 Jan 2012 11:07:09 +0100, Jean Delvare > wrote: > > A udelay value of 20 leads to an I2C bus running at only 25 kbps. > > I2C devices can typically operate faster than th

Re: [PATCH 2/2] drm/radeon/kms: Use the standard VESA timeout for DDC channels

2012-03-21 Thread Jean Delvare
Hi Keith, On Sunday 29 January 2012 02:34:05 am Keith Packard wrote: > On Sat, 28 Jan 2012 11:08:58 +0100, Jean Delvare > wrote: > > The VESA specification suggests a 2.2 ms timeout on DDC channels. > > Use exactly that (as the i915 driver does) instead of hard-coding a > &g

[PATCH v2] drm/i915: Run DDC buses at 50 kbps

2012-03-21 Thread Jean Delvare
set it to 10 in DRM drivers too, this will make EDID block reads faster. We might even lower the udelay value later if no problem is reported. Signed-off-by: Jean Delvare Acked-by: Eugeni Dodonov Cc: Dave Airlie Cc: Keith Packard --- Changes since v1: * Split per driver to make merging easier

[PATCH v2] drm/radeon/kms: Run DDC buses at 50 kbps

2012-03-21 Thread Jean Delvare
set it to 10 in DRM drivers too, this will make EDID block reads faster. We might even lower the udelay value later if no problem is reported. Signed-off-by: Jean Delvare Reviewed-by: Alex Deucher Cc: Dave Airlie --- Changes since v1: * Split per driver to make merging easier. * Make the subject

Re: [PATCH v2] drm/i915: Run DDC buses at 50 kbps

2012-03-23 Thread Jean Delvare
On Thursday 22 March 2012 09:50:23 pm Daniel Vetter wrote: > On Wed, Mar 21, 2012 at 02:29:47PM +0100, Jean Delvare wrote: > > A udelay value of 20 leads to an I2C bus running at only 25 kbps. > > I2C devices can typically operate faster than this, 50 kbps should > > be fine

  1   2   3   >