Ultrajoiner basic functionality series
Subsystems (3)
cover Ultrajoiner basic functionality series
This patch series attempts to implement basic support for Ultrajoiner functionality.
Rev6:
-Upgrade the debugfs functionality to enable the joining of a specified number of pipes.
-Modify the display helpers reliant on the pipe joiner mechanism to use number of pipes joined, instead of joiner flag. -Checkpatch fixes.
Rev7:
-Use struct intel_display, minor refactoring, and rebase.
Test-with: [email protected]
Ankit Nautiyal (7):
drm/i915/display: Modify debugfs for joiner to force n pipes drm/i915/display: Use joined pipes in intel_dp_joiner_needs_dsc drm/i915/display: Use joined pipes in intel_mode_valid_max_plane_size drm/i915/display: Use joined pipes in dsc helpers for slices, bpp drm/i915/display: Add helpers to check for ultrajoiner primary drm/i915/display: Consider ultrajoiner for computing maxdotclock drm/i915/intel_dp: Add support for forcing ultrajoiner
Stanislav Lisovskiy (7):
drm/i915: Add some essential functionality for joiners drm/i915: Split current joiner hw state readout
drm/i915: Add bigjoiner and uncompressed joiner hw readout sanity
checks
drm/i915: Implement hw state readout and checks for ultrajoiner drm/i915/display/vdsc: Add ultrajoiner support with DSC drm/i915: Add new abstraction layer to handle pipe order for different
joiners
drm/i915: Compute config and mode valid changes for ultrajoiner
.../gpu/drm/i915/display/intel_atomic_plane.c | 2 +- drivers/gpu/drm/i915/display/intel_ddi.c | 19 +- drivers/gpu/drm/i915/display/intel_display.c | 373 +++++++++++++++--- drivers/gpu/drm/i915/display/intel_display.h | 22 +- .../drm/i915/display/intel_display_debugfs.c | 71 +++- .../drm/i915/display/intel_display_types.h | 9 +- drivers/gpu/drm/i915/display/intel_dp.c | 112 ++++-- drivers/gpu/drm/i915/display/intel_dp.h | 17 +- drivers/gpu/drm/i915/display/intel_dp_mst.c | 61 ++- drivers/gpu/drm/i915/display/intel_dsi.c | 2 +- drivers/gpu/drm/i915/display/intel_hdmi.c | 2 +- .../drm/i915/display/intel_modeset_verify.c | 2 +- drivers/gpu/drm/i915/display/intel_vdsc.c | 30 +- .../gpu/drm/i915/display/intel_vdsc_regs.h | 3 + 14 files changed, 585 insertions(+), 140 deletions(-)
Signature · 1 line
2.45.2
PATCH 1/14 drm/i915/display: Modify debugfs for joiner to force n pipes
At the moment, the debugfs for joiner allows only to force enable/disable pipe joiner for 2 pipes. Modify it to force join 'n' number of pipes, where n is a valid pipe joiner configuration.
This will help in case of ultra joiner where 4 pipes are joined.
v2:
-Fix commit message to state that only valid joiner config can be forced. (Suraj)
-Rename the identifiers to have INTEL_BIG/NONE_JOINER_PIPES. (Suraj)
--- .../drm/i915/display/intel_display_debugfs.c | 71 ++++++++++++++++++- .../drm/i915/display/intel_display_types.h | 8 ++- drivers/gpu/drm/i915/display/intel_dp.c | 2 +- 3 files changed, 77 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/display/intel_display_debugfs.c +69 -2
@@ -1504,6 +1504,73 @@ static int intel_crtc_pipe_show(struct seq_file *m, void *unused) }DEFINE_SHOW_ATTRIBUTE (intel_crtc_pipe); +static int i915_joiner_show (struct seq_file *m,void *data) +{ +struct intel_connector *connector = m->private; +struct drm_i915_private *i915 =to_i915 (connector->base.dev); +int ret; + + ret =drm_modeset_lock_single_interruptible (&i915->drm.mode_config.connection_mutex); +if (ret) +return ret; + +seq_printf (m,"Force_joined_pipes: %d\n" , connector->force_joined_pipes); + +drm_modeset_unlock (&i915->drm.mode_config.connection_mutex); + +return ret; +} + +static ssize_t i915_joiner_write (struct file *file, +const char __user *ubuf, +size_t len,loff_t *offp) +{ +struct seq_file *m = file->private_data; +struct intel_connector *connector = m->private; +struct drm_i915_private *i915 =to_i915 (connector->base.dev); +int force_join_pipes =0 ; +int ret; + +if (len ==0 ) +return 0 ; + +drm_dbg (&i915->drm, +"Copied %zu bytes from user to force joiner\n" , len); + + ret =kstrtoint_from_user (ubuf, len,0 , &force_join_pipes); +if (ret <0 ) +return ret; + +drm_dbg (&i915->drm,"Got %d for force joining pipes\n" , force_join_pipes); + +if (force_join_pipes <INTEL_NONE_JOINER_PIPES || + force_join_pipes >=INTEL_INVALID_JOINER_PIPES ) { +drm_dbg (&i915->drm,"Ignoring Invalid num of pipes %d for force joining\n" , + force_join_pipes); + connector->force_joined_pipes =INTEL_NONE_JOINER_PIPES ; + }else { + connector->force_joined_pipes = force_join_pipes; + } + + *offp += len; + +return len; +} + +static int i915_joiner_open (struct inode *inode,struct file *file) +{ +return single_open (file, i915_joiner_show, inode->i_private); +} + +static const struct file_operations i915_joiner_fops = { + .owner =THIS_MODULE , + .open = i915_joiner_open, + .read = seq_read, + .llseek = seq_lseek, + .release = single_release, + .write = i915_joiner_write +}; +/** * intel_connector_debugfs_add - add i915 specific connector debugfs files * @connector: pointer to a registered intel_connector
@@ -1553,8 +1620,8 @@ void intel_connector_debugfs_add(struct intel_connector *connector)if (DISPLAY_VER (i915) >=11 && (connector_type == DRM_MODE_CONNECTOR_DisplayPort || connector_type == DRM_MODE_CONNECTOR_eDP)) { -debugfs_create_bool ("i915_bigjoiner_force_enable" ,0644 , root, - &connector->force_bigjoiner_enable); +debugfs_create_file ("i915_joiner_force_enable" ,0644 , root, + connector, &i915_joiner_fops); } if (connector_type == DRM_MODE_CONNECTOR_DSI ||
drivers/gpu/drm/i915/display/intel_display_types.h +7 -1
@@ -486,6 +486,12 @@ struct intel_hdcp {enum transcoder stream_transcoder; }; +enum intel_joiner_pipe_count { +INTEL_NONE_JOINER_PIPES =0 , +INTEL_BIG_JOINER_PIPES =2 , +INTEL_INVALID_JOINER_PIPES , +}; +struct intel_connector {struct drm_connector base;/*
@@ -524,7 +530,7 @@ struct intel_connector {struct intel_dp *mst_port; -bool force_bigjoiner_enable; +enum intel_joiner_pipe_count force_joined_pipes;struct {struct drm_dp_aux *dsc_decompression_aux;
drivers/gpu/drm/i915/display/intel_dp.c +1 -1
@@ -1271,7 +1271,7 @@ bool intel_dp_need_joiner(struct intel_dp *intel_dp,return false;return clock > i915->display.cdclk.max_dotclk_freq || hdisplay >5120 || - connector->force_bigjoiner_enable; + connector->force_joined_pipes ==INTEL_BIG_JOINER_PIPES ; }bool intel_dp_has_dsc (const struct intel_connector *connector)
Signature · 1 line
2.45.2
Re: [PATCH 01/14] drm/i915/display: Modify debugfs for joiner to force n pipes
Quoted 24 lines · Ankit Nautiyal
At the moment, the debugfs for joiner allows only to force enable/disable pipe joiner for 2 pipes. Modify it to force join 'n' number of pipes, where n is a valid pipe joiner configuration.
This will help in case of ultra joiner where 4 pipes are joined.v2:
-Fix commit message to state that only valid joiner config can be forced. (Suraj)
-Rename the identifiers to have INTEL_BIG/NONE_JOINER_PIPES. (Suraj)Signed-off-by Ankit Nautiyal <[email protected]>--- .../drm/i915/display/intel_display_debugfs.c | 71 ++++++++++++++++++- .../drm/i915/display/intel_display_types.h | 8 ++- drivers/gpu/drm/i915/display/intel_dp.c | 2 +- 3 files changed, 77 insertions(+), 4 deletions(-)drivers/gpu/drm/i915/display/intel_display_debugfs.c +0
-0@@ -1504,6 +1504,73 @@ static int intel_crtc_pipe_show(struct seq_file *m, void *unused) }DEFINE_SHOW_ATTRIBUTE (intel_crtc_pipe);
drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1515
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +9
-0+static int i915_joiner_show (struct seq_file *m,void *data) +{ +struct intel_connector *connector = m->private; +struct drm_i915_private *i915 =to_i915 (connector->base.dev); +int ret; + + ret =drm_modeset_lock_single_interruptible (&i915->drm.mode_config.connection_mutex); +if (ret) +return ret;
What does that lock do for us?
drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1517
Quoted 2 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +2
-0+ +seq_printf (m,"Force_joined_pipes: %d\n" , connector->force_joined_pipes);
This should just be thae bare number. Adding other junk in there just complicates matters if anyone has to parse this.
Quoted 11 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +11
-0+ +drm_modeset_unlock (&i915->drm.mode_config.connection_mutex); + +return ret; +} + +static ssize_t i915_joiner_write (struct file *file, +const char __user *ubuf, +size_t len,loff_t *offp) +{ +struct seq_file *m = file->private_data;
drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1538
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +10
-0+struct intel_connector *connector = m->private; +struct drm_i915_private *i915 =to_i915 (connector->base.dev); +int force_join_pipes =0 ; +int ret; + +if (len ==0 ) +return 0 ; + +drm_dbg (&i915->drm, +"Copied %zu bytes from user to force joiner\n" , len);
Leftover debug junk.
drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1544
Quoted 6 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +6
-0+ + ret =kstrtoint_from_user (ubuf, len,0 , &force_join_pipes); +if (ret <0 ) +return ret; + +drm_dbg (&i915->drm,"Got %d for force joining pipes\n" , force_join_pipes);
More.
drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1553
Quoted 9 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +9
-0+ +if (force_join_pipes <INTEL_NONE_JOINER_PIPES || + force_join_pipes >=INTEL_INVALID_JOINER_PIPES ) { +drm_dbg (&i915->drm,"Ignoring Invalid num of pipes %d for force joining\n" , + force_join_pipes); + connector->force_joined_pipes =INTEL_NONE_JOINER_PIPES ; + }else { + connector->force_joined_pipes = force_join_pipes; + }
I think just something like
switch (num_pipes) {
case 0: /* or should 1 be the default? */
case 2:
case 4:
break; default: bad; }
should do for validation.
drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1555
Quoted 2 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +2
-0+ + *offp += len;
I don't suppose there's any kind of helper for creating a debugfs file with a standard type, with some kind of caller specified validation function? Would avoid having to hand roll all this read syscall cruft for what is a fairly common usecase...
Quoted 37 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +20
-2+ +return len; +} + +static int i915_joiner_open (struct inode *inode,struct file *file) +{ +return single_open (file, i915_joiner_show, inode->i_private); +} + +static const struct file_operations i915_joiner_fops = { + .owner =THIS_MODULE , + .open = i915_joiner_open, + .read = seq_read, + .llseek = seq_lseek, + .release = single_release, + .write = i915_joiner_write +}; +/** * intel_connector_debugfs_add - add i915 specific connector debugfs files * @connector: pointer to a registered intel_connector @@ -1553,8 +1620,8 @@ void intel_connector_debugfs_add(struct intel_connector *connector)if (DISPLAY_VER (i915) >=11 && (connector_type == DRM_MODE_CONNECTOR_DisplayPort || connector_type == DRM_MODE_CONNECTOR_eDP)) { -debugfs_create_bool ("i915_bigjoiner_force_enable" ,0644 , root, - &connector->force_bigjoiner_enable); +debugfs_create_file ("i915_joiner_force_enable" ,0644 , root, + connector, &i915_joiner_fops); } if (connector_type == DRM_MODE_CONNECTOR_DSI ||drivers/gpu/drm/i915/display/intel_display_types.h +0
-0
drivers/gpu/drm/i915/display/intel_display_types.h struct intel_hdcp { · line 493
Quoted 8 lines
drivers/gpu/drm/i915/display/intel_display_types.h +5
-0@@ -486,6 +486,12 @@ struct intel_hdcp {enum transcoder stream_transcoder; }; +enum intel_joiner_pipe_count { +INTEL_NONE_JOINER_PIPES =0 , +INTEL_BIG_JOINER_PIPES =2 , +INTEL_INVALID_JOINER_PIPES , +};
That just looks like obfuscation to me.
Just a bare number should do.
Quoted 28 lines
drivers/gpu/drm/i915/display/intel_display_types.h +2
-1+struct intel_connector {struct drm_connector base;/* @@ -524,7 +530,7 @@ struct intel_connector {struct intel_dp *mst_port; -bool force_bigjoiner_enable; +enum intel_joiner_pipe_count force_joined_pipes;struct {struct drm_dp_aux *dsc_decompression_aux;drivers/gpu/drm/i915/display/intel_dp.c +1
-1@@ -1271,7 +1271,7 @@ bool intel_dp_need_joiner(struct intel_dp *intel_dp,return false;return clock > i915->display.cdclk.max_dotclk_freq || hdisplay >5120 || - connector->force_bigjoiner_enable; + connector->force_joined_pipes ==INTEL_BIG_JOINER_PIPES ; }bool intel_dp_has_dsc (const struct intel_connector *connector)Signature · 1 line
2.45.2
Signature · 2 lines
Ville Syrjälä Intel
Re: [PATCH 01/14] drm/i915/display: Modify debugfs for joiner to force n pipes
Quoted 77 lines · Ville Syrjälä
Quoted 24 lines · Ankit Nautiyal
At the moment, the debugfs for joiner allows only to force enable/disable pipe joiner for 2 pipes. Modify it to force join 'n' number of pipes, where n is a valid pipe joiner configuration.
This will help in case of ultra joiner where 4 pipes are joined.v2:
-Fix commit message to state that only valid joiner config can be forced. (Suraj)
-Rename the identifiers to have INTEL_BIG/NONE_JOINER_PIPES. (Suraj)Signed-off-by Ankit Nautiyal <[email protected]>--- .../drm/i915/display/intel_display_debugfs.c | 71 ++++++++++++++++++- .../drm/i915/display/intel_display_types.h | 8 ++- drivers/gpu/drm/i915/display/intel_dp.c | 2 +- 3 files changed, 77 insertions(+), 4 deletions(-)drivers/gpu/drm/i915/display/intel_display_debugfs.c +0
-0@@ -1504,6 +1504,73 @@ static int intel_crtc_pipe_show(struct seq_file *m, void *unused) }DEFINE_SHOW_ATTRIBUTE (intel_crtc_pipe);drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1515
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +9
-0+static int i915_joiner_show (struct seq_file *m,void *data) +{ +struct intel_connector *connector = m->private; +struct drm_i915_private *i915 =to_i915 (connector->base.dev); +int ret; + + ret =drm_modeset_lock_single_interruptible (&i915->drm.mode_config.connection_mutex); +if (ret) +return ret;What does that lock do for us?
drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1517
Quoted 2 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +2
-0+ +seq_printf (m,"Force_joined_pipes: %d\n" , connector->force_joined_pipes);This should just be thae bare number. Adding other junk in there just complicates matters if anyone has to parse this.
Quoted 11 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +11
-0+ +drm_modeset_unlock (&i915->drm.mode_config.connection_mutex); + +return ret; +} + +static ssize_t i915_joiner_write (struct file *file, +const char __user *ubuf, +size_t len,loff_t *offp) +{ +struct seq_file *m = file->private_data;drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1538
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +10
-0+struct intel_connector *connector = m->private; +struct drm_i915_private *i915 =to_i915 (connector->base.dev); +int force_join_pipes =0 ; +int ret; + +if (len ==0 ) +return 0 ; + +drm_dbg (&i915->drm, +"Copied %zu bytes from user to force joiner\n" , len);Leftover debug junk.
drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1544
Quoted 6 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +6
-0+ + ret =kstrtoint_from_user (ubuf, len,0 , &force_join_pipes); +if (ret <0 ) +return ret; + +drm_dbg (&i915->drm,"Got %d for force joining pipes\n" , force_join_pipes);More.
Quoted 13 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1553
Quoted 9 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +9
-0+ +if (force_join_pipes <INTEL_NONE_JOINER_PIPES || + force_join_pipes >=INTEL_INVALID_JOINER_PIPES ) { +drm_dbg (&i915->drm,"Ignoring Invalid num of pipes %d for force joining\n" , + force_join_pipes); + connector->force_joined_pipes =INTEL_NONE_JOINER_PIPES ; + }else { + connector->force_joined_pipes = force_join_pipes; + }I think just something like
switch (num_pipes) {
case 0: /* or should 1 be the default? */
I suppose both 0 and 1 should be accepted. 0==not forced, 1==forced to exactly one pipe (ie. no joiner despite what the automagic logic is saying).
Quoted 9 lines
case 2:
case 4:break; default: bad; }should do for validation.
Signature · 2 lines
Ville Syrjälä Intel
Re: [PATCH 01/14] drm/i915/display: Modify debugfs for joiner to force n pipes
Quoted 86 lines · Ville Syrjälä
Quoted 73 lines · Ville Syrjälä
Quoted 24 lines · Ankit Nautiyal
At the moment, the debugfs for joiner allows only to force enable/disable pipe joiner for 2 pipes. Modify it to force join 'n' number of pipes, where n is a valid pipe joiner configuration.
This will help in case of ultra joiner where 4 pipes are joined.v2:
-Fix commit message to state that only valid joiner config can be forced. (Suraj)
-Rename the identifiers to have INTEL_BIG/NONE_JOINER_PIPES. (Suraj)Signed-off-by Ankit Nautiyal <[email protected]>--- .../drm/i915/display/intel_display_debugfs.c | 71 ++++++++++++++++++- .../drm/i915/display/intel_display_types.h | 8 ++- drivers/gpu/drm/i915/display/intel_dp.c | 2 +- 3 files changed, 77 insertions(+), 4 deletions(-)drivers/gpu/drm/i915/display/intel_display_debugfs.c +0
-0@@ -1504,6 +1504,73 @@ static int intel_crtc_pipe_show(struct seq_file *m, void *unused) }DEFINE_SHOW_ATTRIBUTE (intel_crtc_pipe);drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1515
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +9
-0+static int i915_joiner_show (struct seq_file *m,void *data) +{ +struct intel_connector *connector = m->private; +struct drm_i915_private *i915 =to_i915 (connector->base.dev); +int ret; + + ret =drm_modeset_lock_single_interruptible (&i915->drm.mode_config.connection_mutex); +if (ret) +return ret;What does that lock do for us?
drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1517
Quoted 2 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +2
-0+ +seq_printf (m,"Force_joined_pipes: %d\n" , connector->force_joined_pipes);This should just be thae bare number. Adding other junk in there just complicates matters if anyone has to parse this.
Quoted 11 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +11
-0+ +drm_modeset_unlock (&i915->drm.mode_config.connection_mutex); + +return ret; +} + +static ssize_t i915_joiner_write (struct file *file, +const char __user *ubuf, +size_t len,loff_t *offp) +{ +struct seq_file *m = file->private_data;drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1538
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +10
-0+struct intel_connector *connector = m->private; +struct drm_i915_private *i915 =to_i915 (connector->base.dev); +int force_join_pipes =0 ; +int ret; + +if (len ==0 ) +return 0 ; + +drm_dbg (&i915->drm, +"Copied %zu bytes from user to force joiner\n" , len);Leftover debug junk.
drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1544
Quoted 6 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +6
-0+ + ret =kstrtoint_from_user (ubuf, len,0 , &force_join_pipes); +if (ret <0 ) +return ret; + +drm_dbg (&i915->drm,"Got %d for force joining pipes\n" , force_join_pipes);More.
Quoted 12 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1553
Quoted 9 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +9
-0+ +if (force_join_pipes <INTEL_NONE_JOINER_PIPES || + force_join_pipes >=INTEL_INVALID_JOINER_PIPES ) { +drm_dbg (&i915->drm,"Ignoring Invalid num of pipes %d for force joining\n" , + force_join_pipes); + connector->force_joined_pipes =INTEL_NONE_JOINER_PIPES ; + }else { + connector->force_joined_pipes = force_join_pipes; + }I think just something like
switch (num_pipes) {
case 0: /* or should 1 be the default? */
Quoted 3 lines
I suppose both 0 and 1 should be accepted. 0==not forced, 1==forced to exactly one pipe (ie. no joiner despite what the automagic logic is saying).
I understand 0 as not forced. I didnt get the meaning of forcing to one pipe.
Does this mean, disable joiner? (Perhaps do not use joiner even for the cases where driver thinks joiner is required)
How should we handle the case in driver, where it is 1?
Regards,
Ankit
Quoted 10 lines
Quoted 10 lines
case 2:
case 4:break; default: bad; }should do for validation.
Re: [PATCH 01/14] drm/i915/display: Modify debugfs for joiner to force n pipes
Quoted 92 lines · Ankit K
Quoted 86 lines · Ville Syrjälä
Quoted 73 lines · Ville Syrjälä
Quoted 24 lines · Ankit Nautiyal
At the moment, the debugfs for joiner allows only to force enable/disable pipe joiner for 2 pipes. Modify it to force join 'n' number of pipes, where n is a valid pipe joiner configuration.
This will help in case of ultra joiner where 4 pipes are joined.v2:
-Fix commit message to state that only valid joiner config can be forced. (Suraj)
-Rename the identifiers to have INTEL_BIG/NONE_JOINER_PIPES. (Suraj)Signed-off-by Ankit Nautiyal <[email protected]>--- .../drm/i915/display/intel_display_debugfs.c | 71 ++++++++++++++++++- .../drm/i915/display/intel_display_types.h | 8 ++- drivers/gpu/drm/i915/display/intel_dp.c | 2 +- 3 files changed, 77 insertions(+), 4 deletions(-)drivers/gpu/drm/i915/display/intel_display_debugfs.c +0
-0@@ -1504,6 +1504,73 @@ static int intel_crtc_pipe_show(struct seq_file *m, void *unused) }DEFINE_SHOW_ATTRIBUTE (intel_crtc_pipe);drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1515
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +9
-0+static int i915_joiner_show (struct seq_file *m,void *data) +{ +struct intel_connector *connector = m->private; +struct drm_i915_private *i915 =to_i915 (connector->base.dev); +int ret; + + ret =drm_modeset_lock_single_interruptible (&i915->drm.mode_config.connection_mutex); +if (ret) +return ret;What does that lock do for us?
drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1517
Quoted 2 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +2
-0+ +seq_printf (m,"Force_joined_pipes: %d\n" , connector->force_joined_pipes);This should just be thae bare number. Adding other junk in there just complicates matters if anyone has to parse this.
Quoted 11 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +11
-0+ +drm_modeset_unlock (&i915->drm.mode_config.connection_mutex); + +return ret; +} + +static ssize_t i915_joiner_write (struct file *file, +const char __user *ubuf, +size_t len,loff_t *offp) +{ +struct seq_file *m = file->private_data;drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1538
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +10
-0+struct intel_connector *connector = m->private; +struct drm_i915_private *i915 =to_i915 (connector->base.dev); +int force_join_pipes =0 ; +int ret; + +if (len ==0 ) +return 0 ; + +drm_dbg (&i915->drm, +"Copied %zu bytes from user to force joiner\n" , len);Leftover debug junk.
drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1544
Quoted 6 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +6
-0+ + ret =kstrtoint_from_user (ubuf, len,0 , &force_join_pipes); +if (ret <0 ) +return ret; + +drm_dbg (&i915->drm,"Got %d for force joining pipes\n" , force_join_pipes);More.
Quoted 12 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1553
Quoted 9 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +9
-0+ +if (force_join_pipes <INTEL_NONE_JOINER_PIPES || + force_join_pipes >=INTEL_INVALID_JOINER_PIPES ) { +drm_dbg (&i915->drm,"Ignoring Invalid num of pipes %d for force joining\n" , + force_join_pipes); + connector->force_joined_pipes =INTEL_NONE_JOINER_PIPES ; + }else { + connector->force_joined_pipes = force_join_pipes; + }I think just something like
switch (num_pipes) {
case 0: /* or should 1 be the default? */Quoted 3 lines
I suppose both 0 and 1 should be accepted. 0==not forced, 1==forced to exactly one pipe (ie. no joiner despite what the automagic logic is saying).
Quoted 7 lines
I understand 0 as not forced. I didnt get the meaning of forcing to one pipe.
Does this mean, disable joiner? (Perhaps do not use joiner even for the cases where driver thinks joiner is required)
How should we handle the case in driver, where it is 1?
Whatever code that determines how many pipes will should:
1) if the override is non-zero just use it
2) otherwise determine the number by using whatever logic is appropriate
Quoted 16 lines
Regards,
Ankit
Quoted 10 lines
Quoted 10 lines
case 2:
case 4:break; default: bad; }should do for validation.
Signature · 2 lines
Ville Syrjälä Intel
Re: [PATCH 01/14] drm/i915/display: Modify debugfs for joiner to force n pipes
Quoted 94 lines · Ville Syrjälä
Quoted 93 lines · Ankit K
Quoted 86 lines · Ville Syrjälä
Quoted 73 lines · Ville Syrjälä
Quoted 24 lines · Ankit Nautiyal
At the moment, the debugfs for joiner allows only to force enable/disable pipe joiner for 2 pipes. Modify it to force join 'n' number of pipes, where n is a valid pipe joiner configuration.
This will help in case of ultra joiner where 4 pipes are joined.v2:
-Fix commit message to state that only valid joiner config can be forced. (Suraj)
-Rename the identifiers to have INTEL_BIG/NONE_JOINER_PIPES. (Suraj)Signed-off-by Ankit Nautiyal <[email protected]>--- .../drm/i915/display/intel_display_debugfs.c | 71 ++++++++++++++++++- .../drm/i915/display/intel_display_types.h | 8 ++- drivers/gpu/drm/i915/display/intel_dp.c | 2 +- 3 files changed, 77 insertions(+), 4 deletions(-)drivers/gpu/drm/i915/display/intel_display_debugfs.c +0
-0@@ -1504,6 +1504,73 @@ static int intel_crtc_pipe_show(struct seq_file *m, void *unused) }DEFINE_SHOW_ATTRIBUTE (intel_crtc_pipe);drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1515
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +9
-0+static int i915_joiner_show (struct seq_file *m,void *data) +{ +struct intel_connector *connector = m->private; +struct drm_i915_private *i915 =to_i915 (connector->base.dev); +int ret; + + ret =drm_modeset_lock_single_interruptible (&i915->drm.mode_config.connection_mutex); +if (ret) +return ret;What does that lock do for us?
drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1517
Quoted 2 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +2
-0+ +seq_printf (m,"Force_joined_pipes: %d\n" , connector->force_joined_pipes);This should just be thae bare number. Adding other junk in there just complicates matters if anyone has to parse this.
Quoted 11 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +11
-0+ +drm_modeset_unlock (&i915->drm.mode_config.connection_mutex); + +return ret; +} + +static ssize_t i915_joiner_write (struct file *file, +const char __user *ubuf, +size_t len,loff_t *offp) +{ +struct seq_file *m = file->private_data;drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1538
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +10
-0+struct intel_connector *connector = m->private; +struct drm_i915_private *i915 =to_i915 (connector->base.dev); +int force_join_pipes =0 ; +int ret; + +if (len ==0 ) +return 0 ; + +drm_dbg (&i915->drm, +"Copied %zu bytes from user to force joiner\n" , len);Leftover debug junk.
drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1544
Quoted 6 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +6
-0+ + ret =kstrtoint_from_user (ubuf, len,0 , &force_join_pipes); +if (ret <0 ) +return ret; + +drm_dbg (&i915->drm,"Got %d for force joining pipes\n" , force_join_pipes);More.
Quoted 12 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1553
Quoted 9 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +9
-0+ +if (force_join_pipes <INTEL_NONE_JOINER_PIPES || + force_join_pipes >=INTEL_INVALID_JOINER_PIPES ) { +drm_dbg (&i915->drm,"Ignoring Invalid num of pipes %d for force joining\n" , + force_join_pipes); + connector->force_joined_pipes =INTEL_NONE_JOINER_PIPES ; + }else { + connector->force_joined_pipes = force_join_pipes; + }I think just something like
switch (num_pipes) {
case 0: /* or should 1 be the default? */Quoted 3 lines
I suppose both 0 and 1 should be accepted. 0==not forced, 1==forced to exactly one pipe (ie. no joiner despite what the automagic logic is saying).
I understand 0 as not forced. I didnt get the meaning of forcing to one pipe.
Quoted 8 lines
Quoted 4 lines
Does this mean, disable joiner? (Perhaps do not use joiner even for the cases where driver thinks joiner is required)
How should we handle the case in driver, where it is 1?
Whatever code that determines how many pipes will should:
1) if the override is non-zero just use it
2) otherwise determine the number by using whatever logic is appropriate
Alright, If I get correctly the driver logic will be something like:
int intel_dp_compute_joiner_pipes(struct intel_dp *intel_dp, struct intel_connector *connector, int hdisplay, int clock) {
int num_joined_pipes = 0;
switch (connector->force_joined_pipes) {
case 1:
num_joined_pipes = connector->force_joined_pipes; break;
case 2:
if (intel_dp_has_joiner(intel_dp))
num_joined_pipes = connector->force_joined_pipes; break;
default:
MISSING_CASE(connector->force_joined_pipes); fallthrough;
case 0:
if (intel_dp_has_joiner(intel_dp) && intel_dp_needs_bigjoiner(intel_dp, connector, hdisplay, clock)) num_joined_pipes = 2;
}
return num_joined_pipes;
}
With a value of 1 we are kind of forcing to not use joiner.
Currently for testing sent this to trybot: https://patchwork.freedesktop.org/patch/613627/?series=138444&rev=1
Regards,
Ankit
Quoted 15 lines
Quoted 15 lines
Regards,
Ankit
Quoted 9 lines
Quoted 9 lines
case 2:
case 4:break; default: bad; }should do for validation.
Re: [PATCH 01/14] drm/i915/display: Modify debugfs for joiner to force n pipes
Quoted 106 lines · Ankit K
Quoted 94 lines · Ville Syrjälä
Quoted 93 lines · Ankit K
Quoted 86 lines · Ville Syrjälä
Quoted 73 lines · Ville Syrjälä
Quoted 24 lines · Ankit Nautiyal
At the moment, the debugfs for joiner allows only to force enable/disable pipe joiner for 2 pipes. Modify it to force join 'n' number of pipes, where n is a valid pipe joiner configuration.
This will help in case of ultra joiner where 4 pipes are joined.v2:
-Fix commit message to state that only valid joiner config can be forced. (Suraj)
-Rename the identifiers to have INTEL_BIG/NONE_JOINER_PIPES. (Suraj)Signed-off-by Ankit Nautiyal <[email protected]>--- .../drm/i915/display/intel_display_debugfs.c | 71 ++++++++++++++++++- .../drm/i915/display/intel_display_types.h | 8 ++- drivers/gpu/drm/i915/display/intel_dp.c | 2 +- 3 files changed, 77 insertions(+), 4 deletions(-)drivers/gpu/drm/i915/display/intel_display_debugfs.c +0
-0@@ -1504,6 +1504,73 @@ static int intel_crtc_pipe_show(struct seq_file *m, void *unused) }DEFINE_SHOW_ATTRIBUTE (intel_crtc_pipe);drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1515
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +9
-0+static int i915_joiner_show (struct seq_file *m,void *data) +{ +struct intel_connector *connector = m->private; +struct drm_i915_private *i915 =to_i915 (connector->base.dev); +int ret; + + ret =drm_modeset_lock_single_interruptible (&i915->drm.mode_config.connection_mutex); +if (ret) +return ret;What does that lock do for us?
drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1517
Quoted 2 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +2
-0+ +seq_printf (m,"Force_joined_pipes: %d\n" , connector->force_joined_pipes);This should just be thae bare number. Adding other junk in there just complicates matters if anyone has to parse this.
Quoted 11 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +11
-0+ +drm_modeset_unlock (&i915->drm.mode_config.connection_mutex); + +return ret; +} + +static ssize_t i915_joiner_write (struct file *file, +const char __user *ubuf, +size_t len,loff_t *offp) +{ +struct seq_file *m = file->private_data;drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1538
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +10
-0+struct intel_connector *connector = m->private; +struct drm_i915_private *i915 =to_i915 (connector->base.dev); +int force_join_pipes =0 ; +int ret; + +if (len ==0 ) +return 0 ; + +drm_dbg (&i915->drm, +"Copied %zu bytes from user to force joiner\n" , len);Leftover debug junk.
drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1544
Quoted 6 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +6
-0+ + ret =kstrtoint_from_user (ubuf, len,0 , &force_join_pipes); +if (ret <0 ) +return ret; + +drm_dbg (&i915->drm,"Got %d for force joining pipes\n" , force_join_pipes);More.
Quoted 12 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1553
Quoted 9 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +9
-0+ +if (force_join_pipes <INTEL_NONE_JOINER_PIPES || + force_join_pipes >=INTEL_INVALID_JOINER_PIPES ) { +drm_dbg (&i915->drm,"Ignoring Invalid num of pipes %d for force joining\n" , + force_join_pipes); + connector->force_joined_pipes =INTEL_NONE_JOINER_PIPES ; + }else { + connector->force_joined_pipes = force_join_pipes; + }I think just something like
switch (num_pipes) {
case 0: /* or should 1 be the default? */Quoted 3 lines
I suppose both 0 and 1 should be accepted. 0==not forced, 1==forced to exactly one pipe (ie. no joiner despite what the automagic logic is saying).
I understand 0 as not forced. I didnt get the meaning of forcing to one pipe.
Quoted 8 lines
Quoted 4 lines
Does this mean, disable joiner? (Perhaps do not use joiner even for the cases where driver thinks joiner is required)
How should we handle the case in driver, where it is 1?
Whatever code that determines how many pipes will should:
1) if the override is non-zero just use it
2) otherwise determine the number by using whatever logic is appropriate
Quoted 7 lines
Alright, If I get correctly the driver logic will be something like:
int intel_dp_compute_joiner_pipes(struct
intel_dp*intel_dp,
structintel_connector*connector, int hdisplay, int clock)
{
intnum_joined_pipes= 0;
This variable looks redundant. You can just directly return the correct number from the switch statement.
Quoted 4 lines
switch (
connector->force_joined_pipes) {
case 1:
num_joined_pipes=connector->force_joined_pipes;
This would now return 1, which is probably a value we never want to return from here. Either that or we want to never return 0 (which this code would do in some of the other cases). Not sure which way is better tbh.
Quoted 4 lines
break;
case 2:
if (intel_dp_has_joiner(intel_dp))num_joined_pipes=connector->force_joined_pipes;
Hmm. We might want to make the debugfs knob already reject the !has_joiner case so that the user won't even be allowed to pick a completely unsupported value.
Quoted 38 lines
break;
default:
MISSING_CASE(connector->force_joined_pipes); fallthrough;
case 0:
if (intel_dp_has_joiner(intel_dp)&& intel_dp_needs_bigjoiner(intel_dp, connector,
hdisplay, clock))
num_joined_pipes= 2;
}return
num_joined_pipes;
}With a value of 1 we are kind of forcing to not use joiner.
Currently for testing sent this to trybot:
https://patchwork.freedesktop.org/patch/613627/?series=138444&rev=1Regards,
Ankit
Quoted 15 lines
Quoted 15 lines
Regards,
Ankit
Quoted 9 lines
Quoted 9 lines
case 2:
case 4:break; default: bad; }should do for validation.
Signature · 2 lines
Ville Syrjälä Intel
Re: [PATCH 01/14] drm/i915/display: Modify debugfs for joiner to force n pipes
Quoted 107 lines · Ville Syrjälä
Quoted 106 lines · Ankit K
Quoted 94 lines · Ville Syrjälä
Quoted 93 lines · Ankit K
Quoted 86 lines · Ville Syrjälä
Quoted 73 lines · Ville Syrjälä
Quoted 24 lines · Ankit Nautiyal
At the moment, the debugfs for joiner allows only to force enable/disable pipe joiner for 2 pipes. Modify it to force join 'n' number of pipes, where n is a valid pipe joiner configuration.
This will help in case of ultra joiner where 4 pipes are joined.v2:
-Fix commit message to state that only valid joiner config can be forced. (Suraj)
-Rename the identifiers to have INTEL_BIG/NONE_JOINER_PIPES. (Suraj)Signed-off-by Ankit Nautiyal <[email protected]>--- .../drm/i915/display/intel_display_debugfs.c | 71 ++++++++++++++++++- .../drm/i915/display/intel_display_types.h | 8 ++- drivers/gpu/drm/i915/display/intel_dp.c | 2 +- 3 files changed, 77 insertions(+), 4 deletions(-)drivers/gpu/drm/i915/display/intel_display_debugfs.c +0
-0@@ -1504,6 +1504,73 @@ static int intel_crtc_pipe_show(struct seq_file *m, void *unused) }DEFINE_SHOW_ATTRIBUTE (intel_crtc_pipe);drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1515
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +9
-0+static int i915_joiner_show (struct seq_file *m,void *data) +{ +struct intel_connector *connector = m->private; +struct drm_i915_private *i915 =to_i915 (connector->base.dev); +int ret; + + ret =drm_modeset_lock_single_interruptible (&i915->drm.mode_config.connection_mutex); +if (ret) +return ret;What does that lock do for us?
drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1517
Quoted 2 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +2
-0+ +seq_printf (m,"Force_joined_pipes: %d\n" , connector->force_joined_pipes);This should just be thae bare number. Adding other junk in there just complicates matters if anyone has to parse this.
Quoted 11 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +11
-0+ +drm_modeset_unlock (&i915->drm.mode_config.connection_mutex); + +return ret; +} + +static ssize_t i915_joiner_write (struct file *file, +const char __user *ubuf, +size_t len,loff_t *offp) +{ +struct seq_file *m = file->private_data;drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1538
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +10
-0+struct intel_connector *connector = m->private; +struct drm_i915_private *i915 =to_i915 (connector->base.dev); +int force_join_pipes =0 ; +int ret; + +if (len ==0 ) +return 0 ; + +drm_dbg (&i915->drm, +"Copied %zu bytes from user to force joiner\n" , len);Leftover debug junk.
drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1544
Quoted 6 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +6
-0+ + ret =kstrtoint_from_user (ubuf, len,0 , &force_join_pipes); +if (ret <0 ) +return ret; + +drm_dbg (&i915->drm,"Got %d for force joining pipes\n" , force_join_pipes);More.
Quoted 12 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1553
Quoted 9 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +9
-0+ +if (force_join_pipes <INTEL_NONE_JOINER_PIPES || + force_join_pipes >=INTEL_INVALID_JOINER_PIPES ) { +drm_dbg (&i915->drm,"Ignoring Invalid num of pipes %d for force joining\n" , + force_join_pipes); + connector->force_joined_pipes =INTEL_NONE_JOINER_PIPES ; + }else { + connector->force_joined_pipes = force_join_pipes; + }I think just something like
switch (num_pipes) {
case 0: /* or should 1 be the default? */Quoted 3 lines
I suppose both 0 and 1 should be accepted. 0==not forced, 1==forced to exactly one pipe (ie. no joiner despite what the automagic logic is saying).
I understand 0 as not forced. I didnt get the meaning of forcing to one pipe.
Quoted 8 lines
Quoted 4 lines
Does this mean, disable joiner? (Perhaps do not use joiner even for the cases where driver thinks joiner is required)
How should we handle the case in driver, where it is 1?
Whatever code that determines how many pipes will should:
1) if the override is non-zero just use it
2) otherwise determine the number by using whatever logic is appropriateAlright, If I get correctly the driver logic will be something like:
Quoted 7 lines
Quoted 5 lines
int intel_dp_compute_joiner_pipes(struct
intel_dp*intel_dp,
structintel_connector*connector, int hdisplay, int clock)
{
intnum_joined_pipes= 0;This variable looks redundant. You can just directly return the correct number from the switch statement.
Yeah I was inititally going with that, but changed later. Will remove this.
Quoted 8 lines
Quoted 4 lines
switch (connector->force_joined_pipes) { case 1: num_joined_pipes = connector->force_joined_pipes;This would now return 1, which is probably a value we never want to return from here. Either that or we want to never return 0 (which this code would do in some of the other cases). Not sure which way is better tbh.
Currently I have coded to not allow 0, so we would return 1, 2, or 4 from here.
But I am open to what ever makes semantics intuitive, and handling easier.
Quoted 8 lines
Quoted 5 lines
break; case 2: if (intel_dp_has_joiner(intel_dp)) num_joined_pipes = connector->force_joined_pipes;Hmm. We might want to make the debugfs knob already reject the !has_joiner case so that the user won't even be allowed to pick a completely unsupported value.
Alright, will have this checked in the function where we parse.
Thanks,
Ankit
Quoted 37 lines
Quoted 37 lines
break;
default:
MISSING_CASE(connector->force_joined_pipes); fallthrough;
case 0:
if (intel_dp_has_joiner(intel_dp)&& intel_dp_needs_bigjoiner(intel_dp, connector,
hdisplay, clock))
num_joined_pipes= 2;
}return
num_joined_pipes;
}With a value of 1 we are kind of forcing to not use joiner.
Currently for testing sent this to trybot:
https://patchwork.freedesktop.org/patch/613627/?series=138444&rev=1Regards,
Ankit
Quoted 13 lines
Quoted 13 lines
Regards,
Ankit
Quoted 9 lines
Quoted 9 lines
case 2:
case 4:break; default: bad; }should do for validation.
Re: [PATCH 01/14] drm/i915/display: Modify debugfs for joiner to force n pipes
Quoted 128 lines · Ankit K
Quoted 107 lines · Ville Syrjälä
Quoted 106 lines · Ankit K
Quoted 94 lines · Ville Syrjälä
Quoted 93 lines · Ankit K
Quoted 86 lines · Ville Syrjälä
Quoted 73 lines · Ville Syrjälä
Quoted 24 lines · Ankit Nautiyal
At the moment, the debugfs for joiner allows only to force enable/disable pipe joiner for 2 pipes. Modify it to force join 'n' number of pipes, where n is a valid pipe joiner configuration.
This will help in case of ultra joiner where 4 pipes are joined.v2:
-Fix commit message to state that only valid joiner config can be forced. (Suraj)
-Rename the identifiers to have INTEL_BIG/NONE_JOINER_PIPES. (Suraj)Signed-off-by Ankit Nautiyal <[email protected]>--- .../drm/i915/display/intel_display_debugfs.c | 71 ++++++++++++++++++- .../drm/i915/display/intel_display_types.h | 8 ++- drivers/gpu/drm/i915/display/intel_dp.c | 2 +- 3 files changed, 77 insertions(+), 4 deletions(-)drivers/gpu/drm/i915/display/intel_display_debugfs.c +0
-0@@ -1504,6 +1504,73 @@ static int intel_crtc_pipe_show(struct seq_file *m, void *unused) }DEFINE_SHOW_ATTRIBUTE (intel_crtc_pipe);drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1515
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +9
-0+static int i915_joiner_show (struct seq_file *m,void *data) +{ +struct intel_connector *connector = m->private; +struct drm_i915_private *i915 =to_i915 (connector->base.dev); +int ret; + + ret =drm_modeset_lock_single_interruptible (&i915->drm.mode_config.connection_mutex); +if (ret) +return ret;What does that lock do for us?
drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1517
Quoted 2 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +2
-0+ +seq_printf (m,"Force_joined_pipes: %d\n" , connector->force_joined_pipes);This should just be thae bare number. Adding other junk in there just complicates matters if anyone has to parse this.
Quoted 11 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +11
-0+ +drm_modeset_unlock (&i915->drm.mode_config.connection_mutex); + +return ret; +} + +static ssize_t i915_joiner_write (struct file *file, +const char __user *ubuf, +size_t len,loff_t *offp) +{ +struct seq_file *m = file->private_data;drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1538
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +10
-0+struct intel_connector *connector = m->private; +struct drm_i915_private *i915 =to_i915 (connector->base.dev); +int force_join_pipes =0 ; +int ret; + +if (len ==0 ) +return 0 ; + +drm_dbg (&i915->drm, +"Copied %zu bytes from user to force joiner\n" , len);Leftover debug junk.
drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1544
Quoted 6 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +6
-0+ + ret =kstrtoint_from_user (ubuf, len,0 , &force_join_pipes); +if (ret <0 ) +return ret; + +drm_dbg (&i915->drm,"Got %d for force joining pipes\n" , force_join_pipes);More.
Quoted 12 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1553
Quoted 9 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +9
-0+ +if (force_join_pipes <INTEL_NONE_JOINER_PIPES || + force_join_pipes >=INTEL_INVALID_JOINER_PIPES ) { +drm_dbg (&i915->drm,"Ignoring Invalid num of pipes %d for force joining\n" , + force_join_pipes); + connector->force_joined_pipes =INTEL_NONE_JOINER_PIPES ; + }else { + connector->force_joined_pipes = force_join_pipes; + }I think just something like
switch (num_pipes) {
case 0: /* or should 1 be the default? */Quoted 3 lines
I suppose both 0 and 1 should be accepted. 0==not forced, 1==forced to exactly one pipe (ie. no joiner despite what the automagic logic is saying).
I understand 0 as not forced. I didnt get the meaning of forcing to one pipe.
Quoted 8 lines
Quoted 4 lines
Does this mean, disable joiner? (Perhaps do not use joiner even for the cases where driver thinks joiner is required)
How should we handle the case in driver, where it is 1?
Whatever code that determines how many pipes will should:
1) if the override is non-zero just use it
2) otherwise determine the number by using whatever logic is appropriateAlright, If I get correctly the driver logic will be something like:
Quoted 7 lines
Quoted 5 lines
int intel_dp_compute_joiner_pipes(struct
intel_dp*intel_dp,
structintel_connector*connector, int hdisplay, int clock)
{
intnum_joined_pipes= 0;This variable looks redundant. You can just directly return the correct number from the switch statement.
Yeah I was inititally going with that, but changed later. Will remove this.
Quoted 8 lines
Quoted 4 lines
switch (connector->force_joined_pipes) { case 1: num_joined_pipes = connector->force_joined_pipes;This would now return 1, which is probably a value we never want to return from here. Either that or we want to never return 0 (which this code would do in some of the other cases). Not sure which way is better tbh.
Quoted 4 lines
Currently I have coded to not allow 0, so we would return 1, 2, or 4 from here.
But I am open to what ever makes semantics intuitive, and handling easier.
I guess 1,2,4 makes sense as we can just pass that into eg. intel_mode_valid_max_plane_size() (though we need to update all its other callers to pass a hardcoded 1 as well).
Just have to take care to not accidentally populate crtc_state->joiner_pipes when num_pipes==1 (unless we rework all the other places to do the right thing when there's just one bit set in that bitmask).
Signature · 2 lines
Ville Syrjälä Intel
Re: [PATCH 01/14] drm/i915/display: Modify debugfs for joiner to force n pipes
In reply to Ville SyrjäläHi Ville,
Thanks for the comments and suggestions. Will remove the extra things that are not required.
Please my response inline:
Quoted 26 lines · Ville Syrjälä
Quoted 25 lines · Ankit Nautiyal
At the moment, the debugfs for joiner allows only to force enable/disable pipe joiner for 2 pipes. Modify it to force join 'n' number of pipes, where n is a valid pipe joiner configuration.
This will help in case of ultra joiner where 4 pipes are joined.v2:
-Fix commit message to state that only valid joiner config can be forced. (Suraj)
-Rename the identifiers to have INTEL_BIG/NONE_JOINER_PIPES. (Suraj)Signed-off-by Ankit Nautiyal <[email protected]>--- .../drm/i915/display/intel_display_debugfs.c | 71 ++++++++++++++++++- .../drm/i915/display/intel_display_types.h | 8 ++- drivers/gpu/drm/i915/display/intel_dp.c | 2 +- 3 files changed, 77 insertions(+), 4 deletions(-)drivers/gpu/drm/i915/display/intel_display_debugfs.c +0
-0@@ -1504,6 +1504,73 @@ static int intel_crtc_pipe_show(struct seq_file *m, void *unused) }DEFINE_SHOW_ATTRIBUTE (intel_crtc_pipe);
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1515
Quoted 9 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +9
-0+static int i915_joiner_show (struct seq_file *m,void *data) +{ +struct intel_connector *connector = m->private; +struct drm_i915_private *i915 =to_i915 (connector->base.dev); +int ret; + + ret =drm_modeset_lock_single_interruptible (&i915->drm.mode_config.connection_mutex); +if (ret) +return ret;What does that lock do for us?
This might be leftover from other debugfs, I'll remove this.
Quoted 5 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1517
Quoted 3 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +2
-0+ +seq_printf (m,"Force_joined_pipes: %d\n" , connector->force_joined_pipes);This should just be thae bare number. Adding other junk in there just complicates matters if anyone has to parse this.
Alright, will just have the number (force joined pipes).
Quoted 15 lines
Quoted 15 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +14
-0+ +drm_modeset_unlock (&i915->drm.mode_config.connection_mutex); + +return ret; +} + +static ssize_t i915_joiner_write (struct file *file, +const char __user *ubuf, +size_t len,loff_t *offp) +{ +struct seq_file *m = file->private_data; +struct intel_connector *connector = m->private; +struct drm_i915_private *i915 =to_i915 (connector->base.dev); +int force_join_pipes =0 ;
Quoted 8 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1538
Quoted 7 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +7
-0+int ret; + +if (len ==0 ) +return 0 ; + +drm_dbg (&i915->drm, +"Copied %zu bytes from user to force joiner\n" , len);Leftover debug junk.
Will remove this.
Quoted 8 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1544
Quoted 7 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +6
-0+ + ret =kstrtoint_from_user (ubuf, len,0 , &force_join_pipes); +if (ret <0 ) +return ret; + +drm_dbg (&i915->drm,"Got %d for force joining pipes\n" , force_join_pipes);More.
Will get rid of this.
Quoted 69 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1553
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +9
-0+ +if (force_join_pipes <INTEL_NONE_JOINER_PIPES || + force_join_pipes >=INTEL_INVALID_JOINER_PIPES ) { +drm_dbg (&i915->drm,"Ignoring Invalid num of pipes %d for force joining\n" , + force_join_pipes); + connector->force_joined_pipes =INTEL_NONE_JOINER_PIPES ; + }else { + connector->force_joined_pipes = force_join_pipes; + }I think just something like
switch (num_pipes) {
case 0: /* or should 1 be the default? */
case 2:
case 4:break; default: bad; }should do for validation.
drivers/gpu/drm/i915/display/intel_display_debugfs.c static int intel_crtc_pipe_show(struct seq_file *m, void *unused) · line 1555
Quoted 2 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +2
-0+ + *offp += len;I don't suppose there's any kind of helper for creating a debugfs file with a standard type, with some kind of caller specified validation function? Would avoid having to hand roll all this read syscall cruft for what is a fairly common usecase...
Quoted 40 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +20
-2+ +return len; +} + +static int i915_joiner_open (struct inode *inode,struct file *file) +{ +return single_open (file, i915_joiner_show, inode->i_private); +} + +static const struct file_operations i915_joiner_fops = { + .owner =THIS_MODULE , + .open = i915_joiner_open, + .read = seq_read, + .llseek = seq_lseek, + .release = single_release, + .write = i915_joiner_write +}; +/** * intel_connector_debugfs_add - add i915 specific connector debugfs files * @connector: pointer to a registered intel_connector @@ -1553,8 +1620,8 @@ void intel_connector_debugfs_add(struct intel_connector *connector)if (DISPLAY_VER (i915) >=11 && (connector_type == DRM_MODE_CONNECTOR_DisplayPort || connector_type == DRM_MODE_CONNECTOR_eDP)) { -debugfs_create_bool ("i915_bigjoiner_force_enable" ,0644 , root, - &connector->force_bigjoiner_enable); +debugfs_create_file ("i915_joiner_force_enable" ,0644 , root, + connector, &i915_joiner_fops); } if (connector_type == DRM_MODE_CONNECTOR_DSI ||drivers/gpu/drm/i915/display/intel_display_types.h +0
-0@@ -486,6 +486,12 @@ struct intel_hdcp {enum transcoder stream_transcoder; };
Quoted 7 lines
drivers/gpu/drm/i915/display/intel_display_types.h struct intel_hdcp { · line 493
Quoted 5 lines
drivers/gpu/drm/i915/display/intel_display_types.h +5
-0+enum intel_joiner_pipe_count { +INTEL_NONE_JOINER_PIPES =0 , +INTEL_BIG_JOINER_PIPES =2 , +INTEL_INVALID_JOINER_PIPES , +};That just looks like obfuscation to me.
Just a bare number should do.
I was thinking to use these in rest of the places to avoid magic numbers, but if it makes it unreadable, I can do away with this.
Thanks & regards,
Ankit
Quoted 29 lines
Quoted 29 lines
drivers/gpu/drm/i915/display/intel_display_types.h +2
-1+struct intel_connector {struct drm_connector base;/* @@ -524,7 +530,7 @@ struct intel_connector {struct intel_dp *mst_port; -bool force_bigjoiner_enable; +enum intel_joiner_pipe_count force_joined_pipes;struct {struct drm_dp_aux *dsc_decompression_aux;drivers/gpu/drm/i915/display/intel_dp.c +1
-1@@ -1271,7 +1271,7 @@ bool intel_dp_need_joiner(struct intel_dp *intel_dp,return false;return clock > i915->display.cdclk.max_dotclk_freq || hdisplay >5120 || - connector->force_bigjoiner_enable; + connector->force_joined_pipes ==INTEL_BIG_JOINER_PIPES ; }bool intel_dp_has_dsc (const struct intel_connector *connector)Signature · 1 line
2.45.2
PATCH 2/14 drm/i915/display: Use joined pipes in intel_dp_joiner_needs_dsc
In reply to Ankit NautiyalIn preparation of ultrajoiner, use number of joined pipes in the intel_dp_joiner_needs_dsc helper, instead of joiner flag.
--- drivers/gpu/drm/i915/display/intel_display.c | 2 +- drivers/gpu/drm/i915/display/intel_display.h | 2 ++ drivers/gpu/drm/i915/display/intel_dp.c | 18 +++++++++++++----- drivers/gpu/drm/i915/display/intel_dp.h | 4 +++- drivers/gpu/drm/i915/display/intel_dp_mst.c | 13 ++++++++++--- 5 files changed, 29 insertions(+), 10 deletions(-)
drivers/gpu/drm/i915/display/intel_display.c +1 -1
@@ -278,7 +278,7 @@ bool intel_crtc_is_joiner_primary(const struct intel_crtc_state *crtc_state) crtc->pipe ==joiner_primary_pipe (crtc_state); } -static int intel_joiner_num_pipes (const struct intel_crtc_state *crtc_state) +int intel_joiner_num_pipes (const struct intel_crtc_state *crtc_state) {return hweight8 (crtc_state->joiner_pipes); }
drivers/gpu/drm/i915/display/intel_display.h +2 -0
@@ -587,4 +587,6 @@ bool assert_port_valid(struct drm_i915_private *i915, enum port port);bool intel_scanout_needs_vtd_wa (struct drm_i915_private *i915); +int intel_joiner_num_pipes (const struct intel_crtc_state *crtc_state); +#endif
drivers/gpu/drm/i915/display/intel_dp.c +13 -5
@@ -1309,6 +1309,7 @@ intel_dp_mode_valid(struct drm_connector *_connector,u8 dsc_slice_count =0 ;enum drm_mode_status status;bool dsc = false, joiner = false; +enum intel_joiner_pipe_count joined_pipes =INTEL_NONE_JOINER_PIPES ; status =intel_cpu_transcoder_mode_valid (dev_priv, mode);if (status !=MODE_OK )
@@ -1332,7 +1333,8 @@ intel_dp_mode_valid(struct drm_connector *_connector,if (intel_dp_need_joiner (intel_dp, connector, mode->hdisplay, target_clock)) { joiner = true; - max_dotclk *=2 ; + joined_pipes =INTEL_BIG_JOINER_PIPES ; + max_dotclk *=INTEL_BIG_JOINER_PIPES ; }if (target_clock > max_dotclk)return MODE_CLOCK_HIGH ;
@@ -1390,7 +1392,7 @@ intel_dp_mode_valid(struct drm_connector *_connector, dsc = dsc_max_compressed_bpp && dsc_slice_count; } -if (intel_dp_joiner_needs_dsc (dev_priv, joiner) && !dsc) +if (intel_dp_joiner_needs_dsc (dev_priv, joined_pipes) && !dsc)return MODE_CLOCK_HIGH ;if (mode_rate > max_rate && !dsc)
@@ -2498,14 +2500,15 @@ int intel_dp_config_required_rate(const struct intel_crtc_state *crtc_state)return intel_dp_link_required (adjusted_mode->crtc_clock, bpp); } -bool intel_dp_joiner_needs_dsc (struct drm_i915_private *i915,bool use_joiner) +bool intel_dp_joiner_needs_dsc (struct drm_i915_private *i915, +enum intel_joiner_pipe_count joined_pipes) {/* * Pipe joiner needs compression up to display 12 due to bandwidth * limitation. DG2 onwards pipe joiner can be enabled without * compression. */ -return DISPLAY_VER (i915) <13 && use_joiner; +return DISPLAY_VER (i915) <13 && (joined_pipes ==INTEL_BIG_JOINER_PIPES ); } static int
@@ -2523,6 +2526,7 @@ intel_dp_compute_link_config(struct intel_encoder *encoder,struct intel_dp *intel_dp =enc_to_intel_dp (encoder);struct link_config_limits limits;bool dsc_needed, joiner_needs_dsc; +enum intel_joiner_pipe_count joined_pipes;int ret =0 ; if (pipe_config->fec_enable &&
@@ -2534,7 +2538,11 @@ intel_dp_compute_link_config(struct intel_encoder *encoder, adjusted_mode->crtc_clock)) pipe_config->joiner_pipes =GENMASK (crtc->pipe +1 , crtc->pipe); - joiner_needs_dsc =intel_dp_joiner_needs_dsc (i915, pipe_config->joiner_pipes); + joined_pipes =intel_joiner_num_pipes (pipe_config); +if (joined_pipes >=INTEL_INVALID_JOINER_PIPES ) +drm_warn (&i915->drm,"Invalid joined pipes : %d\n" , joined_pipes); + + joiner_needs_dsc =intel_dp_joiner_needs_dsc (i915, joined_pipes); dsc_needed = joiner_needs_dsc || intel_dp->force_dsc_en || !intel_dp_compute_config_limits(intel_dp, pipe_config,
drivers/gpu/drm/i915/display/intel_dp.h +3 -1
@@ -8,6 +8,7 @@#include <linux/types.h> +enum intel_joiner_pipe_count ;enum intel_output_format ;enum pipe ;enum port ;
@@ -123,7 +124,8 @@ int intel_dp_effective_data_rate(int pixel_clock, int bpp_x16, int bw_overhead);int intel_dp_max_link_data_rate (struct intel_dp *intel_dp,int max_dprx_rate,int max_dprx_lanes); -bool intel_dp_joiner_needs_dsc (struct drm_i915_private *i915,bool use_joiner); +bool intel_dp_joiner_needs_dsc (struct drm_i915_private *i915, +enum intel_joiner_pipe_count joined_pipes);bool intel_dp_has_joiner (struct intel_dp *intel_dp);bool intel_dp_needs_vsc_sdp (const struct intel_crtc_state *crtc_state,const struct drm_connector_state *conn_state);
drivers/gpu/drm/i915/display/intel_dp_mst.c +10 -3
@@ -568,6 +568,7 @@ static int intel_dp_mst_compute_config(struct intel_encoder *encoder, &pipe_config->hw.adjusted_mode;struct link_config_limits limits;bool dsc_needed, joiner_needs_dsc; +enum intel_joiner_pipe_count joined_pipes;int ret =0 ; if (pipe_config->fec_enable &&
@@ -586,7 +587,11 @@ static int intel_dp_mst_compute_config(struct intel_encoder *encoder, pipe_config->output_format =INTEL_OUTPUT_FORMAT_RGB ; pipe_config->has_pch_encoder = false; - joiner_needs_dsc =intel_dp_joiner_needs_dsc (dev_priv, pipe_config->joiner_pipes); + joined_pipes =intel_joiner_num_pipes (pipe_config); +if (joined_pipes >=INTEL_INVALID_JOINER_PIPES ) +drm_warn (&dev_priv->drm,"Invalid joined pipes : %d\n" , joined_pipes); + + joiner_needs_dsc =intel_dp_joiner_needs_dsc (dev_priv, joined_pipes); dsc_needed = joiner_needs_dsc || intel_dp->force_dsc_en || !intel_dp_mst_compute_config_limits(intel_dp,
@@ -1426,6 +1431,7 @@ intel_dp_mst_mode_valid_ctx(struct drm_connector *connector,u16 dsc_max_compressed_bpp =0 ;u8 dsc_slice_count =0 ;int target_clock = mode->clock; +enum intel_joiner_pipe_count joined_pipes =INTEL_NONE_JOINER_PIPES ;if (drm_connector_is_unregistered (connector)) { *status =MODE_ERROR ;
@@ -1468,7 +1474,8 @@ intel_dp_mst_mode_valid_ctx(struct drm_connector *connector,if (intel_dp_need_joiner (intel_dp, intel_connector, mode->hdisplay, target_clock)) { joiner = true; - max_dotclk *=2 ; + joined_pipes =INTEL_BIG_JOINER_PIPES ; + max_dotclk *=INTEL_BIG_JOINER_PIPES ; } ret =drm_modeset_lock (&mgr->base.lock, ctx);
@@ -1508,7 +1515,7 @@ intel_dp_mst_mode_valid_ctx(struct drm_connector *connector, dsc = dsc_max_compressed_bpp && dsc_slice_count; } -if (intel_dp_joiner_needs_dsc (dev_priv, joiner) && !dsc) { +if (intel_dp_joiner_needs_dsc (dev_priv, joined_pipes) && !dsc) { *status =MODE_CLOCK_HIGH ;return 0 ; }
Signature · 1 line
2.45.2
PATCH 3/14 drm/i915/display: Use joined pipes in intel_mode_valid_max_plane_size
In reply to Ankit NautiyalIn preparation of ultrajoiner, use number of joined pipes in the intel_mode_valid_max_plane_size helper, instead of joiner flag.
--- drivers/gpu/drm/i915/display/intel_display.c | 4 ++-- drivers/gpu/drm/i915/display/intel_display.h | 3 ++- drivers/gpu/drm/i915/display/intel_dp.c | 2 +- drivers/gpu/drm/i915/display/intel_dp_mst.c | 2 +- drivers/gpu/drm/i915/display/intel_dsi.c | 2 +- drivers/gpu/drm/i915/display/intel_hdmi.c | 2 +- 6 files changed, 8 insertions(+), 7 deletions(-)
drivers/gpu/drm/i915/display/intel_display.c +2 -2
@@ -8088,7 +8088,7 @@ enum drm_mode_status intel_cpu_transcoder_mode_valid(struct drm_i915_private *deenum drm_mode_status intel_mode_valid_max_plane_size (struct drm_i915_private *dev_priv,const struct drm_display_mode *mode, -bool joiner) +enum intel_joiner_pipe_count joined_pipes) {int plane_width_max, plane_height_max;
@@ -8105,7 +8105,7 @@ intel_mode_valid_max_plane_size(struct drm_i915_private *dev_priv,* too big for that. */ if (DISPLAY_VER (dev_priv) >=11 ) { - plane_width_max =5120 << joiner; + plane_width_max =5120 << joined_pipes /2 ; plane_height_max =4320 ; }else { plane_width_max =5120 ;
drivers/gpu/drm/i915/display/intel_display.h +2 -1
@@ -31,6 +31,7 @@#include "intel_display_limits.h" enum drm_scaling_filter ; +enum intel_joiner_pipe_count ;struct dpll ;struct drm_atomic_state ;struct drm_connector ;
@@ -415,7 +416,7 @@ u32 intel_plane_fb_max_stride(struct drm_i915_private *dev_priv,enum drm_mode_status intel_mode_valid_max_plane_size (struct drm_i915_private *dev_priv,const struct drm_display_mode *mode, -bool joiner); +enum intel_joiner_pipe_count joined_pipes);enum drm_mode_status intel_cpu_transcoder_mode_valid (struct drm_i915_private *i915,const struct drm_display_mode *mode);
drivers/gpu/drm/i915/display/intel_dp.c +1 -1
@@ -1402,7 +1402,7 @@ intel_dp_mode_valid(struct drm_connector *_connector,if (status !=MODE_OK )return status; -return intel_mode_valid_max_plane_size (dev_priv, mode, joiner); +return intel_mode_valid_max_plane_size (dev_priv, mode, joined_pipes); }bool intel_dp_source_supports_tps3 (struct drm_i915_private *i915)
drivers/gpu/drm/i915/display/intel_dp_mst.c +1 -1
@@ -1525,7 +1525,7 @@ intel_dp_mst_mode_valid_ctx(struct drm_connector *connector,return 0 ; } - *status =intel_mode_valid_max_plane_size (dev_priv, mode, joiner); + *status =intel_mode_valid_max_plane_size (dev_priv, mode, joined_pipes);return 0 ; }
drivers/gpu/drm/i915/display/intel_dsi.c +1 -1
@@ -76,7 +76,7 @@ enum drm_mode_status intel_dsi_mode_valid(struct drm_connector *connector,if (fixed_mode->clock > max_dotclk)return MODE_CLOCK_HIGH ; -return intel_mode_valid_max_plane_size (dev_priv, mode, false); +return intel_mode_valid_max_plane_size (dev_priv, mode,INTEL_NONE_JOINER_PIPES ); } struct intel_dsi_host *intel_dsi_host_init(struct intel_dsi *intel_dsi,
drivers/gpu/drm/i915/display/intel_hdmi.c +1 -1
@@ -2057,7 +2057,7 @@ intel_hdmi_mode_valid(struct drm_connector *connector,return status; } -return intel_mode_valid_max_plane_size (dev_priv, mode, false); +return intel_mode_valid_max_plane_size (dev_priv, mode,INTEL_NONE_JOINER_PIPES ); } bool intel_hdmi_bpc_possible(const struct intel_crtc_state *crtc_state,
Signature · 1 line
2.45.2
Re: [PATCH 03/14] drm/i915/display: Use joined pipes in intel_mode_valid_max_plane_size
Quoted 19 lines · Ankit Nautiyal
In preparation of ultrajoiner, use number of joined pipes in the
intel_mode_valid_max_plane_sizehelper, instead of joiner flag.Signed-off-by Ankit Nautiyal <[email protected]>Reviewed-by Suraj Kandpal <[email protected]>--- drivers/gpu/drm/i915/display/intel_display.c | 4 ++-- drivers/gpu/drm/i915/display/intel_display.h | 3 ++- drivers/gpu/drm/i915/display/intel_dp.c | 2 +- drivers/gpu/drm/i915/display/intel_dp_mst.c | 2 +- drivers/gpu/drm/i915/display/intel_dsi.c | 2 +- drivers/gpu/drm/i915/display/intel_hdmi.c | 2 +- 6 files changed, 8 insertions(+), 7 deletions(-)drivers/gpu/drm/i915/display/intel_display.c +0
-0
drivers/gpu/drm/i915/display/intel_display.c enum drm_mode_status intel_cpu_transcoder_mode_valid(struct drm_i915_private *de · line 8091
Quoted 5 lines
drivers/gpu/drm/i915/display/intel_display.c +1
-1@@ -8088,7 +8088,7 @@ enum drm_mode_status intel_cpu_transcoder_mode_valid(struct drm_i915_private *deenum drm_mode_status intel_mode_valid_max_plane_size (struct drm_i915_private *dev_priv,const struct drm_display_mode *mode, -bool joiner) +enum intel_joiner_pipe_count joined_pipes)
Make that 'int num_joined_pipes' everywhere and I think the results will be far less confusing.
drivers/gpu/drm/i915/display/intel_display.c intel_mode_valid_max_plane_size(struct drm_i915_private *dev_priv, · line 8108
Quoted 9 lines
drivers/gpu/drm/i915/display/intel_display.c +1
-1{int plane_width_max, plane_height_max;@@ -8105,7 +8105,7 @@ intel_mode_valid_max_plane_size(struct drm_i915_private *dev_priv,* too big for that. */ if (DISPLAY_VER (dev_priv) >=11 ) { - plane_width_max =5120 << joiner; + plane_width_max =5120 << joined_pipes /2 ;
5120 * num_joined_pipes
Quoted 78 lines
drivers/gpu/drm/i915/display/intel_display.c +0
-0plane_height_max =4320 ; }else { plane_width_max =5120 ;drivers/gpu/drm/i915/display/intel_display.h +2
-1@@ -31,6 +31,7 @@#include "intel_display_limits.h" enum drm_scaling_filter ; +enum intel_joiner_pipe_count ;struct dpll ;struct drm_atomic_state ;struct drm_connector ;@@ -415,7 +416,7 @@ u32 intel_plane_fb_max_stride(struct drm_i915_private *dev_priv,enum drm_mode_status intel_mode_valid_max_plane_size (struct drm_i915_private *dev_priv,const struct drm_display_mode *mode, -bool joiner); +enum intel_joiner_pipe_count joined_pipes);enum drm_mode_status intel_cpu_transcoder_mode_valid (struct drm_i915_private *i915,const struct drm_display_mode *mode);drivers/gpu/drm/i915/display/intel_dp.c +1
-1@@ -1402,7 +1402,7 @@ intel_dp_mode_valid(struct drm_connector *_connector,if (status !=MODE_OK )return status; -return intel_mode_valid_max_plane_size (dev_priv, mode, joiner); +return intel_mode_valid_max_plane_size (dev_priv, mode, joined_pipes); }bool intel_dp_source_supports_tps3 (struct drm_i915_private *i915)drivers/gpu/drm/i915/display/intel_dp_mst.c +1
-1@@ -1525,7 +1525,7 @@ intel_dp_mst_mode_valid_ctx(struct drm_connector *connector,return 0 ; } - *status =intel_mode_valid_max_plane_size (dev_priv, mode, joiner); + *status =intel_mode_valid_max_plane_size (dev_priv, mode, joined_pipes);return 0 ; }drivers/gpu/drm/i915/display/intel_dsi.c +1
-1@@ -76,7 +76,7 @@ enum drm_mode_status intel_dsi_mode_valid(struct drm_connector *connector,if (fixed_mode->clock > max_dotclk)return MODE_CLOCK_HIGH ; -return intel_mode_valid_max_plane_size (dev_priv, mode, false); +return intel_mode_valid_max_plane_size (dev_priv, mode,INTEL_NONE_JOINER_PIPES ); } struct intel_dsi_host *intel_dsi_host_init(struct intel_dsi *intel_dsi,drivers/gpu/drm/i915/display/intel_hdmi.c +1
-1@@ -2057,7 +2057,7 @@ intel_hdmi_mode_valid(struct drm_connector *connector,return status; } -return intel_mode_valid_max_plane_size (dev_priv, mode, false); +return intel_mode_valid_max_plane_size (dev_priv, mode,INTEL_NONE_JOINER_PIPES ); } bool intel_hdmi_bpc_possible(const struct intel_crtc_state *crtc_state,Signature · 1 line
2.45.2
Signature · 2 lines
Ville Syrjälä Intel
Re: [PATCH 03/14] drm/i915/display: Use joined pipes in intel_mode_valid_max_plane_size
Quoted 15 lines · Ville Syrjälä
Quoted 14 lines · Ankit Nautiyal
In preparation of ultrajoiner, use number of joined pipes in the
intel_mode_valid_max_plane_sizehelper, instead of joiner flag.Signed-off-by Ankit Nautiyal <[email protected]>Reviewed-by Suraj Kandpal <[email protected]>--- drivers/gpu/drm/i915/display/intel_display.c | 4 ++-- drivers/gpu/drm/i915/display/intel_display.h | 3 ++- drivers/gpu/drm/i915/display/intel_dp.c | 2 +- drivers/gpu/drm/i915/display/intel_dp_mst.c | 2 +- drivers/gpu/drm/i915/display/intel_dsi.c | 2 +- drivers/gpu/drm/i915/display/intel_hdmi.c | 2 +- 6 files changed, 8 insertions(+), 7 deletions(-)
Quoted 12 lines
drivers/gpu/drm/i915/display/intel_display.c enum drm_mode_status intel_cpu_transcoder_mode_valid(struct drm_i915_private *de · line 8091
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display.c +1
-1@@ -8088,7 +8088,7 @@ enum drm_mode_status intel_cpu_transcoder_mode_valid(struct drm_i915_private *deenum drm_mode_status intel_mode_valid_max_plane_size (struct drm_i915_private *dev_priv,const struct drm_display_mode *mode, -bool joiner) +enum intel_joiner_pipe_count joined_pipes)Make that 'int
num_joined_pipes' everywhere and I think the results will be far less confusing.
Got it will, as mentioned earlier, will get rid of this enum.
Quoted 11 lines
drivers/gpu/drm/i915/display/intel_display.c intel_mode_valid_max_plane_size(struct drm_i915_private *dev_priv, · line 8108
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display.c +1
-1{int plane_width_max, plane_height_max;@@ -8105,7 +8105,7 @@ intel_mode_valid_max_plane_size(struct drm_i915_private *dev_priv,* too big for that. */ if (DISPLAY_VER (dev_priv) >=11 ) { - plane_width_max =5120 << joiner; + plane_width_max =5120 << joined_pipes /2 ;5120 *
num_joined_pipes
Will simplify this, as suggested.
Thanks & Regards,
Ankit
Quoted 79 lines
Quoted 79 lines
drivers/gpu/drm/i915/display/intel_display.c +0
-0plane_height_max =4320 ; }else { plane_width_max =5120 ;drivers/gpu/drm/i915/display/intel_display.h +2
-1@@ -31,6 +31,7 @@#include "intel_display_limits.h" enum drm_scaling_filter ; +enum intel_joiner_pipe_count ;struct dpll ;struct drm_atomic_state ;struct drm_connector ;@@ -415,7 +416,7 @@ u32 intel_plane_fb_max_stride(struct drm_i915_private *dev_priv,enum drm_mode_status intel_mode_valid_max_plane_size (struct drm_i915_private *dev_priv,const struct drm_display_mode *mode, -bool joiner); +enum intel_joiner_pipe_count joined_pipes);enum drm_mode_status intel_cpu_transcoder_mode_valid (struct drm_i915_private *i915,const struct drm_display_mode *mode);drivers/gpu/drm/i915/display/intel_dp.c +1
-1@@ -1402,7 +1402,7 @@ intel_dp_mode_valid(struct drm_connector *_connector,if (status !=MODE_OK )return status; -return intel_mode_valid_max_plane_size (dev_priv, mode, joiner); +return intel_mode_valid_max_plane_size (dev_priv, mode, joined_pipes); }bool intel_dp_source_supports_tps3 (struct drm_i915_private *i915)drivers/gpu/drm/i915/display/intel_dp_mst.c +1
-1@@ -1525,7 +1525,7 @@ intel_dp_mst_mode_valid_ctx(struct drm_connector *connector,return 0 ; } - *status =intel_mode_valid_max_plane_size (dev_priv, mode, joiner); + *status =intel_mode_valid_max_plane_size (dev_priv, mode, joined_pipes);return 0 ; }drivers/gpu/drm/i915/display/intel_dsi.c +1
-1@@ -76,7 +76,7 @@ enum drm_mode_status intel_dsi_mode_valid(struct drm_connector *connector,if (fixed_mode->clock > max_dotclk)return MODE_CLOCK_HIGH ; -return intel_mode_valid_max_plane_size (dev_priv, mode, false); +return intel_mode_valid_max_plane_size (dev_priv, mode,INTEL_NONE_JOINER_PIPES ); } struct intel_dsi_host *intel_dsi_host_init(struct intel_dsi *intel_dsi,drivers/gpu/drm/i915/display/intel_hdmi.c +1
-1@@ -2057,7 +2057,7 @@ intel_hdmi_mode_valid(struct drm_connector *connector,return status; } -return intel_mode_valid_max_plane_size (dev_priv, mode, false); +return intel_mode_valid_max_plane_size (dev_priv, mode,INTEL_NONE_JOINER_PIPES ); } bool intel_hdmi_bpc_possible(const struct intel_crtc_state *crtc_state,Signature · 1 line
2.45.2
PATCH 4/14 drm/i915/display: Use joined pipes in dsc helpers for slices, bpp
In reply to Ankit NautiyalIn preparation of ultrajoiner, use number of joined pipes in the dsc helpers to compute dsc slices and max compressed bpp, instead of using the joiner flag.
--- drivers/gpu/drm/i915/display/intel_dp.c | 27 +++++++++++---------- drivers/gpu/drm/i915/display/intel_dp.h | 4 +-- drivers/gpu/drm/i915/display/intel_dp_mst.c | 11 +++++---- 3 files changed, 22 insertions(+), 20 deletions(-)
drivers/gpu/drm/i915/display/intel_dp.c +14 -13
@@ -859,14 +859,14 @@ u32 intel_dp_dsc_nearest_valid_bpp(struct drm_i915_private *i915, u32 bpp, u32 pstatic u32 get_max_compressed_bpp_with_joiner (struct drm_i915_private *i915,u32 mode_clock,u32 mode_hdisplay, -bool bigjoiner) +enum intel_joiner_pipe_count joined_pipes) {u32 max_bpp_small_joiner_ram;/* Small Joiner Check: output bpp <= joiner RAM (bits) / Horiz. width */ max_bpp_small_joiner_ram =small_joiner_ram_size_bits (i915) / mode_hdisplay; -if (bigjoiner) { +if (joined_pipes ==INTEL_BIG_JOINER_PIPES ) {int bigjoiner_interface_bits =DISPLAY_VER (i915) >=14 ?36 :24 ;/* With bigjoiner multiple dsc engines are used in parallel so PPC is 2 */ int ppc =2 ;
@@ -885,7 +885,7 @@ u32 get_max_compressed_bpp_with_joiner(struct drm_i915_private *i915,u16 intel_dp_dsc_get_max_compressed_bpp (struct drm_i915_private *i915,u32 link_clock,u32 lane_count,u32 mode_clock,u32 mode_hdisplay, -bool bigjoiner, +enum intel_joiner_pipe_count joined_pipes,enum intel_output_format output_format,u32 pipe_bpp,u32 timeslots)
@@ -931,7 +931,7 @@ u16 intel_dp_dsc_get_max_compressed_bpp(struct drm_i915_private *i915, intel_dp_mode_to_fec_clock(mode_clock)); joiner_max_bpp =get_max_compressed_bpp_with_joiner (i915, mode_clock, - mode_hdisplay, bigjoiner); + mode_hdisplay, joined_pipes); bits_per_pixel =min (bits_per_pixel, joiner_max_bpp); bits_per_pixel =intel_dp_dsc_nearest_valid_bpp (i915, bits_per_pixel, pipe_bpp);
@@ -941,7 +941,7 @@ u16 intel_dp_dsc_get_max_compressed_bpp(struct drm_i915_private *i915,u8 intel_dp_dsc_get_slice_count (const struct intel_connector *connector,int mode_clock,int mode_hdisplay, -bool bigjoiner) +enum intel_joiner_pipe_count joined_pipes) {struct drm_i915_private *i915 =to_i915 (connector->base.dev);u8 min_slice_count, i;
@@ -975,14 +975,14 @@ u8 intel_dp_dsc_get_slice_count(const struct intel_connector *connector,/* Find the closest match to the valid slice count values */ for (i =0 ; i <ARRAY_SIZE (valid_dsc_slicecount); i++) { -u8 test_slice_count = valid_dsc_slicecount[i] << bigjoiner; +u8 test_slice_count = valid_dsc_slicecount[i] << (joined_pipes /2 );if (test_slice_count >drm_dp_dsc_sink_max_slice_count (connector->dp.dsc_dpcd, false))break ;/* big joiner needs small joiner to be enabled */ -if (bigjoiner && test_slice_count <4 ) +if (joined_pipes ==INTEL_BIG_JOINER_PIPES && test_slice_count <4 )continue ;if (min_slice_count <= test_slice_count)
@@ -1308,7 +1308,7 @@ intel_dp_mode_valid(struct drm_connector *_connector,u16 dsc_max_compressed_bpp =0 ;u8 dsc_slice_count =0 ;enum drm_mode_status status; -bool dsc = false, joiner = false; +bool dsc = false;enum intel_joiner_pipe_count joined_pipes =INTEL_NONE_JOINER_PIPES ; status =intel_cpu_transcoder_mode_valid (dev_priv, mode);
@@ -1332,7 +1332,6 @@ intel_dp_mode_valid(struct drm_connector *_connector,if (intel_dp_need_joiner (intel_dp, connector, mode->hdisplay, target_clock)) { - joiner = true; joined_pipes =INTEL_BIG_JOINER_PIPES ; max_dotclk *=INTEL_BIG_JOINER_PIPES ; }
@@ -1379,14 +1378,14 @@ intel_dp_mode_valid(struct drm_connector *_connector, max_lanes, target_clock, mode->hdisplay, - joiner, + joined_pipes, output_format, pipe_bpp, 64); dsc_slice_count =intel_dp_dsc_get_slice_count (connector, target_clock, mode->hdisplay, - joiner); + joined_pipes); } dsc = dsc_max_compressed_bpp && dsc_slice_count;
@@ -2102,6 +2101,7 @@ static int dsc_compute_compressed_bpp(struct intel_dp *intel_dp,int dsc_src_min_bpp, dsc_sink_min_bpp, dsc_min_bpp;int dsc_src_max_bpp, dsc_sink_max_bpp, dsc_max_bpp;int dsc_joiner_max_bpp; +int joined_pipes =intel_joiner_num_pipes (pipe_config); dsc_src_min_bpp =dsc_src_min_compressed_bpp (); dsc_sink_min_bpp =intel_dp_dsc_sink_min_compressed_bpp (pipe_config);
@@ -2116,7 +2116,7 @@ static int dsc_compute_compressed_bpp(struct intel_dp *intel_dp, dsc_joiner_max_bpp =get_max_compressed_bpp_with_joiner (i915, adjusted_mode->clock, adjusted_mode->hdisplay, - pipe_config->joiner_pipes); + joined_pipes); dsc_max_bpp =min (dsc_max_bpp, dsc_joiner_max_bpp); dsc_max_bpp =min (dsc_max_bpp,fxp_q4_to_int (limits->link.max_bpp_x16));
@@ -2301,6 +2301,7 @@ int intel_dp_dsc_compute_config(struct intel_dp *intel_dp,to_intel_connector (conn_state->connector);const struct drm_display_mode *adjusted_mode = &pipe_config->hw.adjusted_mode; +int joined_pipes =intel_joiner_num_pipes (pipe_config);int ret; pipe_config->fec_enable = pipe_config->fec_enable ||
@@ -2350,7 +2351,7 @@ int intel_dp_dsc_compute_config(struct intel_dp *intel_dp,intel_dp_dsc_get_slice_count (connector, adjusted_mode->crtc_clock, adjusted_mode->crtc_hdisplay, - pipe_config->joiner_pipes); + joined_pipes);if (!dsc_dp_slice_count) {drm_dbg_kms (&dev_priv->drm,"Compressed Slice Count not supported\n" );
drivers/gpu/drm/i915/display/intel_dp.h +2 -2
@@ -144,7 +144,7 @@ int intel_dp_dsc_compute_max_bpp(const struct intel_connector *connector,u16 intel_dp_dsc_get_max_compressed_bpp (struct drm_i915_private *i915,u32 link_clock,u32 lane_count,u32 mode_clock,u32 mode_hdisplay, -bool bigjoiner, +enum intel_joiner_pipe_count joined_pipes,enum intel_output_format output_format,u32 pipe_bpp,u32 timeslots);
@@ -154,7 +154,7 @@ int intel_dp_dsc_sink_max_compressed_bpp(const struct intel_connector *connector int bpc);u8 intel_dp_dsc_get_slice_count (const struct intel_connector *connector,int mode_clock,int mode_hdisplay, -bool bigjoiner); +enum intel_joiner_pipe_count joined_pipes);bool intel_dp_need_joiner (struct intel_dp *intel_dp,struct intel_connector *connector,int hdisplay,int clock);
drivers/gpu/drm/i915/display/intel_dp_mst.c +6 -5
@@ -102,11 +102,13 @@ static int intel_dp_mst_bw_overhead(const struct intel_crtc_state *crtc_state, flags |= crtc_state->fec_enable ?DRM_DP_BW_OVERHEAD_FEC :0 ;if (dsc) { +int joined_pipes =intel_joiner_num_pipes (crtc_state); + flags |=DRM_DP_BW_OVERHEAD_DSC ; dsc_slice_count =intel_dp_dsc_get_slice_count (connector, adjusted_mode->clock, adjusted_mode->hdisplay, - crtc_state->joiner_pipes); + joined_pipes); } overhead = drm_dp_bw_overhead(crtc_state->lane_count,
@@ -1427,7 +1429,7 @@ intel_dp_mst_mode_valid_ctx(struct drm_connector *connector,int max_dotclk =to_i915 (connector->dev)->display.cdclk.max_dotclk_freq;int max_rate, mode_rate, max_lanes, max_link_clock;int ret; -bool dsc = false, joiner = false; +bool dsc = false;u16 dsc_max_compressed_bpp =0 ;u8 dsc_slice_count =0 ;int target_clock = mode->clock;
@@ -1473,7 +1475,6 @@ intel_dp_mst_mode_valid_ctx(struct drm_connector *connector,*/ if (intel_dp_need_joiner (intel_dp, intel_connector, mode->hdisplay, target_clock)) { - joiner = true; joined_pipes =INTEL_BIG_JOINER_PIPES ; max_dotclk *=INTEL_BIG_JOINER_PIPES ; }
@@ -1502,14 +1503,14 @@ intel_dp_mst_mode_valid_ctx(struct drm_connector *connector, max_lanes, target_clock, mode->hdisplay, - joiner, + joined_pipes,INTEL_OUTPUT_FORMAT_RGB , pipe_bpp, 64); dsc_slice_count =intel_dp_dsc_get_slice_count (intel_connector, target_clock, mode->hdisplay, - joiner); + joined_pipes); } dsc = dsc_max_compressed_bpp && dsc_slice_count;
Signature · 1 line
2.45.2
PATCH 5/14 drm/i915: Add some essential functionality for joiners
In reply to Ankit NautiyalFrom: Stanislav Lisovskiy <[email protected]>
In most of the cases we now try to avoid mentioning things like "bigjoiner" or "ultrajoiner" trying to unify the API and refer mostly to all this functionality as "joiner".
In majority cases that should be way to go.
However in some cases we still need to distinguish between bigjoiner primaries and secondaries(such as DSC register programming).
Create correspondent helper functions and start using them, in order be prepared for adding ultrajoiner functionality.
v2: Fixed checkpatch warnings (Ankit)
v3: Introduce ultrajoiner helpers in next patch.
--- .../gpu/drm/i915/display/intel_atomic_plane.c | 2 +- drivers/gpu/drm/i915/display/intel_display.c | 52 +++++++++++++++++-- drivers/gpu/drm/i915/display/intel_display.h | 6 ++- .../drm/i915/display/intel_modeset_verify.c | 2 +- drivers/gpu/drm/i915/display/intel_vdsc.c | 4 +- 5 files changed, 56 insertions(+), 10 deletions(-)
drivers/gpu/drm/i915/display/intel_atomic_plane.c +1 -1
@@ -725,7 +725,7 @@ int intel_plane_atomic_check(struct intel_atomic_state *state,if (new_crtc_state &&intel_crtc_is_joiner_secondary (new_crtc_state)) {struct intel_crtc *primary_crtc = -intel_primary_crtc (new_crtc_state); +intel_joiner_primary_crtc (new_crtc_state);struct intel_plane *primary_crtc_plane =intel_crtc_get_plane (primary_crtc, plane->id);
drivers/gpu/drm/i915/display/intel_display.c +48 -4
82 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_display.h +4 -2
@@ -424,10 +424,12 @@ enum phy intel_port_to_phy(struct drm_i915_private *i915, enum port port);bool is_trans_port_sync_mode (const struct intel_crtc_state *state);bool is_trans_port_sync_master (const struct intel_crtc_state *state);u8 intel_crtc_joined_pipe_mask (const struct intel_crtc_state *crtc_state); -bool intel_crtc_is_joiner_secondary (const struct intel_crtc_state *crtc_state);bool intel_crtc_is_joiner_primary (const struct intel_crtc_state *crtc_state); +bool intel_crtc_is_joiner_secondary (const struct intel_crtc_state *crtc_state); +bool intel_crtc_is_bigjoiner_primary (const struct intel_crtc_state *crtc_state); +bool intel_crtc_is_bigjoiner_secondary (const struct intel_crtc_state *crtc_state);u8 intel_crtc_joiner_secondary_pipes (const struct intel_crtc_state *crtc_state); -struct intel_crtc *intel_primary_crtc (const struct intel_crtc_state *crtc_state); +struct intel_crtc *intel_joiner_primary_crtc (const struct intel_crtc_state *crtc_state);bool intel_crtc_get_pipe_config (struct intel_crtc_state *crtc_state); bool intel_pipe_config_compare(const struct intel_crtc_state *current_config, const struct intel_crtc_state *pipe_config,
drivers/gpu/drm/i915/display/intel_modeset_verify.c +1 -1
@@ -193,7 +193,7 @@ verify_crtc_state(struct intel_atomic_state *state,"transitional active state does not match atomic hw state (expected %i, found %i)\n" , sw_crtc_state->hw.active, crtc->active); - primary_crtc =intel_primary_crtc (sw_crtc_state); + primary_crtc =intel_joiner_primary_crtc (sw_crtc_state);for_each_encoder_on_crtc (dev, &primary_crtc->base, encoder) {enum pipe pipe;
drivers/gpu/drm/i915/display/intel_vdsc.c +2 -2
@@ -742,7 +742,7 @@ void intel_uncompressed_joiner_enable(const struct intel_crtc_state *crtc_state)u32 dss_ctl1_val =0 ;if (crtc_state->joiner_pipes && !crtc_state->dsc.compression_enable) { -if (intel_crtc_is_joiner_secondary (crtc_state)) +if (intel_crtc_is_bigjoiner_secondary (crtc_state)) dss_ctl1_val |=UNCOMPRESSED_JOINER_SECONDARY ;else dss_ctl1_val |=UNCOMPRESSED_JOINER_PRIMARY ;
@@ -771,7 +771,7 @@ void intel_dsc_enable(const struct intel_crtc_state *crtc_state) }if (crtc_state->joiner_pipes) { dss_ctl1_val |=BIG_JOINER_ENABLE ; -if (!intel_crtc_is_joiner_secondary (crtc_state)) +if (intel_crtc_is_bigjoiner_primary (crtc_state)) dss_ctl1_val |=PRIMARY_BIG_JOINER_ENABLE ; }intel_de_write (dev_priv,dss_ctl1_reg (crtc, crtc_state->cpu_transcoder), dss_ctl1_val);
Signature · 1 line
2.45.2
Re: [PATCH 05/14] drm/i915: Add some essential functionality for joiners
Quoted 60 lines · Ankit Nautiyal
From: Stanislav Lisovskiy <[email protected]>
In most of the cases we now try to avoid mentioning things like "bigjoiner" or "ultrajoiner" trying to unify the API and refer mostly to all this functionality as "joiner".
In majority cases that should be way to go.
However in some cases we still need to distinguish between bigjoiner primaries and secondaries(such as DSC register programming).Create correspondent helper functions and start using them, in order be prepared for adding ultrajoiner functionality.
v2: Fixed checkpatch warnings (Ankit)
v3: Introduce ultrajoiner helpers in next patch.Signed-off-by Stanislav Lisovskiy <[email protected]>Signed-off-by Ankit Nautiyal <[email protected]>--- .../gpu/drm/i915/display/intel_atomic_plane.c | 2 +- drivers/gpu/drm/i915/display/intel_display.c | 52 +++++++++++++++++-- drivers/gpu/drm/i915/display/intel_display.h | 6 ++- .../drm/i915/display/intel_modeset_verify.c | 2 +- drivers/gpu/drm/i915/display/intel_vdsc.c | 4 +- 5 files changed, 56 insertions(+), 10 deletions(-)drivers/gpu/drm/i915/display/intel_atomic_plane.c +1
-1@@ -725,7 +725,7 @@ int intel_plane_atomic_check(struct intel_atomic_state *state,if (new_crtc_state &&intel_crtc_is_joiner_secondary (new_crtc_state)) {struct intel_crtc *primary_crtc = -intel_primary_crtc (new_crtc_state); +intel_joiner_primary_crtc (new_crtc_state);struct intel_plane *primary_crtc_plane =intel_crtc_get_plane (primary_crtc, plane->id);drivers/gpu/drm/i915/display/intel_display.c +14
-0@@ -254,6 +254,50 @@ static enum pipe joiner_primary_pipe(const struct intel_crtc_state *crtc_state)return ffs (crtc_state->joiner_pipes) -1 ; } +static bool intel_is_joiner (const struct intel_crtc_state *crtc_state) +{ +return intel_joiner_num_pipes (crtc_state) >1 ; +} + +static u8 bigjoiner_primary_pipes (const struct intel_crtc_state *crtc_state) +{ +int lsb =ffs (crtc_state->joiner_pipes) -1 ; +int msb =fls (crtc_state->joiner_pipes) -1 ; +int i; +u8 bigjoiner_primary_mask =0 ; + +for (i = lsb; i < msb; i +=4 ) { +/*
drivers/gpu/drm/i915/display/intel_display.c static enum pipe joiner_primary_pipe(const struct intel_crtc_state *crtc_state) · line 280
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display.c +10
-0+* Regardless of how joiner_pipes mask is set, currently +* we always assume, that primary pipe bit goes before secondary +* pipe bit. So in each set of 2 bits, least significant bit is +* bigjoiner primary pipe and most significant bit is secondary pipe. +*/ + bigjoiner_primary_mask |= + ((BIT (0 ) |BIT (2 )) << i) & crtc_state->joiner_pipes; + } + +return bigjoiner_primary_mask;
This seems needlessly complicated.
Something like this?
return crtc_state->joiner_pipes & (0b01010101 << joiner_primary_pipe(crtc_state))
Quoted 33 lines
drivers/gpu/drm/i915/display/intel_display.c +21
-1+} + +bool intel_crtc_is_bigjoiner_primary (const struct intel_crtc_state *crtc_state) +{ +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc); + +if (!intel_is_joiner (crtc_state)) +return false; + +return BIT (crtc->pipe) &bigjoiner_primary_pipes (crtc_state); +} + +bool intel_crtc_is_bigjoiner_secondary (const struct intel_crtc_state *crtc_state) +{ +if (!intel_is_joiner (crtc_state)) +return false; + +return !intel_crtc_is_bigjoiner_primary (crtc_state); +} +u8 intel_crtc_joiner_secondary_pipes (const struct intel_crtc_state *crtc_state) {if (crtc_state->joiner_pipes)@@ -290,7 +334,7 @@ u8 intel_crtc_joined_pipe_mask(const struct intel_crtc_state *crtc_state)return BIT (crtc->pipe) | crtc_state->joiner_pipes; } -struct intel_crtc *intel_primary_crtc (const struct intel_crtc_state *crtc_state) +struct intel_crtc *intel_joiner_primary_crtc (const struct intel_crtc_state *crtc_state) {struct intel_display *display =to_intel_display (crtc_state);
drivers/gpu/drm/i915/display/intel_display.c intel_get_crtc_new_encoder(const struct intel_atomic_state *state, · line 857
Quoted 5 lines
drivers/gpu/drm/i915/display/intel_display.c +1
-1@@ -810,7 +854,7 @@ intel_get_crtc_new_encoder(const struct intel_atomic_state *state,int num_encoders =0 ;int i; - primary_crtc =intel_primary_crtc (crtc_state); + primary_crtc =intel_joiner_primary_crtc (crtc_state);
That rename seems unrelated to the rest of the patch.
Quoted 77 lines
drivers/gpu/drm/i915/display/intel_display.c +2
-2for_each_new_connector_in_state (&state->base, connector, connector_state, i) {if (connector_state->crtc != &primary_crtc->base)@@ -4530,7 +4574,7 @@ copy_joiner_crtc_state_nomodeset(struct intel_atomic_state *state, {struct intel_crtc_state *secondary_crtc_state =intel_atomic_get_new_crtc_state (state, secondary_crtc); -struct intel_crtc *primary_crtc =intel_primary_crtc (secondary_crtc_state); +struct intel_crtc *primary_crtc =intel_joiner_primary_crtc (secondary_crtc_state);const struct intel_crtc_state *primary_crtc_state =intel_atomic_get_new_crtc_state (state, primary_crtc);@@ -4550,7 +4594,7 @@ copy_joiner_crtc_state_modeset(struct intel_atomic_state *state, {struct intel_crtc_state *secondary_crtc_state =intel_atomic_get_new_crtc_state (state, secondary_crtc); -struct intel_crtc *primary_crtc =intel_primary_crtc (secondary_crtc_state); +struct intel_crtc *primary_crtc =intel_joiner_primary_crtc (secondary_crtc_state);const struct intel_crtc_state *primary_crtc_state =intel_atomic_get_new_crtc_state (state, primary_crtc);struct intel_crtc_state *saved_state;drivers/gpu/drm/i915/display/intel_display.h +4
-2@@ -424,10 +424,12 @@ enum phy intel_port_to_phy(struct drm_i915_private *i915, enum port port);bool is_trans_port_sync_mode (const struct intel_crtc_state *state);bool is_trans_port_sync_master (const struct intel_crtc_state *state);u8 intel_crtc_joined_pipe_mask (const struct intel_crtc_state *crtc_state); -bool intel_crtc_is_joiner_secondary (const struct intel_crtc_state *crtc_state);bool intel_crtc_is_joiner_primary (const struct intel_crtc_state *crtc_state); +bool intel_crtc_is_joiner_secondary (const struct intel_crtc_state *crtc_state); +bool intel_crtc_is_bigjoiner_primary (const struct intel_crtc_state *crtc_state); +bool intel_crtc_is_bigjoiner_secondary (const struct intel_crtc_state *crtc_state);u8 intel_crtc_joiner_secondary_pipes (const struct intel_crtc_state *crtc_state); -struct intel_crtc *intel_primary_crtc (const struct intel_crtc_state *crtc_state); +struct intel_crtc *intel_joiner_primary_crtc (const struct intel_crtc_state *crtc_state);bool intel_crtc_get_pipe_config (struct intel_crtc_state *crtc_state); bool intel_pipe_config_compare(const struct intel_crtc_state *current_config, const struct intel_crtc_state *pipe_config,drivers/gpu/drm/i915/display/intel_modeset_verify.c +1
-1@@ -193,7 +193,7 @@ verify_crtc_state(struct intel_atomic_state *state,"transitional active state does not match atomic hw state (expected %i, found %i)\n" , sw_crtc_state->hw.active, crtc->active); - primary_crtc =intel_primary_crtc (sw_crtc_state); + primary_crtc =intel_joiner_primary_crtc (sw_crtc_state);for_each_encoder_on_crtc (dev, &primary_crtc->base, encoder) {enum pipe pipe;drivers/gpu/drm/i915/display/intel_vdsc.c +2
-2@@ -742,7 +742,7 @@ void intel_uncompressed_joiner_enable(const struct intel_crtc_state *crtc_state)u32 dss_ctl1_val =0 ;if (crtc_state->joiner_pipes && !crtc_state->dsc.compression_enable) { -if (intel_crtc_is_joiner_secondary (crtc_state)) +if (intel_crtc_is_bigjoiner_secondary (crtc_state)) dss_ctl1_val |=UNCOMPRESSED_JOINER_SECONDARY ;else dss_ctl1_val |=UNCOMPRESSED_JOINER_PRIMARY ;@@ -771,7 +771,7 @@ void intel_dsc_enable(const struct intel_crtc_state *crtc_state) }if (crtc_state->joiner_pipes) { dss_ctl1_val |=BIG_JOINER_ENABLE ; -if (!intel_crtc_is_joiner_secondary (crtc_state)) +if (intel_crtc_is_bigjoiner_primary (crtc_state)) dss_ctl1_val |=PRIMARY_BIG_JOINER_ENABLE ; }intel_de_write (dev_priv,dss_ctl1_reg (crtc, crtc_state->cpu_transcoder), dss_ctl1_val);Signature · 1 line
2.45.2
Signature · 2 lines
Ville Syrjälä Intel
Re: [PATCH 05/14] drm/i915: Add some essential functionality for joiners
Quoted 73 lines · Ville Syrjälä
Quoted 60 lines · Ankit Nautiyal
From: Stanislav Lisovskiy <[email protected]>
In most of the cases we now try to avoid mentioning things like "bigjoiner" or "ultrajoiner" trying to unify the API and refer mostly to all this functionality as "joiner".
In majority cases that should be way to go.
However in some cases we still need to distinguish between bigjoiner primaries and secondaries(such as DSC register programming).Create correspondent helper functions and start using them, in order be prepared for adding ultrajoiner functionality.
v2: Fixed checkpatch warnings (Ankit)
v3: Introduce ultrajoiner helpers in next patch.Signed-off-by Stanislav Lisovskiy <[email protected]>Signed-off-by Ankit Nautiyal <[email protected]>--- .../gpu/drm/i915/display/intel_atomic_plane.c | 2 +- drivers/gpu/drm/i915/display/intel_display.c | 52 +++++++++++++++++-- drivers/gpu/drm/i915/display/intel_display.h | 6 ++- .../drm/i915/display/intel_modeset_verify.c | 2 +- drivers/gpu/drm/i915/display/intel_vdsc.c | 4 +- 5 files changed, 56 insertions(+), 10 deletions(-)drivers/gpu/drm/i915/display/intel_atomic_plane.c +1
-1@@ -725,7 +725,7 @@ int intel_plane_atomic_check(struct intel_atomic_state *state,if (new_crtc_state &&intel_crtc_is_joiner_secondary (new_crtc_state)) {struct intel_crtc *primary_crtc = -intel_primary_crtc (new_crtc_state); +intel_joiner_primary_crtc (new_crtc_state);struct intel_plane *primary_crtc_plane =intel_crtc_get_plane (primary_crtc, plane->id);drivers/gpu/drm/i915/display/intel_display.c +14
-0@@ -254,6 +254,50 @@ static enum pipe joiner_primary_pipe(const struct intel_crtc_state *crtc_state)return ffs (crtc_state->joiner_pipes) -1 ; } +static bool intel_is_joiner (const struct intel_crtc_state *crtc_state) +{ +return intel_joiner_num_pipes (crtc_state) >1 ; +} + +static u8 bigjoiner_primary_pipes (const struct intel_crtc_state *crtc_state) +{ +int lsb =ffs (crtc_state->joiner_pipes) -1 ; +int msb =fls (crtc_state->joiner_pipes) -1 ; +int i; +u8 bigjoiner_primary_mask =0 ; + +for (i = lsb; i < msb; i +=4 ) { +/* drivers/gpu/drm/i915/display/intel_display.c static enum pipe joiner_primary_pipe(const struct intel_crtc_state *crtc_state) · line 280
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display.c +10
-0+* Regardless of how joiner_pipes mask is set, currently +* we always assume, that primary pipe bit goes before secondary +* pipe bit. So in each set of 2 bits, least significant bit is +* bigjoiner primary pipe and most significant bit is secondary pipe. +*/ + bigjoiner_primary_mask |= + ((BIT (0 ) |BIT (2 )) << i) & crtc_state->joiner_pipes; + } + +return bigjoiner_primary_mask;This seems needlessly complicated.
Quoted 3 lines
Something like this?
return
crtc_state->joiner_pipes& (0b01010101<<joiner_primary_pipe(crtc_state))
Yeah makes sense, will remove the loop and use this.
Quoted 33 lines
Quoted 33 lines
drivers/gpu/drm/i915/display/intel_display.c +21
-1+} + +bool intel_crtc_is_bigjoiner_primary (const struct intel_crtc_state *crtc_state) +{ +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc); + +if (!intel_is_joiner (crtc_state)) +return false; + +return BIT (crtc->pipe) &bigjoiner_primary_pipes (crtc_state); +} + +bool intel_crtc_is_bigjoiner_secondary (const struct intel_crtc_state *crtc_state) +{ +if (!intel_is_joiner (crtc_state)) +return false; + +return !intel_crtc_is_bigjoiner_primary (crtc_state); +} +u8 intel_crtc_joiner_secondary_pipes (const struct intel_crtc_state *crtc_state) {if (crtc_state->joiner_pipes)@@ -290,7 +334,7 @@ u8 intel_crtc_joined_pipe_mask(const struct intel_crtc_state *crtc_state)return BIT (crtc->pipe) | crtc_state->joiner_pipes; } -struct intel_crtc *intel_primary_crtc (const struct intel_crtc_state *crtc_state) +struct intel_crtc *intel_joiner_primary_crtc (const struct intel_crtc_state *crtc_state) {struct intel_display *display =to_intel_display (crtc_state);
Quoted 7 lines
drivers/gpu/drm/i915/display/intel_display.c intel_get_crtc_new_encoder(const struct intel_atomic_state *state, · line 857
Quoted 6 lines
drivers/gpu/drm/i915/display/intel_display.c +1
-1@@ -810,7 +854,7 @@ intel_get_crtc_new_encoder(const struct intel_atomic_state *state,int num_encoders =0 ;int i; - primary_crtc =intel_primary_crtc (crtc_state); + primary_crtc =intel_joiner_primary_crtc (crtc_state);That rename seems unrelated to the rest of the patch.
I can have it in separate patch.
Regards,
Ankit
Quoted 78 lines
Quoted 78 lines
drivers/gpu/drm/i915/display/intel_display.c +2
-2for_each_new_connector_in_state (&state->base, connector, connector_state, i) {if (connector_state->crtc != &primary_crtc->base)@@ -4530,7 +4574,7 @@ copy_joiner_crtc_state_nomodeset(struct intel_atomic_state *state, {struct intel_crtc_state *secondary_crtc_state =intel_atomic_get_new_crtc_state (state, secondary_crtc); -struct intel_crtc *primary_crtc =intel_primary_crtc (secondary_crtc_state); +struct intel_crtc *primary_crtc =intel_joiner_primary_crtc (secondary_crtc_state);const struct intel_crtc_state *primary_crtc_state =intel_atomic_get_new_crtc_state (state, primary_crtc);@@ -4550,7 +4594,7 @@ copy_joiner_crtc_state_modeset(struct intel_atomic_state *state, {struct intel_crtc_state *secondary_crtc_state =intel_atomic_get_new_crtc_state (state, secondary_crtc); -struct intel_crtc *primary_crtc =intel_primary_crtc (secondary_crtc_state); +struct intel_crtc *primary_crtc =intel_joiner_primary_crtc (secondary_crtc_state);const struct intel_crtc_state *primary_crtc_state =intel_atomic_get_new_crtc_state (state, primary_crtc);struct intel_crtc_state *saved_state;drivers/gpu/drm/i915/display/intel_display.h +4
-2@@ -424,10 +424,12 @@ enum phy intel_port_to_phy(struct drm_i915_private *i915, enum port port);bool is_trans_port_sync_mode (const struct intel_crtc_state *state);bool is_trans_port_sync_master (const struct intel_crtc_state *state);u8 intel_crtc_joined_pipe_mask (const struct intel_crtc_state *crtc_state); -bool intel_crtc_is_joiner_secondary (const struct intel_crtc_state *crtc_state);bool intel_crtc_is_joiner_primary (const struct intel_crtc_state *crtc_state); +bool intel_crtc_is_joiner_secondary (const struct intel_crtc_state *crtc_state); +bool intel_crtc_is_bigjoiner_primary (const struct intel_crtc_state *crtc_state); +bool intel_crtc_is_bigjoiner_secondary (const struct intel_crtc_state *crtc_state);u8 intel_crtc_joiner_secondary_pipes (const struct intel_crtc_state *crtc_state); -struct intel_crtc *intel_primary_crtc (const struct intel_crtc_state *crtc_state); +struct intel_crtc *intel_joiner_primary_crtc (const struct intel_crtc_state *crtc_state);bool intel_crtc_get_pipe_config (struct intel_crtc_state *crtc_state); bool intel_pipe_config_compare(const struct intel_crtc_state *current_config, const struct intel_crtc_state *pipe_config,drivers/gpu/drm/i915/display/intel_modeset_verify.c +1
-1@@ -193,7 +193,7 @@ verify_crtc_state(struct intel_atomic_state *state,"transitional active state does not match atomic hw state (expected %i, found %i)\n" , sw_crtc_state->hw.active, crtc->active); - primary_crtc =intel_primary_crtc (sw_crtc_state); + primary_crtc =intel_joiner_primary_crtc (sw_crtc_state);for_each_encoder_on_crtc (dev, &primary_crtc->base, encoder) {enum pipe pipe;drivers/gpu/drm/i915/display/intel_vdsc.c +2
-2@@ -742,7 +742,7 @@ void intel_uncompressed_joiner_enable(const struct intel_crtc_state *crtc_state)u32 dss_ctl1_val =0 ;if (crtc_state->joiner_pipes && !crtc_state->dsc.compression_enable) { -if (intel_crtc_is_joiner_secondary (crtc_state)) +if (intel_crtc_is_bigjoiner_secondary (crtc_state)) dss_ctl1_val |=UNCOMPRESSED_JOINER_SECONDARY ;else dss_ctl1_val |=UNCOMPRESSED_JOINER_PRIMARY ;@@ -771,7 +771,7 @@ void intel_dsc_enable(const struct intel_crtc_state *crtc_state) }if (crtc_state->joiner_pipes) { dss_ctl1_val |=BIG_JOINER_ENABLE ; -if (!intel_crtc_is_joiner_secondary (crtc_state)) +if (intel_crtc_is_bigjoiner_primary (crtc_state)) dss_ctl1_val |=PRIMARY_BIG_JOINER_ENABLE ; }intel_de_write (dev_priv,dss_ctl1_reg (crtc, crtc_state->cpu_transcoder), dss_ctl1_val);Signature · 1 line
2.45.2
Re: [PATCH 05/14] drm/i915: Add some essential functionality for joiners
Quoted 75 lines · Ankit K
Quoted 73 lines · Ville Syrjälä
Quoted 60 lines · Ankit Nautiyal
From: Stanislav Lisovskiy <[email protected]>
In most of the cases we now try to avoid mentioning things like "bigjoiner" or "ultrajoiner" trying to unify the API and refer mostly to all this functionality as "joiner".
In majority cases that should be way to go.
However in some cases we still need to distinguish between bigjoiner primaries and secondaries(such as DSC register programming).Create correspondent helper functions and start using them, in order be prepared for adding ultrajoiner functionality.
v2: Fixed checkpatch warnings (Ankit)
v3: Introduce ultrajoiner helpers in next patch.Signed-off-by Stanislav Lisovskiy <[email protected]>Signed-off-by Ankit Nautiyal <[email protected]>--- .../gpu/drm/i915/display/intel_atomic_plane.c | 2 +- drivers/gpu/drm/i915/display/intel_display.c | 52 +++++++++++++++++-- drivers/gpu/drm/i915/display/intel_display.h | 6 ++- .../drm/i915/display/intel_modeset_verify.c | 2 +- drivers/gpu/drm/i915/display/intel_vdsc.c | 4 +- 5 files changed, 56 insertions(+), 10 deletions(-)drivers/gpu/drm/i915/display/intel_atomic_plane.c +1
-1@@ -725,7 +725,7 @@ int intel_plane_atomic_check(struct intel_atomic_state *state,if (new_crtc_state &&intel_crtc_is_joiner_secondary (new_crtc_state)) {struct intel_crtc *primary_crtc = -intel_primary_crtc (new_crtc_state); +intel_joiner_primary_crtc (new_crtc_state);struct intel_plane *primary_crtc_plane =intel_crtc_get_plane (primary_crtc, plane->id);drivers/gpu/drm/i915/display/intel_display.c +14
-0@@ -254,6 +254,50 @@ static enum pipe joiner_primary_pipe(const struct intel_crtc_state *crtc_state)return ffs (crtc_state->joiner_pipes) -1 ; } +static bool intel_is_joiner (const struct intel_crtc_state *crtc_state) +{ +return intel_joiner_num_pipes (crtc_state) >1 ; +} + +static u8 bigjoiner_primary_pipes (const struct intel_crtc_state *crtc_state) +{ +int lsb =ffs (crtc_state->joiner_pipes) -1 ; +int msb =fls (crtc_state->joiner_pipes) -1 ; +int i; +u8 bigjoiner_primary_mask =0 ; + +for (i = lsb; i < msb; i +=4 ) { +/* drivers/gpu/drm/i915/display/intel_display.c static enum pipe joiner_primary_pipe(const struct intel_crtc_state *crtc_state) · line 280
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display.c +10
-0+* Regardless of how joiner_pipes mask is set, currently +* we always assume, that primary pipe bit goes before secondary +* pipe bit. So in each set of 2 bits, least significant bit is +* bigjoiner primary pipe and most significant bit is secondary pipe. +*/ + bigjoiner_primary_mask |= + ((BIT (0 ) |BIT (2 )) << i) & crtc_state->joiner_pipes; + } + +return bigjoiner_primary_mask;This seems needlessly complicated.
Quoted 5 lines
Quoted 3 lines
Something like this?
return
crtc_state->joiner_pipes& (0b01010101<<joiner_primary_pipe(crtc_state))Yeah makes sense, will remove the loop and use this.
We could limit this mask to just four bits I suppose since that's the max currently, and going beyond that (should future hardware support such a thing) would need additonal work anyway.
Quoted 129 lines
Quoted 35 lines
Quoted 35 lines
drivers/gpu/drm/i915/display/intel_display.c +21
-1+} + +bool intel_crtc_is_bigjoiner_primary (const struct intel_crtc_state *crtc_state) +{ +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc); + +if (!intel_is_joiner (crtc_state)) +return false; + +return BIT (crtc->pipe) &bigjoiner_primary_pipes (crtc_state); +} + +bool intel_crtc_is_bigjoiner_secondary (const struct intel_crtc_state *crtc_state) +{ +if (!intel_is_joiner (crtc_state)) +return false; + +return !intel_crtc_is_bigjoiner_primary (crtc_state); +} +u8 intel_crtc_joiner_secondary_pipes (const struct intel_crtc_state *crtc_state) {if (crtc_state->joiner_pipes)@@ -290,7 +334,7 @@ u8 intel_crtc_joined_pipe_mask(const struct intel_crtc_state *crtc_state)return BIT (crtc->pipe) | crtc_state->joiner_pipes; } -struct intel_crtc *intel_primary_crtc (const struct intel_crtc_state *crtc_state) +struct intel_crtc *intel_joiner_primary_crtc (const struct intel_crtc_state *crtc_state) {struct intel_display *display =to_intel_display (crtc_state);Quoted 7 lines
drivers/gpu/drm/i915/display/intel_display.c intel_get_crtc_new_encoder(const struct intel_atomic_state *state, · line 857
Quoted 6 lines
drivers/gpu/drm/i915/display/intel_display.c +1
-1@@ -810,7 +854,7 @@ intel_get_crtc_new_encoder(const struct intel_atomic_state *state,int num_encoders =0 ;int i; - primary_crtc =intel_primary_crtc (crtc_state); + primary_crtc =intel_joiner_primary_crtc (crtc_state);That rename seems unrelated to the rest of the patch.
I can have it in separate patch.
Regards,
Ankit
Quoted 78 lines
Quoted 78 lines
drivers/gpu/drm/i915/display/intel_display.c +2
-2for_each_new_connector_in_state (&state->base, connector, connector_state, i) {if (connector_state->crtc != &primary_crtc->base)@@ -4530,7 +4574,7 @@ copy_joiner_crtc_state_nomodeset(struct intel_atomic_state *state, {struct intel_crtc_state *secondary_crtc_state =intel_atomic_get_new_crtc_state (state, secondary_crtc); -struct intel_crtc *primary_crtc =intel_primary_crtc (secondary_crtc_state); +struct intel_crtc *primary_crtc =intel_joiner_primary_crtc (secondary_crtc_state);const struct intel_crtc_state *primary_crtc_state =intel_atomic_get_new_crtc_state (state, primary_crtc);@@ -4550,7 +4594,7 @@ copy_joiner_crtc_state_modeset(struct intel_atomic_state *state, {struct intel_crtc_state *secondary_crtc_state =intel_atomic_get_new_crtc_state (state, secondary_crtc); -struct intel_crtc *primary_crtc =intel_primary_crtc (secondary_crtc_state); +struct intel_crtc *primary_crtc =intel_joiner_primary_crtc (secondary_crtc_state);const struct intel_crtc_state *primary_crtc_state =intel_atomic_get_new_crtc_state (state, primary_crtc);struct intel_crtc_state *saved_state;drivers/gpu/drm/i915/display/intel_display.h +4
-2@@ -424,10 +424,12 @@ enum phy intel_port_to_phy(struct drm_i915_private *i915, enum port port);bool is_trans_port_sync_mode (const struct intel_crtc_state *state);bool is_trans_port_sync_master (const struct intel_crtc_state *state);u8 intel_crtc_joined_pipe_mask (const struct intel_crtc_state *crtc_state); -bool intel_crtc_is_joiner_secondary (const struct intel_crtc_state *crtc_state);bool intel_crtc_is_joiner_primary (const struct intel_crtc_state *crtc_state); +bool intel_crtc_is_joiner_secondary (const struct intel_crtc_state *crtc_state); +bool intel_crtc_is_bigjoiner_primary (const struct intel_crtc_state *crtc_state); +bool intel_crtc_is_bigjoiner_secondary (const struct intel_crtc_state *crtc_state);u8 intel_crtc_joiner_secondary_pipes (const struct intel_crtc_state *crtc_state); -struct intel_crtc *intel_primary_crtc (const struct intel_crtc_state *crtc_state); +struct intel_crtc *intel_joiner_primary_crtc (const struct intel_crtc_state *crtc_state);bool intel_crtc_get_pipe_config (struct intel_crtc_state *crtc_state); bool intel_pipe_config_compare(const struct intel_crtc_state *current_config, const struct intel_crtc_state *pipe_config,drivers/gpu/drm/i915/display/intel_modeset_verify.c +1
-1@@ -193,7 +193,7 @@ verify_crtc_state(struct intel_atomic_state *state,"transitional active state does not match atomic hw state (expected %i, found %i)\n" , sw_crtc_state->hw.active, crtc->active); - primary_crtc =intel_primary_crtc (sw_crtc_state); + primary_crtc =intel_joiner_primary_crtc (sw_crtc_state);for_each_encoder_on_crtc (dev, &primary_crtc->base, encoder) {enum pipe pipe;drivers/gpu/drm/i915/display/intel_vdsc.c +2
-2@@ -742,7 +742,7 @@ void intel_uncompressed_joiner_enable(const struct intel_crtc_state *crtc_state)u32 dss_ctl1_val =0 ;if (crtc_state->joiner_pipes && !crtc_state->dsc.compression_enable) { -if (intel_crtc_is_joiner_secondary (crtc_state)) +if (intel_crtc_is_bigjoiner_secondary (crtc_state)) dss_ctl1_val |=UNCOMPRESSED_JOINER_SECONDARY ;else dss_ctl1_val |=UNCOMPRESSED_JOINER_PRIMARY ;@@ -771,7 +771,7 @@ void intel_dsc_enable(const struct intel_crtc_state *crtc_state) }if (crtc_state->joiner_pipes) { dss_ctl1_val |=BIG_JOINER_ENABLE ; -if (!intel_crtc_is_joiner_secondary (crtc_state)) +if (intel_crtc_is_bigjoiner_primary (crtc_state)) dss_ctl1_val |=PRIMARY_BIG_JOINER_ENABLE ; }intel_de_write (dev_priv,dss_ctl1_reg (crtc, crtc_state->cpu_transcoder), dss_ctl1_val);Signature · 1 line
2.45.2
Signature · 2 lines
Ville Syrjälä Intel
PATCH 6/14 drm/i915: Split current joiner hw state readout
In reply to Ankit NautiyalFrom: Stanislav Lisovskiy <[email protected]>
We need to add a new sanity checks and also do
some preparations for adding ultrajoiner hw state readout. Lets first split reading of the uncompressed joiner and bigjoiner bit masks into separate functions.
v2: Fixed checkpatch warnings (Ankit)
--- drivers/gpu/drm/i915/display/intel_display.c | 65 +++++++++++++++----- 1 file changed, 48 insertions(+), 17 deletions(-)
drivers/gpu/drm/i915/display/intel_display.c +48 -17
@@ -3580,51 +3580,82 @@ static bool transcoder_ddi_func_is_enabled(struct drm_i915_private *dev_priv,return tmp &TRANS_DDI_FUNC_ENABLE ; } -static void enabled_joiner_pipes (struct drm_i915_private *dev_priv, -u8 *primary_pipes,u8 *secondary_pipes) +static void enabled_uncompressed_joiner_pipes (struct drm_i915_private *dev_priv, +u8 *primary_pipes,u8 *secondary_pipes) {struct intel_crtc *crtc; *primary_pipes =0 ; *secondary_pipes =0 ; +if (DISPLAY_VER (dev_priv) <13 ) +return ; +for_each_intel_crtc_in_pipe_mask (&dev_priv->drm, crtc,joiner_pipes (dev_priv)) {enum intel_display_power_domain power_domain;enum pipe pipe = crtc->pipe;intel_wakeref_t wakeref; - power_domain =intel_dsc_power_domain (crtc, (enum transcoder ) pipe); + power_domain =POWER_DOMAIN_PIPE (pipe); with_intel_display_power_if_enabled(dev_priv, power_domain, wakeref) {u32 tmp =intel_de_read (dev_priv,ICL_PIPE_DSS_CTL1 (pipe)); -if (!(tmp &BIG_JOINER_ENABLE )) -continue ; - -if (tmp &PRIMARY_BIG_JOINER_ENABLE ) +if (tmp &UNCOMPRESSED_JOINER_PRIMARY ) *primary_pipes |=BIT (pipe); -else +if (tmp &UNCOMPRESSED_JOINER_SECONDARY ) *secondary_pipes |=BIT (pipe); } + } +} -if (DISPLAY_VER (dev_priv) <13 ) -continue ; +static void enabled_bigjoiner_pipes (struct drm_i915_private *dev_priv, +u8 *primary_pipes,u8 *secondary_pipes) +{ +struct intel_crtc *crtc; - power_domain =POWER_DOMAIN_PIPE (pipe); + *primary_pipes =0 ; + *secondary_pipes =0 ; + +for_each_intel_crtc_in_pipe_mask (&dev_priv->drm, crtc, +joiner_pipes (dev_priv)) { +enum intel_display_power_domain power_domain; +enum pipe pipe = crtc->pipe; +intel_wakeref_t wakeref; + + power_domain =intel_dsc_power_domain (crtc, (enum transcoder )pipe); with_intel_display_power_if_enabled(dev_priv, power_domain, wakeref) {u32 tmp =intel_de_read (dev_priv,ICL_PIPE_DSS_CTL1 (pipe)); -if (tmp &UNCOMPRESSED_JOINER_PRIMARY ) +if (!(tmp &BIG_JOINER_ENABLE )) +continue ; + +if (tmp &PRIMARY_BIG_JOINER_ENABLE ) *primary_pipes |=BIT (pipe); -if (tmp &UNCOMPRESSED_JOINER_SECONDARY ) +else *secondary_pipes |=BIT (pipe); } } +} + +static void enabled_joiner_pipes (struct drm_i915_private *dev_priv, +u8 *primary_pipes,u8 *secondary_pipes) +{ +u8 primary_uncompressed_joiner_pipes, primary_bigjoiner_pipes; +u8 secondary_uncompressed_joiner_pipes, secondary_bigjoiner_pipes; + +enabled_uncompressed_joiner_pipes (dev_priv, &primary_uncompressed_joiner_pipes, + &secondary_uncompressed_joiner_pipes); + +enabled_bigjoiner_pipes (dev_priv, &primary_bigjoiner_pipes, + &secondary_bigjoiner_pipes); + + *primary_pipes =0 ; + *secondary_pipes =0 ; + + *primary_pipes = primary_uncompressed_joiner_pipes | primary_bigjoiner_pipes; -/* Joiner pipes should always be consecutive primary and secondary */ -drm_WARN (&dev_priv->drm, *secondary_pipes != *primary_pipes <<1 , -"Joiner misconfigured (primary pipes 0x%x, secondary pipes 0x%x)\n" , - *primary_pipes, *secondary_pipes); + *secondary_pipes = secondary_uncompressed_joiner_pipes | secondary_bigjoiner_pipes; }static enum pipe get_joiner_primary_pipe (enum pipe pipe,u8 primary_pipes,u8 secondary_pipes)
Signature · 1 line
2.45.2
Re: [PATCH 06/14] drm/i915: Split current joiner hw state readout
Quoted 61 lines · Ankit Nautiyal
From: Stanislav Lisovskiy <[email protected]>
We need to add a new sanity checks and also do
some preparations for adding ultrajoiner hw state readout. Lets first split reading of the uncompressed joiner and bigjoiner bit masks into separate functions.v2: Fixed checkpatch warnings (Ankit)
Signed-off-by Stanislav Lisovskiy <[email protected]>Signed-off-by Ankit Nautiyal <[email protected]>Reviewed-by Suraj Kandpal <[email protected]>--- drivers/gpu/drm/i915/display/intel_display.c | 65 +++++++++++++++----- 1 file changed, 48 insertions(+), 17 deletions(-)drivers/gpu/drm/i915/display/intel_display.c +10
-8@@ -3580,51 +3580,82 @@ static bool transcoder_ddi_func_is_enabled(struct drm_i915_private *dev_priv,return tmp &TRANS_DDI_FUNC_ENABLE ; } -static void enabled_joiner_pipes (struct drm_i915_private *dev_priv, -u8 *primary_pipes,u8 *secondary_pipes) +static void enabled_uncompressed_joiner_pipes (struct drm_i915_private *dev_priv, +u8 *primary_pipes,u8 *secondary_pipes) {struct intel_crtc *crtc; *primary_pipes =0 ; *secondary_pipes =0 ; +if (DISPLAY_VER (dev_priv) <13 ) +return ; +for_each_intel_crtc_in_pipe_mask (&dev_priv->drm, crtc,joiner_pipes (dev_priv)) {enum intel_display_power_domain power_domain;enum pipe pipe = crtc->pipe;intel_wakeref_t wakeref; - power_domain =intel_dsc_power_domain (crtc, (enum transcoder ) pipe); + power_domain =POWER_DOMAIN_PIPE (pipe); with_intel_display_power_if_enabled(dev_priv, power_domain, wakeref) {u32 tmp =intel_de_read (dev_priv,ICL_PIPE_DSS_CTL1 (pipe)); -if (!(tmp &BIG_JOINER_ENABLE )) -continue ; - -if (tmp &PRIMARY_BIG_JOINER_ENABLE ) +if (tmp &UNCOMPRESSED_JOINER_PRIMARY ) *primary_pipes |=BIT (pipe); -else +if (tmp &UNCOMPRESSED_JOINER_SECONDARY ) *secondary_pipes |=BIT (pipe); } + } +}
drivers/gpu/drm/i915/display/intel_display.c static bool transcoder_ddi_func_is_enabled(struct drm_i915_private *dev_priv, · line 3618
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display.c +6
-3-if (DISPLAY_VER (dev_priv) <13 ) -continue ; +static void enabled_bigjoiner_pipes (struct drm_i915_private *dev_priv, +u8 *primary_pipes,u8 *secondary_pipes) +{ +struct intel_crtc *crtc; - power_domain =POWER_DOMAIN_PIPE (pipe); + *primary_pipes =0 ; + *secondary_pipes =0 ;
We seem to be missing any kind of check to make sure bigjoiner is actually present in the hardware. Or am I just blind? If that is the case we need to fix it up before the refactoring goes in.
Quoted 28 lines
drivers/gpu/drm/i915/display/intel_display.c +19
-2+ +for_each_intel_crtc_in_pipe_mask (&dev_priv->drm, crtc, +joiner_pipes (dev_priv)) { +enum intel_display_power_domain power_domain; +enum pipe pipe = crtc->pipe; +intel_wakeref_t wakeref; + + power_domain =intel_dsc_power_domain (crtc, (enum transcoder )pipe); with_intel_display_power_if_enabled(dev_priv, power_domain, wakeref) {u32 tmp =intel_de_read (dev_priv,ICL_PIPE_DSS_CTL1 (pipe)); -if (tmp &UNCOMPRESSED_JOINER_PRIMARY ) +if (!(tmp &BIG_JOINER_ENABLE )) +continue ; + +if (tmp &PRIMARY_BIG_JOINER_ENABLE ) *primary_pipes |=BIT (pipe); -if (tmp &UNCOMPRESSED_JOINER_SECONDARY ) +else *secondary_pipes |=BIT (pipe); } } +} + +static void enabled_joiner_pipes (struct drm_i915_private *dev_priv, +u8 *primary_pipes,u8 *secondary_pipes) +{ +u8 primary_uncompressed_joiner_pipes, primary_bigjoiner_pipes;
drivers/gpu/drm/i915/display/intel_display.c static bool transcoder_ddi_func_is_enabled(struct drm_i915_private *dev_priv, · line 3654
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display.c +10
-0+u8 secondary_uncompressed_joiner_pipes, secondary_bigjoiner_pipes; + +enabled_uncompressed_joiner_pipes (dev_priv, &primary_uncompressed_joiner_pipes, + &secondary_uncompressed_joiner_pipes); + +enabled_bigjoiner_pipes (dev_priv, &primary_bigjoiner_pipes, + &secondary_bigjoiner_pipes); + + *primary_pipes =0 ; + *secondary_pipes =0 ;
These seem redundant.
drivers/gpu/drm/i915/display/intel_display.c static bool transcoder_ddi_func_is_enabled(struct drm_i915_private *dev_priv, · line 3627
Quoted 7 lines
drivers/gpu/drm/i915/display/intel_display.c +2
-4+ + *primary_pipes = primary_uncompressed_joiner_pipes | primary_bigjoiner_pipes; -/* Joiner pipes should always be consecutive primary and secondary */ -drm_WARN (&dev_priv->drm, *secondary_pipes != *primary_pipes <<1 , -"Joiner misconfigured (primary pipes 0x%x, secondary pipes 0x%x)\n" , - *primary_pipes, *secondary_pipes);
Where did this go?
Quoted 6 lines
drivers/gpu/drm/i915/display/intel_display.c +1
-0+ *secondary_pipes = secondary_uncompressed_joiner_pipes | secondary_bigjoiner_pipes; }static enum pipe get_joiner_primary_pipe (enum pipe pipe,u8 primary_pipes,u8 secondary_pipes)Signature · 1 line
2.45.2
Signature · 2 lines
Ville Syrjälä Intel
Re: [PATCH 06/14] drm/i915: Split current joiner hw state readout
Quoted 69 lines · Ville Syrjälä
Quoted 68 lines · Ankit Nautiyal
From: Stanislav Lisovskiy <[email protected]>
We need to add a new sanity checks and also do
some preparations for adding ultrajoiner hw state readout. Lets first split reading of the uncompressed joiner and bigjoiner bit masks into separate functions.v2: Fixed checkpatch warnings (Ankit)
Signed-off-by Stanislav Lisovskiy <[email protected]>Signed-off-by Ankit Nautiyal <[email protected]>Reviewed-by Suraj Kandpal <[email protected]>--- drivers/gpu/drm/i915/display/intel_display.c | 65 +++++++++++++++----- 1 file changed, 48 insertions(+), 17 deletions(-)drivers/gpu/drm/i915/display/intel_display.c +14
-10@@ -3580,51 +3580,82 @@ static bool transcoder_ddi_func_is_enabled(struct drm_i915_private *dev_priv,return tmp &TRANS_DDI_FUNC_ENABLE ; } -static void enabled_joiner_pipes (struct drm_i915_private *dev_priv, -u8 *primary_pipes,u8 *secondary_pipes) +static void enabled_uncompressed_joiner_pipes (struct drm_i915_private *dev_priv, +u8 *primary_pipes,u8 *secondary_pipes) {struct intel_crtc *crtc; *primary_pipes =0 ; *secondary_pipes =0 ; +if (DISPLAY_VER (dev_priv) <13 ) +return ; +for_each_intel_crtc_in_pipe_mask (&dev_priv->drm, crtc,joiner_pipes (dev_priv)) {enum intel_display_power_domain power_domain;enum pipe pipe = crtc->pipe;intel_wakeref_t wakeref; - power_domain =intel_dsc_power_domain (crtc, (enum transcoder ) pipe); + power_domain =POWER_DOMAIN_PIPE (pipe); with_intel_display_power_if_enabled(dev_priv, power_domain, wakeref) {u32 tmp =intel_de_read (dev_priv,ICL_PIPE_DSS_CTL1 (pipe)); -if (!(tmp &BIG_JOINER_ENABLE )) -continue ; - -if (tmp &PRIMARY_BIG_JOINER_ENABLE ) +if (tmp &UNCOMPRESSED_JOINER_PRIMARY ) *primary_pipes |=BIT (pipe); -else +if (tmp &UNCOMPRESSED_JOINER_SECONDARY ) *secondary_pipes |=BIT (pipe); } + } +} -if (DISPLAY_VER (dev_priv) <13 ) -continue ; +static void enabled_bigjoiner_pipes (struct drm_i915_private *dev_priv, +u8 *primary_pipes,u8 *secondary_pipes) +{ +struct intel_crtc *crtc;
Quoted 7 lines
drivers/gpu/drm/i915/display/intel_display.c static bool transcoder_ddi_func_is_enabled(struct drm_i915_private *dev_priv, · line 3618
Quoted 3 lines
drivers/gpu/drm/i915/display/intel_display.c +2
-1- power_domain =POWER_DOMAIN_PIPE (pipe); + *primary_pipes =0 ; + *secondary_pipes =0 ;We seem to be missing any kind of check to make sure bigjoiner is actually present in the hardware. Or am I just blind? If that is the case we need to fix it up before the refactoring goes in.
We have check in DP, and in one place while checking for maxdotclock.
But yes its missing here. I am thinking something like: https://patchwork.freedesktop.org/patch/612875/?series=133800&rev=7
Will try to introduce a the check here prior to any other patch, that can be used in other places.
Quoted 32 lines
Quoted 32 lines
drivers/gpu/drm/i915/display/intel_display.c +22
-2+ +for_each_intel_crtc_in_pipe_mask (&dev_priv->drm, crtc, +joiner_pipes (dev_priv)) { +enum intel_display_power_domain power_domain; +enum pipe pipe = crtc->pipe; +intel_wakeref_t wakeref; + + power_domain =intel_dsc_power_domain (crtc, (enum transcoder )pipe); with_intel_display_power_if_enabled(dev_priv, power_domain, wakeref) {u32 tmp =intel_de_read (dev_priv,ICL_PIPE_DSS_CTL1 (pipe)); -if (tmp &UNCOMPRESSED_JOINER_PRIMARY ) +if (!(tmp &BIG_JOINER_ENABLE )) +continue ; + +if (tmp &PRIMARY_BIG_JOINER_ENABLE ) *primary_pipes |=BIT (pipe); -if (tmp &UNCOMPRESSED_JOINER_SECONDARY ) +else *secondary_pipes |=BIT (pipe); } } +} + +static void enabled_joiner_pipes (struct drm_i915_private *dev_priv, +u8 *primary_pipes,u8 *secondary_pipes) +{ +u8 primary_uncompressed_joiner_pipes, primary_bigjoiner_pipes; +u8 secondary_uncompressed_joiner_pipes, secondary_bigjoiner_pipes; + + enabled_uncompressed_joiner_pipes(dev_priv, &primary_uncompressed_joiner_pipes,
Quoted 8 lines
drivers/gpu/drm/i915/display/intel_display.c static bool transcoder_ddi_func_is_enabled(struct drm_i915_private *dev_priv, · line 3654
Quoted 7 lines
drivers/gpu/drm/i915/display/intel_display.c +7
-0+ &secondary_uncompressed_joiner_pipes); + +enabled_bigjoiner_pipes (dev_priv, &primary_bigjoiner_pipes, + &secondary_bigjoiner_pipes); + + *primary_pipes =0 ; + *secondary_pipes =0 ;These seem redundant.
Will do away with these.
Quoted 8 lines
drivers/gpu/drm/i915/display/intel_display.c static bool transcoder_ddi_func_is_enabled(struct drm_i915_private *dev_priv, · line 3627
Quoted 7 lines
drivers/gpu/drm/i915/display/intel_display.c +2
-4+ + *primary_pipes = primary_uncompressed_joiner_pipes | primary_bigjoiner_pipes; -/* Joiner pipes should always be consecutive primary and secondary */ -drm_WARN (&dev_priv->drm, *secondary_pipes != *primary_pipes <<1 , -"Joiner misconfigured (primary pipes 0x%x, secondary pipes 0x%x)\n" , - *primary_pipes, *secondary_pipes);Where did this go?
I think this was unintended. Will fix this.
Regards,
Ankit
Quoted 7 lines
Quoted 7 lines
drivers/gpu/drm/i915/display/intel_display.c +1
-0+ *secondary_pipes = secondary_uncompressed_joiner_pipes | secondary_bigjoiner_pipes; }static enum pipe get_joiner_primary_pipe (enum pipe pipe,u8 primary_pipes,u8 secondary_pipes)Signature · 1 line
2.45.2
PATCH 7/14 drm/i915: Add bigjoiner and uncompressed joiner hw readout sanity checks
In reply to Ankit NautiyalFrom: Stanislav Lisovskiy <[email protected]>
Adding sanity checks for primary and secondary bigjoiner/uncompressed bitmasks, should make it easier to spot possible issues.
--- drivers/gpu/drm/i915/display/intel_display.c | 24 ++++++++++++++++++++ 1 file changed, 24 insertions(+)
drivers/gpu/drm/i915/display/intel_display.c +24 -0
@@ -3638,11 +3638,17 @@ static void enabled_bigjoiner_pipes(struct drm_i915_private *dev_priv, } } +static u8 expected_secondary_pipes (u8 primary_pipes) +{ +return primary_pipes <<1 ; +} +static void enabled_joiner_pipes (struct drm_i915_private *dev_priv,u8 *primary_pipes,u8 *secondary_pipes) {u8 primary_uncompressed_joiner_pipes, primary_bigjoiner_pipes;u8 secondary_uncompressed_joiner_pipes, secondary_bigjoiner_pipes; +u8 uncompressed_joiner_pipes, bigjoiner_pipes;enabled_uncompressed_joiner_pipes (dev_priv, &primary_uncompressed_joiner_pipes, &secondary_uncompressed_joiner_pipes);
@@ -3650,6 +3656,24 @@ static void enabled_joiner_pipes(struct drm_i915_private *dev_priv,enabled_bigjoiner_pipes (dev_priv, &primary_bigjoiner_pipes, &secondary_bigjoiner_pipes); + uncompressed_joiner_pipes = primary_uncompressed_joiner_pipes | + secondary_uncompressed_joiner_pipes; + bigjoiner_pipes = primary_bigjoiner_pipes | secondary_bigjoiner_pipes; + +drm_WARN (&dev_priv->drm, (uncompressed_joiner_pipes & bigjoiner_pipes) !=0 , +"Uncomressed joiner pipes(%x) and bigjoiner pipes(%x) can't intersect\n" , + uncompressed_joiner_pipes, bigjoiner_pipes); +drm_WARN (&dev_priv->drm, secondary_bigjoiner_pipes != +expected_secondary_pipes (primary_bigjoiner_pipes), +"Wrong secondary bigjoiner pipes(expected %x, current %x)\n" , +expected_secondary_pipes (primary_bigjoiner_pipes), + secondary_bigjoiner_pipes); +drm_WARN (&dev_priv->drm, secondary_uncompressed_joiner_pipes != +expected_secondary_pipes (primary_uncompressed_joiner_pipes), +"Wrong secondary uncompressed joiner pipes(expected %x, current %x)\n" , +expected_secondary_pipes (primary_uncompressed_joiner_pipes), + secondary_uncompressed_joiner_pipes); + *primary_pipes =0 ; *secondary_pipes =0 ;
Signature · 1 line
2.45.2
Re: [PATCH 07/14] drm/i915: Add bigjoiner and uncompressed joiner hw readout sanity checks
Quoted 16 lines · Ankit Nautiyal
From: Stanislav Lisovskiy <[email protected]>
Adding sanity checks for primary and secondary bigjoiner/uncompressed bitmasks, should make it easier to spot possible issues.
Signed-off-by Stanislav Lisovskiy <[email protected]>Reviewed-by Suraj Kandpal <[email protected]>--- drivers/gpu/drm/i915/display/intel_display.c | 24 ++++++++++++++++++++ 1 file changed, 24 insertions(+)drivers/gpu/drm/i915/display/intel_display.c +0
-0
drivers/gpu/drm/i915/display/intel_display.c static void enabled_bigjoiner_pipes(struct drm_i915_private *dev_priv, · line 3644
Quoted 7 lines
drivers/gpu/drm/i915/display/intel_display.c +4
-0@@ -3638,11 +3638,17 @@ static void enabled_bigjoiner_pipes(struct drm_i915_private *dev_priv, } } +static u8 expected_secondary_pipes (u8 primary_pipes) +{ +return primary_pipes <<1 ; +}
Extracting this should be a separate patch really since it was already in the code until the previous patch erroneously removed it.
Quoted 11 lines
drivers/gpu/drm/i915/display/intel_display.c +2
-0+static void enabled_joiner_pipes (struct drm_i915_private *dev_priv,u8 *primary_pipes,u8 *secondary_pipes) {u8 primary_uncompressed_joiner_pipes, primary_bigjoiner_pipes;u8 secondary_uncompressed_joiner_pipes, secondary_bigjoiner_pipes; +u8 uncompressed_joiner_pipes, bigjoiner_pipes;enabled_uncompressed_joiner_pipes (dev_priv, &primary_uncompressed_joiner_pipes, &secondary_uncompressed_joiner_pipes);
drivers/gpu/drm/i915/display/intel_display.c static void enabled_joiner_pipes(struct drm_i915_private *dev_priv, · line 3665
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display.c +7
-0@@ -3650,6 +3656,24 @@ static void enabled_joiner_pipes(struct drm_i915_private *dev_priv,enabled_bigjoiner_pipes (dev_priv, &primary_bigjoiner_pipes, &secondary_bigjoiner_pipes); + uncompressed_joiner_pipes = primary_uncompressed_joiner_pipes | + secondary_uncompressed_joiner_pipes; + bigjoiner_pipes = primary_bigjoiner_pipes | secondary_bigjoiner_pipes; + +drm_WARN (&dev_priv->drm, (uncompressed_joiner_pipes & bigjoiner_pipes) !=0 , +"Uncomressed joiner pipes(%x) and bigjoiner pipes(%x) can't intersect\n" , + uncompressed_joiner_pipes, bigjoiner_pipes);
Please use 0x%x for printing hex numbers
Side note: maybe we should switch to the standard %#x instead? Though we'd need to double check whether prink() follows the idiotic C standard or not:
printf("%#x", 1) -> 0x1, for any non-zero value
bs.
printf("%#x", 0) -> 0 (sigh)
If printk() behaves the same way then I want to see %#x anywhere (pretty sure we do use it in a few places already though).
Quoted 16 lines
drivers/gpu/drm/i915/display/intel_display.c +11
-0+drm_WARN (&dev_priv->drm, secondary_bigjoiner_pipes != +expected_secondary_pipes (primary_bigjoiner_pipes), +"Wrong secondary bigjoiner pipes(expected %x, current %x)\n" , +expected_secondary_pipes (primary_bigjoiner_pipes), + secondary_bigjoiner_pipes); +drm_WARN (&dev_priv->drm, secondary_uncompressed_joiner_pipes != +expected_secondary_pipes (primary_uncompressed_joiner_pipes), +"Wrong secondary uncompressed joiner pipes(expected %x, current %x)\n" , +expected_secondary_pipes (primary_uncompressed_joiner_pipes), + secondary_uncompressed_joiner_pipes); + *primary_pipes =0 ; *secondary_pipes =0 ;Signature · 1 line
2.45.2
Signature · 2 lines
Ville Syrjälä Intel
Re: [PATCH 07/14] drm/i915: Add bigjoiner and uncompressed joiner hw readout sanity checks
Quoted 20 lines · Ville Syrjälä
Quoted 19 lines · Ankit Nautiyal
From: Stanislav Lisovskiy <[email protected]>
Adding sanity checks for primary and secondary bigjoiner/uncompressed bitmasks, should make it easier to spot possible issues.
Signed-off-by Stanislav Lisovskiy <[email protected]>Reviewed-by Suraj Kandpal <[email protected]>--- drivers/gpu/drm/i915/display/intel_display.c | 24 ++++++++++++++++++++ 1 file changed, 24 insertions(+)drivers/gpu/drm/i915/display/intel_display.c +0
-0@@ -3638,11 +3638,17 @@ static void enabled_bigjoiner_pipes(struct drm_i915_private *dev_priv, } }
Quoted 7 lines
drivers/gpu/drm/i915/display/intel_display.c static void enabled_bigjoiner_pipes(struct drm_i915_private *dev_priv, · line 3644
Quoted 4 lines
drivers/gpu/drm/i915/display/intel_display.c +4
-0+static u8 expected_secondary_pipes (u8 primary_pipes) +{ +return primary_pipes <<1 ; +}Extracting this should be a separate patch really since it was already in the code until the previous patch erroneously removed it.
Sure, will move this to another patch.
Quoted 31 lines
Quoted 12 lines
drivers/gpu/drm/i915/display/intel_display.c +2
-0+static void enabled_joiner_pipes (struct drm_i915_private *dev_priv,u8 *primary_pipes,u8 *secondary_pipes) {u8 primary_uncompressed_joiner_pipes, primary_bigjoiner_pipes;u8 secondary_uncompressed_joiner_pipes, secondary_bigjoiner_pipes; +u8 uncompressed_joiner_pipes, bigjoiner_pipes;enabled_uncompressed_joiner_pipes (dev_priv, &primary_uncompressed_joiner_pipes, &secondary_uncompressed_joiner_pipes);drivers/gpu/drm/i915/display/intel_display.c static void enabled_joiner_pipes(struct drm_i915_private *dev_priv, · line 3665
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display.c +7
-0@@ -3650,6 +3656,24 @@ static void enabled_joiner_pipes(struct drm_i915_private *dev_priv,enabled_bigjoiner_pipes (dev_priv, &primary_bigjoiner_pipes, &secondary_bigjoiner_pipes); + uncompressed_joiner_pipes = primary_uncompressed_joiner_pipes | + secondary_uncompressed_joiner_pipes; + bigjoiner_pipes = primary_bigjoiner_pipes | secondary_bigjoiner_pipes; + +drm_WARN (&dev_priv->drm, (uncompressed_joiner_pipes & bigjoiner_pipes) !=0 , +"Uncomressed joiner pipes(%x) and bigjoiner pipes(%x) can't intersect\n" , + uncompressed_joiner_pipes, bigjoiner_pipes);Please use 0x%x for printing hex numbers
Side note: maybe we should switch to the standard %#x instead? Though we'd need to double check whether
prink()follows the idiotic C standard or not:
printf("%#x", 1)->0x1, for any non-zero value bs.
printf("%#x", 0)-> 0 (sigh)
Quoted 2 lines
If
printk()behaves the same way then I want to see %#x anywhere (pretty sure we do use it in a few places already though).
I will check how %#x behaves with 0 with printk, accordingly will use 0x%x or %x#x, (we do use it in some places).
Regards,
Ankit
Quoted 18 lines
Quoted 18 lines
drivers/gpu/drm/i915/display/intel_display.c +11
-0+drm_WARN (&dev_priv->drm, secondary_bigjoiner_pipes != +expected_secondary_pipes (primary_bigjoiner_pipes), +"Wrong secondary bigjoiner pipes(expected %x, current %x)\n" , +expected_secondary_pipes (primary_bigjoiner_pipes), + secondary_bigjoiner_pipes); +drm_WARN (&dev_priv->drm, secondary_uncompressed_joiner_pipes != +expected_secondary_pipes (primary_uncompressed_joiner_pipes), +"Wrong secondary uncompressed joiner pipes(expected %x, current %x)\n" , +expected_secondary_pipes (primary_uncompressed_joiner_pipes), + secondary_uncompressed_joiner_pipes); + *primary_pipes =0 ; *secondary_pipes =0 ;Signature · 1 line
2.45.2
Re: [PATCH 07/14] drm/i915: Add bigjoiner and uncompressed joiner hw readout sanity checks
Quoted 67 lines · Ankit K
Quoted 13 lines · Ville Syrjälä
Quoted 12 lines · Ankit Nautiyal
From: Stanislav Lisovskiy <[email protected]>
Adding sanity checks for primary and secondary bigjoiner/uncompressed bitmasks, should make it easier to spot possible issues.
Signed-off-by Stanislav Lisovskiy <[email protected]>Reviewed-by Suraj Kandpal <[email protected]>---
drivers/gpu/drm/i915/display/intel_display.c| 24
++++++++++++++++++++1 file changed, 24 insertions(+)Quoted 15 lines
drivers/gpu/drm/i915/display/intel_display.c static void enabled_bigjoiner_pipes(struct · line 3644
Quoted 12 lines
drivers/gpu/drm/i915/display/intel_display.c +3
-0@@ -3638,11 +3638,17 @@ static void enabled_bigjoiner_pipes(structdrm_i915_private *dev_priv, } } +static u8 expected_secondary_pipes(u8 primary_pipes) +{ + return primary_pipes << 1; +}Extracting this should be a separate patch really since it was already in the code until the previous patch erroneously removed it.
Sure, will move this to another patch.
Quoted 33 lines
Quoted 16 lines
drivers/gpu/drm/i915/display/intel_display.c +2
-0+ static void enabled_joiner_pipes(struct drm_i915_private *dev_priv, u8 *primary_pipes, u8 *secondary_pipes) { u8 primary_uncompressed_joiner_pipes, primary_bigjoiner_pipes; u8 secondary_uncompressed_joiner_pipes, secondary_bigjoiner_pipes; + u8 uncompressed_joiner_pipes, bigjoiner_pipes; enabled_uncompressed_joiner_pipes(dev_priv, &primary_uncompressed_joiner_pipes, &secondary_uncompressed_joiner_pipes);@@ -3650,6 +3656,24 @@ static void enabled_joiner_pipes(structdrm_i915_private *dev_priv, enabled_bigjoiner_pipes(dev_priv, &primary_bigjoiner_pipes, &secondary_bigjoiner_pipes);+
uncompressed_joiner_pipes=primary_uncompressed_joiner_pipes| +secondary_uncompressed_joiner_pipes;Quoted 8 lines
+
bigjoiner_pipes=primary_bigjoiner_pipes|secondary_bigjoiner_pipes;
+
+ drm_WARN(&dev_priv->drm, (uncompressed_joiner_pipes&bigjoiner_pipes) != 0,
+ "Uncomressed joiner pipes(%x) and bigjoiner pipes(%x) can't intersect\n",
+uncompressed_joiner_pipes,bigjoiner_pipes);Please use 0x%x for printing hex numbers
Side note: maybe we should switch to the standard %#x instead? Though we'd need to double check whether
prink()follows the idiotic C standard or not:
printf("%#x", 1)->0x1, for any non-zero value bs.
printf("%#x", 0)-> 0 (sigh)
Quoted 4 lines
Quoted 2 lines
If
printk()behaves the same way then I want to see %#x anywhere (pretty sure we do use it in a few places already though).I will check how %#x behaves with 0 with printk, accordingly will use 0x%x or %x#x, (we do use it in some places).
Just checked, with printk(), %x#x with 0, prints 0x0 unlike printf() which prints 0, so %x#x it is then.
Quoted 23 lines
Regards,
Ankit
Quoted 18 lines
Quoted 18 lines
+ drm_WARN(&dev_priv->drm,
secondary_bigjoiner_pipes!=
+expected_secondary_pipes(primary_bigjoiner_pipes), + "Wrong secondary bigjoinerpipes(expected %x, current %x)\n", +expected_secondary_pipes(primary_bigjoiner_pipes), +secondary_bigjoiner_pipes);
+ drm_WARN(&dev_priv->drm,secondary_uncompressed_joiner_pipes!=
+expected_secondary_pipes(primary_uncompressed_joiner_pipes), + "Wrong secondary uncompressed joinerpipes(expected %x, current %x)\n",
+expected_secondary_pipes(primary_uncompressed_joiner_pipes), +secondary_uncompressed_joiner_pipes);
+
*primary_pipes= 0;
*secondary_pipes= 0;
--
2.45.2
PATCH 8/14 drm/i915: Implement hw state readout and checks for ultrajoiner
In reply to Ankit NautiyalFrom: Stanislav Lisovskiy <[email protected]>
Ultrajoiner mode has some new bits and states to be read out from the hw. Lets make changes accordingly.
v2: Fix checkpatch warnings. (Ankit)
v3: Add separate functions for computing expected secondary_big/ultrajoiner pipes. (Ankit)
--- drivers/gpu/drm/i915/display/intel_display.c | 133 ++++++++++++++---- .../gpu/drm/i915/display/intel_vdsc_regs.h | 3 + 2 files changed, 108 insertions(+), 28 deletions(-)
drivers/gpu/drm/i915/display/intel_display.c +105 -28
@@ -3638,17 +3638,63 @@ static void enabled_bigjoiner_pipes(struct drm_i915_private *dev_priv, } } -static u8 expected_secondary_pipes (u8 primary_pipes) +static void enabled_ultrajoiner_pipes (struct drm_i915_private *i915, +u8 *primary_pipes,u8 *secondary_pipes) { +struct intel_crtc *crtc; + + *primary_pipes =0 ; + *secondary_pipes =0 ; + +if (DISPLAY_VER (i915) <14 ) +return ; + +for_each_intel_crtc_in_pipe_mask (&i915->drm, crtc, +joiner_pipes (i915)) { +enum intel_display_power_domain power_domain; +enum pipe pipe = crtc->pipe; +intel_wakeref_t wakeref; + + power_domain =intel_dsc_power_domain (crtc, (enum transcoder )pipe); + with_intel_display_power_if_enabled(i915, power_domain, wakeref) { +u32 tmp =intel_de_read (i915,ICL_PIPE_DSS_CTL1 (pipe)); + +if (!(tmp &ULTRA_JOINER_ENABLE )) +continue ; + +if (tmp &PRIMARY_ULTRA_JOINER_ENABLE ) + *primary_pipes |=BIT (pipe); +else + *secondary_pipes |=BIT (pipe); + } + } +} + +static u8 expected_secondary_bigjoiner_pipes (u8 primary_pipes) +{ +if (!primary_pipes) +return 0 ; +return primary_pipes <<1 ; } +static u8 expected_secondary_ultrajoiner_pipes (u8 primary_pipes) +{ +if (!primary_pipes) +return 0 ; + +return GENMASK (2 , primary_pipes); +} +static void enabled_joiner_pipes (struct drm_i915_private *dev_priv, -u8 *primary_pipes,u8 *secondary_pipes) +u8 *primary_pipes,u8 *secondary_pipes, +bool *ultrajoiner_used) {u8 primary_uncompressed_joiner_pipes, primary_bigjoiner_pipes; +u8 primary_ultrajoiner_pipes;u8 secondary_uncompressed_joiner_pipes, secondary_bigjoiner_pipes; -u8 uncompressed_joiner_pipes, bigjoiner_pipes; +u8 secondary_ultrajoiner_pipes; +u8 uncompressed_joiner_pipes, bigjoiner_pipes, ultrajoiner_pipes;enabled_uncompressed_joiner_pipes (dev_priv, &primary_uncompressed_joiner_pipes, &secondary_uncompressed_joiner_pipes);
@@ -3656,33 +3702,50 @@ static void enabled_joiner_pipes(struct drm_i915_private *dev_priv,enabled_bigjoiner_pipes (dev_priv, &primary_bigjoiner_pipes, &secondary_bigjoiner_pipes); +enabled_ultrajoiner_pipes (dev_priv, &primary_ultrajoiner_pipes, + &secondary_ultrajoiner_pipes); + uncompressed_joiner_pipes = primary_uncompressed_joiner_pipes | secondary_uncompressed_joiner_pipes; bigjoiner_pipes = primary_bigjoiner_pipes | secondary_bigjoiner_pipes; + ultrajoiner_pipes = primary_ultrajoiner_pipes | secondary_ultrajoiner_pipes; + *ultrajoiner_used = ultrajoiner_pipes !=0 ;drm_WARN (&dev_priv->drm, (uncompressed_joiner_pipes & bigjoiner_pipes) !=0 ,"Uncomressed joiner pipes(%x) and bigjoiner pipes(%x) can't intersect\n" , uncompressed_joiner_pipes, bigjoiner_pipes); +drm_WARN (&dev_priv->drm, (ultrajoiner_pipes & bigjoiner_pipes) != ultrajoiner_pipes, +"Ultrajoiner pipes(%x) should be bigjoiner pipes(%x)\n" , + ultrajoiner_pipes, bigjoiner_pipes); +drm_WARN (&dev_priv->drm, secondary_bigjoiner_pipes != -expected_secondary_pipes (primary_bigjoiner_pipes), +expected_secondary_bigjoiner_pipes (primary_bigjoiner_pipes),"Wrong secondary bigjoiner pipes(expected %x, current %x)\n" , -expected_secondary_pipes (primary_bigjoiner_pipes), +expected_secondary_bigjoiner_pipes (primary_bigjoiner_pipes), secondary_bigjoiner_pipes);drm_WARN (&dev_priv->drm, secondary_uncompressed_joiner_pipes != -expected_secondary_pipes (primary_uncompressed_joiner_pipes), +expected_secondary_bigjoiner_pipes (primary_uncompressed_joiner_pipes),"Wrong secondary uncompressed joiner pipes(expected %x, current %x)\n" , -expected_secondary_pipes (primary_uncompressed_joiner_pipes), +expected_secondary_bigjoiner_pipes (primary_uncompressed_joiner_pipes), secondary_uncompressed_joiner_pipes); +drm_WARN (&dev_priv->drm, secondary_ultrajoiner_pipes != +expected_secondary_ultrajoiner_pipes (primary_ultrajoiner_pipes), +"Wrong secondary ultrajoiner pipes(expected %x, current %x)\n" , +expected_secondary_ultrajoiner_pipes (primary_ultrajoiner_pipes), + secondary_ultrajoiner_pipes); *primary_pipes =0 ; *secondary_pipes =0 ; - *primary_pipes = primary_uncompressed_joiner_pipes | primary_bigjoiner_pipes; + *primary_pipes = primary_uncompressed_joiner_pipes | primary_bigjoiner_pipes | + primary_ultrajoiner_pipes; - *secondary_pipes = secondary_uncompressed_joiner_pipes | secondary_bigjoiner_pipes; + *secondary_pipes = secondary_uncompressed_joiner_pipes | secondary_bigjoiner_pipes | + secondary_ultrajoiner_pipes; } -static enum pipe get_joiner_primary_pipe (enum pipe pipe,u8 primary_pipes,u8 secondary_pipes) +static enum pipe get_joiner_primary_pipe (enum pipe pipe,u8 primary_pipes, +u8 secondary_pipes,bool ultrajoiner_used) {if ((secondary_pipes &BIT (pipe)) ==0 )return pipe;
@@ -3690,27 +3753,37 @@ static enum pipe get_joiner_primary_pipe(enum pipe pipe, u8 primary_pipes, u8 se/* ignore everything above our pipe */ primary_pipes &= ~GENMASK (7 , pipe); -/* highest remaining bit should be our primary pipe */ -return fls (primary_pipes) -1 ; +if (!ultrajoiner_used) +/* highest remaining bit should be our master pipe */ +return fls (primary_pipes) -1 ; + +/* lowest remaining bit should be our primary master pipe */ +return ffs (primary_pipes) -1 ; } -static u8 get_joiner_secondary_pipes (enum pipe pipe,u8 primary_pipes,u8 secondary_pipes) +static u8 get_joiner_secondary_pipes (enum pipe pipe,u8 primary_pipes, +u8 secondary_pipes,bool ultrajoiner_used) {enum pipe primary_pipe, next_primary_pipe; - primary_pipe =get_joiner_primary_pipe (pipe, primary_pipes, secondary_pipes); + primary_pipe =get_joiner_primary_pipe (pipe, primary_pipes, + secondary_pipes, ultrajoiner_used);if ((primary_pipes &BIT (primary_pipe)) ==0 )return 0 ; -/* ignore our primary pipe and everything below it */ - primary_pipes &= ~GENMASK (primary_pipe,0 ); -/* make sure a high bit is set for the ffs() */ - primary_pipes |=BIT (7 ); -/* lowest remaining bit should be the next primary pipe */ - next_primary_pipe =ffs (primary_pipes) -1 ; +if (!ultrajoiner_used) { +/* ignore our primary pipe and everything below it */ + primary_pipes &= ~GENMASK (primary_pipe,0 ); +/* make sure a high bit is set for the ffs() */ + primary_pipes |=BIT (7 ); +/* lowest remaining bit should be the next primary pipe */ + next_primary_pipe =ffs (primary_pipes) -1 ; -return secondary_pipes &GENMASK (next_primary_pipe -1 , primary_pipe); +return secondary_pipes &GENMASK (next_primary_pipe -1 , primary_pipe); + }else { +return (secondary_pipes | primary_pipes) & ~BIT (primary_pipe); + } }static u8 hsw_panel_transcoders (struct drm_i915_private *i915)
@@ -3731,6 +3804,7 @@ static u8 hsw_enabled_transcoders(struct intel_crtc *crtc)enum transcoder cpu_transcoder;u8 primary_pipes, secondary_pipes;u8 enabled_transcoders =0 ; +bool ultrajoiner_used;/* * XXX: Do intel_display_power_get_if_enabled before reading this (for
@@ -3781,11 +3855,12 @@ static u8 hsw_enabled_transcoders(struct intel_crtc *crtc)if (transcoder_ddi_func_is_enabled (dev_priv, cpu_transcoder)) enabled_transcoders |=BIT (cpu_transcoder); -/* joiner secondary -> consider the primary pipe's transcoder as well */ -enabled_joiner_pipes (dev_priv, &primary_pipes, &secondary_pipes); +/* joiner slave -> consider the master pipe's transcoder as well */ +enabled_joiner_pipes (dev_priv, &primary_pipes, &secondary_pipes, &ultrajoiner_used);if (secondary_pipes &BIT (crtc->pipe)) { cpu_transcoder = (enum transcoder ) -get_joiner_primary_pipe (crtc->pipe, primary_pipes, secondary_pipes); +get_joiner_primary_pipe (crtc->pipe, primary_pipes, + secondary_pipes, ultrajoiner_used);if (transcoder_ddi_func_is_enabled (dev_priv, cpu_transcoder)) enabled_transcoders |=BIT (cpu_transcoder); }
@@ -3917,16 +3992,18 @@ static void intel_joiner_get_config(struct intel_crtc_state *crtc_state)struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);struct drm_i915_private *i915 =to_i915 (crtc->base.dev);u8 primary_pipes, secondary_pipes; +bool ultrajoiner_used;enum pipe pipe = crtc->pipe; -enabled_joiner_pipes (i915, &primary_pipes, &secondary_pipes); +enabled_joiner_pipes (i915, &primary_pipes, &secondary_pipes, &ultrajoiner_used);if (((primary_pipes | secondary_pipes) &BIT (pipe)) ==0 )return ; - crtc_state->joiner_pipes = -BIT (get_joiner_primary_pipe (pipe, primary_pipes, secondary_pipes)) | -get_joiner_secondary_pipes (pipe, primary_pipes, secondary_pipes); + crtc_state->joiner_pipes =BIT (get_joiner_primary_pipe (pipe, primary_pipes, + secondary_pipes, ultrajoiner_used)) | +get_joiner_secondary_pipes (pipe, primary_pipes, + secondary_pipes, ultrajoiner_used); } static bool hsw_get_pipe_config(struct intel_crtc *crtc,
drivers/gpu/drm/i915/display/intel_vdsc_regs.h +3 -0
@@ -37,6 +37,9 @@#define SPLITTER_CONFIGURATION_MASK REG_GENMASK(26, 25)#define SPLITTER_CONFIGURATION_2_SEGMENT REG_FIELD_PREP(SPLITTER_CONFIGURATION_MASK, 0)#define SPLITTER_CONFIGURATION_4_SEGMENT REG_FIELD_PREP(SPLITTER_CONFIGURATION_MASK, 1) + +#define ULTRA_JOINER_ENABLE REG_BIT(23) +#define PRIMARY_ULTRA_JOINER_ENABLE REG_BIT(22)#define UNCOMPRESSED_JOINER_PRIMARY (1 << 21)#define UNCOMPRESSED_JOINER_SECONDARY (1 << 20)
Signature · 1 line
2.45.2
Re: [PATCH 08/14] drm/i915: Implement hw state readout and checks for ultrajoiner
Quoted 53 lines · Ankit Nautiyal
From: Stanislav Lisovskiy <[email protected]>
Ultrajoiner mode has some new bits and states to be read out from the hw. Lets make changes accordingly.
v2: Fix checkpatch warnings. (Ankit)
v3: Add separate functions for computing expected secondary_big/ultrajoiner pipes. (Ankit)Signed-off-by Stanislav Lisovskiy <[email protected]>Signed-off-by Ankit Nautiyal <[email protected]>--- drivers/gpu/drm/i915/display/intel_display.c | 133 ++++++++++++++---- .../gpu/drm/i915/display/intel_vdsc_regs.h | 3 + 2 files changed, 108 insertions(+), 28 deletions(-)drivers/gpu/drm/i915/display/intel_display.c +27
-1@@ -3638,17 +3638,63 @@ static void enabled_bigjoiner_pipes(struct drm_i915_private *dev_priv, } } -static u8 expected_secondary_pipes (u8 primary_pipes) +static void enabled_ultrajoiner_pipes (struct drm_i915_private *i915, +u8 *primary_pipes,u8 *secondary_pipes) { +struct intel_crtc *crtc; + + *primary_pipes =0 ; + *secondary_pipes =0 ; + +if (DISPLAY_VER (i915) <14 ) +return ; + +for_each_intel_crtc_in_pipe_mask (&i915->drm, crtc, +joiner_pipes (i915)) { +enum intel_display_power_domain power_domain; +enum pipe pipe = crtc->pipe; +intel_wakeref_t wakeref; + + power_domain =intel_dsc_power_domain (crtc, (enum transcoder )pipe); + with_intel_display_power_if_enabled(i915, power_domain, wakeref) { +u32 tmp =intel_de_read (i915,ICL_PIPE_DSS_CTL1 (pipe)); + +if (!(tmp &ULTRA_JOINER_ENABLE )) +continue ; + +if (tmp &PRIMARY_ULTRA_JOINER_ENABLE ) + *primary_pipes |=BIT (pipe); +else + *secondary_pipes |=BIT (pipe);
drivers/gpu/drm/i915/display/intel_display.c static void enabled_bigjoiner_pipes(struct drm_i915_private *dev_priv, · line 3678
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display.c +9
-0+ } + } +} + +static u8 expected_secondary_bigjoiner_pipes (u8 primary_pipes) +{ +if (!primary_pipes) +return 0 ; +return primary_pipes <<1 ;
What is "0 << 1"?
drivers/gpu/drm/i915/display/intel_display.c static void enabled_bigjoiner_pipes(struct drm_i915_private *dev_priv, · line 3686
Quoted 8 lines
drivers/gpu/drm/i915/display/intel_display.c +6
-0} +static u8 expected_secondary_ultrajoiner_pipes (u8 primary_pipes) +{ +if (!primary_pipes) +return 0 ; + +return GENMASK (2 , primary_pipes);
That looks like nonsense.
Looks like I had some ideas how to do these in a generic fashion:
https://lore.kernel.org/intel-gfx/[email protected]/
Quoted 110 lines
drivers/gpu/drm/i915/display/intel_display.c +44
-19+} +static void enabled_joiner_pipes (struct drm_i915_private *dev_priv, -u8 *primary_pipes,u8 *secondary_pipes) +u8 *primary_pipes,u8 *secondary_pipes, +bool *ultrajoiner_used) {u8 primary_uncompressed_joiner_pipes, primary_bigjoiner_pipes; +u8 primary_ultrajoiner_pipes;u8 secondary_uncompressed_joiner_pipes, secondary_bigjoiner_pipes; -u8 uncompressed_joiner_pipes, bigjoiner_pipes; +u8 secondary_ultrajoiner_pipes; +u8 uncompressed_joiner_pipes, bigjoiner_pipes, ultrajoiner_pipes;enabled_uncompressed_joiner_pipes (dev_priv, &primary_uncompressed_joiner_pipes, &secondary_uncompressed_joiner_pipes);@@ -3656,33 +3702,50 @@ static void enabled_joiner_pipes(struct drm_i915_private *dev_priv,enabled_bigjoiner_pipes (dev_priv, &primary_bigjoiner_pipes, &secondary_bigjoiner_pipes); +enabled_ultrajoiner_pipes (dev_priv, &primary_ultrajoiner_pipes, + &secondary_ultrajoiner_pipes); + uncompressed_joiner_pipes = primary_uncompressed_joiner_pipes | secondary_uncompressed_joiner_pipes; bigjoiner_pipes = primary_bigjoiner_pipes | secondary_bigjoiner_pipes; + ultrajoiner_pipes = primary_ultrajoiner_pipes | secondary_ultrajoiner_pipes; + *ultrajoiner_used = ultrajoiner_pipes !=0 ;drm_WARN (&dev_priv->drm, (uncompressed_joiner_pipes & bigjoiner_pipes) !=0 ,"Uncomressed joiner pipes(%x) and bigjoiner pipes(%x) can't intersect\n" , uncompressed_joiner_pipes, bigjoiner_pipes); +drm_WARN (&dev_priv->drm, (ultrajoiner_pipes & bigjoiner_pipes) != ultrajoiner_pipes, +"Ultrajoiner pipes(%x) should be bigjoiner pipes(%x)\n" , + ultrajoiner_pipes, bigjoiner_pipes); +drm_WARN (&dev_priv->drm, secondary_bigjoiner_pipes != -expected_secondary_pipes (primary_bigjoiner_pipes), +expected_secondary_bigjoiner_pipes (primary_bigjoiner_pipes),"Wrong secondary bigjoiner pipes(expected %x, current %x)\n" , -expected_secondary_pipes (primary_bigjoiner_pipes), +expected_secondary_bigjoiner_pipes (primary_bigjoiner_pipes), secondary_bigjoiner_pipes);drm_WARN (&dev_priv->drm, secondary_uncompressed_joiner_pipes != -expected_secondary_pipes (primary_uncompressed_joiner_pipes), +expected_secondary_bigjoiner_pipes (primary_uncompressed_joiner_pipes),"Wrong secondary uncompressed joiner pipes(expected %x, current %x)\n" , -expected_secondary_pipes (primary_uncompressed_joiner_pipes), +expected_secondary_bigjoiner_pipes (primary_uncompressed_joiner_pipes), secondary_uncompressed_joiner_pipes); +drm_WARN (&dev_priv->drm, secondary_ultrajoiner_pipes != +expected_secondary_ultrajoiner_pipes (primary_ultrajoiner_pipes), +"Wrong secondary ultrajoiner pipes(expected %x, current %x)\n" , +expected_secondary_ultrajoiner_pipes (primary_ultrajoiner_pipes), + secondary_ultrajoiner_pipes); *primary_pipes =0 ; *secondary_pipes =0 ; - *primary_pipes = primary_uncompressed_joiner_pipes | primary_bigjoiner_pipes; + *primary_pipes = primary_uncompressed_joiner_pipes | primary_bigjoiner_pipes | + primary_ultrajoiner_pipes; - *secondary_pipes = secondary_uncompressed_joiner_pipes | secondary_bigjoiner_pipes; + *secondary_pipes = secondary_uncompressed_joiner_pipes | secondary_bigjoiner_pipes | + secondary_ultrajoiner_pipes; } -static enum pipe get_joiner_primary_pipe (enum pipe pipe,u8 primary_pipes,u8 secondary_pipes) +static enum pipe get_joiner_primary_pipe (enum pipe pipe,u8 primary_pipes, +u8 secondary_pipes,bool ultrajoiner_used) {if ((secondary_pipes &BIT (pipe)) ==0 )return pipe;@@ -3690,27 +3753,37 @@ static enum pipe get_joiner_primary_pipe(enum pipe pipe, u8 primary_pipes, u8 se/* ignore everything above our pipe */ primary_pipes &= ~GENMASK (7 , pipe); -/* highest remaining bit should be our primary pipe */ -return fls (primary_pipes) -1 ; +if (!ultrajoiner_used) +/* highest remaining bit should be our master pipe */ +return fls (primary_pipes) -1 ; + +/* lowest remaining bit should be our primary master pipe */ +return ffs (primary_pipes) -1 ; } -static u8 get_joiner_secondary_pipes (enum pipe pipe,u8 primary_pipes,u8 secondary_pipes) +static u8 get_joiner_secondary_pipes (enum pipe pipe,u8 primary_pipes, +u8 secondary_pipes,bool ultrajoiner_used) {enum pipe primary_pipe, next_primary_pipe; - primary_pipe =get_joiner_primary_pipe (pipe, primary_pipes, secondary_pipes); + primary_pipe =get_joiner_primary_pipe (pipe, primary_pipes, + secondary_pipes, ultrajoiner_used);if ((primary_pipes &BIT (primary_pipe)) ==0 )return 0 ; -/* ignore our primary pipe and everything below it */ - primary_pipes &= ~GENMASK (primary_pipe,0 ); -/* make sure a high bit is set for the ffs() */ - primary_pipes |=BIT (7 ); -/* lowest remaining bit should be the next primary pipe */ - next_primary_pipe =ffs (primary_pipes) -1 ; +if (!ultrajoiner_used) { +/* ignore our primary pipe and everything below it */ + primary_pipes &= ~GENMASK (primary_pipe,0 );
drivers/gpu/drm/i915/display/intel_display.c static enum pipe get_joiner_primary_pipe(enum pipe pipe, u8 primary_pipes, u8 se · line 3786
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display.c +8
-1+/* make sure a high bit is set for the ffs() */ + primary_pipes |=BIT (7 ); +/* lowest remaining bit should be the next primary pipe */ + next_primary_pipe =ffs (primary_pipes) -1 ; -return secondary_pipes &GENMASK (next_primary_pipe -1 , primary_pipe); +return secondary_pipes &GENMASK (next_primary_pipe -1 , primary_pipe); + }else { +return (secondary_pipes | primary_pipes) & ~BIT (primary_pipe); + }
There are far too many things happening in this one patch. Needs to be split into sensible parts.
Quoted 66 lines
drivers/gpu/drm/i915/display/intel_display.c +11
-7}static u8 hsw_panel_transcoders (struct drm_i915_private *i915)@@ -3731,6 +3804,7 @@ static u8 hsw_enabled_transcoders(struct intel_crtc *crtc)enum transcoder cpu_transcoder;u8 primary_pipes, secondary_pipes;u8 enabled_transcoders =0 ; +bool ultrajoiner_used;/* * XXX: Do intel_display_power_get_if_enabled before reading this (for @@ -3781,11 +3855,12 @@ static u8 hsw_enabled_transcoders(struct intel_crtc *crtc)if (transcoder_ddi_func_is_enabled (dev_priv, cpu_transcoder)) enabled_transcoders |=BIT (cpu_transcoder); -/* joiner secondary -> consider the primary pipe's transcoder as well */ -enabled_joiner_pipes (dev_priv, &primary_pipes, &secondary_pipes); +/* joiner slave -> consider the master pipe's transcoder as well */ +enabled_joiner_pipes (dev_priv, &primary_pipes, &secondary_pipes, &ultrajoiner_used);if (secondary_pipes &BIT (crtc->pipe)) { cpu_transcoder = (enum transcoder ) -get_joiner_primary_pipe (crtc->pipe, primary_pipes, secondary_pipes); +get_joiner_primary_pipe (crtc->pipe, primary_pipes, + secondary_pipes, ultrajoiner_used);if (transcoder_ddi_func_is_enabled (dev_priv, cpu_transcoder)) enabled_transcoders |=BIT (cpu_transcoder); }@@ -3917,16 +3992,18 @@ static void intel_joiner_get_config(struct intel_crtc_state *crtc_state)struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);struct drm_i915_private *i915 =to_i915 (crtc->base.dev);u8 primary_pipes, secondary_pipes; +bool ultrajoiner_used;enum pipe pipe = crtc->pipe; -enabled_joiner_pipes (i915, &primary_pipes, &secondary_pipes); +enabled_joiner_pipes (i915, &primary_pipes, &secondary_pipes, &ultrajoiner_used);if (((primary_pipes | secondary_pipes) &BIT (pipe)) ==0 )return ; - crtc_state->joiner_pipes = -BIT (get_joiner_primary_pipe (pipe, primary_pipes, secondary_pipes)) | -get_joiner_secondary_pipes (pipe, primary_pipes, secondary_pipes); + crtc_state->joiner_pipes =BIT (get_joiner_primary_pipe (pipe, primary_pipes, + secondary_pipes, ultrajoiner_used)) | +get_joiner_secondary_pipes (pipe, primary_pipes, + secondary_pipes, ultrajoiner_used); } static bool hsw_get_pipe_config(struct intel_crtc *crtc,drivers/gpu/drm/i915/display/intel_vdsc_regs.h +3
-0@@ -37,6 +37,9 @@#define SPLITTER_CONFIGURATION_MASK REG_GENMASK(26, 25)#define SPLITTER_CONFIGURATION_2_SEGMENT REG_FIELD_PREP(SPLITTER_CONFIGURATION_MASK, 0)#define SPLITTER_CONFIGURATION_4_SEGMENT REG_FIELD_PREP(SPLITTER_CONFIGURATION_MASK, 1) + +#define ULTRA_JOINER_ENABLE REG_BIT(23) +#define PRIMARY_ULTRA_JOINER_ENABLE REG_BIT(22)#define UNCOMPRESSED_JOINER_PRIMARY (1 << 21)#define UNCOMPRESSED_JOINER_SECONDARY (1 << 20)Signature · 1 line
2.45.2
Signature · 2 lines
Ville Syrjälä Intel
Re: [PATCH 08/14] drm/i915: Implement hw state readout and checks for ultrajoiner
Quoted 76 lines · Ville Syrjälä
Quoted 53 lines · Ankit Nautiyal
From: Stanislav Lisovskiy <[email protected]>
Ultrajoiner mode has some new bits and states to be read out from the hw. Lets make changes accordingly.
v2: Fix checkpatch warnings. (Ankit)
v3: Add separate functions for computing expected secondary_big/ultrajoiner pipes. (Ankit)Signed-off-by Stanislav Lisovskiy <[email protected]>Signed-off-by Ankit Nautiyal <[email protected]>--- drivers/gpu/drm/i915/display/intel_display.c | 133 ++++++++++++++---- .../gpu/drm/i915/display/intel_vdsc_regs.h | 3 + 2 files changed, 108 insertions(+), 28 deletions(-)drivers/gpu/drm/i915/display/intel_display.c +27
-1@@ -3638,17 +3638,63 @@ static void enabled_bigjoiner_pipes(struct drm_i915_private *dev_priv, } } -static u8 expected_secondary_pipes (u8 primary_pipes) +static void enabled_ultrajoiner_pipes (struct drm_i915_private *i915, +u8 *primary_pipes,u8 *secondary_pipes) { +struct intel_crtc *crtc; + + *primary_pipes =0 ; + *secondary_pipes =0 ; + +if (DISPLAY_VER (i915) <14 ) +return ; + +for_each_intel_crtc_in_pipe_mask (&i915->drm, crtc, +joiner_pipes (i915)) { +enum intel_display_power_domain power_domain; +enum pipe pipe = crtc->pipe; +intel_wakeref_t wakeref; + + power_domain =intel_dsc_power_domain (crtc, (enum transcoder )pipe); + with_intel_display_power_if_enabled(i915, power_domain, wakeref) { +u32 tmp =intel_de_read (i915,ICL_PIPE_DSS_CTL1 (pipe)); + +if (!(tmp &ULTRA_JOINER_ENABLE )) +continue ; + +if (tmp &PRIMARY_ULTRA_JOINER_ENABLE ) + *primary_pipes |=BIT (pipe); +else + *secondary_pipes |=BIT (pipe);drivers/gpu/drm/i915/display/intel_display.c static void enabled_bigjoiner_pipes(struct drm_i915_private *dev_priv, · line 3678
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display.c +9
-0+ } + } +} + +static u8 expected_secondary_bigjoiner_pipes (u8 primary_pipes) +{ +if (!primary_pipes) +return 0 ; +return primary_pipes <<1 ;What is "0 << 1"?
drivers/gpu/drm/i915/display/intel_display.c static void enabled_bigjoiner_pipes(struct drm_i915_private *dev_priv, · line 3686
Quoted 8 lines
drivers/gpu/drm/i915/display/intel_display.c +6
-0} +static u8 expected_secondary_ultrajoiner_pipes (u8 primary_pipes) +{ +if (!primary_pipes) +return 0 ; + +return GENMASK (2 , primary_pipes);That looks like nonsense.
Quoted 2 lines
Looks like I had some ideas how to do these in a generic fashion:
https://lore.kernel.org/intel-gfx/[email protected]/
Will try this out and get back.
Quoted 116 lines
Quoted 116 lines
drivers/gpu/drm/i915/display/intel_display.c +48
-19+} +static void enabled_joiner_pipes (struct drm_i915_private *dev_priv, -u8 *primary_pipes,u8 *secondary_pipes) +u8 *primary_pipes,u8 *secondary_pipes, +bool *ultrajoiner_used) {u8 primary_uncompressed_joiner_pipes, primary_bigjoiner_pipes; +u8 primary_ultrajoiner_pipes;u8 secondary_uncompressed_joiner_pipes, secondary_bigjoiner_pipes; -u8 uncompressed_joiner_pipes, bigjoiner_pipes; +u8 secondary_ultrajoiner_pipes; +u8 uncompressed_joiner_pipes, bigjoiner_pipes, ultrajoiner_pipes;enabled_uncompressed_joiner_pipes (dev_priv, &primary_uncompressed_joiner_pipes, &secondary_uncompressed_joiner_pipes);@@ -3656,33 +3702,50 @@ static void enabled_joiner_pipes(struct drm_i915_private *dev_priv,enabled_bigjoiner_pipes (dev_priv, &primary_bigjoiner_pipes, &secondary_bigjoiner_pipes); +enabled_ultrajoiner_pipes (dev_priv, &primary_ultrajoiner_pipes, + &secondary_ultrajoiner_pipes); + uncompressed_joiner_pipes = primary_uncompressed_joiner_pipes | secondary_uncompressed_joiner_pipes; bigjoiner_pipes = primary_bigjoiner_pipes | secondary_bigjoiner_pipes; + ultrajoiner_pipes = primary_ultrajoiner_pipes | secondary_ultrajoiner_pipes; + *ultrajoiner_used = ultrajoiner_pipes !=0 ;drm_WARN (&dev_priv->drm, (uncompressed_joiner_pipes & bigjoiner_pipes) !=0 ,"Uncomressed joiner pipes(%x) and bigjoiner pipes(%x) can't intersect\n" , uncompressed_joiner_pipes, bigjoiner_pipes); +drm_WARN (&dev_priv->drm, (ultrajoiner_pipes & bigjoiner_pipes) != ultrajoiner_pipes, +"Ultrajoiner pipes(%x) should be bigjoiner pipes(%x)\n" , + ultrajoiner_pipes, bigjoiner_pipes); +drm_WARN (&dev_priv->drm, secondary_bigjoiner_pipes != -expected_secondary_pipes (primary_bigjoiner_pipes), +expected_secondary_bigjoiner_pipes (primary_bigjoiner_pipes),"Wrong secondary bigjoiner pipes(expected %x, current %x)\n" , -expected_secondary_pipes (primary_bigjoiner_pipes), +expected_secondary_bigjoiner_pipes (primary_bigjoiner_pipes), secondary_bigjoiner_pipes);drm_WARN (&dev_priv->drm, secondary_uncompressed_joiner_pipes != -expected_secondary_pipes (primary_uncompressed_joiner_pipes), +expected_secondary_bigjoiner_pipes (primary_uncompressed_joiner_pipes),"Wrong secondary uncompressed joiner pipes(expected %x, current %x)\n" , -expected_secondary_pipes (primary_uncompressed_joiner_pipes), +expected_secondary_bigjoiner_pipes (primary_uncompressed_joiner_pipes), secondary_uncompressed_joiner_pipes); +drm_WARN (&dev_priv->drm, secondary_ultrajoiner_pipes != +expected_secondary_ultrajoiner_pipes (primary_ultrajoiner_pipes), +"Wrong secondary ultrajoiner pipes(expected %x, current %x)\n" , +expected_secondary_ultrajoiner_pipes (primary_ultrajoiner_pipes), + secondary_ultrajoiner_pipes); *primary_pipes =0 ; *secondary_pipes =0 ; - *primary_pipes = primary_uncompressed_joiner_pipes | primary_bigjoiner_pipes; + *primary_pipes = primary_uncompressed_joiner_pipes | primary_bigjoiner_pipes | + primary_ultrajoiner_pipes; - *secondary_pipes = secondary_uncompressed_joiner_pipes | secondary_bigjoiner_pipes; + *secondary_pipes = secondary_uncompressed_joiner_pipes | secondary_bigjoiner_pipes | + secondary_ultrajoiner_pipes; } -static enum pipe get_joiner_primary_pipe (enum pipe pipe,u8 primary_pipes,u8 secondary_pipes) +static enum pipe get_joiner_primary_pipe (enum pipe pipe,u8 primary_pipes, +u8 secondary_pipes,bool ultrajoiner_used) {if ((secondary_pipes &BIT (pipe)) ==0 )return pipe;@@ -3690,27 +3753,37 @@ static enum pipe get_joiner_primary_pipe(enum pipe pipe, u8 primary_pipes, u8 se/* ignore everything above our pipe */ primary_pipes &= ~GENMASK (7 , pipe); -/* highest remaining bit should be our primary pipe */ -return fls (primary_pipes) -1 ; +if (!ultrajoiner_used) +/* highest remaining bit should be our master pipe */ +return fls (primary_pipes) -1 ; + +/* lowest remaining bit should be our primary master pipe */ +return ffs (primary_pipes) -1 ; } -static u8 get_joiner_secondary_pipes (enum pipe pipe,u8 primary_pipes,u8 secondary_pipes) +static u8 get_joiner_secondary_pipes (enum pipe pipe,u8 primary_pipes, +u8 secondary_pipes,bool ultrajoiner_used) {enum pipe primary_pipe, next_primary_pipe; - primary_pipe =get_joiner_primary_pipe (pipe, primary_pipes, secondary_pipes); + primary_pipe =get_joiner_primary_pipe (pipe, primary_pipes, + secondary_pipes, ultrajoiner_used);if ((primary_pipes &BIT (primary_pipe)) ==0 )return 0 ; -/* ignore our primary pipe and everything below it */ - primary_pipes &= ~GENMASK (primary_pipe,0 ); -/* make sure a high bit is set for the ffs() */ - primary_pipes |=BIT (7 ); -/* lowest remaining bit should be the next primary pipe */ - next_primary_pipe =ffs (primary_pipes) -1 ; +if (!ultrajoiner_used) { +/* ignore our primary pipe and everything below it */ + primary_pipes &= ~GENMASK (primary_pipe,0 ); +/* make sure a high bit is set for the ffs() */ + primary_pipes |=BIT (7 ); +/* lowest remaining bit should be the next primary pipe */ + next_primary_pipe =ffs (primary_pipes) -1 ;
Quoted 7 lines
drivers/gpu/drm/i915/display/intel_display.c static enum pipe get_joiner_primary_pipe(enum pipe pipe, u8 primary_pipes, u8 se · line 3786
Quoted 5 lines
drivers/gpu/drm/i915/display/intel_display.c +4
-1-return secondary_pipes &GENMASK (next_primary_pipe -1 , primary_pipe); +return secondary_pipes &GENMASK (next_primary_pipe -1 , primary_pipe); + }else { +return (secondary_pipes | primary_pipes) & ~BIT (primary_pipe); + }There are far too many things happening in this one patch. Needs to be split into sensible parts.
Agreed, will split this into separate changes.
Regards,
Ankit
Quoted 67 lines
Quoted 67 lines
drivers/gpu/drm/i915/display/intel_display.c +11
-7}static u8 hsw_panel_transcoders (struct drm_i915_private *i915)@@ -3731,6 +3804,7 @@ static u8 hsw_enabled_transcoders(struct intel_crtc *crtc)enum transcoder cpu_transcoder;u8 primary_pipes, secondary_pipes;u8 enabled_transcoders =0 ; +bool ultrajoiner_used;/* * XXX: Do intel_display_power_get_if_enabled before reading this (for @@ -3781,11 +3855,12 @@ static u8 hsw_enabled_transcoders(struct intel_crtc *crtc)if (transcoder_ddi_func_is_enabled (dev_priv, cpu_transcoder)) enabled_transcoders |=BIT (cpu_transcoder); -/* joiner secondary -> consider the primary pipe's transcoder as well */ -enabled_joiner_pipes (dev_priv, &primary_pipes, &secondary_pipes); +/* joiner slave -> consider the master pipe's transcoder as well */ +enabled_joiner_pipes (dev_priv, &primary_pipes, &secondary_pipes, &ultrajoiner_used);if (secondary_pipes &BIT (crtc->pipe)) { cpu_transcoder = (enum transcoder ) -get_joiner_primary_pipe (crtc->pipe, primary_pipes, secondary_pipes); +get_joiner_primary_pipe (crtc->pipe, primary_pipes, + secondary_pipes, ultrajoiner_used);if (transcoder_ddi_func_is_enabled (dev_priv, cpu_transcoder)) enabled_transcoders |=BIT (cpu_transcoder); }@@ -3917,16 +3992,18 @@ static void intel_joiner_get_config(struct intel_crtc_state *crtc_state)struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);struct drm_i915_private *i915 =to_i915 (crtc->base.dev);u8 primary_pipes, secondary_pipes; +bool ultrajoiner_used;enum pipe pipe = crtc->pipe; -enabled_joiner_pipes (i915, &primary_pipes, &secondary_pipes); +enabled_joiner_pipes (i915, &primary_pipes, &secondary_pipes, &ultrajoiner_used);if (((primary_pipes | secondary_pipes) &BIT (pipe)) ==0 )return ; - crtc_state->joiner_pipes = -BIT (get_joiner_primary_pipe (pipe, primary_pipes, secondary_pipes)) | -get_joiner_secondary_pipes (pipe, primary_pipes, secondary_pipes); + crtc_state->joiner_pipes =BIT (get_joiner_primary_pipe (pipe, primary_pipes, + secondary_pipes, ultrajoiner_used)) | +get_joiner_secondary_pipes (pipe, primary_pipes, + secondary_pipes, ultrajoiner_used); } static bool hsw_get_pipe_config(struct intel_crtc *crtc,drivers/gpu/drm/i915/display/intel_vdsc_regs.h +3
-0@@ -37,6 +37,9 @@#define SPLITTER_CONFIGURATION_MASK REG_GENMASK(26, 25)#define SPLITTER_CONFIGURATION_2_SEGMENT REG_FIELD_PREP(SPLITTER_CONFIGURATION_MASK, 0)#define SPLITTER_CONFIGURATION_4_SEGMENT REG_FIELD_PREP(SPLITTER_CONFIGURATION_MASK, 1) + +#define ULTRA_JOINER_ENABLE REG_BIT(23) +#define PRIMARY_ULTRA_JOINER_ENABLE REG_BIT(22)#define UNCOMPRESSED_JOINER_PRIMARY (1 << 21)#define UNCOMPRESSED_JOINER_SECONDARY (1 << 20)Signature · 1 line
2.45.2
PATCH 9/14 drm/i915/display: Add helpers to check for ultrajoiner primary
In reply to Ankit NautiyalAdd helpers to check if ultrajoiner is used and to check for ultrajoiner primary.
--- drivers/gpu/drm/i915/display/intel_display.c | 13 +++++++++++++ drivers/gpu/drm/i915/display/intel_display.h | 2 ++ drivers/gpu/drm/i915/display/intel_display_types.h | 1 + 3 files changed, 16 insertions(+)
drivers/gpu/drm/i915/display/intel_display.c +13 -0
@@ -298,6 +298,19 @@ bool intel_crtc_is_bigjoiner_secondary(const struct intel_crtc_state *crtc_statereturn !intel_crtc_is_bigjoiner_primary (crtc_state); } +bool intel_crtc_is_ultrajoiner (const struct intel_crtc_state *crtc_state) +{ +return intel_joiner_num_pipes (crtc_state) ==INTEL_ULTRA_JOINER_PIPES ; +} + +bool intel_crtc_is_ultrajoiner_primary (const struct intel_crtc_state *crtc_state) +{ +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc); + +return intel_crtc_is_ultrajoiner (crtc_state) && + (crtc->pipe ==joiner_primary_pipe (crtc_state)); +} +u8 intel_crtc_joiner_secondary_pipes (const struct intel_crtc_state *crtc_state) {if (crtc_state->joiner_pipes)
drivers/gpu/drm/i915/display/intel_display.h +2 -0
@@ -428,6 +428,8 @@ bool intel_crtc_is_joiner_primary(const struct intel_crtc_state *crtc_state);bool intel_crtc_is_joiner_secondary (const struct intel_crtc_state *crtc_state);bool intel_crtc_is_bigjoiner_primary (const struct intel_crtc_state *crtc_state);bool intel_crtc_is_bigjoiner_secondary (const struct intel_crtc_state *crtc_state); +bool intel_crtc_is_ultrajoiner (const struct intel_crtc_state *crtc_state); +bool intel_crtc_is_ultrajoiner_primary (const struct intel_crtc_state *crtc_state);u8 intel_crtc_joiner_secondary_pipes (const struct intel_crtc_state *crtc_state);struct intel_crtc *intel_joiner_primary_crtc (const struct intel_crtc_state *crtc_state);bool intel_crtc_get_pipe_config (struct intel_crtc_state *crtc_state);
drivers/gpu/drm/i915/display/intel_display_types.h +1 -0
@@ -489,6 +489,7 @@ struct intel_hdcp {enum intel_joiner_pipe_count {INTEL_NONE_JOINER_PIPES =0 ,INTEL_BIG_JOINER_PIPES =2 , +INTEL_ULTRA_JOINER_PIPES =4 ,INTEL_INVALID_JOINER_PIPES , };
Signature · 1 line
2.45.2
PATCH 10/14 drm/i915/display/vdsc: Add ultrajoiner support with DSC
In reply to Ankit NautiyalFrom: Stanislav Lisovskiy <[email protected]>
Add changes to DSC which are required for Ultrajoiner.
v2:
-Use correct helper for setting bits for bigjoiner secondary. (Ankit) -Use enum for joiner pipe count instead magic numbers. (Suraj) -Use primary/secondary instead of master/slave. (Suraj)
--- drivers/gpu/drm/i915/display/intel_vdsc.c | 26 +++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/display/intel_vdsc.c +24 -2
@@ -379,9 +379,11 @@ static int intel_dsc_get_vdsc_per_pipe(const struct intel_crtc_state *crtc_stateint intel_dsc_get_num_vdsc_instances (const struct intel_crtc_state *crtc_state) {int num_vdsc_instances =intel_dsc_get_vdsc_per_pipe (crtc_state); +int joined_pipes =intel_joiner_num_pipes (crtc_state); -if (crtc_state->joiner_pipes) - num_vdsc_instances *=2 ; +if (joined_pipes ==INTEL_BIG_JOINER_PIPES || + joined_pipes ==INTEL_ULTRA_JOINER_PIPES ) + num_vdsc_instances *= joined_pipes;return num_vdsc_instances; }
@@ -751,6 +753,14 @@ void intel_uncompressed_joiner_enable(const struct intel_crtc_state *crtc_state) } } +static bool intel_crtc_ultrajoiner_enable_needed (const struct intel_crtc_state *crtc_state) +{ +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc); + +return intel_joiner_num_pipes (crtc_state) ==INTEL_ULTRA_JOINER_PIPES && + crtc->pipe !=PIPE_D ; +} +void intel_dsc_enable (const struct intel_crtc_state *crtc_state) {struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);
@@ -770,7 +780,19 @@ void intel_dsc_enable(const struct intel_crtc_state *crtc_state) dss_ctl1_val |=JOINER_ENABLE ; }if (crtc_state->joiner_pipes) { +/* +* This bit doesn't seem to follow primary/secondary logic or +* any other logic, so lets just add helper function to +* at least hide this hassle.. +*/ +if (intel_crtc_ultrajoiner_enable_needed (crtc_state)) + dss_ctl1_val |=ULTRA_JOINER_ENABLE ; + +if (intel_crtc_is_ultrajoiner_primary (crtc_state)) + dss_ctl1_val |=PRIMARY_ULTRA_JOINER_ENABLE ; + dss_ctl1_val |=BIG_JOINER_ENABLE ; +if (intel_crtc_is_bigjoiner_primary (crtc_state)) dss_ctl1_val |=PRIMARY_BIG_JOINER_ENABLE ; }
Signature · 1 line
2.45.2
Re: [PATCH 10/14] drm/i915/display/vdsc: Add ultrajoiner support with DSC
Quoted 49 lines · Ankit Nautiyal
From: Stanislav Lisovskiy <[email protected]>
Add changes to DSC which are required for Ultrajoiner.
v2:
(quoted diff) +0
-3-Use correct helper for setting bits for bigjoiner secondary. (Ankit) -Use enum for joiner pipe count instead magic numbers. (Suraj) -Use primary/secondary instead of master/slave. (Suraj)Signed-off-by Stanislav Lisovskiy <[email protected]>Signed-off-by Ankit Nautiyal <[email protected]>--- drivers/gpu/drm/i915/display/intel_vdsc.c | 26 +++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/display/intel_vdsc.c +12
-2@@ -379,9 +379,11 @@ static int intel_dsc_get_vdsc_per_pipe(const struct intel_crtc_state *crtc_stateint intel_dsc_get_num_vdsc_instances (const struct intel_crtc_state *crtc_state) {int num_vdsc_instances =intel_dsc_get_vdsc_per_pipe (crtc_state); +int joined_pipes =intel_joiner_num_pipes (crtc_state); -if (crtc_state->joiner_pipes) - num_vdsc_instances *=2 ; +if (joined_pipes ==INTEL_BIG_JOINER_PIPES || + joined_pipes ==INTEL_ULTRA_JOINER_PIPES ) + num_vdsc_instances *= joined_pipes;return num_vdsc_instances; }@@ -751,6 +753,14 @@ void intel_uncompressed_joiner_enable(const struct intel_crtc_state *crtc_state) } } +static bool intel_crtc_ultrajoiner_enable_needed (const struct intel_crtc_state *crtc_state) +{ +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc); + +return intel_joiner_num_pipes (crtc_state) ==INTEL_ULTRA_JOINER_PIPES && + crtc->pipe !=PIPE_D ; +} +void intel_dsc_enable (const struct intel_crtc_state *crtc_state) {struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);
drivers/gpu/drm/i915/display/intel_vdsc.c void intel_dsc_enable(const struct intel_crtc_state *crtc_state) · line 788
Quoted 9 lines
drivers/gpu/drm/i915/display/intel_vdsc.c +6
-0@@ -770,7 +780,19 @@ void intel_dsc_enable(const struct intel_crtc_state *crtc_state) dss_ctl1_val |=JOINER_ENABLE ; }if (crtc_state->joiner_pipes) { +/* +* This bit doesn't seem to follow primary/secondary logic or +* any other logic, so lets just add helper function to +* at least hide this hassle.. +*/ +if (intel_crtc_ultrajoiner_enable_needed (crtc_state))
What is this crazyness? This would throw a big wrench into the works, eg. the ultrajoiner readout would not work as intended.
Quoted 12 lines
drivers/gpu/drm/i915/display/intel_vdsc.c +6
-0+ dss_ctl1_val |=ULTRA_JOINER_ENABLE ; + +if (intel_crtc_is_ultrajoiner_primary (crtc_state)) + dss_ctl1_val |=PRIMARY_ULTRA_JOINER_ENABLE ; + dss_ctl1_val |=BIG_JOINER_ENABLE ; +if (intel_crtc_is_bigjoiner_primary (crtc_state)) dss_ctl1_val |=PRIMARY_BIG_JOINER_ENABLE ; }Signature · 1 line
2.45.2
Signature · 2 lines
Ville Syrjälä Intel
Re: [PATCH 10/14] drm/i915/display/vdsc: Add ultrajoiner support with DSC
Quoted 54 lines · Ville Syrjälä
Quoted 53 lines · Ankit Nautiyal
From: Stanislav Lisovskiy <[email protected]>
Add changes to DSC which are required for Ultrajoiner.
v2:
(quoted diff) +0
-3-Use correct helper for setting bits for bigjoiner secondary. (Ankit) -Use enum for joiner pipe count instead magic numbers. (Suraj) -Use primary/secondary instead of master/slave. (Suraj)Signed-off-by Stanislav Lisovskiy <[email protected]>Signed-off-by Ankit Nautiyal <[email protected]>--- drivers/gpu/drm/i915/display/intel_vdsc.c | 26 +++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/display/intel_vdsc.c +13
-2@@ -379,9 +379,11 @@ static int intel_dsc_get_vdsc_per_pipe(const struct intel_crtc_state *crtc_stateint intel_dsc_get_num_vdsc_instances (const struct intel_crtc_state *crtc_state) {int num_vdsc_instances =intel_dsc_get_vdsc_per_pipe (crtc_state); +int joined_pipes =intel_joiner_num_pipes (crtc_state); -if (crtc_state->joiner_pipes) - num_vdsc_instances *=2 ; +if (joined_pipes ==INTEL_BIG_JOINER_PIPES || + joined_pipes ==INTEL_ULTRA_JOINER_PIPES ) + num_vdsc_instances *= joined_pipes;return num_vdsc_instances; }@@ -751,6 +753,14 @@ void intel_uncompressed_joiner_enable(const struct intel_crtc_state *crtc_state) } } +static bool intel_crtc_ultrajoiner_enable_needed (const struct intel_crtc_state *crtc_state) +{ +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc); + +return intel_joiner_num_pipes (crtc_state) ==INTEL_ULTRA_JOINER_PIPES && + crtc->pipe !=PIPE_D ; +} +void intel_dsc_enable (const struct intel_crtc_state *crtc_state) {struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);@@ -770,7 +780,19 @@ void intel_dsc_enable(const struct intel_crtc_state *crtc_state) dss_ctl1_val |=JOINER_ENABLE ; }if (crtc_state->joiner_pipes) { +/*
Quoted 8 lines
drivers/gpu/drm/i915/display/intel_vdsc.c void intel_dsc_enable(const struct intel_crtc_state *crtc_state) · line 788
Quoted 5 lines
drivers/gpu/drm/i915/display/intel_vdsc.c +5
-0+* This bit doesn't seem to follow primary/secondary logic or +* any other logic, so lets just add helper function to +* at least hide this hassle.. +*/ +if (intel_crtc_ultrajoiner_enable_needed (crtc_state))What is this crazyness? This would throw a big wrench into the works, eg. the ultrajoiner readout would not work as intended.
Hmm. I do see a note to this effect in bspec. But that doesn't make any real sense. I would expect that we either enable this for everything, or only for pipes A+C (the bigjoiner primaries). The latter would seem sensible, but it would also mean that we need to rethink the readout as well.
Quoted 17 lines
Quoted 13 lines
drivers/gpu/drm/i915/display/intel_vdsc.c +6
-0+ dss_ctl1_val |=ULTRA_JOINER_ENABLE ; + +if (intel_crtc_is_ultrajoiner_primary (crtc_state)) + dss_ctl1_val |=PRIMARY_ULTRA_JOINER_ENABLE ; + dss_ctl1_val |=BIG_JOINER_ENABLE ; +if (intel_crtc_is_bigjoiner_primary (crtc_state)) dss_ctl1_val |=PRIMARY_BIG_JOINER_ENABLE ; }Signature · 1 line
2.45.2Signature · 2 lines
Ville Syrjälä Intel
Signature · 2 lines
Ville Syrjälä Intel
Re: [PATCH 10/14] drm/i915/display/vdsc: Add ultrajoiner support with DSC
Quoted 62 lines · Ville Syrjälä
Quoted 53 lines · Ville Syrjälä
Quoted 52 lines · Ankit Nautiyal
From: Stanislav Lisovskiy <[email protected]>
Add changes to DSC which are required for Ultrajoiner.
v2:
(quoted diff) +0
-3-Use correct helper for setting bits for bigjoiner secondary. (Ankit) -Use enum for joiner pipe count instead magic numbers. (Suraj) -Use primary/secondary instead of master/slave. (Suraj)Signed-off-by Stanislav Lisovskiy <[email protected]>Signed-off-by Ankit Nautiyal <[email protected]>--- drivers/gpu/drm/i915/display/intel_vdsc.c | 26 +++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/display/intel_vdsc.c +12
-2@@ -379,9 +379,11 @@ static int intel_dsc_get_vdsc_per_pipe(const struct intel_crtc_state *crtc_stateint intel_dsc_get_num_vdsc_instances (const struct intel_crtc_state *crtc_state) {int num_vdsc_instances =intel_dsc_get_vdsc_per_pipe (crtc_state); +int joined_pipes =intel_joiner_num_pipes (crtc_state); -if (crtc_state->joiner_pipes) - num_vdsc_instances *=2 ; +if (joined_pipes ==INTEL_BIG_JOINER_PIPES || + joined_pipes ==INTEL_ULTRA_JOINER_PIPES ) + num_vdsc_instances *= joined_pipes;return num_vdsc_instances; }@@ -751,6 +753,14 @@ void intel_uncompressed_joiner_enable(const struct intel_crtc_state *crtc_state) } } +static bool intel_crtc_ultrajoiner_enable_needed (const struct intel_crtc_state *crtc_state) +{ +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc); + +return intel_joiner_num_pipes (crtc_state) ==INTEL_ULTRA_JOINER_PIPES && + crtc->pipe !=PIPE_D ; +} +void intel_dsc_enable (const struct intel_crtc_state *crtc_state) {struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);@@ -770,7 +780,19 @@ void intel_dsc_enable(const struct intel_crtc_state *crtc_state) dss_ctl1_val |=JOINER_ENABLE ; }if (crtc_state->joiner_pipes) {Quoted 8 lines
drivers/gpu/drm/i915/display/intel_vdsc.c void intel_dsc_enable(const struct intel_crtc_state *crtc_state) · line 788
Quoted 6 lines
drivers/gpu/drm/i915/display/intel_vdsc.c +6
-0+/* +* This bit doesn't seem to follow primary/secondary logic or +* any other logic, so lets just add helper function to +* at least hide this hassle.. +*/ +if (intel_crtc_ultrajoiner_enable_needed (crtc_state))What is this crazyness? This would throw a big wrench into the works, eg. the ultrajoiner readout would not work as intended.
Quoted 5 lines
Hmm. I do see a note to this effect in bspec. But that doesn't make any real sense. I would expect that we either enable this for everything, or only for pipes A+C (the bigjoiner primaries). The latter would seem sensible, but it would also mean that we need to rethink the readout as well.
Yes as per bspec : The ULTRA_JOINER_ENABLE bit will be set for Pipe A, Pipe B and Pipe C only.
Are you suggesting to write this for D as well? or just for A and C?
Also PRIMARY_ULTRA_JOINER_ENABLE is to be set for A. For other pipes this bit will be reset.
Though only C is ultrajoiner secondary pipe, but since for other pipes this bit is reset, how to make that distinction between C and others.
I mean readout will tell ultrajoiner primary as A and ultrajoiner secondary as B,C,D as bit is reset for all three.
Currently we have secondary ultrajoiner pipes reading 0xE.
Regards,
Ankit
Quoted 15 lines
Quoted 15 lines
Quoted 12 lines
drivers/gpu/drm/i915/display/intel_vdsc.c +6
-0+ dss_ctl1_val |=ULTRA_JOINER_ENABLE ; + +if (intel_crtc_is_ultrajoiner_primary (crtc_state)) + dss_ctl1_val |=PRIMARY_ULTRA_JOINER_ENABLE ; + dss_ctl1_val |=BIG_JOINER_ENABLE ; +if (intel_crtc_is_bigjoiner_primary (crtc_state)) dss_ctl1_val |=PRIMARY_BIG_JOINER_ENABLE ; }Signature · 1 line
2.45.2Signature · 2 lines
Ville Syrjälä Intel
Re: [PATCH 10/14] drm/i915/display/vdsc: Add ultrajoiner support with DSC
Quoted 70 lines · Ankit K
Quoted 62 lines · Ville Syrjälä
Quoted 53 lines · Ville Syrjälä
Quoted 52 lines · Ankit Nautiyal
From: Stanislav Lisovskiy <[email protected]>
Add changes to DSC which are required for Ultrajoiner.
v2:
(quoted diff) +0
-3-Use correct helper for setting bits for bigjoiner secondary. (Ankit) -Use enum for joiner pipe count instead magic numbers. (Suraj) -Use primary/secondary instead of master/slave. (Suraj)Signed-off-by Stanislav Lisovskiy <[email protected]>Signed-off-by Ankit Nautiyal <[email protected]>--- drivers/gpu/drm/i915/display/intel_vdsc.c | 26 +++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/display/intel_vdsc.c +12
-2@@ -379,9 +379,11 @@ static int intel_dsc_get_vdsc_per_pipe(const struct intel_crtc_state *crtc_stateint intel_dsc_get_num_vdsc_instances (const struct intel_crtc_state *crtc_state) {int num_vdsc_instances =intel_dsc_get_vdsc_per_pipe (crtc_state); +int joined_pipes =intel_joiner_num_pipes (crtc_state); -if (crtc_state->joiner_pipes) - num_vdsc_instances *=2 ; +if (joined_pipes ==INTEL_BIG_JOINER_PIPES || + joined_pipes ==INTEL_ULTRA_JOINER_PIPES ) + num_vdsc_instances *= joined_pipes;return num_vdsc_instances; }@@ -751,6 +753,14 @@ void intel_uncompressed_joiner_enable(const struct intel_crtc_state *crtc_state) } } +static bool intel_crtc_ultrajoiner_enable_needed (const struct intel_crtc_state *crtc_state) +{ +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc); + +return intel_joiner_num_pipes (crtc_state) ==INTEL_ULTRA_JOINER_PIPES && + crtc->pipe !=PIPE_D ; +} +void intel_dsc_enable (const struct intel_crtc_state *crtc_state) {struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);@@ -770,7 +780,19 @@ void intel_dsc_enable(const struct intel_crtc_state *crtc_state) dss_ctl1_val |=JOINER_ENABLE ; }if (crtc_state->joiner_pipes) {Quoted 8 lines
drivers/gpu/drm/i915/display/intel_vdsc.c void intel_dsc_enable(const struct intel_crtc_state *crtc_state) · line 788
Quoted 6 lines
drivers/gpu/drm/i915/display/intel_vdsc.c +6
-0+/* +* This bit doesn't seem to follow primary/secondary logic or +* any other logic, so lets just add helper function to +* at least hide this hassle.. +*/ +if (intel_crtc_ultrajoiner_enable_needed (crtc_state))What is this crazyness? This would throw a big wrench into the works, eg. the ultrajoiner readout would not work as intended.
Quoted 5 lines
Hmm. I do see a note to this effect in bspec. But that doesn't make any real sense. I would expect that we either enable this for everything, or only for pipes A+C (the bigjoiner primaries). The latter would seem sensible, but it would also mean that we need to rethink the readout as well.
Quoted 4 lines
Yes as per bspec : The
ULTRA_JOINER_ENABLEbit will be set for Pipe A, Pipe B and Pipe C only.Are you suggesting to write this for D as well? or just for A and C?
We need to find out what the hardware actually needs. Do we really have to set this for A+B+C and not for D, or is it enough to set it for A+C and not for B+D, and what happens if we try to set it for all pipes.
If the hardware only needs it for some kind of subset of the pipes, then I think we need to do some kind of slight fixup in the readout code to convert the masks into a more reasonable form for the WARN_ON()s/etc.
Quoted 31 lines
Also
PRIMARY_ULTRA_JOINER_ENABLEis to be set for A. For other pipes this bit will be reset.Though only C is ultrajoiner secondary pipe, but since for other pipes this bit is reset, how to make that distinction between C and others.
I mean readout will tell ultrajoiner primary as A and ultrajoiner secondary as B,C,D as bit is reset for all three.
Currently we have secondary ultrajoiner pipes reading
0xE.Regards,
Ankit
Quoted 15 lines
Quoted 15 lines
Quoted 12 lines
drivers/gpu/drm/i915/display/intel_vdsc.c +6
-0+ dss_ctl1_val |=ULTRA_JOINER_ENABLE ; + +if (intel_crtc_is_ultrajoiner_primary (crtc_state)) + dss_ctl1_val |=PRIMARY_ULTRA_JOINER_ENABLE ; + dss_ctl1_val |=BIG_JOINER_ENABLE ; +if (intel_crtc_is_bigjoiner_primary (crtc_state)) dss_ctl1_val |=PRIMARY_BIG_JOINER_ENABLE ; }Signature · 1 line
2.45.2Signature · 2 lines
Ville Syrjälä Intel
Signature · 2 lines
Ville Syrjälä Intel
PATCH 11/14 drm/i915: Add new abstraction layer to handle pipe order for different joiners
In reply to Ankit NautiyalFrom: Stanislav Lisovskiy <[email protected]>
Ultrajoiner case requires special treatment where both reverse and staight order iteration doesn't work(for instance disabling case requires order to be: primary master, slaves, secondary master).
Lets unify our approach by using not only pipe masks for iterating required pipes based on joiner type used, but also using different "priority" arrays for each of those.
v2: Fix checkpatch warnings. (Ankit)
--- drivers/gpu/drm/i915/display/intel_ddi.c | 19 +++-- drivers/gpu/drm/i915/display/intel_display.c | 83 ++++++++++++++++---- drivers/gpu/drm/i915/display/intel_display.h | 7 ++ drivers/gpu/drm/i915/display/intel_dp_mst.c | 18 +++-- 4 files changed, 96 insertions(+), 31 deletions(-)
drivers/gpu/drm/i915/display/intel_ddi.c +11 -8
@@ -3116,10 +3116,11 @@ static void intel_ddi_post_disable_hdmi_or_sst(struct intel_atomic_state *state, const struct drm_connector_state *old_conn_state) {struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev); -struct intel_crtc *pipe_crtc; +struct intel_crtc *pipe_crtc;enum pipe pipe; -for_each_intel_crtc_in_pipe_mask (&dev_priv->drm, pipe_crtc, -intel_crtc_joined_pipe_mask (old_crtc_state)) { +for_each_intel_crtc_in_mask_priority (dev_priv, pipe_crtc, pipe, +intel_crtc_joined_pipe_mask (old_crtc_state), +intel_get_pipe_order_disable (old_crtc_state)) {const struct intel_crtc_state *old_pipe_crtc_state =intel_atomic_get_old_crtc_state (state, pipe_crtc);
@@ -3130,8 +3131,9 @@ static void intel_ddi_post_disable_hdmi_or_sst(struct intel_atomic_state *state,intel_ddi_disable_transcoder_func (old_crtc_state); -for_each_intel_crtc_in_pipe_mask (&dev_priv->drm, pipe_crtc, -intel_crtc_joined_pipe_mask (old_crtc_state)) { +for_each_intel_crtc_in_mask_priority (dev_priv, pipe_crtc, pipe, +intel_crtc_joined_pipe_mask (old_crtc_state), +intel_get_pipe_order_disable (old_crtc_state)) {const struct intel_crtc_state *old_pipe_crtc_state =intel_atomic_get_old_crtc_state (state, pipe_crtc);
@@ -3383,7 +3385,7 @@ static void intel_enable_ddi(struct intel_atomic_state *state, const struct drm_connector_state *conn_state) {struct drm_i915_private *i915 =to_i915 (encoder->base.dev); -struct intel_crtc *pipe_crtc; +struct intel_crtc *pipe_crtc;enum pipe pipe;intel_ddi_enable_transcoder_func (encoder, crtc_state);
@@ -3394,8 +3396,9 @@ static void intel_enable_ddi(struct intel_atomic_state *state,intel_ddi_wait_for_fec_status (encoder, crtc_state, true); -for_each_intel_crtc_in_pipe_mask_reverse (&i915->drm, pipe_crtc, -intel_crtc_joined_pipe_mask (crtc_state)) { +for_each_intel_crtc_in_mask_priority (i915, pipe_crtc, pipe, +intel_crtc_joined_pipe_mask (crtc_state), +intel_get_pipe_order_enable (crtc_state)) {const struct intel_crtc_state *pipe_crtc_state =intel_atomic_get_new_crtc_state (state, pipe_crtc);
drivers/gpu/drm/i915/display/intel_display.c +67 -16
139 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_display.h +7 -0
@@ -275,6 +275,11 @@ enum phy_fia { &(dev)->mode_config.crtc_list, \ base.head) +#define for_each_intel_crtc_in_mask_priority (__dev_priv, intel_crtc, __p, __mask, __priolist) \ + for_each_pipe(__dev_priv, __p) \ + for_each_if((__mask) & BIT(__priolist[__p])) \ + for_each_if(intel_crtc = intel_crtc_for_pipe(to_intel_display(&__dev_priv->drm), __priolist[__p])) +#define for_each_intel_crtc_in_pipe_mask (dev, intel_crtc, pipe_mask) \ list_for_each_entry(intel_crtc, \ &(dev)->mode_config.crtc_list, \
@@ -432,6 +437,8 @@ bool intel_crtc_is_ultrajoiner(const struct intel_crtc_state *crtc_state);bool intel_crtc_is_ultrajoiner_primary (const struct intel_crtc_state *crtc_state);u8 intel_crtc_joiner_secondary_pipes (const struct intel_crtc_state *crtc_state);struct intel_crtc *intel_joiner_primary_crtc (const struct intel_crtc_state *crtc_state); +const enum pipe *intel_get_pipe_order_enable (const struct intel_crtc_state *crtc_state); +const enum pipe *intel_get_pipe_order_disable (const struct intel_crtc_state *crtc_state);bool intel_crtc_get_pipe_config (struct intel_crtc_state *crtc_state); bool intel_pipe_config_compare(const struct intel_crtc_state *current_config, const struct intel_crtc_state *pipe_config,
drivers/gpu/drm/i915/display/intel_dp_mst.c +11 -7
@@ -1006,7 +1006,7 @@ static void intel_mst_post_disable_dp(struct intel_atomic_state *state,struct drm_dp_mst_atomic_payload *new_payload =drm_atomic_get_mst_payload_state (new_mst_state, connector->port);struct drm_i915_private *dev_priv =to_i915 (connector->base.dev); -struct intel_crtc *pipe_crtc; +struct intel_crtc *pipe_crtc;enum pipe pipe;bool last_mst_stream; intel_dp->active_mst_links--;
@@ -1015,8 +1015,9 @@ static void intel_mst_post_disable_dp(struct intel_atomic_state *state,DISPLAY_VER (dev_priv) >=12 && last_mst_stream && !intel_dp_mst_is_master_trans(old_crtc_state)); -for_each_intel_crtc_in_pipe_mask (&dev_priv->drm, pipe_crtc, -intel_crtc_joined_pipe_mask (old_crtc_state)) { +for_each_intel_crtc_in_mask_priority (dev_priv, pipe_crtc, pipe, +intel_crtc_joined_pipe_mask (old_crtc_state), +intel_get_pipe_order_disable (old_crtc_state)) {const struct intel_crtc_state *old_pipe_crtc_state =intel_atomic_get_old_crtc_state (state, pipe_crtc);
@@ -1040,8 +1041,9 @@ static void intel_mst_post_disable_dp(struct intel_atomic_state *state,intel_ddi_disable_transcoder_func (old_crtc_state); -for_each_intel_crtc_in_pipe_mask (&dev_priv->drm, pipe_crtc, -intel_crtc_joined_pipe_mask (old_crtc_state)) { +for_each_intel_crtc_in_mask_priority (dev_priv, pipe_crtc, pipe, +intel_crtc_joined_pipe_mask (old_crtc_state), +intel_get_pipe_order_disable (old_crtc_state)) {const struct intel_crtc_state *old_pipe_crtc_state =intel_atomic_get_old_crtc_state (state, pipe_crtc);
@@ -1260,6 +1262,7 @@ static void intel_mst_enable_dp(struct intel_atomic_state *state,enum transcoder trans = pipe_config->cpu_transcoder;bool first_mst_stream = intel_dp->active_mst_links ==1 ;struct intel_crtc *pipe_crtc; +enum pipe pipe;int ret;drm_WARN_ON (&dev_priv->drm, pipe_config->has_pch_encoder);
@@ -1307,8 +1310,9 @@ static void intel_mst_enable_dp(struct intel_atomic_state *state,intel_enable_transcoder (pipe_config); -for_each_intel_crtc_in_pipe_mask_reverse (&dev_priv->drm, pipe_crtc, -intel_crtc_joined_pipe_mask (pipe_config)) { +for_each_intel_crtc_in_mask_priority (dev_priv, pipe_crtc, pipe, +intel_crtc_joined_pipe_mask (pipe_config), +intel_get_pipe_order_enable (pipe_config)) {const struct intel_crtc_state *pipe_crtc_state =intel_atomic_get_new_crtc_state (state, pipe_crtc);
Signature · 1 line
2.45.2
PATCH 12/14 drm/i915: Compute config and mode valid changes for ultrajoiner
In reply to Ankit NautiyalFrom: Stanislav Lisovskiy <[email protected]>
Implement required changes for mode validation and compute config, to support Ultrajoiner.
This also includes required DSC changes and checks.
v2:
-Use enum for Ultrajoiner pipes.
-Drop changes for HDMI.
-Separate out DSC changes into another patch.
v3:
-Fix check in can_ultrajoiner. (Ankit)
--- drivers/gpu/drm/i915/display/intel_dp.c | 72 ++++++++++++++++----- drivers/gpu/drm/i915/display/intel_dp.h | 7 +- drivers/gpu/drm/i915/display/intel_dp_mst.c | 15 +++-- 3 files changed, 71 insertions(+), 23 deletions(-)
drivers/gpu/drm/i915/display/intel_dp.c +57 -15
@@ -862,24 +862,34 @@ u32 get_max_compressed_bpp_with_joiner(struct drm_i915_private *i915, enum intel_joiner_pipe_count joined_pipes) {u32 max_bpp_small_joiner_ram; +u32 max_bpp_joiner;/* Small Joiner Check: output bpp <= joiner RAM (bits) / Horiz. width */ max_bpp_small_joiner_ram =small_joiner_ram_size_bits (i915) / mode_hdisplay; + max_bpp_joiner = max_bpp_small_joiner_ram; -if (joined_pipes ==INTEL_BIG_JOINER_PIPES ) { -int bigjoiner_interface_bits =DISPLAY_VER (i915) >=14 ?36 :24 ; +/* if ultra joiner is enabled, we have 2 bigjoiners enabled */ +if (joined_pipes ==INTEL_BIG_JOINER_PIPES || + joined_pipes ==INTEL_ULTRA_JOINER_PIPES ) { +int joiner_interface_bits =DISPLAY_VER (i915) >=14 ?36 :24 ;/* With bigjoiner multiple dsc engines are used in parallel so PPC is 2 */ int ppc =2 ; -u32 max_bpp_bigjoiner = - i915->display.cdclk.max_cdclk_freq * ppc * bigjoiner_interface_bits / + max_bpp_joiner = + i915->display.cdclk.max_cdclk_freq * ppc * joiner_interface_bits /intel_dp_mode_to_fec_clock (mode_clock); max_bpp_small_joiner_ram *=2 ; -return min (max_bpp_small_joiner_ram, max_bpp_bigjoiner); } +if (joined_pipes ==INTEL_ULTRA_JOINER_PIPES ) { +/* TODO: Check for ultrajoiner ram constraints */ -return max_bpp_small_joiner_ram; +/* both get multiplied by 2, because ram bits/ppc now doubled */ + max_bpp_small_joiner_ram *=2 ; + max_bpp_joiner *=2 ; + } + +return min (max_bpp_small_joiner_ram, max_bpp_joiner); } u16 intel_dp_dsc_get_max_compressed_bpp(struct drm_i915_private *i915,
@@ -985,6 +995,10 @@ u8 intel_dp_dsc_get_slice_count(const struct intel_connector *connector,if (joined_pipes ==INTEL_BIG_JOINER_PIPES && test_slice_count <4 )continue ; +/* ultrajoiner needs 2 bigjoiners to be enabled */ +if (joined_pipes ==INTEL_ULTRA_JOINER_PIPES && test_slice_count <8 ) +continue ; +if (min_slice_count <= test_slice_count)return test_slice_count; }
@@ -1261,9 +1275,9 @@ intel_dp_mode_valid_downstream(struct intel_connector *connector,return MODE_OK ; } -bool intel_dp_need_joiner (struct intel_dp *intel_dp, -struct intel_connector *connector, -int hdisplay,int clock) +bool intel_dp_need_bigjoiner (struct intel_dp *intel_dp, +struct intel_connector *connector, +int hdisplay,int clock) {struct drm_i915_private *i915 =dp_to_i915 (intel_dp);
@@ -1294,6 +1308,26 @@ bool intel_dp_has_dsc(const struct intel_connector *connector)return true; } +static bool intel_display_can_use_ultrajoiner (struct intel_display *display) +{ +struct drm_i915_private *i915 =to_i915 (display->drm); + +return ((DISPLAY_VER (display) ==14 &&IS_DGFX (i915)) || +DISPLAY_VER (display) >14 ); +} + +bool intel_dp_need_ultrajoiner (struct intel_dp *dp,int clock) +{ +const struct intel_encoder *encoder = &dp_to_dig_port (dp)->base; +struct drm_i915_private *i915 =to_i915 (encoder->base.dev); +struct intel_display *display =to_intel_display (encoder); + +if (!intel_display_can_use_ultrajoiner (display)) +return false; + +return clock > (i915->display.cdclk.max_dotclk_freq *2 ); +} +static enum drm_mode_status intel_dp_mode_valid (struct drm_connector *_connector,struct drm_display_mode *mode)
@@ -1330,11 +1364,15 @@ intel_dp_mode_valid(struct drm_connector *_connector, target_clock = fixed_mode->clock; } -if (intel_dp_need_joiner (intel_dp, connector, - mode->hdisplay, target_clock)) { +if (intel_dp_need_ultrajoiner (intel_dp, target_clock)) { + joined_pipes =INTEL_ULTRA_JOINER_PIPES ; + max_dotclk *=INTEL_ULTRA_JOINER_PIPES ; + }else if (intel_dp_need_bigjoiner (intel_dp, connector, + mode->hdisplay, target_clock)) { joined_pipes =INTEL_BIG_JOINER_PIPES ; max_dotclk *=INTEL_BIG_JOINER_PIPES ; } +if (target_clock > max_dotclk)return MODE_CLOCK_HIGH ;
@@ -2508,8 +2546,10 @@ bool intel_dp_joiner_needs_dsc(struct drm_i915_private *i915,* Pipe joiner needs compression up to display 12 due to bandwidth * limitation. DG2 onwards pipe joiner can be enabled without * compression. +* Ultrajoiner always needs compression. */ -return DISPLAY_VER (i915) <13 && (joined_pipes ==INTEL_BIG_JOINER_PIPES ); +return (DISPLAY_VER (i915) <13 && (joined_pipes ==INTEL_BIG_JOINER_PIPES )) || + joined_pipes ==INTEL_ULTRA_JOINER_PIPES ; } static int
@@ -2534,9 +2574,11 @@ intel_dp_compute_link_config(struct intel_encoder *encoder, !intel_dp_supports_fec(intel_dp, connector, pipe_config))return -EINVAL ; -if (intel_dp_need_joiner (intel_dp, connector, - adjusted_mode->crtc_hdisplay, - adjusted_mode->crtc_clock)) +if (intel_dp_need_ultrajoiner (intel_dp, adjusted_mode->crtc_clock)) + pipe_config->joiner_pipes =GENMASK (crtc->pipe +3 , crtc->pipe); +else if (intel_dp_need_bigjoiner (intel_dp, connector, + adjusted_mode->crtc_hdisplay, + adjusted_mode->crtc_clock)) pipe_config->joiner_pipes =GENMASK (crtc->pipe +1 , crtc->pipe); joined_pipes =intel_joiner_num_pipes (pipe_config);
drivers/gpu/drm/i915/display/intel_dp.h +4 -3
@@ -155,9 +155,10 @@ int intel_dp_dsc_sink_max_compressed_bpp(const struct intel_connector *connectoru8 intel_dp_dsc_get_slice_count (const struct intel_connector *connector,int mode_clock,int mode_hdisplay,enum intel_joiner_pipe_count joined_pipes); -bool intel_dp_need_joiner (struct intel_dp *intel_dp, -struct intel_connector *connector, -int hdisplay,int clock); +bool intel_dp_need_bigjoiner (struct intel_dp *intel_dp, +struct intel_connector *connector, +int hdisplay,int clock); +bool intel_dp_need_ultrajoiner (struct intel_dp *intel_dp,int clock);static inline unsigned int intel_dp_unused_lane_mask (int lane_count) {
drivers/gpu/drm/i915/display/intel_dp_mst.c +10 -5
@@ -580,9 +580,11 @@ static int intel_dp_mst_compute_config(struct intel_encoder *encoder,if (adjusted_mode->flags &DRM_MODE_FLAG_DBLSCAN )return -EINVAL ; -if (intel_dp_need_joiner (intel_dp, connector, - adjusted_mode->crtc_hdisplay, - adjusted_mode->crtc_clock)) +if (intel_dp_need_ultrajoiner (intel_dp, adjusted_mode->crtc_clock)) + pipe_config->joiner_pipes =GENMASK (crtc->pipe +3 , crtc->pipe); +else if (intel_dp_need_bigjoiner (intel_dp, connector, + adjusted_mode->crtc_hdisplay, + adjusted_mode->crtc_clock)) pipe_config->joiner_pipes =GENMASK (crtc->pipe +1 , crtc->pipe); pipe_config->sink_format =INTEL_OUTPUT_FORMAT_RGB ;
@@ -1477,8 +1479,11 @@ intel_dp_mst_mode_valid_ctx(struct drm_connector *connector,* corresponding link capabilities of the sink) in case the * stream is uncompressed for it by the last branch device. */ -if (intel_dp_need_joiner (intel_dp, intel_connector, - mode->hdisplay, target_clock)) { +if (intel_dp_need_ultrajoiner (intel_dp, target_clock)) { + joined_pipes =INTEL_BIG_JOINER_PIPES ; + max_dotclk *=INTEL_BIG_JOINER_PIPES ; + }else if (intel_dp_need_bigjoiner (intel_dp, intel_connector, + mode->hdisplay, target_clock)) { joined_pipes =INTEL_BIG_JOINER_PIPES ; max_dotclk *=INTEL_BIG_JOINER_PIPES ; }
Signature · 1 line
2.45.2
PATCH 13/14 drm/i915/display: Consider ultrajoiner for computing maxdotclock
In reply to Ankit NautiyalMove helper to check ultrajoiner from intel_dp to intel_display and use it to compute maxdotclock.
--- drivers/gpu/drm/i915/display/intel_display.c | 21 ++++++++++++++++++-- drivers/gpu/drm/i915/display/intel_display.h | 2 ++ drivers/gpu/drm/i915/display/intel_dp.c | 8 -------- 3 files changed, 21 insertions(+), 10 deletions(-)
drivers/gpu/drm/i915/display/intel_display.c +19 -2
@@ -8199,12 +8199,29 @@ void intel_setup_outputs(struct drm_i915_private *dev_priv)drm_helper_move_panel_connectors_to_head (&dev_priv->drm); } +static bool intel_display_can_use_joiner (struct intel_display *display) +{ +/* icl+ might use joiner */ +return (DISPLAY_VER (display) >=11 ); +} + +bool intel_display_can_use_ultrajoiner (struct intel_display *display) +{ +struct drm_i915_private *i915 =to_i915 (display->drm); + +return ((DISPLAY_VER (display) ==14 &&IS_DGFX (i915)) || +DISPLAY_VER (display) >14 ); +} +static int max_dotclock (struct drm_i915_private *i915) { +struct intel_display *display =to_intel_display (&i915->drm);int max_dotclock = i915->display.cdclk.max_dotclk_freq; -/* icl+ might use joiner */ -if (DISPLAY_VER (i915) >=11 ) +if (intel_display_can_use_joiner (display)) + max_dotclock *=2 ; + +if (intel_display_can_use_ultrajoiner (display)) max_dotclock *=2 ;return max_dotclock;
drivers/gpu/drm/i915/display/intel_display.h +2 -0
@@ -53,6 +53,7 @@ struct intel_atomic_state;struct intel_crtc ;struct intel_crtc_state ;struct intel_digital_port ; +struct intel_display ;struct intel_dp ;struct intel_encoder ;struct intel_initial_plane_config ;
@@ -600,5 +601,6 @@ bool assert_port_valid(struct drm_i915_private *i915, enum port port);bool intel_scanout_needs_vtd_wa (struct drm_i915_private *i915);int intel_joiner_num_pipes (const struct intel_crtc_state *crtc_state); +bool intel_display_can_use_ultrajoiner (struct intel_display *display);#endif
drivers/gpu/drm/i915/display/intel_dp.c +0 -8
@@ -1308,14 +1308,6 @@ bool intel_dp_has_dsc(const struct intel_connector *connector)return true; } -static bool intel_display_can_use_ultrajoiner (struct intel_display *display) -{ -struct drm_i915_private *i915 =to_i915 (display->drm); - -return ((DISPLAY_VER (display) ==14 &&IS_DGFX (i915)) || -DISPLAY_VER (display) >14 ); -} -bool intel_dp_need_ultrajoiner (struct intel_dp *dp,int clock) {const struct intel_encoder *encoder = &dp_to_dig_port (dp)->base;
Signature · 1 line
2.45.2
PATCH 14/14 drm/i915/intel_dp: Add support for forcing ultrajoiner
In reply to Ankit NautiyalAllow forcing ultrajoiner through debugfs.
--- drivers/gpu/drm/i915/display/intel_dp.c | 11 +++++++---- drivers/gpu/drm/i915/display/intel_dp.h | 4 +++- drivers/gpu/drm/i915/display/intel_dp_mst.c | 6 ++++-- 3 files changed, 14 insertions(+), 7 deletions(-)
drivers/gpu/drm/i915/display/intel_dp.c +7 -4
@@ -1308,7 +1308,9 @@ bool intel_dp_has_dsc(const struct intel_connector *connector)return true; } -bool intel_dp_need_ultrajoiner (struct intel_dp *dp,int clock) +bool intel_dp_need_ultrajoiner (struct intel_dp *dp, +struct intel_connector *connector, +int clock) {const struct intel_encoder *encoder = &dp_to_dig_port (dp)->base;struct drm_i915_private *i915 =to_i915 (encoder->base.dev);
@@ -1317,7 +1319,8 @@ bool intel_dp_need_ultrajoiner(struct intel_dp *dp, int clock)if (!intel_display_can_use_ultrajoiner (display))return false; -return clock > (i915->display.cdclk.max_dotclk_freq *2 ); +return clock > (i915->display.cdclk.max_dotclk_freq *2 ) || + connector->force_joined_pipes ==INTEL_ULTRA_JOINER_PIPES ; } static enum drm_mode_status
@@ -1356,7 +1359,7 @@ intel_dp_mode_valid(struct drm_connector *_connector, target_clock = fixed_mode->clock; } -if (intel_dp_need_ultrajoiner (intel_dp, target_clock)) { +if (intel_dp_need_ultrajoiner (intel_dp, connector, target_clock)) { joined_pipes =INTEL_ULTRA_JOINER_PIPES ; max_dotclk *=INTEL_ULTRA_JOINER_PIPES ; } else if (intel_dp_need_bigjoiner(intel_dp, connector,
@@ -2566,7 +2569,7 @@ intel_dp_compute_link_config(struct intel_encoder *encoder, !intel_dp_supports_fec(intel_dp, connector, pipe_config))return -EINVAL ; -if (intel_dp_need_ultrajoiner (intel_dp, adjusted_mode->crtc_clock)) +if (intel_dp_need_ultrajoiner (intel_dp, connector, adjusted_mode->crtc_clock)) pipe_config->joiner_pipes =GENMASK (crtc->pipe +3 , crtc->pipe); else if (intel_dp_need_bigjoiner(intel_dp, connector, adjusted_mode->crtc_hdisplay,
drivers/gpu/drm/i915/display/intel_dp.h +3 -1
@@ -158,7 +158,9 @@ u8 intel_dp_dsc_get_slice_count(const struct intel_connector *connector,bool intel_dp_need_bigjoiner (struct intel_dp *intel_dp,struct intel_connector *connector,int hdisplay,int clock); -bool intel_dp_need_ultrajoiner (struct intel_dp *intel_dp,int clock); +bool intel_dp_need_ultrajoiner (struct intel_dp *intel_dp, +struct intel_connector *connector, +int clock);static inline unsigned int intel_dp_unused_lane_mask (int lane_count) {
drivers/gpu/drm/i915/display/intel_dp_mst.c +4 -2
@@ -580,7 +580,8 @@ static int intel_dp_mst_compute_config(struct intel_encoder *encoder,if (adjusted_mode->flags &DRM_MODE_FLAG_DBLSCAN )return -EINVAL ; -if (intel_dp_need_ultrajoiner (intel_dp, adjusted_mode->crtc_clock)) +if (intel_dp_need_ultrajoiner (intel_dp, connector, + adjusted_mode->crtc_clock)) pipe_config->joiner_pipes =GENMASK (crtc->pipe +3 , crtc->pipe); else if (intel_dp_need_bigjoiner(intel_dp, connector, adjusted_mode->crtc_hdisplay,
@@ -1479,7 +1480,8 @@ intel_dp_mst_mode_valid_ctx(struct drm_connector *connector,* corresponding link capabilities of the sink) in case the * stream is uncompressed for it by the last branch device. */ -if (intel_dp_need_ultrajoiner (intel_dp, target_clock)) { +if (intel_dp_need_ultrajoiner (intel_dp, intel_connector, + target_clock)) { joined_pipes =INTEL_BIG_JOINER_PIPES ; max_dotclk *=INTEL_BIG_JOINER_PIPES ; } else if (intel_dp_need_bigjoiner(intel_dp, intel_connector,
Signature · 1 line
2.45.2
Patchwork
CI✗ Fi.CI.CHECKPATCH: warning for Ultrajoiner basic functionality series (rev7)
In reply to Ankit Nautiyal== Series Details ==
== Series Details ==
Series: Ultrajoiner basic functionality series (rev7)
URL : https://patchwork.freedesktop.org/series/133800/
State : warning
== Summary ==
Error: dim checkpatch failedf0319f26329c drm/i915/display: Modify debugfs for joiner to force n pipes c990cc40b2c9 drm/i915/display: Use joined pipes in intel_dp_joiner_needs_dsc 6a7298b1549d drm/i915/display: Use joined pipes in intel_mode_valid_max_plane_size 997453c80592 drm/i915/display: Use joined pipes in dsc helpers for slices, bpp 185c7a362580 drm/i915: Add some essential functionality for joinerse589900b4e56 drm/i915: Split current joiner hw state readoutdbc40a7ee871 drm/i915: Add bigjoiner and uncompressed joiner hw readout sanity checks aff7471b9657 drm/i915: Implement hw state readout and checks for ultrajoiner aa050e4a1a58 drm/i915/display: Add helpers to check for ultrajoiner primary 13e5f0c73c6e drm/i915/display/vdsc: Add ultrajoiner support with DSC 87c324295490 drm/i915: Add new abstraction layer to handle pipe order for different joiners -:231: ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses #231: FILE: drivers/gpu/drm/i915/display/intel_display.h:278:
+#define for_each_intel_crtc_in_mask_priority(__dev_priv, intel_crtc, __p, __mask, __priolist) \
+ for_each_pipe(__dev_priv, __p) \
+ for_each_if((__mask) & BIT(__priolist[__p])) \
+ for_each_if(intel_crtc = intel_crtc_for_pipe(to_intel_display(&__dev_priv->drm), __priolist[__p]))
-:231: CHECK:MACRO_ARG_REUSE: Macro argument reuse '__dev_priv' - possible side-effects? #231: FILE: drivers/gpu/drm/i915/display/intel_display.h:278:
+#define for_each_intel_crtc_in_mask_priority(__dev_priv, intel_crtc, __p, __mask, __priolist) \
+ for_each_pipe(__dev_priv, __p) \
+ for_each_if((__mask) & BIT(__priolist[__p])) \
+ for_each_if(intel_crtc = intel_crtc_for_pipe(to_intel_display(&__dev_priv->drm), __priolist[__p]))
-:231: CHECK:MACRO_ARG_REUSE: Macro argument reuse '__p' - possible side-effects? #231: FILE: drivers/gpu/drm/i915/display/intel_display.h:278:
+#define for_each_intel_crtc_in_mask_priority(__dev_priv, intel_crtc, __p, __mask, __priolist) \
+ for_each_pipe(__dev_priv, __p) \
+ for_each_if((__mask) & BIT(__priolist[__p])) \
+ for_each_if(intel_crtc = intel_crtc_for_pipe(to_intel_display(&__dev_priv->drm), __priolist[__p]))
-:231: CHECK:MACRO_ARG_REUSE: Macro argument reuse '__priolist' - possible side-effects? #231: FILE: drivers/gpu/drm/i915/display/intel_display.h:278:
+#define for_each_intel_crtc_in_mask_priority(__dev_priv, intel_crtc, __p, __mask, __priolist) \
+ for_each_pipe(__dev_priv, __p) \
+ for_each_if((__mask) & BIT(__priolist[__p])) \
+ for_each_if(intel_crtc = intel_crtc_for_pipe(to_intel_display(&__dev_priv->drm), __priolist[__p]))
-:234: WARNING:LONG_LINE: line length of 122 exceeds 100 columns #234: FILE: drivers/gpu/drm/i915/display/intel_display.h:281:
+ for_each_if(intel_crtc = intel_crtc_for_pipe(to_intel_display(&__dev_priv->drm), __priolist[__p]))
total: 1 errors, 1 warnings, 3 checks, 250 lines checked 408e3cb74a24 drm/i915: Compute config and mode valid changes for ultrajoiner 12981c443053 drm/i915/display: Consider ultrajoiner for computing maxdotclock a4c718aa641a drm/i915/intel_dp: Add support for forcing ultrajoiner
Patchwork
CI✗ Fi.CI.SPARSE: warning for Ultrajoiner basic functionality series (rev7)
In reply to Ankit Nautiyal== Series Details ==
== Series Details ==
Series: Ultrajoiner basic functionality series (rev7)
URL : https://patchwork.freedesktop.org/series/133800/
State : warning
== Summary ==
Error: dim sparse failed
Sparse version: v0.6.2
Fast mode used, each commit won't be checked separately. +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:116:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:147:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:149:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:153:26: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:155:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:173:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:175:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:179:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:16: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:181:9: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:185:1: warning: unreplaced symbol 'return' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:187:9: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: warning: unreplaced symbol 'oldbit' +./arch/x86/include/asm/bitops.h:191:35: wa