* [Intel-gfx] [PATCH] drm/i915: Do not call hsw_set_frame_start_delay for dsi
@ 2020-11-19 7:13 Manasi Navare
2020-11-19 8:24 ` Petri Latvala
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Manasi Navare @ 2020-11-19 7:13 UTC (permalink / raw)
To: intel-gfx
This should fix the boot oops for dsi
Fixes: 4e3cdb4535e7 ("drm/i915/dp: Master/Slave enable/disable sequence for bigjoiner")
Signed-off-by: Manasi Navare <manasi.d.navare@intel.com>
---
drivers/gpu/drm/i915/display/intel_display.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
index 5c07c74d4397..739be96e998d 100644
--- a/drivers/gpu/drm/i915/display/intel_display.c
+++ b/drivers/gpu/drm/i915/display/intel_display.c
@@ -7211,7 +7211,7 @@ static void hsw_crtc_enable(struct intel_atomic_state *state,
if (INTEL_GEN(dev_priv) >= 9 || IS_BROADWELL(dev_priv))
bdw_set_pipemisc(new_crtc_state);
- if (!new_crtc_state->bigjoiner_slave || !transcoder_is_dsi(cpu_transcoder)) {
+ if (!new_crtc_state->bigjoiner_slave && !transcoder_is_dsi(cpu_transcoder)) {
if (!transcoder_is_dsi(cpu_transcoder))
intel_set_transcoder_timings(new_crtc_state);
@@ -7224,7 +7224,7 @@ static void hsw_crtc_enable(struct intel_atomic_state *state,
intel_cpu_transcoder_set_m_n(new_crtc_state,
&new_crtc_state->fdi_m_n, NULL);
- hsw_set_frame_start_delay(new_crtc_state);
+ hsw_set_frame_start_delay(new_crtc_state);
}
if (!transcoder_is_dsi(cpu_transcoder))
--
2.19.1
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Intel-gfx] [PATCH] drm/i915: Do not call hsw_set_frame_start_delay for dsi
2020-11-19 7:13 [Intel-gfx] [PATCH] drm/i915: Do not call hsw_set_frame_start_delay for dsi Manasi Navare
@ 2020-11-19 8:24 ` Petri Latvala
2020-11-19 9:56 ` Hans de Goede
2020-11-19 10:47 ` [Intel-gfx] ✗ Fi.CI.BUILD: failure for " Patchwork
2 siblings, 0 replies; 4+ messages in thread
From: Petri Latvala @ 2020-11-19 8:24 UTC (permalink / raw)
To: Manasi Navare; +Cc: intel-gfx
On Wed, Nov 18, 2020 at 11:13:31PM -0800, Manasi Navare wrote:
> This should fix the boot oops for dsi
>
> Fixes: 4e3cdb4535e7 ("drm/i915/dp: Master/Slave enable/disable sequence for bigjoiner")
> Signed-off-by: Manasi Navare <manasi.d.navare@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_display.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
> index 5c07c74d4397..739be96e998d 100644
> --- a/drivers/gpu/drm/i915/display/intel_display.c
> +++ b/drivers/gpu/drm/i915/display/intel_display.c
> @@ -7211,7 +7211,7 @@ static void hsw_crtc_enable(struct intel_atomic_state *state,
> if (INTEL_GEN(dev_priv) >= 9 || IS_BROADWELL(dev_priv))
> bdw_set_pipemisc(new_crtc_state);
>
> - if (!new_crtc_state->bigjoiner_slave || !transcoder_is_dsi(cpu_transcoder)) {
> + if (!new_crtc_state->bigjoiner_slave && !transcoder_is_dsi(cpu_transcoder)) {
> if (!transcoder_is_dsi(cpu_transcoder))
> intel_set_transcoder_timings(new_crtc_state);
>
> @@ -7224,7 +7224,7 @@ static void hsw_crtc_enable(struct intel_atomic_state *state,
> intel_cpu_transcoder_set_m_n(new_crtc_state,
> &new_crtc_state->fdi_m_n, NULL);
>
> - hsw_set_frame_start_delay(new_crtc_state);
> + hsw_set_frame_start_delay(new_crtc_state);
Indentation for this is wrong now.
--
Petri Latvala
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Intel-gfx] [PATCH] drm/i915: Do not call hsw_set_frame_start_delay for dsi
2020-11-19 7:13 [Intel-gfx] [PATCH] drm/i915: Do not call hsw_set_frame_start_delay for dsi Manasi Navare
2020-11-19 8:24 ` Petri Latvala
@ 2020-11-19 9:56 ` Hans de Goede
2020-11-19 10:47 ` [Intel-gfx] ✗ Fi.CI.BUILD: failure for " Patchwork
2 siblings, 0 replies; 4+ messages in thread
From: Hans de Goede @ 2020-11-19 9:56 UTC (permalink / raw)
To: Manasi Navare, intel-gfx
Hi,
On 11/19/20 8:13 AM, Manasi Navare wrote:
> This should fix the boot oops for dsi
>
> Fixes: 4e3cdb4535e7 ("drm/i915/dp: Master/Slave enable/disable sequence for bigjoiner")
> Signed-off-by: Manasi Navare <manasi.d.navare@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_display.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
> index 5c07c74d4397..739be96e998d 100644
> --- a/drivers/gpu/drm/i915/display/intel_display.c
> +++ b/drivers/gpu/drm/i915/display/intel_display.c
> @@ -7211,7 +7211,7 @@ static void hsw_crtc_enable(struct intel_atomic_state *state,
> if (INTEL_GEN(dev_priv) >= 9 || IS_BROADWELL(dev_priv))
> bdw_set_pipemisc(new_crtc_state);
>
> - if (!new_crtc_state->bigjoiner_slave || !transcoder_is_dsi(cpu_transcoder)) {
> + if (!new_crtc_state->bigjoiner_slave && !transcoder_is_dsi(cpu_transcoder)) {
> if (!transcoder_is_dsi(cpu_transcoder))
This condition is now always true so this nested if can be dropped now and the
code it guards can be executed unconditionally now (within the parent if).
Regards,
Hans
> intel_set_transcoder_timings(new_crtc_state);
>
> @@ -7224,7 +7224,7 @@ static void hsw_crtc_enable(struct intel_atomic_state *state,
> intel_cpu_transcoder_set_m_n(new_crtc_state,
> &new_crtc_state->fdi_m_n, NULL);
>
> - hsw_set_frame_start_delay(new_crtc_state);
> + hsw_set_frame_start_delay(new_crtc_state);
> }
>
> if (!transcoder_is_dsi(cpu_transcoder))
>
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Intel-gfx] ✗ Fi.CI.BUILD: failure for drm/i915: Do not call hsw_set_frame_start_delay for dsi
2020-11-19 7:13 [Intel-gfx] [PATCH] drm/i915: Do not call hsw_set_frame_start_delay for dsi Manasi Navare
2020-11-19 8:24 ` Petri Latvala
2020-11-19 9:56 ` Hans de Goede
@ 2020-11-19 10:47 ` Patchwork
2 siblings, 0 replies; 4+ messages in thread
From: Patchwork @ 2020-11-19 10:47 UTC (permalink / raw)
To: Manasi Navare; +Cc: intel-gfx
== Series Details ==
Series: drm/i915: Do not call hsw_set_frame_start_delay for dsi
URL : https://patchwork.freedesktop.org/series/84039/
State : failure
== Summary ==
CALL scripts/checksyscalls.sh
CALL scripts/atomic/check-atomics.sh
DESCEND objtool
CHK include/generated/compile.h
CC [M] drivers/gpu/drm/i915/display/intel_display.o
drivers/gpu/drm/i915/display/intel_display.c: In function ‘hsw_crtc_enable’:
drivers/gpu/drm/i915/display/intel_display.c:7223:3: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]
if (new_crtc_state->has_pch_encoder)
^~
drivers/gpu/drm/i915/display/intel_display.c:7227:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
hsw_set_frame_start_delay(new_crtc_state);
^~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
scripts/Makefile.build:283: recipe for target 'drivers/gpu/drm/i915/display/intel_display.o' failed
make[4]: *** [drivers/gpu/drm/i915/display/intel_display.o] Error 1
scripts/Makefile.build:500: recipe for target 'drivers/gpu/drm/i915' failed
make[3]: *** [drivers/gpu/drm/i915] Error 2
scripts/Makefile.build:500: recipe for target 'drivers/gpu/drm' failed
make[2]: *** [drivers/gpu/drm] Error 2
scripts/Makefile.build:500: recipe for target 'drivers/gpu' failed
make[1]: *** [drivers/gpu] Error 2
Makefile:1799: recipe for target 'drivers' failed
make: *** [drivers] Error 2
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-11-19 10:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-19 7:13 [Intel-gfx] [PATCH] drm/i915: Do not call hsw_set_frame_start_delay for dsi Manasi Navare
2020-11-19 8:24 ` Petri Latvala
2020-11-19 9:56 ` Hans de Goede
2020-11-19 10:47 ` [Intel-gfx] ✗ Fi.CI.BUILD: failure for " Patchwork
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.